hadoop_1.1.0.xml 3.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301733027330373304733057330673307733087330973310733117331273313733147331573316733177331873319733207332173322733237332473325733267332773328733297333073331733327333373334733357333673337733387333973340733417334273343733447334573346733477334873349733507335173352733537335473355733567335773358733597336073361733627336373364733657336673367733687336973370733717337273373733747337573376733777337873379733807338173382733837338473385733867338773388733897339073391733927339373394733957339673397733987339973400734017340273403734047340573406734077340873409734107341173412734137341473415734167341773418734197342073421734227342373424734257342673427734287342973430734317343273433734347343573436734377343873439734407344173442734437344473445734467344773448734497345073451734527345373454734557345673457734587345973460734617346273463734647346573466734677346873469734707347173472734737347473475734767347773478734797348073481734827348373484734857348673487734887348973490734917349273493734947349573496734977349873499735007350173502735037350473505735067350773508735097351073511735127351373514735157351673517735187351973520735217352273523735247352573526735277352873529735307353173532735337353473535735367353773538735397354073541735427354373544735457354673547735487354973550735517355273553735547355573556735577355873559735607356173562735637356473565735667356773568735697357073571735727357373574735757357673577735787357973580735817358273583735847358573586735877358873589735907359173592735937359473595735967359773598735997360073601736027360373604736057360673607736087360973610736117361273613736147361573616736177361873619736207362173622736237362473625736267362773628736297363073631736327363373634736357363673637736387363973640736417364273643736447364573646736477364873649736507365173652736537365473655736567365773658736597366073661736627366373664736657366673667736687366973670736717367273673736747367573676736777367873679736807368173682736837368473685736867368773688736897369073691736927369373694736957369673697736987369973700737017370273703737047370573706737077370873709737107371173712737137371473715737167371773718737197372073721737227372373724737257372673727737287372973730737317373273733737347373573736737377373873739737407374173742737437374473745737467374773748737497375073751737527375373754737557375673757737587375973760737617376273763737647376573766737677376873769737707377173772737737377473775737767377773778737797378073781737827378373784737857378673787737887378973790737917379273793737947379573796737977379873799738007380173802738037380473805738067380773808738097381073811738127381373814738157381673817738187381973820738217382273823738247382573826738277382873829738307383173832738337383473835738367383773838738397384073841738427384373844738457384673847738487384973850738517385273853738547385573856738577385873859738607386173862738637386473865738667386773868738697387073871738727387373874738757387673877738787387973880738817388273883738847388573886738877388873889738907389173892738937389473895738967389773898738997390073901739027390373904739057390673907739087390973910739117391273913739147391573916739177391873919739207392173922739237392473925739267392773928739297393073931739327393373934739357393673937739387393973940739417394273943739447394573946739477394873949739507395173952739537395473955739567395773958739597396073961739627396373964739657396673967739687396973970739717397273973739747397573976739777397873979739807398173982739837398473985739867398773988739897399073991739927399373994739957399673997739987399974000740017400274003740047400574006740077400874009740107401174012740137401474015740167401774018740197402074021740227402374024740257402674027740287402974030740317403274033740347403574036740377403874039740407404174042740437404474045740467404774048740497405074051740527405374054740557405674057740587405974060740617406274063740647406574066740677406874069740707407174072740737407474075740767407774078740797408074081740827408374084740857408674087740887408974090740917409274093740947409574096740977409874099741007410174102741037410474105741067410774108741097411074111741127411374114741157411674117741187411974120741217412274123741247412574126741277412874129741307413174132741337413474135741367413774138741397414074141741427414374144741457414674147741487414974150741517415274153741547415574156741577415874159741607416174162741637416474165741667416774168741697417074171741727417374174741757417674177741787417974180741817418274183741847418574186741877418874189741907419174192741937419474195741967419774198741997420074201742027420374204742057420674207742087420974210742117421274213742147421574216742177421874219742207422174222742237422474225742267422774228742297423074231742327423374234742357423674237742387423974240742417424274243742447424574246742477424874249742507425174252742537425474255742567425774258742597426074261742627426374264742657426674267742687426974270742717427274273742747427574276742777427874279742807428174282742837428474285742867428774288742897429074291742927429374294742957429674297742987429974300743017430274303743047430574306743077430874309743107431174312743137431474315743167431774318743197432074321743227432374324743257432674327743287432974330743317433274333743347433574336743377433874339743407434174342743437434474345743467434774348743497435074351743527435374354743557435674357743587435974360743617436274363743647436574366743677436874369743707437174372743737437474375743767437774378743797438074381743827438374384743857438674387743887438974390743917439274393743947439574396743977439874399744007440174402744037440474405744067440774408744097441074411744127441374414744157441674417744187441974420744217442274423744247442574426744277442874429744307443174432744337443474435744367443774438744397444074441744427444374444744457444674447744487444974450744517445274453744547445574456744577445874459744607446174462744637446474465744667446774468744697447074471744727447374474744757447674477744787447974480744817448274483744847448574486744877448874489744907449174492744937449474495744967449774498744997450074501745027450374504745057450674507745087450974510745117451274513745147451574516745177451874519745207452174522745237452474525745267452774528745297453074531745327453374534745357453674537745387453974540745417454274543745447454574546745477454874549745507455174552745537455474555745567455774558745597456074561745627456374564745657456674567745687456974570745717457274573745747457574576745777457874579745807458174582745837458474585745867458774588745897459074591745927459374594745957459674597745987459974600746017460274603746047460574606746077460874609746107461174612746137461474615746167461774618746197462074621746227462374624746257462674627746287462974630746317463274633746347463574636746377463874639746407464174642746437464474645746467464774648746497465074651746527465374654746557465674657746587465974660746617466274663746647466574666746677466874669746707467174672746737467474675746767467774678746797468074681746827468374684746857468674687746887468974690746917469274693746947469574696746977469874699747007470174702747037470474705747067470774708747097471074711747127471374714747157471674717747187471974720747217472274723747247472574726747277472874729747307473174732747337473474735747367473774738747397474074741747427474374744747457474674747747487474974750747517475274753747547475574756747577475874759747607476174762747637476474765747667476774768747697477074771747727477374774747757477674777747787477974780747817478274783747847478574786747877478874789747907479174792747937479474795747967479774798747997480074801748027480374804748057480674807748087480974810748117481274813748147481574816748177481874819748207482174822748237482474825748267482774828748297483074831748327483374834748357483674837748387483974840748417484274843748447484574846748477484874849748507485174852748537485474855748567485774858748597486074861748627486374864748657486674867748687486974870748717487274873748747487574876748777487874879748807488174882748837488474885748867488774888748897489074891748927489374894748957489674897748987489974900749017490274903749047490574906749077490874909749107491174912749137491474915749167491774918749197492074921749227492374924749257492674927749287492974930749317493274933749347493574936749377493874939749407494174942749437494474945749467494774948749497495074951749527495374954749557495674957749587495974960749617496274963749647496574966749677496874969749707497174972749737497474975749767497774978749797498074981749827498374984749857498674987749887498974990749917499274993749947499574996749977499874999750007500175002750037500475005750067500775008750097501075011750127501375014750157501675017750187501975020750217502275023750247502575026750277502875029750307503175032750337503475035750367503775038750397504075041750427504375044750457504675047750487504975050750517505275053750547505575056750577505875059750607506175062750637506475065750667506775068750697507075071750727507375074750757507675077750787507975080750817508275083750847508575086750877508875089750907509175092750937509475095750967509775098750997510075101751027510375104751057510675107751087510975110751117511275113751147511575116751177511875119751207512175122751237512475125751267512775128751297513075131751327513375134751357513675137751387513975140751417514275143751447514575146751477514875149751507515175152751537515475155751567515775158751597516075161751627516375164751657516675167751687516975170751717517275173751747517575176751777517875179751807518175182751837518475185751867518775188751897519075191751927519375194751957519675197751987519975200752017520275203752047520575206752077520875209752107521175212752137521475215752167521775218752197522075221752227522375224752257522675227752287522975230752317523275233752347523575236752377523875239752407524175242752437524475245752467524775248752497525075251752527525375254752557525675257752587525975260752617526275263752647526575266752677526875269752707527175272752737527475275752767527775278752797528075281752827528375284752857528675287752887528975290752917529275293752947529575296752977529875299753007530175302753037530475305753067530775308753097531075311753127531375314753157531675317753187531975320753217532275323753247532575326753277532875329753307533175332753337533475335753367533775338753397534075341753427534375344753457534675347753487534975350753517535275353753547535575356753577535875359753607536175362753637536475365753667536775368753697537075371753727537375374753757537675377753787537975380753817538275383753847538575386753877538875389753907539175392753937539475395753967539775398753997540075401754027540375404754057540675407754087540975410754117541275413754147541575416754177541875419754207542175422754237542475425754267542775428754297543075431754327543375434754357543675437754387543975440754417544275443754447544575446754477544875449754507545175452754537545475455754567545775458754597546075461754627546375464754657546675467754687546975470754717547275473754747547575476754777547875479754807548175482754837548475485754867548775488754897549075491754927549375494754957549675497754987549975500755017550275503755047550575506755077550875509755107551175512755137551475515755167551775518755197552075521755227552375524755257552675527755287552975530755317553275533755347553575536755377553875539755407554175542755437554475545755467554775548755497555075551755527555375554755557555675557755587555975560755617556275563755647556575566755677556875569755707557175572755737557475575755767557775578755797558075581755827558375584755857558675587755887558975590755917559275593755947559575596755977559875599756007560175602756037560475605756067560775608756097561075611756127561375614756157561675617756187561975620756217562275623756247562575626756277562875629756307563175632756337563475635756367563775638756397564075641756427564375644756457564675647756487564975650756517565275653756547565575656756577565875659756607566175662756637566475665756667566775668756697567075671756727567375674756757567675677756787567975680756817568275683756847568575686756877568875689756907569175692756937569475695756967569775698756997570075701757027570375704757057570675707757087570975710757117571275713757147571575716757177571875719757207572175722757237572475725757267572775728757297573075731757327573375734757357573675737757387573975740757417574275743757447574575746757477574875749757507575175752757537575475755757567575775758757597576075761757627576375764757657576675767757687576975770757717577275773757747577575776757777577875779757807578175782757837578475785757867578775788757897579075791757927579375794757957579675797757987579975800758017580275803758047580575806758077580875809758107581175812758137581475815758167581775818758197582075821758227582375824758257582675827758287582975830758317583275833758347583575836758377583875839758407584175842758437584475845758467584775848758497585075851758527585375854758557585675857758587585975860758617586275863758647586575866758677586875869758707587175872758737587475875758767587775878758797588075881758827588375884758857588675887758887588975890758917589275893758947589575896758977589875899759007590175902759037590475905759067590775908759097591075911759127591375914759157591675917759187591975920759217592275923759247592575926759277592875929759307593175932759337593475935759367593775938759397594075941759427594375944759457594675947759487594975950759517595275953759547595575956759577595875959759607596175962759637596475965759667596775968759697597075971759727597375974759757597675977759787597975980759817598275983759847598575986759877598875989759907599175992759937599475995759967599775998759997600076001760027600376004760057600676007760087600976010760117601276013760147601576016760177601876019760207602176022760237602476025760267602776028760297603076031760327603376034760357603676037760387603976040760417604276043760447604576046760477604876049760507605176052760537605476055760567605776058760597606076061760627606376064760657606676067760687606976070760717607276073760747607576076760777607876079760807608176082760837608476085760867608776088760897609076091760927609376094760957609676097760987609976100761017610276103761047610576106761077610876109761107611176112761137611476115761167611776118761197612076121761227612376124761257612676127761287612976130761317613276133761347613576136761377613876139761407614176142761437614476145761467614776148761497615076151761527615376154761557615676157761587615976160761617616276163761647616576166761677616876169761707617176172761737617476175761767617776178761797618076181761827618376184761857618676187761887618976190761917619276193761947619576196761977619876199762007620176202762037620476205762067620776208762097621076211762127621376214762157621676217762187621976220762217622276223762247622576226762277622876229762307623176232762337623476235762367623776238762397624076241762427624376244762457624676247762487624976250762517625276253762547625576256762577625876259762607626176262762637626476265762667626776268762697627076271762727627376274762757627676277762787627976280762817628276283762847628576286762877628876289762907629176292762937629476295762967629776298762997630076301763027630376304763057630676307763087630976310763117631276313763147631576316763177631876319763207632176322763237632476325763267632776328763297633076331763327633376334763357633676337763387633976340763417634276343763447634576346763477634876349763507635176352763537635476355763567635776358763597636076361763627636376364763657636676367763687636976370763717637276373763747637576376763777637876379763807638176382763837638476385763867638776388763897639076391763927639376394763957639676397763987639976400764017640276403764047640576406764077640876409764107641176412764137641476415764167641776418764197642076421764227642376424764257642676427764287642976430764317643276433764347643576436764377643876439764407644176442764437644476445764467644776448764497645076451764527645376454764557645676457764587645976460764617646276463764647646576466764677646876469764707647176472764737647476475764767647776478764797648076481764827648376484764857648676487764887648976490764917649276493764947649576496764977649876499765007650176502765037650476505765067650776508765097651076511765127651376514765157651676517765187651976520765217652276523765247652576526765277652876529765307653176532765337653476535765367653776538765397654076541765427654376544765457654676547765487654976550765517655276553765547655576556765577655876559765607656176562765637656476565765667656776568765697657076571765727657376574765757657676577765787657976580765817658276583765847658576586765877658876589765907659176592765937659476595765967659776598765997660076601766027660376604766057660676607766087660976610766117661276613766147661576616766177661876619766207662176622766237662476625766267662776628766297663076631766327663376634766357663676637766387663976640766417664276643766447664576646766477664876649766507665176652766537665476655766567665776658766597666076661766627666376664766657666676667766687666976670766717667276673766747667576676766777667876679766807668176682766837668476685766867668776688766897669076691766927669376694766957669676697766987669976700767017670276703767047670576706767077670876709767107671176712767137671476715767167671776718767197672076721767227672376724767257672676727767287672976730767317673276733767347673576736767377673876739767407674176742767437674476745767467674776748767497675076751767527675376754767557675676757767587675976760767617676276763767647676576766767677676876769767707677176772767737677476775767767677776778767797678076781767827678376784767857678676787767887678976790767917679276793767947679576796767977679876799768007680176802768037680476805768067680776808768097681076811768127681376814768157681676817768187681976820768217682276823768247682576826768277682876829768307683176832768337683476835768367683776838768397684076841768427684376844768457684676847768487684976850768517685276853768547685576856768577685876859768607686176862768637686476865768667686776868768697687076871768727687376874768757687676877768787687976880768817688276883768847688576886768877688876889768907689176892768937689476895768967689776898768997690076901769027690376904769057690676907769087690976910769117691276913769147691576916769177691876919769207692176922769237692476925769267692776928769297693076931769327693376934769357693676937769387693976940769417694276943769447694576946769477694876949769507695176952769537695476955769567695776958769597696076961769627696376964769657696676967769687696976970769717697276973769747697576976769777697876979769807698176982769837698476985769867698776988769897699076991769927699376994769957699676997769987699977000770017700277003770047700577006770077700877009770107701177012770137701477015770167701777018770197702077021770227702377024770257702677027770287702977030770317703277033770347703577036770377703877039770407704177042770437704477045770467704777048770497705077051770527705377054770557705677057770587705977060770617706277063770647706577066770677706877069770707707177072770737707477075770767707777078770797708077081770827708377084770857708677087770887708977090770917709277093770947709577096770977709877099771007710177102771037710477105771067710777108771097711077111771127711377114771157711677117771187711977120771217712277123771247712577126771277712877129771307713177132771337713477135771367713777138771397714077141771427714377144771457714677147771487714977150771517715277153771547715577156771577715877159771607716177162771637716477165771667716777168771697717077171771727717377174771757717677177771787717977180771817718277183771847718577186771877718877189771907719177192771937719477195771967719777198771997720077201772027720377204772057720677207772087720977210772117721277213772147721577216772177721877219772207722177222772237722477225772267722777228772297723077231772327723377234772357723677237772387723977240772417724277243772447724577246772477724877249772507725177252772537725477255772567725777258772597726077261772627726377264772657726677267772687726977270772717727277273772747727577276772777727877279772807728177282772837728477285772867728777288772897729077291772927729377294772957729677297772987729977300773017730277303773047730577306773077730877309773107731177312773137731477315773167731777318773197732077321773227732377324773257732677327773287732977330773317733277333773347733577336773377733877339773407734177342773437734477345773467734777348773497735077351773527735377354773557735677357773587735977360773617736277363773647736577366773677736877369773707737177372773737737477375773767737777378773797738077381773827738377384773857738677387773887738977390773917739277393773947739577396773977739877399774007740177402774037740477405774067740777408774097741077411774127741377414774157741677417774187741977420774217742277423774247742577426774277742877429774307743177432774337743477435774367743777438774397744077441774427744377444774457744677447774487744977450774517745277453774547745577456774577745877459774607746177462774637746477465774667746777468774697747077471774727747377474774757747677477774787747977480774817748277483774847748577486774877748877489774907749177492774937749477495774967749777498774997750077501775027750377504775057750677507775087750977510775117751277513775147751577516775177751877519775207752177522775237752477525775267752777528775297753077531775327753377534775357753677537775387753977540775417754277543775447754577546775477754877549775507755177552775537755477555775567755777558775597756077561775627756377564775657756677567775687756977570775717757277573775747757577576775777757877579775807758177582775837758477585775867758777588775897759077591775927759377594775957759677597775987759977600776017760277603776047760577606776077760877609776107761177612776137761477615776167761777618776197762077621776227762377624776257762677627776287762977630776317763277633776347763577636776377763877639776407764177642776437764477645776467764777648776497765077651776527765377654776557765677657776587765977660776617766277663776647766577666776677766877669776707767177672776737767477675776767767777678776797768077681776827768377684776857768677687776887768977690776917769277693776947769577696776977769877699777007770177702777037770477705777067770777708777097771077711777127771377714777157771677717777187771977720777217772277723777247772577726777277772877729777307773177732777337773477735777367773777738777397774077741777427774377744777457774677747777487774977750777517775277753777547775577756777577775877759777607776177762777637776477765777667776777768777697777077771777727777377774777757777677777777787777977780777817778277783777847778577786777877778877789777907779177792777937779477795777967779777798777997780077801778027780377804778057780677807778087780977810778117781277813778147781577816778177781877819778207782177822778237782477825778267782777828778297783077831778327783377834778357783677837778387783977840778417784277843778447784577846778477784877849778507785177852778537785477855778567785777858778597786077861778627786377864778657786677867778687786977870778717787277873778747787577876778777787877879778807788177882778837788477885778867788777888778897789077891778927789377894778957789677897778987789977900779017790277903779047790577906779077790877909779107791177912779137791477915779167791777918779197792077921779227792377924779257792677927779287792977930779317793277933779347793577936779377793877939779407794177942779437794477945779467794777948779497795077951779527795377954779557795677957779587795977960779617796277963779647796577966779677796877969779707797177972779737797477975779767797777978779797798077981779827798377984779857798677987779887798977990779917799277993779947799577996779977799877999780007800178002780037800478005780067800778008780097801078011780127801378014780157801678017780187801978020780217802278023780247802578026780277802878029780307803178032780337803478035780367803778038780397804078041780427804378044780457804678047780487804978050780517805278053780547805578056780577805878059780607806178062780637806478065780667806778068780697807078071780727807378074780757807678077780787807978080780817808278083780847808578086780877808878089780907809178092780937809478095780967809778098780997810078101781027810378104781057810678107781087810978110781117811278113781147811578116781177811878119781207812178122781237812478125781267812778128781297813078131781327813378134781357813678137781387813978140781417814278143781447814578146781477814878149781507815178152781537815478155781567815778158781597816078161781627816378164781657816678167781687816978170781717817278173781747817578176781777817878179781807818178182781837818478185781867818778188781897819078191781927819378194781957819678197781987819978200782017820278203782047820578206782077820878209782107821178212782137821478215782167821778218782197822078221782227822378224782257822678227782287822978230782317823278233782347823578236782377823878239782407824178242782437824478245782467824778248782497825078251782527825378254782557825678257782587825978260782617826278263782647826578266782677826878269782707827178272782737827478275782767827778278782797828078281782827828378284782857828678287782887828978290782917829278293782947829578296782977829878299783007830178302783037830478305783067830778308783097831078311783127831378314783157831678317783187831978320783217832278323783247832578326783277832878329783307833178332783337833478335783367833778338783397834078341783427834378344783457834678347783487834978350783517835278353783547835578356783577835878359783607836178362783637836478365783667836778368783697837078371783727837378374783757837678377783787837978380783817838278383783847838578386783877838878389783907839178392783937839478395783967839778398783997840078401784027840378404784057840678407784087840978410784117841278413784147841578416784177841878419784207842178422784237842478425784267842778428784297843078431784327843378434784357843678437784387843978440784417844278443784447844578446784477844878449784507845178452784537845478455784567845778458784597846078461784627846378464784657846678467784687846978470784717847278473784747847578476784777847878479784807848178482784837848478485784867848778488784897849078491784927849378494784957849678497784987849978500785017850278503785047850578506785077850878509785107851178512785137851478515785167851778518785197852078521785227852378524785257852678527785287852978530785317853278533785347853578536785377853878539785407854178542785437854478545785467854778548785497855078551785527855378554785557855678557785587855978560785617856278563785647856578566785677856878569785707857178572785737857478575785767857778578785797858078581785827858378584785857858678587785887858978590785917859278593785947859578596785977859878599786007860178602786037860478605786067860778608786097861078611786127861378614786157861678617786187861978620786217862278623786247862578626786277862878629786307863178632786337863478635786367863778638786397864078641786427864378644786457864678647786487864978650786517865278653786547865578656786577865878659786607866178662786637866478665786667866778668786697867078671786727867378674786757867678677786787867978680786817868278683786847868578686786877868878689786907869178692786937869478695786967869778698786997870078701787027870378704787057870678707787087870978710787117871278713787147871578716787177871878719787207872178722787237872478725787267872778728787297873078731787327873378734787357873678737787387873978740787417874278743787447874578746787477874878749787507875178752787537875478755787567875778758787597876078761787627876378764787657876678767787687876978770787717877278773787747877578776787777877878779787807878178782787837878478785787867878778788787897879078791787927879378794787957879678797787987879978800788017880278803788047880578806788077880878809788107881178812788137881478815788167881778818788197882078821788227882378824788257882678827788287882978830788317883278833788347883578836788377883878839788407884178842788437884478845788467884778848788497885078851788527885378854788557885678857788587885978860788617886278863788647886578866788677886878869788707887178872788737887478875788767887778878788797888078881788827888378884788857888678887788887888978890788917889278893788947889578896788977889878899789007890178902789037890478905789067890778908789097891078911789127891378914789157891678917789187891978920789217892278923789247892578926789277892878929789307893178932789337893478935789367893778938789397894078941789427894378944789457894678947789487894978950789517895278953789547895578956789577895878959789607896178962789637896478965789667896778968789697897078971789727897378974789757897678977789787897978980789817898278983789847898578986789877898878989789907899178992789937899478995789967899778998789997900079001790027900379004790057900679007790087900979010790117901279013790147901579016790177901879019790207902179022790237902479025790267902779028790297903079031790327903379034790357903679037790387903979040790417904279043790447904579046790477904879049790507905179052790537905479055790567905779058790597906079061790627906379064790657906679067790687906979070790717907279073790747907579076790777907879079790807908179082790837908479085790867908779088790897909079091790927909379094790957909679097790987909979100791017910279103791047910579106791077910879109791107911179112791137911479115791167911779118791197912079121791227912379124791257912679127791287912979130791317913279133791347913579136791377913879139791407914179142791437914479145791467914779148791497915079151791527915379154791557915679157791587915979160791617916279163791647916579166791677916879169791707917179172791737917479175791767917779178791797918079181791827918379184791857918679187791887918979190791917919279193791947919579196791977919879199792007920179202792037920479205792067920779208792097921079211792127921379214792157921679217792187921979220792217922279223792247922579226792277922879229792307923179232792337923479235792367923779238792397924079241792427924379244792457924679247792487924979250792517925279253792547925579256792577925879259792607926179262792637926479265792667926779268792697927079271792727927379274792757927679277792787927979280792817928279283792847928579286792877928879289792907929179292792937929479295792967929779298792997930079301793027930379304793057930679307793087930979310793117931279313793147931579316793177931879319793207932179322793237932479325793267932779328793297933079331793327933379334793357933679337793387933979340793417934279343793447934579346793477934879349793507935179352793537935479355793567935779358793597936079361793627936379364793657936679367793687936979370793717937279373793747937579376793777937879379793807938179382793837938479385793867938779388793897939079391793927939379394793957939679397793987939979400794017940279403794047940579406794077940879409794107941179412794137941479415794167941779418794197942079421794227942379424794257942679427794287942979430794317943279433794347943579436794377943879439794407944179442794437944479445794467944779448794497945079451794527945379454794557945679457794587945979460794617946279463794647946579466794677946879469794707947179472794737947479475794767947779478794797948079481794827948379484794857948679487794887948979490794917949279493794947949579496794977949879499795007950179502795037950479505795067950779508795097951079511795127951379514795157951679517795187951979520795217952279523795247952579526795277952879529795307953179532795337953479535795367953779538795397954079541795427954379544795457954679547795487954979550795517955279553795547955579556795577955879559795607956179562795637956479565795667956779568795697957079571795727957379574795757957679577795787957979580795817958279583795847958579586795877958879589795907959179592795937959479595795967959779598795997960079601796027960379604796057960679607796087960979610796117961279613796147961579616796177961879619796207962179622796237962479625796267962779628796297963079631796327963379634796357963679637796387963979640796417964279643796447964579646796477964879649796507965179652796537965479655796567965779658796597966079661796627966379664796657966679667796687966979670796717967279673796747967579676796777967879679796807968179682796837968479685796867968779688796897969079691796927969379694796957969679697796987969979700797017970279703797047970579706797077970879709797107971179712797137971479715797167971779718797197972079721797227972379724797257972679727797287972979730797317973279733797347973579736797377973879739797407974179742797437974479745797467974779748797497975079751797527975379754797557975679757797587975979760797617976279763797647976579766797677976879769797707977179772797737977479775797767977779778797797978079781797827978379784797857978679787797887978979790797917979279793797947979579796797977979879799798007980179802798037980479805798067980779808798097981079811798127981379814798157981679817798187981979820798217982279823798247982579826798277982879829798307983179832798337983479835798367983779838798397984079841798427984379844798457984679847798487984979850798517985279853798547985579856798577985879859798607986179862798637986479865798667986779868798697987079871798727987379874798757987679877798787987979880798817988279883798847988579886798877988879889798907989179892798937989479895798967989779898798997990079901799027990379904799057990679907799087990979910799117991279913799147991579916799177991879919799207992179922799237992479925799267992779928799297993079931799327993379934799357993679937799387993979940799417994279943799447994579946799477994879949799507995179952799537995479955799567995779958799597996079961799627996379964799657996679967799687996979970799717997279973799747997579976799777997879979799807998179982799837998479985799867998779988799897999079991799927999379994799957999679997799987999980000800018000280003800048000580006800078000880009800108001180012800138001480015800168001780018800198002080021800228002380024800258002680027800288002980030800318003280033800348003580036800378003880039800408004180042800438004480045800468004780048800498005080051800528005380054800558005680057800588005980060800618006280063800648006580066800678006880069800708007180072800738007480075800768007780078800798008080081800828008380084800858008680087800888008980090800918009280093800948009580096800978009880099801008010180102801038010480105801068010780108801098011080111801128011380114801158011680117801188011980120801218012280123801248012580126801278012880129801308013180132801338013480135801368013780138801398014080141801428014380144801458014680147801488014980150801518015280153801548015580156801578015880159801608016180162801638016480165801668016780168801698017080171801728017380174801758017680177801788017980180801818018280183801848018580186801878018880189801908019180192801938019480195801968019780198801998020080201802028020380204802058020680207802088020980210802118021280213802148021580216802178021880219802208022180222802238022480225802268022780228802298023080231802328023380234802358023680237802388023980240802418024280243802448024580246802478024880249802508025180252802538025480255802568025780258802598026080261802628026380264802658026680267802688026980270802718027280273802748027580276802778027880279802808028180282802838028480285802868028780288802898029080291802928029380294802958029680297802988029980300803018030280303803048030580306803078030880309803108031180312803138031480315803168031780318803198032080321803228032380324803258032680327803288032980330803318033280333803348033580336803378033880339803408034180342803438034480345803468034780348803498035080351803528035380354803558035680357803588035980360803618036280363803648036580366803678036880369803708037180372803738037480375803768037780378803798038080381803828038380384803858038680387803888038980390803918039280393803948039580396803978039880399804008040180402804038040480405804068040780408804098041080411804128041380414804158041680417804188041980420804218042280423804248042580426804278042880429804308043180432804338043480435804368043780438804398044080441804428044380444804458044680447804488044980450804518045280453804548045580456804578045880459804608046180462804638046480465804668046780468804698047080471804728047380474804758047680477804788047980480804818048280483804848048580486804878048880489804908049180492804938049480495804968049780498804998050080501805028050380504805058050680507805088050980510805118051280513805148051580516805178051880519805208052180522805238052480525805268052780528805298053080531805328053380534805358053680537805388053980540805418054280543805448054580546805478054880549805508055180552805538055480555805568055780558805598056080561805628056380564805658056680567805688056980570805718057280573805748057580576805778057880579805808058180582805838058480585805868058780588805898059080591805928059380594805958059680597805988059980600806018060280603806048060580606806078060880609806108061180612806138061480615806168061780618806198062080621806228062380624806258062680627806288062980630806318063280633806348063580636806378063880639806408064180642806438064480645806468064780648806498065080651806528065380654806558065680657806588065980660806618066280663806648066580666806678066880669806708067180672806738067480675806768067780678806798068080681806828068380684806858068680687806888068980690806918069280693806948069580696806978069880699807008070180702807038070480705807068070780708807098071080711807128071380714807158071680717807188071980720807218072280723807248072580726807278072880729807308073180732807338073480735807368073780738807398074080741807428074380744807458074680747807488074980750807518075280753807548075580756807578075880759807608076180762807638076480765807668076780768807698077080771807728077380774807758077680777807788077980780807818078280783807848078580786807878078880789807908079180792807938079480795807968079780798807998080080801808028080380804808058080680807808088080980810808118081280813808148081580816808178081880819808208082180822808238082480825808268082780828808298083080831808328083380834808358083680837808388083980840808418084280843808448084580846808478084880849808508085180852808538085480855808568085780858808598086080861808628086380864808658086680867808688086980870808718087280873808748087580876808778087880879808808088180882808838088480885808868088780888808898089080891808928089380894808958089680897808988089980900809018090280903809048090580906809078090880909809108091180912809138091480915809168091780918809198092080921809228092380924809258092680927809288092980930809318093280933809348093580936809378093880939809408094180942809438094480945809468094780948809498095080951809528095380954809558095680957809588095980960809618096280963809648096580966809678096880969809708097180972809738097480975809768097780978809798098080981809828098380984809858098680987809888098980990809918099280993809948099580996809978099880999810008100181002810038100481005810068100781008810098101081011810128101381014810158101681017810188101981020810218102281023810248102581026810278102881029810308103181032810338103481035810368103781038810398104081041810428104381044810458104681047810488104981050810518105281053810548105581056810578105881059810608106181062810638106481065810668106781068810698107081071810728107381074810758107681077810788107981080810818108281083810848108581086810878108881089810908109181092810938109481095810968109781098810998110081101811028110381104811058110681107811088110981110811118111281113811148111581116811178111881119811208112181122811238112481125811268112781128811298113081131811328113381134811358113681137811388113981140811418114281143811448114581146811478114881149811508115181152811538115481155811568115781158811598116081161811628116381164811658116681167811688116981170811718117281173811748117581176811778117881179811808118181182811838118481185811868118781188811898119081191811928119381194811958119681197811988119981200812018120281203812048120581206812078120881209812108121181212812138121481215812168121781218812198122081221812228122381224812258122681227812288122981230812318123281233812348123581236812378123881239812408124181242812438124481245812468124781248812498125081251812528125381254812558125681257812588125981260812618126281263812648126581266812678126881269812708127181272812738127481275812768127781278812798128081281812828128381284812858128681287812888128981290812918129281293812948129581296812978129881299813008130181302813038130481305813068130781308813098131081311813128131381314813158131681317813188131981320813218132281323813248132581326813278132881329813308133181332813338133481335813368133781338813398134081341813428134381344813458134681347813488134981350813518135281353813548135581356813578135881359813608136181362813638136481365813668136781368813698137081371813728137381374813758137681377813788137981380813818138281383813848138581386813878138881389813908139181392813938139481395813968139781398813998140081401814028140381404814058140681407814088140981410814118141281413814148141581416814178141881419814208142181422814238142481425814268142781428814298143081431814328143381434814358143681437814388143981440814418144281443814448144581446814478144881449814508145181452814538145481455814568145781458814598146081461814628146381464814658146681467814688146981470814718147281473814748147581476814778147881479814808148181482814838148481485814868148781488814898149081491814928149381494814958149681497814988149981500815018150281503815048150581506815078150881509815108151181512815138151481515815168151781518815198152081521815228152381524815258152681527815288152981530815318153281533815348153581536815378153881539815408154181542815438154481545815468154781548815498155081551815528155381554815558155681557815588155981560815618156281563815648156581566815678156881569815708157181572815738157481575815768157781578815798158081581815828158381584815858158681587815888158981590815918159281593815948159581596815978159881599816008160181602816038160481605816068160781608816098161081611816128161381614816158161681617816188161981620816218162281623816248162581626816278162881629816308163181632816338163481635816368163781638816398164081641816428164381644816458164681647816488164981650816518165281653816548165581656816578165881659816608166181662816638166481665816668166781668816698167081671816728167381674816758167681677816788167981680816818168281683816848168581686816878168881689816908169181692816938169481695816968169781698816998170081701817028170381704817058170681707817088170981710817118171281713817148171581716817178171881719817208172181722817238172481725817268172781728817298173081731817328173381734817358173681737817388173981740817418174281743817448174581746817478174881749817508175181752817538175481755817568175781758817598176081761817628176381764817658176681767817688176981770817718177281773817748177581776817778177881779817808178181782817838178481785817868178781788817898179081791817928179381794817958179681797817988179981800818018180281803818048180581806818078180881809818108181181812818138181481815818168181781818818198182081821818228182381824818258182681827818288182981830818318183281833818348183581836818378183881839818408184181842818438184481845818468184781848818498185081851818528185381854818558185681857818588185981860818618186281863818648186581866818678186881869818708187181872818738187481875818768187781878818798188081881818828188381884818858188681887818888188981890818918189281893818948189581896818978189881899819008190181902819038190481905819068190781908819098191081911819128191381914819158191681917819188191981920819218192281923819248192581926819278192881929819308193181932819338193481935819368193781938819398194081941819428194381944819458194681947819488194981950819518195281953819548195581956819578195881959819608196181962819638196481965819668196781968819698197081971819728197381974819758197681977819788197981980819818198281983819848198581986819878198881989819908199181992819938199481995819968199781998819998200082001820028200382004820058200682007820088200982010820118201282013820148201582016820178201882019820208202182022820238202482025820268202782028820298203082031820328203382034820358203682037820388203982040820418204282043820448204582046820478204882049820508205182052820538205482055820568205782058820598206082061820628206382064820658206682067820688206982070820718207282073820748207582076820778207882079820808208182082820838208482085820868208782088820898209082091820928209382094820958209682097820988209982100821018210282103821048210582106821078210882109821108211182112821138211482115821168211782118821198212082121821228212382124821258212682127821288212982130821318213282133821348213582136821378213882139821408214182142821438214482145821468214782148821498215082151821528215382154821558215682157821588215982160821618216282163821648216582166821678216882169821708217182172821738217482175821768217782178821798218082181821828218382184821858218682187821888218982190821918219282193821948219582196821978219882199822008220182202822038220482205822068220782208822098221082211822128221382214822158221682217822188221982220822218222282223822248222582226822278222882229822308223182232822338223482235822368223782238822398224082241822428224382244822458224682247822488224982250822518225282253822548225582256822578225882259822608226182262822638226482265822668226782268822698227082271822728227382274822758227682277822788227982280822818228282283822848228582286822878228882289822908229182292822938229482295822968229782298822998230082301823028230382304823058230682307823088230982310823118231282313823148231582316823178231882319823208232182322823238232482325823268232782328823298233082331823328233382334823358233682337823388233982340823418234282343823448234582346823478234882349823508235182352823538235482355823568235782358823598236082361823628236382364823658236682367823688236982370823718237282373823748237582376823778237882379823808238182382823838238482385823868238782388823898239082391823928239382394823958239682397823988239982400824018240282403824048240582406824078240882409824108241182412824138241482415824168241782418824198242082421824228242382424824258242682427824288242982430824318243282433824348243582436824378243882439824408244182442824438244482445824468244782448824498245082451824528245382454824558245682457824588245982460824618246282463824648246582466824678246882469824708247182472824738247482475824768247782478824798248082481824828248382484824858248682487824888248982490824918249282493824948249582496824978249882499825008250182502825038250482505825068250782508825098251082511825128251382514825158251682517825188251982520825218252282523825248252582526825278252882529825308253182532825338253482535825368253782538825398254082541825428254382544825458254682547825488254982550825518255282553825548255582556825578255882559825608256182562825638256482565825668256782568825698257082571825728257382574825758257682577825788257982580825818258282583825848258582586825878258882589825908259182592825938259482595825968259782598825998260082601826028260382604826058260682607826088260982610826118261282613826148261582616826178261882619826208262182622826238262482625826268262782628826298263082631826328263382634826358263682637826388263982640826418264282643826448264582646826478264882649826508265182652826538265482655826568265782658826598266082661826628266382664826658266682667826688266982670826718267282673826748267582676826778267882679826808268182682826838268482685826868268782688826898269082691826928269382694826958269682697826988269982700827018270282703827048270582706827078270882709827108271182712827138271482715827168271782718827198272082721827228272382724827258272682727827288272982730827318273282733827348273582736827378273882739827408274182742827438274482745827468274782748827498275082751827528275382754827558275682757827588275982760827618276282763827648276582766827678276882769827708277182772827738277482775827768277782778827798278082781827828278382784827858278682787827888278982790827918279282793827948279582796827978279882799828008280182802828038280482805828068280782808828098281082811828128281382814828158281682817828188281982820828218282282823828248282582826828278282882829828308283182832828338283482835828368283782838828398284082841828428284382844828458284682847828488284982850828518285282853828548285582856828578285882859828608286182862828638286482865828668286782868828698287082871828728287382874828758287682877828788287982880828818288282883828848288582886828878288882889828908289182892828938289482895828968289782898828998290082901829028290382904829058290682907829088290982910829118291282913829148291582916829178291882919829208292182922829238292482925829268292782928829298293082931829328293382934829358293682937829388293982940829418294282943829448294582946829478294882949829508295182952829538295482955829568295782958829598296082961829628296382964829658296682967829688296982970829718297282973829748297582976829778297882979829808298182982829838298482985829868298782988829898299082991829928299382994829958299682997829988299983000830018300283003830048300583006830078300883009830108301183012830138301483015830168301783018830198302083021830228302383024830258302683027830288302983030830318303283033830348303583036830378303883039830408304183042830438304483045830468304783048830498305083051830528305383054830558305683057830588305983060830618306283063830648306583066830678306883069830708307183072830738307483075830768307783078830798308083081830828308383084830858308683087830888308983090
  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:00:57 UTC 2012 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 1.1.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /grid/0/dev/mfoley/hadoop-1.1/build/ivy/lib/Hadoop/jdiff/jdiff-1.0.9.jar:/grid/0/dev/mfoley/hadoop-1.1/build/ivy/lib/Hadoop/jdiff/xerces-1.4.4.jar -classpath /grid/0/dev/mfoley/hadoop-1.1/build/classes:/grid/0/dev/mfoley/hadoop-1.1/lib/hsqldb-1.8.0.10.jar:/grid/0/dev/mfoley/hadoop-1.1/lib/jsp-2.1/jsp-2.1.jar:/grid/0/dev/mfoley/hadoop-1.1/lib/jsp-2.1/jsp-api-2.1.jar:/grid/0/dev/mfoley/hadoop-1.1/lib/kfs-0.2.2.jar:/homes/hortonfo/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar:/homes/hortonfo/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.0.1.jar:/homes/hortonfo/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/homes/hortonfo/.ivy2/cache/commons-cli/commons-cli/jars/commons-cli-1.2.jar:/homes/hortonfo/.ivy2/cache/commons-io/commons-io/jars/commons-io-2.1.jar:/homes/hortonfo/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/homes/hortonfo/.ivy2/cache/commons-daemon/commons-daemon/jars/commons-daemon-1.0.1.jar:/homes/hortonfo/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.6.1.jar:/homes/hortonfo/.ivy2/cache/commons-net/commons-net/jars/commons-net-3.1.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.26.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.26.jar:/homes/hortonfo/.ivy2/cache/org.mortbay.jetty/servlet-api/jars/servlet-api-2.5-20081211.jar:/homes/hortonfo/.ivy2/cache/asm/asm/jars/asm-3.2.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-core/bundles/jersey-core-1.8.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-json/bundles/jersey-json-1.8.jar:/homes/hortonfo/.ivy2/cache/com.sun.jersey/jersey-server/bundles/jersey-server-1.8.jar:/homes/hortonfo/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/homes/hortonfo/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/homes/hortonfo/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/homes/hortonfo/.ivy2/cache/commons-configuration/commons-configuration/jars/commons-configuration-1.6.jar:/homes/hortonfo/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.1.jar:/homes/hortonfo/.ivy2/cache/commons-lang/commons-lang/jars/commons-lang-2.4.jar:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar:/homes/hortonfo/.ivy2/cache/commons-digester/commons-digester/jars/commons-digester-1.8.jar:/homes/hortonfo/.ivy2/cache/commons-beanutils/commons-beanutils/jars/commons-beanutils-1.7.0.jar:/homes/hortonfo/.ivy2/cache/commons-beanutils/commons-beanutils-core/jars/commons-beanutils-core-1.8.0.jar:/homes/hortonfo/.ivy2/cache/org.apache.commons/commons-math/jars/commons-math-2.1.jar:/homes/hortonfo/.ivy2/cache/junit/junit/jars/junit-4.5.jar:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.0.4.jar:/homes/hortonfo/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.4.3.jar:/homes/hortonfo/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/homes/hortonfo/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/homes/hortonfo/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.4.3.jar:/homes/hortonfo/.ivy2/cache/org.codehaus.jackson/jackson-mapper-asl/jars/jackson-mapper-asl-1.8.8.jar:/homes/hortonfo/.ivy2/cache/org.codehaus.jackson/jackson-core-asl/jars/jackson-core-asl-1.8.8.jar:/homes/hortonfo/.ivy2/cache/org.mockito/mockito-all/jars/mockito-all-1.8.5.jar:/homes/hortonfo/.ivy2/cache/com.jcraft/jsch/jars/jsch-0.1.42.jar:/homes/hortonfo/.ivy2/cache/org.aspectj/aspectjrt/jars/aspectjrt-1.6.11.jar:/homes/hortonfo/.ivy2/cache/org.aspectj/aspectjtools/jars/aspectjtools-1.6.11.jar:/homes/hortonfo/.ivy2/cache/org.vafer/jdeb/maven-plugins/jdeb-0.8.jar:/grid/0/dev/mfoley/hadoop-1.1/conf:/homes/hortonfo/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.0.4.jar:/homes/hortonfo/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/homes/hortonfo/.ivy2/cache/xerces/xerces/jars/xerces-1.4.4.jar:/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.1/src/core:/grid/0/dev/mfoley/hadoop-1.1/src/mapred:/grid/0/dev/mfoley/hadoop-1.1/src/tools -apidir /grid/0/dev/mfoley/hadoop-1.1/lib/jdiff -apiname hadoop 1.1.0 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start interface org.apache.hadoop.HadoopVersionAnnotation -->
  13. <interface name="HadoopVersionAnnotation" abstract="true"
  14. static="false" final="false" visibility="public"
  15. deprecated="not deprecated">
  16. <implements name="java.lang.annotation.Annotation"/>
  17. <method name="version" return="java.lang.String"
  18. abstract="false" native="false" synchronized="false"
  19. static="false" final="false" visibility="public"
  20. deprecated="not deprecated">
  21. <doc>
  22. <![CDATA[Get the Hadoop version
  23. @return the version string "0.6.3-dev"]]>
  24. </doc>
  25. </method>
  26. <method name="user" return="java.lang.String"
  27. abstract="false" native="false" synchronized="false"
  28. static="false" final="false" visibility="public"
  29. deprecated="not deprecated">
  30. <doc>
  31. <![CDATA[Get the username that compiled Hadoop.]]>
  32. </doc>
  33. </method>
  34. <method name="date" return="java.lang.String"
  35. abstract="false" native="false" synchronized="false"
  36. static="false" final="false" visibility="public"
  37. deprecated="not deprecated">
  38. <doc>
  39. <![CDATA[Get the date when Hadoop was compiled.
  40. @return the date in unix 'date' format]]>
  41. </doc>
  42. </method>
  43. <method name="url" return="java.lang.String"
  44. abstract="false" native="false" synchronized="false"
  45. static="false" final="false" visibility="public"
  46. deprecated="not deprecated">
  47. <doc>
  48. <![CDATA[Get the url for the subversion repository.]]>
  49. </doc>
  50. </method>
  51. <method name="revision" return="java.lang.String"
  52. abstract="false" native="false" synchronized="false"
  53. static="false" final="false" visibility="public"
  54. deprecated="not deprecated">
  55. <doc>
  56. <![CDATA[Get the subversion revision.
  57. @return the revision number as a string (eg. "451451")]]>
  58. </doc>
  59. </method>
  60. <method name="srcChecksum" return="java.lang.String"
  61. abstract="false" native="false" synchronized="false"
  62. static="false" final="false" visibility="public"
  63. deprecated="not deprecated">
  64. <doc>
  65. <![CDATA[Get a checksum of the source files from which
  66. Hadoop was compiled.
  67. @return a string that uniquely identifies the source]]>
  68. </doc>
  69. </method>
  70. <doc>
  71. <![CDATA[A package attribute that captures the version of Hadoop that was compiled.]]>
  72. </doc>
  73. </interface>
  74. <!-- end interface org.apache.hadoop.HadoopVersionAnnotation -->
  75. </package>
  76. <package name="org.apache.hadoop.classification">
  77. <!-- start class org.apache.hadoop.classification.InterfaceAudience -->
  78. <class name="InterfaceAudience" extends="java.lang.Object"
  79. abstract="false"
  80. static="false" final="false" visibility="public"
  81. deprecated="not deprecated">
  82. <doc>
  83. <![CDATA[Annotation to inform users of a package, class or method's intended audience.]]>
  84. </doc>
  85. </class>
  86. <!-- end class org.apache.hadoop.classification.InterfaceAudience -->
  87. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  88. <interface name="InterfaceAudience.LimitedPrivate" abstract="true"
  89. static="true" final="false" visibility="public"
  90. deprecated="not deprecated">
  91. <implements name="java.lang.annotation.Annotation"/>
  92. <method name="value" return="java.lang.String[]"
  93. abstract="false" native="false" synchronized="false"
  94. static="false" final="false" visibility="public"
  95. deprecated="not deprecated">
  96. </method>
  97. <doc>
  98. <![CDATA[Intended only for the project(s) specified in the annotation.
  99. For example, "Common", "HDFS", "MapReduce", "ZooKeeper", "HBase".]]>
  100. </doc>
  101. </interface>
  102. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  103. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  104. <interface name="InterfaceAudience.Private" abstract="true"
  105. static="true" final="false" visibility="public"
  106. deprecated="not deprecated">
  107. <implements name="java.lang.annotation.Annotation"/>
  108. <doc>
  109. <![CDATA[Intended for use only within Hadoop itself.]]>
  110. </doc>
  111. </interface>
  112. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  113. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  114. <interface name="InterfaceAudience.Public" abstract="true"
  115. static="true" final="false" visibility="public"
  116. deprecated="not deprecated">
  117. <implements name="java.lang.annotation.Annotation"/>
  118. <doc>
  119. <![CDATA[Intended for use by any project or application.]]>
  120. </doc>
  121. </interface>
  122. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  123. <!-- start class org.apache.hadoop.classification.InterfaceStability -->
  124. <class name="InterfaceStability" extends="java.lang.Object"
  125. abstract="false"
  126. static="false" final="false" visibility="public"
  127. deprecated="not deprecated">
  128. <constructor name="InterfaceStability"
  129. static="false" final="false" visibility="public"
  130. deprecated="not deprecated">
  131. </constructor>
  132. <doc>
  133. <![CDATA[Annotation to inform users of how much to rely on a particular package,
  134. class or method not changing over time.]]>
  135. </doc>
  136. </class>
  137. <!-- end class org.apache.hadoop.classification.InterfaceStability -->
  138. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  139. <interface name="InterfaceStability.Evolving" abstract="true"
  140. static="true" final="false" visibility="public"
  141. deprecated="not deprecated">
  142. <implements name="java.lang.annotation.Annotation"/>
  143. <doc>
  144. <![CDATA[Evolving, but can break compatibility at minor release (i.e. m.x)]]>
  145. </doc>
  146. </interface>
  147. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  148. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  149. <interface name="InterfaceStability.Stable" abstract="true"
  150. static="true" final="false" visibility="public"
  151. deprecated="not deprecated">
  152. <implements name="java.lang.annotation.Annotation"/>
  153. <doc>
  154. <![CDATA[Can evolve while retaining compatibility for minor release boundaries.;
  155. can break compatibility only at major release (ie. at m.0).]]>
  156. </doc>
  157. </interface>
  158. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  159. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  160. <interface name="InterfaceStability.Unstable" abstract="true"
  161. static="true" final="false" visibility="public"
  162. deprecated="not deprecated">
  163. <implements name="java.lang.annotation.Annotation"/>
  164. <doc>
  165. <![CDATA[No guarantee is provided as to reliability or stability across any
  166. level of release granularity.]]>
  167. </doc>
  168. </interface>
  169. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  170. </package>
  171. <package name="org.apache.hadoop.conf">
  172. <!-- start interface org.apache.hadoop.conf.Configurable -->
  173. <interface name="Configurable" abstract="true"
  174. static="false" final="false" visibility="public"
  175. deprecated="not deprecated">
  176. <method name="setConf"
  177. abstract="false" native="false" synchronized="false"
  178. static="false" final="false" visibility="public"
  179. deprecated="not deprecated">
  180. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  181. <doc>
  182. <![CDATA[Set the configuration to be used by this object.]]>
  183. </doc>
  184. </method>
  185. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  186. abstract="false" native="false" synchronized="false"
  187. static="false" final="false" visibility="public"
  188. deprecated="not deprecated">
  189. <doc>
  190. <![CDATA[Return the configuration used by this object.]]>
  191. </doc>
  192. </method>
  193. <doc>
  194. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  195. </doc>
  196. </interface>
  197. <!-- end interface org.apache.hadoop.conf.Configurable -->
  198. <!-- start class org.apache.hadoop.conf.Configuration -->
  199. <class name="Configuration" extends="java.lang.Object"
  200. abstract="false"
  201. static="false" final="false" visibility="public"
  202. deprecated="not deprecated">
  203. <implements name="java.lang.Iterable"/>
  204. <implements name="org.apache.hadoop.io.Writable"/>
  205. <constructor name="Configuration"
  206. static="false" final="false" visibility="public"
  207. deprecated="not deprecated">
  208. <doc>
  209. <![CDATA[A new configuration.]]>
  210. </doc>
  211. </constructor>
  212. <constructor name="Configuration" type="boolean"
  213. static="false" final="false" visibility="public"
  214. deprecated="not deprecated">
  215. <doc>
  216. <![CDATA[A new configuration where the behavior of reading from the default
  217. resources can be turned off.
  218. If the parameter {@code loadDefaults} is false, the new instance
  219. will not load resources from the default files.
  220. @param loadDefaults specifies whether to load from the default files]]>
  221. </doc>
  222. </constructor>
  223. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  224. static="false" final="false" visibility="public"
  225. deprecated="not deprecated">
  226. <doc>
  227. <![CDATA[A new configuration with the same settings cloned from another.
  228. @param other the configuration from which to clone settings.]]>
  229. </doc>
  230. </constructor>
  231. <method name="addDefaultResource"
  232. abstract="false" native="false" synchronized="true"
  233. static="true" final="false" visibility="public"
  234. deprecated="not deprecated">
  235. <param name="name" type="java.lang.String"/>
  236. <doc>
  237. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  238. added.
  239. @param name file name. File should be present in the classpath.]]>
  240. </doc>
  241. </method>
  242. <method name="addResource"
  243. abstract="false" native="false" synchronized="false"
  244. static="false" final="false" visibility="public"
  245. deprecated="not deprecated">
  246. <param name="name" type="java.lang.String"/>
  247. <doc>
  248. <![CDATA[Add a configuration resource.
  249. The properties of this resource will override properties of previously
  250. added resources, unless they were marked <a href="#Final">final</a>.
  251. @param name resource to be added, the classpath is examined for a file
  252. with that name.]]>
  253. </doc>
  254. </method>
  255. <method name="addResource"
  256. abstract="false" native="false" synchronized="false"
  257. static="false" final="false" visibility="public"
  258. deprecated="not deprecated">
  259. <param name="url" type="java.net.URL"/>
  260. <doc>
  261. <![CDATA[Add a configuration resource.
  262. The properties of this resource will override properties of previously
  263. added resources, unless they were marked <a href="#Final">final</a>.
  264. @param url url of the resource to be added, the local filesystem is
  265. examined directly to find the resource, without referring to
  266. the classpath.]]>
  267. </doc>
  268. </method>
  269. <method name="addResource"
  270. abstract="false" native="false" synchronized="false"
  271. static="false" final="false" visibility="public"
  272. deprecated="not deprecated">
  273. <param name="file" type="org.apache.hadoop.fs.Path"/>
  274. <doc>
  275. <![CDATA[Add a configuration resource.
  276. The properties of this resource will override properties of previously
  277. added resources, unless they were marked <a href="#Final">final</a>.
  278. @param file file-path of resource to be added, the local filesystem is
  279. examined directly to find the resource, without referring to
  280. the classpath.]]>
  281. </doc>
  282. </method>
  283. <method name="addResource"
  284. abstract="false" native="false" synchronized="false"
  285. static="false" final="false" visibility="public"
  286. deprecated="not deprecated">
  287. <param name="in" type="java.io.InputStream"/>
  288. <doc>
  289. <![CDATA[Add a configuration resource.
  290. The properties of this resource will override properties of previously
  291. added resources, unless they were marked <a href="#Final">final</a>.
  292. @param in InputStream to deserialize the object from.]]>
  293. </doc>
  294. </method>
  295. <method name="reloadConfiguration"
  296. abstract="false" native="false" synchronized="true"
  297. static="false" final="false" visibility="public"
  298. deprecated="not deprecated">
  299. <doc>
  300. <![CDATA[Reload configuration from previously added resources.
  301. This method will clear all the configuration read from the added
  302. resources, and final parameters. This will make the resources to
  303. be read again before accessing the values. Values that are added
  304. via set methods will overlay values read from the resources.]]>
  305. </doc>
  306. </method>
  307. <method name="get" return="java.lang.String"
  308. abstract="false" native="false" synchronized="false"
  309. static="false" final="false" visibility="public"
  310. deprecated="not deprecated">
  311. <param name="name" type="java.lang.String"/>
  312. <doc>
  313. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  314. no such property exists.
  315. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  316. before being returned.
  317. @param name the property name.
  318. @return the value of the <code>name</code> property,
  319. or null if no such property exists.]]>
  320. </doc>
  321. </method>
  322. <method name="getRaw" return="java.lang.String"
  323. abstract="false" native="false" synchronized="false"
  324. static="false" final="false" visibility="public"
  325. deprecated="not deprecated">
  326. <param name="name" type="java.lang.String"/>
  327. <doc>
  328. <![CDATA[Get the value of the <code>name</code> property, without doing
  329. <a href="#VariableExpansion">variable expansion</a>.
  330. @param name the property name.
  331. @return the value of the <code>name</code> property,
  332. or null if no such property exists.]]>
  333. </doc>
  334. </method>
  335. <method name="set"
  336. abstract="false" native="false" synchronized="false"
  337. static="false" final="false" visibility="public"
  338. deprecated="not deprecated">
  339. <param name="name" type="java.lang.String"/>
  340. <param name="value" type="java.lang.String"/>
  341. <doc>
  342. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  343. @param name property name.
  344. @param value property value.]]>
  345. </doc>
  346. </method>
  347. <method name="setIfUnset"
  348. abstract="false" native="false" synchronized="false"
  349. static="false" final="false" visibility="public"
  350. deprecated="not deprecated">
  351. <param name="name" type="java.lang.String"/>
  352. <param name="value" type="java.lang.String"/>
  353. <doc>
  354. <![CDATA[Sets a property if it is currently unset.
  355. @param name the property name
  356. @param value the new value]]>
  357. </doc>
  358. </method>
  359. <method name="get" return="java.lang.String"
  360. abstract="false" native="false" synchronized="false"
  361. static="false" final="false" visibility="public"
  362. deprecated="not deprecated">
  363. <param name="name" type="java.lang.String"/>
  364. <param name="defaultValue" type="java.lang.String"/>
  365. <doc>
  366. <![CDATA[Get the value of the <code>name</code> property. If no such property
  367. exists, then <code>defaultValue</code> is returned.
  368. @param name property name.
  369. @param defaultValue default value.
  370. @return property value, or <code>defaultValue</code> if the property
  371. doesn't exist.]]>
  372. </doc>
  373. </method>
  374. <method name="getInt" return="int"
  375. abstract="false" native="false" synchronized="false"
  376. static="false" final="false" visibility="public"
  377. deprecated="not deprecated">
  378. <param name="name" type="java.lang.String"/>
  379. <param name="defaultValue" type="int"/>
  380. <doc>
  381. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  382. If no such property exists, or if the specified value is not a valid
  383. <code>int</code>, then <code>defaultValue</code> is returned.
  384. @param name property name.
  385. @param defaultValue default value.
  386. @return property value as an <code>int</code>,
  387. or <code>defaultValue</code>.]]>
  388. </doc>
  389. </method>
  390. <method name="setInt"
  391. abstract="false" native="false" synchronized="false"
  392. static="false" final="false" visibility="public"
  393. deprecated="not deprecated">
  394. <param name="name" type="java.lang.String"/>
  395. <param name="value" type="int"/>
  396. <doc>
  397. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  398. @param name property name.
  399. @param value <code>int</code> value of the property.]]>
  400. </doc>
  401. </method>
  402. <method name="getLong" return="long"
  403. abstract="false" native="false" synchronized="false"
  404. static="false" final="false" visibility="public"
  405. deprecated="not deprecated">
  406. <param name="name" type="java.lang.String"/>
  407. <param name="defaultValue" type="long"/>
  408. <doc>
  409. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  410. If no such property is specified, or if the specified value is not a valid
  411. <code>long</code>, then <code>defaultValue</code> is returned.
  412. @param name property name.
  413. @param defaultValue default value.
  414. @return property value as a <code>long</code>,
  415. or <code>defaultValue</code>.]]>
  416. </doc>
  417. </method>
  418. <method name="setLong"
  419. abstract="false" native="false" synchronized="false"
  420. static="false" final="false" visibility="public"
  421. deprecated="not deprecated">
  422. <param name="name" type="java.lang.String"/>
  423. <param name="value" type="long"/>
  424. <doc>
  425. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  426. @param name property name.
  427. @param value <code>long</code> value of the property.]]>
  428. </doc>
  429. </method>
  430. <method name="getFloat" return="float"
  431. abstract="false" native="false" synchronized="false"
  432. static="false" final="false" visibility="public"
  433. deprecated="not deprecated">
  434. <param name="name" type="java.lang.String"/>
  435. <param name="defaultValue" type="float"/>
  436. <doc>
  437. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  438. If no such property is specified, or if the specified value is not a valid
  439. <code>float</code>, then <code>defaultValue</code> is returned.
  440. @param name property name.
  441. @param defaultValue default value.
  442. @return property value as a <code>float</code>,
  443. or <code>defaultValue</code>.]]>
  444. </doc>
  445. </method>
  446. <method name="setFloat"
  447. abstract="false" native="false" synchronized="false"
  448. static="false" final="false" visibility="public"
  449. deprecated="not deprecated">
  450. <param name="name" type="java.lang.String"/>
  451. <param name="value" type="float"/>
  452. <doc>
  453. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  454. @param name property name.
  455. @param value property value.]]>
  456. </doc>
  457. </method>
  458. <method name="getBoolean" return="boolean"
  459. abstract="false" native="false" synchronized="false"
  460. static="false" final="false" visibility="public"
  461. deprecated="not deprecated">
  462. <param name="name" type="java.lang.String"/>
  463. <param name="defaultValue" type="boolean"/>
  464. <doc>
  465. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  466. If no such property is specified, or if the specified value is not a valid
  467. <code>boolean</code>, then <code>defaultValue</code> is returned.
  468. @param name property name.
  469. @param defaultValue default value.
  470. @return property value as a <code>boolean</code>,
  471. or <code>defaultValue</code>.]]>
  472. </doc>
  473. </method>
  474. <method name="setBoolean"
  475. abstract="false" native="false" synchronized="false"
  476. static="false" final="false" visibility="public"
  477. deprecated="not deprecated">
  478. <param name="name" type="java.lang.String"/>
  479. <param name="value" type="boolean"/>
  480. <doc>
  481. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  482. @param name property name.
  483. @param value <code>boolean</code> value of the property.]]>
  484. </doc>
  485. </method>
  486. <method name="setBooleanIfUnset"
  487. abstract="false" native="false" synchronized="false"
  488. static="false" final="false" visibility="public"
  489. deprecated="not deprecated">
  490. <param name="name" type="java.lang.String"/>
  491. <param name="value" type="boolean"/>
  492. <doc>
  493. <![CDATA[Set the given property, if it is currently unset.
  494. @param name property name
  495. @param value new value]]>
  496. </doc>
  497. </method>
  498. <method name="setEnum"
  499. abstract="false" native="false" synchronized="false"
  500. static="false" final="false" visibility="public"
  501. deprecated="not deprecated">
  502. <param name="name" type="java.lang.String"/>
  503. <param name="value" type="java.lang.Enum"/>
  504. <doc>
  505. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  506. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  507. @param name property name
  508. @param value new value]]>
  509. </doc>
  510. </method>
  511. <method name="getEnum" return="java.lang.Enum"
  512. abstract="false" native="false" synchronized="false"
  513. static="false" final="false" visibility="public"
  514. deprecated="not deprecated">
  515. <param name="name" type="java.lang.String"/>
  516. <param name="defaultValue" type="java.lang.Enum"/>
  517. <doc>
  518. <![CDATA[Return value matching this enumerated type.
  519. @param name Property name
  520. @param defaultValue Value returned if no mapping exists
  521. @throws IllegalArgumentException If mapping is illegal for the type
  522. provided]]>
  523. </doc>
  524. </method>
  525. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  526. abstract="false" native="false" synchronized="false"
  527. static="false" final="false" visibility="public"
  528. deprecated="not deprecated">
  529. <param name="name" type="java.lang.String"/>
  530. <param name="defaultValue" type="java.lang.String"/>
  531. <doc>
  532. <![CDATA[Parse the given attribute as a set of integer ranges
  533. @param name the attribute name
  534. @param defaultValue the default value if it is not set
  535. @return a new set of ranges from the configured value]]>
  536. </doc>
  537. </method>
  538. <method name="getStringCollection" return="java.util.Collection"
  539. abstract="false" native="false" synchronized="false"
  540. static="false" final="false" visibility="public"
  541. deprecated="not deprecated">
  542. <param name="name" type="java.lang.String"/>
  543. <doc>
  544. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  545. a collection of <code>String</code>s.
  546. If no such property is specified then empty collection is returned.
  547. <p>
  548. This is an optimized version of {@link #getStrings(String)}
  549. @param name property name.
  550. @return property value as a collection of <code>String</code>s.]]>
  551. </doc>
  552. </method>
  553. <method name="getStrings" return="java.lang.String[]"
  554. abstract="false" native="false" synchronized="false"
  555. static="false" final="false" visibility="public"
  556. deprecated="not deprecated">
  557. <param name="name" type="java.lang.String"/>
  558. <doc>
  559. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  560. an array of <code>String</code>s.
  561. If no such property is specified then <code>null</code> is returned.
  562. @param name property name.
  563. @return property value as an array of <code>String</code>s,
  564. or <code>null</code>.]]>
  565. </doc>
  566. </method>
  567. <method name="getStrings" return="java.lang.String[]"
  568. abstract="false" native="false" synchronized="false"
  569. static="false" final="false" visibility="public"
  570. deprecated="not deprecated">
  571. <param name="name" type="java.lang.String"/>
  572. <param name="defaultValue" type="java.lang.String[]"/>
  573. <doc>
  574. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  575. an array of <code>String</code>s.
  576. If no such property is specified then default value is returned.
  577. @param name property name.
  578. @param defaultValue The default value
  579. @return property value as an array of <code>String</code>s,
  580. or default value.]]>
  581. </doc>
  582. </method>
  583. <method name="setStrings"
  584. abstract="false" native="false" synchronized="false"
  585. static="false" final="false" visibility="public"
  586. deprecated="not deprecated">
  587. <param name="name" type="java.lang.String"/>
  588. <param name="values" type="java.lang.String[]"/>
  589. <doc>
  590. <![CDATA[Set the array of string values for the <code>name</code> property as
  591. as comma delimited values.
  592. @param name property name.
  593. @param values The values]]>
  594. </doc>
  595. </method>
  596. <method name="getClassByName" return="java.lang.Class"
  597. abstract="false" native="false" synchronized="false"
  598. static="false" final="false" visibility="public"
  599. deprecated="not deprecated">
  600. <param name="name" type="java.lang.String"/>
  601. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  602. <doc>
  603. <![CDATA[Load a class by name.
  604. @param name the class name.
  605. @return the class object.
  606. @throws ClassNotFoundException if the class is not found.]]>
  607. </doc>
  608. </method>
  609. <method name="getClasses" return="java.lang.Class[]"
  610. abstract="false" native="false" synchronized="false"
  611. static="false" final="false" visibility="public"
  612. deprecated="not deprecated">
  613. <param name="name" type="java.lang.String"/>
  614. <param name="defaultValue" type="java.lang.Class[]"/>
  615. <doc>
  616. <![CDATA[Get the value of the <code>name</code> property
  617. as an array of <code>Class</code>.
  618. The value of the property specifies a list of comma separated class names.
  619. If no such property is specified, then <code>defaultValue</code> is
  620. returned.
  621. @param name the property name.
  622. @param defaultValue default value.
  623. @return property value as a <code>Class[]</code>,
  624. or <code>defaultValue</code>.]]>
  625. </doc>
  626. </method>
  627. <method name="getClass" return="java.lang.Class"
  628. abstract="false" native="false" synchronized="false"
  629. static="false" final="false" visibility="public"
  630. deprecated="not deprecated">
  631. <param name="name" type="java.lang.String"/>
  632. <param name="defaultValue" type="java.lang.Class"/>
  633. <doc>
  634. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  635. If no such property is specified, then <code>defaultValue</code> is
  636. returned.
  637. @param name the class name.
  638. @param defaultValue default value.
  639. @return property value as a <code>Class</code>,
  640. or <code>defaultValue</code>.]]>
  641. </doc>
  642. </method>
  643. <method name="getClass" return="java.lang.Class"
  644. abstract="false" native="false" synchronized="false"
  645. static="false" final="false" visibility="public"
  646. deprecated="not deprecated">
  647. <param name="name" type="java.lang.String"/>
  648. <param name="defaultValue" type="java.lang.Class"/>
  649. <param name="xface" type="java.lang.Class"/>
  650. <doc>
  651. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  652. implementing the interface specified by <code>xface</code>.
  653. If no such property is specified, then <code>defaultValue</code> is
  654. returned.
  655. An exception is thrown if the returned class does not implement the named
  656. interface.
  657. @param name the class name.
  658. @param defaultValue default value.
  659. @param xface the interface implemented by the named class.
  660. @return property value as a <code>Class</code>,
  661. or <code>defaultValue</code>.]]>
  662. </doc>
  663. </method>
  664. <method name="getInstances" return="java.util.List"
  665. abstract="false" native="false" synchronized="false"
  666. static="false" final="false" visibility="public"
  667. deprecated="not deprecated">
  668. <param name="name" type="java.lang.String"/>
  669. <param name="xface" type="java.lang.Class"/>
  670. <doc>
  671. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  672. of objects implementing the interface specified by <code>xface</code>.
  673. An exception is thrown if any of the classes does not exist, or if it does
  674. not implement the named interface.
  675. @param name the property name.
  676. @param xface the interface implemented by the classes named by
  677. <code>name</code>.
  678. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  679. </doc>
  680. </method>
  681. <method name="setClass"
  682. abstract="false" native="false" synchronized="false"
  683. static="false" final="false" visibility="public"
  684. deprecated="not deprecated">
  685. <param name="name" type="java.lang.String"/>
  686. <param name="theClass" type="java.lang.Class"/>
  687. <param name="xface" type="java.lang.Class"/>
  688. <doc>
  689. <![CDATA[Set the value of the <code>name</code> property to the name of a
  690. <code>theClass</code> implementing the given interface <code>xface</code>.
  691. An exception is thrown if <code>theClass</code> does not implement the
  692. interface <code>xface</code>.
  693. @param name property name.
  694. @param theClass property value.
  695. @param xface the interface implemented by the named class.]]>
  696. </doc>
  697. </method>
  698. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  699. abstract="false" native="false" synchronized="false"
  700. static="false" final="false" visibility="public"
  701. deprecated="not deprecated">
  702. <param name="dirsProp" type="java.lang.String"/>
  703. <param name="path" type="java.lang.String"/>
  704. <exception name="IOException" type="java.io.IOException"/>
  705. <doc>
  706. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  707. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  708. then one is chosen based on <i>path</i>'s hash code. If the selected
  709. directory does not exist, an attempt is made to create it.
  710. @param dirsProp directory in which to locate the file.
  711. @param path file-path.
  712. @return local file under the directory with the given path.]]>
  713. </doc>
  714. </method>
  715. <method name="getFile" return="java.io.File"
  716. abstract="false" native="false" synchronized="false"
  717. static="false" final="false" visibility="public"
  718. deprecated="not deprecated">
  719. <param name="dirsProp" type="java.lang.String"/>
  720. <param name="path" type="java.lang.String"/>
  721. <exception name="IOException" type="java.io.IOException"/>
  722. <doc>
  723. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  724. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  725. then one is chosen based on <i>path</i>'s hash code. If the selected
  726. directory does not exist, an attempt is made to create it.
  727. @param dirsProp directory in which to locate the file.
  728. @param path file-path.
  729. @return local file under the directory with the given path.]]>
  730. </doc>
  731. </method>
  732. <method name="getResource" return="java.net.URL"
  733. abstract="false" native="false" synchronized="false"
  734. static="false" final="false" visibility="public"
  735. deprecated="not deprecated">
  736. <param name="name" type="java.lang.String"/>
  737. <doc>
  738. <![CDATA[Get the {@link URL} for the named resource.
  739. @param name resource name.
  740. @return the url for the named resource.]]>
  741. </doc>
  742. </method>
  743. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  744. abstract="false" native="false" synchronized="false"
  745. static="false" final="false" visibility="public"
  746. deprecated="not deprecated">
  747. <param name="name" type="java.lang.String"/>
  748. <doc>
  749. <![CDATA[Get an input stream attached to the configuration resource with the
  750. given <code>name</code>.
  751. @param name configuration resource name.
  752. @return an input stream attached to the resource.]]>
  753. </doc>
  754. </method>
  755. <method name="getConfResourceAsReader" return="java.io.Reader"
  756. abstract="false" native="false" synchronized="false"
  757. static="false" final="false" visibility="public"
  758. deprecated="not deprecated">
  759. <param name="name" type="java.lang.String"/>
  760. <doc>
  761. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  762. given <code>name</code>.
  763. @param name configuration resource name.
  764. @return a reader attached to the resource.]]>
  765. </doc>
  766. </method>
  767. <method name="size" return="int"
  768. abstract="false" native="false" synchronized="false"
  769. static="false" final="false" visibility="public"
  770. deprecated="not deprecated">
  771. <doc>
  772. <![CDATA[Return the number of keys in the configuration.
  773. @return number of keys in the configuration.]]>
  774. </doc>
  775. </method>
  776. <method name="clear"
  777. abstract="false" native="false" synchronized="false"
  778. static="false" final="false" visibility="public"
  779. deprecated="not deprecated">
  780. <doc>
  781. <![CDATA[Clears all keys from the configuration.]]>
  782. </doc>
  783. </method>
  784. <method name="iterator" return="java.util.Iterator"
  785. abstract="false" native="false" synchronized="false"
  786. static="false" final="false" visibility="public"
  787. deprecated="not deprecated">
  788. <doc>
  789. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  790. key-value pairs in the configuration.
  791. @return an iterator over the entries.]]>
  792. </doc>
  793. </method>
  794. <method name="writeXml"
  795. abstract="false" native="false" synchronized="false"
  796. static="false" final="false" visibility="public"
  797. deprecated="not deprecated">
  798. <param name="out" type="java.io.OutputStream"/>
  799. <exception name="IOException" type="java.io.IOException"/>
  800. <doc>
  801. <![CDATA[Write out the non-default properties in this configuration to the give
  802. {@link OutputStream}.
  803. @param out the output stream to write to.]]>
  804. </doc>
  805. </method>
  806. <method name="dumpConfiguration"
  807. abstract="false" native="false" synchronized="false"
  808. static="true" final="false" visibility="public"
  809. deprecated="not deprecated">
  810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  811. <param name="out" type="java.io.Writer"/>
  812. <exception name="IOException" type="java.io.IOException"/>
  813. <doc>
  814. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  815. the given {@link Writer}
  816. The format of the output would be
  817. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  818. key2.isFinal,key2.resource}... ] }
  819. It does not output the parameters of the configuration object which is
  820. loaded from an input stream.
  821. @param out the Writer to write to
  822. @throws IOException]]>
  823. </doc>
  824. </method>
  825. <method name="getClassLoader" return="java.lang.ClassLoader"
  826. abstract="false" native="false" synchronized="false"
  827. static="false" final="false" visibility="public"
  828. deprecated="not deprecated">
  829. <doc>
  830. <![CDATA[Get the {@link ClassLoader} for this job.
  831. @return the correct class loader.]]>
  832. </doc>
  833. </method>
  834. <method name="setClassLoader"
  835. abstract="false" native="false" synchronized="false"
  836. static="false" final="false" visibility="public"
  837. deprecated="not deprecated">
  838. <param name="classLoader" type="java.lang.ClassLoader"/>
  839. <doc>
  840. <![CDATA[Set the class loader that will be used to load the various objects.
  841. @param classLoader the new class loader.]]>
  842. </doc>
  843. </method>
  844. <method name="toString" return="java.lang.String"
  845. abstract="false" native="false" synchronized="false"
  846. static="false" final="false" visibility="public"
  847. deprecated="not deprecated">
  848. </method>
  849. <method name="setQuietMode"
  850. abstract="false" native="false" synchronized="true"
  851. static="false" final="false" visibility="public"
  852. deprecated="not deprecated">
  853. <param name="quietmode" type="boolean"/>
  854. <doc>
  855. <![CDATA[Set the quietness-mode.
  856. In the quiet-mode, error and informational messages might not be logged.
  857. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  858. to turn it off.]]>
  859. </doc>
  860. </method>
  861. <method name="main"
  862. abstract="false" native="false" synchronized="false"
  863. static="true" final="false" visibility="public"
  864. deprecated="not deprecated">
  865. <param name="args" type="java.lang.String[]"/>
  866. <exception name="Exception" type="java.lang.Exception"/>
  867. <doc>
  868. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  869. </doc>
  870. </method>
  871. <method name="readFields"
  872. abstract="false" native="false" synchronized="false"
  873. static="false" final="false" visibility="public"
  874. deprecated="not deprecated">
  875. <param name="in" type="java.io.DataInput"/>
  876. <exception name="IOException" type="java.io.IOException"/>
  877. </method>
  878. <method name="write"
  879. abstract="false" native="false" synchronized="false"
  880. static="false" final="false" visibility="public"
  881. deprecated="not deprecated">
  882. <param name="out" type="java.io.DataOutput"/>
  883. <exception name="IOException" type="java.io.IOException"/>
  884. </method>
  885. <method name="getValByRegex" return="java.util.Map"
  886. abstract="false" native="false" synchronized="false"
  887. static="false" final="false" visibility="public"
  888. deprecated="not deprecated">
  889. <param name="regex" type="java.lang.String"/>
  890. <doc>
  891. <![CDATA[get keys matching the the regex
  892. @param regex
  893. @return Map<String,String> with matching keys]]>
  894. </doc>
  895. </method>
  896. <doc>
  897. <![CDATA[Provides access to configuration parameters.
  898. <h4 id="Resources">Resources</h4>
  899. <p>Configurations are specified by resources. A resource contains a set of
  900. name/value pairs as XML data. Each resource is named by either a
  901. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  902. then the classpath is examined for a file with that name. If named by a
  903. <code>Path</code>, then the local filesystem is examined directly, without
  904. referring to the classpath.
  905. <p>Unless explicitly turned off, Hadoop by default specifies two
  906. resources, loaded in-order from the classpath: <ol>
  907. <li><tt><a href="{@docRoot}/../core-default.html">core-default.xml</a>
  908. </tt>: Read-only defaults for hadoop.</li>
  909. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  910. installation.</li>
  911. </ol>
  912. Applications may add additional resources, which are loaded
  913. subsequent to these resources in the order they are added.
  914. <h4 id="FinalParams">Final Parameters</h4>
  915. <p>Configuration parameters may be declared <i>final</i>.
  916. Once a resource declares a value final, no subsequently-loaded
  917. resource can alter that value.
  918. For example, one might define a final parameter with:
  919. <tt><pre>
  920. &lt;property&gt;
  921. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  922. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  923. <b>&lt;final&gt;true&lt;/final&gt;</b>
  924. &lt;/property&gt;</pre></tt>
  925. Administrators typically define parameters as final in
  926. <tt>core-site.xml</tt> for values that user applications may not alter.
  927. <h4 id="VariableExpansion">Variable Expansion</h4>
  928. <p>Value strings are first processed for <i>variable expansion</i>. The
  929. available properties are:<ol>
  930. <li>Other properties defined in this Configuration; and, if a name is
  931. undefined here,</li>
  932. <li>Properties in {@link System#getProperties()}.</li>
  933. </ol>
  934. <p>For example, if a configuration resource contains the following property
  935. definitions:
  936. <tt><pre>
  937. &lt;property&gt;
  938. &lt;name&gt;basedir&lt;/name&gt;
  939. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  940. &lt;/property&gt;
  941. &lt;property&gt;
  942. &lt;name&gt;tempdir&lt;/name&gt;
  943. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  944. &lt;/property&gt;</pre></tt>
  945. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  946. will be resolved to another property in this Configuration, while
  947. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  948. of the System property with that name.]]>
  949. </doc>
  950. </class>
  951. <!-- end class org.apache.hadoop.conf.Configuration -->
  952. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  953. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  954. abstract="false"
  955. static="true" final="false" visibility="public"
  956. deprecated="not deprecated">
  957. <constructor name="Configuration.IntegerRanges"
  958. static="false" final="false" visibility="public"
  959. deprecated="not deprecated">
  960. </constructor>
  961. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  962. static="false" final="false" visibility="public"
  963. deprecated="not deprecated">
  964. </constructor>
  965. <method name="isIncluded" return="boolean"
  966. abstract="false" native="false" synchronized="false"
  967. static="false" final="false" visibility="public"
  968. deprecated="not deprecated">
  969. <param name="value" type="int"/>
  970. <doc>
  971. <![CDATA[Is the given value in the set of ranges
  972. @param value the value to check
  973. @return is the value in the ranges?]]>
  974. </doc>
  975. </method>
  976. <method name="toString" return="java.lang.String"
  977. abstract="false" native="false" synchronized="false"
  978. static="false" final="false" visibility="public"
  979. deprecated="not deprecated">
  980. </method>
  981. <doc>
  982. <![CDATA[A class that represents a set of positive integer ranges. It parses
  983. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  984. the lower/upper bounds are separated by dash. Either the lower or upper
  985. bound may be omitted meaning all values up to or over. So the string
  986. above means 2, 3, 5, and 7, 8, 9, ...]]>
  987. </doc>
  988. </class>
  989. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  990. <!-- start class org.apache.hadoop.conf.Configured -->
  991. <class name="Configured" extends="java.lang.Object"
  992. abstract="false"
  993. static="false" final="false" visibility="public"
  994. deprecated="not deprecated">
  995. <implements name="org.apache.hadoop.conf.Configurable"/>
  996. <constructor name="Configured"
  997. static="false" final="false" visibility="public"
  998. deprecated="not deprecated">
  999. <doc>
  1000. <![CDATA[Construct a Configured.]]>
  1001. </doc>
  1002. </constructor>
  1003. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1004. static="false" final="false" visibility="public"
  1005. deprecated="not deprecated">
  1006. <doc>
  1007. <![CDATA[Construct a Configured.]]>
  1008. </doc>
  1009. </constructor>
  1010. <method name="setConf"
  1011. abstract="false" native="false" synchronized="false"
  1012. static="false" final="false" visibility="public"
  1013. deprecated="not deprecated">
  1014. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1015. </method>
  1016. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1017. abstract="false" native="false" synchronized="false"
  1018. static="false" final="false" visibility="public"
  1019. deprecated="not deprecated">
  1020. </method>
  1021. <doc>
  1022. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1023. </doc>
  1024. </class>
  1025. <!-- end class org.apache.hadoop.conf.Configured -->
  1026. </package>
  1027. <package name="org.apache.hadoop.fs">
  1028. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1029. <class name="BlockLocation" extends="java.lang.Object"
  1030. abstract="false"
  1031. static="false" final="false" visibility="public"
  1032. deprecated="not deprecated">
  1033. <implements name="org.apache.hadoop.io.Writable"/>
  1034. <constructor name="BlockLocation"
  1035. static="false" final="false" visibility="public"
  1036. deprecated="not deprecated">
  1037. <doc>
  1038. <![CDATA[Default Constructor]]>
  1039. </doc>
  1040. </constructor>
  1041. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1042. static="false" final="false" visibility="public"
  1043. deprecated="not deprecated">
  1044. <doc>
  1045. <![CDATA[Constructor with host, name, offset and length]]>
  1046. </doc>
  1047. </constructor>
  1048. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  1049. static="false" final="false" visibility="public"
  1050. deprecated="not deprecated">
  1051. <doc>
  1052. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  1053. </doc>
  1054. </constructor>
  1055. <method name="getHosts" return="java.lang.String[]"
  1056. abstract="false" native="false" synchronized="false"
  1057. static="false" final="false" visibility="public"
  1058. deprecated="not deprecated">
  1059. <exception name="IOException" type="java.io.IOException"/>
  1060. <doc>
  1061. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1062. </doc>
  1063. </method>
  1064. <method name="getNames" return="java.lang.String[]"
  1065. abstract="false" native="false" synchronized="false"
  1066. static="false" final="false" visibility="public"
  1067. deprecated="not deprecated">
  1068. <exception name="IOException" type="java.io.IOException"/>
  1069. <doc>
  1070. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1071. </doc>
  1072. </method>
  1073. <method name="getTopologyPaths" return="java.lang.String[]"
  1074. abstract="false" native="false" synchronized="false"
  1075. static="false" final="false" visibility="public"
  1076. deprecated="not deprecated">
  1077. <exception name="IOException" type="java.io.IOException"/>
  1078. <doc>
  1079. <![CDATA[Get the list of network topology paths for each of the hosts.
  1080. The last component of the path is the host.]]>
  1081. </doc>
  1082. </method>
  1083. <method name="getOffset" return="long"
  1084. abstract="false" native="false" synchronized="false"
  1085. static="false" final="false" visibility="public"
  1086. deprecated="not deprecated">
  1087. <doc>
  1088. <![CDATA[Get the start offset of file associated with this block]]>
  1089. </doc>
  1090. </method>
  1091. <method name="getLength" return="long"
  1092. abstract="false" native="false" synchronized="false"
  1093. static="false" final="false" visibility="public"
  1094. deprecated="not deprecated">
  1095. <doc>
  1096. <![CDATA[Get the length of the block]]>
  1097. </doc>
  1098. </method>
  1099. <method name="setOffset"
  1100. abstract="false" native="false" synchronized="false"
  1101. static="false" final="false" visibility="public"
  1102. deprecated="not deprecated">
  1103. <param name="offset" type="long"/>
  1104. <doc>
  1105. <![CDATA[Set the start offset of file associated with this block]]>
  1106. </doc>
  1107. </method>
  1108. <method name="setLength"
  1109. abstract="false" native="false" synchronized="false"
  1110. static="false" final="false" visibility="public"
  1111. deprecated="not deprecated">
  1112. <param name="length" type="long"/>
  1113. <doc>
  1114. <![CDATA[Set the length of block]]>
  1115. </doc>
  1116. </method>
  1117. <method name="setHosts"
  1118. abstract="false" native="false" synchronized="false"
  1119. static="false" final="false" visibility="public"
  1120. deprecated="not deprecated">
  1121. <param name="hosts" type="java.lang.String[]"/>
  1122. <exception name="IOException" type="java.io.IOException"/>
  1123. <doc>
  1124. <![CDATA[Set the hosts hosting this block]]>
  1125. </doc>
  1126. </method>
  1127. <method name="setNames"
  1128. abstract="false" native="false" synchronized="false"
  1129. static="false" final="false" visibility="public"
  1130. deprecated="not deprecated">
  1131. <param name="names" type="java.lang.String[]"/>
  1132. <exception name="IOException" type="java.io.IOException"/>
  1133. <doc>
  1134. <![CDATA[Set the names (host:port) hosting this block]]>
  1135. </doc>
  1136. </method>
  1137. <method name="setTopologyPaths"
  1138. abstract="false" native="false" synchronized="false"
  1139. static="false" final="false" visibility="public"
  1140. deprecated="not deprecated">
  1141. <param name="topologyPaths" type="java.lang.String[]"/>
  1142. <exception name="IOException" type="java.io.IOException"/>
  1143. <doc>
  1144. <![CDATA[Set the network topology paths of the hosts]]>
  1145. </doc>
  1146. </method>
  1147. <method name="write"
  1148. abstract="false" native="false" synchronized="false"
  1149. static="false" final="false" visibility="public"
  1150. deprecated="not deprecated">
  1151. <param name="out" type="java.io.DataOutput"/>
  1152. <exception name="IOException" type="java.io.IOException"/>
  1153. <doc>
  1154. <![CDATA[Implement write of Writable]]>
  1155. </doc>
  1156. </method>
  1157. <method name="readFields"
  1158. abstract="false" native="false" synchronized="false"
  1159. static="false" final="false" visibility="public"
  1160. deprecated="not deprecated">
  1161. <param name="in" type="java.io.DataInput"/>
  1162. <exception name="IOException" type="java.io.IOException"/>
  1163. <doc>
  1164. <![CDATA[Implement readFields of Writable]]>
  1165. </doc>
  1166. </method>
  1167. <method name="toString" return="java.lang.String"
  1168. abstract="false" native="false" synchronized="false"
  1169. static="false" final="false" visibility="public"
  1170. deprecated="not deprecated">
  1171. </method>
  1172. </class>
  1173. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1174. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  1175. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  1176. abstract="false"
  1177. static="false" final="false" visibility="public"
  1178. deprecated="not deprecated">
  1179. <implements name="org.apache.hadoop.fs.Seekable"/>
  1180. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  1181. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  1182. static="false" final="false" visibility="public"
  1183. deprecated="not deprecated">
  1184. <doc>
  1185. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  1186. with the specified buffer size,
  1187. and saves its argument, the input stream
  1188. <code>in</code>, for later use. An internal
  1189. buffer array of length <code>size</code>
  1190. is created and stored in <code>buf</code>.
  1191. @param in the underlying input stream.
  1192. @param size the buffer size.
  1193. @exception IllegalArgumentException if size <= 0.]]>
  1194. </doc>
  1195. </constructor>
  1196. <method name="getPos" return="long"
  1197. abstract="false" native="false" synchronized="false"
  1198. static="false" final="false" visibility="public"
  1199. deprecated="not deprecated">
  1200. <exception name="IOException" type="java.io.IOException"/>
  1201. </method>
  1202. <method name="skip" return="long"
  1203. abstract="false" native="false" synchronized="false"
  1204. static="false" final="false" visibility="public"
  1205. deprecated="not deprecated">
  1206. <param name="n" type="long"/>
  1207. <exception name="IOException" type="java.io.IOException"/>
  1208. </method>
  1209. <method name="seek"
  1210. abstract="false" native="false" synchronized="false"
  1211. static="false" final="false" visibility="public"
  1212. deprecated="not deprecated">
  1213. <param name="pos" type="long"/>
  1214. <exception name="IOException" type="java.io.IOException"/>
  1215. </method>
  1216. <method name="seekToNewSource" return="boolean"
  1217. abstract="false" native="false" synchronized="false"
  1218. static="false" final="false" visibility="public"
  1219. deprecated="not deprecated">
  1220. <param name="targetPos" type="long"/>
  1221. <exception name="IOException" type="java.io.IOException"/>
  1222. </method>
  1223. <method name="read" return="int"
  1224. abstract="false" native="false" synchronized="false"
  1225. static="false" final="false" visibility="public"
  1226. deprecated="not deprecated">
  1227. <param name="position" type="long"/>
  1228. <param name="buffer" type="byte[]"/>
  1229. <param name="offset" type="int"/>
  1230. <param name="length" type="int"/>
  1231. <exception name="IOException" type="java.io.IOException"/>
  1232. </method>
  1233. <method name="readFully"
  1234. abstract="false" native="false" synchronized="false"
  1235. static="false" final="false" visibility="public"
  1236. deprecated="not deprecated">
  1237. <param name="position" type="long"/>
  1238. <param name="buffer" type="byte[]"/>
  1239. <param name="offset" type="int"/>
  1240. <param name="length" type="int"/>
  1241. <exception name="IOException" type="java.io.IOException"/>
  1242. </method>
  1243. <method name="readFully"
  1244. abstract="false" native="false" synchronized="false"
  1245. static="false" final="false" visibility="public"
  1246. deprecated="not deprecated">
  1247. <param name="position" type="long"/>
  1248. <param name="buffer" type="byte[]"/>
  1249. <exception name="IOException" type="java.io.IOException"/>
  1250. </method>
  1251. <doc>
  1252. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  1253. </doc>
  1254. </class>
  1255. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  1256. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1257. <class name="ChecksumException" extends="java.io.IOException"
  1258. abstract="false"
  1259. static="false" final="false" visibility="public"
  1260. deprecated="not deprecated">
  1261. <constructor name="ChecksumException" type="java.lang.String, long"
  1262. static="false" final="false" visibility="public"
  1263. deprecated="not deprecated">
  1264. </constructor>
  1265. <method name="getPos" return="long"
  1266. abstract="false" native="false" synchronized="false"
  1267. static="false" final="false" visibility="public"
  1268. deprecated="not deprecated">
  1269. </method>
  1270. <doc>
  1271. <![CDATA[Thrown for checksum errors.]]>
  1272. </doc>
  1273. </class>
  1274. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1275. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1276. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1277. abstract="true"
  1278. static="false" final="false" visibility="public"
  1279. deprecated="not deprecated">
  1280. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1281. static="false" final="false" visibility="public"
  1282. deprecated="not deprecated">
  1283. </constructor>
  1284. <method name="getApproxChkSumLength" return="double"
  1285. abstract="false" native="false" synchronized="false"
  1286. static="true" final="false" visibility="public"
  1287. deprecated="not deprecated">
  1288. <param name="size" type="long"/>
  1289. </method>
  1290. <method name="setConf"
  1291. abstract="false" native="false" synchronized="false"
  1292. static="false" final="false" visibility="public"
  1293. deprecated="not deprecated">
  1294. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1295. </method>
  1296. <method name="setVerifyChecksum"
  1297. abstract="false" native="false" synchronized="false"
  1298. static="false" final="false" visibility="public"
  1299. deprecated="not deprecated">
  1300. <param name="verifyChecksum" type="boolean"/>
  1301. <doc>
  1302. <![CDATA[Set whether to verify checksum.]]>
  1303. </doc>
  1304. </method>
  1305. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1306. abstract="false" native="false" synchronized="false"
  1307. static="false" final="false" visibility="public"
  1308. deprecated="not deprecated">
  1309. <doc>
  1310. <![CDATA[get the raw file system]]>
  1311. </doc>
  1312. </method>
  1313. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1314. abstract="false" native="false" synchronized="false"
  1315. static="false" final="false" visibility="public"
  1316. deprecated="not deprecated">
  1317. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1318. <doc>
  1319. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1320. </doc>
  1321. </method>
  1322. <method name="isChecksumFile" return="boolean"
  1323. abstract="false" native="false" synchronized="false"
  1324. static="true" final="false" visibility="public"
  1325. deprecated="not deprecated">
  1326. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1327. <doc>
  1328. <![CDATA[Return true iff file is a checksum file name.]]>
  1329. </doc>
  1330. </method>
  1331. <method name="getChecksumFileLength" return="long"
  1332. abstract="false" native="false" synchronized="false"
  1333. static="false" final="false" visibility="public"
  1334. deprecated="not deprecated">
  1335. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1336. <param name="fileSize" type="long"/>
  1337. <doc>
  1338. <![CDATA[Return the length of the checksum file given the size of the
  1339. actual file.]]>
  1340. </doc>
  1341. </method>
  1342. <method name="getBytesPerSum" return="int"
  1343. abstract="false" native="false" synchronized="false"
  1344. static="false" final="false" visibility="public"
  1345. deprecated="not deprecated">
  1346. <doc>
  1347. <![CDATA[Return the bytes Per Checksum]]>
  1348. </doc>
  1349. </method>
  1350. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1351. abstract="false" native="false" synchronized="false"
  1352. static="false" final="false" visibility="public"
  1353. deprecated="not deprecated">
  1354. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1355. <param name="bufferSize" type="int"/>
  1356. <exception name="IOException" type="java.io.IOException"/>
  1357. <doc>
  1358. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1359. @param f the file name to open
  1360. @param bufferSize the size of the buffer to be used.]]>
  1361. </doc>
  1362. </method>
  1363. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1364. abstract="false" native="false" synchronized="false"
  1365. static="false" final="false" visibility="public"
  1366. deprecated="not deprecated">
  1367. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1368. <param name="bufferSize" type="int"/>
  1369. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1370. <exception name="IOException" type="java.io.IOException"/>
  1371. <doc>
  1372. <![CDATA[{@inheritDoc}]]>
  1373. </doc>
  1374. </method>
  1375. <method name="getChecksumLength" return="long"
  1376. abstract="false" native="false" synchronized="false"
  1377. static="true" final="false" visibility="public"
  1378. deprecated="not deprecated">
  1379. <param name="size" type="long"/>
  1380. <param name="bytesPerSum" type="int"/>
  1381. <doc>
  1382. <![CDATA[Calculated the length of the checksum file in bytes.
  1383. @param size the length of the data file in bytes
  1384. @param bytesPerSum the number of bytes in a checksum block
  1385. @return the number of bytes in the checksum file]]>
  1386. </doc>
  1387. </method>
  1388. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1389. abstract="false" native="false" synchronized="false"
  1390. static="false" final="false" visibility="public"
  1391. deprecated="not deprecated">
  1392. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1393. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1394. <param name="overwrite" type="boolean"/>
  1395. <param name="bufferSize" type="int"/>
  1396. <param name="replication" type="short"/>
  1397. <param name="blockSize" type="long"/>
  1398. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1399. <exception name="IOException" type="java.io.IOException"/>
  1400. <doc>
  1401. <![CDATA[{@inheritDoc}]]>
  1402. </doc>
  1403. </method>
  1404. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  1405. abstract="false" native="false" synchronized="false"
  1406. static="false" final="false" visibility="public"
  1407. deprecated="not deprecated">
  1408. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1409. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1410. <param name="overwrite" type="boolean"/>
  1411. <param name="bufferSize" type="int"/>
  1412. <param name="replication" type="short"/>
  1413. <param name="blockSize" type="long"/>
  1414. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1415. <exception name="IOException" type="java.io.IOException"/>
  1416. <doc>
  1417. <![CDATA[{@inheritDoc}]]>
  1418. </doc>
  1419. </method>
  1420. <method name="setReplication" return="boolean"
  1421. abstract="false" native="false" synchronized="false"
  1422. static="false" final="false" visibility="public"
  1423. deprecated="not deprecated">
  1424. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1425. <param name="replication" type="short"/>
  1426. <exception name="IOException" type="java.io.IOException"/>
  1427. <doc>
  1428. <![CDATA[Set replication for an existing file.
  1429. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  1430. @param src file name
  1431. @param replication new replication
  1432. @throws IOException
  1433. @return true if successful;
  1434. false if file does not exist or is a directory]]>
  1435. </doc>
  1436. </method>
  1437. <method name="rename" return="boolean"
  1438. abstract="false" native="false" synchronized="false"
  1439. static="false" final="false" visibility="public"
  1440. deprecated="not deprecated">
  1441. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1442. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1443. <exception name="IOException" type="java.io.IOException"/>
  1444. <doc>
  1445. <![CDATA[Rename files/dirs]]>
  1446. </doc>
  1447. </method>
  1448. <method name="delete" return="boolean"
  1449. abstract="false" native="false" synchronized="false"
  1450. static="false" final="false" visibility="public"
  1451. deprecated="not deprecated">
  1452. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1453. <param name="recursive" type="boolean"/>
  1454. <exception name="IOException" type="java.io.IOException"/>
  1455. <doc>
  1456. <![CDATA[Implement the delete(Path, boolean) in checksum
  1457. file system.]]>
  1458. </doc>
  1459. </method>
  1460. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1461. abstract="false" native="false" synchronized="false"
  1462. static="false" final="false" visibility="public"
  1463. deprecated="not deprecated">
  1464. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1465. <exception name="IOException" type="java.io.IOException"/>
  1466. <doc>
  1467. <![CDATA[List the statuses of the files/directories in the given path if the path is
  1468. a directory.
  1469. @param f
  1470. given path
  1471. @return the statuses of the files/directories in the given patch
  1472. @throws IOException]]>
  1473. </doc>
  1474. </method>
  1475. <method name="mkdirs" return="boolean"
  1476. abstract="false" native="false" synchronized="false"
  1477. static="false" final="false" visibility="public"
  1478. deprecated="not deprecated">
  1479. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1480. <exception name="IOException" type="java.io.IOException"/>
  1481. </method>
  1482. <method name="copyFromLocalFile"
  1483. abstract="false" native="false" synchronized="false"
  1484. static="false" final="false" visibility="public"
  1485. deprecated="not deprecated">
  1486. <param name="delSrc" type="boolean"/>
  1487. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1488. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1489. <exception name="IOException" type="java.io.IOException"/>
  1490. </method>
  1491. <method name="copyToLocalFile"
  1492. abstract="false" native="false" synchronized="false"
  1493. static="false" final="false" visibility="public"
  1494. deprecated="not deprecated">
  1495. <param name="delSrc" type="boolean"/>
  1496. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1497. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1498. <exception name="IOException" type="java.io.IOException"/>
  1499. <doc>
  1500. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1501. Copy it from FS control to the local dst name.]]>
  1502. </doc>
  1503. </method>
  1504. <method name="copyToLocalFile"
  1505. abstract="false" native="false" synchronized="false"
  1506. static="false" final="false" visibility="public"
  1507. deprecated="not deprecated">
  1508. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1509. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1510. <param name="copyCrc" type="boolean"/>
  1511. <exception name="IOException" type="java.io.IOException"/>
  1512. <doc>
  1513. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1514. Copy it from FS control to the local dst name.
  1515. If src and dst are directories, the copyCrc parameter
  1516. determines whether to copy CRC files.]]>
  1517. </doc>
  1518. </method>
  1519. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  1520. abstract="false" native="false" synchronized="false"
  1521. static="false" final="false" visibility="public"
  1522. deprecated="not deprecated">
  1523. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1524. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1525. <exception name="IOException" type="java.io.IOException"/>
  1526. </method>
  1527. <method name="completeLocalOutput"
  1528. abstract="false" native="false" synchronized="false"
  1529. static="false" final="false" visibility="public"
  1530. deprecated="not deprecated">
  1531. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1532. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1533. <exception name="IOException" type="java.io.IOException"/>
  1534. </method>
  1535. <method name="reportChecksumFailure" return="boolean"
  1536. abstract="false" native="false" synchronized="false"
  1537. static="false" final="false" visibility="public"
  1538. deprecated="not deprecated">
  1539. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1540. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1541. <param name="inPos" type="long"/>
  1542. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1543. <param name="sumsPos" type="long"/>
  1544. <doc>
  1545. <![CDATA[Report a checksum error to the file system.
  1546. @param f the file name containing the error
  1547. @param in the stream open on the file
  1548. @param inPos the position of the beginning of the bad data in the file
  1549. @param sums the stream open on the checksum file
  1550. @param sumsPos the position of the beginning of the bad data in the checksum file
  1551. @return if retry is neccessary]]>
  1552. </doc>
  1553. </method>
  1554. <doc>
  1555. <![CDATA[Abstract Checksumed FileSystem.
  1556. It provide a basice implementation of a Checksumed FileSystem,
  1557. which creates a checksum file for each raw file.
  1558. It generates & verifies checksums at the client side.]]>
  1559. </doc>
  1560. </class>
  1561. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  1562. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1563. <class name="CommonConfigurationKeys" extends="java.lang.Object"
  1564. abstract="false"
  1565. static="false" final="false" visibility="public"
  1566. deprecated="not deprecated">
  1567. <constructor name="CommonConfigurationKeys"
  1568. static="false" final="false" visibility="public"
  1569. deprecated="not deprecated">
  1570. </constructor>
  1571. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  1572. transient="false" volatile="false"
  1573. static="true" final="true" visibility="public"
  1574. deprecated="not deprecated">
  1575. <doc>
  1576. <![CDATA[See src/core/core-default.xml]]>
  1577. </doc>
  1578. </field>
  1579. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  1580. transient="false" volatile="false"
  1581. static="true" final="true" visibility="public"
  1582. deprecated="not deprecated">
  1583. </field>
  1584. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  1585. transient="false" volatile="false"
  1586. static="true" final="true" visibility="public"
  1587. deprecated="not deprecated">
  1588. <doc>
  1589. <![CDATA[See src/core/core-default.xml]]>
  1590. </doc>
  1591. </field>
  1592. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  1593. transient="false" volatile="false"
  1594. static="true" final="true" visibility="public"
  1595. deprecated="not deprecated">
  1596. <doc>
  1597. <![CDATA[See src/core/core-default.xml]]>
  1598. </doc>
  1599. </field>
  1600. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  1601. transient="false" volatile="false"
  1602. static="true" final="true" visibility="public"
  1603. deprecated="not deprecated">
  1604. <doc>
  1605. <![CDATA[See src/core/core-default.xml]]>
  1606. </doc>
  1607. </field>
  1608. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  1609. transient="false" volatile="false"
  1610. static="true" final="true" visibility="public"
  1611. deprecated="not deprecated">
  1612. <doc>
  1613. <![CDATA[See src/core/core-default.xml]]>
  1614. </doc>
  1615. </field>
  1616. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP" type="java.lang.String"
  1617. transient="false" volatile="false"
  1618. static="true" final="true" visibility="public"
  1619. deprecated="not deprecated">
  1620. <doc>
  1621. <![CDATA[See src/core/core-default.xml]]>
  1622. </doc>
  1623. </field>
  1624. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP_DEFAULT" type="boolean"
  1625. transient="false" volatile="false"
  1626. static="true" final="true" visibility="public"
  1627. deprecated="not deprecated">
  1628. </field>
  1629. <field name="HADOOP_SECURITY_USE_WEAK_HTTP_CRYPTO_KEY" type="java.lang.String"
  1630. transient="false" volatile="false"
  1631. static="true" final="true" visibility="public"
  1632. deprecated="not deprecated">
  1633. </field>
  1634. <field name="HADOOP_SECURITY_USE_WEAK_HTTP_CRYPTO_DEFAULT" type="boolean"
  1635. transient="false" volatile="false"
  1636. static="true" final="true" visibility="public"
  1637. deprecated="not deprecated">
  1638. </field>
  1639. <field name="IPC_SERVER_RPC_READ_THREADS_KEY" type="java.lang.String"
  1640. transient="false" volatile="false"
  1641. static="true" final="true" visibility="public"
  1642. deprecated="not deprecated">
  1643. </field>
  1644. <field name="IPC_SERVER_RPC_READ_THREADS_DEFAULT" type="int"
  1645. transient="false" volatile="false"
  1646. static="true" final="true" visibility="public"
  1647. deprecated="not deprecated">
  1648. </field>
  1649. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  1650. transient="false" volatile="false"
  1651. static="true" final="true" visibility="public"
  1652. deprecated="not deprecated">
  1653. </field>
  1654. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  1655. transient="false" volatile="false"
  1656. static="true" final="true" visibility="public"
  1657. deprecated="not deprecated">
  1658. <doc>
  1659. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  1660. </doc>
  1661. </field>
  1662. <field name="IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_KEY" type="java.lang.String"
  1663. transient="false" volatile="false"
  1664. static="true" final="true" visibility="public"
  1665. deprecated="not deprecated">
  1666. <doc>
  1667. <![CDATA[Internal buffer size for Snappy compressor/decompressors]]>
  1668. </doc>
  1669. </field>
  1670. <field name="IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_DEFAULT" type="int"
  1671. transient="false" volatile="false"
  1672. static="true" final="true" visibility="public"
  1673. deprecated="not deprecated">
  1674. <doc>
  1675. <![CDATA[Default value for IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_KEY]]>
  1676. </doc>
  1677. </field>
  1678. <field name="HADOOP_RELAXED_VERSION_CHECK_KEY" type="java.lang.String"
  1679. transient="false" volatile="false"
  1680. static="true" final="true" visibility="public"
  1681. deprecated="not deprecated">
  1682. <doc>
  1683. <![CDATA[See src/core/core-default.xml]]>
  1684. </doc>
  1685. </field>
  1686. <field name="HADOOP_RELAXED_VERSION_CHECK_DEFAULT" type="boolean"
  1687. transient="false" volatile="false"
  1688. static="true" final="true" visibility="public"
  1689. deprecated="not deprecated">
  1690. </field>
  1691. <doc>
  1692. <![CDATA[This class contains constants for configuration keys used
  1693. in the common code.]]>
  1694. </doc>
  1695. </class>
  1696. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1697. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1698. <class name="ContentSummary" extends="java.lang.Object"
  1699. abstract="false"
  1700. static="false" final="false" visibility="public"
  1701. deprecated="not deprecated">
  1702. <implements name="org.apache.hadoop.io.Writable"/>
  1703. <constructor name="ContentSummary"
  1704. static="false" final="false" visibility="public"
  1705. deprecated="not deprecated">
  1706. <doc>
  1707. <![CDATA[Constructor]]>
  1708. </doc>
  1709. </constructor>
  1710. <constructor name="ContentSummary" type="long, long, long"
  1711. static="false" final="false" visibility="public"
  1712. deprecated="not deprecated">
  1713. <doc>
  1714. <![CDATA[Constructor]]>
  1715. </doc>
  1716. </constructor>
  1717. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1718. static="false" final="false" visibility="public"
  1719. deprecated="not deprecated">
  1720. <doc>
  1721. <![CDATA[Constructor]]>
  1722. </doc>
  1723. </constructor>
  1724. <method name="getLength" return="long"
  1725. abstract="false" native="false" synchronized="false"
  1726. static="false" final="false" visibility="public"
  1727. deprecated="not deprecated">
  1728. <doc>
  1729. <![CDATA[@return the length]]>
  1730. </doc>
  1731. </method>
  1732. <method name="getDirectoryCount" return="long"
  1733. abstract="false" native="false" synchronized="false"
  1734. static="false" final="false" visibility="public"
  1735. deprecated="not deprecated">
  1736. <doc>
  1737. <![CDATA[@return the directory count]]>
  1738. </doc>
  1739. </method>
  1740. <method name="getFileCount" return="long"
  1741. abstract="false" native="false" synchronized="false"
  1742. static="false" final="false" visibility="public"
  1743. deprecated="not deprecated">
  1744. <doc>
  1745. <![CDATA[@return the file count]]>
  1746. </doc>
  1747. </method>
  1748. <method name="getQuota" return="long"
  1749. abstract="false" native="false" synchronized="false"
  1750. static="false" final="false" visibility="public"
  1751. deprecated="not deprecated">
  1752. <doc>
  1753. <![CDATA[Return the directory quota]]>
  1754. </doc>
  1755. </method>
  1756. <method name="getSpaceConsumed" return="long"
  1757. abstract="false" native="false" synchronized="false"
  1758. static="false" final="false" visibility="public"
  1759. deprecated="not deprecated">
  1760. <doc>
  1761. <![CDATA[Retuns (disk) space consumed]]>
  1762. </doc>
  1763. </method>
  1764. <method name="getSpaceQuota" return="long"
  1765. abstract="false" native="false" synchronized="false"
  1766. static="false" final="false" visibility="public"
  1767. deprecated="not deprecated">
  1768. <doc>
  1769. <![CDATA[Returns (disk) space quota]]>
  1770. </doc>
  1771. </method>
  1772. <method name="write"
  1773. abstract="false" native="false" synchronized="false"
  1774. static="false" final="false" visibility="public"
  1775. deprecated="not deprecated">
  1776. <param name="out" type="java.io.DataOutput"/>
  1777. <exception name="IOException" type="java.io.IOException"/>
  1778. <doc>
  1779. <![CDATA[{@inheritDoc}]]>
  1780. </doc>
  1781. </method>
  1782. <method name="readFields"
  1783. abstract="false" native="false" synchronized="false"
  1784. static="false" final="false" visibility="public"
  1785. deprecated="not deprecated">
  1786. <param name="in" type="java.io.DataInput"/>
  1787. <exception name="IOException" type="java.io.IOException"/>
  1788. <doc>
  1789. <![CDATA[{@inheritDoc}]]>
  1790. </doc>
  1791. </method>
  1792. <method name="getHeader" return="java.lang.String"
  1793. abstract="false" native="false" synchronized="false"
  1794. static="true" final="false" visibility="public"
  1795. deprecated="not deprecated">
  1796. <param name="qOption" type="boolean"/>
  1797. <doc>
  1798. <![CDATA[Return the header of the output.
  1799. if qOption is false, output directory count, file count, and content size;
  1800. if qOption is true, output quota and remaining quota as well.
  1801. @param qOption a flag indicating if quota needs to be printed or not
  1802. @return the header of the output]]>
  1803. </doc>
  1804. </method>
  1805. <method name="toString" return="java.lang.String"
  1806. abstract="false" native="false" synchronized="false"
  1807. static="false" final="false" visibility="public"
  1808. deprecated="not deprecated">
  1809. <doc>
  1810. <![CDATA[{@inheritDoc}]]>
  1811. </doc>
  1812. </method>
  1813. <method name="toString" return="java.lang.String"
  1814. abstract="false" native="false" synchronized="false"
  1815. static="false" final="false" visibility="public"
  1816. deprecated="not deprecated">
  1817. <param name="qOption" type="boolean"/>
  1818. <doc>
  1819. <![CDATA[Return the string representation of the object in the output format.
  1820. if qOption is false, output directory count, file count, and content size;
  1821. if qOption is true, output quota and remaining quota as well.
  1822. @param qOption a flag indicating if quota needs to be printed or not
  1823. @return the string representation of the object]]>
  1824. </doc>
  1825. </method>
  1826. <doc>
  1827. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1828. </doc>
  1829. </class>
  1830. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1831. <!-- start class org.apache.hadoop.fs.DF -->
  1832. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1833. abstract="false"
  1834. static="false" final="false" visibility="public"
  1835. deprecated="not deprecated">
  1836. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1837. static="false" final="false" visibility="public"
  1838. deprecated="not deprecated">
  1839. <exception name="IOException" type="java.io.IOException"/>
  1840. </constructor>
  1841. <constructor name="DF" type="java.io.File, long"
  1842. static="false" final="false" visibility="public"
  1843. deprecated="not deprecated">
  1844. <exception name="IOException" type="java.io.IOException"/>
  1845. </constructor>
  1846. <method name="getDirPath" return="java.lang.String"
  1847. abstract="false" native="false" synchronized="false"
  1848. static="false" final="false" visibility="public"
  1849. deprecated="not deprecated">
  1850. <doc>
  1851. <![CDATA[@return the canonical path to the volume we're checking.]]>
  1852. </doc>
  1853. </method>
  1854. <method name="getFilesystem" return="java.lang.String"
  1855. abstract="false" native="false" synchronized="false"
  1856. static="false" final="false" visibility="public"
  1857. deprecated="not deprecated">
  1858. <exception name="IOException" type="java.io.IOException"/>
  1859. <doc>
  1860. <![CDATA[@return a string indicating which filesystem volume we're checking.]]>
  1861. </doc>
  1862. </method>
  1863. <method name="getCapacity" return="long"
  1864. abstract="false" native="false" synchronized="false"
  1865. static="false" final="false" visibility="public"
  1866. deprecated="not deprecated">
  1867. <doc>
  1868. <![CDATA[@return the capacity of the measured filesystem in bytes.]]>
  1869. </doc>
  1870. </method>
  1871. <method name="getUsed" return="long"
  1872. abstract="false" native="false" synchronized="false"
  1873. static="false" final="false" visibility="public"
  1874. deprecated="not deprecated">
  1875. <doc>
  1876. <![CDATA[@return the total used space on the filesystem in bytes.]]>
  1877. </doc>
  1878. </method>
  1879. <method name="getAvailable" return="long"
  1880. abstract="false" native="false" synchronized="false"
  1881. static="false" final="false" visibility="public"
  1882. deprecated="not deprecated">
  1883. <doc>
  1884. <![CDATA[@return the usable space remaining on the filesystem in bytes.]]>
  1885. </doc>
  1886. </method>
  1887. <method name="getPercentUsed" return="int"
  1888. abstract="false" native="false" synchronized="false"
  1889. static="false" final="false" visibility="public"
  1890. deprecated="not deprecated">
  1891. <doc>
  1892. <![CDATA[@return the amount of the volume full, as a percent.]]>
  1893. </doc>
  1894. </method>
  1895. <method name="getMount" return="java.lang.String"
  1896. abstract="false" native="false" synchronized="false"
  1897. static="false" final="false" visibility="public"
  1898. deprecated="not deprecated">
  1899. <exception name="IOException" type="java.io.IOException"/>
  1900. <doc>
  1901. <![CDATA[@return the filesystem mount point for the indicated volume]]>
  1902. </doc>
  1903. </method>
  1904. <method name="toString" return="java.lang.String"
  1905. abstract="false" native="false" synchronized="false"
  1906. static="false" final="false" visibility="public"
  1907. deprecated="not deprecated">
  1908. </method>
  1909. <method name="getExecString" return="java.lang.String[]"
  1910. abstract="false" native="false" synchronized="false"
  1911. static="false" final="false" visibility="protected"
  1912. deprecated="not deprecated">
  1913. </method>
  1914. <method name="parseExecResult"
  1915. abstract="false" native="false" synchronized="false"
  1916. static="false" final="false" visibility="protected"
  1917. deprecated="not deprecated">
  1918. <param name="lines" type="java.io.BufferedReader"/>
  1919. <exception name="IOException" type="java.io.IOException"/>
  1920. </method>
  1921. <method name="main"
  1922. abstract="false" native="false" synchronized="false"
  1923. static="true" final="false" visibility="public"
  1924. deprecated="not deprecated">
  1925. <param name="args" type="java.lang.String[]"/>
  1926. <exception name="Exception" type="java.lang.Exception"/>
  1927. </method>
  1928. <field name="DF_INTERVAL_DEFAULT" type="long"
  1929. transient="false" volatile="false"
  1930. static="true" final="true" visibility="public"
  1931. deprecated="not deprecated">
  1932. <doc>
  1933. <![CDATA[Default DF refresh interval.]]>
  1934. </doc>
  1935. </field>
  1936. <doc>
  1937. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program to get
  1938. mount points, and java.io.File for space utilization. Tested on Linux,
  1939. FreeBSD, Cygwin.]]>
  1940. </doc>
  1941. </class>
  1942. <!-- end class org.apache.hadoop.fs.DF -->
  1943. <!-- start class org.apache.hadoop.fs.DU -->
  1944. <class name="DU" extends="org.apache.hadoop.util.Shell"
  1945. abstract="false"
  1946. static="false" final="false" visibility="public"
  1947. deprecated="not deprecated">
  1948. <constructor name="DU" type="java.io.File, long"
  1949. static="false" final="false" visibility="public"
  1950. deprecated="not deprecated">
  1951. <exception name="IOException" type="java.io.IOException"/>
  1952. <doc>
  1953. <![CDATA[Keeps track of disk usage.
  1954. @param path the path to check disk usage in
  1955. @param interval refresh the disk usage at this interval
  1956. @throws IOException if we fail to refresh the disk usage]]>
  1957. </doc>
  1958. </constructor>
  1959. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1960. static="false" final="false" visibility="public"
  1961. deprecated="not deprecated">
  1962. <exception name="IOException" type="java.io.IOException"/>
  1963. <doc>
  1964. <![CDATA[Keeps track of disk usage.
  1965. @param path the path to check disk usage in
  1966. @param conf configuration object
  1967. @throws IOException if we fail to refresh the disk usage]]>
  1968. </doc>
  1969. </constructor>
  1970. <method name="decDfsUsed"
  1971. abstract="false" native="false" synchronized="false"
  1972. static="false" final="false" visibility="public"
  1973. deprecated="not deprecated">
  1974. <param name="value" type="long"/>
  1975. <doc>
  1976. <![CDATA[Decrease how much disk space we use.
  1977. @param value decrease by this value]]>
  1978. </doc>
  1979. </method>
  1980. <method name="incDfsUsed"
  1981. abstract="false" native="false" synchronized="false"
  1982. static="false" final="false" visibility="public"
  1983. deprecated="not deprecated">
  1984. <param name="value" type="long"/>
  1985. <doc>
  1986. <![CDATA[Increase how much disk space we use.
  1987. @param value increase by this value]]>
  1988. </doc>
  1989. </method>
  1990. <method name="getUsed" return="long"
  1991. abstract="false" native="false" synchronized="false"
  1992. static="false" final="false" visibility="public"
  1993. deprecated="not deprecated">
  1994. <exception name="IOException" type="java.io.IOException"/>
  1995. <doc>
  1996. <![CDATA[@return disk space used
  1997. @throws IOException if the shell command fails]]>
  1998. </doc>
  1999. </method>
  2000. <method name="getDirPath" return="java.lang.String"
  2001. abstract="false" native="false" synchronized="false"
  2002. static="false" final="false" visibility="public"
  2003. deprecated="not deprecated">
  2004. <doc>
  2005. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  2006. </doc>
  2007. </method>
  2008. <method name="start"
  2009. abstract="false" native="false" synchronized="false"
  2010. static="false" final="false" visibility="public"
  2011. deprecated="not deprecated">
  2012. <doc>
  2013. <![CDATA[Start the disk usage checking thread.]]>
  2014. </doc>
  2015. </method>
  2016. <method name="shutdown"
  2017. abstract="false" native="false" synchronized="false"
  2018. static="false" final="false" visibility="public"
  2019. deprecated="not deprecated">
  2020. <doc>
  2021. <![CDATA[Shut down the refreshing thread.]]>
  2022. </doc>
  2023. </method>
  2024. <method name="toString" return="java.lang.String"
  2025. abstract="false" native="false" synchronized="false"
  2026. static="false" final="false" visibility="public"
  2027. deprecated="not deprecated">
  2028. </method>
  2029. <method name="getExecString" return="java.lang.String[]"
  2030. abstract="false" native="false" synchronized="false"
  2031. static="false" final="false" visibility="protected"
  2032. deprecated="not deprecated">
  2033. </method>
  2034. <method name="parseExecResult"
  2035. abstract="false" native="false" synchronized="false"
  2036. static="false" final="false" visibility="protected"
  2037. deprecated="not deprecated">
  2038. <param name="lines" type="java.io.BufferedReader"/>
  2039. <exception name="IOException" type="java.io.IOException"/>
  2040. </method>
  2041. <method name="main"
  2042. abstract="false" native="false" synchronized="false"
  2043. static="true" final="false" visibility="public"
  2044. deprecated="not deprecated">
  2045. <param name="args" type="java.lang.String[]"/>
  2046. <exception name="Exception" type="java.lang.Exception"/>
  2047. </method>
  2048. <doc>
  2049. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  2050. </doc>
  2051. </class>
  2052. <!-- end class org.apache.hadoop.fs.DU -->
  2053. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2054. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  2055. abstract="false"
  2056. static="false" final="false" visibility="public"
  2057. deprecated="not deprecated">
  2058. <constructor name="FileAlreadyExistsException"
  2059. static="false" final="false" visibility="public"
  2060. deprecated="not deprecated">
  2061. </constructor>
  2062. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  2063. static="false" final="false" visibility="public"
  2064. deprecated="not deprecated">
  2065. </constructor>
  2066. <doc>
  2067. <![CDATA[Used when target file already exists for any operation and
  2068. is not configured to be overwritten.]]>
  2069. </doc>
  2070. </class>
  2071. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2072. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2073. <class name="FileChecksum" extends="java.lang.Object"
  2074. abstract="true"
  2075. static="false" final="false" visibility="public"
  2076. deprecated="not deprecated">
  2077. <implements name="org.apache.hadoop.io.Writable"/>
  2078. <constructor name="FileChecksum"
  2079. static="false" final="false" visibility="public"
  2080. deprecated="not deprecated">
  2081. </constructor>
  2082. <method name="getAlgorithmName" return="java.lang.String"
  2083. abstract="true" native="false" synchronized="false"
  2084. static="false" final="false" visibility="public"
  2085. deprecated="not deprecated">
  2086. <doc>
  2087. <![CDATA[The checksum algorithm name]]>
  2088. </doc>
  2089. </method>
  2090. <method name="getLength" return="int"
  2091. abstract="true" native="false" synchronized="false"
  2092. static="false" final="false" visibility="public"
  2093. deprecated="not deprecated">
  2094. <doc>
  2095. <![CDATA[The length of the checksum in bytes]]>
  2096. </doc>
  2097. </method>
  2098. <method name="getBytes" return="byte[]"
  2099. abstract="true" native="false" synchronized="false"
  2100. static="false" final="false" visibility="public"
  2101. deprecated="not deprecated">
  2102. <doc>
  2103. <![CDATA[The value of the checksum in bytes]]>
  2104. </doc>
  2105. </method>
  2106. <method name="equals" return="boolean"
  2107. abstract="false" native="false" synchronized="false"
  2108. static="false" final="false" visibility="public"
  2109. deprecated="not deprecated">
  2110. <param name="other" type="java.lang.Object"/>
  2111. <doc>
  2112. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2113. </doc>
  2114. </method>
  2115. <method name="hashCode" return="int"
  2116. abstract="false" native="false" synchronized="false"
  2117. static="false" final="false" visibility="public"
  2118. deprecated="not deprecated">
  2119. <doc>
  2120. <![CDATA[{@inheritDoc}]]>
  2121. </doc>
  2122. </method>
  2123. <doc>
  2124. <![CDATA[An abstract class representing file checksums for files.]]>
  2125. </doc>
  2126. </class>
  2127. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2128. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2129. <class name="FileStatus" extends="java.lang.Object"
  2130. abstract="false"
  2131. static="false" final="false" visibility="public"
  2132. deprecated="not deprecated">
  2133. <implements name="org.apache.hadoop.io.Writable"/>
  2134. <implements name="java.lang.Comparable"/>
  2135. <constructor name="FileStatus"
  2136. static="false" final="false" visibility="public"
  2137. deprecated="not deprecated">
  2138. </constructor>
  2139. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2140. static="false" final="false" visibility="public"
  2141. deprecated="not deprecated">
  2142. </constructor>
  2143. <constructor name="FileStatus" type="long, boolean, int, long, long, long, org.apache.hadoop.fs.permission.FsPermission, java.lang.String, java.lang.String, org.apache.hadoop.fs.Path"
  2144. static="false" final="false" visibility="public"
  2145. deprecated="not deprecated">
  2146. </constructor>
  2147. <method name="getLen" return="long"
  2148. abstract="false" native="false" synchronized="false"
  2149. static="false" final="false" visibility="public"
  2150. deprecated="not deprecated">
  2151. </method>
  2152. <method name="isDir" return="boolean"
  2153. abstract="false" native="false" synchronized="false"
  2154. static="false" final="false" visibility="public"
  2155. deprecated="not deprecated">
  2156. <doc>
  2157. <![CDATA[Is this a directory?
  2158. @return true if this is a directory]]>
  2159. </doc>
  2160. </method>
  2161. <method name="getBlockSize" return="long"
  2162. abstract="false" native="false" synchronized="false"
  2163. static="false" final="false" visibility="public"
  2164. deprecated="not deprecated">
  2165. <doc>
  2166. <![CDATA[Get the block size of the file.
  2167. @return the number of bytes]]>
  2168. </doc>
  2169. </method>
  2170. <method name="getReplication" return="short"
  2171. abstract="false" native="false" synchronized="false"
  2172. static="false" final="false" visibility="public"
  2173. deprecated="not deprecated">
  2174. <doc>
  2175. <![CDATA[Get the replication factor of a file.
  2176. @return the replication factor of a file.]]>
  2177. </doc>
  2178. </method>
  2179. <method name="getModificationTime" return="long"
  2180. abstract="false" native="false" synchronized="false"
  2181. static="false" final="false" visibility="public"
  2182. deprecated="not deprecated">
  2183. <doc>
  2184. <![CDATA[Get the modification time of the file.
  2185. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2186. </doc>
  2187. </method>
  2188. <method name="getAccessTime" return="long"
  2189. abstract="false" native="false" synchronized="false"
  2190. static="false" final="false" visibility="public"
  2191. deprecated="not deprecated">
  2192. <doc>
  2193. <![CDATA[Get the access time of the file.
  2194. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2195. </doc>
  2196. </method>
  2197. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2198. abstract="false" native="false" synchronized="false"
  2199. static="false" final="false" visibility="public"
  2200. deprecated="not deprecated">
  2201. <doc>
  2202. <![CDATA[Get FsPermission associated with the file.
  2203. @return permssion. If a filesystem does not have a notion of permissions
  2204. or if permissions could not be determined, then default
  2205. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2206. </doc>
  2207. </method>
  2208. <method name="getOwner" return="java.lang.String"
  2209. abstract="false" native="false" synchronized="false"
  2210. static="false" final="false" visibility="public"
  2211. deprecated="not deprecated">
  2212. <doc>
  2213. <![CDATA[Get the owner of the file.
  2214. @return owner of the file. The string could be empty if there is no
  2215. notion of owner of a file in a filesystem or if it could not
  2216. be determined (rare).]]>
  2217. </doc>
  2218. </method>
  2219. <method name="getGroup" return="java.lang.String"
  2220. abstract="false" native="false" synchronized="false"
  2221. static="false" final="false" visibility="public"
  2222. deprecated="not deprecated">
  2223. <doc>
  2224. <![CDATA[Get the group associated with the file.
  2225. @return group for the file. The string could be empty if there is no
  2226. notion of group of a file in a filesystem or if it could not
  2227. be determined (rare).]]>
  2228. </doc>
  2229. </method>
  2230. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2231. abstract="false" native="false" synchronized="false"
  2232. static="false" final="false" visibility="public"
  2233. deprecated="not deprecated">
  2234. </method>
  2235. <method name="setPermission"
  2236. abstract="false" native="false" synchronized="false"
  2237. static="false" final="false" visibility="protected"
  2238. deprecated="not deprecated">
  2239. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2240. <doc>
  2241. <![CDATA[Sets permission.
  2242. @param permission if permission is null, default value is set]]>
  2243. </doc>
  2244. </method>
  2245. <method name="setOwner"
  2246. abstract="false" native="false" synchronized="false"
  2247. static="false" final="false" visibility="protected"
  2248. deprecated="not deprecated">
  2249. <param name="owner" type="java.lang.String"/>
  2250. <doc>
  2251. <![CDATA[Sets owner.
  2252. @param owner if it is null, default value is set]]>
  2253. </doc>
  2254. </method>
  2255. <method name="setGroup"
  2256. abstract="false" native="false" synchronized="false"
  2257. static="false" final="false" visibility="protected"
  2258. deprecated="not deprecated">
  2259. <param name="group" type="java.lang.String"/>
  2260. <doc>
  2261. <![CDATA[Sets group.
  2262. @param group if it is null, default value is set]]>
  2263. </doc>
  2264. </method>
  2265. <method name="write"
  2266. abstract="false" native="false" synchronized="false"
  2267. static="false" final="false" visibility="public"
  2268. deprecated="not deprecated">
  2269. <param name="out" type="java.io.DataOutput"/>
  2270. <exception name="IOException" type="java.io.IOException"/>
  2271. </method>
  2272. <method name="readFields"
  2273. abstract="false" native="false" synchronized="false"
  2274. static="false" final="false" visibility="public"
  2275. deprecated="not deprecated">
  2276. <param name="in" type="java.io.DataInput"/>
  2277. <exception name="IOException" type="java.io.IOException"/>
  2278. </method>
  2279. <method name="compareTo" return="int"
  2280. abstract="false" native="false" synchronized="false"
  2281. static="false" final="false" visibility="public"
  2282. deprecated="not deprecated">
  2283. <param name="o" type="java.lang.Object"/>
  2284. <doc>
  2285. <![CDATA[Compare this object to another object
  2286. @param o the object to be compared.
  2287. @return a negative integer, zero, or a positive integer as this object
  2288. is less than, equal to, or greater than the specified object.
  2289. @throws ClassCastException if the specified object's is not of
  2290. type FileStatus]]>
  2291. </doc>
  2292. </method>
  2293. <method name="equals" return="boolean"
  2294. abstract="false" native="false" synchronized="false"
  2295. static="false" final="false" visibility="public"
  2296. deprecated="not deprecated">
  2297. <param name="o" type="java.lang.Object"/>
  2298. <doc>
  2299. <![CDATA[Compare if this object is equal to another object
  2300. @param o the object to be compared.
  2301. @return true if two file status has the same path name; false if not.]]>
  2302. </doc>
  2303. </method>
  2304. <method name="hashCode" return="int"
  2305. abstract="false" native="false" synchronized="false"
  2306. static="false" final="false" visibility="public"
  2307. deprecated="not deprecated">
  2308. <doc>
  2309. <![CDATA[Returns a hash code value for the object, which is defined as
  2310. the hash code of the path name.
  2311. @return a hash code value for the path name.]]>
  2312. </doc>
  2313. </method>
  2314. <doc>
  2315. <![CDATA[Interface that represents the client side information for a file.]]>
  2316. </doc>
  2317. </class>
  2318. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2319. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2320. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2321. abstract="true"
  2322. static="false" final="false" visibility="public"
  2323. deprecated="not deprecated">
  2324. <implements name="java.io.Closeable"/>
  2325. <constructor name="FileSystem"
  2326. static="false" final="false" visibility="protected"
  2327. deprecated="not deprecated">
  2328. </constructor>
  2329. <method name="addFileSystemForTesting"
  2330. abstract="false" native="false" synchronized="false"
  2331. static="true" final="false" visibility="public"
  2332. deprecated="not deprecated">
  2333. <param name="uri" type="java.net.URI"/>
  2334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2335. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2336. <exception name="IOException" type="java.io.IOException"/>
  2337. <doc>
  2338. <![CDATA[This method adds a file system for testing so that we can find it later.
  2339. It is only for testing.
  2340. @param uri the uri to store it under
  2341. @param conf the configuration to store it under
  2342. @param fs the file system to store
  2343. @throws IOException]]>
  2344. </doc>
  2345. </method>
  2346. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2347. abstract="false" native="false" synchronized="false"
  2348. static="true" final="false" visibility="public"
  2349. deprecated="not deprecated">
  2350. <param name="uri" type="java.net.URI"/>
  2351. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2352. <param name="user" type="java.lang.String"/>
  2353. <exception name="IOException" type="java.io.IOException"/>
  2354. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2355. </method>
  2356. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2357. abstract="false" native="false" synchronized="false"
  2358. static="true" final="false" visibility="public"
  2359. deprecated="not deprecated">
  2360. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2361. <exception name="IOException" type="java.io.IOException"/>
  2362. <doc>
  2363. <![CDATA[Returns the configured filesystem implementation.]]>
  2364. </doc>
  2365. </method>
  2366. <method name="getDefaultUri" return="java.net.URI"
  2367. abstract="false" native="false" synchronized="false"
  2368. static="true" final="false" visibility="public"
  2369. deprecated="not deprecated">
  2370. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2371. <doc>
  2372. <![CDATA[Get the default filesystem URI from a configuration.
  2373. @param conf the configuration to access
  2374. @return the uri of the default filesystem]]>
  2375. </doc>
  2376. </method>
  2377. <method name="setDefaultUri"
  2378. abstract="false" native="false" synchronized="false"
  2379. static="true" final="false" visibility="public"
  2380. deprecated="not deprecated">
  2381. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2382. <param name="uri" type="java.net.URI"/>
  2383. <doc>
  2384. <![CDATA[Set the default filesystem URI in a configuration.
  2385. @param conf the configuration to alter
  2386. @param uri the new default filesystem uri]]>
  2387. </doc>
  2388. </method>
  2389. <method name="setDefaultUri"
  2390. abstract="false" native="false" synchronized="false"
  2391. static="true" final="false" visibility="public"
  2392. deprecated="not deprecated">
  2393. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2394. <param name="uri" type="java.lang.String"/>
  2395. <doc>
  2396. <![CDATA[Set the default filesystem URI in a configuration.
  2397. @param conf the configuration to alter
  2398. @param uri the new default filesystem uri]]>
  2399. </doc>
  2400. </method>
  2401. <method name="initialize"
  2402. abstract="false" native="false" synchronized="false"
  2403. static="false" final="false" visibility="public"
  2404. deprecated="not deprecated">
  2405. <param name="name" type="java.net.URI"/>
  2406. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2407. <exception name="IOException" type="java.io.IOException"/>
  2408. <doc>
  2409. <![CDATA[Called after a new FileSystem instance is constructed.
  2410. @param name a uri whose authority section names the host, port, etc.
  2411. for this FileSystem
  2412. @param conf the configuration]]>
  2413. </doc>
  2414. </method>
  2415. <method name="getUri" return="java.net.URI"
  2416. abstract="true" native="false" synchronized="false"
  2417. static="false" final="false" visibility="public"
  2418. deprecated="not deprecated">
  2419. <doc>
  2420. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2421. </doc>
  2422. </method>
  2423. <method name="getCanonicalUri" return="java.net.URI"
  2424. abstract="false" native="false" synchronized="false"
  2425. static="false" final="false" visibility="protected"
  2426. deprecated="not deprecated">
  2427. <doc>
  2428. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  2429. @return URI
  2430. @see NetUtils#getCanonicalUri(URI, int)]]>
  2431. </doc>
  2432. </method>
  2433. <method name="getDefaultPort" return="int"
  2434. abstract="false" native="false" synchronized="false"
  2435. static="false" final="false" visibility="protected"
  2436. deprecated="not deprecated">
  2437. <doc>
  2438. <![CDATA[Get the default port for this file system.
  2439. @return the default port or 0 if there isn't one]]>
  2440. </doc>
  2441. </method>
  2442. <method name="getCanonicalServiceName" return="java.lang.String"
  2443. abstract="false" native="false" synchronized="false"
  2444. static="false" final="false" visibility="public"
  2445. deprecated="not deprecated">
  2446. <doc>
  2447. <![CDATA[Get a canonical service name for this file system. The token cache is
  2448. the only user of this value, and uses it to lookup this filesystem's
  2449. service tokens. The token cache will not attempt to acquire tokens if the
  2450. service is null.
  2451. @return a service string that uniquely identifies this file system, null
  2452. if the filesystem does not implement tokens
  2453. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  2454. </doc>
  2455. </method>
  2456. <method name="getName" return="java.lang.String"
  2457. abstract="false" native="false" synchronized="false"
  2458. static="false" final="false" visibility="public"
  2459. deprecated="call #getUri() instead.">
  2460. <doc>
  2461. <![CDATA[@deprecated call #getUri() instead.]]>
  2462. </doc>
  2463. </method>
  2464. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2465. abstract="false" native="false" synchronized="false"
  2466. static="true" final="false" visibility="public"
  2467. deprecated="call #get(URI,Configuration) instead.">
  2468. <param name="name" type="java.lang.String"/>
  2469. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2470. <exception name="IOException" type="java.io.IOException"/>
  2471. <doc>
  2472. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2473. </doc>
  2474. </method>
  2475. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2476. abstract="false" native="false" synchronized="false"
  2477. static="true" final="false" visibility="public"
  2478. deprecated="not deprecated">
  2479. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2480. <exception name="IOException" type="java.io.IOException"/>
  2481. <doc>
  2482. <![CDATA[Get the local file syste
  2483. @param conf the configuration to configure the file system with
  2484. @return a LocalFileSystem]]>
  2485. </doc>
  2486. </method>
  2487. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2488. abstract="false" native="false" synchronized="false"
  2489. static="true" final="false" visibility="public"
  2490. deprecated="not deprecated">
  2491. <param name="uri" type="java.net.URI"/>
  2492. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2493. <exception name="IOException" type="java.io.IOException"/>
  2494. <doc>
  2495. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2496. of the URI determines a configuration property name,
  2497. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2498. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2499. </doc>
  2500. </method>
  2501. <method name="closeAll"
  2502. abstract="false" native="false" synchronized="false"
  2503. static="true" final="false" visibility="public"
  2504. deprecated="not deprecated">
  2505. <exception name="IOException" type="java.io.IOException"/>
  2506. <doc>
  2507. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2508. used anymore.
  2509. @throws IOException]]>
  2510. </doc>
  2511. </method>
  2512. <method name="closeAllForUGI"
  2513. abstract="false" native="false" synchronized="false"
  2514. static="true" final="false" visibility="public"
  2515. deprecated="not deprecated">
  2516. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  2517. <exception name="IOException" type="java.io.IOException"/>
  2518. <doc>
  2519. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  2520. are not used anymore.
  2521. @param ugi
  2522. @throws IOException]]>
  2523. </doc>
  2524. </method>
  2525. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2526. abstract="false" native="false" synchronized="false"
  2527. static="false" final="false" visibility="public"
  2528. deprecated="not deprecated">
  2529. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2530. <doc>
  2531. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2532. </doc>
  2533. </method>
  2534. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2535. abstract="false" native="false" synchronized="false"
  2536. static="true" final="false" visibility="public"
  2537. deprecated="not deprecated">
  2538. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2539. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2540. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2541. <exception name="IOException" type="java.io.IOException"/>
  2542. <doc>
  2543. <![CDATA[create a file with the provided permission
  2544. The permission of the file is set to be the provided permission as in
  2545. setPermission, not permission&~umask
  2546. It is implemented using two RPCs. It is understood that it is inefficient,
  2547. but the implementation is thread-safe. The other option is to change the
  2548. value of umask in configuration to be 0, but it is not thread-safe.
  2549. @param fs file system handle
  2550. @param file the name of the file to be created
  2551. @param permission the permission of the file
  2552. @return an output stream
  2553. @throws IOException]]>
  2554. </doc>
  2555. </method>
  2556. <method name="mkdirs" return="boolean"
  2557. abstract="false" native="false" synchronized="false"
  2558. static="true" final="false" visibility="public"
  2559. deprecated="not deprecated">
  2560. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2561. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2562. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2563. <exception name="IOException" type="java.io.IOException"/>
  2564. <doc>
  2565. <![CDATA[create a directory with the provided permission
  2566. The permission of the directory is set to be the provided permission as in
  2567. setPermission, not permission&~umask
  2568. @see #create(FileSystem, Path, FsPermission)
  2569. @param fs file system handle
  2570. @param dir the name of the directory to be created
  2571. @param permission the permission of the directory
  2572. @return true if the directory creation succeeds; false otherwise
  2573. @throws IOException]]>
  2574. </doc>
  2575. </method>
  2576. <method name="checkPath"
  2577. abstract="false" native="false" synchronized="false"
  2578. static="false" final="false" visibility="protected"
  2579. deprecated="not deprecated">
  2580. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2581. <doc>
  2582. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2583. </doc>
  2584. </method>
  2585. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2586. abstract="false" native="false" synchronized="false"
  2587. static="false" final="false" visibility="public"
  2588. deprecated="not deprecated">
  2589. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2590. <param name="start" type="long"/>
  2591. <param name="len" type="long"/>
  2592. <exception name="IOException" type="java.io.IOException"/>
  2593. <doc>
  2594. <![CDATA[Return an array containing hostnames, offset and size of
  2595. portions of the given file. For a nonexistent
  2596. file or regions, null will be returned.
  2597. This call is most helpful with DFS, where it returns
  2598. hostnames of machines that contain the given file.
  2599. The FileSystem will simply return an elt containing 'localhost'.]]>
  2600. </doc>
  2601. </method>
  2602. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2603. abstract="true" native="false" synchronized="false"
  2604. static="false" final="false" visibility="public"
  2605. deprecated="not deprecated">
  2606. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2607. <param name="bufferSize" type="int"/>
  2608. <exception name="IOException" type="java.io.IOException"/>
  2609. <doc>
  2610. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2611. @param f the file name to open
  2612. @param bufferSize the size of the buffer to be used.]]>
  2613. </doc>
  2614. </method>
  2615. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2616. abstract="false" native="false" synchronized="false"
  2617. static="false" final="false" visibility="public"
  2618. deprecated="not deprecated">
  2619. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2620. <exception name="IOException" type="java.io.IOException"/>
  2621. <doc>
  2622. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2623. @param f the file to open]]>
  2624. </doc>
  2625. </method>
  2626. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2627. abstract="false" native="false" synchronized="false"
  2628. static="false" final="false" visibility="public"
  2629. deprecated="not deprecated">
  2630. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2631. <exception name="IOException" type="java.io.IOException"/>
  2632. <doc>
  2633. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2634. Files are overwritten by default.]]>
  2635. </doc>
  2636. </method>
  2637. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2638. abstract="false" native="false" synchronized="false"
  2639. static="false" final="false" visibility="public"
  2640. deprecated="not deprecated">
  2641. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2642. <param name="overwrite" type="boolean"/>
  2643. <exception name="IOException" type="java.io.IOException"/>
  2644. <doc>
  2645. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2646. </doc>
  2647. </method>
  2648. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2649. abstract="false" native="false" synchronized="false"
  2650. static="false" final="false" visibility="public"
  2651. deprecated="not deprecated">
  2652. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2653. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2654. <exception name="IOException" type="java.io.IOException"/>
  2655. <doc>
  2656. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2657. reporting.
  2658. Files are overwritten by default.]]>
  2659. </doc>
  2660. </method>
  2661. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2662. abstract="false" native="false" synchronized="false"
  2663. static="false" final="false" visibility="public"
  2664. deprecated="not deprecated">
  2665. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2666. <param name="replication" type="short"/>
  2667. <exception name="IOException" type="java.io.IOException"/>
  2668. <doc>
  2669. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2670. Files are overwritten by default.]]>
  2671. </doc>
  2672. </method>
  2673. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2674. abstract="false" native="false" synchronized="false"
  2675. static="false" final="false" visibility="public"
  2676. deprecated="not deprecated">
  2677. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2678. <param name="replication" type="short"/>
  2679. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2680. <exception name="IOException" type="java.io.IOException"/>
  2681. <doc>
  2682. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2683. reporting.
  2684. Files are overwritten by default.]]>
  2685. </doc>
  2686. </method>
  2687. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2688. abstract="false" native="false" synchronized="false"
  2689. static="false" final="false" visibility="public"
  2690. deprecated="not deprecated">
  2691. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2692. <param name="overwrite" type="boolean"/>
  2693. <param name="bufferSize" type="int"/>
  2694. <exception name="IOException" type="java.io.IOException"/>
  2695. <doc>
  2696. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2697. @param f the file name to open
  2698. @param overwrite if a file with this name already exists, then if true,
  2699. the file will be overwritten, and if false an error will be thrown.
  2700. @param bufferSize the size of the buffer to be used.]]>
  2701. </doc>
  2702. </method>
  2703. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2704. abstract="false" native="false" synchronized="false"
  2705. static="false" final="false" visibility="public"
  2706. deprecated="not deprecated">
  2707. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2708. <param name="overwrite" type="boolean"/>
  2709. <param name="bufferSize" type="int"/>
  2710. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2711. <exception name="IOException" type="java.io.IOException"/>
  2712. <doc>
  2713. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2714. reporting.
  2715. @param f the file name to open
  2716. @param overwrite if a file with this name already exists, then if true,
  2717. the file will be overwritten, and if false an error will be thrown.
  2718. @param bufferSize the size of the buffer to be used.]]>
  2719. </doc>
  2720. </method>
  2721. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2722. abstract="false" native="false" synchronized="false"
  2723. static="false" final="false" visibility="public"
  2724. deprecated="not deprecated">
  2725. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2726. <param name="overwrite" type="boolean"/>
  2727. <param name="bufferSize" type="int"/>
  2728. <param name="replication" type="short"/>
  2729. <param name="blockSize" type="long"/>
  2730. <exception name="IOException" type="java.io.IOException"/>
  2731. <doc>
  2732. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2733. @param f the file name to open
  2734. @param overwrite if a file with this name already exists, then if true,
  2735. the file will be overwritten, and if false an error will be thrown.
  2736. @param bufferSize the size of the buffer to be used.
  2737. @param replication required block replication for the file.]]>
  2738. </doc>
  2739. </method>
  2740. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2741. abstract="false" native="false" synchronized="false"
  2742. static="false" final="false" visibility="public"
  2743. deprecated="not deprecated">
  2744. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2745. <param name="overwrite" type="boolean"/>
  2746. <param name="bufferSize" type="int"/>
  2747. <param name="replication" type="short"/>
  2748. <param name="blockSize" type="long"/>
  2749. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2750. <exception name="IOException" type="java.io.IOException"/>
  2751. <doc>
  2752. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2753. reporting.
  2754. @param f the file name to open
  2755. @param overwrite if a file with this name already exists, then if true,
  2756. the file will be overwritten, and if false an error will be thrown.
  2757. @param bufferSize the size of the buffer to be used.
  2758. @param replication required block replication for the file.]]>
  2759. </doc>
  2760. </method>
  2761. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2762. abstract="true" native="false" synchronized="false"
  2763. static="false" final="false" visibility="public"
  2764. deprecated="not deprecated">
  2765. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2766. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2767. <param name="overwrite" type="boolean"/>
  2768. <param name="bufferSize" type="int"/>
  2769. <param name="replication" type="short"/>
  2770. <param name="blockSize" type="long"/>
  2771. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2772. <exception name="IOException" type="java.io.IOException"/>
  2773. <doc>
  2774. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2775. reporting.
  2776. @param f the file name to open
  2777. @param permission
  2778. @param overwrite if a file with this name already exists, then if true,
  2779. the file will be overwritten, and if false an error will be thrown.
  2780. @param bufferSize the size of the buffer to be used.
  2781. @param replication required block replication for the file.
  2782. @param blockSize
  2783. @param progress
  2784. @throws IOException
  2785. @see #setPermission(Path, FsPermission)]]>
  2786. </doc>
  2787. </method>
  2788. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2789. abstract="false" native="false" synchronized="false"
  2790. static="false" final="false" visibility="public"
  2791. deprecated="API only for 0.20-append">
  2792. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2793. <param name="overwrite" type="boolean"/>
  2794. <param name="bufferSize" type="int"/>
  2795. <param name="replication" type="short"/>
  2796. <param name="blockSize" type="long"/>
  2797. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2798. <exception name="IOException" type="java.io.IOException"/>
  2799. <doc>
  2800. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2801. reporting. Same as create(), except fails if parent directory doesn't
  2802. already exist.
  2803. @param f the file name to open
  2804. @param overwrite if a file with this name already exists, then if true,
  2805. the file will be overwritten, and if false an error will be thrown.
  2806. @param bufferSize the size of the buffer to be used.
  2807. @param replication required block replication for the file.
  2808. @param blockSize
  2809. @param progress
  2810. @throws IOException
  2811. @see #setPermission(Path, FsPermission)
  2812. @deprecated API only for 0.20-append]]>
  2813. </doc>
  2814. </method>
  2815. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2816. abstract="false" native="false" synchronized="false"
  2817. static="false" final="false" visibility="public"
  2818. deprecated="API only for 0.20-append">
  2819. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2820. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2821. <param name="overwrite" type="boolean"/>
  2822. <param name="bufferSize" type="int"/>
  2823. <param name="replication" type="short"/>
  2824. <param name="blockSize" type="long"/>
  2825. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2826. <exception name="IOException" type="java.io.IOException"/>
  2827. <doc>
  2828. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2829. reporting. Same as create(), except fails if parent directory doesn't
  2830. already exist.
  2831. @param f the file name to open
  2832. @param permission
  2833. @param overwrite if a file with this name already exists, then if true,
  2834. the file will be overwritten, and if false an error will be thrown.
  2835. @param bufferSize the size of the buffer to be used.
  2836. @param replication required block replication for the file.
  2837. @param blockSize
  2838. @param progress
  2839. @throws IOException
  2840. @see #setPermission(Path, FsPermission)
  2841. @deprecated API only for 0.20-append]]>
  2842. </doc>
  2843. </method>
  2844. <method name="createNewFile" return="boolean"
  2845. abstract="false" native="false" synchronized="false"
  2846. static="false" final="false" visibility="public"
  2847. deprecated="not deprecated">
  2848. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2849. <exception name="IOException" type="java.io.IOException"/>
  2850. <doc>
  2851. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2852. create fails, or if it already existed, return false.]]>
  2853. </doc>
  2854. </method>
  2855. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2856. abstract="false" native="false" synchronized="false"
  2857. static="false" final="false" visibility="public"
  2858. deprecated="not deprecated">
  2859. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2860. <exception name="IOException" type="java.io.IOException"/>
  2861. <doc>
  2862. <![CDATA[Append to an existing file (optional operation).
  2863. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2864. @param f the existing file to be appended.
  2865. @throws IOException]]>
  2866. </doc>
  2867. </method>
  2868. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2869. abstract="false" native="false" synchronized="false"
  2870. static="false" final="false" visibility="public"
  2871. deprecated="not deprecated">
  2872. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2873. <param name="bufferSize" type="int"/>
  2874. <exception name="IOException" type="java.io.IOException"/>
  2875. <doc>
  2876. <![CDATA[Append to an existing file (optional operation).
  2877. Same as append(f, bufferSize, null).
  2878. @param f the existing file to be appended.
  2879. @param bufferSize the size of the buffer to be used.
  2880. @throws IOException]]>
  2881. </doc>
  2882. </method>
  2883. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2884. abstract="true" native="false" synchronized="false"
  2885. static="false" final="false" visibility="public"
  2886. deprecated="not deprecated">
  2887. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2888. <param name="bufferSize" type="int"/>
  2889. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2890. <exception name="IOException" type="java.io.IOException"/>
  2891. <doc>
  2892. <![CDATA[Append to an existing file (optional operation).
  2893. @param f the existing file to be appended.
  2894. @param bufferSize the size of the buffer to be used.
  2895. @param progress for reporting progress if it is not null.
  2896. @throws IOException]]>
  2897. </doc>
  2898. </method>
  2899. <method name="getReplication" return="short"
  2900. abstract="false" native="false" synchronized="false"
  2901. static="false" final="false" visibility="public"
  2902. deprecated="Use getFileStatus() instead">
  2903. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2904. <exception name="IOException" type="java.io.IOException"/>
  2905. <doc>
  2906. <![CDATA[Get replication.
  2907. @deprecated Use getFileStatus() instead
  2908. @param src file name
  2909. @return file replication
  2910. @throws IOException]]>
  2911. </doc>
  2912. </method>
  2913. <method name="setReplication" return="boolean"
  2914. abstract="false" native="false" synchronized="false"
  2915. static="false" final="false" visibility="public"
  2916. deprecated="not deprecated">
  2917. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2918. <param name="replication" type="short"/>
  2919. <exception name="IOException" type="java.io.IOException"/>
  2920. <doc>
  2921. <![CDATA[Set replication for an existing file.
  2922. @param src file name
  2923. @param replication new replication
  2924. @throws IOException
  2925. @return true if successful;
  2926. false if file does not exist or is a directory]]>
  2927. </doc>
  2928. </method>
  2929. <method name="rename" return="boolean"
  2930. abstract="true" native="false" synchronized="false"
  2931. static="false" final="false" visibility="public"
  2932. deprecated="not deprecated">
  2933. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2934. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2935. <exception name="IOException" type="java.io.IOException"/>
  2936. <doc>
  2937. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2938. or remote DFS.]]>
  2939. </doc>
  2940. </method>
  2941. <method name="delete" return="boolean"
  2942. abstract="true" native="false" synchronized="false"
  2943. static="false" final="false" visibility="public"
  2944. deprecated="Use delete(Path, boolean) instead">
  2945. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2946. <exception name="IOException" type="java.io.IOException"/>
  2947. <doc>
  2948. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2949. </doc>
  2950. </method>
  2951. <method name="delete" return="boolean"
  2952. abstract="true" native="false" synchronized="false"
  2953. static="false" final="false" visibility="public"
  2954. deprecated="not deprecated">
  2955. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2956. <param name="recursive" type="boolean"/>
  2957. <exception name="IOException" type="java.io.IOException"/>
  2958. <doc>
  2959. <![CDATA[Delete a file.
  2960. @param f the path to delete.
  2961. @param recursive if path is a directory and set to
  2962. true, the directory is deleted else throws an exception. In
  2963. case of a file the recursive can be set to either true or false.
  2964. @return true if delete is successful else false.
  2965. @throws IOException]]>
  2966. </doc>
  2967. </method>
  2968. <method name="deleteOnExit" return="boolean"
  2969. abstract="false" native="false" synchronized="false"
  2970. static="false" final="false" visibility="public"
  2971. deprecated="not deprecated">
  2972. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2973. <exception name="IOException" type="java.io.IOException"/>
  2974. <doc>
  2975. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  2976. When the JVM shuts down,
  2977. all FileSystem objects will be closed automatically.
  2978. Then,
  2979. the marked path will be deleted as a result of closing the FileSystem.
  2980. The path has to exist in the file system.
  2981. @param f the path to delete.
  2982. @return true if deleteOnExit is successful, otherwise false.
  2983. @throws IOException]]>
  2984. </doc>
  2985. </method>
  2986. <method name="processDeleteOnExit"
  2987. abstract="false" native="false" synchronized="false"
  2988. static="false" final="false" visibility="protected"
  2989. deprecated="not deprecated">
  2990. <doc>
  2991. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  2992. deletes all files in the specified paths.]]>
  2993. </doc>
  2994. </method>
  2995. <method name="exists" return="boolean"
  2996. abstract="false" native="false" synchronized="false"
  2997. static="false" final="false" visibility="public"
  2998. deprecated="not deprecated">
  2999. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3000. <exception name="IOException" type="java.io.IOException"/>
  3001. <doc>
  3002. <![CDATA[Check if exists.
  3003. @param f source file]]>
  3004. </doc>
  3005. </method>
  3006. <method name="isDirectory" return="boolean"
  3007. abstract="false" native="false" synchronized="false"
  3008. static="false" final="false" visibility="public"
  3009. deprecated="Use getFileStatus() instead">
  3010. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3011. <exception name="IOException" type="java.io.IOException"/>
  3012. <doc>
  3013. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3014. </doc>
  3015. </method>
  3016. <method name="isFile" return="boolean"
  3017. abstract="false" native="false" synchronized="false"
  3018. static="false" final="false" visibility="public"
  3019. deprecated="not deprecated">
  3020. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3021. <exception name="IOException" type="java.io.IOException"/>
  3022. <doc>
  3023. <![CDATA[True iff the named path is a regular file.]]>
  3024. </doc>
  3025. </method>
  3026. <method name="getLength" return="long"
  3027. abstract="false" native="false" synchronized="false"
  3028. static="false" final="false" visibility="public"
  3029. deprecated="Use getFileStatus() instead">
  3030. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3031. <exception name="IOException" type="java.io.IOException"/>
  3032. <doc>
  3033. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3034. </doc>
  3035. </method>
  3036. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  3037. abstract="false" native="false" synchronized="false"
  3038. static="false" final="false" visibility="public"
  3039. deprecated="not deprecated">
  3040. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3041. <exception name="IOException" type="java.io.IOException"/>
  3042. <doc>
  3043. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  3044. </doc>
  3045. </method>
  3046. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3047. abstract="true" native="false" synchronized="false"
  3048. static="false" final="false" visibility="public"
  3049. deprecated="not deprecated">
  3050. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3051. <exception name="IOException" type="java.io.IOException"/>
  3052. <doc>
  3053. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3054. a directory.
  3055. @param f
  3056. given path
  3057. @return the statuses of the files/directories in the given patch
  3058. returns null, if Path f does not exist in the FileSystem
  3059. @throws IOException]]>
  3060. </doc>
  3061. </method>
  3062. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3063. abstract="false" native="false" synchronized="false"
  3064. static="false" final="false" visibility="public"
  3065. deprecated="not deprecated">
  3066. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3067. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3068. <exception name="IOException" type="java.io.IOException"/>
  3069. <doc>
  3070. <![CDATA[Filter files/directories in the given path using the user-supplied path
  3071. filter.
  3072. @param f
  3073. a path name
  3074. @param filter
  3075. the user-supplied path filter
  3076. @return an array of FileStatus objects for the files under the given path
  3077. after applying the filter
  3078. @throws IOException
  3079. if encounter any problem while fetching the status]]>
  3080. </doc>
  3081. </method>
  3082. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3083. abstract="false" native="false" synchronized="false"
  3084. static="false" final="false" visibility="public"
  3085. deprecated="not deprecated">
  3086. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3087. <exception name="IOException" type="java.io.IOException"/>
  3088. <doc>
  3089. <![CDATA[Filter files/directories in the given list of paths using default
  3090. path filter.
  3091. @param files
  3092. a list of paths
  3093. @return a list of statuses for the files under the given paths after
  3094. applying the filter default Path filter
  3095. @exception IOException]]>
  3096. </doc>
  3097. </method>
  3098. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3099. abstract="false" native="false" synchronized="false"
  3100. static="false" final="false" visibility="public"
  3101. deprecated="not deprecated">
  3102. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3103. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3104. <exception name="IOException" type="java.io.IOException"/>
  3105. <doc>
  3106. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3107. path filter.
  3108. @param files
  3109. a list of paths
  3110. @param filter
  3111. the user-supplied path filter
  3112. @return a list of statuses for the files under the given paths after
  3113. applying the filter
  3114. @exception IOException]]>
  3115. </doc>
  3116. </method>
  3117. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3118. abstract="false" native="false" synchronized="false"
  3119. static="false" final="false" visibility="public"
  3120. deprecated="not deprecated">
  3121. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3122. <exception name="IOException" type="java.io.IOException"/>
  3123. <doc>
  3124. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3125. files. Results are sorted by their names.
  3126. <p>
  3127. A filename pattern is composed of <i>regular</i> characters and
  3128. <i>special pattern matching</i> characters, which are:
  3129. <dl>
  3130. <dd>
  3131. <dl>
  3132. <p>
  3133. <dt> <tt> ? </tt>
  3134. <dd> Matches any single character.
  3135. <p>
  3136. <dt> <tt> * </tt>
  3137. <dd> Matches zero or more characters.
  3138. <p>
  3139. <dt> <tt> [<i>abc</i>] </tt>
  3140. <dd> Matches a single character from character set
  3141. <tt>{<i>a,b,c</i>}</tt>.
  3142. <p>
  3143. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3144. <dd> Matches a single character from the character range
  3145. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3146. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3147. <p>
  3148. <dt> <tt> [^<i>a</i>] </tt>
  3149. <dd> Matches a single character that is not from character set or range
  3150. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3151. immediately to the right of the opening bracket.
  3152. <p>
  3153. <dt> <tt> \<i>c</i> </tt>
  3154. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3155. <p>
  3156. <dt> <tt> {ab,cd} </tt>
  3157. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3158. <p>
  3159. <dt> <tt> {ab,c{de,fh}} </tt>
  3160. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3161. </dl>
  3162. </dd>
  3163. </dl>
  3164. @param pathPattern a regular expression specifying a pth pattern
  3165. @return an array of paths that match the path pattern
  3166. @throws IOException]]>
  3167. </doc>
  3168. </method>
  3169. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3170. abstract="false" native="false" synchronized="false"
  3171. static="false" final="false" visibility="public"
  3172. deprecated="not deprecated">
  3173. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3174. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3175. <exception name="IOException" type="java.io.IOException"/>
  3176. <doc>
  3177. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3178. and is accepted by the user-supplied path filter. Results are sorted by
  3179. their path names.
  3180. Return null if pathPattern has no glob and the path does not exist.
  3181. Return an empty array if pathPattern has a glob and no path matches it.
  3182. @param pathPattern
  3183. a regular expression specifying the path pattern
  3184. @param filter
  3185. a user-supplied path filter
  3186. @return an array of FileStatus objects
  3187. @throws IOException if any I/O error occurs when fetching file status]]>
  3188. </doc>
  3189. </method>
  3190. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3191. abstract="false" native="false" synchronized="false"
  3192. static="false" final="false" visibility="public"
  3193. deprecated="not deprecated">
  3194. <doc>
  3195. <![CDATA[Return the current user's home directory in this filesystem.
  3196. The default implementation returns "/user/$USER/".]]>
  3197. </doc>
  3198. </method>
  3199. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  3200. abstract="false" native="false" synchronized="false"
  3201. static="false" final="false" visibility="public"
  3202. deprecated="not deprecated">
  3203. <param name="renewer" type="java.lang.String"/>
  3204. <exception name="IOException" type="java.io.IOException"/>
  3205. <doc>
  3206. <![CDATA[Get a new delegation token for this file system.
  3207. @param renewer the account name that is allowed to renew the token.
  3208. @return a new delegation token
  3209. @throws IOException]]>
  3210. </doc>
  3211. </method>
  3212. <method name="setWorkingDirectory"
  3213. abstract="true" native="false" synchronized="false"
  3214. static="false" final="false" visibility="public"
  3215. deprecated="not deprecated">
  3216. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3217. <doc>
  3218. <![CDATA[Set the current working directory for the given file system. All relative
  3219. paths will be resolved relative to it.
  3220. @param new_dir]]>
  3221. </doc>
  3222. </method>
  3223. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3224. abstract="true" native="false" synchronized="false"
  3225. static="false" final="false" visibility="public"
  3226. deprecated="not deprecated">
  3227. <doc>
  3228. <![CDATA[Get the current working directory for the given file system
  3229. @return the directory pathname]]>
  3230. </doc>
  3231. </method>
  3232. <method name="mkdirs" return="boolean"
  3233. abstract="false" native="false" synchronized="false"
  3234. static="false" final="false" visibility="public"
  3235. deprecated="not deprecated">
  3236. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3237. <exception name="IOException" type="java.io.IOException"/>
  3238. <doc>
  3239. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3240. </doc>
  3241. </method>
  3242. <method name="mkdirs" return="boolean"
  3243. abstract="true" native="false" synchronized="false"
  3244. static="false" final="false" visibility="public"
  3245. deprecated="not deprecated">
  3246. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3247. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3248. <exception name="IOException" type="java.io.IOException"/>
  3249. <doc>
  3250. <![CDATA[Make the given file and all non-existent parents into
  3251. directories. Has the semantics of Unix 'mkdir -p'.
  3252. Existence of the directory hierarchy is not an error.]]>
  3253. </doc>
  3254. </method>
  3255. <method name="copyFromLocalFile"
  3256. abstract="false" native="false" synchronized="false"
  3257. static="false" final="false" visibility="public"
  3258. deprecated="not deprecated">
  3259. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3260. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3261. <exception name="IOException" type="java.io.IOException"/>
  3262. <doc>
  3263. <![CDATA[The src file is on the local disk. Add it to FS at
  3264. the given dst name and the source is kept intact afterwards]]>
  3265. </doc>
  3266. </method>
  3267. <method name="moveFromLocalFile"
  3268. abstract="false" native="false" synchronized="false"
  3269. static="false" final="false" visibility="public"
  3270. deprecated="not deprecated">
  3271. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3272. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3273. <exception name="IOException" type="java.io.IOException"/>
  3274. <doc>
  3275. <![CDATA[The src files is on the local disk. Add it to FS at
  3276. the given dst name, removing the source afterwards.]]>
  3277. </doc>
  3278. </method>
  3279. <method name="moveFromLocalFile"
  3280. abstract="false" native="false" synchronized="false"
  3281. static="false" final="false" visibility="public"
  3282. deprecated="not deprecated">
  3283. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3284. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3285. <exception name="IOException" type="java.io.IOException"/>
  3286. <doc>
  3287. <![CDATA[The src file is on the local disk. Add it to FS at
  3288. the given dst name, removing the source afterwards.]]>
  3289. </doc>
  3290. </method>
  3291. <method name="copyFromLocalFile"
  3292. abstract="false" native="false" synchronized="false"
  3293. static="false" final="false" visibility="public"
  3294. deprecated="not deprecated">
  3295. <param name="delSrc" type="boolean"/>
  3296. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3297. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3298. <exception name="IOException" type="java.io.IOException"/>
  3299. <doc>
  3300. <![CDATA[The src file is on the local disk. Add it to FS at
  3301. the given dst name.
  3302. delSrc indicates if the source should be removed]]>
  3303. </doc>
  3304. </method>
  3305. <method name="copyFromLocalFile"
  3306. abstract="false" native="false" synchronized="false"
  3307. static="false" final="false" visibility="public"
  3308. deprecated="not deprecated">
  3309. <param name="delSrc" type="boolean"/>
  3310. <param name="overwrite" type="boolean"/>
  3311. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3312. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3313. <exception name="IOException" type="java.io.IOException"/>
  3314. <doc>
  3315. <![CDATA[The src files are on the local disk. Add it to FS at
  3316. the given dst name.
  3317. delSrc indicates if the source should be removed]]>
  3318. </doc>
  3319. </method>
  3320. <method name="copyFromLocalFile"
  3321. abstract="false" native="false" synchronized="false"
  3322. static="false" final="false" visibility="public"
  3323. deprecated="not deprecated">
  3324. <param name="delSrc" type="boolean"/>
  3325. <param name="overwrite" type="boolean"/>
  3326. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3327. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3328. <exception name="IOException" type="java.io.IOException"/>
  3329. <doc>
  3330. <![CDATA[The src file is on the local disk. Add it to FS at
  3331. the given dst name.
  3332. delSrc indicates if the source should be removed]]>
  3333. </doc>
  3334. </method>
  3335. <method name="copyToLocalFile"
  3336. abstract="false" native="false" synchronized="false"
  3337. static="false" final="false" visibility="public"
  3338. deprecated="not deprecated">
  3339. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3340. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3341. <exception name="IOException" type="java.io.IOException"/>
  3342. <doc>
  3343. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3344. Copy it from FS control to the local dst name.]]>
  3345. </doc>
  3346. </method>
  3347. <method name="moveToLocalFile"
  3348. abstract="false" native="false" synchronized="false"
  3349. static="false" final="false" visibility="public"
  3350. deprecated="not deprecated">
  3351. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3352. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3353. <exception name="IOException" type="java.io.IOException"/>
  3354. <doc>
  3355. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3356. Copy it from FS control to the local dst name.
  3357. Remove the source afterwards]]>
  3358. </doc>
  3359. </method>
  3360. <method name="copyToLocalFile"
  3361. abstract="false" native="false" synchronized="false"
  3362. static="false" final="false" visibility="public"
  3363. deprecated="not deprecated">
  3364. <param name="delSrc" type="boolean"/>
  3365. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3366. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3367. <exception name="IOException" type="java.io.IOException"/>
  3368. <doc>
  3369. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3370. Copy it from FS control to the local dst name.
  3371. delSrc indicates if the src will be removed or not.]]>
  3372. </doc>
  3373. </method>
  3374. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3375. abstract="false" native="false" synchronized="false"
  3376. static="false" final="false" visibility="public"
  3377. deprecated="not deprecated">
  3378. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3379. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3380. <exception name="IOException" type="java.io.IOException"/>
  3381. <doc>
  3382. <![CDATA[Returns a local File that the user can write output to. The caller
  3383. provides both the eventual FS target name and the local working
  3384. file. If the FS is local, we write directly into the target. If
  3385. the FS is remote, we write into the tmp local area.]]>
  3386. </doc>
  3387. </method>
  3388. <method name="completeLocalOutput"
  3389. abstract="false" native="false" synchronized="false"
  3390. static="false" final="false" visibility="public"
  3391. deprecated="not deprecated">
  3392. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3393. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3394. <exception name="IOException" type="java.io.IOException"/>
  3395. <doc>
  3396. <![CDATA[Called when we're all done writing to the target. A local FS will
  3397. do nothing, because we've written to exactly the right place. A remote
  3398. FS will copy the contents of tmpLocalFile to the correct target at
  3399. fsOutputFile.]]>
  3400. </doc>
  3401. </method>
  3402. <method name="close"
  3403. abstract="false" native="false" synchronized="false"
  3404. static="false" final="false" visibility="public"
  3405. deprecated="not deprecated">
  3406. <exception name="IOException" type="java.io.IOException"/>
  3407. <doc>
  3408. <![CDATA[No more filesystem operations are needed. Will
  3409. release any held locks.]]>
  3410. </doc>
  3411. </method>
  3412. <method name="getUsed" return="long"
  3413. abstract="false" native="false" synchronized="false"
  3414. static="false" final="false" visibility="public"
  3415. deprecated="not deprecated">
  3416. <exception name="IOException" type="java.io.IOException"/>
  3417. <doc>
  3418. <![CDATA[Return the total size of all files in the filesystem.]]>
  3419. </doc>
  3420. </method>
  3421. <method name="getBlockSize" return="long"
  3422. abstract="false" native="false" synchronized="false"
  3423. static="false" final="false" visibility="public"
  3424. deprecated="Use getFileStatus() instead">
  3425. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3426. <exception name="IOException" type="java.io.IOException"/>
  3427. <doc>
  3428. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3429. </doc>
  3430. </method>
  3431. <method name="getDefaultBlockSize" return="long"
  3432. abstract="false" native="false" synchronized="false"
  3433. static="false" final="false" visibility="public"
  3434. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  3435. <doc>
  3436. <![CDATA[Return the number of bytes that large input files should be optimally
  3437. be split into to minimize i/o time.
  3438. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  3439. </doc>
  3440. </method>
  3441. <method name="getDefaultBlockSize" return="long"
  3442. abstract="false" native="false" synchronized="false"
  3443. static="false" final="false" visibility="public"
  3444. deprecated="not deprecated">
  3445. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3446. <doc>
  3447. <![CDATA[Return the number of bytes that large input files should be optimally
  3448. be split into to minimize i/o time.
  3449. @param f path of file
  3450. @return the default block size for the path's filesystem]]>
  3451. </doc>
  3452. </method>
  3453. <method name="getDefaultReplication" return="short"
  3454. abstract="false" native="false" synchronized="false"
  3455. static="false" final="false" visibility="public"
  3456. deprecated="use {@link #getDefaultReplication(Path)} instead">
  3457. <doc>
  3458. <![CDATA[Get the default replication.
  3459. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  3460. </doc>
  3461. </method>
  3462. <method name="getDefaultReplication" return="short"
  3463. abstract="false" native="false" synchronized="false"
  3464. static="false" final="false" visibility="public"
  3465. deprecated="not deprecated">
  3466. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3467. <doc>
  3468. <![CDATA[Get the default replication.
  3469. @param path of the file
  3470. @return default replication for the path's filesystem]]>
  3471. </doc>
  3472. </method>
  3473. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3474. abstract="true" native="false" synchronized="false"
  3475. static="false" final="false" visibility="public"
  3476. deprecated="not deprecated">
  3477. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3478. <exception name="IOException" type="java.io.IOException"/>
  3479. <doc>
  3480. <![CDATA[Return a file status object that represents the path.
  3481. @param f The path we want information from
  3482. @return a FileStatus object
  3483. @throws FileNotFoundException when the path does not exist;
  3484. IOException see specific implementation]]>
  3485. </doc>
  3486. </method>
  3487. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3488. abstract="false" native="false" synchronized="false"
  3489. static="false" final="false" visibility="public"
  3490. deprecated="not deprecated">
  3491. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3492. <exception name="IOException" type="java.io.IOException"/>
  3493. <doc>
  3494. <![CDATA[Get the checksum of a file.
  3495. @param f The file path
  3496. @return The file checksum. The default return value is null,
  3497. which indicates that no checksum algorithm is implemented
  3498. in the corresponding FileSystem.]]>
  3499. </doc>
  3500. </method>
  3501. <method name="setVerifyChecksum"
  3502. abstract="false" native="false" synchronized="false"
  3503. static="false" final="false" visibility="public"
  3504. deprecated="not deprecated">
  3505. <param name="verifyChecksum" type="boolean"/>
  3506. <doc>
  3507. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3508. corresponding FileSystem supports checksum. By default doesn't do anything.
  3509. @param verifyChecksum]]>
  3510. </doc>
  3511. </method>
  3512. <method name="setPermission"
  3513. abstract="false" native="false" synchronized="false"
  3514. static="false" final="false" visibility="public"
  3515. deprecated="not deprecated">
  3516. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3517. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3518. <exception name="IOException" type="java.io.IOException"/>
  3519. <doc>
  3520. <![CDATA[Set permission of a path.
  3521. @param p
  3522. @param permission]]>
  3523. </doc>
  3524. </method>
  3525. <method name="setOwner"
  3526. abstract="false" native="false" synchronized="false"
  3527. static="false" final="false" visibility="public"
  3528. deprecated="not deprecated">
  3529. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3530. <param name="username" type="java.lang.String"/>
  3531. <param name="groupname" type="java.lang.String"/>
  3532. <exception name="IOException" type="java.io.IOException"/>
  3533. <doc>
  3534. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3535. The parameters username and groupname cannot both be null.
  3536. @param p The path
  3537. @param username If it is null, the original username remains unchanged.
  3538. @param groupname If it is null, the original groupname remains unchanged.]]>
  3539. </doc>
  3540. </method>
  3541. <method name="setTimes"
  3542. abstract="false" native="false" synchronized="false"
  3543. static="false" final="false" visibility="public"
  3544. deprecated="not deprecated">
  3545. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3546. <param name="mtime" type="long"/>
  3547. <param name="atime" type="long"/>
  3548. <exception name="IOException" type="java.io.IOException"/>
  3549. <doc>
  3550. <![CDATA[Set access time of a file
  3551. @param p The path
  3552. @param mtime Set the modification time of this file.
  3553. The number of milliseconds since Jan 1, 1970.
  3554. A value of -1 means that this call should not set modification time.
  3555. @param atime Set the access time of this file.
  3556. The number of milliseconds since Jan 1, 1970.
  3557. A value of -1 means that this call should not set access time.]]>
  3558. </doc>
  3559. </method>
  3560. <method name="getStatistics" return="java.util.Map"
  3561. abstract="false" native="false" synchronized="true"
  3562. static="true" final="false" visibility="public"
  3563. deprecated="use {@link #getAllStatistics} instead">
  3564. <doc>
  3565. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3566. @return a Map having a key as URI scheme and value as Statistics object
  3567. @deprecated use {@link #getAllStatistics} instead]]>
  3568. </doc>
  3569. </method>
  3570. <method name="getAllStatistics" return="java.util.List"
  3571. abstract="false" native="false" synchronized="true"
  3572. static="true" final="false" visibility="public"
  3573. deprecated="not deprecated">
  3574. <doc>
  3575. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3576. </doc>
  3577. </method>
  3578. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3579. abstract="false" native="false" synchronized="true"
  3580. static="true" final="false" visibility="public"
  3581. deprecated="not deprecated">
  3582. <param name="scheme" type="java.lang.String"/>
  3583. <param name="cls" type="java.lang.Class"/>
  3584. <doc>
  3585. <![CDATA[Get the statistics for a particular file system
  3586. @param cls the class to lookup
  3587. @return a statistics object]]>
  3588. </doc>
  3589. </method>
  3590. <method name="clearStatistics"
  3591. abstract="false" native="false" synchronized="true"
  3592. static="true" final="false" visibility="public"
  3593. deprecated="not deprecated">
  3594. </method>
  3595. <method name="printStatistics"
  3596. abstract="false" native="false" synchronized="true"
  3597. static="true" final="false" visibility="public"
  3598. deprecated="not deprecated">
  3599. <exception name="IOException" type="java.io.IOException"/>
  3600. </method>
  3601. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3602. transient="false" volatile="false"
  3603. static="true" final="true" visibility="public"
  3604. deprecated="not deprecated">
  3605. </field>
  3606. <field name="LOG" type="org.apache.commons.logging.Log"
  3607. transient="false" volatile="false"
  3608. static="true" final="true" visibility="public"
  3609. deprecated="not deprecated">
  3610. </field>
  3611. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3612. transient="false" volatile="false"
  3613. static="false" final="false" visibility="protected"
  3614. deprecated="not deprecated">
  3615. <doc>
  3616. <![CDATA[The statistics for this file system.]]>
  3617. </doc>
  3618. </field>
  3619. <doc>
  3620. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3621. may be implemented as a distributed filesystem, or as a "local"
  3622. one that reflects the locally-connected disk. The local version
  3623. exists for small Hadoop instances and for testing.
  3624. <p>
  3625. All user code that may potentially use the Hadoop Distributed
  3626. File System should be written to use a FileSystem object. The
  3627. Hadoop DFS is a multi-machine system that appears as a single
  3628. disk. It's useful because of its fault tolerance and potentially
  3629. very large capacity.
  3630. <p>
  3631. The local implementation is {@link LocalFileSystem} and distributed
  3632. implementation is DistributedFileSystem.]]>
  3633. </doc>
  3634. </class>
  3635. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3636. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3637. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3638. abstract="false"
  3639. static="true" final="true" visibility="public"
  3640. deprecated="not deprecated">
  3641. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3642. static="false" final="false" visibility="public"
  3643. deprecated="not deprecated">
  3644. </constructor>
  3645. <method name="incrementBytesRead"
  3646. abstract="false" native="false" synchronized="false"
  3647. static="false" final="false" visibility="public"
  3648. deprecated="not deprecated">
  3649. <param name="newBytes" type="long"/>
  3650. <doc>
  3651. <![CDATA[Increment the bytes read in the statistics
  3652. @param newBytes the additional bytes read]]>
  3653. </doc>
  3654. </method>
  3655. <method name="incrementBytesWritten"
  3656. abstract="false" native="false" synchronized="false"
  3657. static="false" final="false" visibility="public"
  3658. deprecated="not deprecated">
  3659. <param name="newBytes" type="long"/>
  3660. <doc>
  3661. <![CDATA[Increment the bytes written in the statistics
  3662. @param newBytes the additional bytes written]]>
  3663. </doc>
  3664. </method>
  3665. <method name="incrementReadOps"
  3666. abstract="false" native="false" synchronized="false"
  3667. static="false" final="false" visibility="public"
  3668. deprecated="not deprecated">
  3669. <param name="count" type="int"/>
  3670. <doc>
  3671. <![CDATA[Increment the number of read operations
  3672. @param count number of read operations]]>
  3673. </doc>
  3674. </method>
  3675. <method name="incrementLargeReadOps"
  3676. abstract="false" native="false" synchronized="false"
  3677. static="false" final="false" visibility="public"
  3678. deprecated="not deprecated">
  3679. <param name="count" type="int"/>
  3680. <doc>
  3681. <![CDATA[Increment the number of large read operations
  3682. @param count number of large read operations]]>
  3683. </doc>
  3684. </method>
  3685. <method name="incrementWriteOps"
  3686. abstract="false" native="false" synchronized="false"
  3687. static="false" final="false" visibility="public"
  3688. deprecated="not deprecated">
  3689. <param name="count" type="int"/>
  3690. <doc>
  3691. <![CDATA[Increment the number of write operations
  3692. @param count number of write operations]]>
  3693. </doc>
  3694. </method>
  3695. <method name="getBytesRead" return="long"
  3696. abstract="false" native="false" synchronized="false"
  3697. static="false" final="false" visibility="public"
  3698. deprecated="not deprecated">
  3699. <doc>
  3700. <![CDATA[Get the total number of bytes read
  3701. @return the number of bytes]]>
  3702. </doc>
  3703. </method>
  3704. <method name="getBytesWritten" return="long"
  3705. abstract="false" native="false" synchronized="false"
  3706. static="false" final="false" visibility="public"
  3707. deprecated="not deprecated">
  3708. <doc>
  3709. <![CDATA[Get the total number of bytes written
  3710. @return the number of bytes]]>
  3711. </doc>
  3712. </method>
  3713. <method name="getReadOps" return="int"
  3714. abstract="false" native="false" synchronized="false"
  3715. static="false" final="false" visibility="public"
  3716. deprecated="not deprecated">
  3717. <doc>
  3718. <![CDATA[Get the number of file system read operations such as list files
  3719. @return number of read operations]]>
  3720. </doc>
  3721. </method>
  3722. <method name="getLargeReadOps" return="int"
  3723. abstract="false" native="false" synchronized="false"
  3724. static="false" final="false" visibility="public"
  3725. deprecated="not deprecated">
  3726. <doc>
  3727. <![CDATA[Get the number of large file system read operations such as list files
  3728. under a large directory
  3729. @return number of large read operations]]>
  3730. </doc>
  3731. </method>
  3732. <method name="getWriteOps" return="int"
  3733. abstract="false" native="false" synchronized="false"
  3734. static="false" final="false" visibility="public"
  3735. deprecated="not deprecated">
  3736. <doc>
  3737. <![CDATA[Get the number of file system write operations such as create, append
  3738. rename etc.
  3739. @return number of write operations]]>
  3740. </doc>
  3741. </method>
  3742. <method name="toString" return="java.lang.String"
  3743. abstract="false" native="false" synchronized="false"
  3744. static="false" final="false" visibility="public"
  3745. deprecated="not deprecated">
  3746. </method>
  3747. <method name="reset"
  3748. abstract="false" native="false" synchronized="false"
  3749. static="false" final="false" visibility="public"
  3750. deprecated="not deprecated">
  3751. <doc>
  3752. <![CDATA[Reset the counts of bytes to 0.]]>
  3753. </doc>
  3754. </method>
  3755. <method name="getScheme" return="java.lang.String"
  3756. abstract="false" native="false" synchronized="false"
  3757. static="false" final="false" visibility="public"
  3758. deprecated="not deprecated">
  3759. <doc>
  3760. <![CDATA[Get the uri scheme associated with this statistics object.
  3761. @return the schema associated with this set of statistics]]>
  3762. </doc>
  3763. </method>
  3764. </class>
  3765. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3766. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3767. <class name="FileUtil" extends="java.lang.Object"
  3768. abstract="false"
  3769. static="false" final="false" visibility="public"
  3770. deprecated="not deprecated">
  3771. <constructor name="FileUtil"
  3772. static="false" final="false" visibility="public"
  3773. deprecated="not deprecated">
  3774. </constructor>
  3775. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3776. abstract="false" native="false" synchronized="false"
  3777. static="true" final="false" visibility="public"
  3778. deprecated="not deprecated">
  3779. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3780. <doc>
  3781. <![CDATA[convert an array of FileStatus to an array of Path
  3782. @param stats
  3783. an array of FileStatus objects
  3784. @return an array of paths corresponding to the input]]>
  3785. </doc>
  3786. </method>
  3787. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3788. abstract="false" native="false" synchronized="false"
  3789. static="true" final="false" visibility="public"
  3790. deprecated="not deprecated">
  3791. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3792. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3793. <doc>
  3794. <![CDATA[convert an array of FileStatus to an array of Path.
  3795. If stats if null, return path
  3796. @param stats
  3797. an array of FileStatus objects
  3798. @param path
  3799. default path to return in stats is null
  3800. @return an array of paths corresponding to the input]]>
  3801. </doc>
  3802. </method>
  3803. <method name="fullyDelete" return="boolean"
  3804. abstract="false" native="false" synchronized="false"
  3805. static="true" final="false" visibility="public"
  3806. deprecated="not deprecated">
  3807. <param name="dir" type="java.io.File"/>
  3808. <exception name="IOException" type="java.io.IOException"/>
  3809. <doc>
  3810. <![CDATA[Delete a directory and all its contents. If
  3811. we return false, the directory may be partially-deleted.]]>
  3812. </doc>
  3813. </method>
  3814. <method name="fullyDeleteContents" return="boolean"
  3815. abstract="false" native="false" synchronized="false"
  3816. static="true" final="false" visibility="public"
  3817. deprecated="not deprecated">
  3818. <param name="dir" type="java.io.File"/>
  3819. <exception name="IOException" type="java.io.IOException"/>
  3820. <doc>
  3821. <![CDATA[Delete the contents of a directory, not the directory itself. If
  3822. we return false, the directory may be partially-deleted.]]>
  3823. </doc>
  3824. </method>
  3825. <method name="fullyDelete"
  3826. abstract="false" native="false" synchronized="false"
  3827. static="true" final="false" visibility="public"
  3828. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3829. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3830. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3831. <exception name="IOException" type="java.io.IOException"/>
  3832. <doc>
  3833. <![CDATA[Recursively delete a directory.
  3834. @param fs {@link FileSystem} on which the path is present
  3835. @param dir directory to recursively delete
  3836. @throws IOException
  3837. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3838. </doc>
  3839. </method>
  3840. <method name="copy" return="boolean"
  3841. abstract="false" native="false" synchronized="false"
  3842. static="true" final="false" visibility="public"
  3843. deprecated="not deprecated">
  3844. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3845. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3846. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3847. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3848. <param name="deleteSource" type="boolean"/>
  3849. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3850. <exception name="IOException" type="java.io.IOException"/>
  3851. <doc>
  3852. <![CDATA[Copy files between FileSystems.]]>
  3853. </doc>
  3854. </method>
  3855. <method name="copy" return="boolean"
  3856. abstract="false" native="false" synchronized="false"
  3857. static="true" final="false" visibility="public"
  3858. deprecated="not deprecated">
  3859. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3860. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3861. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3862. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3863. <param name="deleteSource" type="boolean"/>
  3864. <param name="overwrite" type="boolean"/>
  3865. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3866. <exception name="IOException" type="java.io.IOException"/>
  3867. </method>
  3868. <method name="copy" return="boolean"
  3869. abstract="false" native="false" synchronized="false"
  3870. static="true" final="false" visibility="public"
  3871. deprecated="not deprecated">
  3872. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3873. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3874. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3875. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3876. <param name="deleteSource" type="boolean"/>
  3877. <param name="overwrite" type="boolean"/>
  3878. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3879. <exception name="IOException" type="java.io.IOException"/>
  3880. <doc>
  3881. <![CDATA[Copy files between FileSystems.]]>
  3882. </doc>
  3883. </method>
  3884. <method name="copyMerge" return="boolean"
  3885. abstract="false" native="false" synchronized="false"
  3886. static="true" final="false" visibility="public"
  3887. deprecated="not deprecated">
  3888. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3889. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3890. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3891. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3892. <param name="deleteSource" type="boolean"/>
  3893. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3894. <param name="addString" type="java.lang.String"/>
  3895. <exception name="IOException" type="java.io.IOException"/>
  3896. <doc>
  3897. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3898. </doc>
  3899. </method>
  3900. <method name="copy" return="boolean"
  3901. abstract="false" native="false" synchronized="false"
  3902. static="true" final="false" visibility="public"
  3903. deprecated="not deprecated">
  3904. <param name="src" type="java.io.File"/>
  3905. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3906. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3907. <param name="deleteSource" type="boolean"/>
  3908. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3909. <exception name="IOException" type="java.io.IOException"/>
  3910. <doc>
  3911. <![CDATA[Copy local files to a FileSystem.]]>
  3912. </doc>
  3913. </method>
  3914. <method name="copy" return="boolean"
  3915. abstract="false" native="false" synchronized="false"
  3916. static="true" final="false" visibility="public"
  3917. deprecated="not deprecated">
  3918. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3919. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3920. <param name="dst" type="java.io.File"/>
  3921. <param name="deleteSource" type="boolean"/>
  3922. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3923. <exception name="IOException" type="java.io.IOException"/>
  3924. <doc>
  3925. <![CDATA[Copy FileSystem files to local files.]]>
  3926. </doc>
  3927. </method>
  3928. <method name="makeShellPath" return="java.lang.String"
  3929. abstract="false" native="false" synchronized="false"
  3930. static="true" final="false" visibility="public"
  3931. deprecated="not deprecated">
  3932. <param name="filename" type="java.lang.String"/>
  3933. <exception name="IOException" type="java.io.IOException"/>
  3934. <doc>
  3935. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3936. @param filename The filename to convert
  3937. @return The unix pathname
  3938. @throws IOException on windows, there can be problems with the subprocess]]>
  3939. </doc>
  3940. </method>
  3941. <method name="makeShellPath" return="java.lang.String"
  3942. abstract="false" native="false" synchronized="false"
  3943. static="true" final="false" visibility="public"
  3944. deprecated="not deprecated">
  3945. <param name="file" type="java.io.File"/>
  3946. <exception name="IOException" type="java.io.IOException"/>
  3947. <doc>
  3948. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3949. @param file The filename to convert
  3950. @return The unix pathname
  3951. @throws IOException on windows, there can be problems with the subprocess]]>
  3952. </doc>
  3953. </method>
  3954. <method name="makeShellPath" return="java.lang.String"
  3955. abstract="false" native="false" synchronized="false"
  3956. static="true" final="false" visibility="public"
  3957. deprecated="not deprecated">
  3958. <param name="file" type="java.io.File"/>
  3959. <param name="makeCanonicalPath" type="boolean"/>
  3960. <exception name="IOException" type="java.io.IOException"/>
  3961. <doc>
  3962. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3963. @param file The filename to convert
  3964. @param makeCanonicalPath
  3965. Whether to make canonical path for the file passed
  3966. @return The unix pathname
  3967. @throws IOException on windows, there can be problems with the subprocess]]>
  3968. </doc>
  3969. </method>
  3970. <method name="getDU" return="long"
  3971. abstract="false" native="false" synchronized="false"
  3972. static="true" final="false" visibility="public"
  3973. deprecated="not deprecated">
  3974. <param name="dir" type="java.io.File"/>
  3975. <doc>
  3976. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  3977. implementation.
  3978. @param dir
  3979. The input dir to get the disk space of this local dir
  3980. @return The total disk space of the input local directory]]>
  3981. </doc>
  3982. </method>
  3983. <method name="unZip"
  3984. abstract="false" native="false" synchronized="false"
  3985. static="true" final="false" visibility="public"
  3986. deprecated="not deprecated">
  3987. <param name="inFile" type="java.io.File"/>
  3988. <param name="unzipDir" type="java.io.File"/>
  3989. <exception name="IOException" type="java.io.IOException"/>
  3990. <doc>
  3991. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  3992. passed as the second parameter
  3993. @param inFile The zip file as input
  3994. @param unzipDir The unzip directory where to unzip the zip file.
  3995. @throws IOException]]>
  3996. </doc>
  3997. </method>
  3998. <method name="unTar"
  3999. abstract="false" native="false" synchronized="false"
  4000. static="true" final="false" visibility="public"
  4001. deprecated="not deprecated">
  4002. <param name="inFile" type="java.io.File"/>
  4003. <param name="untarDir" type="java.io.File"/>
  4004. <exception name="IOException" type="java.io.IOException"/>
  4005. <doc>
  4006. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  4007. passed as the second parameter
  4008. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  4009. @param inFile The tar file as input.
  4010. @param untarDir The untar directory where to untar the tar file.
  4011. @throws IOException]]>
  4012. </doc>
  4013. </method>
  4014. <method name="symLink" return="int"
  4015. abstract="false" native="false" synchronized="false"
  4016. static="true" final="false" visibility="public"
  4017. deprecated="not deprecated">
  4018. <param name="target" type="java.lang.String"/>
  4019. <param name="linkname" type="java.lang.String"/>
  4020. <exception name="IOException" type="java.io.IOException"/>
  4021. <doc>
  4022. <![CDATA[Create a soft link between a src and destination
  4023. only on a local disk. HDFS does not support this
  4024. @param target the target for symlink
  4025. @param linkname the symlink
  4026. @return value returned by the command]]>
  4027. </doc>
  4028. </method>
  4029. <method name="chmod" return="int"
  4030. abstract="false" native="false" synchronized="false"
  4031. static="true" final="false" visibility="public"
  4032. deprecated="not deprecated">
  4033. <param name="filename" type="java.lang.String"/>
  4034. <param name="perm" type="java.lang.String"/>
  4035. <exception name="IOException" type="java.io.IOException"/>
  4036. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  4037. <doc>
  4038. <![CDATA[Change the permissions on a filename.
  4039. @param filename the name of the file to change
  4040. @param perm the permission string
  4041. @return the exit code from the command
  4042. @throws IOException
  4043. @throws InterruptedException]]>
  4044. </doc>
  4045. </method>
  4046. <method name="chmod" return="int"
  4047. abstract="false" native="false" synchronized="false"
  4048. static="true" final="false" visibility="public"
  4049. deprecated="not deprecated">
  4050. <param name="filename" type="java.lang.String"/>
  4051. <param name="perm" type="java.lang.String"/>
  4052. <param name="recursive" type="boolean"/>
  4053. <exception name="IOException" type="java.io.IOException"/>
  4054. <doc>
  4055. <![CDATA[Change the permissions on a file / directory, recursively, if
  4056. needed.
  4057. @param filename name of the file whose permissions are to change
  4058. @param perm permission string
  4059. @param recursive true, if permissions should be changed recursively
  4060. @return the exit code from the command.
  4061. @throws IOException
  4062. @throws InterruptedException]]>
  4063. </doc>
  4064. </method>
  4065. <method name="setPermission"
  4066. abstract="false" native="false" synchronized="false"
  4067. static="true" final="false" visibility="public"
  4068. deprecated="not deprecated">
  4069. <param name="f" type="java.io.File"/>
  4070. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4071. <exception name="IOException" type="java.io.IOException"/>
  4072. <doc>
  4073. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  4074. of forking if group == other.
  4075. @param f the file to change
  4076. @param permission the new permissions
  4077. @throws IOException]]>
  4078. </doc>
  4079. </method>
  4080. <method name="createLocalTempFile" return="java.io.File"
  4081. abstract="false" native="false" synchronized="false"
  4082. static="true" final="true" visibility="public"
  4083. deprecated="not deprecated">
  4084. <param name="basefile" type="java.io.File"/>
  4085. <param name="prefix" type="java.lang.String"/>
  4086. <param name="isDeleteOnExit" type="boolean"/>
  4087. <exception name="IOException" type="java.io.IOException"/>
  4088. <doc>
  4089. <![CDATA[Create a tmp file for a base file.
  4090. @param basefile the base file of the tmp
  4091. @param prefix file name prefix of tmp
  4092. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  4093. @return a newly created tmp file
  4094. @exception IOException If a tmp file cannot created
  4095. @see java.io.File#createTempFile(String, String, File)
  4096. @see java.io.File#deleteOnExit()]]>
  4097. </doc>
  4098. </method>
  4099. <method name="replaceFile"
  4100. abstract="false" native="false" synchronized="false"
  4101. static="true" final="false" visibility="public"
  4102. deprecated="not deprecated">
  4103. <param name="src" type="java.io.File"/>
  4104. <param name="target" type="java.io.File"/>
  4105. <exception name="IOException" type="java.io.IOException"/>
  4106. <doc>
  4107. <![CDATA[Move the src file to the name specified by target.
  4108. @param src the source file
  4109. @param target the target file
  4110. @exception IOException If this operation fails]]>
  4111. </doc>
  4112. </method>
  4113. <method name="listFiles" return="java.io.File[]"
  4114. abstract="false" native="false" synchronized="false"
  4115. static="true" final="false" visibility="public"
  4116. deprecated="not deprecated">
  4117. <param name="dir" type="java.io.File"/>
  4118. <exception name="IOException" type="java.io.IOException"/>
  4119. <doc>
  4120. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  4121. when a dir is not a directory or for any I/O error. Instead of having
  4122. null check everywhere File#listFiles() is used, we will add utility API
  4123. to get around this problem. For the majority of cases where we prefer
  4124. an IOException to be thrown.
  4125. @param dir directory for which listing should be performed
  4126. @return list of files or empty list
  4127. @exception IOException for invalid directory or for a bad disk.]]>
  4128. </doc>
  4129. </method>
  4130. <method name="list" return="java.lang.String[]"
  4131. abstract="false" native="false" synchronized="false"
  4132. static="true" final="false" visibility="public"
  4133. deprecated="not deprecated">
  4134. <param name="dir" type="java.io.File"/>
  4135. <exception name="IOException" type="java.io.IOException"/>
  4136. <doc>
  4137. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  4138. when a dir is not a directory or for any I/O error. Instead of having
  4139. null check everywhere File#list() is used, we will add utility API
  4140. to get around this problem. For the majority of cases where we prefer
  4141. an IOException to be thrown.
  4142. @param dir directory for which listing should be performed
  4143. @return list of file names or empty string list
  4144. @exception IOException for invalid directory or for a bad disk.]]>
  4145. </doc>
  4146. </method>
  4147. <doc>
  4148. <![CDATA[A collection of file-processing util methods]]>
  4149. </doc>
  4150. </class>
  4151. <!-- end class org.apache.hadoop.fs.FileUtil -->
  4152. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  4153. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  4154. abstract="false"
  4155. static="false" final="false" visibility="public"
  4156. deprecated="not deprecated">
  4157. <constructor name="FilterFileSystem"
  4158. static="false" final="false" visibility="public"
  4159. deprecated="not deprecated">
  4160. </constructor>
  4161. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4162. static="false" final="false" visibility="public"
  4163. deprecated="not deprecated">
  4164. </constructor>
  4165. <method name="initialize"
  4166. abstract="false" native="false" synchronized="false"
  4167. static="false" final="false" visibility="public"
  4168. deprecated="not deprecated">
  4169. <param name="name" type="java.net.URI"/>
  4170. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4171. <exception name="IOException" type="java.io.IOException"/>
  4172. <doc>
  4173. <![CDATA[Called after a new FileSystem instance is constructed.
  4174. @param name a uri whose authority section names the host, port, etc.
  4175. for this FileSystem
  4176. @param conf the configuration]]>
  4177. </doc>
  4178. </method>
  4179. <method name="getUri" return="java.net.URI"
  4180. abstract="false" native="false" synchronized="false"
  4181. static="false" final="false" visibility="public"
  4182. deprecated="not deprecated">
  4183. <doc>
  4184. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4185. </doc>
  4186. </method>
  4187. <method name="getCanonicalServiceName" return="java.lang.String"
  4188. abstract="false" native="false" synchronized="false"
  4189. static="false" final="false" visibility="public"
  4190. deprecated="not deprecated">
  4191. </method>
  4192. <method name="getName" return="java.lang.String"
  4193. abstract="false" native="false" synchronized="false"
  4194. static="false" final="false" visibility="public"
  4195. deprecated="call #getUri() instead.">
  4196. <doc>
  4197. <![CDATA[@deprecated call #getUri() instead.]]>
  4198. </doc>
  4199. </method>
  4200. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4201. abstract="false" native="false" synchronized="false"
  4202. static="false" final="false" visibility="public"
  4203. deprecated="not deprecated">
  4204. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4205. <doc>
  4206. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4207. </doc>
  4208. </method>
  4209. <method name="checkPath"
  4210. abstract="false" native="false" synchronized="false"
  4211. static="false" final="false" visibility="protected"
  4212. deprecated="not deprecated">
  4213. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4214. <doc>
  4215. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4216. </doc>
  4217. </method>
  4218. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4219. abstract="false" native="false" synchronized="false"
  4220. static="false" final="false" visibility="public"
  4221. deprecated="not deprecated">
  4222. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4223. <param name="start" type="long"/>
  4224. <param name="len" type="long"/>
  4225. <exception name="IOException" type="java.io.IOException"/>
  4226. </method>
  4227. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4228. abstract="false" native="false" synchronized="false"
  4229. static="false" final="false" visibility="public"
  4230. deprecated="not deprecated">
  4231. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4232. <param name="bufferSize" type="int"/>
  4233. <exception name="IOException" type="java.io.IOException"/>
  4234. <doc>
  4235. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4236. @param f the file name to open
  4237. @param bufferSize the size of the buffer to be used.]]>
  4238. </doc>
  4239. </method>
  4240. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4241. abstract="false" native="false" synchronized="false"
  4242. static="false" final="false" visibility="public"
  4243. deprecated="not deprecated">
  4244. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4245. <param name="bufferSize" type="int"/>
  4246. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4247. <exception name="IOException" type="java.io.IOException"/>
  4248. <doc>
  4249. <![CDATA[{@inheritDoc}]]>
  4250. </doc>
  4251. </method>
  4252. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4253. abstract="false" native="false" synchronized="false"
  4254. static="false" final="false" visibility="public"
  4255. deprecated="not deprecated">
  4256. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4257. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4258. <param name="overwrite" type="boolean"/>
  4259. <param name="bufferSize" type="int"/>
  4260. <param name="replication" type="short"/>
  4261. <param name="blockSize" type="long"/>
  4262. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4263. <exception name="IOException" type="java.io.IOException"/>
  4264. <doc>
  4265. <![CDATA[{@inheritDoc}]]>
  4266. </doc>
  4267. </method>
  4268. <method name="setReplication" return="boolean"
  4269. abstract="false" native="false" synchronized="false"
  4270. static="false" final="false" visibility="public"
  4271. deprecated="not deprecated">
  4272. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4273. <param name="replication" type="short"/>
  4274. <exception name="IOException" type="java.io.IOException"/>
  4275. <doc>
  4276. <![CDATA[Set replication for an existing file.
  4277. @param src file name
  4278. @param replication new replication
  4279. @throws IOException
  4280. @return true if successful;
  4281. false if file does not exist or is a directory]]>
  4282. </doc>
  4283. </method>
  4284. <method name="rename" return="boolean"
  4285. abstract="false" native="false" synchronized="false"
  4286. static="false" final="false" visibility="public"
  4287. deprecated="not deprecated">
  4288. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4289. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4290. <exception name="IOException" type="java.io.IOException"/>
  4291. <doc>
  4292. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4293. or remote DFS.]]>
  4294. </doc>
  4295. </method>
  4296. <method name="delete" return="boolean"
  4297. abstract="false" native="false" synchronized="false"
  4298. static="false" final="false" visibility="public"
  4299. deprecated="not deprecated">
  4300. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4301. <exception name="IOException" type="java.io.IOException"/>
  4302. <doc>
  4303. <![CDATA[Delete a file]]>
  4304. </doc>
  4305. </method>
  4306. <method name="delete" return="boolean"
  4307. abstract="false" native="false" synchronized="false"
  4308. static="false" final="false" visibility="public"
  4309. deprecated="not deprecated">
  4310. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4311. <param name="recursive" type="boolean"/>
  4312. <exception name="IOException" type="java.io.IOException"/>
  4313. <doc>
  4314. <![CDATA[Delete a file]]>
  4315. </doc>
  4316. </method>
  4317. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4318. abstract="false" native="false" synchronized="false"
  4319. static="false" final="false" visibility="public"
  4320. deprecated="not deprecated">
  4321. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4322. <exception name="IOException" type="java.io.IOException"/>
  4323. <doc>
  4324. <![CDATA[List files in a directory.]]>
  4325. </doc>
  4326. </method>
  4327. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4328. abstract="false" native="false" synchronized="false"
  4329. static="false" final="false" visibility="public"
  4330. deprecated="not deprecated">
  4331. </method>
  4332. <method name="setWorkingDirectory"
  4333. abstract="false" native="false" synchronized="false"
  4334. static="false" final="false" visibility="public"
  4335. deprecated="not deprecated">
  4336. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4337. <doc>
  4338. <![CDATA[Set the current working directory for the given file system. All relative
  4339. paths will be resolved relative to it.
  4340. @param newDir]]>
  4341. </doc>
  4342. </method>
  4343. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4344. abstract="false" native="false" synchronized="false"
  4345. static="false" final="false" visibility="public"
  4346. deprecated="not deprecated">
  4347. <doc>
  4348. <![CDATA[Get the current working directory for the given file system
  4349. @return the directory pathname]]>
  4350. </doc>
  4351. </method>
  4352. <method name="mkdirs" return="boolean"
  4353. abstract="false" native="false" synchronized="false"
  4354. static="false" final="false" visibility="public"
  4355. deprecated="not deprecated">
  4356. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4357. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4358. <exception name="IOException" type="java.io.IOException"/>
  4359. <doc>
  4360. <![CDATA[{@inheritDoc}]]>
  4361. </doc>
  4362. </method>
  4363. <method name="copyFromLocalFile"
  4364. abstract="false" native="false" synchronized="false"
  4365. static="false" final="false" visibility="public"
  4366. deprecated="not deprecated">
  4367. <param name="delSrc" type="boolean"/>
  4368. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4369. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4370. <exception name="IOException" type="java.io.IOException"/>
  4371. <doc>
  4372. <![CDATA[The src file is on the local disk. Add it to FS at
  4373. the given dst name.
  4374. delSrc indicates if the source should be removed]]>
  4375. </doc>
  4376. </method>
  4377. <method name="copyToLocalFile"
  4378. abstract="false" native="false" synchronized="false"
  4379. static="false" final="false" visibility="public"
  4380. deprecated="not deprecated">
  4381. <param name="delSrc" type="boolean"/>
  4382. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4383. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4384. <exception name="IOException" type="java.io.IOException"/>
  4385. <doc>
  4386. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4387. Copy it from FS control to the local dst name.
  4388. delSrc indicates if the src will be removed or not.]]>
  4389. </doc>
  4390. </method>
  4391. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4392. abstract="false" native="false" synchronized="false"
  4393. static="false" final="false" visibility="public"
  4394. deprecated="not deprecated">
  4395. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4396. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4397. <exception name="IOException" type="java.io.IOException"/>
  4398. <doc>
  4399. <![CDATA[Returns a local File that the user can write output to. The caller
  4400. provides both the eventual FS target name and the local working
  4401. file. If the FS is local, we write directly into the target. If
  4402. the FS is remote, we write into the tmp local area.]]>
  4403. </doc>
  4404. </method>
  4405. <method name="completeLocalOutput"
  4406. abstract="false" native="false" synchronized="false"
  4407. static="false" final="false" visibility="public"
  4408. deprecated="not deprecated">
  4409. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4410. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4411. <exception name="IOException" type="java.io.IOException"/>
  4412. <doc>
  4413. <![CDATA[Called when we're all done writing to the target. A local FS will
  4414. do nothing, because we've written to exactly the right place. A remote
  4415. FS will copy the contents of tmpLocalFile to the correct target at
  4416. fsOutputFile.]]>
  4417. </doc>
  4418. </method>
  4419. <method name="getDefaultBlockSize" return="long"
  4420. abstract="false" native="false" synchronized="false"
  4421. static="false" final="false" visibility="public"
  4422. deprecated="not deprecated">
  4423. <doc>
  4424. <![CDATA[Return the number of bytes that large input files should be optimally
  4425. be split into to minimize i/o time.]]>
  4426. </doc>
  4427. </method>
  4428. <method name="getDefaultReplication" return="short"
  4429. abstract="false" native="false" synchronized="false"
  4430. static="false" final="false" visibility="public"
  4431. deprecated="not deprecated">
  4432. <doc>
  4433. <![CDATA[Get the default replication.]]>
  4434. </doc>
  4435. </method>
  4436. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4437. abstract="false" native="false" synchronized="false"
  4438. static="false" final="false" visibility="public"
  4439. deprecated="not deprecated">
  4440. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4441. <exception name="IOException" type="java.io.IOException"/>
  4442. <doc>
  4443. <![CDATA[Get file status.]]>
  4444. </doc>
  4445. </method>
  4446. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4447. abstract="false" native="false" synchronized="false"
  4448. static="false" final="false" visibility="public"
  4449. deprecated="not deprecated">
  4450. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4451. <exception name="IOException" type="java.io.IOException"/>
  4452. <doc>
  4453. <![CDATA[{@inheritDoc}]]>
  4454. </doc>
  4455. </method>
  4456. <method name="setVerifyChecksum"
  4457. abstract="false" native="false" synchronized="false"
  4458. static="false" final="false" visibility="public"
  4459. deprecated="not deprecated">
  4460. <param name="verifyChecksum" type="boolean"/>
  4461. <doc>
  4462. <![CDATA[{@inheritDoc}]]>
  4463. </doc>
  4464. </method>
  4465. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4466. abstract="false" native="false" synchronized="false"
  4467. static="false" final="false" visibility="public"
  4468. deprecated="not deprecated">
  4469. </method>
  4470. <method name="close"
  4471. abstract="false" native="false" synchronized="false"
  4472. static="false" final="false" visibility="public"
  4473. deprecated="not deprecated">
  4474. <exception name="IOException" type="java.io.IOException"/>
  4475. </method>
  4476. <method name="setOwner"
  4477. abstract="false" native="false" synchronized="false"
  4478. static="false" final="false" visibility="public"
  4479. deprecated="not deprecated">
  4480. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4481. <param name="username" type="java.lang.String"/>
  4482. <param name="groupname" type="java.lang.String"/>
  4483. <exception name="IOException" type="java.io.IOException"/>
  4484. <doc>
  4485. <![CDATA[{@inheritDoc}]]>
  4486. </doc>
  4487. </method>
  4488. <method name="setPermission"
  4489. abstract="false" native="false" synchronized="false"
  4490. static="false" final="false" visibility="public"
  4491. deprecated="not deprecated">
  4492. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4493. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4494. <exception name="IOException" type="java.io.IOException"/>
  4495. <doc>
  4496. <![CDATA[{@inheritDoc}]]>
  4497. </doc>
  4498. </method>
  4499. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4500. transient="false" volatile="false"
  4501. static="false" final="false" visibility="protected"
  4502. deprecated="not deprecated">
  4503. </field>
  4504. <doc>
  4505. <![CDATA[A <code>FilterFileSystem</code> contains
  4506. some other file system, which it uses as
  4507. its basic file system, possibly transforming
  4508. the data along the way or providing additional
  4509. functionality. The class <code>FilterFileSystem</code>
  4510. itself simply overrides all methods of
  4511. <code>FileSystem</code> with versions that
  4512. pass all requests to the contained file
  4513. system. Subclasses of <code>FilterFileSystem</code>
  4514. may further override some of these methods
  4515. and may also provide additional methods
  4516. and fields.]]>
  4517. </doc>
  4518. </class>
  4519. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4520. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4521. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4522. abstract="false"
  4523. static="false" final="false" visibility="public"
  4524. deprecated="not deprecated">
  4525. <implements name="org.apache.hadoop.fs.Seekable"/>
  4526. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4527. <implements name="java.io.Closeable"/>
  4528. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4529. static="false" final="false" visibility="public"
  4530. deprecated="not deprecated">
  4531. <exception name="IOException" type="java.io.IOException"/>
  4532. </constructor>
  4533. <method name="seek"
  4534. abstract="false" native="false" synchronized="true"
  4535. static="false" final="false" visibility="public"
  4536. deprecated="not deprecated">
  4537. <param name="desired" type="long"/>
  4538. <exception name="IOException" type="java.io.IOException"/>
  4539. </method>
  4540. <method name="getPos" return="long"
  4541. abstract="false" native="false" synchronized="false"
  4542. static="false" final="false" visibility="public"
  4543. deprecated="not deprecated">
  4544. <exception name="IOException" type="java.io.IOException"/>
  4545. </method>
  4546. <method name="read" return="int"
  4547. abstract="false" native="false" synchronized="false"
  4548. static="false" final="false" visibility="public"
  4549. deprecated="not deprecated">
  4550. <param name="position" type="long"/>
  4551. <param name="buffer" type="byte[]"/>
  4552. <param name="offset" type="int"/>
  4553. <param name="length" type="int"/>
  4554. <exception name="IOException" type="java.io.IOException"/>
  4555. </method>
  4556. <method name="readFully"
  4557. abstract="false" native="false" synchronized="false"
  4558. static="false" final="false" visibility="public"
  4559. deprecated="not deprecated">
  4560. <param name="position" type="long"/>
  4561. <param name="buffer" type="byte[]"/>
  4562. <param name="offset" type="int"/>
  4563. <param name="length" type="int"/>
  4564. <exception name="IOException" type="java.io.IOException"/>
  4565. </method>
  4566. <method name="readFully"
  4567. abstract="false" native="false" synchronized="false"
  4568. static="false" final="false" visibility="public"
  4569. deprecated="not deprecated">
  4570. <param name="position" type="long"/>
  4571. <param name="buffer" type="byte[]"/>
  4572. <exception name="IOException" type="java.io.IOException"/>
  4573. </method>
  4574. <method name="seekToNewSource" return="boolean"
  4575. abstract="false" native="false" synchronized="false"
  4576. static="false" final="false" visibility="public"
  4577. deprecated="not deprecated">
  4578. <param name="targetPos" type="long"/>
  4579. <exception name="IOException" type="java.io.IOException"/>
  4580. </method>
  4581. <doc>
  4582. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4583. and buffers input through a {@link BufferedInputStream}.]]>
  4584. </doc>
  4585. </class>
  4586. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4587. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4588. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4589. abstract="false"
  4590. static="false" final="false" visibility="public"
  4591. deprecated="not deprecated">
  4592. <implements name="org.apache.hadoop.fs.Syncable"/>
  4593. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4594. static="false" final="false" visibility="public"
  4595. deprecated="not deprecated">
  4596. <exception name="IOException" type="java.io.IOException"/>
  4597. </constructor>
  4598. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4599. static="false" final="false" visibility="public"
  4600. deprecated="not deprecated">
  4601. <exception name="IOException" type="java.io.IOException"/>
  4602. </constructor>
  4603. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4604. static="false" final="false" visibility="public"
  4605. deprecated="not deprecated">
  4606. <exception name="IOException" type="java.io.IOException"/>
  4607. </constructor>
  4608. <method name="getPos" return="long"
  4609. abstract="false" native="false" synchronized="false"
  4610. static="false" final="false" visibility="public"
  4611. deprecated="not deprecated">
  4612. <exception name="IOException" type="java.io.IOException"/>
  4613. </method>
  4614. <method name="close"
  4615. abstract="false" native="false" synchronized="false"
  4616. static="false" final="false" visibility="public"
  4617. deprecated="not deprecated">
  4618. <exception name="IOException" type="java.io.IOException"/>
  4619. </method>
  4620. <method name="getWrappedStream" return="java.io.OutputStream"
  4621. abstract="false" native="false" synchronized="false"
  4622. static="false" final="false" visibility="public"
  4623. deprecated="not deprecated">
  4624. </method>
  4625. <method name="sync"
  4626. abstract="false" native="false" synchronized="false"
  4627. static="false" final="false" visibility="public"
  4628. deprecated="not deprecated">
  4629. <exception name="IOException" type="java.io.IOException"/>
  4630. <doc>
  4631. <![CDATA[{@inheritDoc}]]>
  4632. </doc>
  4633. </method>
  4634. <doc>
  4635. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4636. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4637. file.]]>
  4638. </doc>
  4639. </class>
  4640. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4641. <!-- start class org.apache.hadoop.fs.FSError -->
  4642. <class name="FSError" extends="java.lang.Error"
  4643. abstract="false"
  4644. static="false" final="false" visibility="public"
  4645. deprecated="not deprecated">
  4646. <doc>
  4647. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4648. in the native filesystem.]]>
  4649. </doc>
  4650. </class>
  4651. <!-- end class org.apache.hadoop.fs.FSError -->
  4652. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4653. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4654. abstract="true"
  4655. static="false" final="false" visibility="public"
  4656. deprecated="not deprecated">
  4657. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4658. static="false" final="false" visibility="protected"
  4659. deprecated="not deprecated">
  4660. <doc>
  4661. <![CDATA[Constructor
  4662. @param file The name of the file to be read
  4663. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4664. </doc>
  4665. </constructor>
  4666. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4667. static="false" final="false" visibility="protected"
  4668. deprecated="not deprecated">
  4669. <doc>
  4670. <![CDATA[Constructor
  4671. @param file The name of the file to be read
  4672. @param numOfRetries Number of read retries when ChecksumError occurs
  4673. @param sum the type of Checksum engine
  4674. @param chunkSize maximun chunk size
  4675. @param checksumSize the number byte of each checksum]]>
  4676. </doc>
  4677. </constructor>
  4678. <method name="readChunk" return="int"
  4679. abstract="true" native="false" synchronized="false"
  4680. static="false" final="false" visibility="protected"
  4681. deprecated="not deprecated">
  4682. <param name="pos" type="long"/>
  4683. <param name="buf" type="byte[]"/>
  4684. <param name="offset" type="int"/>
  4685. <param name="len" type="int"/>
  4686. <param name="checksum" type="byte[]"/>
  4687. <exception name="IOException" type="java.io.IOException"/>
  4688. <doc>
  4689. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4690. and checksum into <code>checksum</code>.
  4691. The method is used for implementing read, therefore, it should be optimized
  4692. for sequential reading
  4693. @param pos chunkPos
  4694. @param buf desitination buffer
  4695. @param offset offset in buf at which to store data
  4696. @param len maximun number of bytes to read
  4697. @return number of bytes read]]>
  4698. </doc>
  4699. </method>
  4700. <method name="getChunkPosition" return="long"
  4701. abstract="true" native="false" synchronized="false"
  4702. static="false" final="false" visibility="protected"
  4703. deprecated="not deprecated">
  4704. <param name="pos" type="long"/>
  4705. <doc>
  4706. <![CDATA[Return position of beginning of chunk containing pos.
  4707. @param pos a postion in the file
  4708. @return the starting position of the chunk which contains the byte]]>
  4709. </doc>
  4710. </method>
  4711. <method name="needChecksum" return="boolean"
  4712. abstract="false" native="false" synchronized="true"
  4713. static="false" final="false" visibility="protected"
  4714. deprecated="not deprecated">
  4715. <doc>
  4716. <![CDATA[Return true if there is a need for checksum verification]]>
  4717. </doc>
  4718. </method>
  4719. <method name="read" return="int"
  4720. abstract="false" native="false" synchronized="true"
  4721. static="false" final="false" visibility="public"
  4722. deprecated="not deprecated">
  4723. <exception name="IOException" type="java.io.IOException"/>
  4724. <doc>
  4725. <![CDATA[Read one checksum-verified byte
  4726. @return the next byte of data, or <code>-1</code> if the end of the
  4727. stream is reached.
  4728. @exception IOException if an I/O error occurs.]]>
  4729. </doc>
  4730. </method>
  4731. <method name="read" return="int"
  4732. abstract="false" native="false" synchronized="true"
  4733. static="false" final="false" visibility="public"
  4734. deprecated="not deprecated">
  4735. <param name="b" type="byte[]"/>
  4736. <param name="off" type="int"/>
  4737. <param name="len" type="int"/>
  4738. <exception name="IOException" type="java.io.IOException"/>
  4739. <doc>
  4740. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4741. the specified byte array, starting at the given offset.
  4742. <p> This method implements the general contract of the corresponding
  4743. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4744. the <code>{@link InputStream}</code> class. As an additional
  4745. convenience, it attempts to read as many bytes as possible by repeatedly
  4746. invoking the <code>read</code> method of the underlying stream. This
  4747. iterated <code>read</code> continues until one of the following
  4748. conditions becomes true: <ul>
  4749. <li> The specified number of bytes have been read,
  4750. <li> The <code>read</code> method of the underlying stream returns
  4751. <code>-1</code>, indicating end-of-file.
  4752. </ul> If the first <code>read</code> on the underlying stream returns
  4753. <code>-1</code> to indicate end-of-file then this method returns
  4754. <code>-1</code>. Otherwise this method returns the number of bytes
  4755. actually read.
  4756. @param b destination buffer.
  4757. @param off offset at which to start storing bytes.
  4758. @param len maximum number of bytes to read.
  4759. @return the number of bytes read, or <code>-1</code> if the end of
  4760. the stream has been reached.
  4761. @exception IOException if an I/O error occurs.
  4762. ChecksumException if any checksum error occurs]]>
  4763. </doc>
  4764. </method>
  4765. <method name="checksum2long" return="long"
  4766. abstract="false" native="false" synchronized="false"
  4767. static="true" final="false" visibility="public"
  4768. deprecated="not deprecated">
  4769. <param name="checksum" type="byte[]"/>
  4770. <doc>
  4771. <![CDATA[Convert a checksum byte array to a long]]>
  4772. </doc>
  4773. </method>
  4774. <method name="getPos" return="long"
  4775. abstract="false" native="false" synchronized="true"
  4776. static="false" final="false" visibility="public"
  4777. deprecated="not deprecated">
  4778. <exception name="IOException" type="java.io.IOException"/>
  4779. </method>
  4780. <method name="available" return="int"
  4781. abstract="false" native="false" synchronized="true"
  4782. static="false" final="false" visibility="public"
  4783. deprecated="not deprecated">
  4784. <exception name="IOException" type="java.io.IOException"/>
  4785. </method>
  4786. <method name="skip" return="long"
  4787. abstract="false" native="false" synchronized="true"
  4788. static="false" final="false" visibility="public"
  4789. deprecated="not deprecated">
  4790. <param name="n" type="long"/>
  4791. <exception name="IOException" type="java.io.IOException"/>
  4792. <doc>
  4793. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4794. input stream.
  4795. <p>This method may skip more bytes than are remaining in the backing
  4796. file. This produces no exception and the number of bytes skipped
  4797. may include some number of bytes that were beyond the EOF of the
  4798. backing file. Attempting to read from the stream after skipping past
  4799. the end will result in -1 indicating the end of the file.
  4800. <p>If <code>n</code> is negative, no bytes are skipped.
  4801. @param n the number of bytes to be skipped.
  4802. @return the actual number of bytes skipped.
  4803. @exception IOException if an I/O error occurs.
  4804. ChecksumException if the chunk to skip to is corrupted]]>
  4805. </doc>
  4806. </method>
  4807. <method name="seek"
  4808. abstract="false" native="false" synchronized="true"
  4809. static="false" final="false" visibility="public"
  4810. deprecated="not deprecated">
  4811. <param name="pos" type="long"/>
  4812. <exception name="IOException" type="java.io.IOException"/>
  4813. <doc>
  4814. <![CDATA[Seek to the given position in the stream.
  4815. The next read() will be from that position.
  4816. <p>This method may seek past the end of the file.
  4817. This produces no exception and an attempt to read from
  4818. the stream will result in -1 indicating the end of the file.
  4819. @param pos the postion to seek to.
  4820. @exception IOException if an I/O error occurs.
  4821. ChecksumException if the chunk to seek to is corrupted]]>
  4822. </doc>
  4823. </method>
  4824. <method name="readFully" return="int"
  4825. abstract="false" native="false" synchronized="false"
  4826. static="true" final="false" visibility="protected"
  4827. deprecated="not deprecated">
  4828. <param name="stm" type="java.io.InputStream"/>
  4829. <param name="buf" type="byte[]"/>
  4830. <param name="offset" type="int"/>
  4831. <param name="len" type="int"/>
  4832. <exception name="IOException" type="java.io.IOException"/>
  4833. <doc>
  4834. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4835. <code>stm</code>
  4836. @param stm an input stream
  4837. @param buf destiniation buffer
  4838. @param offset offset at which to store data
  4839. @param len number of bytes to read
  4840. @return actual number of bytes read
  4841. @throws IOException if there is any IO error]]>
  4842. </doc>
  4843. </method>
  4844. <method name="set"
  4845. abstract="false" native="false" synchronized="true"
  4846. static="false" final="true" visibility="protected"
  4847. deprecated="not deprecated">
  4848. <param name="verifyChecksum" type="boolean"/>
  4849. <param name="sum" type="java.util.zip.Checksum"/>
  4850. <param name="maxChunkSize" type="int"/>
  4851. <param name="checksumSize" type="int"/>
  4852. <doc>
  4853. <![CDATA[Set the checksum related parameters
  4854. @param verifyChecksum whether to verify checksum
  4855. @param sum which type of checksum to use
  4856. @param maxChunkSize maximun chunk size
  4857. @param checksumSize checksum size]]>
  4858. </doc>
  4859. </method>
  4860. <method name="markSupported" return="boolean"
  4861. abstract="false" native="false" synchronized="false"
  4862. static="false" final="true" visibility="public"
  4863. deprecated="not deprecated">
  4864. </method>
  4865. <method name="mark"
  4866. abstract="false" native="false" synchronized="false"
  4867. static="false" final="true" visibility="public"
  4868. deprecated="not deprecated">
  4869. <param name="readlimit" type="int"/>
  4870. </method>
  4871. <method name="reset"
  4872. abstract="false" native="false" synchronized="false"
  4873. static="false" final="true" visibility="public"
  4874. deprecated="not deprecated">
  4875. <exception name="IOException" type="java.io.IOException"/>
  4876. </method>
  4877. <field name="LOG" type="org.apache.commons.logging.Log"
  4878. transient="false" volatile="false"
  4879. static="true" final="true" visibility="public"
  4880. deprecated="not deprecated">
  4881. </field>
  4882. <field name="file" type="org.apache.hadoop.fs.Path"
  4883. transient="false" volatile="false"
  4884. static="false" final="false" visibility="protected"
  4885. deprecated="not deprecated">
  4886. <doc>
  4887. <![CDATA[The file name from which data is read from]]>
  4888. </doc>
  4889. </field>
  4890. <doc>
  4891. <![CDATA[This is a generic input stream for verifying checksums for
  4892. data before it is read by a user.]]>
  4893. </doc>
  4894. </class>
  4895. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4896. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4897. <class name="FSInputStream" extends="java.io.InputStream"
  4898. abstract="true"
  4899. static="false" final="false" visibility="public"
  4900. deprecated="not deprecated">
  4901. <implements name="org.apache.hadoop.fs.Seekable"/>
  4902. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4903. <constructor name="FSInputStream"
  4904. static="false" final="false" visibility="public"
  4905. deprecated="not deprecated">
  4906. </constructor>
  4907. <method name="seek"
  4908. abstract="true" native="false" synchronized="false"
  4909. static="false" final="false" visibility="public"
  4910. deprecated="not deprecated">
  4911. <param name="pos" type="long"/>
  4912. <exception name="IOException" type="java.io.IOException"/>
  4913. <doc>
  4914. <![CDATA[Seek to the given offset from the start of the file.
  4915. The next read() will be from that location. Can't
  4916. seek past the end of the file.]]>
  4917. </doc>
  4918. </method>
  4919. <method name="getPos" return="long"
  4920. abstract="true" native="false" synchronized="false"
  4921. static="false" final="false" visibility="public"
  4922. deprecated="not deprecated">
  4923. <exception name="IOException" type="java.io.IOException"/>
  4924. <doc>
  4925. <![CDATA[Return the current offset from the start of the file]]>
  4926. </doc>
  4927. </method>
  4928. <method name="seekToNewSource" return="boolean"
  4929. abstract="true" native="false" synchronized="false"
  4930. static="false" final="false" visibility="public"
  4931. deprecated="not deprecated">
  4932. <param name="targetPos" type="long"/>
  4933. <exception name="IOException" type="java.io.IOException"/>
  4934. <doc>
  4935. <![CDATA[Seeks a different copy of the data. Returns true if
  4936. found a new source, false otherwise.]]>
  4937. </doc>
  4938. </method>
  4939. <method name="read" return="int"
  4940. abstract="false" native="false" synchronized="false"
  4941. static="false" final="false" visibility="public"
  4942. deprecated="not deprecated">
  4943. <param name="position" type="long"/>
  4944. <param name="buffer" type="byte[]"/>
  4945. <param name="offset" type="int"/>
  4946. <param name="length" type="int"/>
  4947. <exception name="IOException" type="java.io.IOException"/>
  4948. </method>
  4949. <method name="readFully"
  4950. abstract="false" native="false" synchronized="false"
  4951. static="false" final="false" visibility="public"
  4952. deprecated="not deprecated">
  4953. <param name="position" type="long"/>
  4954. <param name="buffer" type="byte[]"/>
  4955. <param name="offset" type="int"/>
  4956. <param name="length" type="int"/>
  4957. <exception name="IOException" type="java.io.IOException"/>
  4958. </method>
  4959. <method name="readFully"
  4960. abstract="false" native="false" synchronized="false"
  4961. static="false" final="false" visibility="public"
  4962. deprecated="not deprecated">
  4963. <param name="position" type="long"/>
  4964. <param name="buffer" type="byte[]"/>
  4965. <exception name="IOException" type="java.io.IOException"/>
  4966. </method>
  4967. <doc>
  4968. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  4969. of RAF-style seek ability.]]>
  4970. </doc>
  4971. </class>
  4972. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  4973. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  4974. <class name="FSOutputSummer" extends="java.io.OutputStream"
  4975. abstract="true"
  4976. static="false" final="false" visibility="public"
  4977. deprecated="not deprecated">
  4978. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  4979. static="false" final="false" visibility="protected"
  4980. deprecated="not deprecated">
  4981. </constructor>
  4982. <method name="writeChunk"
  4983. abstract="true" native="false" synchronized="false"
  4984. static="false" final="false" visibility="protected"
  4985. deprecated="not deprecated">
  4986. <param name="b" type="byte[]"/>
  4987. <param name="offset" type="int"/>
  4988. <param name="len" type="int"/>
  4989. <param name="checksum" type="byte[]"/>
  4990. <exception name="IOException" type="java.io.IOException"/>
  4991. </method>
  4992. <method name="write"
  4993. abstract="false" native="false" synchronized="true"
  4994. static="false" final="false" visibility="public"
  4995. deprecated="not deprecated">
  4996. <param name="b" type="int"/>
  4997. <exception name="IOException" type="java.io.IOException"/>
  4998. <doc>
  4999. <![CDATA[Write one byte]]>
  5000. </doc>
  5001. </method>
  5002. <method name="write"
  5003. abstract="false" native="false" synchronized="true"
  5004. static="false" final="false" visibility="public"
  5005. deprecated="not deprecated">
  5006. <param name="b" type="byte[]"/>
  5007. <param name="off" type="int"/>
  5008. <param name="len" type="int"/>
  5009. <exception name="IOException" type="java.io.IOException"/>
  5010. <doc>
  5011. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  5012. starting at offset <code>off</code> and generate a checksum for
  5013. each data chunk.
  5014. <p> This method stores bytes from the given array into this
  5015. stream's buffer before it gets checksumed. The buffer gets checksumed
  5016. and flushed to the underlying output stream when all data
  5017. in a checksum chunk are in the buffer. If the buffer is empty and
  5018. requested length is at least as large as the size of next checksum chunk
  5019. size, this method will checksum and write the chunk directly
  5020. to the underlying output stream. Thus it avoids uneccessary data copy.
  5021. @param b the data.
  5022. @param off the start offset in the data.
  5023. @param len the number of bytes to write.
  5024. @exception IOException if an I/O error occurs.]]>
  5025. </doc>
  5026. </method>
  5027. <method name="flushBuffer"
  5028. abstract="false" native="false" synchronized="true"
  5029. static="false" final="false" visibility="protected"
  5030. deprecated="not deprecated">
  5031. <exception name="IOException" type="java.io.IOException"/>
  5032. </method>
  5033. <method name="flushBuffer"
  5034. abstract="false" native="false" synchronized="true"
  5035. static="false" final="false" visibility="protected"
  5036. deprecated="not deprecated">
  5037. <param name="keep" type="boolean"/>
  5038. <exception name="IOException" type="java.io.IOException"/>
  5039. </method>
  5040. <method name="convertToByteStream" return="byte[]"
  5041. abstract="false" native="false" synchronized="false"
  5042. static="true" final="false" visibility="public"
  5043. deprecated="not deprecated">
  5044. <param name="sum" type="java.util.zip.Checksum"/>
  5045. <param name="checksumSize" type="int"/>
  5046. <doc>
  5047. <![CDATA[Converts a checksum integer value to a byte stream]]>
  5048. </doc>
  5049. </method>
  5050. <method name="resetChecksumChunk"
  5051. abstract="false" native="false" synchronized="true"
  5052. static="false" final="false" visibility="protected"
  5053. deprecated="not deprecated">
  5054. <param name="size" type="int"/>
  5055. <doc>
  5056. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  5057. </doc>
  5058. </method>
  5059. <doc>
  5060. <![CDATA[This is a generic output stream for generating checksums for
  5061. data before it is written to the underlying stream]]>
  5062. </doc>
  5063. </class>
  5064. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  5065. <!-- start class org.apache.hadoop.fs.FsShell -->
  5066. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  5067. abstract="false"
  5068. static="false" final="false" visibility="public"
  5069. deprecated="not deprecated">
  5070. <implements name="org.apache.hadoop.util.Tool"/>
  5071. <constructor name="FsShell"
  5072. static="false" final="false" visibility="public"
  5073. deprecated="not deprecated">
  5074. </constructor>
  5075. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  5076. static="false" final="false" visibility="public"
  5077. deprecated="not deprecated">
  5078. </constructor>
  5079. <method name="init"
  5080. abstract="false" native="false" synchronized="false"
  5081. static="false" final="false" visibility="protected"
  5082. deprecated="not deprecated">
  5083. <exception name="IOException" type="java.io.IOException"/>
  5084. </method>
  5085. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  5086. abstract="false" native="false" synchronized="false"
  5087. static="false" final="false" visibility="public"
  5088. deprecated="not deprecated">
  5089. <doc>
  5090. <![CDATA[Returns the Trash object associated with this shell.]]>
  5091. </doc>
  5092. </method>
  5093. <method name="byteDesc" return="java.lang.String"
  5094. abstract="false" native="false" synchronized="false"
  5095. static="true" final="false" visibility="public"
  5096. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  5097. <param name="len" type="long"/>
  5098. <doc>
  5099. <![CDATA[Return an abbreviated English-language desc of the byte length
  5100. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  5101. </doc>
  5102. </method>
  5103. <method name="limitDecimalTo2" return="java.lang.String"
  5104. abstract="false" native="false" synchronized="true"
  5105. static="true" final="false" visibility="public"
  5106. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  5107. <param name="d" type="double"/>
  5108. <doc>
  5109. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  5110. </doc>
  5111. </method>
  5112. <method name="run" return="int"
  5113. abstract="false" native="false" synchronized="false"
  5114. static="false" final="false" visibility="public"
  5115. deprecated="not deprecated">
  5116. <param name="argv" type="java.lang.String[]"/>
  5117. <exception name="Exception" type="java.lang.Exception"/>
  5118. <doc>
  5119. <![CDATA[run]]>
  5120. </doc>
  5121. </method>
  5122. <method name="close"
  5123. abstract="false" native="false" synchronized="false"
  5124. static="false" final="false" visibility="public"
  5125. deprecated="not deprecated">
  5126. <exception name="IOException" type="java.io.IOException"/>
  5127. </method>
  5128. <method name="main"
  5129. abstract="false" native="false" synchronized="false"
  5130. static="true" final="false" visibility="public"
  5131. deprecated="not deprecated">
  5132. <param name="argv" type="java.lang.String[]"/>
  5133. <exception name="Exception" type="java.lang.Exception"/>
  5134. <doc>
  5135. <![CDATA[main() has some simple utility methods]]>
  5136. </doc>
  5137. </method>
  5138. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  5139. transient="false" volatile="false"
  5140. static="false" final="false" visibility="protected"
  5141. deprecated="not deprecated">
  5142. </field>
  5143. <field name="dateForm" type="java.text.SimpleDateFormat"
  5144. transient="false" volatile="false"
  5145. static="true" final="true" visibility="public"
  5146. deprecated="not deprecated">
  5147. </field>
  5148. <field name="modifFmt" type="java.text.SimpleDateFormat"
  5149. transient="false" volatile="false"
  5150. static="true" final="true" visibility="protected"
  5151. deprecated="not deprecated">
  5152. </field>
  5153. <doc>
  5154. <![CDATA[Provide command line access to a FileSystem.]]>
  5155. </doc>
  5156. </class>
  5157. <!-- end class org.apache.hadoop.fs.FsShell -->
  5158. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5159. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  5160. abstract="false"
  5161. static="false" final="false" visibility="public"
  5162. deprecated="not deprecated">
  5163. <implements name="java.net.URLStreamHandlerFactory"/>
  5164. <constructor name="FsUrlStreamHandlerFactory"
  5165. static="false" final="false" visibility="public"
  5166. deprecated="not deprecated">
  5167. </constructor>
  5168. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  5169. static="false" final="false" visibility="public"
  5170. deprecated="not deprecated">
  5171. </constructor>
  5172. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  5173. abstract="false" native="false" synchronized="false"
  5174. static="false" final="false" visibility="public"
  5175. deprecated="not deprecated">
  5176. <param name="protocol" type="java.lang.String"/>
  5177. </method>
  5178. <doc>
  5179. <![CDATA[Factory for URL stream handlers.
  5180. There is only one handler whose job is to create UrlConnections. A
  5181. FsUrlConnection relies on FileSystem to choose the appropriate FS
  5182. implementation.
  5183. Before returning our handler, we make sure that FileSystem knows an
  5184. implementation for the requested scheme/protocol.]]>
  5185. </doc>
  5186. </class>
  5187. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5188. <!-- start class org.apache.hadoop.fs.GlobPattern -->
  5189. <class name="GlobPattern" extends="java.lang.Object"
  5190. abstract="false"
  5191. static="false" final="false" visibility="public"
  5192. deprecated="not deprecated">
  5193. <constructor name="GlobPattern" type="java.lang.String"
  5194. static="false" final="false" visibility="public"
  5195. deprecated="not deprecated">
  5196. <doc>
  5197. <![CDATA[Construct the glob pattern object with a glob pattern string
  5198. @param globPattern the glob pattern string]]>
  5199. </doc>
  5200. </constructor>
  5201. <method name="compiled" return="java.util.regex.Pattern"
  5202. abstract="false" native="false" synchronized="false"
  5203. static="false" final="false" visibility="public"
  5204. deprecated="not deprecated">
  5205. <doc>
  5206. <![CDATA[@return the compiled pattern]]>
  5207. </doc>
  5208. </method>
  5209. <method name="compile" return="java.util.regex.Pattern"
  5210. abstract="false" native="false" synchronized="false"
  5211. static="true" final="false" visibility="public"
  5212. deprecated="not deprecated">
  5213. <param name="globPattern" type="java.lang.String"/>
  5214. <doc>
  5215. <![CDATA[Compile glob pattern string
  5216. @param globPattern the glob pattern
  5217. @return the pattern object]]>
  5218. </doc>
  5219. </method>
  5220. <method name="matches" return="boolean"
  5221. abstract="false" native="false" synchronized="false"
  5222. static="false" final="false" visibility="public"
  5223. deprecated="not deprecated">
  5224. <param name="s" type="java.lang.CharSequence"/>
  5225. <doc>
  5226. <![CDATA[Match input against the compiled glob pattern
  5227. @param s input chars
  5228. @return true for successful matches]]>
  5229. </doc>
  5230. </method>
  5231. <method name="set"
  5232. abstract="false" native="false" synchronized="false"
  5233. static="false" final="false" visibility="public"
  5234. deprecated="not deprecated">
  5235. <param name="glob" type="java.lang.String"/>
  5236. <doc>
  5237. <![CDATA[Set and compile a glob pattern
  5238. @param glob the glob pattern string]]>
  5239. </doc>
  5240. </method>
  5241. <method name="hasWildcard" return="boolean"
  5242. abstract="false" native="false" synchronized="false"
  5243. static="false" final="false" visibility="public"
  5244. deprecated="not deprecated">
  5245. <doc>
  5246. <![CDATA[@return true if this is a wildcard pattern (with special chars)]]>
  5247. </doc>
  5248. </method>
  5249. <doc>
  5250. <![CDATA[A class for POSIX glob pattern with brace expansions.]]>
  5251. </doc>
  5252. </class>
  5253. <!-- end class org.apache.hadoop.fs.GlobPattern -->
  5254. <!-- start class org.apache.hadoop.fs.HardLink -->
  5255. <class name="HardLink" extends="java.lang.Object"
  5256. abstract="false"
  5257. static="false" final="false" visibility="public"
  5258. deprecated="not deprecated">
  5259. <constructor name="HardLink"
  5260. static="false" final="false" visibility="public"
  5261. deprecated="not deprecated">
  5262. </constructor>
  5263. <method name="getLinkMultArgLength" return="int"
  5264. abstract="false" native="false" synchronized="false"
  5265. static="true" final="false" visibility="protected"
  5266. deprecated="not deprecated">
  5267. <param name="fileDir" type="java.io.File"/>
  5268. <param name="fileBaseNames" type="java.lang.String[]"/>
  5269. <param name="linkDir" type="java.io.File"/>
  5270. <exception name="IOException" type="java.io.IOException"/>
  5271. <doc>
  5272. <![CDATA[Calculate the nominal length of all contributors to the total
  5273. commandstring length, including fixed overhead of the OS-dependent
  5274. command. It's protected rather than private, to assist unit testing,
  5275. but real clients are not expected to need it -- see the way
  5276. createHardLinkMult() uses it internally so the user doesn't need to worry
  5277. about it.
  5278. @param fileDir - source directory, parent of fileBaseNames
  5279. @param fileBaseNames - array of path-less file names, relative
  5280. to the source directory
  5281. @param linkDir - target directory where the hardlinks will be put
  5282. @return - total data length (must not exceed maxAllowedCmdArgLength)
  5283. @throws IOException]]>
  5284. </doc>
  5285. </method>
  5286. <method name="getMaxAllowedCmdArgLength" return="int"
  5287. abstract="false" native="false" synchronized="false"
  5288. static="true" final="false" visibility="protected"
  5289. deprecated="not deprecated">
  5290. <doc>
  5291. <![CDATA[Return this private value for use by unit tests.
  5292. Shell commands are not allowed to have a total string length
  5293. exceeding this size.]]>
  5294. </doc>
  5295. </method>
  5296. <method name="createHardLink"
  5297. abstract="false" native="false" synchronized="false"
  5298. static="true" final="false" visibility="public"
  5299. deprecated="not deprecated">
  5300. <param name="file" type="java.io.File"/>
  5301. <param name="linkName" type="java.io.File"/>
  5302. <exception name="IOException" type="java.io.IOException"/>
  5303. <doc>
  5304. <![CDATA[Creates a hardlink
  5305. @param file - existing source file
  5306. @param linkName - desired target link file]]>
  5307. </doc>
  5308. </method>
  5309. <method name="createHardLinkMult"
  5310. abstract="false" native="false" synchronized="false"
  5311. static="true" final="false" visibility="public"
  5312. deprecated="not deprecated">
  5313. <param name="parentDir" type="java.io.File"/>
  5314. <param name="fileBaseNames" type="java.lang.String[]"/>
  5315. <param name="linkDir" type="java.io.File"/>
  5316. <exception name="IOException" type="java.io.IOException"/>
  5317. <doc>
  5318. <![CDATA[Creates hardlinks from multiple existing files within one parent
  5319. directory, into one target directory.
  5320. @param parentDir - directory containing source files
  5321. @param fileBaseNames - list of path-less file names, as returned by
  5322. parentDir.list()
  5323. @param linkDir - where the hardlinks should be put. It must already exist.
  5324. If the list of files is too long (overflows maxAllowedCmdArgLength),
  5325. we will automatically split it into multiple invocations of the
  5326. underlying method.]]>
  5327. </doc>
  5328. </method>
  5329. <method name="createHardLinkMult" return="int"
  5330. abstract="false" native="false" synchronized="false"
  5331. static="true" final="false" visibility="protected"
  5332. deprecated="not deprecated">
  5333. <param name="parentDir" type="java.io.File"/>
  5334. <param name="fileBaseNames" type="java.lang.String[]"/>
  5335. <param name="linkDir" type="java.io.File"/>
  5336. <param name="maxLength" type="int"/>
  5337. <exception name="IOException" type="java.io.IOException"/>
  5338. </method>
  5339. <method name="getLinkCount" return="int"
  5340. abstract="false" native="false" synchronized="false"
  5341. static="true" final="false" visibility="public"
  5342. deprecated="not deprecated">
  5343. <param name="fileName" type="java.io.File"/>
  5344. <exception name="IOException" type="java.io.IOException"/>
  5345. <doc>
  5346. <![CDATA[Retrieves the number of links to the specified file.]]>
  5347. </doc>
  5348. </method>
  5349. <field name="osType" type="org.apache.hadoop.fs.HardLink.OSType"
  5350. transient="false" volatile="false"
  5351. static="true" final="false" visibility="public"
  5352. deprecated="not deprecated">
  5353. </field>
  5354. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  5355. transient="false" volatile="false"
  5356. static="false" final="true" visibility="public"
  5357. deprecated="not deprecated">
  5358. </field>
  5359. <doc>
  5360. <![CDATA[Class for creating hardlinks.
  5361. Supports Unix/Linux, WinXP/2003/Vista via Cygwin, and Mac OS X.
  5362. The HardLink class was formerly a static inner class of FSUtil,
  5363. and the methods provided were blatantly non-thread-safe.
  5364. To enable volume-parallel Update snapshots, we now provide static
  5365. threadsafe methods that allocate new buffer string arrays
  5366. upon each call. We also provide an API to hardlink all files in a
  5367. directory with a single command, which is up to 128 times more
  5368. efficient - and minimizes the impact of the extra buffer creations.]]>
  5369. </doc>
  5370. </class>
  5371. <!-- end class org.apache.hadoop.fs.HardLink -->
  5372. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  5373. <class name="HardLink.LinkStats" extends="java.lang.Object"
  5374. abstract="false"
  5375. static="true" final="false" visibility="public"
  5376. deprecated="not deprecated">
  5377. <constructor name="HardLink.LinkStats"
  5378. static="false" final="false" visibility="public"
  5379. deprecated="not deprecated">
  5380. </constructor>
  5381. <method name="clear"
  5382. abstract="false" native="false" synchronized="false"
  5383. static="false" final="false" visibility="public"
  5384. deprecated="not deprecated">
  5385. </method>
  5386. <method name="report" return="java.lang.String"
  5387. abstract="false" native="false" synchronized="false"
  5388. static="false" final="false" visibility="public"
  5389. deprecated="not deprecated">
  5390. </method>
  5391. <field name="countDirs" type="int"
  5392. transient="false" volatile="false"
  5393. static="false" final="false" visibility="public"
  5394. deprecated="not deprecated">
  5395. </field>
  5396. <field name="countSingleLinks" type="int"
  5397. transient="false" volatile="false"
  5398. static="false" final="false" visibility="public"
  5399. deprecated="not deprecated">
  5400. </field>
  5401. <field name="countMultLinks" type="int"
  5402. transient="false" volatile="false"
  5403. static="false" final="false" visibility="public"
  5404. deprecated="not deprecated">
  5405. </field>
  5406. <field name="countFilesMultLinks" type="int"
  5407. transient="false" volatile="false"
  5408. static="false" final="false" visibility="public"
  5409. deprecated="not deprecated">
  5410. </field>
  5411. <field name="countEmptyDirs" type="int"
  5412. transient="false" volatile="false"
  5413. static="false" final="false" visibility="public"
  5414. deprecated="not deprecated">
  5415. </field>
  5416. <field name="countPhysicalFileCopies" type="int"
  5417. transient="false" volatile="false"
  5418. static="false" final="false" visibility="public"
  5419. deprecated="not deprecated">
  5420. </field>
  5421. <doc>
  5422. <![CDATA[HardLink statistics counters and methods.
  5423. Not multi-thread safe, obviously.
  5424. Init is called during HardLink instantiation, above.
  5425. These are intended for use by knowledgeable clients, not internally,
  5426. because many of the internal methods are static and can't update these
  5427. per-instance counters.]]>
  5428. </doc>
  5429. </class>
  5430. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  5431. <!-- start class org.apache.hadoop.fs.HardLink.OSType -->
  5432. <class name="HardLink.OSType" extends="java.lang.Enum"
  5433. abstract="false"
  5434. static="true" final="true" visibility="public"
  5435. deprecated="not deprecated">
  5436. <method name="values" return="org.apache.hadoop.fs.HardLink.OSType[]"
  5437. abstract="false" native="false" synchronized="false"
  5438. static="true" final="false" visibility="public"
  5439. deprecated="not deprecated">
  5440. </method>
  5441. <method name="valueOf" return="org.apache.hadoop.fs.HardLink.OSType"
  5442. abstract="false" native="false" synchronized="false"
  5443. static="true" final="false" visibility="public"
  5444. deprecated="not deprecated">
  5445. <param name="name" type="java.lang.String"/>
  5446. </method>
  5447. <field name="OS_TYPE_UNIX" type="org.apache.hadoop.fs.HardLink.OSType"
  5448. transient="false" volatile="false"
  5449. static="true" final="true" visibility="public"
  5450. deprecated="not deprecated">
  5451. </field>
  5452. <field name="OS_TYPE_WINXP" type="org.apache.hadoop.fs.HardLink.OSType"
  5453. transient="false" volatile="false"
  5454. static="true" final="true" visibility="public"
  5455. deprecated="not deprecated">
  5456. </field>
  5457. <field name="OS_TYPE_SOLARIS" type="org.apache.hadoop.fs.HardLink.OSType"
  5458. transient="false" volatile="false"
  5459. static="true" final="true" visibility="public"
  5460. deprecated="not deprecated">
  5461. </field>
  5462. <field name="OS_TYPE_MAC" type="org.apache.hadoop.fs.HardLink.OSType"
  5463. transient="false" volatile="false"
  5464. static="true" final="true" visibility="public"
  5465. deprecated="not deprecated">
  5466. </field>
  5467. </class>
  5468. <!-- end class org.apache.hadoop.fs.HardLink.OSType -->
  5469. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5470. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5471. abstract="false"
  5472. static="false" final="false" visibility="public"
  5473. deprecated="not deprecated">
  5474. <constructor name="HarFileSystem"
  5475. static="false" final="false" visibility="public"
  5476. deprecated="not deprecated">
  5477. <doc>
  5478. <![CDATA[public construction of harfilesystem]]>
  5479. </doc>
  5480. </constructor>
  5481. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5482. static="false" final="false" visibility="public"
  5483. deprecated="not deprecated">
  5484. <doc>
  5485. <![CDATA[Constructor to create a HarFileSystem with an
  5486. underlying filesystem.
  5487. @param fs]]>
  5488. </doc>
  5489. </constructor>
  5490. <method name="initialize"
  5491. abstract="false" native="false" synchronized="false"
  5492. static="false" final="false" visibility="public"
  5493. deprecated="not deprecated">
  5494. <param name="name" type="java.net.URI"/>
  5495. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5496. <exception name="IOException" type="java.io.IOException"/>
  5497. <doc>
  5498. <![CDATA[Initialize a Har filesystem per har archive. The
  5499. archive home directory is the top level directory
  5500. in the filesystem that contains the HAR archive.
  5501. Be careful with this method, you do not want to go
  5502. on creating new Filesystem instances per call to
  5503. path.getFileSystem().
  5504. the uri of Har is
  5505. har://underlyingfsscheme-host:port/archivepath.
  5506. or
  5507. har:///archivepath. This assumes the underlying filesystem
  5508. to be used in case not specified.]]>
  5509. </doc>
  5510. </method>
  5511. <method name="getHarVersion" return="int"
  5512. abstract="false" native="false" synchronized="false"
  5513. static="false" final="false" visibility="public"
  5514. deprecated="not deprecated">
  5515. <exception name="IOException" type="java.io.IOException"/>
  5516. </method>
  5517. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5518. abstract="false" native="false" synchronized="false"
  5519. static="false" final="false" visibility="public"
  5520. deprecated="not deprecated">
  5521. <doc>
  5522. <![CDATA[return the top level archive.]]>
  5523. </doc>
  5524. </method>
  5525. <method name="getUri" return="java.net.URI"
  5526. abstract="false" native="false" synchronized="false"
  5527. static="false" final="false" visibility="public"
  5528. deprecated="not deprecated">
  5529. <doc>
  5530. <![CDATA[Returns the uri of this filesystem.
  5531. The uri is of the form
  5532. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5533. </doc>
  5534. </method>
  5535. <method name="getCanonicalServiceName" return="java.lang.String"
  5536. abstract="false" native="false" synchronized="false"
  5537. static="false" final="false" visibility="public"
  5538. deprecated="not deprecated">
  5539. </method>
  5540. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5541. abstract="false" native="false" synchronized="false"
  5542. static="false" final="false" visibility="public"
  5543. deprecated="not deprecated">
  5544. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5545. </method>
  5546. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5547. abstract="false" native="false" synchronized="false"
  5548. static="false" final="false" visibility="public"
  5549. deprecated="not deprecated">
  5550. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5551. <param name="start" type="long"/>
  5552. <param name="len" type="long"/>
  5553. <exception name="IOException" type="java.io.IOException"/>
  5554. <doc>
  5555. <![CDATA[Get block locations from the underlying fs and fix their
  5556. offsets and lengths.
  5557. @param file the input filestatus to get block locations
  5558. @param start the start of the desired range in the contained file
  5559. @param len the length of the desired range
  5560. @return block locations for this segment of file
  5561. @throws IOException]]>
  5562. </doc>
  5563. </method>
  5564. <method name="getHarHash" return="int"
  5565. abstract="false" native="false" synchronized="false"
  5566. static="true" final="false" visibility="public"
  5567. deprecated="not deprecated">
  5568. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5569. <doc>
  5570. <![CDATA[the hash of the path p inside iniside
  5571. the filesystem
  5572. @param p the path in the harfilesystem
  5573. @return the hash code of the path.]]>
  5574. </doc>
  5575. </method>
  5576. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5577. abstract="false" native="false" synchronized="false"
  5578. static="false" final="false" visibility="public"
  5579. deprecated="not deprecated">
  5580. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5581. <exception name="IOException" type="java.io.IOException"/>
  5582. <doc>
  5583. <![CDATA[return the filestatus of files in har archive.
  5584. The permission returned are that of the archive
  5585. index files. The permissions are not persisted
  5586. while creating a hadoop archive.
  5587. @param f the path in har filesystem
  5588. @return filestatus.
  5589. @throws IOException]]>
  5590. </doc>
  5591. </method>
  5592. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5593. abstract="false" native="false" synchronized="false"
  5594. static="false" final="false" visibility="public"
  5595. deprecated="not deprecated">
  5596. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5597. <doc>
  5598. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  5599. </doc>
  5600. </method>
  5601. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5602. abstract="false" native="false" synchronized="false"
  5603. static="false" final="false" visibility="public"
  5604. deprecated="not deprecated">
  5605. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5606. <param name="bufferSize" type="int"/>
  5607. <exception name="IOException" type="java.io.IOException"/>
  5608. <doc>
  5609. <![CDATA[Returns a har input stream which fakes end of
  5610. file. It reads the index files to get the part
  5611. file name and the size and start of the file.]]>
  5612. </doc>
  5613. </method>
  5614. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5615. abstract="false" native="false" synchronized="false"
  5616. static="false" final="false" visibility="public"
  5617. deprecated="not deprecated">
  5618. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5619. <param name="bufferSize" type="int"/>
  5620. <exception name="IOException" type="java.io.IOException"/>
  5621. </method>
  5622. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5623. abstract="false" native="false" synchronized="false"
  5624. static="false" final="false" visibility="public"
  5625. deprecated="not deprecated">
  5626. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5627. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5628. <param name="overwrite" type="boolean"/>
  5629. <param name="bufferSize" type="int"/>
  5630. <param name="replication" type="short"/>
  5631. <param name="blockSize" type="long"/>
  5632. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5633. <exception name="IOException" type="java.io.IOException"/>
  5634. </method>
  5635. <method name="close"
  5636. abstract="false" native="false" synchronized="false"
  5637. static="false" final="false" visibility="public"
  5638. deprecated="not deprecated">
  5639. <exception name="IOException" type="java.io.IOException"/>
  5640. </method>
  5641. <method name="setReplication" return="boolean"
  5642. abstract="false" native="false" synchronized="false"
  5643. static="false" final="false" visibility="public"
  5644. deprecated="not deprecated">
  5645. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5646. <param name="replication" type="short"/>
  5647. <exception name="IOException" type="java.io.IOException"/>
  5648. <doc>
  5649. <![CDATA[Not implemented.]]>
  5650. </doc>
  5651. </method>
  5652. <method name="delete" return="boolean"
  5653. abstract="false" native="false" synchronized="false"
  5654. static="false" final="false" visibility="public"
  5655. deprecated="not deprecated">
  5656. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5657. <param name="recursive" type="boolean"/>
  5658. <exception name="IOException" type="java.io.IOException"/>
  5659. <doc>
  5660. <![CDATA[Not implemented.]]>
  5661. </doc>
  5662. </method>
  5663. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5664. abstract="false" native="false" synchronized="false"
  5665. static="false" final="false" visibility="public"
  5666. deprecated="not deprecated">
  5667. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5668. <exception name="IOException" type="java.io.IOException"/>
  5669. <doc>
  5670. <![CDATA[liststatus returns the children of a directory
  5671. after looking up the index files.]]>
  5672. </doc>
  5673. </method>
  5674. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5675. abstract="false" native="false" synchronized="false"
  5676. static="false" final="false" visibility="public"
  5677. deprecated="not deprecated">
  5678. <doc>
  5679. <![CDATA[return the top level archive path.]]>
  5680. </doc>
  5681. </method>
  5682. <method name="setWorkingDirectory"
  5683. abstract="false" native="false" synchronized="false"
  5684. static="false" final="false" visibility="public"
  5685. deprecated="not deprecated">
  5686. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5687. </method>
  5688. <method name="mkdirs" return="boolean"
  5689. abstract="false" native="false" synchronized="false"
  5690. static="false" final="false" visibility="public"
  5691. deprecated="not deprecated">
  5692. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5693. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5694. <exception name="IOException" type="java.io.IOException"/>
  5695. <doc>
  5696. <![CDATA[not implemented.]]>
  5697. </doc>
  5698. </method>
  5699. <method name="copyFromLocalFile"
  5700. abstract="false" native="false" synchronized="false"
  5701. static="false" final="false" visibility="public"
  5702. deprecated="not deprecated">
  5703. <param name="delSrc" type="boolean"/>
  5704. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5705. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5706. <exception name="IOException" type="java.io.IOException"/>
  5707. <doc>
  5708. <![CDATA[not implemented.]]>
  5709. </doc>
  5710. </method>
  5711. <method name="copyToLocalFile"
  5712. abstract="false" native="false" synchronized="false"
  5713. static="false" final="false" visibility="public"
  5714. deprecated="not deprecated">
  5715. <param name="delSrc" type="boolean"/>
  5716. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5717. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5718. <exception name="IOException" type="java.io.IOException"/>
  5719. <doc>
  5720. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5721. </doc>
  5722. </method>
  5723. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5724. abstract="false" native="false" synchronized="false"
  5725. static="false" final="false" visibility="public"
  5726. deprecated="not deprecated">
  5727. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5728. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5729. <exception name="IOException" type="java.io.IOException"/>
  5730. <doc>
  5731. <![CDATA[not implemented.]]>
  5732. </doc>
  5733. </method>
  5734. <method name="completeLocalOutput"
  5735. abstract="false" native="false" synchronized="false"
  5736. static="false" final="false" visibility="public"
  5737. deprecated="not deprecated">
  5738. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5739. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5740. <exception name="IOException" type="java.io.IOException"/>
  5741. <doc>
  5742. <![CDATA[not implemented.]]>
  5743. </doc>
  5744. </method>
  5745. <method name="setOwner"
  5746. abstract="false" native="false" synchronized="false"
  5747. static="false" final="false" visibility="public"
  5748. deprecated="not deprecated">
  5749. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5750. <param name="username" type="java.lang.String"/>
  5751. <param name="groupname" type="java.lang.String"/>
  5752. <exception name="IOException" type="java.io.IOException"/>
  5753. <doc>
  5754. <![CDATA[not implemented.]]>
  5755. </doc>
  5756. </method>
  5757. <method name="setPermission"
  5758. abstract="false" native="false" synchronized="false"
  5759. static="false" final="false" visibility="public"
  5760. deprecated="not deprecated">
  5761. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5762. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5763. <exception name="IOException" type="java.io.IOException"/>
  5764. <doc>
  5765. <![CDATA[Not implemented.]]>
  5766. </doc>
  5767. </method>
  5768. <field name="VERSION" type="int"
  5769. transient="false" volatile="false"
  5770. static="true" final="true" visibility="public"
  5771. deprecated="not deprecated">
  5772. </field>
  5773. <doc>
  5774. <![CDATA[This is an implementation of the Hadoop Archive
  5775. Filesystem. This archive Filesystem has index files
  5776. of the form _index* and has contents of the form
  5777. part-*. The index files store the indexes of the
  5778. real files. The index files are of the form _masterindex
  5779. and _index. The master index is a level of indirection
  5780. in to the index file to make the look ups faster. the index
  5781. file is sorted with hash code of the paths that it contains
  5782. and the master index contains pointers to the positions in
  5783. index for ranges of hashcodes.]]>
  5784. </doc>
  5785. </class>
  5786. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5787. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5788. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5789. abstract="false"
  5790. static="false" final="false" visibility="public"
  5791. deprecated="not deprecated">
  5792. <constructor name="InMemoryFileSystem"
  5793. static="false" final="false" visibility="public"
  5794. deprecated="not deprecated">
  5795. </constructor>
  5796. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5797. static="false" final="false" visibility="public"
  5798. deprecated="not deprecated">
  5799. </constructor>
  5800. <method name="reserveSpaceWithCheckSum" return="boolean"
  5801. abstract="false" native="false" synchronized="false"
  5802. static="false" final="false" visibility="public"
  5803. deprecated="not deprecated">
  5804. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5805. <param name="size" type="long"/>
  5806. <doc>
  5807. <![CDATA[Register a file with its size. This will also register a checksum for the
  5808. file that the user is trying to create. This is required since none of
  5809. the FileSystem APIs accept the size of the file as argument. But since it
  5810. is required for us to apriori know the size of the file we are going to
  5811. create, the user must call this method for each file he wants to create
  5812. and reserve memory for that file. We either succeed in reserving memory
  5813. for both the main file and the checksum file and return true, or return
  5814. false.]]>
  5815. </doc>
  5816. </method>
  5817. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5818. abstract="false" native="false" synchronized="false"
  5819. static="false" final="false" visibility="public"
  5820. deprecated="not deprecated">
  5821. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5822. </method>
  5823. <method name="getNumFiles" return="int"
  5824. abstract="false" native="false" synchronized="false"
  5825. static="false" final="false" visibility="public"
  5826. deprecated="not deprecated">
  5827. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5828. </method>
  5829. <method name="getFSSize" return="long"
  5830. abstract="false" native="false" synchronized="false"
  5831. static="false" final="false" visibility="public"
  5832. deprecated="not deprecated">
  5833. </method>
  5834. <method name="getPercentUsed" return="float"
  5835. abstract="false" native="false" synchronized="false"
  5836. static="false" final="false" visibility="public"
  5837. deprecated="not deprecated">
  5838. </method>
  5839. <doc>
  5840. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5841. that the file lengths are known ahead of time and the total lengths of all
  5842. the files is below a certain number (like 100 MB, configurable). Use the API
  5843. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5844. the API for reserving space in the FS. The uri of this filesystem starts with
  5845. ramfs:// .]]>
  5846. </doc>
  5847. </class>
  5848. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5849. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5850. <class name="LocalDirAllocator" extends="java.lang.Object"
  5851. abstract="false"
  5852. static="false" final="false" visibility="public"
  5853. deprecated="not deprecated">
  5854. <constructor name="LocalDirAllocator" type="java.lang.String"
  5855. static="false" final="false" visibility="public"
  5856. deprecated="not deprecated">
  5857. <doc>
  5858. <![CDATA[Create an allocator object
  5859. @param contextCfgItemName]]>
  5860. </doc>
  5861. </constructor>
  5862. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5863. abstract="false" native="false" synchronized="false"
  5864. static="false" final="false" visibility="public"
  5865. deprecated="not deprecated">
  5866. <param name="pathStr" type="java.lang.String"/>
  5867. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5868. <exception name="IOException" type="java.io.IOException"/>
  5869. <doc>
  5870. <![CDATA[Get a path from the local FS. This method should be used if the size of
  5871. the file is not known apriori. We go round-robin over the set of disks
  5872. (via the configured dirs) and return the first complete path where
  5873. we could create the parent directory of the passed path.
  5874. @param pathStr the requested path (this will be created on the first
  5875. available disk)
  5876. @param conf the Configuration object
  5877. @return the complete path to the file on a local disk
  5878. @throws IOException]]>
  5879. </doc>
  5880. </method>
  5881. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5882. abstract="false" native="false" synchronized="false"
  5883. static="false" final="false" visibility="public"
  5884. deprecated="not deprecated">
  5885. <param name="pathStr" type="java.lang.String"/>
  5886. <param name="size" type="long"/>
  5887. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5888. <exception name="IOException" type="java.io.IOException"/>
  5889. <doc>
  5890. <![CDATA[Get a path from the local FS. Pass size as
  5891. SIZE_UNKNOWN if not known apriori. We
  5892. round-robin over the set of disks (via the configured dirs) and return
  5893. the first complete path which has enough space
  5894. @param pathStr the requested path (this will be created on the first
  5895. available disk)
  5896. @param size the size of the file that is going to be written
  5897. @param conf the Configuration object
  5898. @return the complete path to the file on a local disk
  5899. @throws IOException]]>
  5900. </doc>
  5901. </method>
  5902. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5903. abstract="false" native="false" synchronized="false"
  5904. static="false" final="false" visibility="public"
  5905. deprecated="not deprecated">
  5906. <param name="pathStr" type="java.lang.String"/>
  5907. <param name="size" type="long"/>
  5908. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5909. <param name="checkWrite" type="boolean"/>
  5910. <exception name="IOException" type="java.io.IOException"/>
  5911. <doc>
  5912. <![CDATA[Get a path from the local FS. Pass size as
  5913. SIZE_UNKNOWN if not known apriori. We
  5914. round-robin over the set of disks (via the configured dirs) and return
  5915. the first complete path which has enough space
  5916. @param pathStr the requested path (this will be created on the first
  5917. available disk)
  5918. @param size the size of the file that is going to be written
  5919. @param conf the Configuration object
  5920. @param checkWrite ensure that the path is writable
  5921. @return the complete path to the file on a local disk
  5922. @throws IOException]]>
  5923. </doc>
  5924. </method>
  5925. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5926. abstract="false" native="false" synchronized="false"
  5927. static="false" final="false" visibility="public"
  5928. deprecated="not deprecated">
  5929. <param name="pathStr" type="java.lang.String"/>
  5930. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5931. <exception name="IOException" type="java.io.IOException"/>
  5932. <doc>
  5933. <![CDATA[Get a path from the local FS for reading. We search through all the
  5934. configured dirs for the file's existence and return the complete
  5935. path to the file when we find one
  5936. @param pathStr the requested file (this will be searched)
  5937. @param conf the Configuration object
  5938. @return the complete path to the file on a local disk
  5939. @throws IOException]]>
  5940. </doc>
  5941. </method>
  5942. <method name="getAllLocalPathsToRead" return="java.lang.Iterable"
  5943. abstract="false" native="false" synchronized="false"
  5944. static="false" final="false" visibility="public"
  5945. deprecated="not deprecated">
  5946. <param name="pathStr" type="java.lang.String"/>
  5947. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5948. <exception name="IOException" type="java.io.IOException"/>
  5949. <doc>
  5950. <![CDATA[Get all of the paths that currently exist in the working directories.
  5951. @param pathStr the path underneath the roots
  5952. @param conf the configuration to look up the roots in
  5953. @return all of the paths that exist under any of the roots
  5954. @throws IOException]]>
  5955. </doc>
  5956. </method>
  5957. <method name="createTmpFileForWrite" return="java.io.File"
  5958. abstract="false" native="false" synchronized="false"
  5959. static="false" final="false" visibility="public"
  5960. deprecated="not deprecated">
  5961. <param name="pathStr" type="java.lang.String"/>
  5962. <param name="size" type="long"/>
  5963. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5964. <exception name="IOException" type="java.io.IOException"/>
  5965. <doc>
  5966. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  5967. apriori. We round-robin over the set of disks (via the configured dirs)
  5968. and select the first complete path which has enough space. A file is
  5969. created on this directory. The file is guaranteed to go away when the
  5970. JVM exits.
  5971. @param pathStr prefix for the temporary file
  5972. @param size the size of the file that is going to be written
  5973. @param conf the Configuration object
  5974. @return a unique temporary file
  5975. @throws IOException]]>
  5976. </doc>
  5977. </method>
  5978. <method name="isContextValid" return="boolean"
  5979. abstract="false" native="false" synchronized="false"
  5980. static="true" final="false" visibility="public"
  5981. deprecated="not deprecated">
  5982. <param name="contextCfgItemName" type="java.lang.String"/>
  5983. <doc>
  5984. <![CDATA[Method to check whether a context is valid
  5985. @param contextCfgItemName
  5986. @return true/false]]>
  5987. </doc>
  5988. </method>
  5989. <method name="ifExists" return="boolean"
  5990. abstract="false" native="false" synchronized="false"
  5991. static="false" final="false" visibility="public"
  5992. deprecated="not deprecated">
  5993. <param name="pathStr" type="java.lang.String"/>
  5994. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5995. <doc>
  5996. <![CDATA[We search through all the configured dirs for the file's existence
  5997. and return true when we find
  5998. @param pathStr the requested file (this will be searched)
  5999. @param conf the Configuration object
  6000. @return true if files exist. false otherwise
  6001. @throws IOException]]>
  6002. </doc>
  6003. </method>
  6004. <field name="SIZE_UNKNOWN" type="int"
  6005. transient="false" volatile="false"
  6006. static="true" final="true" visibility="public"
  6007. deprecated="not deprecated">
  6008. <doc>
  6009. <![CDATA[Used when size of file to be allocated is unknown.]]>
  6010. </doc>
  6011. </field>
  6012. <doc>
  6013. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  6014. files. The way it works is that it is kept track what disk was last
  6015. allocated for a file write. For the current request, the next disk from
  6016. the set of disks would be allocated if the free space on the disk is
  6017. sufficient enough to accommodate the file that is being considered for
  6018. creation. If the space requirements cannot be met, the next disk in order
  6019. would be tried and so on till a disk is found with sufficient capacity.
  6020. Once a disk with sufficient space is identified, a check is done to make
  6021. sure that the disk is writable. Also, there is an API provided that doesn't
  6022. take the space requirements into consideration but just checks whether the
  6023. disk under consideration is writable (this should be used for cases where
  6024. the file size is not known apriori). An API is provided to read a path that
  6025. was created earlier. That API works by doing a scan of all the disks for the
  6026. input pathname.
  6027. This implementation also provides the functionality of having multiple
  6028. allocators per JVM (one for each unique functionality or context, like
  6029. mapred, dfs-client, etc.). It ensures that there is only one instance of
  6030. an allocator per context per JVM.
  6031. Note:
  6032. 1. The contexts referred above are actually the configuration items defined
  6033. in the Configuration class like "mapred.local.dir" (for which we want to
  6034. control the dir allocations). The context-strings are exactly those
  6035. configuration items.
  6036. 2. This implementation does not take into consideration cases where
  6037. a disk becomes read-only or goes out of space while a file is being written
  6038. to (disks are shared between multiple processes, and so the latter situation
  6039. is probable).
  6040. 3. In the class implementation, "Disk" is referred to as "Dir", which
  6041. actually points to the configured directory on the Disk which will be the
  6042. parent for all file write/read allocations.]]>
  6043. </doc>
  6044. </class>
  6045. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  6046. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  6047. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  6048. abstract="false"
  6049. static="false" final="false" visibility="public"
  6050. deprecated="not deprecated">
  6051. <constructor name="LocalFileSystem"
  6052. static="false" final="false" visibility="public"
  6053. deprecated="not deprecated">
  6054. </constructor>
  6055. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  6056. static="false" final="false" visibility="public"
  6057. deprecated="not deprecated">
  6058. </constructor>
  6059. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  6060. abstract="false" native="false" synchronized="false"
  6061. static="false" final="false" visibility="public"
  6062. deprecated="not deprecated">
  6063. </method>
  6064. <method name="exists" return="boolean"
  6065. abstract="false" native="false" synchronized="false"
  6066. static="false" final="false" visibility="public"
  6067. deprecated="not deprecated">
  6068. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6069. <exception name="IOException" type="java.io.IOException"/>
  6070. <doc>
  6071. <![CDATA[Get file status.]]>
  6072. </doc>
  6073. </method>
  6074. <method name="pathToFile" return="java.io.File"
  6075. abstract="false" native="false" synchronized="false"
  6076. static="false" final="false" visibility="public"
  6077. deprecated="not deprecated">
  6078. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6079. <doc>
  6080. <![CDATA[Convert a path to a File.]]>
  6081. </doc>
  6082. </method>
  6083. <method name="copyFromLocalFile"
  6084. abstract="false" native="false" synchronized="false"
  6085. static="false" final="false" visibility="public"
  6086. deprecated="not deprecated">
  6087. <param name="delSrc" type="boolean"/>
  6088. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6089. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6090. <exception name="IOException" type="java.io.IOException"/>
  6091. </method>
  6092. <method name="copyToLocalFile"
  6093. abstract="false" native="false" synchronized="false"
  6094. static="false" final="false" visibility="public"
  6095. deprecated="not deprecated">
  6096. <param name="delSrc" type="boolean"/>
  6097. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6098. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6099. <exception name="IOException" type="java.io.IOException"/>
  6100. </method>
  6101. <method name="reportChecksumFailure" return="boolean"
  6102. abstract="false" native="false" synchronized="false"
  6103. static="false" final="false" visibility="public"
  6104. deprecated="not deprecated">
  6105. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6106. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6107. <param name="inPos" type="long"/>
  6108. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6109. <param name="sumsPos" type="long"/>
  6110. <doc>
  6111. <![CDATA[Moves files to a bad file directory on the same device, so that their
  6112. storage will not be reused.]]>
  6113. </doc>
  6114. </method>
  6115. <doc>
  6116. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  6117. </doc>
  6118. </class>
  6119. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  6120. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6121. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  6122. abstract="false"
  6123. static="false" final="false" visibility="public"
  6124. deprecated="not deprecated">
  6125. <constructor name="MD5MD5CRC32FileChecksum"
  6126. static="false" final="false" visibility="public"
  6127. deprecated="not deprecated">
  6128. <doc>
  6129. <![CDATA[Same as this(0, 0, null)]]>
  6130. </doc>
  6131. </constructor>
  6132. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  6133. static="false" final="false" visibility="public"
  6134. deprecated="not deprecated">
  6135. <doc>
  6136. <![CDATA[Create a MD5FileChecksum]]>
  6137. </doc>
  6138. </constructor>
  6139. <method name="getAlgorithmName" return="java.lang.String"
  6140. abstract="false" native="false" synchronized="false"
  6141. static="false" final="false" visibility="public"
  6142. deprecated="not deprecated">
  6143. <doc>
  6144. <![CDATA[{@inheritDoc}]]>
  6145. </doc>
  6146. </method>
  6147. <method name="getLength" return="int"
  6148. abstract="false" native="false" synchronized="false"
  6149. static="false" final="false" visibility="public"
  6150. deprecated="not deprecated">
  6151. <doc>
  6152. <![CDATA[{@inheritDoc}]]>
  6153. </doc>
  6154. </method>
  6155. <method name="getBytes" return="byte[]"
  6156. abstract="false" native="false" synchronized="false"
  6157. static="false" final="false" visibility="public"
  6158. deprecated="not deprecated">
  6159. <doc>
  6160. <![CDATA[{@inheritDoc}]]>
  6161. </doc>
  6162. </method>
  6163. <method name="readFields"
  6164. abstract="false" native="false" synchronized="false"
  6165. static="false" final="false" visibility="public"
  6166. deprecated="not deprecated">
  6167. <param name="in" type="java.io.DataInput"/>
  6168. <exception name="IOException" type="java.io.IOException"/>
  6169. <doc>
  6170. <![CDATA[{@inheritDoc}]]>
  6171. </doc>
  6172. </method>
  6173. <method name="write"
  6174. abstract="false" native="false" synchronized="false"
  6175. static="false" final="false" visibility="public"
  6176. deprecated="not deprecated">
  6177. <param name="out" type="java.io.DataOutput"/>
  6178. <exception name="IOException" type="java.io.IOException"/>
  6179. <doc>
  6180. <![CDATA[{@inheritDoc}]]>
  6181. </doc>
  6182. </method>
  6183. <method name="write"
  6184. abstract="false" native="false" synchronized="false"
  6185. static="true" final="false" visibility="public"
  6186. deprecated="not deprecated">
  6187. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  6188. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  6189. <exception name="IOException" type="java.io.IOException"/>
  6190. <doc>
  6191. <![CDATA[Write that object to xml output.]]>
  6192. </doc>
  6193. </method>
  6194. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  6195. abstract="false" native="false" synchronized="false"
  6196. static="true" final="false" visibility="public"
  6197. deprecated="not deprecated">
  6198. <param name="attrs" type="org.xml.sax.Attributes"/>
  6199. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  6200. <doc>
  6201. <![CDATA[Return the object represented in the attributes.]]>
  6202. </doc>
  6203. </method>
  6204. <method name="toString" return="java.lang.String"
  6205. abstract="false" native="false" synchronized="false"
  6206. static="false" final="false" visibility="public"
  6207. deprecated="not deprecated">
  6208. <doc>
  6209. <![CDATA[{@inheritDoc}]]>
  6210. </doc>
  6211. </method>
  6212. <field name="LENGTH" type="int"
  6213. transient="false" volatile="false"
  6214. static="true" final="true" visibility="public"
  6215. deprecated="not deprecated">
  6216. </field>
  6217. <doc>
  6218. <![CDATA[MD5 of MD5 of CRC32.]]>
  6219. </doc>
  6220. </class>
  6221. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6222. <!-- start class org.apache.hadoop.fs.Path -->
  6223. <class name="Path" extends="java.lang.Object"
  6224. abstract="false"
  6225. static="false" final="false" visibility="public"
  6226. deprecated="not deprecated">
  6227. <implements name="java.lang.Comparable"/>
  6228. <constructor name="Path" type="java.lang.String, java.lang.String"
  6229. static="false" final="false" visibility="public"
  6230. deprecated="not deprecated">
  6231. <doc>
  6232. <![CDATA[Resolve a child path against a parent path.]]>
  6233. </doc>
  6234. </constructor>
  6235. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  6236. static="false" final="false" visibility="public"
  6237. deprecated="not deprecated">
  6238. <doc>
  6239. <![CDATA[Resolve a child path against a parent path.]]>
  6240. </doc>
  6241. </constructor>
  6242. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  6243. static="false" final="false" visibility="public"
  6244. deprecated="not deprecated">
  6245. <doc>
  6246. <![CDATA[Resolve a child path against a parent path.]]>
  6247. </doc>
  6248. </constructor>
  6249. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  6250. static="false" final="false" visibility="public"
  6251. deprecated="not deprecated">
  6252. <doc>
  6253. <![CDATA[Resolve a child path against a parent path.]]>
  6254. </doc>
  6255. </constructor>
  6256. <constructor name="Path" type="java.lang.String"
  6257. static="false" final="false" visibility="public"
  6258. deprecated="not deprecated">
  6259. <doc>
  6260. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  6261. unescaped elements and some additional normalization.]]>
  6262. </doc>
  6263. </constructor>
  6264. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  6265. static="false" final="false" visibility="public"
  6266. deprecated="not deprecated">
  6267. <doc>
  6268. <![CDATA[Construct a Path from components.]]>
  6269. </doc>
  6270. </constructor>
  6271. <constructor name="Path" type="java.net.URI"
  6272. static="false" final="false" visibility="public"
  6273. deprecated="not deprecated">
  6274. <doc>
  6275. <![CDATA[Construct a path from a URI]]>
  6276. </doc>
  6277. </constructor>
  6278. <method name="toUri" return="java.net.URI"
  6279. abstract="false" native="false" synchronized="false"
  6280. static="false" final="false" visibility="public"
  6281. deprecated="not deprecated">
  6282. <doc>
  6283. <![CDATA[Convert this to a URI.]]>
  6284. </doc>
  6285. </method>
  6286. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6287. abstract="false" native="false" synchronized="false"
  6288. static="false" final="false" visibility="public"
  6289. deprecated="not deprecated">
  6290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6291. <exception name="IOException" type="java.io.IOException"/>
  6292. <doc>
  6293. <![CDATA[Return the FileSystem that owns this Path.]]>
  6294. </doc>
  6295. </method>
  6296. <method name="isAbsolute" return="boolean"
  6297. abstract="false" native="false" synchronized="false"
  6298. static="false" final="false" visibility="public"
  6299. deprecated="not deprecated">
  6300. <doc>
  6301. <![CDATA[True if the directory of this path is absolute.]]>
  6302. </doc>
  6303. </method>
  6304. <method name="getName" return="java.lang.String"
  6305. abstract="false" native="false" synchronized="false"
  6306. static="false" final="false" visibility="public"
  6307. deprecated="not deprecated">
  6308. <doc>
  6309. <![CDATA[Returns the final component of this path.]]>
  6310. </doc>
  6311. </method>
  6312. <method name="getParent" return="org.apache.hadoop.fs.Path"
  6313. abstract="false" native="false" synchronized="false"
  6314. static="false" final="false" visibility="public"
  6315. deprecated="not deprecated">
  6316. <doc>
  6317. <![CDATA[Returns the parent of a path or null if at root.]]>
  6318. </doc>
  6319. </method>
  6320. <method name="suffix" return="org.apache.hadoop.fs.Path"
  6321. abstract="false" native="false" synchronized="false"
  6322. static="false" final="false" visibility="public"
  6323. deprecated="not deprecated">
  6324. <param name="suffix" type="java.lang.String"/>
  6325. <doc>
  6326. <![CDATA[Adds a suffix to the final name in the path.]]>
  6327. </doc>
  6328. </method>
  6329. <method name="toString" return="java.lang.String"
  6330. abstract="false" native="false" synchronized="false"
  6331. static="false" final="false" visibility="public"
  6332. deprecated="not deprecated">
  6333. </method>
  6334. <method name="equals" return="boolean"
  6335. abstract="false" native="false" synchronized="false"
  6336. static="false" final="false" visibility="public"
  6337. deprecated="not deprecated">
  6338. <param name="o" type="java.lang.Object"/>
  6339. </method>
  6340. <method name="hashCode" return="int"
  6341. abstract="false" native="false" synchronized="false"
  6342. static="false" final="false" visibility="public"
  6343. deprecated="not deprecated">
  6344. </method>
  6345. <method name="compareTo" return="int"
  6346. abstract="false" native="false" synchronized="false"
  6347. static="false" final="false" visibility="public"
  6348. deprecated="not deprecated">
  6349. <param name="o" type="java.lang.Object"/>
  6350. </method>
  6351. <method name="depth" return="int"
  6352. abstract="false" native="false" synchronized="false"
  6353. static="false" final="false" visibility="public"
  6354. deprecated="not deprecated">
  6355. <doc>
  6356. <![CDATA[Return the number of elements in this path.]]>
  6357. </doc>
  6358. </method>
  6359. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6360. abstract="false" native="false" synchronized="false"
  6361. static="false" final="false" visibility="public"
  6362. deprecated="not deprecated">
  6363. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6364. <doc>
  6365. <![CDATA[Returns a qualified path object.]]>
  6366. </doc>
  6367. </method>
  6368. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6369. abstract="false" native="false" synchronized="false"
  6370. static="false" final="false" visibility="public"
  6371. deprecated="not deprecated">
  6372. <param name="defaultUri" type="java.net.URI"/>
  6373. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  6374. <doc>
  6375. <![CDATA[Returns a qualified path object.]]>
  6376. </doc>
  6377. </method>
  6378. <field name="SEPARATOR" type="java.lang.String"
  6379. transient="false" volatile="false"
  6380. static="true" final="true" visibility="public"
  6381. deprecated="not deprecated">
  6382. <doc>
  6383. <![CDATA[The directory separator, a slash.]]>
  6384. </doc>
  6385. </field>
  6386. <field name="SEPARATOR_CHAR" type="char"
  6387. transient="false" volatile="false"
  6388. static="true" final="true" visibility="public"
  6389. deprecated="not deprecated">
  6390. </field>
  6391. <field name="CUR_DIR" type="java.lang.String"
  6392. transient="false" volatile="false"
  6393. static="true" final="true" visibility="public"
  6394. deprecated="not deprecated">
  6395. </field>
  6396. <doc>
  6397. <![CDATA[Names a file or directory in a {@link FileSystem}.
  6398. Path strings use slash as the directory separator. A path string is
  6399. absolute if it begins with a slash.]]>
  6400. </doc>
  6401. </class>
  6402. <!-- end class org.apache.hadoop.fs.Path -->
  6403. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  6404. <interface name="PathFilter" abstract="true"
  6405. static="false" final="false" visibility="public"
  6406. deprecated="not deprecated">
  6407. <method name="accept" return="boolean"
  6408. abstract="false" native="false" synchronized="false"
  6409. static="false" final="false" visibility="public"
  6410. deprecated="not deprecated">
  6411. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6412. <doc>
  6413. <![CDATA[Tests whether or not the specified abstract pathname should be
  6414. included in a pathname list.
  6415. @param path The abstract pathname to be tested
  6416. @return <code>true</code> if and only if <code>pathname</code>
  6417. should be included]]>
  6418. </doc>
  6419. </method>
  6420. </interface>
  6421. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  6422. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  6423. <interface name="PositionedReadable" abstract="true"
  6424. static="false" final="false" visibility="public"
  6425. deprecated="not deprecated">
  6426. <method name="read" return="int"
  6427. abstract="false" native="false" synchronized="false"
  6428. static="false" final="false" visibility="public"
  6429. deprecated="not deprecated">
  6430. <param name="position" type="long"/>
  6431. <param name="buffer" type="byte[]"/>
  6432. <param name="offset" type="int"/>
  6433. <param name="length" type="int"/>
  6434. <exception name="IOException" type="java.io.IOException"/>
  6435. <doc>
  6436. <![CDATA[Read upto the specified number of bytes, from a given
  6437. position within a file, and return the number of bytes read. This does not
  6438. change the current offset of a file, and is thread-safe.]]>
  6439. </doc>
  6440. </method>
  6441. <method name="readFully"
  6442. abstract="false" native="false" synchronized="false"
  6443. static="false" final="false" visibility="public"
  6444. deprecated="not deprecated">
  6445. <param name="position" type="long"/>
  6446. <param name="buffer" type="byte[]"/>
  6447. <param name="offset" type="int"/>
  6448. <param name="length" type="int"/>
  6449. <exception name="IOException" type="java.io.IOException"/>
  6450. <doc>
  6451. <![CDATA[Read the specified number of bytes, from a given
  6452. position within a file. This does not
  6453. change the current offset of a file, and is thread-safe.]]>
  6454. </doc>
  6455. </method>
  6456. <method name="readFully"
  6457. abstract="false" native="false" synchronized="false"
  6458. static="false" final="false" visibility="public"
  6459. deprecated="not deprecated">
  6460. <param name="position" type="long"/>
  6461. <param name="buffer" type="byte[]"/>
  6462. <exception name="IOException" type="java.io.IOException"/>
  6463. <doc>
  6464. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  6465. position within a file. This does not
  6466. change the current offset of a file, and is thread-safe.]]>
  6467. </doc>
  6468. </method>
  6469. <doc>
  6470. <![CDATA[Stream that permits positional reading.]]>
  6471. </doc>
  6472. </interface>
  6473. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  6474. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  6475. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6476. abstract="false"
  6477. static="false" final="false" visibility="public"
  6478. deprecated="not deprecated">
  6479. <constructor name="RawLocalFileSystem"
  6480. static="false" final="false" visibility="public"
  6481. deprecated="not deprecated">
  6482. </constructor>
  6483. <method name="pathToFile" return="java.io.File"
  6484. abstract="false" native="false" synchronized="false"
  6485. static="false" final="false" visibility="public"
  6486. deprecated="not deprecated">
  6487. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6488. <doc>
  6489. <![CDATA[Convert a path to a File.]]>
  6490. </doc>
  6491. </method>
  6492. <method name="getUri" return="java.net.URI"
  6493. abstract="false" native="false" synchronized="false"
  6494. static="false" final="false" visibility="public"
  6495. deprecated="not deprecated">
  6496. </method>
  6497. <method name="initialize"
  6498. abstract="false" native="false" synchronized="false"
  6499. static="false" final="false" visibility="public"
  6500. deprecated="not deprecated">
  6501. <param name="uri" type="java.net.URI"/>
  6502. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6503. <exception name="IOException" type="java.io.IOException"/>
  6504. </method>
  6505. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6506. abstract="false" native="false" synchronized="false"
  6507. static="false" final="false" visibility="public"
  6508. deprecated="not deprecated">
  6509. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6510. <param name="bufferSize" type="int"/>
  6511. <exception name="IOException" type="java.io.IOException"/>
  6512. </method>
  6513. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6514. abstract="false" native="false" synchronized="false"
  6515. static="false" final="false" visibility="public"
  6516. deprecated="not deprecated">
  6517. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6518. <param name="bufferSize" type="int"/>
  6519. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6520. <exception name="IOException" type="java.io.IOException"/>
  6521. <doc>
  6522. <![CDATA[{@inheritDoc}]]>
  6523. </doc>
  6524. </method>
  6525. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6526. abstract="false" native="false" synchronized="false"
  6527. static="false" final="false" visibility="public"
  6528. deprecated="not deprecated">
  6529. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6530. <param name="overwrite" type="boolean"/>
  6531. <param name="bufferSize" type="int"/>
  6532. <param name="replication" type="short"/>
  6533. <param name="blockSize" type="long"/>
  6534. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6535. <exception name="IOException" type="java.io.IOException"/>
  6536. <doc>
  6537. <![CDATA[{@inheritDoc}]]>
  6538. </doc>
  6539. </method>
  6540. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6541. abstract="false" native="false" synchronized="false"
  6542. static="false" final="false" visibility="public"
  6543. deprecated="not deprecated">
  6544. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6545. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6546. <param name="overwrite" type="boolean"/>
  6547. <param name="bufferSize" type="int"/>
  6548. <param name="replication" type="short"/>
  6549. <param name="blockSize" type="long"/>
  6550. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6551. <exception name="IOException" type="java.io.IOException"/>
  6552. <doc>
  6553. <![CDATA[{@inheritDoc}]]>
  6554. </doc>
  6555. </method>
  6556. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  6557. abstract="false" native="false" synchronized="false"
  6558. static="false" final="false" visibility="public"
  6559. deprecated="not deprecated">
  6560. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6561. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6562. <param name="overwrite" type="boolean"/>
  6563. <param name="bufferSize" type="int"/>
  6564. <param name="replication" type="short"/>
  6565. <param name="blockSize" type="long"/>
  6566. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6567. <exception name="IOException" type="java.io.IOException"/>
  6568. <doc>
  6569. <![CDATA[{@inheritDoc}]]>
  6570. </doc>
  6571. </method>
  6572. <method name="rename" return="boolean"
  6573. abstract="false" native="false" synchronized="false"
  6574. static="false" final="false" visibility="public"
  6575. deprecated="not deprecated">
  6576. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6577. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6578. <exception name="IOException" type="java.io.IOException"/>
  6579. </method>
  6580. <method name="delete" return="boolean"
  6581. abstract="false" native="false" synchronized="false"
  6582. static="false" final="false" visibility="public"
  6583. deprecated="not deprecated">
  6584. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6585. <exception name="IOException" type="java.io.IOException"/>
  6586. </method>
  6587. <method name="delete" return="boolean"
  6588. abstract="false" native="false" synchronized="false"
  6589. static="false" final="false" visibility="public"
  6590. deprecated="not deprecated">
  6591. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6592. <param name="recursive" type="boolean"/>
  6593. <exception name="IOException" type="java.io.IOException"/>
  6594. </method>
  6595. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6596. abstract="false" native="false" synchronized="false"
  6597. static="false" final="false" visibility="public"
  6598. deprecated="not deprecated">
  6599. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6600. <exception name="IOException" type="java.io.IOException"/>
  6601. </method>
  6602. <method name="mkdirs" return="boolean"
  6603. abstract="false" native="false" synchronized="false"
  6604. static="false" final="false" visibility="public"
  6605. deprecated="not deprecated">
  6606. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6607. <exception name="IOException" type="java.io.IOException"/>
  6608. <doc>
  6609. <![CDATA[Creates the specified directory hierarchy. Does not
  6610. treat existence as an error.]]>
  6611. </doc>
  6612. </method>
  6613. <method name="mkdirs" return="boolean"
  6614. abstract="false" native="false" synchronized="false"
  6615. static="false" final="false" visibility="public"
  6616. deprecated="not deprecated">
  6617. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6618. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6619. <exception name="IOException" type="java.io.IOException"/>
  6620. <doc>
  6621. <![CDATA[{@inheritDoc}]]>
  6622. </doc>
  6623. </method>
  6624. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6625. abstract="false" native="false" synchronized="false"
  6626. static="false" final="false" visibility="public"
  6627. deprecated="not deprecated">
  6628. </method>
  6629. <method name="setWorkingDirectory"
  6630. abstract="false" native="false" synchronized="false"
  6631. static="false" final="false" visibility="public"
  6632. deprecated="not deprecated">
  6633. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6634. <doc>
  6635. <![CDATA[Set the working directory to the given directory.]]>
  6636. </doc>
  6637. </method>
  6638. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6639. abstract="false" native="false" synchronized="false"
  6640. static="false" final="false" visibility="public"
  6641. deprecated="not deprecated">
  6642. </method>
  6643. <method name="moveFromLocalFile"
  6644. abstract="false" native="false" synchronized="false"
  6645. static="false" final="false" visibility="public"
  6646. deprecated="not deprecated">
  6647. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6648. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6649. <exception name="IOException" type="java.io.IOException"/>
  6650. </method>
  6651. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6652. abstract="false" native="false" synchronized="false"
  6653. static="false" final="false" visibility="public"
  6654. deprecated="not deprecated">
  6655. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6656. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6657. <exception name="IOException" type="java.io.IOException"/>
  6658. </method>
  6659. <method name="completeLocalOutput"
  6660. abstract="false" native="false" synchronized="false"
  6661. static="false" final="false" visibility="public"
  6662. deprecated="not deprecated">
  6663. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6664. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6665. <exception name="IOException" type="java.io.IOException"/>
  6666. </method>
  6667. <method name="close"
  6668. abstract="false" native="false" synchronized="false"
  6669. static="false" final="false" visibility="public"
  6670. deprecated="not deprecated">
  6671. <exception name="IOException" type="java.io.IOException"/>
  6672. </method>
  6673. <method name="toString" return="java.lang.String"
  6674. abstract="false" native="false" synchronized="false"
  6675. static="false" final="false" visibility="public"
  6676. deprecated="not deprecated">
  6677. </method>
  6678. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6679. abstract="false" native="false" synchronized="false"
  6680. static="false" final="false" visibility="public"
  6681. deprecated="not deprecated">
  6682. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6683. <exception name="IOException" type="java.io.IOException"/>
  6684. </method>
  6685. <method name="setOwner"
  6686. abstract="false" native="false" synchronized="false"
  6687. static="false" final="false" visibility="public"
  6688. deprecated="not deprecated">
  6689. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6690. <param name="username" type="java.lang.String"/>
  6691. <param name="groupname" type="java.lang.String"/>
  6692. <exception name="IOException" type="java.io.IOException"/>
  6693. <doc>
  6694. <![CDATA[Use the command chown to set owner.]]>
  6695. </doc>
  6696. </method>
  6697. <method name="setPermission"
  6698. abstract="false" native="false" synchronized="false"
  6699. static="false" final="false" visibility="public"
  6700. deprecated="not deprecated">
  6701. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6702. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6703. <exception name="IOException" type="java.io.IOException"/>
  6704. <doc>
  6705. <![CDATA[Use the command chmod to set permission.]]>
  6706. </doc>
  6707. </method>
  6708. <doc>
  6709. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6710. </doc>
  6711. </class>
  6712. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6713. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6714. <interface name="Seekable" abstract="true"
  6715. static="false" final="false" visibility="public"
  6716. deprecated="not deprecated">
  6717. <method name="seek"
  6718. abstract="false" native="false" synchronized="false"
  6719. static="false" final="false" visibility="public"
  6720. deprecated="not deprecated">
  6721. <param name="pos" type="long"/>
  6722. <exception name="IOException" type="java.io.IOException"/>
  6723. <doc>
  6724. <![CDATA[Seek to the given offset from the start of the file.
  6725. The next read() will be from that location. Can't
  6726. seek past the end of the file.]]>
  6727. </doc>
  6728. </method>
  6729. <method name="getPos" return="long"
  6730. abstract="false" native="false" synchronized="false"
  6731. static="false" final="false" visibility="public"
  6732. deprecated="not deprecated">
  6733. <exception name="IOException" type="java.io.IOException"/>
  6734. <doc>
  6735. <![CDATA[Return the current offset from the start of the file]]>
  6736. </doc>
  6737. </method>
  6738. <method name="seekToNewSource" return="boolean"
  6739. abstract="false" native="false" synchronized="false"
  6740. static="false" final="false" visibility="public"
  6741. deprecated="not deprecated">
  6742. <param name="targetPos" type="long"/>
  6743. <exception name="IOException" type="java.io.IOException"/>
  6744. <doc>
  6745. <![CDATA[Seeks a different copy of the data. Returns true if
  6746. found a new source, false otherwise.]]>
  6747. </doc>
  6748. </method>
  6749. <doc>
  6750. <![CDATA[Stream that permits seeking.]]>
  6751. </doc>
  6752. </interface>
  6753. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6754. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6755. <interface name="Syncable" abstract="true"
  6756. static="false" final="false" visibility="public"
  6757. deprecated="not deprecated">
  6758. <method name="sync"
  6759. abstract="false" native="false" synchronized="false"
  6760. static="false" final="false" visibility="public"
  6761. deprecated="not deprecated">
  6762. <exception name="IOException" type="java.io.IOException"/>
  6763. <doc>
  6764. <![CDATA[Synchronize all buffer with the underlying devices.
  6765. @throws IOException]]>
  6766. </doc>
  6767. </method>
  6768. <doc>
  6769. <![CDATA[This interface declare the sync() operation.]]>
  6770. </doc>
  6771. </interface>
  6772. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6773. <!-- start class org.apache.hadoop.fs.Trash -->
  6774. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6775. abstract="false"
  6776. static="false" final="false" visibility="public"
  6777. deprecated="not deprecated">
  6778. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6779. static="false" final="false" visibility="public"
  6780. deprecated="not deprecated">
  6781. <exception name="IOException" type="java.io.IOException"/>
  6782. <doc>
  6783. <![CDATA[Construct a trash can accessor.
  6784. @param conf a Configuration]]>
  6785. </doc>
  6786. </constructor>
  6787. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6788. static="false" final="false" visibility="public"
  6789. deprecated="not deprecated">
  6790. <exception name="IOException" type="java.io.IOException"/>
  6791. <doc>
  6792. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6793. </doc>
  6794. </constructor>
  6795. <method name="moveToTrash" return="boolean"
  6796. abstract="false" native="false" synchronized="false"
  6797. static="false" final="false" visibility="public"
  6798. deprecated="not deprecated">
  6799. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6800. <exception name="IOException" type="java.io.IOException"/>
  6801. <doc>
  6802. <![CDATA[Move a file or directory to the current trash directory.
  6803. @return false if the item is already in the trash or trash is disabled]]>
  6804. </doc>
  6805. </method>
  6806. <method name="checkpoint"
  6807. abstract="false" native="false" synchronized="false"
  6808. static="false" final="false" visibility="public"
  6809. deprecated="not deprecated">
  6810. <exception name="IOException" type="java.io.IOException"/>
  6811. <doc>
  6812. <![CDATA[Create a trash checkpoint.]]>
  6813. </doc>
  6814. </method>
  6815. <method name="expunge"
  6816. abstract="false" native="false" synchronized="false"
  6817. static="false" final="false" visibility="public"
  6818. deprecated="not deprecated">
  6819. <exception name="IOException" type="java.io.IOException"/>
  6820. <doc>
  6821. <![CDATA[Delete old checkpoints.]]>
  6822. </doc>
  6823. </method>
  6824. <method name="getEmptier" return="java.lang.Runnable"
  6825. abstract="false" native="false" synchronized="false"
  6826. static="false" final="false" visibility="public"
  6827. deprecated="not deprecated">
  6828. <exception name="IOException" type="java.io.IOException"/>
  6829. <doc>
  6830. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6831. users, intended to be run by the superuser. Only one checkpoint is kept
  6832. at a time.]]>
  6833. </doc>
  6834. </method>
  6835. <method name="main"
  6836. abstract="false" native="false" synchronized="false"
  6837. static="true" final="false" visibility="public"
  6838. deprecated="not deprecated">
  6839. <param name="args" type="java.lang.String[]"/>
  6840. <exception name="Exception" type="java.lang.Exception"/>
  6841. <doc>
  6842. <![CDATA[Run an emptier.]]>
  6843. </doc>
  6844. </method>
  6845. <doc>
  6846. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6847. directory, a subdirectory of their home directory named ".Trash". Files are
  6848. initially moved to a <i>current</i> sub-directory of the trash directory.
  6849. Within that sub-directory their original path is preserved. Periodically
  6850. one may checkpoint the current trash and remove older checkpoints. (This
  6851. design permits trash management without enumeration of the full trash
  6852. content, without date support in the filesystem, and without clock
  6853. synchronization.)]]>
  6854. </doc>
  6855. </class>
  6856. <!-- end class org.apache.hadoop.fs.Trash -->
  6857. </package>
  6858. <package name="org.apache.hadoop.fs.ftp">
  6859. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  6860. <class name="FTPException" extends="java.lang.RuntimeException"
  6861. abstract="false"
  6862. static="false" final="false" visibility="public"
  6863. deprecated="not deprecated">
  6864. <constructor name="FTPException" type="java.lang.String"
  6865. static="false" final="false" visibility="public"
  6866. deprecated="not deprecated">
  6867. </constructor>
  6868. <constructor name="FTPException" type="java.lang.Throwable"
  6869. static="false" final="false" visibility="public"
  6870. deprecated="not deprecated">
  6871. </constructor>
  6872. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  6873. static="false" final="false" visibility="public"
  6874. deprecated="not deprecated">
  6875. </constructor>
  6876. <doc>
  6877. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  6878. </doc>
  6879. </class>
  6880. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  6881. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6882. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6883. abstract="false"
  6884. static="false" final="false" visibility="public"
  6885. deprecated="not deprecated">
  6886. <constructor name="FTPFileSystem"
  6887. static="false" final="false" visibility="public"
  6888. deprecated="not deprecated">
  6889. </constructor>
  6890. <method name="initialize"
  6891. abstract="false" native="false" synchronized="false"
  6892. static="false" final="false" visibility="public"
  6893. deprecated="not deprecated">
  6894. <param name="uri" type="java.net.URI"/>
  6895. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6896. <exception name="IOException" type="java.io.IOException"/>
  6897. </method>
  6898. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6899. abstract="false" native="false" synchronized="false"
  6900. static="false" final="false" visibility="public"
  6901. deprecated="not deprecated">
  6902. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6903. <param name="bufferSize" type="int"/>
  6904. <exception name="IOException" type="java.io.IOException"/>
  6905. </method>
  6906. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6907. abstract="false" native="false" synchronized="false"
  6908. static="false" final="false" visibility="public"
  6909. deprecated="not deprecated">
  6910. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6911. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6912. <param name="overwrite" type="boolean"/>
  6913. <param name="bufferSize" type="int"/>
  6914. <param name="replication" type="short"/>
  6915. <param name="blockSize" type="long"/>
  6916. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6917. <exception name="IOException" type="java.io.IOException"/>
  6918. <doc>
  6919. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  6920. this class or else the invocation will block.]]>
  6921. </doc>
  6922. </method>
  6923. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6924. abstract="false" native="false" synchronized="false"
  6925. static="false" final="false" visibility="public"
  6926. deprecated="not deprecated">
  6927. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6928. <param name="bufferSize" type="int"/>
  6929. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6930. <exception name="IOException" type="java.io.IOException"/>
  6931. <doc>
  6932. <![CDATA[This optional operation is not yet supported.]]>
  6933. </doc>
  6934. </method>
  6935. <method name="delete" return="boolean"
  6936. abstract="false" native="false" synchronized="false"
  6937. static="false" final="false" visibility="public"
  6938. deprecated="Use delete(Path, boolean) instead">
  6939. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6940. <exception name="IOException" type="java.io.IOException"/>
  6941. <doc>
  6942. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  6943. </doc>
  6944. </method>
  6945. <method name="delete" return="boolean"
  6946. abstract="false" native="false" synchronized="false"
  6947. static="false" final="false" visibility="public"
  6948. deprecated="not deprecated">
  6949. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6950. <param name="recursive" type="boolean"/>
  6951. <exception name="IOException" type="java.io.IOException"/>
  6952. </method>
  6953. <method name="getUri" return="java.net.URI"
  6954. abstract="false" native="false" synchronized="false"
  6955. static="false" final="false" visibility="public"
  6956. deprecated="not deprecated">
  6957. </method>
  6958. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6959. abstract="false" native="false" synchronized="false"
  6960. static="false" final="false" visibility="public"
  6961. deprecated="not deprecated">
  6962. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6963. <exception name="IOException" type="java.io.IOException"/>
  6964. </method>
  6965. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6966. abstract="false" native="false" synchronized="false"
  6967. static="false" final="false" visibility="public"
  6968. deprecated="not deprecated">
  6969. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6970. <exception name="IOException" type="java.io.IOException"/>
  6971. </method>
  6972. <method name="mkdirs" return="boolean"
  6973. abstract="false" native="false" synchronized="false"
  6974. static="false" final="false" visibility="public"
  6975. deprecated="not deprecated">
  6976. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6977. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6978. <exception name="IOException" type="java.io.IOException"/>
  6979. </method>
  6980. <method name="rename" return="boolean"
  6981. abstract="false" native="false" synchronized="false"
  6982. static="false" final="false" visibility="public"
  6983. deprecated="not deprecated">
  6984. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6985. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6986. <exception name="IOException" type="java.io.IOException"/>
  6987. </method>
  6988. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6989. abstract="false" native="false" synchronized="false"
  6990. static="false" final="false" visibility="public"
  6991. deprecated="not deprecated">
  6992. </method>
  6993. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6994. abstract="false" native="false" synchronized="false"
  6995. static="false" final="false" visibility="public"
  6996. deprecated="not deprecated">
  6997. </method>
  6998. <method name="setWorkingDirectory"
  6999. abstract="false" native="false" synchronized="false"
  7000. static="false" final="false" visibility="public"
  7001. deprecated="not deprecated">
  7002. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7003. </method>
  7004. <field name="LOG" type="org.apache.commons.logging.Log"
  7005. transient="false" volatile="false"
  7006. static="true" final="true" visibility="public"
  7007. deprecated="not deprecated">
  7008. </field>
  7009. <field name="DEFAULT_BUFFER_SIZE" type="int"
  7010. transient="false" volatile="false"
  7011. static="true" final="true" visibility="public"
  7012. deprecated="not deprecated">
  7013. </field>
  7014. <field name="DEFAULT_BLOCK_SIZE" type="int"
  7015. transient="false" volatile="false"
  7016. static="true" final="true" visibility="public"
  7017. deprecated="not deprecated">
  7018. </field>
  7019. <doc>
  7020. <![CDATA[<p>
  7021. A {@link FileSystem} backed by an FTP client provided by <a
  7022. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  7023. </p>]]>
  7024. </doc>
  7025. </class>
  7026. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  7027. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7028. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  7029. abstract="false"
  7030. static="false" final="false" visibility="public"
  7031. deprecated="not deprecated">
  7032. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  7033. static="false" final="false" visibility="public"
  7034. deprecated="not deprecated">
  7035. </constructor>
  7036. <method name="getPos" return="long"
  7037. abstract="false" native="false" synchronized="false"
  7038. static="false" final="false" visibility="public"
  7039. deprecated="not deprecated">
  7040. <exception name="IOException" type="java.io.IOException"/>
  7041. </method>
  7042. <method name="seek"
  7043. abstract="false" native="false" synchronized="false"
  7044. static="false" final="false" visibility="public"
  7045. deprecated="not deprecated">
  7046. <param name="pos" type="long"/>
  7047. <exception name="IOException" type="java.io.IOException"/>
  7048. </method>
  7049. <method name="seekToNewSource" return="boolean"
  7050. abstract="false" native="false" synchronized="false"
  7051. static="false" final="false" visibility="public"
  7052. deprecated="not deprecated">
  7053. <param name="targetPos" type="long"/>
  7054. <exception name="IOException" type="java.io.IOException"/>
  7055. </method>
  7056. <method name="read" return="int"
  7057. abstract="false" native="false" synchronized="true"
  7058. static="false" final="false" visibility="public"
  7059. deprecated="not deprecated">
  7060. <exception name="IOException" type="java.io.IOException"/>
  7061. </method>
  7062. <method name="read" return="int"
  7063. abstract="false" native="false" synchronized="true"
  7064. static="false" final="false" visibility="public"
  7065. deprecated="not deprecated">
  7066. <param name="buf" type="byte[]"/>
  7067. <param name="off" type="int"/>
  7068. <param name="len" type="int"/>
  7069. <exception name="IOException" type="java.io.IOException"/>
  7070. </method>
  7071. <method name="close"
  7072. abstract="false" native="false" synchronized="true"
  7073. static="false" final="false" visibility="public"
  7074. deprecated="not deprecated">
  7075. <exception name="IOException" type="java.io.IOException"/>
  7076. </method>
  7077. <method name="markSupported" return="boolean"
  7078. abstract="false" native="false" synchronized="false"
  7079. static="false" final="false" visibility="public"
  7080. deprecated="not deprecated">
  7081. </method>
  7082. <method name="mark"
  7083. abstract="false" native="false" synchronized="false"
  7084. static="false" final="false" visibility="public"
  7085. deprecated="not deprecated">
  7086. <param name="readLimit" type="int"/>
  7087. </method>
  7088. <method name="reset"
  7089. abstract="false" native="false" synchronized="false"
  7090. static="false" final="false" visibility="public"
  7091. deprecated="not deprecated">
  7092. <exception name="IOException" type="java.io.IOException"/>
  7093. </method>
  7094. </class>
  7095. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7096. </package>
  7097. <package name="org.apache.hadoop.fs.kfs">
  7098. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7099. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7100. abstract="false"
  7101. static="false" final="false" visibility="public"
  7102. deprecated="not deprecated">
  7103. <constructor name="KosmosFileSystem"
  7104. static="false" final="false" visibility="public"
  7105. deprecated="not deprecated">
  7106. </constructor>
  7107. <method name="getUri" return="java.net.URI"
  7108. abstract="false" native="false" synchronized="false"
  7109. static="false" final="false" visibility="public"
  7110. deprecated="not deprecated">
  7111. </method>
  7112. <method name="initialize"
  7113. abstract="false" native="false" synchronized="false"
  7114. static="false" final="false" visibility="public"
  7115. deprecated="not deprecated">
  7116. <param name="uri" type="java.net.URI"/>
  7117. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7118. <exception name="IOException" type="java.io.IOException"/>
  7119. </method>
  7120. <method name="getName" return="java.lang.String"
  7121. abstract="false" native="false" synchronized="false"
  7122. static="false" final="false" visibility="public"
  7123. deprecated="not deprecated">
  7124. </method>
  7125. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7126. abstract="false" native="false" synchronized="false"
  7127. static="false" final="false" visibility="public"
  7128. deprecated="not deprecated">
  7129. </method>
  7130. <method name="setWorkingDirectory"
  7131. abstract="false" native="false" synchronized="false"
  7132. static="false" final="false" visibility="public"
  7133. deprecated="not deprecated">
  7134. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7135. </method>
  7136. <method name="mkdirs" return="boolean"
  7137. abstract="false" native="false" synchronized="false"
  7138. static="false" final="false" visibility="public"
  7139. deprecated="not deprecated">
  7140. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7141. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7142. <exception name="IOException" type="java.io.IOException"/>
  7143. </method>
  7144. <method name="isDirectory" return="boolean"
  7145. abstract="false" native="false" synchronized="false"
  7146. static="false" final="false" visibility="public"
  7147. deprecated="not deprecated">
  7148. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7149. <exception name="IOException" type="java.io.IOException"/>
  7150. </method>
  7151. <method name="isFile" return="boolean"
  7152. abstract="false" native="false" synchronized="false"
  7153. static="false" final="false" visibility="public"
  7154. deprecated="not deprecated">
  7155. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7156. <exception name="IOException" type="java.io.IOException"/>
  7157. </method>
  7158. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7159. abstract="false" native="false" synchronized="false"
  7160. static="false" final="false" visibility="public"
  7161. deprecated="not deprecated">
  7162. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7163. <exception name="IOException" type="java.io.IOException"/>
  7164. </method>
  7165. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7166. abstract="false" native="false" synchronized="false"
  7167. static="false" final="false" visibility="public"
  7168. deprecated="not deprecated">
  7169. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7170. <exception name="IOException" type="java.io.IOException"/>
  7171. </method>
  7172. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7173. abstract="false" native="false" synchronized="false"
  7174. static="false" final="false" visibility="public"
  7175. deprecated="not deprecated">
  7176. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7177. <param name="bufferSize" type="int"/>
  7178. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7179. <exception name="IOException" type="java.io.IOException"/>
  7180. <doc>
  7181. <![CDATA[This optional operation is not yet supported.]]>
  7182. </doc>
  7183. </method>
  7184. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7185. abstract="false" native="false" synchronized="false"
  7186. static="false" final="false" visibility="public"
  7187. deprecated="not deprecated">
  7188. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7189. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7190. <param name="overwrite" type="boolean"/>
  7191. <param name="bufferSize" type="int"/>
  7192. <param name="replication" type="short"/>
  7193. <param name="blockSize" type="long"/>
  7194. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7195. <exception name="IOException" type="java.io.IOException"/>
  7196. </method>
  7197. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7198. abstract="false" native="false" synchronized="false"
  7199. static="false" final="false" visibility="public"
  7200. deprecated="not deprecated">
  7201. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7202. <param name="bufferSize" type="int"/>
  7203. <exception name="IOException" type="java.io.IOException"/>
  7204. </method>
  7205. <method name="rename" return="boolean"
  7206. abstract="false" native="false" synchronized="false"
  7207. static="false" final="false" visibility="public"
  7208. deprecated="not deprecated">
  7209. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7210. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7211. <exception name="IOException" type="java.io.IOException"/>
  7212. </method>
  7213. <method name="delete" return="boolean"
  7214. abstract="false" native="false" synchronized="false"
  7215. static="false" final="false" visibility="public"
  7216. deprecated="not deprecated">
  7217. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7218. <param name="recursive" type="boolean"/>
  7219. <exception name="IOException" type="java.io.IOException"/>
  7220. </method>
  7221. <method name="delete" return="boolean"
  7222. abstract="false" native="false" synchronized="false"
  7223. static="false" final="false" visibility="public"
  7224. deprecated="not deprecated">
  7225. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7226. <exception name="IOException" type="java.io.IOException"/>
  7227. </method>
  7228. <method name="getLength" return="long"
  7229. abstract="false" native="false" synchronized="false"
  7230. static="false" final="false" visibility="public"
  7231. deprecated="not deprecated">
  7232. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7233. <exception name="IOException" type="java.io.IOException"/>
  7234. </method>
  7235. <method name="getReplication" return="short"
  7236. abstract="false" native="false" synchronized="false"
  7237. static="false" final="false" visibility="public"
  7238. deprecated="not deprecated">
  7239. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7240. <exception name="IOException" type="java.io.IOException"/>
  7241. </method>
  7242. <method name="getDefaultReplication" return="short"
  7243. abstract="false" native="false" synchronized="false"
  7244. static="false" final="false" visibility="public"
  7245. deprecated="not deprecated">
  7246. </method>
  7247. <method name="setReplication" return="boolean"
  7248. abstract="false" native="false" synchronized="false"
  7249. static="false" final="false" visibility="public"
  7250. deprecated="not deprecated">
  7251. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7252. <param name="replication" type="short"/>
  7253. <exception name="IOException" type="java.io.IOException"/>
  7254. </method>
  7255. <method name="getDefaultBlockSize" return="long"
  7256. abstract="false" native="false" synchronized="false"
  7257. static="false" final="false" visibility="public"
  7258. deprecated="not deprecated">
  7259. </method>
  7260. <method name="lock"
  7261. abstract="false" native="false" synchronized="false"
  7262. static="false" final="false" visibility="public"
  7263. deprecated="not deprecated">
  7264. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7265. <param name="shared" type="boolean"/>
  7266. <exception name="IOException" type="java.io.IOException"/>
  7267. </method>
  7268. <method name="release"
  7269. abstract="false" native="false" synchronized="false"
  7270. static="false" final="false" visibility="public"
  7271. deprecated="not deprecated">
  7272. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7273. <exception name="IOException" type="java.io.IOException"/>
  7274. </method>
  7275. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7276. abstract="false" native="false" synchronized="false"
  7277. static="false" final="false" visibility="public"
  7278. deprecated="not deprecated">
  7279. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7280. <param name="start" type="long"/>
  7281. <param name="len" type="long"/>
  7282. <exception name="IOException" type="java.io.IOException"/>
  7283. <doc>
  7284. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  7285. locations of the various chunks of the file file from KFS.]]>
  7286. </doc>
  7287. </method>
  7288. <method name="copyFromLocalFile"
  7289. abstract="false" native="false" synchronized="false"
  7290. static="false" final="false" visibility="public"
  7291. deprecated="not deprecated">
  7292. <param name="delSrc" type="boolean"/>
  7293. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7294. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7295. <exception name="IOException" type="java.io.IOException"/>
  7296. </method>
  7297. <method name="copyToLocalFile"
  7298. abstract="false" native="false" synchronized="false"
  7299. static="false" final="false" visibility="public"
  7300. deprecated="not deprecated">
  7301. <param name="delSrc" type="boolean"/>
  7302. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7303. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7304. <exception name="IOException" type="java.io.IOException"/>
  7305. </method>
  7306. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7307. abstract="false" native="false" synchronized="false"
  7308. static="false" final="false" visibility="public"
  7309. deprecated="not deprecated">
  7310. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7311. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7312. <exception name="IOException" type="java.io.IOException"/>
  7313. </method>
  7314. <method name="completeLocalOutput"
  7315. abstract="false" native="false" synchronized="false"
  7316. static="false" final="false" visibility="public"
  7317. deprecated="not deprecated">
  7318. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7319. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7320. <exception name="IOException" type="java.io.IOException"/>
  7321. </method>
  7322. <doc>
  7323. <![CDATA[A FileSystem backed by KFS.]]>
  7324. </doc>
  7325. </class>
  7326. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7327. </package>
  7328. <package name="org.apache.hadoop.fs.permission">
  7329. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  7330. <class name="AccessControlException" extends="java.io.IOException"
  7331. abstract="false"
  7332. static="false" final="false" visibility="public"
  7333. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  7334. instead.">
  7335. <constructor name="AccessControlException"
  7336. static="false" final="false" visibility="public"
  7337. deprecated="not deprecated">
  7338. <doc>
  7339. <![CDATA[Default constructor is needed for unwrapping from
  7340. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  7341. </doc>
  7342. </constructor>
  7343. <constructor name="AccessControlException" type="java.lang.String"
  7344. static="false" final="false" visibility="public"
  7345. deprecated="not deprecated">
  7346. <doc>
  7347. <![CDATA[Constructs an {@link AccessControlException}
  7348. with the specified detail message.
  7349. @param s the detail message.]]>
  7350. </doc>
  7351. </constructor>
  7352. <constructor name="AccessControlException" type="java.lang.Throwable"
  7353. static="false" final="false" visibility="public"
  7354. deprecated="not deprecated">
  7355. <doc>
  7356. <![CDATA[Constructs a new exception with the specified cause and a detail
  7357. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  7358. typically contains the class and detail message of <tt>cause</tt>).
  7359. @param cause the cause (which is saved for later retrieval by the
  7360. {@link #getCause()} method). (A <tt>null</tt> value is
  7361. permitted, and indicates that the cause is nonexistent or
  7362. unknown.)]]>
  7363. </doc>
  7364. </constructor>
  7365. <doc>
  7366. <![CDATA[An exception class for access control related issues.
  7367. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  7368. instead.]]>
  7369. </doc>
  7370. </class>
  7371. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  7372. <!-- start class org.apache.hadoop.fs.permission.ChmodParser -->
  7373. <class name="ChmodParser" extends="org.apache.hadoop.fs.permission.PermissionParser"
  7374. abstract="false"
  7375. static="false" final="false" visibility="public"
  7376. deprecated="not deprecated">
  7377. <constructor name="ChmodParser" type="java.lang.String"
  7378. static="false" final="false" visibility="public"
  7379. deprecated="not deprecated">
  7380. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  7381. </constructor>
  7382. <method name="applyNewPermission" return="short"
  7383. abstract="false" native="false" synchronized="false"
  7384. static="false" final="false" visibility="public"
  7385. deprecated="not deprecated">
  7386. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7387. <doc>
  7388. <![CDATA[Apply permission against specified file and determine what the
  7389. new mode would be
  7390. @param file File against which to apply mode
  7391. @return File's new mode if applied.]]>
  7392. </doc>
  7393. </method>
  7394. <doc>
  7395. <![CDATA[Parse a permission mode passed in from a chmod command and apply that
  7396. mode against an existing file.]]>
  7397. </doc>
  7398. </class>
  7399. <!-- end class org.apache.hadoop.fs.permission.ChmodParser -->
  7400. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  7401. <class name="FsAction" extends="java.lang.Enum"
  7402. abstract="false"
  7403. static="false" final="true" visibility="public"
  7404. deprecated="not deprecated">
  7405. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  7406. abstract="false" native="false" synchronized="false"
  7407. static="true" final="false" visibility="public"
  7408. deprecated="not deprecated">
  7409. </method>
  7410. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  7411. abstract="false" native="false" synchronized="false"
  7412. static="true" final="false" visibility="public"
  7413. deprecated="not deprecated">
  7414. <param name="name" type="java.lang.String"/>
  7415. </method>
  7416. <method name="implies" return="boolean"
  7417. abstract="false" native="false" synchronized="false"
  7418. static="false" final="false" visibility="public"
  7419. deprecated="not deprecated">
  7420. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7421. <doc>
  7422. <![CDATA[Return true if this action implies that action.
  7423. @param that]]>
  7424. </doc>
  7425. </method>
  7426. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  7427. abstract="false" native="false" synchronized="false"
  7428. static="false" final="false" visibility="public"
  7429. deprecated="not deprecated">
  7430. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7431. <doc>
  7432. <![CDATA[AND operation.]]>
  7433. </doc>
  7434. </method>
  7435. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  7436. abstract="false" native="false" synchronized="false"
  7437. static="false" final="false" visibility="public"
  7438. deprecated="not deprecated">
  7439. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7440. <doc>
  7441. <![CDATA[OR operation.]]>
  7442. </doc>
  7443. </method>
  7444. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  7445. abstract="false" native="false" synchronized="false"
  7446. static="false" final="false" visibility="public"
  7447. deprecated="not deprecated">
  7448. <doc>
  7449. <![CDATA[NOT operation.]]>
  7450. </doc>
  7451. </method>
  7452. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  7453. transient="false" volatile="false"
  7454. static="true" final="true" visibility="public"
  7455. deprecated="not deprecated">
  7456. </field>
  7457. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7458. transient="false" volatile="false"
  7459. static="true" final="true" visibility="public"
  7460. deprecated="not deprecated">
  7461. </field>
  7462. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7463. transient="false" volatile="false"
  7464. static="true" final="true" visibility="public"
  7465. deprecated="not deprecated">
  7466. </field>
  7467. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7468. transient="false" volatile="false"
  7469. static="true" final="true" visibility="public"
  7470. deprecated="not deprecated">
  7471. </field>
  7472. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  7473. transient="false" volatile="false"
  7474. static="true" final="true" visibility="public"
  7475. deprecated="not deprecated">
  7476. </field>
  7477. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7478. transient="false" volatile="false"
  7479. static="true" final="true" visibility="public"
  7480. deprecated="not deprecated">
  7481. </field>
  7482. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7483. transient="false" volatile="false"
  7484. static="true" final="true" visibility="public"
  7485. deprecated="not deprecated">
  7486. </field>
  7487. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  7488. transient="false" volatile="false"
  7489. static="true" final="true" visibility="public"
  7490. deprecated="not deprecated">
  7491. </field>
  7492. <field name="SYMBOL" type="java.lang.String"
  7493. transient="false" volatile="false"
  7494. static="false" final="true" visibility="public"
  7495. deprecated="not deprecated">
  7496. <doc>
  7497. <![CDATA[Symbolic representation]]>
  7498. </doc>
  7499. </field>
  7500. <doc>
  7501. <![CDATA[File system actions, e.g. read, write, etc.]]>
  7502. </doc>
  7503. </class>
  7504. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  7505. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  7506. <class name="FsPermission" extends="java.lang.Object"
  7507. abstract="false"
  7508. static="false" final="false" visibility="public"
  7509. deprecated="not deprecated">
  7510. <implements name="org.apache.hadoop.io.Writable"/>
  7511. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  7512. static="false" final="false" visibility="public"
  7513. deprecated="not deprecated">
  7514. <doc>
  7515. <![CDATA[Construct by the given {@link FsAction}.
  7516. @param u user action
  7517. @param g group action
  7518. @param o other action]]>
  7519. </doc>
  7520. </constructor>
  7521. <constructor name="FsPermission" type="short"
  7522. static="false" final="false" visibility="public"
  7523. deprecated="not deprecated">
  7524. <doc>
  7525. <![CDATA[Construct by the given mode.
  7526. @param mode
  7527. @see #toShort()]]>
  7528. </doc>
  7529. </constructor>
  7530. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  7531. static="false" final="false" visibility="public"
  7532. deprecated="not deprecated">
  7533. <doc>
  7534. <![CDATA[Copy constructor
  7535. @param other other permission]]>
  7536. </doc>
  7537. </constructor>
  7538. <constructor name="FsPermission" type="java.lang.String"
  7539. static="false" final="false" visibility="public"
  7540. deprecated="not deprecated">
  7541. <doc>
  7542. <![CDATA[Construct by given mode, either in octal or symbolic format.
  7543. @param mode mode as a string, either in octal or symbolic format
  7544. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  7545. </doc>
  7546. </constructor>
  7547. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  7548. abstract="false" native="false" synchronized="false"
  7549. static="true" final="false" visibility="public"
  7550. deprecated="not deprecated">
  7551. <param name="permission" type="short"/>
  7552. <doc>
  7553. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7554. </doc>
  7555. </method>
  7556. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7557. abstract="false" native="false" synchronized="false"
  7558. static="false" final="false" visibility="public"
  7559. deprecated="not deprecated">
  7560. <doc>
  7561. <![CDATA[Return user {@link FsAction}.]]>
  7562. </doc>
  7563. </method>
  7564. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7565. abstract="false" native="false" synchronized="false"
  7566. static="false" final="false" visibility="public"
  7567. deprecated="not deprecated">
  7568. <doc>
  7569. <![CDATA[Return group {@link FsAction}.]]>
  7570. </doc>
  7571. </method>
  7572. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7573. abstract="false" native="false" synchronized="false"
  7574. static="false" final="false" visibility="public"
  7575. deprecated="not deprecated">
  7576. <doc>
  7577. <![CDATA[Return other {@link FsAction}.]]>
  7578. </doc>
  7579. </method>
  7580. <method name="fromShort"
  7581. abstract="false" native="false" synchronized="false"
  7582. static="false" final="false" visibility="public"
  7583. deprecated="not deprecated">
  7584. <param name="n" type="short"/>
  7585. </method>
  7586. <method name="write"
  7587. abstract="false" native="false" synchronized="false"
  7588. static="false" final="false" visibility="public"
  7589. deprecated="not deprecated">
  7590. <param name="out" type="java.io.DataOutput"/>
  7591. <exception name="IOException" type="java.io.IOException"/>
  7592. <doc>
  7593. <![CDATA[{@inheritDoc}]]>
  7594. </doc>
  7595. </method>
  7596. <method name="readFields"
  7597. abstract="false" native="false" synchronized="false"
  7598. static="false" final="false" visibility="public"
  7599. deprecated="not deprecated">
  7600. <param name="in" type="java.io.DataInput"/>
  7601. <exception name="IOException" type="java.io.IOException"/>
  7602. <doc>
  7603. <![CDATA[{@inheritDoc}]]>
  7604. </doc>
  7605. </method>
  7606. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7607. abstract="false" native="false" synchronized="false"
  7608. static="true" final="false" visibility="public"
  7609. deprecated="not deprecated">
  7610. <param name="in" type="java.io.DataInput"/>
  7611. <exception name="IOException" type="java.io.IOException"/>
  7612. <doc>
  7613. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7614. </doc>
  7615. </method>
  7616. <method name="toShort" return="short"
  7617. abstract="false" native="false" synchronized="false"
  7618. static="false" final="false" visibility="public"
  7619. deprecated="not deprecated">
  7620. <doc>
  7621. <![CDATA[Encode the object to a short.]]>
  7622. </doc>
  7623. </method>
  7624. <method name="equals" return="boolean"
  7625. abstract="false" native="false" synchronized="false"
  7626. static="false" final="false" visibility="public"
  7627. deprecated="not deprecated">
  7628. <param name="obj" type="java.lang.Object"/>
  7629. <doc>
  7630. <![CDATA[{@inheritDoc}]]>
  7631. </doc>
  7632. </method>
  7633. <method name="hashCode" return="int"
  7634. abstract="false" native="false" synchronized="false"
  7635. static="false" final="false" visibility="public"
  7636. deprecated="not deprecated">
  7637. <doc>
  7638. <![CDATA[{@inheritDoc}]]>
  7639. </doc>
  7640. </method>
  7641. <method name="toString" return="java.lang.String"
  7642. abstract="false" native="false" synchronized="false"
  7643. static="false" final="false" visibility="public"
  7644. deprecated="not deprecated">
  7645. <doc>
  7646. <![CDATA[{@inheritDoc}]]>
  7647. </doc>
  7648. </method>
  7649. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7650. abstract="false" native="false" synchronized="false"
  7651. static="false" final="false" visibility="public"
  7652. deprecated="not deprecated">
  7653. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7654. <doc>
  7655. <![CDATA[Apply a umask to this permission and return a new one]]>
  7656. </doc>
  7657. </method>
  7658. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7659. abstract="false" native="false" synchronized="false"
  7660. static="true" final="false" visibility="public"
  7661. deprecated="not deprecated">
  7662. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7663. <doc>
  7664. <![CDATA[Get the user file creation mask (umask)
  7665. {@code UMASK_LABEL} config param has umask value that is either symbolic
  7666. or octal.
  7667. Symbolic umask is applied relative to file mode creation mask;
  7668. the permission op characters '+' clears the corresponding bit in the mask,
  7669. '-' sets bits in the mask.
  7670. Octal umask, the specified bits are set in the file mode creation mask.
  7671. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  7672. </doc>
  7673. </method>
  7674. <method name="setUMask"
  7675. abstract="false" native="false" synchronized="false"
  7676. static="true" final="false" visibility="public"
  7677. deprecated="not deprecated">
  7678. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7679. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7680. <doc>
  7681. <![CDATA[Set the user file creation mask (umask)]]>
  7682. </doc>
  7683. </method>
  7684. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7685. abstract="false" native="false" synchronized="false"
  7686. static="true" final="false" visibility="public"
  7687. deprecated="not deprecated">
  7688. <doc>
  7689. <![CDATA[Get the default permission.]]>
  7690. </doc>
  7691. </method>
  7692. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7693. abstract="false" native="false" synchronized="false"
  7694. static="true" final="false" visibility="public"
  7695. deprecated="not deprecated">
  7696. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7697. <doc>
  7698. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7699. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7700. </doc>
  7701. </method>
  7702. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  7703. transient="false" volatile="false"
  7704. static="true" final="true" visibility="public"
  7705. deprecated="not deprecated">
  7706. <doc>
  7707. <![CDATA[umask property label]]>
  7708. </doc>
  7709. </field>
  7710. <field name="UMASK_LABEL" type="java.lang.String"
  7711. transient="false" volatile="false"
  7712. static="true" final="true" visibility="public"
  7713. deprecated="not deprecated">
  7714. </field>
  7715. <field name="DEFAULT_UMASK" type="int"
  7716. transient="false" volatile="false"
  7717. static="true" final="true" visibility="public"
  7718. deprecated="not deprecated">
  7719. </field>
  7720. <doc>
  7721. <![CDATA[A class for file/directory permissions.]]>
  7722. </doc>
  7723. </class>
  7724. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7725. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7726. <class name="PermissionStatus" extends="java.lang.Object"
  7727. abstract="false"
  7728. static="false" final="false" visibility="public"
  7729. deprecated="not deprecated">
  7730. <implements name="org.apache.hadoop.io.Writable"/>
  7731. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7732. static="false" final="false" visibility="public"
  7733. deprecated="not deprecated">
  7734. <doc>
  7735. <![CDATA[Constructor]]>
  7736. </doc>
  7737. </constructor>
  7738. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7739. abstract="false" native="false" synchronized="false"
  7740. static="true" final="false" visibility="public"
  7741. deprecated="not deprecated">
  7742. <param name="user" type="java.lang.String"/>
  7743. <param name="group" type="java.lang.String"/>
  7744. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7745. <doc>
  7746. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7747. </doc>
  7748. </method>
  7749. <method name="getUserName" return="java.lang.String"
  7750. abstract="false" native="false" synchronized="false"
  7751. static="false" final="false" visibility="public"
  7752. deprecated="not deprecated">
  7753. <doc>
  7754. <![CDATA[Return user name]]>
  7755. </doc>
  7756. </method>
  7757. <method name="getGroupName" return="java.lang.String"
  7758. abstract="false" native="false" synchronized="false"
  7759. static="false" final="false" visibility="public"
  7760. deprecated="not deprecated">
  7761. <doc>
  7762. <![CDATA[Return group name]]>
  7763. </doc>
  7764. </method>
  7765. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7766. abstract="false" native="false" synchronized="false"
  7767. static="false" final="false" visibility="public"
  7768. deprecated="not deprecated">
  7769. <doc>
  7770. <![CDATA[Return permission]]>
  7771. </doc>
  7772. </method>
  7773. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7774. abstract="false" native="false" synchronized="false"
  7775. static="false" final="false" visibility="public"
  7776. deprecated="not deprecated">
  7777. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7778. <doc>
  7779. <![CDATA[Apply umask.
  7780. @see FsPermission#applyUMask(FsPermission)]]>
  7781. </doc>
  7782. </method>
  7783. <method name="readFields"
  7784. abstract="false" native="false" synchronized="false"
  7785. static="false" final="false" visibility="public"
  7786. deprecated="not deprecated">
  7787. <param name="in" type="java.io.DataInput"/>
  7788. <exception name="IOException" type="java.io.IOException"/>
  7789. <doc>
  7790. <![CDATA[{@inheritDoc}]]>
  7791. </doc>
  7792. </method>
  7793. <method name="write"
  7794. abstract="false" native="false" synchronized="false"
  7795. static="false" final="false" visibility="public"
  7796. deprecated="not deprecated">
  7797. <param name="out" type="java.io.DataOutput"/>
  7798. <exception name="IOException" type="java.io.IOException"/>
  7799. <doc>
  7800. <![CDATA[{@inheritDoc}]]>
  7801. </doc>
  7802. </method>
  7803. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7804. abstract="false" native="false" synchronized="false"
  7805. static="true" final="false" visibility="public"
  7806. deprecated="not deprecated">
  7807. <param name="in" type="java.io.DataInput"/>
  7808. <exception name="IOException" type="java.io.IOException"/>
  7809. <doc>
  7810. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7811. </doc>
  7812. </method>
  7813. <method name="write"
  7814. abstract="false" native="false" synchronized="false"
  7815. static="true" final="false" visibility="public"
  7816. deprecated="not deprecated">
  7817. <param name="out" type="java.io.DataOutput"/>
  7818. <param name="username" type="java.lang.String"/>
  7819. <param name="groupname" type="java.lang.String"/>
  7820. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7821. <exception name="IOException" type="java.io.IOException"/>
  7822. <doc>
  7823. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7824. </doc>
  7825. </method>
  7826. <method name="toString" return="java.lang.String"
  7827. abstract="false" native="false" synchronized="false"
  7828. static="false" final="false" visibility="public"
  7829. deprecated="not deprecated">
  7830. <doc>
  7831. <![CDATA[{@inheritDoc}]]>
  7832. </doc>
  7833. </method>
  7834. <doc>
  7835. <![CDATA[Store permission related information.]]>
  7836. </doc>
  7837. </class>
  7838. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7839. </package>
  7840. <package name="org.apache.hadoop.fs.s3">
  7841. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7842. <class name="Block" extends="java.lang.Object"
  7843. abstract="false"
  7844. static="false" final="false" visibility="public"
  7845. deprecated="not deprecated">
  7846. <constructor name="Block" type="long, long"
  7847. static="false" final="false" visibility="public"
  7848. deprecated="not deprecated">
  7849. </constructor>
  7850. <method name="getId" return="long"
  7851. abstract="false" native="false" synchronized="false"
  7852. static="false" final="false" visibility="public"
  7853. deprecated="not deprecated">
  7854. </method>
  7855. <method name="getLength" return="long"
  7856. abstract="false" native="false" synchronized="false"
  7857. static="false" final="false" visibility="public"
  7858. deprecated="not deprecated">
  7859. </method>
  7860. <method name="toString" return="java.lang.String"
  7861. abstract="false" native="false" synchronized="false"
  7862. static="false" final="false" visibility="public"
  7863. deprecated="not deprecated">
  7864. </method>
  7865. <doc>
  7866. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  7867. </doc>
  7868. </class>
  7869. <!-- end class org.apache.hadoop.fs.s3.Block -->
  7870. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7871. <interface name="FileSystemStore" abstract="true"
  7872. static="false" final="false" visibility="public"
  7873. deprecated="not deprecated">
  7874. <method name="initialize"
  7875. abstract="false" native="false" synchronized="false"
  7876. static="false" final="false" visibility="public"
  7877. deprecated="not deprecated">
  7878. <param name="uri" type="java.net.URI"/>
  7879. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7880. <exception name="IOException" type="java.io.IOException"/>
  7881. </method>
  7882. <method name="getVersion" return="java.lang.String"
  7883. abstract="false" native="false" synchronized="false"
  7884. static="false" final="false" visibility="public"
  7885. deprecated="not deprecated">
  7886. <exception name="IOException" type="java.io.IOException"/>
  7887. </method>
  7888. <method name="storeINode"
  7889. abstract="false" native="false" synchronized="false"
  7890. static="false" final="false" visibility="public"
  7891. deprecated="not deprecated">
  7892. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7893. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  7894. <exception name="IOException" type="java.io.IOException"/>
  7895. </method>
  7896. <method name="storeBlock"
  7897. abstract="false" native="false" synchronized="false"
  7898. static="false" final="false" visibility="public"
  7899. deprecated="not deprecated">
  7900. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7901. <param name="file" type="java.io.File"/>
  7902. <exception name="IOException" type="java.io.IOException"/>
  7903. </method>
  7904. <method name="inodeExists" return="boolean"
  7905. abstract="false" native="false" synchronized="false"
  7906. static="false" final="false" visibility="public"
  7907. deprecated="not deprecated">
  7908. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7909. <exception name="IOException" type="java.io.IOException"/>
  7910. </method>
  7911. <method name="blockExists" return="boolean"
  7912. abstract="false" native="false" synchronized="false"
  7913. static="false" final="false" visibility="public"
  7914. deprecated="not deprecated">
  7915. <param name="blockId" type="long"/>
  7916. <exception name="IOException" type="java.io.IOException"/>
  7917. </method>
  7918. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  7919. abstract="false" native="false" synchronized="false"
  7920. static="false" final="false" visibility="public"
  7921. deprecated="not deprecated">
  7922. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7923. <exception name="IOException" type="java.io.IOException"/>
  7924. </method>
  7925. <method name="retrieveBlock" return="java.io.File"
  7926. abstract="false" native="false" synchronized="false"
  7927. static="false" final="false" visibility="public"
  7928. deprecated="not deprecated">
  7929. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7930. <param name="byteRangeStart" type="long"/>
  7931. <exception name="IOException" type="java.io.IOException"/>
  7932. </method>
  7933. <method name="deleteINode"
  7934. abstract="false" native="false" synchronized="false"
  7935. static="false" final="false" visibility="public"
  7936. deprecated="not deprecated">
  7937. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7938. <exception name="IOException" type="java.io.IOException"/>
  7939. </method>
  7940. <method name="deleteBlock"
  7941. abstract="false" native="false" synchronized="false"
  7942. static="false" final="false" visibility="public"
  7943. deprecated="not deprecated">
  7944. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7945. <exception name="IOException" type="java.io.IOException"/>
  7946. </method>
  7947. <method name="listSubPaths" return="java.util.Set"
  7948. abstract="false" native="false" synchronized="false"
  7949. static="false" final="false" visibility="public"
  7950. deprecated="not deprecated">
  7951. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7952. <exception name="IOException" type="java.io.IOException"/>
  7953. </method>
  7954. <method name="listDeepSubPaths" return="java.util.Set"
  7955. abstract="false" native="false" synchronized="false"
  7956. static="false" final="false" visibility="public"
  7957. deprecated="not deprecated">
  7958. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7959. <exception name="IOException" type="java.io.IOException"/>
  7960. </method>
  7961. <method name="purge"
  7962. abstract="false" native="false" synchronized="false"
  7963. static="false" final="false" visibility="public"
  7964. deprecated="not deprecated">
  7965. <exception name="IOException" type="java.io.IOException"/>
  7966. <doc>
  7967. <![CDATA[Delete everything. Used for testing.
  7968. @throws IOException]]>
  7969. </doc>
  7970. </method>
  7971. <method name="dump"
  7972. abstract="false" native="false" synchronized="false"
  7973. static="false" final="false" visibility="public"
  7974. deprecated="not deprecated">
  7975. <exception name="IOException" type="java.io.IOException"/>
  7976. <doc>
  7977. <![CDATA[Diagnostic method to dump all INodes to the console.
  7978. @throws IOException]]>
  7979. </doc>
  7980. </method>
  7981. <doc>
  7982. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  7983. </doc>
  7984. </interface>
  7985. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7986. <!-- start class org.apache.hadoop.fs.s3.INode -->
  7987. <class name="INode" extends="java.lang.Object"
  7988. abstract="false"
  7989. static="false" final="false" visibility="public"
  7990. deprecated="not deprecated">
  7991. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  7992. static="false" final="false" visibility="public"
  7993. deprecated="not deprecated">
  7994. </constructor>
  7995. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  7996. abstract="false" native="false" synchronized="false"
  7997. static="false" final="false" visibility="public"
  7998. deprecated="not deprecated">
  7999. </method>
  8000. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  8001. abstract="false" native="false" synchronized="false"
  8002. static="false" final="false" visibility="public"
  8003. deprecated="not deprecated">
  8004. </method>
  8005. <method name="isDirectory" return="boolean"
  8006. abstract="false" native="false" synchronized="false"
  8007. static="false" final="false" visibility="public"
  8008. deprecated="not deprecated">
  8009. </method>
  8010. <method name="isFile" return="boolean"
  8011. abstract="false" native="false" synchronized="false"
  8012. static="false" final="false" visibility="public"
  8013. deprecated="not deprecated">
  8014. </method>
  8015. <method name="getSerializedLength" return="long"
  8016. abstract="false" native="false" synchronized="false"
  8017. static="false" final="false" visibility="public"
  8018. deprecated="not deprecated">
  8019. </method>
  8020. <method name="serialize" return="java.io.InputStream"
  8021. abstract="false" native="false" synchronized="false"
  8022. static="false" final="false" visibility="public"
  8023. deprecated="not deprecated">
  8024. <exception name="IOException" type="java.io.IOException"/>
  8025. </method>
  8026. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  8027. abstract="false" native="false" synchronized="false"
  8028. static="true" final="false" visibility="public"
  8029. deprecated="not deprecated">
  8030. <param name="in" type="java.io.InputStream"/>
  8031. <exception name="IOException" type="java.io.IOException"/>
  8032. </method>
  8033. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  8034. transient="false" volatile="false"
  8035. static="true" final="true" visibility="public"
  8036. deprecated="not deprecated">
  8037. </field>
  8038. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  8039. transient="false" volatile="false"
  8040. static="true" final="true" visibility="public"
  8041. deprecated="not deprecated">
  8042. </field>
  8043. <doc>
  8044. <![CDATA[Holds file metadata including type (regular file, or directory),
  8045. and the list of blocks that are pointers to the data.]]>
  8046. </doc>
  8047. </class>
  8048. <!-- end class org.apache.hadoop.fs.s3.INode -->
  8049. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  8050. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  8051. abstract="false"
  8052. static="false" final="false" visibility="public"
  8053. deprecated="not deprecated">
  8054. <implements name="org.apache.hadoop.util.Tool"/>
  8055. <constructor name="MigrationTool"
  8056. static="false" final="false" visibility="public"
  8057. deprecated="not deprecated">
  8058. </constructor>
  8059. <method name="main"
  8060. abstract="false" native="false" synchronized="false"
  8061. static="true" final="false" visibility="public"
  8062. deprecated="not deprecated">
  8063. <param name="args" type="java.lang.String[]"/>
  8064. <exception name="Exception" type="java.lang.Exception"/>
  8065. </method>
  8066. <method name="run" return="int"
  8067. abstract="false" native="false" synchronized="false"
  8068. static="false" final="false" visibility="public"
  8069. deprecated="not deprecated">
  8070. <param name="args" type="java.lang.String[]"/>
  8071. <exception name="Exception" type="java.lang.Exception"/>
  8072. </method>
  8073. <method name="initialize"
  8074. abstract="false" native="false" synchronized="false"
  8075. static="false" final="false" visibility="public"
  8076. deprecated="not deprecated">
  8077. <param name="uri" type="java.net.URI"/>
  8078. <exception name="IOException" type="java.io.IOException"/>
  8079. </method>
  8080. <doc>
  8081. <![CDATA[<p>
  8082. This class is a tool for migrating data from an older to a newer version
  8083. of an S3 filesystem.
  8084. </p>
  8085. <p>
  8086. All files in the filesystem are migrated by re-writing the block metadata
  8087. - no datafiles are touched.
  8088. </p>]]>
  8089. </doc>
  8090. </class>
  8091. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  8092. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  8093. <class name="S3Credentials" extends="java.lang.Object"
  8094. abstract="false"
  8095. static="false" final="false" visibility="public"
  8096. deprecated="not deprecated">
  8097. <constructor name="S3Credentials"
  8098. static="false" final="false" visibility="public"
  8099. deprecated="not deprecated">
  8100. </constructor>
  8101. <method name="initialize"
  8102. abstract="false" native="false" synchronized="false"
  8103. static="false" final="false" visibility="public"
  8104. deprecated="not deprecated">
  8105. <param name="uri" type="java.net.URI"/>
  8106. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8107. <doc>
  8108. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  8109. determined.]]>
  8110. </doc>
  8111. </method>
  8112. <method name="getAccessKey" return="java.lang.String"
  8113. abstract="false" native="false" synchronized="false"
  8114. static="false" final="false" visibility="public"
  8115. deprecated="not deprecated">
  8116. </method>
  8117. <method name="getSecretAccessKey" return="java.lang.String"
  8118. abstract="false" native="false" synchronized="false"
  8119. static="false" final="false" visibility="public"
  8120. deprecated="not deprecated">
  8121. </method>
  8122. <doc>
  8123. <![CDATA[<p>
  8124. Extracts AWS credentials from the filesystem URI or configuration.
  8125. </p>]]>
  8126. </doc>
  8127. </class>
  8128. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  8129. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  8130. <class name="S3Exception" extends="java.lang.RuntimeException"
  8131. abstract="false"
  8132. static="false" final="false" visibility="public"
  8133. deprecated="not deprecated">
  8134. <constructor name="S3Exception" type="java.lang.Throwable"
  8135. static="false" final="false" visibility="public"
  8136. deprecated="not deprecated">
  8137. </constructor>
  8138. <doc>
  8139. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  8140. </doc>
  8141. </class>
  8142. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  8143. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  8144. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8145. abstract="false"
  8146. static="false" final="false" visibility="public"
  8147. deprecated="not deprecated">
  8148. <constructor name="S3FileSystem"
  8149. static="false" final="false" visibility="public"
  8150. deprecated="not deprecated">
  8151. </constructor>
  8152. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  8153. static="false" final="false" visibility="public"
  8154. deprecated="not deprecated">
  8155. </constructor>
  8156. <method name="getUri" return="java.net.URI"
  8157. abstract="false" native="false" synchronized="false"
  8158. static="false" final="false" visibility="public"
  8159. deprecated="not deprecated">
  8160. </method>
  8161. <method name="initialize"
  8162. abstract="false" native="false" synchronized="false"
  8163. static="false" final="false" visibility="public"
  8164. deprecated="not deprecated">
  8165. <param name="uri" type="java.net.URI"/>
  8166. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8167. <exception name="IOException" type="java.io.IOException"/>
  8168. </method>
  8169. <method name="getName" return="java.lang.String"
  8170. abstract="false" native="false" synchronized="false"
  8171. static="false" final="false" visibility="public"
  8172. deprecated="not deprecated">
  8173. </method>
  8174. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8175. abstract="false" native="false" synchronized="false"
  8176. static="false" final="false" visibility="public"
  8177. deprecated="not deprecated">
  8178. </method>
  8179. <method name="setWorkingDirectory"
  8180. abstract="false" native="false" synchronized="false"
  8181. static="false" final="false" visibility="public"
  8182. deprecated="not deprecated">
  8183. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8184. </method>
  8185. <method name="mkdirs" return="boolean"
  8186. abstract="false" native="false" synchronized="false"
  8187. static="false" final="false" visibility="public"
  8188. deprecated="not deprecated">
  8189. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8190. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8191. <exception name="IOException" type="java.io.IOException"/>
  8192. <doc>
  8193. <![CDATA[@param permission Currently ignored.]]>
  8194. </doc>
  8195. </method>
  8196. <method name="isFile" return="boolean"
  8197. abstract="false" native="false" synchronized="false"
  8198. static="false" final="false" visibility="public"
  8199. deprecated="not deprecated">
  8200. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8201. <exception name="IOException" type="java.io.IOException"/>
  8202. </method>
  8203. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8204. abstract="false" native="false" synchronized="false"
  8205. static="false" final="false" visibility="public"
  8206. deprecated="not deprecated">
  8207. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8208. <exception name="IOException" type="java.io.IOException"/>
  8209. </method>
  8210. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8211. abstract="false" native="false" synchronized="false"
  8212. static="false" final="false" visibility="public"
  8213. deprecated="not deprecated">
  8214. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8215. <param name="bufferSize" type="int"/>
  8216. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8217. <exception name="IOException" type="java.io.IOException"/>
  8218. <doc>
  8219. <![CDATA[This optional operation is not yet supported.]]>
  8220. </doc>
  8221. </method>
  8222. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8223. abstract="false" native="false" synchronized="false"
  8224. static="false" final="false" visibility="public"
  8225. deprecated="not deprecated">
  8226. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8227. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8228. <param name="overwrite" type="boolean"/>
  8229. <param name="bufferSize" type="int"/>
  8230. <param name="replication" type="short"/>
  8231. <param name="blockSize" type="long"/>
  8232. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8233. <exception name="IOException" type="java.io.IOException"/>
  8234. <doc>
  8235. <![CDATA[@param permission Currently ignored.]]>
  8236. </doc>
  8237. </method>
  8238. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8239. abstract="false" native="false" synchronized="false"
  8240. static="false" final="false" visibility="public"
  8241. deprecated="not deprecated">
  8242. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8243. <param name="bufferSize" type="int"/>
  8244. <exception name="IOException" type="java.io.IOException"/>
  8245. </method>
  8246. <method name="rename" return="boolean"
  8247. abstract="false" native="false" synchronized="false"
  8248. static="false" final="false" visibility="public"
  8249. deprecated="not deprecated">
  8250. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8251. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8252. <exception name="IOException" type="java.io.IOException"/>
  8253. </method>
  8254. <method name="delete" return="boolean"
  8255. abstract="false" native="false" synchronized="false"
  8256. static="false" final="false" visibility="public"
  8257. deprecated="not deprecated">
  8258. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8259. <param name="recursive" type="boolean"/>
  8260. <exception name="IOException" type="java.io.IOException"/>
  8261. </method>
  8262. <method name="delete" return="boolean"
  8263. abstract="false" native="false" synchronized="false"
  8264. static="false" final="false" visibility="public"
  8265. deprecated="not deprecated">
  8266. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8267. <exception name="IOException" type="java.io.IOException"/>
  8268. </method>
  8269. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8270. abstract="false" native="false" synchronized="false"
  8271. static="false" final="false" visibility="public"
  8272. deprecated="not deprecated">
  8273. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8274. <exception name="IOException" type="java.io.IOException"/>
  8275. <doc>
  8276. <![CDATA[FileStatus for S3 file systems.]]>
  8277. </doc>
  8278. </method>
  8279. <doc>
  8280. <![CDATA[<p>
  8281. A block-based {@link FileSystem} backed by
  8282. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8283. </p>
  8284. @see NativeS3FileSystem]]>
  8285. </doc>
  8286. </class>
  8287. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  8288. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8289. <class name="S3FileSystemException" extends="java.io.IOException"
  8290. abstract="false"
  8291. static="false" final="false" visibility="public"
  8292. deprecated="not deprecated">
  8293. <constructor name="S3FileSystemException" type="java.lang.String"
  8294. static="false" final="false" visibility="public"
  8295. deprecated="not deprecated">
  8296. </constructor>
  8297. <doc>
  8298. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  8299. </doc>
  8300. </class>
  8301. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8302. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8303. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  8304. abstract="false"
  8305. static="false" final="false" visibility="public"
  8306. deprecated="not deprecated">
  8307. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  8308. static="false" final="false" visibility="public"
  8309. deprecated="not deprecated">
  8310. </constructor>
  8311. <doc>
  8312. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  8313. in {@link S3FileSystem}.]]>
  8314. </doc>
  8315. </class>
  8316. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8317. </package>
  8318. <package name="org.apache.hadoop.fs.s3native">
  8319. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8320. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8321. abstract="false"
  8322. static="false" final="false" visibility="public"
  8323. deprecated="not deprecated">
  8324. <constructor name="NativeS3FileSystem"
  8325. static="false" final="false" visibility="public"
  8326. deprecated="not deprecated">
  8327. </constructor>
  8328. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  8329. static="false" final="false" visibility="public"
  8330. deprecated="not deprecated">
  8331. </constructor>
  8332. <method name="initialize"
  8333. abstract="false" native="false" synchronized="false"
  8334. static="false" final="false" visibility="public"
  8335. deprecated="not deprecated">
  8336. <param name="uri" type="java.net.URI"/>
  8337. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8338. <exception name="IOException" type="java.io.IOException"/>
  8339. </method>
  8340. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8341. abstract="false" native="false" synchronized="false"
  8342. static="false" final="false" visibility="public"
  8343. deprecated="not deprecated">
  8344. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8345. <param name="bufferSize" type="int"/>
  8346. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8347. <exception name="IOException" type="java.io.IOException"/>
  8348. <doc>
  8349. <![CDATA[This optional operation is not yet supported.]]>
  8350. </doc>
  8351. </method>
  8352. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8353. abstract="false" native="false" synchronized="false"
  8354. static="false" final="false" visibility="public"
  8355. deprecated="not deprecated">
  8356. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8357. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8358. <param name="overwrite" type="boolean"/>
  8359. <param name="bufferSize" type="int"/>
  8360. <param name="replication" type="short"/>
  8361. <param name="blockSize" type="long"/>
  8362. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8363. <exception name="IOException" type="java.io.IOException"/>
  8364. </method>
  8365. <method name="delete" return="boolean"
  8366. abstract="false" native="false" synchronized="false"
  8367. static="false" final="false" visibility="public"
  8368. deprecated="not deprecated">
  8369. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8370. <exception name="IOException" type="java.io.IOException"/>
  8371. </method>
  8372. <method name="delete" return="boolean"
  8373. abstract="false" native="false" synchronized="false"
  8374. static="false" final="false" visibility="public"
  8375. deprecated="not deprecated">
  8376. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8377. <param name="recurse" type="boolean"/>
  8378. <exception name="IOException" type="java.io.IOException"/>
  8379. </method>
  8380. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8381. abstract="false" native="false" synchronized="false"
  8382. static="false" final="false" visibility="public"
  8383. deprecated="not deprecated">
  8384. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8385. <exception name="IOException" type="java.io.IOException"/>
  8386. </method>
  8387. <method name="getUri" return="java.net.URI"
  8388. abstract="false" native="false" synchronized="false"
  8389. static="false" final="false" visibility="public"
  8390. deprecated="not deprecated">
  8391. </method>
  8392. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8393. abstract="false" native="false" synchronized="false"
  8394. static="false" final="false" visibility="public"
  8395. deprecated="not deprecated">
  8396. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8397. <exception name="IOException" type="java.io.IOException"/>
  8398. <doc>
  8399. <![CDATA[<p>
  8400. If <code>f</code> is a file, this method will make a single call to S3.
  8401. If <code>f</code> is a directory, this method will make a maximum of
  8402. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  8403. files and directories contained directly in <code>f</code>.
  8404. </p>]]>
  8405. </doc>
  8406. </method>
  8407. <method name="mkdirs" return="boolean"
  8408. abstract="false" native="false" synchronized="false"
  8409. static="false" final="false" visibility="public"
  8410. deprecated="not deprecated">
  8411. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8412. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8413. <exception name="IOException" type="java.io.IOException"/>
  8414. </method>
  8415. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8416. abstract="false" native="false" synchronized="false"
  8417. static="false" final="false" visibility="public"
  8418. deprecated="not deprecated">
  8419. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8420. <param name="bufferSize" type="int"/>
  8421. <exception name="IOException" type="java.io.IOException"/>
  8422. </method>
  8423. <method name="rename" return="boolean"
  8424. abstract="false" native="false" synchronized="false"
  8425. static="false" final="false" visibility="public"
  8426. deprecated="not deprecated">
  8427. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8428. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8429. <exception name="IOException" type="java.io.IOException"/>
  8430. </method>
  8431. <method name="setWorkingDirectory"
  8432. abstract="false" native="false" synchronized="false"
  8433. static="false" final="false" visibility="public"
  8434. deprecated="not deprecated">
  8435. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8436. <doc>
  8437. <![CDATA[Set the working directory to the given directory.]]>
  8438. </doc>
  8439. </method>
  8440. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8441. abstract="false" native="false" synchronized="false"
  8442. static="false" final="false" visibility="public"
  8443. deprecated="not deprecated">
  8444. </method>
  8445. <field name="LOG" type="org.apache.commons.logging.Log"
  8446. transient="false" volatile="false"
  8447. static="true" final="true" visibility="public"
  8448. deprecated="not deprecated">
  8449. </field>
  8450. <doc>
  8451. <![CDATA[<p>
  8452. A {@link FileSystem} for reading and writing files stored on
  8453. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8454. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  8455. stores files on S3 in their
  8456. native form so they can be read by other S3 tools.
  8457. A note about directories. S3 of course has no "native" support for them.
  8458. The idiom we choose then is: for any directory created by this class,
  8459. we use an empty object "#{dirpath}_$folder$" as a marker.
  8460. Further, to interoperate with other S3 tools, we also accept the following:
  8461. - an object "#{dirpath}/' denoting a directory marker
  8462. - if there exists any objects with the prefix "#{dirpath}/", then the
  8463. directory is said to exist
  8464. - if both a file with the name of a directory and a marker for that
  8465. directory exists, then the *file masks the directory*, and the directory
  8466. is never returned.
  8467. </p>
  8468. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  8469. </doc>
  8470. </class>
  8471. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8472. </package>
  8473. <package name="org.apache.hadoop.fs.shell">
  8474. <!-- start class org.apache.hadoop.fs.shell.Command -->
  8475. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  8476. abstract="true"
  8477. static="false" final="false" visibility="public"
  8478. deprecated="not deprecated">
  8479. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  8480. static="false" final="false" visibility="protected"
  8481. deprecated="not deprecated">
  8482. <doc>
  8483. <![CDATA[Constructor]]>
  8484. </doc>
  8485. </constructor>
  8486. <method name="getCommandName" return="java.lang.String"
  8487. abstract="true" native="false" synchronized="false"
  8488. static="false" final="false" visibility="public"
  8489. deprecated="not deprecated">
  8490. <doc>
  8491. <![CDATA[Return the command's name excluding the leading character -]]>
  8492. </doc>
  8493. </method>
  8494. <method name="run"
  8495. abstract="true" native="false" synchronized="false"
  8496. static="false" final="false" visibility="protected"
  8497. deprecated="not deprecated">
  8498. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8499. <exception name="IOException" type="java.io.IOException"/>
  8500. <doc>
  8501. <![CDATA[Execute the command on the input path
  8502. @param path the input path
  8503. @throws IOException if any error occurs]]>
  8504. </doc>
  8505. </method>
  8506. <method name="runAll" return="int"
  8507. abstract="false" native="false" synchronized="false"
  8508. static="false" final="false" visibility="public"
  8509. deprecated="not deprecated">
  8510. <doc>
  8511. <![CDATA[For each source path, execute the command
  8512. @return 0 if it runs successfully; -1 if it fails]]>
  8513. </doc>
  8514. </method>
  8515. <field name="args" type="java.lang.String[]"
  8516. transient="false" volatile="false"
  8517. static="false" final="false" visibility="protected"
  8518. deprecated="not deprecated">
  8519. </field>
  8520. <doc>
  8521. <![CDATA[An abstract class for the execution of a file system command]]>
  8522. </doc>
  8523. </class>
  8524. <!-- end class org.apache.hadoop.fs.shell.Command -->
  8525. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  8526. <class name="CommandFormat" extends="java.lang.Object"
  8527. abstract="false"
  8528. static="false" final="false" visibility="public"
  8529. deprecated="not deprecated">
  8530. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  8531. static="false" final="false" visibility="public"
  8532. deprecated="not deprecated">
  8533. <doc>
  8534. <![CDATA[constructor]]>
  8535. </doc>
  8536. </constructor>
  8537. <method name="parse" return="java.util.List"
  8538. abstract="false" native="false" synchronized="false"
  8539. static="false" final="false" visibility="public"
  8540. deprecated="not deprecated">
  8541. <param name="args" type="java.lang.String[]"/>
  8542. <param name="pos" type="int"/>
  8543. <doc>
  8544. <![CDATA[Parse parameters starting from the given position
  8545. @param args an array of input arguments
  8546. @param pos the position at which starts to parse
  8547. @return a list of parameters]]>
  8548. </doc>
  8549. </method>
  8550. <method name="getOpt" return="boolean"
  8551. abstract="false" native="false" synchronized="false"
  8552. static="false" final="false" visibility="public"
  8553. deprecated="not deprecated">
  8554. <param name="option" type="java.lang.String"/>
  8555. <doc>
  8556. <![CDATA[Return if the option is set or not
  8557. @param option String representation of an option
  8558. @return true is the option is set; false otherwise]]>
  8559. </doc>
  8560. </method>
  8561. <doc>
  8562. <![CDATA[Parse the args of a command and check the format of args.]]>
  8563. </doc>
  8564. </class>
  8565. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  8566. <!-- start class org.apache.hadoop.fs.shell.Count -->
  8567. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  8568. abstract="false"
  8569. static="false" final="false" visibility="public"
  8570. deprecated="not deprecated">
  8571. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  8572. static="false" final="false" visibility="public"
  8573. deprecated="not deprecated">
  8574. <doc>
  8575. <![CDATA[Constructor
  8576. @param cmd the count command
  8577. @param pos the starting index of the arguments]]>
  8578. </doc>
  8579. </constructor>
  8580. <method name="matches" return="boolean"
  8581. abstract="false" native="false" synchronized="false"
  8582. static="true" final="false" visibility="public"
  8583. deprecated="not deprecated">
  8584. <param name="cmd" type="java.lang.String"/>
  8585. <doc>
  8586. <![CDATA[Check if a command is the count command
  8587. @param cmd A string representation of a command starting with "-"
  8588. @return true if this is a count command; false otherwise]]>
  8589. </doc>
  8590. </method>
  8591. <method name="getCommandName" return="java.lang.String"
  8592. abstract="false" native="false" synchronized="false"
  8593. static="false" final="false" visibility="public"
  8594. deprecated="not deprecated">
  8595. </method>
  8596. <method name="run"
  8597. abstract="false" native="false" synchronized="false"
  8598. static="false" final="false" visibility="protected"
  8599. deprecated="not deprecated">
  8600. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8601. <exception name="IOException" type="java.io.IOException"/>
  8602. </method>
  8603. <field name="NAME" type="java.lang.String"
  8604. transient="false" volatile="false"
  8605. static="true" final="true" visibility="public"
  8606. deprecated="not deprecated">
  8607. </field>
  8608. <field name="USAGE" type="java.lang.String"
  8609. transient="false" volatile="false"
  8610. static="true" final="true" visibility="public"
  8611. deprecated="not deprecated">
  8612. </field>
  8613. <field name="DESCRIPTION" type="java.lang.String"
  8614. transient="false" volatile="false"
  8615. static="true" final="true" visibility="public"
  8616. deprecated="not deprecated">
  8617. </field>
  8618. <doc>
  8619. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8620. </doc>
  8621. </class>
  8622. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8623. </package>
  8624. <package name="org.apache.hadoop.http">
  8625. <!-- start class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8626. <class name="AdminAuthorizedServlet" extends="org.mortbay.jetty.servlet.DefaultServlet"
  8627. abstract="false"
  8628. static="false" final="false" visibility="public"
  8629. deprecated="not deprecated">
  8630. <constructor name="AdminAuthorizedServlet"
  8631. static="false" final="false" visibility="public"
  8632. deprecated="not deprecated">
  8633. </constructor>
  8634. <method name="doGet"
  8635. abstract="false" native="false" synchronized="false"
  8636. static="false" final="false" visibility="protected"
  8637. deprecated="not deprecated">
  8638. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8639. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8640. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8641. <exception name="IOException" type="java.io.IOException"/>
  8642. </method>
  8643. <doc>
  8644. <![CDATA[General servlet which is admin-authorized.]]>
  8645. </doc>
  8646. </class>
  8647. <!-- end class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8648. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8649. <interface name="FilterContainer" abstract="true"
  8650. static="false" final="false" visibility="public"
  8651. deprecated="not deprecated">
  8652. <method name="addFilter"
  8653. abstract="false" native="false" synchronized="false"
  8654. static="false" final="false" visibility="public"
  8655. deprecated="not deprecated">
  8656. <param name="name" type="java.lang.String"/>
  8657. <param name="classname" type="java.lang.String"/>
  8658. <param name="parameters" type="java.util.Map"/>
  8659. <doc>
  8660. <![CDATA[Add a filter to the container.
  8661. @param name Filter name
  8662. @param classname Filter class name
  8663. @param parameters a map from parameter names to initial values]]>
  8664. </doc>
  8665. </method>
  8666. <method name="addGlobalFilter"
  8667. abstract="false" native="false" synchronized="false"
  8668. static="false" final="false" visibility="public"
  8669. deprecated="not deprecated">
  8670. <param name="name" type="java.lang.String"/>
  8671. <param name="classname" type="java.lang.String"/>
  8672. <param name="parameters" type="java.util.Map"/>
  8673. <doc>
  8674. <![CDATA[Add a global filter to the container.
  8675. @param name filter name
  8676. @param classname filter class name
  8677. @param parameters a map from parameter names to initial values]]>
  8678. </doc>
  8679. </method>
  8680. <doc>
  8681. <![CDATA[A container class for javax.servlet.Filter.]]>
  8682. </doc>
  8683. </interface>
  8684. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8685. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8686. <class name="FilterInitializer" extends="java.lang.Object"
  8687. abstract="true"
  8688. static="false" final="false" visibility="public"
  8689. deprecated="not deprecated">
  8690. <constructor name="FilterInitializer"
  8691. static="false" final="false" visibility="public"
  8692. deprecated="not deprecated">
  8693. </constructor>
  8694. <method name="initFilter"
  8695. abstract="true" native="false" synchronized="false"
  8696. static="false" final="false" visibility="public"
  8697. deprecated="not deprecated">
  8698. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  8699. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8700. <doc>
  8701. <![CDATA[Initialize a Filter to a FilterContainer.
  8702. @param container The filter container
  8703. @param conf Configuration for run-time parameters]]>
  8704. </doc>
  8705. </method>
  8706. <doc>
  8707. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8708. </doc>
  8709. </class>
  8710. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8711. <!-- start class org.apache.hadoop.http.HtmlQuoting -->
  8712. <class name="HtmlQuoting" extends="java.lang.Object"
  8713. abstract="false"
  8714. static="false" final="false" visibility="public"
  8715. deprecated="not deprecated">
  8716. <constructor name="HtmlQuoting"
  8717. static="false" final="false" visibility="public"
  8718. deprecated="not deprecated">
  8719. </constructor>
  8720. <method name="needsQuoting" return="boolean"
  8721. abstract="false" native="false" synchronized="false"
  8722. static="true" final="false" visibility="public"
  8723. deprecated="not deprecated">
  8724. <param name="data" type="byte[]"/>
  8725. <param name="off" type="int"/>
  8726. <param name="len" type="int"/>
  8727. <doc>
  8728. <![CDATA[Does the given string need to be quoted?
  8729. @param data the string to check
  8730. @param off the starting position
  8731. @param len the number of bytes to check
  8732. @return does the string contain any of the active html characters?]]>
  8733. </doc>
  8734. </method>
  8735. <method name="needsQuoting" return="boolean"
  8736. abstract="false" native="false" synchronized="false"
  8737. static="true" final="false" visibility="public"
  8738. deprecated="not deprecated">
  8739. <param name="str" type="java.lang.String"/>
  8740. <doc>
  8741. <![CDATA[Does the given string need to be quoted?
  8742. @param str the string to check
  8743. @return does the string contain any of the active html characters?]]>
  8744. </doc>
  8745. </method>
  8746. <method name="quoteHtmlChars"
  8747. abstract="false" native="false" synchronized="false"
  8748. static="true" final="false" visibility="public"
  8749. deprecated="not deprecated">
  8750. <param name="output" type="java.io.OutputStream"/>
  8751. <param name="buffer" type="byte[]"/>
  8752. <param name="off" type="int"/>
  8753. <param name="len" type="int"/>
  8754. <exception name="IOException" type="java.io.IOException"/>
  8755. <doc>
  8756. <![CDATA[Quote all of the active HTML characters in the given string as they
  8757. are added to the buffer.
  8758. @param output the stream to write the output to
  8759. @param buffer the byte array to take the characters from
  8760. @param off the index of the first byte to quote
  8761. @param len the number of bytes to quote]]>
  8762. </doc>
  8763. </method>
  8764. <method name="quoteHtmlChars" return="java.lang.String"
  8765. abstract="false" native="false" synchronized="false"
  8766. static="true" final="false" visibility="public"
  8767. deprecated="not deprecated">
  8768. <param name="item" type="java.lang.String"/>
  8769. <doc>
  8770. <![CDATA[Quote the given item to make it html-safe.
  8771. @param item the string to quote
  8772. @return the quoted string]]>
  8773. </doc>
  8774. </method>
  8775. <method name="quoteOutputStream" return="java.io.OutputStream"
  8776. abstract="false" native="false" synchronized="false"
  8777. static="true" final="false" visibility="public"
  8778. deprecated="not deprecated">
  8779. <param name="out" type="java.io.OutputStream"/>
  8780. <exception name="IOException" type="java.io.IOException"/>
  8781. <doc>
  8782. <![CDATA[Return an output stream that quotes all of the output.
  8783. @param out the stream to write the quoted output to
  8784. @return a new stream that the application show write to
  8785. @throws IOException if the underlying output fails]]>
  8786. </doc>
  8787. </method>
  8788. <method name="unquoteHtmlChars" return="java.lang.String"
  8789. abstract="false" native="false" synchronized="false"
  8790. static="true" final="false" visibility="public"
  8791. deprecated="not deprecated">
  8792. <param name="item" type="java.lang.String"/>
  8793. <doc>
  8794. <![CDATA[Remove HTML quoting from a string.
  8795. @param item the string to unquote
  8796. @return the unquoted string]]>
  8797. </doc>
  8798. </method>
  8799. <method name="main"
  8800. abstract="false" native="false" synchronized="false"
  8801. static="true" final="false" visibility="public"
  8802. deprecated="not deprecated">
  8803. <param name="args" type="java.lang.String[]"/>
  8804. <exception name="Exception" type="java.lang.Exception"/>
  8805. </method>
  8806. <doc>
  8807. <![CDATA[This class is responsible for quoting HTML characters.]]>
  8808. </doc>
  8809. </class>
  8810. <!-- end class org.apache.hadoop.http.HtmlQuoting -->
  8811. <!-- start class org.apache.hadoop.http.HttpServer -->
  8812. <class name="HttpServer" extends="java.lang.Object"
  8813. abstract="false"
  8814. static="false" final="false" visibility="public"
  8815. deprecated="not deprecated">
  8816. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8817. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8818. static="false" final="false" visibility="public"
  8819. deprecated="not deprecated">
  8820. <exception name="IOException" type="java.io.IOException"/>
  8821. <doc>
  8822. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8823. </doc>
  8824. </constructor>
  8825. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8826. static="false" final="false" visibility="public"
  8827. deprecated="not deprecated">
  8828. <exception name="IOException" type="java.io.IOException"/>
  8829. </constructor>
  8830. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.mortbay.jetty.Connector"
  8831. static="false" final="false" visibility="public"
  8832. deprecated="not deprecated">
  8833. <exception name="IOException" type="java.io.IOException"/>
  8834. </constructor>
  8835. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList"
  8836. static="false" final="false" visibility="public"
  8837. deprecated="not deprecated">
  8838. <exception name="IOException" type="java.io.IOException"/>
  8839. <doc>
  8840. <![CDATA[Create a status server on the given port.
  8841. The jsp scripts are taken from src/webapps/<name>.
  8842. @param name The name of the server
  8843. @param port The port to use on the server
  8844. @param findPort whether the server should start at the given port and
  8845. increment by 1 until it finds a free port.
  8846. @param conf Configuration
  8847. @param adminsAcl {@link AccessControlList} of the admins]]>
  8848. </doc>
  8849. </constructor>
  8850. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList, org.mortbay.jetty.Connector"
  8851. static="false" final="false" visibility="public"
  8852. deprecated="not deprecated">
  8853. <exception name="IOException" type="java.io.IOException"/>
  8854. </constructor>
  8855. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  8856. abstract="false" native="false" synchronized="false"
  8857. static="false" final="false" visibility="public"
  8858. deprecated="not deprecated">
  8859. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8860. <exception name="IOException" type="java.io.IOException"/>
  8861. <doc>
  8862. <![CDATA[Create a required listener for the Jetty instance listening on the port
  8863. provided. This wrapper and all subclasses must create at least one
  8864. listener.]]>
  8865. </doc>
  8866. </method>
  8867. <method name="createDefaultChannelConnector" return="org.mortbay.jetty.Connector"
  8868. abstract="false" native="false" synchronized="false"
  8869. static="true" final="false" visibility="public"
  8870. deprecated="not deprecated">
  8871. </method>
  8872. <method name="addDefaultApps"
  8873. abstract="false" native="false" synchronized="false"
  8874. static="false" final="false" visibility="protected"
  8875. deprecated="not deprecated">
  8876. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  8877. <param name="appDir" type="java.lang.String"/>
  8878. <exception name="IOException" type="java.io.IOException"/>
  8879. <doc>
  8880. <![CDATA[Add default apps.
  8881. @param appDir The application directory
  8882. @throws IOException]]>
  8883. </doc>
  8884. </method>
  8885. <method name="addDefaultServlets"
  8886. abstract="false" native="false" synchronized="false"
  8887. static="false" final="false" visibility="protected"
  8888. deprecated="not deprecated">
  8889. <doc>
  8890. <![CDATA[Add default servlets.]]>
  8891. </doc>
  8892. </method>
  8893. <method name="addContext"
  8894. abstract="false" native="false" synchronized="false"
  8895. static="false" final="false" visibility="public"
  8896. deprecated="not deprecated">
  8897. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  8898. <param name="isFiltered" type="boolean"/>
  8899. <exception name="IOException" type="java.io.IOException"/>
  8900. </method>
  8901. <method name="addContext"
  8902. abstract="false" native="false" synchronized="false"
  8903. static="false" final="false" visibility="protected"
  8904. deprecated="not deprecated">
  8905. <param name="pathSpec" type="java.lang.String"/>
  8906. <param name="dir" type="java.lang.String"/>
  8907. <param name="isFiltered" type="boolean"/>
  8908. <exception name="IOException" type="java.io.IOException"/>
  8909. <doc>
  8910. <![CDATA[Add a context
  8911. @param pathSpec The path spec for the context
  8912. @param dir The directory containing the context
  8913. @param isFiltered if true, the servlet is added to the filter path mapping
  8914. @throws IOException]]>
  8915. </doc>
  8916. </method>
  8917. <method name="setAttribute"
  8918. abstract="false" native="false" synchronized="false"
  8919. static="false" final="false" visibility="public"
  8920. deprecated="not deprecated">
  8921. <param name="name" type="java.lang.String"/>
  8922. <param name="value" type="java.lang.Object"/>
  8923. <doc>
  8924. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8925. pages as "application.getAttribute(name)".
  8926. @param name The name of the attribute
  8927. @param value The value of the attribute]]>
  8928. </doc>
  8929. </method>
  8930. <method name="setAttribute"
  8931. abstract="false" native="false" synchronized="false"
  8932. static="false" final="false" visibility="public"
  8933. deprecated="not deprecated">
  8934. <param name="context" type="org.mortbay.jetty.servlet.Context"/>
  8935. <param name="name" type="java.lang.String"/>
  8936. <param name="value" type="java.lang.Object"/>
  8937. <doc>
  8938. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8939. pages as "application.getAttribute(name)".
  8940. @param context Context to add attribute
  8941. @param name The name of the attribute
  8942. @param value The value of the attribute]]>
  8943. </doc>
  8944. </method>
  8945. <method name="addJerseyResourcePackage"
  8946. abstract="false" native="false" synchronized="false"
  8947. static="false" final="false" visibility="public"
  8948. deprecated="not deprecated">
  8949. <param name="packageName" type="java.lang.String"/>
  8950. <param name="pathSpec" type="java.lang.String"/>
  8951. <doc>
  8952. <![CDATA[Add a Jersey resource package.
  8953. @param packageName The Java package name containing the Jersey resource.
  8954. @param pathSpec The path spec for the servlet]]>
  8955. </doc>
  8956. </method>
  8957. <method name="addServlet"
  8958. abstract="false" native="false" synchronized="false"
  8959. static="false" final="false" visibility="public"
  8960. deprecated="not deprecated">
  8961. <param name="name" type="java.lang.String"/>
  8962. <param name="pathSpec" type="java.lang.String"/>
  8963. <param name="clazz" type="java.lang.Class"/>
  8964. <doc>
  8965. <![CDATA[Add a servlet in the server.
  8966. @param name The name of the servlet (can be passed as null)
  8967. @param pathSpec The path spec for the servlet
  8968. @param clazz The servlet class]]>
  8969. </doc>
  8970. </method>
  8971. <method name="addInternalServlet"
  8972. abstract="false" native="false" synchronized="false"
  8973. static="false" final="false" visibility="public"
  8974. deprecated="this is a temporary method">
  8975. <param name="name" type="java.lang.String"/>
  8976. <param name="pathSpec" type="java.lang.String"/>
  8977. <param name="clazz" type="java.lang.Class"/>
  8978. <doc>
  8979. <![CDATA[Add an internal servlet in the server.
  8980. @param name The name of the servlet (can be passed as null)
  8981. @param pathSpec The path spec for the servlet
  8982. @param clazz The servlet class
  8983. @deprecated this is a temporary method]]>
  8984. </doc>
  8985. </method>
  8986. <method name="addInternalServlet"
  8987. abstract="false" native="false" synchronized="false"
  8988. static="false" final="false" visibility="public"
  8989. deprecated="not deprecated">
  8990. <param name="name" type="java.lang.String"/>
  8991. <param name="pathSpec" type="java.lang.String"/>
  8992. <param name="clazz" type="java.lang.Class"/>
  8993. <param name="requireAuth" type="boolean"/>
  8994. <param name="useKsslForAuth" type="boolean"/>
  8995. <doc>
  8996. <![CDATA[Add an internal servlet in the server, specifying whether or not to
  8997. protect with Kerberos authentication.
  8998. Note: This method is to be used for adding servlets that facilitate
  8999. internal communication and not for user facing functionality. For
  9000. servlets added using this method, filters (except internal Kerberos
  9001. filters) are not enabled.
  9002. @param name The name of the servlet (can be passed as null)
  9003. @param pathSpec The path spec for the servlet
  9004. @param clazz The servlet class
  9005. @param requireAuth Require Kerberos authenticate to access servlet
  9006. @param useKsslForAuth true to use KSSL for auth, false to use SPNEGO]]>
  9007. </doc>
  9008. </method>
  9009. <method name="addFilter"
  9010. abstract="false" native="false" synchronized="false"
  9011. static="false" final="false" visibility="public"
  9012. deprecated="not deprecated">
  9013. <param name="name" type="java.lang.String"/>
  9014. <param name="classname" type="java.lang.String"/>
  9015. <param name="parameters" type="java.util.Map"/>
  9016. <doc>
  9017. <![CDATA[{@inheritDoc}]]>
  9018. </doc>
  9019. </method>
  9020. <method name="addGlobalFilter"
  9021. abstract="false" native="false" synchronized="false"
  9022. static="false" final="false" visibility="public"
  9023. deprecated="not deprecated">
  9024. <param name="name" type="java.lang.String"/>
  9025. <param name="classname" type="java.lang.String"/>
  9026. <param name="parameters" type="java.util.Map"/>
  9027. <doc>
  9028. <![CDATA[{@inheritDoc}]]>
  9029. </doc>
  9030. </method>
  9031. <method name="defineFilter"
  9032. abstract="false" native="false" synchronized="false"
  9033. static="false" final="false" visibility="protected"
  9034. deprecated="not deprecated">
  9035. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  9036. <param name="name" type="java.lang.String"/>
  9037. <param name="classname" type="java.lang.String"/>
  9038. <param name="parameters" type="java.util.Map"/>
  9039. <param name="urls" type="java.lang.String[]"/>
  9040. <doc>
  9041. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  9042. </doc>
  9043. </method>
  9044. <method name="addFilterPathMapping"
  9045. abstract="false" native="false" synchronized="false"
  9046. static="false" final="false" visibility="protected"
  9047. deprecated="not deprecated">
  9048. <param name="pathSpec" type="java.lang.String"/>
  9049. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  9050. <doc>
  9051. <![CDATA[Add the path spec to the filter path mapping.
  9052. @param pathSpec The path spec
  9053. @param webAppCtx The WebApplicationContext to add to]]>
  9054. </doc>
  9055. </method>
  9056. <method name="getAttribute" return="java.lang.Object"
  9057. abstract="false" native="false" synchronized="false"
  9058. static="false" final="false" visibility="public"
  9059. deprecated="not deprecated">
  9060. <param name="name" type="java.lang.String"/>
  9061. <doc>
  9062. <![CDATA[Get the value in the webapp context.
  9063. @param name The name of the attribute
  9064. @return The value of the attribute]]>
  9065. </doc>
  9066. </method>
  9067. <method name="getWebAppsPath" return="java.lang.String"
  9068. abstract="false" native="false" synchronized="false"
  9069. static="false" final="false" visibility="protected"
  9070. deprecated="not deprecated">
  9071. <exception name="IOException" type="java.io.IOException"/>
  9072. <doc>
  9073. <![CDATA[Get the pathname to the webapps files.
  9074. @return the pathname as a URL
  9075. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  9076. </doc>
  9077. </method>
  9078. <method name="getPort" return="int"
  9079. abstract="false" native="false" synchronized="false"
  9080. static="false" final="false" visibility="public"
  9081. deprecated="not deprecated">
  9082. <doc>
  9083. <![CDATA[Get the port that the server is on
  9084. @return the port]]>
  9085. </doc>
  9086. </method>
  9087. <method name="setThreads"
  9088. abstract="false" native="false" synchronized="false"
  9089. static="false" final="false" visibility="public"
  9090. deprecated="not deprecated">
  9091. <param name="min" type="int"/>
  9092. <param name="max" type="int"/>
  9093. <doc>
  9094. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  9095. </doc>
  9096. </method>
  9097. <method name="addSslListener"
  9098. abstract="false" native="false" synchronized="false"
  9099. static="false" final="false" visibility="public"
  9100. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  9101. <param name="addr" type="java.net.InetSocketAddress"/>
  9102. <param name="keystore" type="java.lang.String"/>
  9103. <param name="storPass" type="java.lang.String"/>
  9104. <param name="keyPass" type="java.lang.String"/>
  9105. <exception name="IOException" type="java.io.IOException"/>
  9106. <doc>
  9107. <![CDATA[Configure an ssl listener on the server.
  9108. @param addr address to listen on
  9109. @param keystore location of the keystore
  9110. @param storPass password for the keystore
  9111. @param keyPass password for the key
  9112. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  9113. </doc>
  9114. </method>
  9115. <method name="addSslListener"
  9116. abstract="false" native="false" synchronized="false"
  9117. static="false" final="false" visibility="public"
  9118. deprecated="not deprecated">
  9119. <param name="addr" type="java.net.InetSocketAddress"/>
  9120. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9121. <param name="needClientAuth" type="boolean"/>
  9122. <exception name="IOException" type="java.io.IOException"/>
  9123. <doc>
  9124. <![CDATA[Configure an ssl listener on the server.
  9125. @param addr address to listen on
  9126. @param sslConf conf to retrieve ssl options
  9127. @param needClientAuth whether client authentication is required]]>
  9128. </doc>
  9129. </method>
  9130. <method name="addSslListener"
  9131. abstract="false" native="false" synchronized="false"
  9132. static="false" final="false" visibility="public"
  9133. deprecated="not deprecated">
  9134. <param name="addr" type="java.net.InetSocketAddress"/>
  9135. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9136. <param name="needCertsAuth" type="boolean"/>
  9137. <param name="needKrbAuth" type="boolean"/>
  9138. <exception name="IOException" type="java.io.IOException"/>
  9139. <doc>
  9140. <![CDATA[Configure an ssl listener on the server.
  9141. @param addr address to listen on
  9142. @param sslConf conf to retrieve ssl options
  9143. @param needCertsAuth whether x509 certificate authentication is required
  9144. @param needKrbAuth whether to allow kerberos auth]]>
  9145. </doc>
  9146. </method>
  9147. <method name="start"
  9148. abstract="false" native="false" synchronized="false"
  9149. static="false" final="false" visibility="public"
  9150. deprecated="not deprecated">
  9151. <exception name="IOException" type="java.io.IOException"/>
  9152. <doc>
  9153. <![CDATA[Start the server. Does not wait for the server to start.]]>
  9154. </doc>
  9155. </method>
  9156. <method name="stop"
  9157. abstract="false" native="false" synchronized="false"
  9158. static="false" final="false" visibility="public"
  9159. deprecated="not deprecated">
  9160. <exception name="Exception" type="java.lang.Exception"/>
  9161. <doc>
  9162. <![CDATA[stop the server]]>
  9163. </doc>
  9164. </method>
  9165. <method name="join"
  9166. abstract="false" native="false" synchronized="false"
  9167. static="false" final="false" visibility="public"
  9168. deprecated="not deprecated">
  9169. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9170. </method>
  9171. <method name="hasAdministratorAccess" return="boolean"
  9172. abstract="false" native="false" synchronized="false"
  9173. static="true" final="false" visibility="public"
  9174. deprecated="not deprecated">
  9175. <param name="servletContext" type="javax.servlet.ServletContext"/>
  9176. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9177. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9178. <exception name="IOException" type="java.io.IOException"/>
  9179. <doc>
  9180. <![CDATA[Does the user sending the HttpServletRequest has the administrator ACLs? If
  9181. it isn't the case, response will be modified to send an error to the user.
  9182. @param servletContext
  9183. @param request
  9184. @param response
  9185. @return true if admin-authorized, false otherwise
  9186. @throws IOException]]>
  9187. </doc>
  9188. </method>
  9189. <field name="LOG" type="org.apache.commons.logging.Log"
  9190. transient="false" volatile="false"
  9191. static="true" final="true" visibility="public"
  9192. deprecated="not deprecated">
  9193. </field>
  9194. <field name="SPNEGO_FILTER" type="java.lang.String"
  9195. transient="false" volatile="false"
  9196. static="true" final="true" visibility="public"
  9197. deprecated="not deprecated">
  9198. </field>
  9199. <field name="KRB5_FILTER" type="java.lang.String"
  9200. transient="false" volatile="false"
  9201. static="true" final="true" visibility="public"
  9202. deprecated="not deprecated">
  9203. </field>
  9204. <field name="webServer" type="org.mortbay.jetty.Server"
  9205. transient="false" volatile="false"
  9206. static="false" final="true" visibility="protected"
  9207. deprecated="not deprecated">
  9208. </field>
  9209. <field name="listener" type="org.mortbay.jetty.Connector"
  9210. transient="false" volatile="false"
  9211. static="false" final="true" visibility="protected"
  9212. deprecated="not deprecated">
  9213. </field>
  9214. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  9215. transient="false" volatile="false"
  9216. static="false" final="true" visibility="protected"
  9217. deprecated="not deprecated">
  9218. </field>
  9219. <field name="findPort" type="boolean"
  9220. transient="false" volatile="false"
  9221. static="false" final="true" visibility="protected"
  9222. deprecated="not deprecated">
  9223. </field>
  9224. <field name="defaultContexts" type="java.util.Map"
  9225. transient="false" volatile="false"
  9226. static="false" final="true" visibility="protected"
  9227. deprecated="not deprecated">
  9228. </field>
  9229. <field name="filterNames" type="java.util.List"
  9230. transient="false" volatile="false"
  9231. static="false" final="true" visibility="protected"
  9232. deprecated="not deprecated">
  9233. </field>
  9234. <doc>
  9235. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  9236. is to serve up status information for the server.
  9237. There are three contexts:
  9238. "/logs/" -> points to the log directory
  9239. "/static/" -> points to common static files (src/webapps/static)
  9240. "/" -> the jsp server code from (src/webapps/<name>)]]>
  9241. </doc>
  9242. </class>
  9243. <!-- end class org.apache.hadoop.http.HttpServer -->
  9244. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9245. <class name="HttpServer.QuotingInputFilter" extends="java.lang.Object"
  9246. abstract="false"
  9247. static="true" final="false" visibility="public"
  9248. deprecated="not deprecated">
  9249. <implements name="javax.servlet.Filter"/>
  9250. <constructor name="HttpServer.QuotingInputFilter"
  9251. static="false" final="false" visibility="public"
  9252. deprecated="not deprecated">
  9253. </constructor>
  9254. <method name="init"
  9255. abstract="false" native="false" synchronized="false"
  9256. static="false" final="false" visibility="public"
  9257. deprecated="not deprecated">
  9258. <param name="config" type="javax.servlet.FilterConfig"/>
  9259. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9260. </method>
  9261. <method name="destroy"
  9262. abstract="false" native="false" synchronized="false"
  9263. static="false" final="false" visibility="public"
  9264. deprecated="not deprecated">
  9265. </method>
  9266. <method name="doFilter"
  9267. abstract="false" native="false" synchronized="false"
  9268. static="false" final="false" visibility="public"
  9269. deprecated="not deprecated">
  9270. <param name="request" type="javax.servlet.ServletRequest"/>
  9271. <param name="response" type="javax.servlet.ServletResponse"/>
  9272. <param name="chain" type="javax.servlet.FilterChain"/>
  9273. <exception name="IOException" type="java.io.IOException"/>
  9274. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9275. </method>
  9276. <doc>
  9277. <![CDATA[A Servlet input filter that quotes all HTML active characters in the
  9278. parameter names and values. The goal is to quote the characters to make
  9279. all of the servlets resistant to cross-site scripting attacks.]]>
  9280. </doc>
  9281. </class>
  9282. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9283. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9284. <class name="HttpServer.QuotingInputFilter.RequestQuoter" extends="javax.servlet.http.HttpServletRequestWrapper"
  9285. abstract="false"
  9286. static="true" final="false" visibility="public"
  9287. deprecated="not deprecated">
  9288. <constructor name="HttpServer.QuotingInputFilter.RequestQuoter" type="javax.servlet.http.HttpServletRequest"
  9289. static="false" final="false" visibility="public"
  9290. deprecated="not deprecated">
  9291. </constructor>
  9292. <method name="getParameterNames" return="java.util.Enumeration"
  9293. abstract="false" native="false" synchronized="false"
  9294. static="false" final="false" visibility="public"
  9295. deprecated="not deprecated">
  9296. <doc>
  9297. <![CDATA[Return the set of parameter names, quoting each name.]]>
  9298. </doc>
  9299. </method>
  9300. <method name="getParameter" return="java.lang.String"
  9301. abstract="false" native="false" synchronized="false"
  9302. static="false" final="false" visibility="public"
  9303. deprecated="not deprecated">
  9304. <param name="name" type="java.lang.String"/>
  9305. <doc>
  9306. <![CDATA[Unquote the name and quote the value.]]>
  9307. </doc>
  9308. </method>
  9309. <method name="getParameterValues" return="java.lang.String[]"
  9310. abstract="false" native="false" synchronized="false"
  9311. static="false" final="false" visibility="public"
  9312. deprecated="not deprecated">
  9313. <param name="name" type="java.lang.String"/>
  9314. </method>
  9315. <method name="getParameterMap" return="java.util.Map"
  9316. abstract="false" native="false" synchronized="false"
  9317. static="false" final="false" visibility="public"
  9318. deprecated="not deprecated">
  9319. </method>
  9320. <method name="getRequestURL" return="java.lang.StringBuffer"
  9321. abstract="false" native="false" synchronized="false"
  9322. static="false" final="false" visibility="public"
  9323. deprecated="not deprecated">
  9324. <doc>
  9325. <![CDATA[Quote the url so that users specifying the HOST HTTP header
  9326. can't inject attacks.]]>
  9327. </doc>
  9328. </method>
  9329. <method name="getServerName" return="java.lang.String"
  9330. abstract="false" native="false" synchronized="false"
  9331. static="false" final="false" visibility="public"
  9332. deprecated="not deprecated">
  9333. <doc>
  9334. <![CDATA[Quote the server name so that users specifying the HOST HTTP header
  9335. can't inject attacks.]]>
  9336. </doc>
  9337. </method>
  9338. </class>
  9339. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9340. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  9341. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  9342. abstract="false"
  9343. static="true" final="false" visibility="public"
  9344. deprecated="not deprecated">
  9345. <constructor name="HttpServer.StackServlet"
  9346. static="false" final="false" visibility="public"
  9347. deprecated="not deprecated">
  9348. </constructor>
  9349. <method name="doGet"
  9350. abstract="false" native="false" synchronized="false"
  9351. static="false" final="false" visibility="public"
  9352. deprecated="not deprecated">
  9353. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9354. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9355. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9356. <exception name="IOException" type="java.io.IOException"/>
  9357. </method>
  9358. <doc>
  9359. <![CDATA[A very simple servlet to serve up a text representation of the current
  9360. stack traces. It both returns the stacks to the caller and logs them.
  9361. Currently the stack traces are done sequentially rather than exactly the
  9362. same data.]]>
  9363. </doc>
  9364. </class>
  9365. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  9366. </package>
  9367. <package name="org.apache.hadoop.http.lib">
  9368. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9369. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  9370. abstract="false"
  9371. static="false" final="false" visibility="public"
  9372. deprecated="not deprecated">
  9373. <constructor name="StaticUserWebFilter"
  9374. static="false" final="false" visibility="public"
  9375. deprecated="not deprecated">
  9376. </constructor>
  9377. <method name="initFilter"
  9378. abstract="false" native="false" synchronized="false"
  9379. static="false" final="false" visibility="public"
  9380. deprecated="not deprecated">
  9381. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  9382. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9383. </method>
  9384. <doc>
  9385. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  9386. so that the web UI is usable for a secure cluster without authentication.]]>
  9387. </doc>
  9388. </class>
  9389. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9390. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9391. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  9392. abstract="false"
  9393. static="true" final="false" visibility="public"
  9394. deprecated="not deprecated">
  9395. <implements name="javax.servlet.Filter"/>
  9396. <constructor name="StaticUserWebFilter.StaticUserFilter"
  9397. static="false" final="false" visibility="public"
  9398. deprecated="not deprecated">
  9399. </constructor>
  9400. <method name="destroy"
  9401. abstract="false" native="false" synchronized="false"
  9402. static="false" final="false" visibility="public"
  9403. deprecated="not deprecated">
  9404. </method>
  9405. <method name="doFilter"
  9406. abstract="false" native="false" synchronized="false"
  9407. static="false" final="false" visibility="public"
  9408. deprecated="not deprecated">
  9409. <param name="request" type="javax.servlet.ServletRequest"/>
  9410. <param name="response" type="javax.servlet.ServletResponse"/>
  9411. <param name="chain" type="javax.servlet.FilterChain"/>
  9412. <exception name="IOException" type="java.io.IOException"/>
  9413. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9414. </method>
  9415. <method name="init"
  9416. abstract="false" native="false" synchronized="false"
  9417. static="false" final="false" visibility="public"
  9418. deprecated="not deprecated">
  9419. <param name="conf" type="javax.servlet.FilterConfig"/>
  9420. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9421. </method>
  9422. </class>
  9423. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9424. </package>
  9425. <package name="org.apache.hadoop.io">
  9426. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  9427. <class name="AbstractMapWritable" extends="java.lang.Object"
  9428. abstract="true"
  9429. static="false" final="false" visibility="public"
  9430. deprecated="not deprecated">
  9431. <implements name="org.apache.hadoop.io.Writable"/>
  9432. <implements name="org.apache.hadoop.conf.Configurable"/>
  9433. <constructor name="AbstractMapWritable"
  9434. static="false" final="false" visibility="protected"
  9435. deprecated="not deprecated">
  9436. <doc>
  9437. <![CDATA[constructor.]]>
  9438. </doc>
  9439. </constructor>
  9440. <method name="addToMap"
  9441. abstract="false" native="false" synchronized="true"
  9442. static="false" final="false" visibility="protected"
  9443. deprecated="not deprecated">
  9444. <param name="clazz" type="java.lang.Class"/>
  9445. <doc>
  9446. <![CDATA[Add a Class to the maps if it is not already present.]]>
  9447. </doc>
  9448. </method>
  9449. <method name="getClass" return="java.lang.Class"
  9450. abstract="false" native="false" synchronized="false"
  9451. static="false" final="false" visibility="protected"
  9452. deprecated="not deprecated">
  9453. <param name="id" type="byte"/>
  9454. <doc>
  9455. <![CDATA[@return the Class class for the specified id]]>
  9456. </doc>
  9457. </method>
  9458. <method name="getId" return="byte"
  9459. abstract="false" native="false" synchronized="false"
  9460. static="false" final="false" visibility="protected"
  9461. deprecated="not deprecated">
  9462. <param name="clazz" type="java.lang.Class"/>
  9463. <doc>
  9464. <![CDATA[@return the id for the specified Class]]>
  9465. </doc>
  9466. </method>
  9467. <method name="copy"
  9468. abstract="false" native="false" synchronized="true"
  9469. static="false" final="false" visibility="protected"
  9470. deprecated="not deprecated">
  9471. <param name="other" type="org.apache.hadoop.io.Writable"/>
  9472. <doc>
  9473. <![CDATA[Used by child copy constructors.]]>
  9474. </doc>
  9475. </method>
  9476. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9477. abstract="false" native="false" synchronized="false"
  9478. static="false" final="false" visibility="public"
  9479. deprecated="not deprecated">
  9480. <doc>
  9481. <![CDATA[@return the conf]]>
  9482. </doc>
  9483. </method>
  9484. <method name="setConf"
  9485. abstract="false" native="false" synchronized="false"
  9486. static="false" final="false" visibility="public"
  9487. deprecated="not deprecated">
  9488. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9489. <doc>
  9490. <![CDATA[@param conf the conf to set]]>
  9491. </doc>
  9492. </method>
  9493. <method name="write"
  9494. abstract="false" native="false" synchronized="false"
  9495. static="false" final="false" visibility="public"
  9496. deprecated="not deprecated">
  9497. <param name="out" type="java.io.DataOutput"/>
  9498. <exception name="IOException" type="java.io.IOException"/>
  9499. <doc>
  9500. <![CDATA[{@inheritDoc}]]>
  9501. </doc>
  9502. </method>
  9503. <method name="readFields"
  9504. abstract="false" native="false" synchronized="false"
  9505. static="false" final="false" visibility="public"
  9506. deprecated="not deprecated">
  9507. <param name="in" type="java.io.DataInput"/>
  9508. <exception name="IOException" type="java.io.IOException"/>
  9509. <doc>
  9510. <![CDATA[{@inheritDoc}]]>
  9511. </doc>
  9512. </method>
  9513. <doc>
  9514. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  9515. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  9516. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  9517. maps travel with the class instead of being static.
  9518. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  9519. in any specific map instance.]]>
  9520. </doc>
  9521. </class>
  9522. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  9523. <!-- start class org.apache.hadoop.io.ArrayFile -->
  9524. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  9525. abstract="false"
  9526. static="false" final="false" visibility="public"
  9527. deprecated="not deprecated">
  9528. <constructor name="ArrayFile"
  9529. static="false" final="false" visibility="protected"
  9530. deprecated="not deprecated">
  9531. </constructor>
  9532. <doc>
  9533. <![CDATA[A dense file-based mapping from integers to values.]]>
  9534. </doc>
  9535. </class>
  9536. <!-- end class org.apache.hadoop.io.ArrayFile -->
  9537. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  9538. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9539. abstract="false"
  9540. static="true" final="false" visibility="public"
  9541. deprecated="not deprecated">
  9542. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9543. static="false" final="false" visibility="public"
  9544. deprecated="not deprecated">
  9545. <exception name="IOException" type="java.io.IOException"/>
  9546. <doc>
  9547. <![CDATA[Construct an array reader for the named file.]]>
  9548. </doc>
  9549. </constructor>
  9550. <method name="seek"
  9551. abstract="false" native="false" synchronized="true"
  9552. static="false" final="false" visibility="public"
  9553. deprecated="not deprecated">
  9554. <param name="n" type="long"/>
  9555. <exception name="IOException" type="java.io.IOException"/>
  9556. <doc>
  9557. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  9558. </doc>
  9559. </method>
  9560. <method name="next" return="org.apache.hadoop.io.Writable"
  9561. abstract="false" native="false" synchronized="true"
  9562. static="false" final="false" visibility="public"
  9563. deprecated="not deprecated">
  9564. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9565. <exception name="IOException" type="java.io.IOException"/>
  9566. <doc>
  9567. <![CDATA[Read and return the next value in the file.]]>
  9568. </doc>
  9569. </method>
  9570. <method name="key" return="long"
  9571. abstract="false" native="false" synchronized="true"
  9572. static="false" final="false" visibility="public"
  9573. deprecated="not deprecated">
  9574. <exception name="IOException" type="java.io.IOException"/>
  9575. <doc>
  9576. <![CDATA[Returns the key associated with the most recent call to {@link
  9577. #seek(long)}, {@link #next(Writable)}, or {@link
  9578. #get(long,Writable)}.]]>
  9579. </doc>
  9580. </method>
  9581. <method name="get" return="org.apache.hadoop.io.Writable"
  9582. abstract="false" native="false" synchronized="true"
  9583. static="false" final="false" visibility="public"
  9584. deprecated="not deprecated">
  9585. <param name="n" type="long"/>
  9586. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9587. <exception name="IOException" type="java.io.IOException"/>
  9588. <doc>
  9589. <![CDATA[Return the <code>n</code>th value in the file.]]>
  9590. </doc>
  9591. </method>
  9592. <doc>
  9593. <![CDATA[Provide access to an existing array file.]]>
  9594. </doc>
  9595. </class>
  9596. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  9597. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  9598. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9599. abstract="false"
  9600. static="true" final="false" visibility="public"
  9601. deprecated="not deprecated">
  9602. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  9603. static="false" final="false" visibility="public"
  9604. deprecated="not deprecated">
  9605. <exception name="IOException" type="java.io.IOException"/>
  9606. <doc>
  9607. <![CDATA[Create the named file for values of the named class.]]>
  9608. </doc>
  9609. </constructor>
  9610. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  9611. static="false" final="false" visibility="public"
  9612. deprecated="not deprecated">
  9613. <exception name="IOException" type="java.io.IOException"/>
  9614. <doc>
  9615. <![CDATA[Create the named file for values of the named class.]]>
  9616. </doc>
  9617. </constructor>
  9618. <method name="append"
  9619. abstract="false" native="false" synchronized="true"
  9620. static="false" final="false" visibility="public"
  9621. deprecated="not deprecated">
  9622. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9623. <exception name="IOException" type="java.io.IOException"/>
  9624. <doc>
  9625. <![CDATA[Append a value to the file.]]>
  9626. </doc>
  9627. </method>
  9628. <doc>
  9629. <![CDATA[Write a new array file.]]>
  9630. </doc>
  9631. </class>
  9632. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  9633. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  9634. <class name="ArrayWritable" extends="java.lang.Object"
  9635. abstract="false"
  9636. static="false" final="false" visibility="public"
  9637. deprecated="not deprecated">
  9638. <implements name="org.apache.hadoop.io.Writable"/>
  9639. <constructor name="ArrayWritable" type="java.lang.Class"
  9640. static="false" final="false" visibility="public"
  9641. deprecated="not deprecated">
  9642. </constructor>
  9643. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  9644. static="false" final="false" visibility="public"
  9645. deprecated="not deprecated">
  9646. </constructor>
  9647. <constructor name="ArrayWritable" type="java.lang.String[]"
  9648. static="false" final="false" visibility="public"
  9649. deprecated="not deprecated">
  9650. </constructor>
  9651. <method name="getValueClass" return="java.lang.Class"
  9652. abstract="false" native="false" synchronized="false"
  9653. static="false" final="false" visibility="public"
  9654. deprecated="not deprecated">
  9655. </method>
  9656. <method name="toStrings" return="java.lang.String[]"
  9657. abstract="false" native="false" synchronized="false"
  9658. static="false" final="false" visibility="public"
  9659. deprecated="not deprecated">
  9660. </method>
  9661. <method name="toArray" return="java.lang.Object"
  9662. abstract="false" native="false" synchronized="false"
  9663. static="false" final="false" visibility="public"
  9664. deprecated="not deprecated">
  9665. </method>
  9666. <method name="set"
  9667. abstract="false" native="false" synchronized="false"
  9668. static="false" final="false" visibility="public"
  9669. deprecated="not deprecated">
  9670. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  9671. </method>
  9672. <method name="get" return="org.apache.hadoop.io.Writable[]"
  9673. abstract="false" native="false" synchronized="false"
  9674. static="false" final="false" visibility="public"
  9675. deprecated="not deprecated">
  9676. </method>
  9677. <method name="readFields"
  9678. abstract="false" native="false" synchronized="false"
  9679. static="false" final="false" visibility="public"
  9680. deprecated="not deprecated">
  9681. <param name="in" type="java.io.DataInput"/>
  9682. <exception name="IOException" type="java.io.IOException"/>
  9683. </method>
  9684. <method name="write"
  9685. abstract="false" native="false" synchronized="false"
  9686. static="false" final="false" visibility="public"
  9687. deprecated="not deprecated">
  9688. <param name="out" type="java.io.DataOutput"/>
  9689. <exception name="IOException" type="java.io.IOException"/>
  9690. </method>
  9691. <doc>
  9692. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  9693. writable must all be instances of the same class. If this writable will be
  9694. the input for a Reducer, you will need to create a subclass that sets the
  9695. value to be of the proper type.
  9696. For example:
  9697. <code>
  9698. public class IntArrayWritable extends ArrayWritable {
  9699. public IntArrayWritable() {
  9700. super(IntWritable.class);
  9701. }
  9702. }
  9703. </code>]]>
  9704. </doc>
  9705. </class>
  9706. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  9707. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  9708. <class name="BinaryComparable" extends="java.lang.Object"
  9709. abstract="true"
  9710. static="false" final="false" visibility="public"
  9711. deprecated="not deprecated">
  9712. <implements name="java.lang.Comparable"/>
  9713. <constructor name="BinaryComparable"
  9714. static="false" final="false" visibility="public"
  9715. deprecated="not deprecated">
  9716. </constructor>
  9717. <method name="getLength" return="int"
  9718. abstract="true" native="false" synchronized="false"
  9719. static="false" final="false" visibility="public"
  9720. deprecated="not deprecated">
  9721. <doc>
  9722. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  9723. </doc>
  9724. </method>
  9725. <method name="getBytes" return="byte[]"
  9726. abstract="true" native="false" synchronized="false"
  9727. static="false" final="false" visibility="public"
  9728. deprecated="not deprecated">
  9729. <doc>
  9730. <![CDATA[Return representative byte array for this instance.]]>
  9731. </doc>
  9732. </method>
  9733. <method name="compareTo" return="int"
  9734. abstract="false" native="false" synchronized="false"
  9735. static="false" final="false" visibility="public"
  9736. deprecated="not deprecated">
  9737. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  9738. <doc>
  9739. <![CDATA[Compare bytes from {#getBytes()}.
  9740. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  9741. </doc>
  9742. </method>
  9743. <method name="compareTo" return="int"
  9744. abstract="false" native="false" synchronized="false"
  9745. static="false" final="false" visibility="public"
  9746. deprecated="not deprecated">
  9747. <param name="other" type="byte[]"/>
  9748. <param name="off" type="int"/>
  9749. <param name="len" type="int"/>
  9750. <doc>
  9751. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  9752. </doc>
  9753. </method>
  9754. <method name="equals" return="boolean"
  9755. abstract="false" native="false" synchronized="false"
  9756. static="false" final="false" visibility="public"
  9757. deprecated="not deprecated">
  9758. <param name="other" type="java.lang.Object"/>
  9759. <doc>
  9760. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  9761. </doc>
  9762. </method>
  9763. <method name="hashCode" return="int"
  9764. abstract="false" native="false" synchronized="false"
  9765. static="false" final="false" visibility="public"
  9766. deprecated="not deprecated">
  9767. <doc>
  9768. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  9769. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  9770. </doc>
  9771. </method>
  9772. <doc>
  9773. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  9774. types supporting ordering/permutation by a representative set of bytes.]]>
  9775. </doc>
  9776. </class>
  9777. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  9778. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  9779. <class name="BloomMapFile" extends="java.lang.Object"
  9780. abstract="false"
  9781. static="false" final="false" visibility="public"
  9782. deprecated="not deprecated">
  9783. <constructor name="BloomMapFile"
  9784. static="false" final="false" visibility="public"
  9785. deprecated="not deprecated">
  9786. </constructor>
  9787. <method name="delete"
  9788. abstract="false" native="false" synchronized="false"
  9789. static="true" final="false" visibility="public"
  9790. deprecated="not deprecated">
  9791. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9792. <param name="name" type="java.lang.String"/>
  9793. <exception name="IOException" type="java.io.IOException"/>
  9794. </method>
  9795. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  9796. transient="false" volatile="false"
  9797. static="true" final="true" visibility="public"
  9798. deprecated="not deprecated">
  9799. </field>
  9800. <field name="HASH_COUNT" type="int"
  9801. transient="false" volatile="false"
  9802. static="true" final="true" visibility="public"
  9803. deprecated="not deprecated">
  9804. </field>
  9805. <doc>
  9806. <![CDATA[This class extends {@link MapFile} and provides very much the same
  9807. functionality. However, it uses dynamic Bloom filters to provide
  9808. quick membership test for keys, and it offers a fast version of
  9809. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  9810. case of sparsely populated MapFile-s.]]>
  9811. </doc>
  9812. </class>
  9813. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  9814. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  9815. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9816. abstract="false"
  9817. static="true" final="false" visibility="public"
  9818. deprecated="not deprecated">
  9819. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9820. static="false" final="false" visibility="public"
  9821. deprecated="not deprecated">
  9822. <exception name="IOException" type="java.io.IOException"/>
  9823. </constructor>
  9824. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  9825. static="false" final="false" visibility="public"
  9826. deprecated="not deprecated">
  9827. <exception name="IOException" type="java.io.IOException"/>
  9828. </constructor>
  9829. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  9830. static="false" final="false" visibility="public"
  9831. deprecated="not deprecated">
  9832. <exception name="IOException" type="java.io.IOException"/>
  9833. </constructor>
  9834. <method name="probablyHasKey" return="boolean"
  9835. abstract="false" native="false" synchronized="false"
  9836. static="false" final="false" visibility="public"
  9837. deprecated="not deprecated">
  9838. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9839. <exception name="IOException" type="java.io.IOException"/>
  9840. <doc>
  9841. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  9842. performed using a Bloom filter, so the result has always non-zero
  9843. probability of false positives.
  9844. @param key key to check
  9845. @return false iff key doesn't exist, true if key probably exists.
  9846. @throws IOException]]>
  9847. </doc>
  9848. </method>
  9849. <method name="get" return="org.apache.hadoop.io.Writable"
  9850. abstract="false" native="false" synchronized="true"
  9851. static="false" final="false" visibility="public"
  9852. deprecated="not deprecated">
  9853. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9854. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9855. <exception name="IOException" type="java.io.IOException"/>
  9856. <doc>
  9857. <![CDATA[Fast version of the
  9858. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  9859. it checks the Bloom filter for the existence of the key, and only if
  9860. present it performs the real get operation. This yields significant
  9861. performance improvements for get operations on sparsely populated files.]]>
  9862. </doc>
  9863. </method>
  9864. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  9865. abstract="false" native="false" synchronized="false"
  9866. static="false" final="false" visibility="public"
  9867. deprecated="not deprecated">
  9868. <doc>
  9869. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  9870. @return a Bloom filter (see {@link Filter})]]>
  9871. </doc>
  9872. </method>
  9873. </class>
  9874. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  9875. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  9876. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9877. abstract="false"
  9878. static="true" final="false" visibility="public"
  9879. deprecated="not deprecated">
  9880. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  9881. static="false" final="false" visibility="public"
  9882. deprecated="not deprecated">
  9883. <exception name="IOException" type="java.io.IOException"/>
  9884. </constructor>
  9885. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  9886. static="false" final="false" visibility="public"
  9887. deprecated="not deprecated">
  9888. <exception name="IOException" type="java.io.IOException"/>
  9889. </constructor>
  9890. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  9891. static="false" final="false" visibility="public"
  9892. deprecated="not deprecated">
  9893. <exception name="IOException" type="java.io.IOException"/>
  9894. </constructor>
  9895. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  9896. static="false" final="false" visibility="public"
  9897. deprecated="not deprecated">
  9898. <exception name="IOException" type="java.io.IOException"/>
  9899. </constructor>
  9900. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  9901. static="false" final="false" visibility="public"
  9902. deprecated="not deprecated">
  9903. <exception name="IOException" type="java.io.IOException"/>
  9904. </constructor>
  9905. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  9906. static="false" final="false" visibility="public"
  9907. deprecated="not deprecated">
  9908. <exception name="IOException" type="java.io.IOException"/>
  9909. </constructor>
  9910. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  9911. static="false" final="false" visibility="public"
  9912. deprecated="not deprecated">
  9913. <exception name="IOException" type="java.io.IOException"/>
  9914. </constructor>
  9915. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  9916. static="false" final="false" visibility="public"
  9917. deprecated="not deprecated">
  9918. <exception name="IOException" type="java.io.IOException"/>
  9919. </constructor>
  9920. <method name="append"
  9921. abstract="false" native="false" synchronized="true"
  9922. static="false" final="false" visibility="public"
  9923. deprecated="not deprecated">
  9924. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9925. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9926. <exception name="IOException" type="java.io.IOException"/>
  9927. </method>
  9928. <method name="close"
  9929. abstract="false" native="false" synchronized="true"
  9930. static="false" final="false" visibility="public"
  9931. deprecated="not deprecated">
  9932. <exception name="IOException" type="java.io.IOException"/>
  9933. </method>
  9934. </class>
  9935. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  9936. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  9937. <class name="BooleanWritable" extends="java.lang.Object"
  9938. abstract="false"
  9939. static="false" final="false" visibility="public"
  9940. deprecated="not deprecated">
  9941. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9942. <constructor name="BooleanWritable"
  9943. static="false" final="false" visibility="public"
  9944. deprecated="not deprecated">
  9945. </constructor>
  9946. <constructor name="BooleanWritable" type="boolean"
  9947. static="false" final="false" visibility="public"
  9948. deprecated="not deprecated">
  9949. </constructor>
  9950. <method name="set"
  9951. abstract="false" native="false" synchronized="false"
  9952. static="false" final="false" visibility="public"
  9953. deprecated="not deprecated">
  9954. <param name="value" type="boolean"/>
  9955. <doc>
  9956. <![CDATA[Set the value of the BooleanWritable]]>
  9957. </doc>
  9958. </method>
  9959. <method name="get" return="boolean"
  9960. abstract="false" native="false" synchronized="false"
  9961. static="false" final="false" visibility="public"
  9962. deprecated="not deprecated">
  9963. <doc>
  9964. <![CDATA[Returns the value of the BooleanWritable]]>
  9965. </doc>
  9966. </method>
  9967. <method name="readFields"
  9968. abstract="false" native="false" synchronized="false"
  9969. static="false" final="false" visibility="public"
  9970. deprecated="not deprecated">
  9971. <param name="in" type="java.io.DataInput"/>
  9972. <exception name="IOException" type="java.io.IOException"/>
  9973. </method>
  9974. <method name="write"
  9975. abstract="false" native="false" synchronized="false"
  9976. static="false" final="false" visibility="public"
  9977. deprecated="not deprecated">
  9978. <param name="out" type="java.io.DataOutput"/>
  9979. <exception name="IOException" type="java.io.IOException"/>
  9980. </method>
  9981. <method name="equals" return="boolean"
  9982. abstract="false" native="false" synchronized="false"
  9983. static="false" final="false" visibility="public"
  9984. deprecated="not deprecated">
  9985. <param name="o" type="java.lang.Object"/>
  9986. </method>
  9987. <method name="hashCode" return="int"
  9988. abstract="false" native="false" synchronized="false"
  9989. static="false" final="false" visibility="public"
  9990. deprecated="not deprecated">
  9991. </method>
  9992. <method name="compareTo" return="int"
  9993. abstract="false" native="false" synchronized="false"
  9994. static="false" final="false" visibility="public"
  9995. deprecated="not deprecated">
  9996. <param name="o" type="java.lang.Object"/>
  9997. </method>
  9998. <method name="toString" return="java.lang.String"
  9999. abstract="false" native="false" synchronized="false"
  10000. static="false" final="false" visibility="public"
  10001. deprecated="not deprecated">
  10002. </method>
  10003. <doc>
  10004. <![CDATA[A WritableComparable for booleans.]]>
  10005. </doc>
  10006. </class>
  10007. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  10008. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10009. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10010. abstract="false"
  10011. static="true" final="false" visibility="public"
  10012. deprecated="not deprecated">
  10013. <constructor name="BooleanWritable.Comparator"
  10014. static="false" final="false" visibility="public"
  10015. deprecated="not deprecated">
  10016. </constructor>
  10017. <method name="compare" return="int"
  10018. abstract="false" native="false" synchronized="false"
  10019. static="false" final="false" visibility="public"
  10020. deprecated="not deprecated">
  10021. <param name="b1" type="byte[]"/>
  10022. <param name="s1" type="int"/>
  10023. <param name="l1" type="int"/>
  10024. <param name="b2" type="byte[]"/>
  10025. <param name="s2" type="int"/>
  10026. <param name="l2" type="int"/>
  10027. </method>
  10028. <doc>
  10029. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  10030. </doc>
  10031. </class>
  10032. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10033. <!-- start class org.apache.hadoop.io.BytesWritable -->
  10034. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  10035. abstract="false"
  10036. static="false" final="false" visibility="public"
  10037. deprecated="not deprecated">
  10038. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10039. <constructor name="BytesWritable"
  10040. static="false" final="false" visibility="public"
  10041. deprecated="not deprecated">
  10042. <doc>
  10043. <![CDATA[Create a zero-size sequence.]]>
  10044. </doc>
  10045. </constructor>
  10046. <constructor name="BytesWritable" type="byte[]"
  10047. static="false" final="false" visibility="public"
  10048. deprecated="not deprecated">
  10049. <doc>
  10050. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  10051. @param bytes This array becomes the backing storage for the object.]]>
  10052. </doc>
  10053. </constructor>
  10054. <method name="getBytes" return="byte[]"
  10055. abstract="false" native="false" synchronized="false"
  10056. static="false" final="false" visibility="public"
  10057. deprecated="not deprecated">
  10058. <doc>
  10059. <![CDATA[Get the data from the BytesWritable.
  10060. @return The data is only valid between 0 and getLength() - 1.]]>
  10061. </doc>
  10062. </method>
  10063. <method name="get" return="byte[]"
  10064. abstract="false" native="false" synchronized="false"
  10065. static="false" final="false" visibility="public"
  10066. deprecated="Use {@link #getBytes()} instead.">
  10067. <doc>
  10068. <![CDATA[Get the data from the BytesWritable.
  10069. @deprecated Use {@link #getBytes()} instead.]]>
  10070. </doc>
  10071. </method>
  10072. <method name="getLength" return="int"
  10073. abstract="false" native="false" synchronized="false"
  10074. static="false" final="false" visibility="public"
  10075. deprecated="not deprecated">
  10076. <doc>
  10077. <![CDATA[Get the current size of the buffer.]]>
  10078. </doc>
  10079. </method>
  10080. <method name="getSize" return="int"
  10081. abstract="false" native="false" synchronized="false"
  10082. static="false" final="false" visibility="public"
  10083. deprecated="Use {@link #getLength()} instead.">
  10084. <doc>
  10085. <![CDATA[Get the current size of the buffer.
  10086. @deprecated Use {@link #getLength()} instead.]]>
  10087. </doc>
  10088. </method>
  10089. <method name="setSize"
  10090. abstract="false" native="false" synchronized="false"
  10091. static="false" final="false" visibility="public"
  10092. deprecated="not deprecated">
  10093. <param name="size" type="int"/>
  10094. <doc>
  10095. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  10096. and any new values are undefined. The capacity is changed if it is
  10097. necessary.
  10098. @param size The new number of bytes]]>
  10099. </doc>
  10100. </method>
  10101. <method name="getCapacity" return="int"
  10102. abstract="false" native="false" synchronized="false"
  10103. static="false" final="false" visibility="public"
  10104. deprecated="not deprecated">
  10105. <doc>
  10106. <![CDATA[Get the capacity, which is the maximum size that could handled without
  10107. resizing the backing storage.
  10108. @return The number of bytes]]>
  10109. </doc>
  10110. </method>
  10111. <method name="setCapacity"
  10112. abstract="false" native="false" synchronized="false"
  10113. static="false" final="false" visibility="public"
  10114. deprecated="not deprecated">
  10115. <param name="new_cap" type="int"/>
  10116. <doc>
  10117. <![CDATA[Change the capacity of the backing storage.
  10118. The data is preserved.
  10119. @param new_cap The new capacity in bytes.]]>
  10120. </doc>
  10121. </method>
  10122. <method name="set"
  10123. abstract="false" native="false" synchronized="false"
  10124. static="false" final="false" visibility="public"
  10125. deprecated="not deprecated">
  10126. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  10127. <doc>
  10128. <![CDATA[Set the BytesWritable to the contents of the given newData.
  10129. @param newData the value to set this BytesWritable to.]]>
  10130. </doc>
  10131. </method>
  10132. <method name="set"
  10133. abstract="false" native="false" synchronized="false"
  10134. static="false" final="false" visibility="public"
  10135. deprecated="not deprecated">
  10136. <param name="newData" type="byte[]"/>
  10137. <param name="offset" type="int"/>
  10138. <param name="length" type="int"/>
  10139. <doc>
  10140. <![CDATA[Set the value to a copy of the given byte range
  10141. @param newData the new values to copy in
  10142. @param offset the offset in newData to start at
  10143. @param length the number of bytes to copy]]>
  10144. </doc>
  10145. </method>
  10146. <method name="readFields"
  10147. abstract="false" native="false" synchronized="false"
  10148. static="false" final="false" visibility="public"
  10149. deprecated="not deprecated">
  10150. <param name="in" type="java.io.DataInput"/>
  10151. <exception name="IOException" type="java.io.IOException"/>
  10152. </method>
  10153. <method name="write"
  10154. abstract="false" native="false" synchronized="false"
  10155. static="false" final="false" visibility="public"
  10156. deprecated="not deprecated">
  10157. <param name="out" type="java.io.DataOutput"/>
  10158. <exception name="IOException" type="java.io.IOException"/>
  10159. </method>
  10160. <method name="hashCode" return="int"
  10161. abstract="false" native="false" synchronized="false"
  10162. static="false" final="false" visibility="public"
  10163. deprecated="not deprecated">
  10164. </method>
  10165. <method name="equals" return="boolean"
  10166. abstract="false" native="false" synchronized="false"
  10167. static="false" final="false" visibility="public"
  10168. deprecated="not deprecated">
  10169. <param name="right_obj" type="java.lang.Object"/>
  10170. <doc>
  10171. <![CDATA[Are the two byte sequences equal?]]>
  10172. </doc>
  10173. </method>
  10174. <method name="toString" return="java.lang.String"
  10175. abstract="false" native="false" synchronized="false"
  10176. static="false" final="false" visibility="public"
  10177. deprecated="not deprecated">
  10178. <doc>
  10179. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  10180. </doc>
  10181. </method>
  10182. <doc>
  10183. <![CDATA[A byte sequence that is usable as a key or value.
  10184. It is resizable and distinguishes between the size of the seqeunce and
  10185. the current capacity. The hash function is the front of the md5 of the
  10186. buffer. The sort order is the same as memcmp.]]>
  10187. </doc>
  10188. </class>
  10189. <!-- end class org.apache.hadoop.io.BytesWritable -->
  10190. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  10191. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10192. abstract="false"
  10193. static="true" final="false" visibility="public"
  10194. deprecated="not deprecated">
  10195. <constructor name="BytesWritable.Comparator"
  10196. static="false" final="false" visibility="public"
  10197. deprecated="not deprecated">
  10198. </constructor>
  10199. <method name="compare" return="int"
  10200. abstract="false" native="false" synchronized="false"
  10201. static="false" final="false" visibility="public"
  10202. deprecated="not deprecated">
  10203. <param name="b1" type="byte[]"/>
  10204. <param name="s1" type="int"/>
  10205. <param name="l1" type="int"/>
  10206. <param name="b2" type="byte[]"/>
  10207. <param name="s2" type="int"/>
  10208. <param name="l2" type="int"/>
  10209. <doc>
  10210. <![CDATA[Compare the buffers in serialized form.]]>
  10211. </doc>
  10212. </method>
  10213. <doc>
  10214. <![CDATA[A Comparator optimized for BytesWritable.]]>
  10215. </doc>
  10216. </class>
  10217. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  10218. <!-- start class org.apache.hadoop.io.ByteWritable -->
  10219. <class name="ByteWritable" extends="java.lang.Object"
  10220. abstract="false"
  10221. static="false" final="false" visibility="public"
  10222. deprecated="not deprecated">
  10223. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10224. <constructor name="ByteWritable"
  10225. static="false" final="false" visibility="public"
  10226. deprecated="not deprecated">
  10227. </constructor>
  10228. <constructor name="ByteWritable" type="byte"
  10229. static="false" final="false" visibility="public"
  10230. deprecated="not deprecated">
  10231. </constructor>
  10232. <method name="set"
  10233. abstract="false" native="false" synchronized="false"
  10234. static="false" final="false" visibility="public"
  10235. deprecated="not deprecated">
  10236. <param name="value" type="byte"/>
  10237. <doc>
  10238. <![CDATA[Set the value of this ByteWritable.]]>
  10239. </doc>
  10240. </method>
  10241. <method name="get" return="byte"
  10242. abstract="false" native="false" synchronized="false"
  10243. static="false" final="false" visibility="public"
  10244. deprecated="not deprecated">
  10245. <doc>
  10246. <![CDATA[Return the value of this ByteWritable.]]>
  10247. </doc>
  10248. </method>
  10249. <method name="readFields"
  10250. abstract="false" native="false" synchronized="false"
  10251. static="false" final="false" visibility="public"
  10252. deprecated="not deprecated">
  10253. <param name="in" type="java.io.DataInput"/>
  10254. <exception name="IOException" type="java.io.IOException"/>
  10255. </method>
  10256. <method name="write"
  10257. abstract="false" native="false" synchronized="false"
  10258. static="false" final="false" visibility="public"
  10259. deprecated="not deprecated">
  10260. <param name="out" type="java.io.DataOutput"/>
  10261. <exception name="IOException" type="java.io.IOException"/>
  10262. </method>
  10263. <method name="equals" return="boolean"
  10264. abstract="false" native="false" synchronized="false"
  10265. static="false" final="false" visibility="public"
  10266. deprecated="not deprecated">
  10267. <param name="o" type="java.lang.Object"/>
  10268. <doc>
  10269. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  10270. </doc>
  10271. </method>
  10272. <method name="hashCode" return="int"
  10273. abstract="false" native="false" synchronized="false"
  10274. static="false" final="false" visibility="public"
  10275. deprecated="not deprecated">
  10276. </method>
  10277. <method name="compareTo" return="int"
  10278. abstract="false" native="false" synchronized="false"
  10279. static="false" final="false" visibility="public"
  10280. deprecated="not deprecated">
  10281. <param name="o" type="java.lang.Object"/>
  10282. <doc>
  10283. <![CDATA[Compares two ByteWritables.]]>
  10284. </doc>
  10285. </method>
  10286. <method name="toString" return="java.lang.String"
  10287. abstract="false" native="false" synchronized="false"
  10288. static="false" final="false" visibility="public"
  10289. deprecated="not deprecated">
  10290. </method>
  10291. <doc>
  10292. <![CDATA[A WritableComparable for a single byte.]]>
  10293. </doc>
  10294. </class>
  10295. <!-- end class org.apache.hadoop.io.ByteWritable -->
  10296. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  10297. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10298. abstract="false"
  10299. static="true" final="false" visibility="public"
  10300. deprecated="not deprecated">
  10301. <constructor name="ByteWritable.Comparator"
  10302. static="false" final="false" visibility="public"
  10303. deprecated="not deprecated">
  10304. </constructor>
  10305. <method name="compare" return="int"
  10306. abstract="false" native="false" synchronized="false"
  10307. static="false" final="false" visibility="public"
  10308. deprecated="not deprecated">
  10309. <param name="b1" type="byte[]"/>
  10310. <param name="s1" type="int"/>
  10311. <param name="l1" type="int"/>
  10312. <param name="b2" type="byte[]"/>
  10313. <param name="s2" type="int"/>
  10314. <param name="l2" type="int"/>
  10315. </method>
  10316. <doc>
  10317. <![CDATA[A Comparator optimized for ByteWritable.]]>
  10318. </doc>
  10319. </class>
  10320. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  10321. <!-- start interface org.apache.hadoop.io.Closeable -->
  10322. <interface name="Closeable" abstract="true"
  10323. static="false" final="false" visibility="public"
  10324. deprecated="use java.io.Closeable">
  10325. <implements name="java.io.Closeable"/>
  10326. <doc>
  10327. <![CDATA[@deprecated use java.io.Closeable]]>
  10328. </doc>
  10329. </interface>
  10330. <!-- end interface org.apache.hadoop.io.Closeable -->
  10331. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  10332. <class name="CompressedWritable" extends="java.lang.Object"
  10333. abstract="true"
  10334. static="false" final="false" visibility="public"
  10335. deprecated="not deprecated">
  10336. <implements name="org.apache.hadoop.io.Writable"/>
  10337. <constructor name="CompressedWritable"
  10338. static="false" final="false" visibility="public"
  10339. deprecated="not deprecated">
  10340. </constructor>
  10341. <method name="readFields"
  10342. abstract="false" native="false" synchronized="false"
  10343. static="false" final="true" visibility="public"
  10344. deprecated="not deprecated">
  10345. <param name="in" type="java.io.DataInput"/>
  10346. <exception name="IOException" type="java.io.IOException"/>
  10347. </method>
  10348. <method name="ensureInflated"
  10349. abstract="false" native="false" synchronized="false"
  10350. static="false" final="false" visibility="protected"
  10351. deprecated="not deprecated">
  10352. <doc>
  10353. <![CDATA[Must be called by all methods which access fields to ensure that the data
  10354. has been uncompressed.]]>
  10355. </doc>
  10356. </method>
  10357. <method name="readFieldsCompressed"
  10358. abstract="true" native="false" synchronized="false"
  10359. static="false" final="false" visibility="protected"
  10360. deprecated="not deprecated">
  10361. <param name="in" type="java.io.DataInput"/>
  10362. <exception name="IOException" type="java.io.IOException"/>
  10363. <doc>
  10364. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  10365. </doc>
  10366. </method>
  10367. <method name="write"
  10368. abstract="false" native="false" synchronized="false"
  10369. static="false" final="true" visibility="public"
  10370. deprecated="not deprecated">
  10371. <param name="out" type="java.io.DataOutput"/>
  10372. <exception name="IOException" type="java.io.IOException"/>
  10373. </method>
  10374. <method name="writeCompressed"
  10375. abstract="true" native="false" synchronized="false"
  10376. static="false" final="false" visibility="protected"
  10377. deprecated="not deprecated">
  10378. <param name="out" type="java.io.DataOutput"/>
  10379. <exception name="IOException" type="java.io.IOException"/>
  10380. <doc>
  10381. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  10382. </doc>
  10383. </method>
  10384. <doc>
  10385. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  10386. inflate on field access. This is useful for large objects whose fields are
  10387. not be altered during a map or reduce operation: leaving the field data
  10388. compressed makes copying the instance from one file to another much
  10389. faster.]]>
  10390. </doc>
  10391. </class>
  10392. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  10393. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  10394. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  10395. abstract="false"
  10396. static="false" final="false" visibility="public"
  10397. deprecated="not deprecated">
  10398. <constructor name="DataInputBuffer"
  10399. static="false" final="false" visibility="public"
  10400. deprecated="not deprecated">
  10401. <doc>
  10402. <![CDATA[Constructs a new empty buffer.]]>
  10403. </doc>
  10404. </constructor>
  10405. <method name="reset"
  10406. abstract="false" native="false" synchronized="false"
  10407. static="false" final="false" visibility="public"
  10408. deprecated="not deprecated">
  10409. <param name="input" type="byte[]"/>
  10410. <param name="length" type="int"/>
  10411. <doc>
  10412. <![CDATA[Resets the data that the buffer reads.]]>
  10413. </doc>
  10414. </method>
  10415. <method name="reset"
  10416. abstract="false" native="false" synchronized="false"
  10417. static="false" final="false" visibility="public"
  10418. deprecated="not deprecated">
  10419. <param name="input" type="byte[]"/>
  10420. <param name="start" type="int"/>
  10421. <param name="length" type="int"/>
  10422. <doc>
  10423. <![CDATA[Resets the data that the buffer reads.]]>
  10424. </doc>
  10425. </method>
  10426. <method name="getData" return="byte[]"
  10427. abstract="false" native="false" synchronized="false"
  10428. static="false" final="false" visibility="public"
  10429. deprecated="not deprecated">
  10430. </method>
  10431. <method name="getPosition" return="int"
  10432. abstract="false" native="false" synchronized="false"
  10433. static="false" final="false" visibility="public"
  10434. deprecated="not deprecated">
  10435. <doc>
  10436. <![CDATA[Returns the current position in the input.]]>
  10437. </doc>
  10438. </method>
  10439. <method name="getLength" return="int"
  10440. abstract="false" native="false" synchronized="false"
  10441. static="false" final="false" visibility="public"
  10442. deprecated="not deprecated">
  10443. <doc>
  10444. <![CDATA[Returns the length of the input.]]>
  10445. </doc>
  10446. </method>
  10447. <doc>
  10448. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  10449. buffer.
  10450. <p>This saves memory over creating a new DataInputStream and
  10451. ByteArrayInputStream each time data is read.
  10452. <p>Typical usage is something like the following:<pre>
  10453. DataInputBuffer buffer = new DataInputBuffer();
  10454. while (... loop condition ...) {
  10455. byte[] data = ... get data ...;
  10456. int dataLength = ... get data length ...;
  10457. buffer.reset(data, dataLength);
  10458. ... read buffer using DataInput methods ...
  10459. }
  10460. </pre>]]>
  10461. </doc>
  10462. </class>
  10463. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  10464. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  10465. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  10466. abstract="false"
  10467. static="false" final="false" visibility="public"
  10468. deprecated="not deprecated">
  10469. <constructor name="DataOutputBuffer"
  10470. static="false" final="false" visibility="public"
  10471. deprecated="not deprecated">
  10472. <doc>
  10473. <![CDATA[Constructs a new empty buffer.]]>
  10474. </doc>
  10475. </constructor>
  10476. <constructor name="DataOutputBuffer" type="int"
  10477. static="false" final="false" visibility="public"
  10478. deprecated="not deprecated">
  10479. </constructor>
  10480. <method name="getData" return="byte[]"
  10481. abstract="false" native="false" synchronized="false"
  10482. static="false" final="false" visibility="public"
  10483. deprecated="not deprecated">
  10484. <doc>
  10485. <![CDATA[Returns the current contents of the buffer.
  10486. Data is only valid to {@link #getLength()}.]]>
  10487. </doc>
  10488. </method>
  10489. <method name="getLength" return="int"
  10490. abstract="false" native="false" synchronized="false"
  10491. static="false" final="false" visibility="public"
  10492. deprecated="not deprecated">
  10493. <doc>
  10494. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  10495. </doc>
  10496. </method>
  10497. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  10498. abstract="false" native="false" synchronized="false"
  10499. static="false" final="false" visibility="public"
  10500. deprecated="not deprecated">
  10501. <doc>
  10502. <![CDATA[Resets the buffer to empty.]]>
  10503. </doc>
  10504. </method>
  10505. <method name="write"
  10506. abstract="false" native="false" synchronized="false"
  10507. static="false" final="false" visibility="public"
  10508. deprecated="not deprecated">
  10509. <param name="in" type="java.io.DataInput"/>
  10510. <param name="length" type="int"/>
  10511. <exception name="IOException" type="java.io.IOException"/>
  10512. <doc>
  10513. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  10514. </doc>
  10515. </method>
  10516. <method name="writeTo"
  10517. abstract="false" native="false" synchronized="false"
  10518. static="false" final="false" visibility="public"
  10519. deprecated="not deprecated">
  10520. <param name="out" type="java.io.OutputStream"/>
  10521. <exception name="IOException" type="java.io.IOException"/>
  10522. <doc>
  10523. <![CDATA[Write to a file stream]]>
  10524. </doc>
  10525. </method>
  10526. <doc>
  10527. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  10528. buffer.
  10529. <p>This saves memory over creating a new DataOutputStream and
  10530. ByteArrayOutputStream each time data is written.
  10531. <p>Typical usage is something like the following:<pre>
  10532. DataOutputBuffer buffer = new DataOutputBuffer();
  10533. while (... loop condition ...) {
  10534. buffer.reset();
  10535. ... write buffer using DataOutput methods ...
  10536. byte[] data = buffer.getData();
  10537. int dataLength = buffer.getLength();
  10538. ... write data to its ultimate destination ...
  10539. }
  10540. </pre>]]>
  10541. </doc>
  10542. </class>
  10543. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  10544. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  10545. <class name="DefaultStringifier" extends="java.lang.Object"
  10546. abstract="false"
  10547. static="false" final="false" visibility="public"
  10548. deprecated="not deprecated">
  10549. <implements name="org.apache.hadoop.io.Stringifier"/>
  10550. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  10551. static="false" final="false" visibility="public"
  10552. deprecated="not deprecated">
  10553. </constructor>
  10554. <method name="fromString" return="java.lang.Object"
  10555. abstract="false" native="false" synchronized="false"
  10556. static="false" final="false" visibility="public"
  10557. deprecated="not deprecated">
  10558. <param name="str" type="java.lang.String"/>
  10559. <exception name="IOException" type="java.io.IOException"/>
  10560. </method>
  10561. <method name="toString" return="java.lang.String"
  10562. abstract="false" native="false" synchronized="false"
  10563. static="false" final="false" visibility="public"
  10564. deprecated="not deprecated">
  10565. <param name="obj" type="java.lang.Object"/>
  10566. <exception name="IOException" type="java.io.IOException"/>
  10567. </method>
  10568. <method name="close"
  10569. abstract="false" native="false" synchronized="false"
  10570. static="false" final="false" visibility="public"
  10571. deprecated="not deprecated">
  10572. <exception name="IOException" type="java.io.IOException"/>
  10573. </method>
  10574. <method name="store"
  10575. abstract="false" native="false" synchronized="false"
  10576. static="true" final="false" visibility="public"
  10577. deprecated="not deprecated">
  10578. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10579. <param name="item" type="java.lang.Object"/>
  10580. <param name="keyName" type="java.lang.String"/>
  10581. <exception name="IOException" type="java.io.IOException"/>
  10582. <doc>
  10583. <![CDATA[Stores the item in the configuration with the given keyName.
  10584. @param <K> the class of the item
  10585. @param conf the configuration to store
  10586. @param item the object to be stored
  10587. @param keyName the name of the key to use
  10588. @throws IOException : forwards Exceptions from the underlying
  10589. {@link Serialization} classes.]]>
  10590. </doc>
  10591. </method>
  10592. <method name="load" return="java.lang.Object"
  10593. abstract="false" native="false" synchronized="false"
  10594. static="true" final="false" visibility="public"
  10595. deprecated="not deprecated">
  10596. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10597. <param name="keyName" type="java.lang.String"/>
  10598. <param name="itemClass" type="java.lang.Class"/>
  10599. <exception name="IOException" type="java.io.IOException"/>
  10600. <doc>
  10601. <![CDATA[Restores the object from the configuration.
  10602. @param <K> the class of the item
  10603. @param conf the configuration to use
  10604. @param keyName the name of the key to use
  10605. @param itemClass the class of the item
  10606. @return restored object
  10607. @throws IOException : forwards Exceptions from the underlying
  10608. {@link Serialization} classes.]]>
  10609. </doc>
  10610. </method>
  10611. <method name="storeArray"
  10612. abstract="false" native="false" synchronized="false"
  10613. static="true" final="false" visibility="public"
  10614. deprecated="not deprecated">
  10615. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10616. <param name="items" type="java.lang.Object[]"/>
  10617. <param name="keyName" type="java.lang.String"/>
  10618. <exception name="IOException" type="java.io.IOException"/>
  10619. <doc>
  10620. <![CDATA[Stores the array of items in the configuration with the given keyName.
  10621. @param <K> the class of the item
  10622. @param conf the configuration to use
  10623. @param items the objects to be stored
  10624. @param keyName the name of the key to use
  10625. @throws IndexOutOfBoundsException if the items array is empty
  10626. @throws IOException : forwards Exceptions from the underlying
  10627. {@link Serialization} classes.]]>
  10628. </doc>
  10629. </method>
  10630. <method name="loadArray" return="java.lang.Object[]"
  10631. abstract="false" native="false" synchronized="false"
  10632. static="true" final="false" visibility="public"
  10633. deprecated="not deprecated">
  10634. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10635. <param name="keyName" type="java.lang.String"/>
  10636. <param name="itemClass" type="java.lang.Class"/>
  10637. <exception name="IOException" type="java.io.IOException"/>
  10638. <doc>
  10639. <![CDATA[Restores the array of objects from the configuration.
  10640. @param <K> the class of the item
  10641. @param conf the configuration to use
  10642. @param keyName the name of the key to use
  10643. @param itemClass the class of the item
  10644. @return restored object
  10645. @throws IOException : forwards Exceptions from the underlying
  10646. {@link Serialization} classes.]]>
  10647. </doc>
  10648. </method>
  10649. <doc>
  10650. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  10651. interface which stringifies the objects using base64 encoding of the
  10652. serialized version of the objects. The {@link Serializer} and
  10653. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  10654. <br>
  10655. DefaultStringifier offers convenience methods to store/load objects to/from
  10656. the configuration.
  10657. @param <T> the class of the objects to stringify]]>
  10658. </doc>
  10659. </class>
  10660. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  10661. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  10662. <class name="DoubleWritable" extends="java.lang.Object"
  10663. abstract="false"
  10664. static="false" final="false" visibility="public"
  10665. deprecated="not deprecated">
  10666. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10667. <constructor name="DoubleWritable"
  10668. static="false" final="false" visibility="public"
  10669. deprecated="not deprecated">
  10670. </constructor>
  10671. <constructor name="DoubleWritable" type="double"
  10672. static="false" final="false" visibility="public"
  10673. deprecated="not deprecated">
  10674. </constructor>
  10675. <method name="readFields"
  10676. abstract="false" native="false" synchronized="false"
  10677. static="false" final="false" visibility="public"
  10678. deprecated="not deprecated">
  10679. <param name="in" type="java.io.DataInput"/>
  10680. <exception name="IOException" type="java.io.IOException"/>
  10681. </method>
  10682. <method name="write"
  10683. abstract="false" native="false" synchronized="false"
  10684. static="false" final="false" visibility="public"
  10685. deprecated="not deprecated">
  10686. <param name="out" type="java.io.DataOutput"/>
  10687. <exception name="IOException" type="java.io.IOException"/>
  10688. </method>
  10689. <method name="set"
  10690. abstract="false" native="false" synchronized="false"
  10691. static="false" final="false" visibility="public"
  10692. deprecated="not deprecated">
  10693. <param name="value" type="double"/>
  10694. </method>
  10695. <method name="get" return="double"
  10696. abstract="false" native="false" synchronized="false"
  10697. static="false" final="false" visibility="public"
  10698. deprecated="not deprecated">
  10699. </method>
  10700. <method name="equals" return="boolean"
  10701. abstract="false" native="false" synchronized="false"
  10702. static="false" final="false" visibility="public"
  10703. deprecated="not deprecated">
  10704. <param name="o" type="java.lang.Object"/>
  10705. <doc>
  10706. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  10707. </doc>
  10708. </method>
  10709. <method name="hashCode" return="int"
  10710. abstract="false" native="false" synchronized="false"
  10711. static="false" final="false" visibility="public"
  10712. deprecated="not deprecated">
  10713. </method>
  10714. <method name="compareTo" return="int"
  10715. abstract="false" native="false" synchronized="false"
  10716. static="false" final="false" visibility="public"
  10717. deprecated="not deprecated">
  10718. <param name="o" type="java.lang.Object"/>
  10719. </method>
  10720. <method name="toString" return="java.lang.String"
  10721. abstract="false" native="false" synchronized="false"
  10722. static="false" final="false" visibility="public"
  10723. deprecated="not deprecated">
  10724. </method>
  10725. <doc>
  10726. <![CDATA[Writable for Double values.]]>
  10727. </doc>
  10728. </class>
  10729. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  10730. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10731. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10732. abstract="false"
  10733. static="true" final="false" visibility="public"
  10734. deprecated="not deprecated">
  10735. <constructor name="DoubleWritable.Comparator"
  10736. static="false" final="false" visibility="public"
  10737. deprecated="not deprecated">
  10738. </constructor>
  10739. <method name="compare" return="int"
  10740. abstract="false" native="false" synchronized="false"
  10741. static="false" final="false" visibility="public"
  10742. deprecated="not deprecated">
  10743. <param name="b1" type="byte[]"/>
  10744. <param name="s1" type="int"/>
  10745. <param name="l1" type="int"/>
  10746. <param name="b2" type="byte[]"/>
  10747. <param name="s2" type="int"/>
  10748. <param name="l2" type="int"/>
  10749. </method>
  10750. <doc>
  10751. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  10752. </doc>
  10753. </class>
  10754. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10755. <!-- start class org.apache.hadoop.io.FloatWritable -->
  10756. <class name="FloatWritable" extends="java.lang.Object"
  10757. abstract="false"
  10758. static="false" final="false" visibility="public"
  10759. deprecated="not deprecated">
  10760. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10761. <constructor name="FloatWritable"
  10762. static="false" final="false" visibility="public"
  10763. deprecated="not deprecated">
  10764. </constructor>
  10765. <constructor name="FloatWritable" type="float"
  10766. static="false" final="false" visibility="public"
  10767. deprecated="not deprecated">
  10768. </constructor>
  10769. <method name="set"
  10770. abstract="false" native="false" synchronized="false"
  10771. static="false" final="false" visibility="public"
  10772. deprecated="not deprecated">
  10773. <param name="value" type="float"/>
  10774. <doc>
  10775. <![CDATA[Set the value of this FloatWritable.]]>
  10776. </doc>
  10777. </method>
  10778. <method name="get" return="float"
  10779. abstract="false" native="false" synchronized="false"
  10780. static="false" final="false" visibility="public"
  10781. deprecated="not deprecated">
  10782. <doc>
  10783. <![CDATA[Return the value of this FloatWritable.]]>
  10784. </doc>
  10785. </method>
  10786. <method name="readFields"
  10787. abstract="false" native="false" synchronized="false"
  10788. static="false" final="false" visibility="public"
  10789. deprecated="not deprecated">
  10790. <param name="in" type="java.io.DataInput"/>
  10791. <exception name="IOException" type="java.io.IOException"/>
  10792. </method>
  10793. <method name="write"
  10794. abstract="false" native="false" synchronized="false"
  10795. static="false" final="false" visibility="public"
  10796. deprecated="not deprecated">
  10797. <param name="out" type="java.io.DataOutput"/>
  10798. <exception name="IOException" type="java.io.IOException"/>
  10799. </method>
  10800. <method name="equals" return="boolean"
  10801. abstract="false" native="false" synchronized="false"
  10802. static="false" final="false" visibility="public"
  10803. deprecated="not deprecated">
  10804. <param name="o" type="java.lang.Object"/>
  10805. <doc>
  10806. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  10807. </doc>
  10808. </method>
  10809. <method name="hashCode" return="int"
  10810. abstract="false" native="false" synchronized="false"
  10811. static="false" final="false" visibility="public"
  10812. deprecated="not deprecated">
  10813. </method>
  10814. <method name="compareTo" return="int"
  10815. abstract="false" native="false" synchronized="false"
  10816. static="false" final="false" visibility="public"
  10817. deprecated="not deprecated">
  10818. <param name="o" type="java.lang.Object"/>
  10819. <doc>
  10820. <![CDATA[Compares two FloatWritables.]]>
  10821. </doc>
  10822. </method>
  10823. <method name="toString" return="java.lang.String"
  10824. abstract="false" native="false" synchronized="false"
  10825. static="false" final="false" visibility="public"
  10826. deprecated="not deprecated">
  10827. </method>
  10828. <doc>
  10829. <![CDATA[A WritableComparable for floats.]]>
  10830. </doc>
  10831. </class>
  10832. <!-- end class org.apache.hadoop.io.FloatWritable -->
  10833. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  10834. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10835. abstract="false"
  10836. static="true" final="false" visibility="public"
  10837. deprecated="not deprecated">
  10838. <constructor name="FloatWritable.Comparator"
  10839. static="false" final="false" visibility="public"
  10840. deprecated="not deprecated">
  10841. </constructor>
  10842. <method name="compare" return="int"
  10843. abstract="false" native="false" synchronized="false"
  10844. static="false" final="false" visibility="public"
  10845. deprecated="not deprecated">
  10846. <param name="b1" type="byte[]"/>
  10847. <param name="s1" type="int"/>
  10848. <param name="l1" type="int"/>
  10849. <param name="b2" type="byte[]"/>
  10850. <param name="s2" type="int"/>
  10851. <param name="l2" type="int"/>
  10852. </method>
  10853. <doc>
  10854. <![CDATA[A Comparator optimized for FloatWritable.]]>
  10855. </doc>
  10856. </class>
  10857. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  10858. <!-- start class org.apache.hadoop.io.GenericWritable -->
  10859. <class name="GenericWritable" extends="java.lang.Object"
  10860. abstract="true"
  10861. static="false" final="false" visibility="public"
  10862. deprecated="not deprecated">
  10863. <implements name="org.apache.hadoop.io.Writable"/>
  10864. <implements name="org.apache.hadoop.conf.Configurable"/>
  10865. <constructor name="GenericWritable"
  10866. static="false" final="false" visibility="public"
  10867. deprecated="not deprecated">
  10868. </constructor>
  10869. <method name="set"
  10870. abstract="false" native="false" synchronized="false"
  10871. static="false" final="false" visibility="public"
  10872. deprecated="not deprecated">
  10873. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  10874. <doc>
  10875. <![CDATA[Set the instance that is wrapped.
  10876. @param obj]]>
  10877. </doc>
  10878. </method>
  10879. <method name="get" return="org.apache.hadoop.io.Writable"
  10880. abstract="false" native="false" synchronized="false"
  10881. static="false" final="false" visibility="public"
  10882. deprecated="not deprecated">
  10883. <doc>
  10884. <![CDATA[Return the wrapped instance.]]>
  10885. </doc>
  10886. </method>
  10887. <method name="toString" return="java.lang.String"
  10888. abstract="false" native="false" synchronized="false"
  10889. static="false" final="false" visibility="public"
  10890. deprecated="not deprecated">
  10891. </method>
  10892. <method name="readFields"
  10893. abstract="false" native="false" synchronized="false"
  10894. static="false" final="false" visibility="public"
  10895. deprecated="not deprecated">
  10896. <param name="in" type="java.io.DataInput"/>
  10897. <exception name="IOException" type="java.io.IOException"/>
  10898. </method>
  10899. <method name="write"
  10900. abstract="false" native="false" synchronized="false"
  10901. static="false" final="false" visibility="public"
  10902. deprecated="not deprecated">
  10903. <param name="out" type="java.io.DataOutput"/>
  10904. <exception name="IOException" type="java.io.IOException"/>
  10905. </method>
  10906. <method name="getTypes" return="java.lang.Class[]"
  10907. abstract="true" native="false" synchronized="false"
  10908. static="false" final="false" visibility="protected"
  10909. deprecated="not deprecated">
  10910. <doc>
  10911. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  10912. to return a constant array of classes.]]>
  10913. </doc>
  10914. </method>
  10915. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10916. abstract="false" native="false" synchronized="false"
  10917. static="false" final="false" visibility="public"
  10918. deprecated="not deprecated">
  10919. </method>
  10920. <method name="setConf"
  10921. abstract="false" native="false" synchronized="false"
  10922. static="false" final="false" visibility="public"
  10923. deprecated="not deprecated">
  10924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10925. </method>
  10926. <doc>
  10927. <![CDATA[A wrapper for Writable instances.
  10928. <p>
  10929. When two sequence files, which have same Key type but different Value
  10930. types, are mapped out to reduce, multiple Value types is not allowed.
  10931. In this case, this class can help you wrap instances with different types.
  10932. </p>
  10933. <p>
  10934. Compared with <code>ObjectWritable</code>, this class is much more effective,
  10935. because <code>ObjectWritable</code> will append the class declaration as a String
  10936. into the output file in every Key-Value pair.
  10937. </p>
  10938. <p>
  10939. Generic Writable implements {@link Configurable} interface, so that it will be
  10940. configured by the framework. The configuration is passed to the wrapped objects
  10941. implementing {@link Configurable} interface <i>before deserialization</i>.
  10942. </p>
  10943. how to use it: <br>
  10944. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  10945. 2. Implements the abstract method <code>getTypes()</code>, defines
  10946. the classes which will be wrapped in GenericObject in application.
  10947. Attention: this classes defined in <code>getTypes()</code> method, must
  10948. implement <code>Writable</code> interface.
  10949. <br><br>
  10950. The code looks like this:
  10951. <blockquote><pre>
  10952. public class GenericObject extends GenericWritable {
  10953. private static Class[] CLASSES = {
  10954. ClassType1.class,
  10955. ClassType2.class,
  10956. ClassType3.class,
  10957. };
  10958. protected Class[] getTypes() {
  10959. return CLASSES;
  10960. }
  10961. }
  10962. </pre></blockquote>
  10963. @since Nov 8, 2006]]>
  10964. </doc>
  10965. </class>
  10966. <!-- end class org.apache.hadoop.io.GenericWritable -->
  10967. <!-- start class org.apache.hadoop.io.InputBuffer -->
  10968. <class name="InputBuffer" extends="java.io.FilterInputStream"
  10969. abstract="false"
  10970. static="false" final="false" visibility="public"
  10971. deprecated="not deprecated">
  10972. <constructor name="InputBuffer"
  10973. static="false" final="false" visibility="public"
  10974. deprecated="not deprecated">
  10975. <doc>
  10976. <![CDATA[Constructs a new empty buffer.]]>
  10977. </doc>
  10978. </constructor>
  10979. <method name="reset"
  10980. abstract="false" native="false" synchronized="false"
  10981. static="false" final="false" visibility="public"
  10982. deprecated="not deprecated">
  10983. <param name="input" type="byte[]"/>
  10984. <param name="length" type="int"/>
  10985. <doc>
  10986. <![CDATA[Resets the data that the buffer reads.]]>
  10987. </doc>
  10988. </method>
  10989. <method name="reset"
  10990. abstract="false" native="false" synchronized="false"
  10991. static="false" final="false" visibility="public"
  10992. deprecated="not deprecated">
  10993. <param name="input" type="byte[]"/>
  10994. <param name="start" type="int"/>
  10995. <param name="length" type="int"/>
  10996. <doc>
  10997. <![CDATA[Resets the data that the buffer reads.]]>
  10998. </doc>
  10999. </method>
  11000. <method name="getPosition" return="int"
  11001. abstract="false" native="false" synchronized="false"
  11002. static="false" final="false" visibility="public"
  11003. deprecated="not deprecated">
  11004. <doc>
  11005. <![CDATA[Returns the current position in the input.]]>
  11006. </doc>
  11007. </method>
  11008. <method name="getLength" return="int"
  11009. abstract="false" native="false" synchronized="false"
  11010. static="false" final="false" visibility="public"
  11011. deprecated="not deprecated">
  11012. <doc>
  11013. <![CDATA[Returns the length of the input.]]>
  11014. </doc>
  11015. </method>
  11016. <doc>
  11017. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  11018. buffer.
  11019. <p>This saves memory over creating a new InputStream and
  11020. ByteArrayInputStream each time data is read.
  11021. <p>Typical usage is something like the following:<pre>
  11022. InputBuffer buffer = new InputBuffer();
  11023. while (... loop condition ...) {
  11024. byte[] data = ... get data ...;
  11025. int dataLength = ... get data length ...;
  11026. buffer.reset(data, dataLength);
  11027. ... read buffer using InputStream methods ...
  11028. }
  11029. </pre>
  11030. @see DataInputBuffer
  11031. @see DataOutput]]>
  11032. </doc>
  11033. </class>
  11034. <!-- end class org.apache.hadoop.io.InputBuffer -->
  11035. <!-- start class org.apache.hadoop.io.IntWritable -->
  11036. <class name="IntWritable" extends="java.lang.Object"
  11037. abstract="false"
  11038. static="false" final="false" visibility="public"
  11039. deprecated="not deprecated">
  11040. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11041. <constructor name="IntWritable"
  11042. static="false" final="false" visibility="public"
  11043. deprecated="not deprecated">
  11044. </constructor>
  11045. <constructor name="IntWritable" type="int"
  11046. static="false" final="false" visibility="public"
  11047. deprecated="not deprecated">
  11048. </constructor>
  11049. <method name="set"
  11050. abstract="false" native="false" synchronized="false"
  11051. static="false" final="false" visibility="public"
  11052. deprecated="not deprecated">
  11053. <param name="value" type="int"/>
  11054. <doc>
  11055. <![CDATA[Set the value of this IntWritable.]]>
  11056. </doc>
  11057. </method>
  11058. <method name="get" return="int"
  11059. abstract="false" native="false" synchronized="false"
  11060. static="false" final="false" visibility="public"
  11061. deprecated="not deprecated">
  11062. <doc>
  11063. <![CDATA[Return the value of this IntWritable.]]>
  11064. </doc>
  11065. </method>
  11066. <method name="readFields"
  11067. abstract="false" native="false" synchronized="false"
  11068. static="false" final="false" visibility="public"
  11069. deprecated="not deprecated">
  11070. <param name="in" type="java.io.DataInput"/>
  11071. <exception name="IOException" type="java.io.IOException"/>
  11072. </method>
  11073. <method name="write"
  11074. abstract="false" native="false" synchronized="false"
  11075. static="false" final="false" visibility="public"
  11076. deprecated="not deprecated">
  11077. <param name="out" type="java.io.DataOutput"/>
  11078. <exception name="IOException" type="java.io.IOException"/>
  11079. </method>
  11080. <method name="equals" return="boolean"
  11081. abstract="false" native="false" synchronized="false"
  11082. static="false" final="false" visibility="public"
  11083. deprecated="not deprecated">
  11084. <param name="o" type="java.lang.Object"/>
  11085. <doc>
  11086. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  11087. </doc>
  11088. </method>
  11089. <method name="hashCode" return="int"
  11090. abstract="false" native="false" synchronized="false"
  11091. static="false" final="false" visibility="public"
  11092. deprecated="not deprecated">
  11093. </method>
  11094. <method name="compareTo" return="int"
  11095. abstract="false" native="false" synchronized="false"
  11096. static="false" final="false" visibility="public"
  11097. deprecated="not deprecated">
  11098. <param name="o" type="java.lang.Object"/>
  11099. <doc>
  11100. <![CDATA[Compares two IntWritables.]]>
  11101. </doc>
  11102. </method>
  11103. <method name="toString" return="java.lang.String"
  11104. abstract="false" native="false" synchronized="false"
  11105. static="false" final="false" visibility="public"
  11106. deprecated="not deprecated">
  11107. </method>
  11108. <doc>
  11109. <![CDATA[A WritableComparable for ints.]]>
  11110. </doc>
  11111. </class>
  11112. <!-- end class org.apache.hadoop.io.IntWritable -->
  11113. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  11114. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11115. abstract="false"
  11116. static="true" final="false" visibility="public"
  11117. deprecated="not deprecated">
  11118. <constructor name="IntWritable.Comparator"
  11119. static="false" final="false" visibility="public"
  11120. deprecated="not deprecated">
  11121. </constructor>
  11122. <method name="compare" return="int"
  11123. abstract="false" native="false" synchronized="false"
  11124. static="false" final="false" visibility="public"
  11125. deprecated="not deprecated">
  11126. <param name="b1" type="byte[]"/>
  11127. <param name="s1" type="int"/>
  11128. <param name="l1" type="int"/>
  11129. <param name="b2" type="byte[]"/>
  11130. <param name="s2" type="int"/>
  11131. <param name="l2" type="int"/>
  11132. </method>
  11133. <doc>
  11134. <![CDATA[A Comparator optimized for IntWritable.]]>
  11135. </doc>
  11136. </class>
  11137. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  11138. <!-- start class org.apache.hadoop.io.IOUtils -->
  11139. <class name="IOUtils" extends="java.lang.Object"
  11140. abstract="false"
  11141. static="false" final="false" visibility="public"
  11142. deprecated="not deprecated">
  11143. <constructor name="IOUtils"
  11144. static="false" final="false" visibility="public"
  11145. deprecated="not deprecated">
  11146. </constructor>
  11147. <method name="copyBytes"
  11148. abstract="false" native="false" synchronized="false"
  11149. static="true" final="false" visibility="public"
  11150. deprecated="not deprecated">
  11151. <param name="in" type="java.io.InputStream"/>
  11152. <param name="out" type="java.io.OutputStream"/>
  11153. <param name="buffSize" type="int"/>
  11154. <param name="close" type="boolean"/>
  11155. <exception name="IOException" type="java.io.IOException"/>
  11156. <doc>
  11157. <![CDATA[Copies from one stream to another.
  11158. @param in InputStrem to read from
  11159. @param out OutputStream to write to
  11160. @param buffSize the size of the buffer
  11161. @param close whether or not close the InputStream and
  11162. OutputStream at the end. The streams are closed in the finally clause.]]>
  11163. </doc>
  11164. </method>
  11165. <method name="copyBytes"
  11166. abstract="false" native="false" synchronized="false"
  11167. static="true" final="false" visibility="public"
  11168. deprecated="not deprecated">
  11169. <param name="in" type="java.io.InputStream"/>
  11170. <param name="out" type="java.io.OutputStream"/>
  11171. <param name="buffSize" type="int"/>
  11172. <exception name="IOException" type="java.io.IOException"/>
  11173. <doc>
  11174. <![CDATA[Copies from one stream to another.
  11175. @param in InputStrem to read from
  11176. @param out OutputStream to write to
  11177. @param buffSize the size of the buffer]]>
  11178. </doc>
  11179. </method>
  11180. <method name="copyBytes"
  11181. abstract="false" native="false" synchronized="false"
  11182. static="true" final="false" visibility="public"
  11183. deprecated="not deprecated">
  11184. <param name="in" type="java.io.InputStream"/>
  11185. <param name="out" type="java.io.OutputStream"/>
  11186. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11187. <exception name="IOException" type="java.io.IOException"/>
  11188. <doc>
  11189. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  11190. at the end</strong>.
  11191. @param in InputStrem to read from
  11192. @param out OutputStream to write to
  11193. @param conf the Configuration object]]>
  11194. </doc>
  11195. </method>
  11196. <method name="copyBytes"
  11197. abstract="false" native="false" synchronized="false"
  11198. static="true" final="false" visibility="public"
  11199. deprecated="not deprecated">
  11200. <param name="in" type="java.io.InputStream"/>
  11201. <param name="out" type="java.io.OutputStream"/>
  11202. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11203. <param name="close" type="boolean"/>
  11204. <exception name="IOException" type="java.io.IOException"/>
  11205. <doc>
  11206. <![CDATA[Copies from one stream to another.
  11207. @param in InputStrem to read from
  11208. @param out OutputStream to write to
  11209. @param conf the Configuration object
  11210. @param close whether or not close the InputStream and
  11211. OutputStream at the end. The streams are closed in the finally clause.]]>
  11212. </doc>
  11213. </method>
  11214. <method name="copyBytes"
  11215. abstract="false" native="false" synchronized="false"
  11216. static="true" final="false" visibility="public"
  11217. deprecated="not deprecated">
  11218. <param name="in" type="java.io.InputStream"/>
  11219. <param name="out" type="java.io.OutputStream"/>
  11220. <param name="length" type="long"/>
  11221. <param name="bufferSize" type="int"/>
  11222. <param name="close" type="boolean"/>
  11223. <exception name="IOException" type="java.io.IOException"/>
  11224. <doc>
  11225. <![CDATA[Copies the specified length of bytes from in to out.
  11226. @param in InputStream to read from
  11227. @param out OutputStream to write to
  11228. @param length number of bytes to copy
  11229. @param bufferSize the size of the buffer
  11230. @param close whether to close the streams
  11231. @throws IOException if bytes can not be read or written]]>
  11232. </doc>
  11233. </method>
  11234. <method name="readFully"
  11235. abstract="false" native="false" synchronized="false"
  11236. static="true" final="false" visibility="public"
  11237. deprecated="not deprecated">
  11238. <param name="in" type="java.io.InputStream"/>
  11239. <param name="buf" type="byte[]"/>
  11240. <param name="off" type="int"/>
  11241. <param name="len" type="int"/>
  11242. <exception name="IOException" type="java.io.IOException"/>
  11243. <doc>
  11244. <![CDATA[Reads len bytes in a loop.
  11245. @param in The InputStream to read from
  11246. @param buf The buffer to fill
  11247. @param off offset from the buffer
  11248. @param len the length of bytes to read
  11249. @throws IOException if it could not read requested number of bytes
  11250. for any reason (including EOF)]]>
  11251. </doc>
  11252. </method>
  11253. <method name="readFileChannelFully"
  11254. abstract="false" native="false" synchronized="false"
  11255. static="true" final="false" visibility="public"
  11256. deprecated="not deprecated">
  11257. <param name="fileChannel" type="java.nio.channels.FileChannel"/>
  11258. <param name="buf" type="byte[]"/>
  11259. <param name="off" type="int"/>
  11260. <param name="len" type="int"/>
  11261. <exception name="IOException" type="java.io.IOException"/>
  11262. <doc>
  11263. <![CDATA[Reads len bytes in a loop using the channel of the stream
  11264. @param fileChannel a FileChannel to read len bytes into buf
  11265. @param buf The buffer to fill
  11266. @param off offset from the buffer
  11267. @param len the length of bytes to read
  11268. @throws IOException if it could not read requested number of bytes
  11269. for any reason (including EOF)]]>
  11270. </doc>
  11271. </method>
  11272. <method name="skipFully"
  11273. abstract="false" native="false" synchronized="false"
  11274. static="true" final="false" visibility="public"
  11275. deprecated="not deprecated">
  11276. <param name="in" type="java.io.InputStream"/>
  11277. <param name="len" type="long"/>
  11278. <exception name="IOException" type="java.io.IOException"/>
  11279. <doc>
  11280. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  11281. @param in The InputStream to skip bytes from
  11282. @param len number of bytes to skip.
  11283. @throws IOException if it could not skip requested number of bytes
  11284. for any reason (including EOF)]]>
  11285. </doc>
  11286. </method>
  11287. <method name="cleanup"
  11288. abstract="false" native="false" synchronized="false"
  11289. static="true" final="false" visibility="public"
  11290. deprecated="not deprecated">
  11291. <param name="log" type="org.apache.commons.logging.Log"/>
  11292. <param name="closeables" type="java.io.Closeable[]"/>
  11293. <doc>
  11294. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  11295. null pointers. Must only be used for cleanup in exception handlers.
  11296. @param log the log to record problems to at debug level. Can be null.
  11297. @param closeables the objects to close]]>
  11298. </doc>
  11299. </method>
  11300. <method name="closeStream"
  11301. abstract="false" native="false" synchronized="false"
  11302. static="true" final="false" visibility="public"
  11303. deprecated="not deprecated">
  11304. <param name="stream" type="java.io.Closeable"/>
  11305. <doc>
  11306. <![CDATA[Closes the stream ignoring {@link IOException}.
  11307. Must only be called in cleaning up from exception handlers.
  11308. @param stream the Stream to close]]>
  11309. </doc>
  11310. </method>
  11311. <method name="closeSocket"
  11312. abstract="false" native="false" synchronized="false"
  11313. static="true" final="false" visibility="public"
  11314. deprecated="not deprecated">
  11315. <param name="sock" type="java.net.Socket"/>
  11316. <doc>
  11317. <![CDATA[Closes the socket ignoring {@link IOException}
  11318. @param sock the Socket to close]]>
  11319. </doc>
  11320. </method>
  11321. <doc>
  11322. <![CDATA[An utility class for I/O related functionality.]]>
  11323. </doc>
  11324. </class>
  11325. <!-- end class org.apache.hadoop.io.IOUtils -->
  11326. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11327. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  11328. abstract="false"
  11329. static="true" final="false" visibility="public"
  11330. deprecated="not deprecated">
  11331. <constructor name="IOUtils.NullOutputStream"
  11332. static="false" final="false" visibility="public"
  11333. deprecated="not deprecated">
  11334. </constructor>
  11335. <method name="write"
  11336. abstract="false" native="false" synchronized="false"
  11337. static="false" final="false" visibility="public"
  11338. deprecated="not deprecated">
  11339. <param name="b" type="byte[]"/>
  11340. <param name="off" type="int"/>
  11341. <param name="len" type="int"/>
  11342. <exception name="IOException" type="java.io.IOException"/>
  11343. </method>
  11344. <method name="write"
  11345. abstract="false" native="false" synchronized="false"
  11346. static="false" final="false" visibility="public"
  11347. deprecated="not deprecated">
  11348. <param name="b" type="int"/>
  11349. <exception name="IOException" type="java.io.IOException"/>
  11350. </method>
  11351. <doc>
  11352. <![CDATA[/dev/null of OutputStreams.]]>
  11353. </doc>
  11354. </class>
  11355. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11356. <!-- start class org.apache.hadoop.io.LongWritable -->
  11357. <class name="LongWritable" extends="java.lang.Object"
  11358. abstract="false"
  11359. static="false" final="false" visibility="public"
  11360. deprecated="not deprecated">
  11361. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11362. <constructor name="LongWritable"
  11363. static="false" final="false" visibility="public"
  11364. deprecated="not deprecated">
  11365. </constructor>
  11366. <constructor name="LongWritable" type="long"
  11367. static="false" final="false" visibility="public"
  11368. deprecated="not deprecated">
  11369. </constructor>
  11370. <method name="set"
  11371. abstract="false" native="false" synchronized="false"
  11372. static="false" final="false" visibility="public"
  11373. deprecated="not deprecated">
  11374. <param name="value" type="long"/>
  11375. <doc>
  11376. <![CDATA[Set the value of this LongWritable.]]>
  11377. </doc>
  11378. </method>
  11379. <method name="get" return="long"
  11380. abstract="false" native="false" synchronized="false"
  11381. static="false" final="false" visibility="public"
  11382. deprecated="not deprecated">
  11383. <doc>
  11384. <![CDATA[Return the value of this LongWritable.]]>
  11385. </doc>
  11386. </method>
  11387. <method name="readFields"
  11388. abstract="false" native="false" synchronized="false"
  11389. static="false" final="false" visibility="public"
  11390. deprecated="not deprecated">
  11391. <param name="in" type="java.io.DataInput"/>
  11392. <exception name="IOException" type="java.io.IOException"/>
  11393. </method>
  11394. <method name="write"
  11395. abstract="false" native="false" synchronized="false"
  11396. static="false" final="false" visibility="public"
  11397. deprecated="not deprecated">
  11398. <param name="out" type="java.io.DataOutput"/>
  11399. <exception name="IOException" type="java.io.IOException"/>
  11400. </method>
  11401. <method name="equals" return="boolean"
  11402. abstract="false" native="false" synchronized="false"
  11403. static="false" final="false" visibility="public"
  11404. deprecated="not deprecated">
  11405. <param name="o" type="java.lang.Object"/>
  11406. <doc>
  11407. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  11408. </doc>
  11409. </method>
  11410. <method name="hashCode" return="int"
  11411. abstract="false" native="false" synchronized="false"
  11412. static="false" final="false" visibility="public"
  11413. deprecated="not deprecated">
  11414. </method>
  11415. <method name="compareTo" return="int"
  11416. abstract="false" native="false" synchronized="false"
  11417. static="false" final="false" visibility="public"
  11418. deprecated="not deprecated">
  11419. <param name="o" type="java.lang.Object"/>
  11420. <doc>
  11421. <![CDATA[Compares two LongWritables.]]>
  11422. </doc>
  11423. </method>
  11424. <method name="toString" return="java.lang.String"
  11425. abstract="false" native="false" synchronized="false"
  11426. static="false" final="false" visibility="public"
  11427. deprecated="not deprecated">
  11428. </method>
  11429. <doc>
  11430. <![CDATA[A WritableComparable for longs.]]>
  11431. </doc>
  11432. </class>
  11433. <!-- end class org.apache.hadoop.io.LongWritable -->
  11434. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  11435. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11436. abstract="false"
  11437. static="true" final="false" visibility="public"
  11438. deprecated="not deprecated">
  11439. <constructor name="LongWritable.Comparator"
  11440. static="false" final="false" visibility="public"
  11441. deprecated="not deprecated">
  11442. </constructor>
  11443. <method name="compare" return="int"
  11444. abstract="false" native="false" synchronized="false"
  11445. static="false" final="false" visibility="public"
  11446. deprecated="not deprecated">
  11447. <param name="b1" type="byte[]"/>
  11448. <param name="s1" type="int"/>
  11449. <param name="l1" type="int"/>
  11450. <param name="b2" type="byte[]"/>
  11451. <param name="s2" type="int"/>
  11452. <param name="l2" type="int"/>
  11453. </method>
  11454. <doc>
  11455. <![CDATA[A Comparator optimized for LongWritable.]]>
  11456. </doc>
  11457. </class>
  11458. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  11459. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11460. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  11461. abstract="false"
  11462. static="true" final="false" visibility="public"
  11463. deprecated="not deprecated">
  11464. <constructor name="LongWritable.DecreasingComparator"
  11465. static="false" final="false" visibility="public"
  11466. deprecated="not deprecated">
  11467. </constructor>
  11468. <method name="compare" return="int"
  11469. abstract="false" native="false" synchronized="false"
  11470. static="false" final="false" visibility="public"
  11471. deprecated="not deprecated">
  11472. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  11473. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  11474. </method>
  11475. <method name="compare" return="int"
  11476. abstract="false" native="false" synchronized="false"
  11477. static="false" final="false" visibility="public"
  11478. deprecated="not deprecated">
  11479. <param name="b1" type="byte[]"/>
  11480. <param name="s1" type="int"/>
  11481. <param name="l1" type="int"/>
  11482. <param name="b2" type="byte[]"/>
  11483. <param name="s2" type="int"/>
  11484. <param name="l2" type="int"/>
  11485. </method>
  11486. <doc>
  11487. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  11488. </doc>
  11489. </class>
  11490. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11491. <!-- start class org.apache.hadoop.io.MapFile -->
  11492. <class name="MapFile" extends="java.lang.Object"
  11493. abstract="false"
  11494. static="false" final="false" visibility="public"
  11495. deprecated="not deprecated">
  11496. <constructor name="MapFile"
  11497. static="false" final="false" visibility="protected"
  11498. deprecated="not deprecated">
  11499. </constructor>
  11500. <method name="rename"
  11501. abstract="false" native="false" synchronized="false"
  11502. static="true" final="false" visibility="public"
  11503. deprecated="not deprecated">
  11504. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11505. <param name="oldName" type="java.lang.String"/>
  11506. <param name="newName" type="java.lang.String"/>
  11507. <exception name="IOException" type="java.io.IOException"/>
  11508. <doc>
  11509. <![CDATA[Renames an existing map directory.]]>
  11510. </doc>
  11511. </method>
  11512. <method name="delete"
  11513. abstract="false" native="false" synchronized="false"
  11514. static="true" final="false" visibility="public"
  11515. deprecated="not deprecated">
  11516. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11517. <param name="name" type="java.lang.String"/>
  11518. <exception name="IOException" type="java.io.IOException"/>
  11519. <doc>
  11520. <![CDATA[Deletes the named map file.]]>
  11521. </doc>
  11522. </method>
  11523. <method name="fix" return="long"
  11524. abstract="false" native="false" synchronized="false"
  11525. static="true" final="false" visibility="public"
  11526. deprecated="not deprecated">
  11527. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11528. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11529. <param name="keyClass" type="java.lang.Class"/>
  11530. <param name="valueClass" type="java.lang.Class"/>
  11531. <param name="dryrun" type="boolean"/>
  11532. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11533. <exception name="Exception" type="java.lang.Exception"/>
  11534. <doc>
  11535. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  11536. @param fs filesystem
  11537. @param dir directory containing the MapFile data and index
  11538. @param keyClass key class (has to be a subclass of Writable)
  11539. @param valueClass value class (has to be a subclass of Writable)
  11540. @param dryrun do not perform any changes, just report what needs to be done
  11541. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  11542. @throws Exception]]>
  11543. </doc>
  11544. </method>
  11545. <method name="main"
  11546. abstract="false" native="false" synchronized="false"
  11547. static="true" final="false" visibility="public"
  11548. deprecated="not deprecated">
  11549. <param name="args" type="java.lang.String[]"/>
  11550. <exception name="Exception" type="java.lang.Exception"/>
  11551. </method>
  11552. <field name="INDEX_FILE_NAME" type="java.lang.String"
  11553. transient="false" volatile="false"
  11554. static="true" final="true" visibility="public"
  11555. deprecated="not deprecated">
  11556. <doc>
  11557. <![CDATA[The name of the index file.]]>
  11558. </doc>
  11559. </field>
  11560. <field name="DATA_FILE_NAME" type="java.lang.String"
  11561. transient="false" volatile="false"
  11562. static="true" final="true" visibility="public"
  11563. deprecated="not deprecated">
  11564. <doc>
  11565. <![CDATA[The name of the data file.]]>
  11566. </doc>
  11567. </field>
  11568. <doc>
  11569. <![CDATA[A file-based map from keys to values.
  11570. <p>A map is a directory containing two files, the <code>data</code> file,
  11571. containing all keys and values in the map, and a smaller <code>index</code>
  11572. file, containing a fraction of the keys. The fraction is determined by
  11573. {@link Writer#getIndexInterval()}.
  11574. <p>The index file is read entirely into memory. Thus key implementations
  11575. should try to keep themselves small.
  11576. <p>Map files are created by adding entries in-order. To maintain a large
  11577. database, perform updates by copying the previous version of a database and
  11578. merging in a sorted change list, to create a new version of the database in
  11579. a new file. Sorting large change lists can be done with {@link
  11580. SequenceFile.Sorter}.]]>
  11581. </doc>
  11582. </class>
  11583. <!-- end class org.apache.hadoop.io.MapFile -->
  11584. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  11585. <class name="MapFile.Reader" extends="java.lang.Object"
  11586. abstract="false"
  11587. static="true" final="false" visibility="public"
  11588. deprecated="not deprecated">
  11589. <implements name="java.io.Closeable"/>
  11590. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  11591. static="false" final="false" visibility="public"
  11592. deprecated="not deprecated">
  11593. <exception name="IOException" type="java.io.IOException"/>
  11594. <doc>
  11595. <![CDATA[Construct a map reader for the named map.]]>
  11596. </doc>
  11597. </constructor>
  11598. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  11599. static="false" final="false" visibility="public"
  11600. deprecated="not deprecated">
  11601. <exception name="IOException" type="java.io.IOException"/>
  11602. <doc>
  11603. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  11604. </doc>
  11605. </constructor>
  11606. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  11607. static="false" final="false" visibility="protected"
  11608. deprecated="not deprecated">
  11609. <exception name="IOException" type="java.io.IOException"/>
  11610. <doc>
  11611. <![CDATA[Hook to allow subclasses to defer opening streams until further
  11612. initialization is complete.
  11613. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  11614. </doc>
  11615. </constructor>
  11616. <method name="getKeyClass" return="java.lang.Class"
  11617. abstract="false" native="false" synchronized="false"
  11618. static="false" final="false" visibility="public"
  11619. deprecated="not deprecated">
  11620. <doc>
  11621. <![CDATA[Returns the class of keys in this file.]]>
  11622. </doc>
  11623. </method>
  11624. <method name="getValueClass" return="java.lang.Class"
  11625. abstract="false" native="false" synchronized="false"
  11626. static="false" final="false" visibility="public"
  11627. deprecated="not deprecated">
  11628. <doc>
  11629. <![CDATA[Returns the class of values in this file.]]>
  11630. </doc>
  11631. </method>
  11632. <method name="open"
  11633. abstract="false" native="false" synchronized="true"
  11634. static="false" final="false" visibility="protected"
  11635. deprecated="not deprecated">
  11636. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11637. <param name="dirName" type="java.lang.String"/>
  11638. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  11639. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11640. <exception name="IOException" type="java.io.IOException"/>
  11641. </method>
  11642. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  11643. abstract="false" native="false" synchronized="false"
  11644. static="false" final="false" visibility="protected"
  11645. deprecated="not deprecated">
  11646. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11647. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  11648. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11649. <exception name="IOException" type="java.io.IOException"/>
  11650. <doc>
  11651. <![CDATA[Override this method to specialize the type of
  11652. {@link SequenceFile.Reader} returned.]]>
  11653. </doc>
  11654. </method>
  11655. <method name="reset"
  11656. abstract="false" native="false" synchronized="true"
  11657. static="false" final="false" visibility="public"
  11658. deprecated="not deprecated">
  11659. <exception name="IOException" type="java.io.IOException"/>
  11660. <doc>
  11661. <![CDATA[Re-positions the reader before its first key.]]>
  11662. </doc>
  11663. </method>
  11664. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  11665. abstract="false" native="false" synchronized="true"
  11666. static="false" final="false" visibility="public"
  11667. deprecated="not deprecated">
  11668. <exception name="IOException" type="java.io.IOException"/>
  11669. <doc>
  11670. <![CDATA[Get the key at approximately the middle of the file.
  11671. @throws IOException]]>
  11672. </doc>
  11673. </method>
  11674. <method name="finalKey"
  11675. abstract="false" native="false" synchronized="true"
  11676. static="false" final="false" visibility="public"
  11677. deprecated="not deprecated">
  11678. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11679. <exception name="IOException" type="java.io.IOException"/>
  11680. <doc>
  11681. <![CDATA[Reads the final key from the file.
  11682. @param key key to read into]]>
  11683. </doc>
  11684. </method>
  11685. <method name="seek" return="boolean"
  11686. abstract="false" native="false" synchronized="true"
  11687. static="false" final="false" visibility="public"
  11688. deprecated="not deprecated">
  11689. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11690. <exception name="IOException" type="java.io.IOException"/>
  11691. <doc>
  11692. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  11693. first entry after the named key. Returns true iff the named key exists
  11694. in this map.]]>
  11695. </doc>
  11696. </method>
  11697. <method name="next" return="boolean"
  11698. abstract="false" native="false" synchronized="true"
  11699. static="false" final="false" visibility="public"
  11700. deprecated="not deprecated">
  11701. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11702. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11703. <exception name="IOException" type="java.io.IOException"/>
  11704. <doc>
  11705. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  11706. <code>val</code>. Returns true if such a pair exists and false when at
  11707. the end of the map]]>
  11708. </doc>
  11709. </method>
  11710. <method name="get" return="org.apache.hadoop.io.Writable"
  11711. abstract="false" native="false" synchronized="true"
  11712. static="false" final="false" visibility="public"
  11713. deprecated="not deprecated">
  11714. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11715. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11716. <exception name="IOException" type="java.io.IOException"/>
  11717. <doc>
  11718. <![CDATA[Return the value for the named key, or null if none exists.]]>
  11719. </doc>
  11720. </method>
  11721. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11722. abstract="false" native="false" synchronized="true"
  11723. static="false" final="false" visibility="public"
  11724. deprecated="not deprecated">
  11725. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11726. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11727. <exception name="IOException" type="java.io.IOException"/>
  11728. <doc>
  11729. <![CDATA[Finds the record that is the closest match to the specified key.
  11730. Returns <code>key</code> or if it does not exist, at the first entry
  11731. after the named key.
  11732. - * @param key - key that we're trying to find
  11733. - * @param val - data value if key is found
  11734. - * @return - the key that was the closest match or null if eof.]]>
  11735. </doc>
  11736. </method>
  11737. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11738. abstract="false" native="false" synchronized="true"
  11739. static="false" final="false" visibility="public"
  11740. deprecated="not deprecated">
  11741. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11742. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11743. <param name="before" type="boolean"/>
  11744. <exception name="IOException" type="java.io.IOException"/>
  11745. <doc>
  11746. <![CDATA[Finds the record that is the closest match to the specified key.
  11747. @param key - key that we're trying to find
  11748. @param val - data value if key is found
  11749. @param before - IF true, and <code>key</code> does not exist, return
  11750. the first entry that falls just before the <code>key</code>. Otherwise,
  11751. return the record that sorts just after.
  11752. @return - the key that was the closest match or null if eof.]]>
  11753. </doc>
  11754. </method>
  11755. <method name="close"
  11756. abstract="false" native="false" synchronized="true"
  11757. static="false" final="false" visibility="public"
  11758. deprecated="not deprecated">
  11759. <exception name="IOException" type="java.io.IOException"/>
  11760. <doc>
  11761. <![CDATA[Close the map.]]>
  11762. </doc>
  11763. </method>
  11764. <doc>
  11765. <![CDATA[Provide access to an existing map.]]>
  11766. </doc>
  11767. </class>
  11768. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  11769. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  11770. <class name="MapFile.Writer" extends="java.lang.Object"
  11771. abstract="false"
  11772. static="true" final="false" visibility="public"
  11773. deprecated="not deprecated">
  11774. <implements name="java.io.Closeable"/>
  11775. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  11776. static="false" final="false" visibility="public"
  11777. deprecated="not deprecated">
  11778. <exception name="IOException" type="java.io.IOException"/>
  11779. <doc>
  11780. <![CDATA[Create the named map for keys of the named class.]]>
  11781. </doc>
  11782. </constructor>
  11783. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  11784. static="false" final="false" visibility="public"
  11785. deprecated="not deprecated">
  11786. <exception name="IOException" type="java.io.IOException"/>
  11787. <doc>
  11788. <![CDATA[Create the named map for keys of the named class.]]>
  11789. </doc>
  11790. </constructor>
  11791. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  11792. static="false" final="false" visibility="public"
  11793. deprecated="not deprecated">
  11794. <exception name="IOException" type="java.io.IOException"/>
  11795. <doc>
  11796. <![CDATA[Create the named map for keys of the named class.]]>
  11797. </doc>
  11798. </constructor>
  11799. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  11800. static="false" final="false" visibility="public"
  11801. deprecated="not deprecated">
  11802. <exception name="IOException" type="java.io.IOException"/>
  11803. <doc>
  11804. <![CDATA[Create the named map for keys of the named class.]]>
  11805. </doc>
  11806. </constructor>
  11807. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  11808. static="false" final="false" visibility="public"
  11809. deprecated="not deprecated">
  11810. <exception name="IOException" type="java.io.IOException"/>
  11811. <doc>
  11812. <![CDATA[Create the named map using the named key comparator.]]>
  11813. </doc>
  11814. </constructor>
  11815. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  11816. static="false" final="false" visibility="public"
  11817. deprecated="not deprecated">
  11818. <exception name="IOException" type="java.io.IOException"/>
  11819. <doc>
  11820. <![CDATA[Create the named map using the named key comparator.]]>
  11821. </doc>
  11822. </constructor>
  11823. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  11824. static="false" final="false" visibility="public"
  11825. deprecated="not deprecated">
  11826. <exception name="IOException" type="java.io.IOException"/>
  11827. <doc>
  11828. <![CDATA[Create the named map using the named key comparator.]]>
  11829. </doc>
  11830. </constructor>
  11831. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  11832. static="false" final="false" visibility="public"
  11833. deprecated="not deprecated">
  11834. <exception name="IOException" type="java.io.IOException"/>
  11835. <doc>
  11836. <![CDATA[Create the named map using the named key comparator.]]>
  11837. </doc>
  11838. </constructor>
  11839. <method name="getIndexInterval" return="int"
  11840. abstract="false" native="false" synchronized="false"
  11841. static="false" final="false" visibility="public"
  11842. deprecated="not deprecated">
  11843. <doc>
  11844. <![CDATA[The number of entries that are added before an index entry is added.]]>
  11845. </doc>
  11846. </method>
  11847. <method name="setIndexInterval"
  11848. abstract="false" native="false" synchronized="false"
  11849. static="false" final="false" visibility="public"
  11850. deprecated="not deprecated">
  11851. <param name="interval" type="int"/>
  11852. <doc>
  11853. <![CDATA[Sets the index interval.
  11854. @see #getIndexInterval()]]>
  11855. </doc>
  11856. </method>
  11857. <method name="setIndexInterval"
  11858. abstract="false" native="false" synchronized="false"
  11859. static="true" final="false" visibility="public"
  11860. deprecated="not deprecated">
  11861. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11862. <param name="interval" type="int"/>
  11863. <doc>
  11864. <![CDATA[Sets the index interval and stores it in conf
  11865. @see #getIndexInterval()]]>
  11866. </doc>
  11867. </method>
  11868. <method name="close"
  11869. abstract="false" native="false" synchronized="true"
  11870. static="false" final="false" visibility="public"
  11871. deprecated="not deprecated">
  11872. <exception name="IOException" type="java.io.IOException"/>
  11873. <doc>
  11874. <![CDATA[Close the map.]]>
  11875. </doc>
  11876. </method>
  11877. <method name="append"
  11878. abstract="false" native="false" synchronized="true"
  11879. static="false" final="false" visibility="public"
  11880. deprecated="not deprecated">
  11881. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11882. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11883. <exception name="IOException" type="java.io.IOException"/>
  11884. <doc>
  11885. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  11886. to the previous key added to the map.]]>
  11887. </doc>
  11888. </method>
  11889. <doc>
  11890. <![CDATA[Writes a new map.]]>
  11891. </doc>
  11892. </class>
  11893. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  11894. <!-- start class org.apache.hadoop.io.MapWritable -->
  11895. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  11896. abstract="false"
  11897. static="false" final="false" visibility="public"
  11898. deprecated="not deprecated">
  11899. <implements name="java.util.Map"/>
  11900. <constructor name="MapWritable"
  11901. static="false" final="false" visibility="public"
  11902. deprecated="not deprecated">
  11903. <doc>
  11904. <![CDATA[Default constructor.]]>
  11905. </doc>
  11906. </constructor>
  11907. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  11908. static="false" final="false" visibility="public"
  11909. deprecated="not deprecated">
  11910. <doc>
  11911. <![CDATA[Copy constructor.
  11912. @param other the map to copy from]]>
  11913. </doc>
  11914. </constructor>
  11915. <method name="clear"
  11916. abstract="false" native="false" synchronized="false"
  11917. static="false" final="false" visibility="public"
  11918. deprecated="not deprecated">
  11919. <doc>
  11920. <![CDATA[{@inheritDoc}]]>
  11921. </doc>
  11922. </method>
  11923. <method name="containsKey" return="boolean"
  11924. abstract="false" native="false" synchronized="false"
  11925. static="false" final="false" visibility="public"
  11926. deprecated="not deprecated">
  11927. <param name="key" type="java.lang.Object"/>
  11928. <doc>
  11929. <![CDATA[{@inheritDoc}]]>
  11930. </doc>
  11931. </method>
  11932. <method name="containsValue" return="boolean"
  11933. abstract="false" native="false" synchronized="false"
  11934. static="false" final="false" visibility="public"
  11935. deprecated="not deprecated">
  11936. <param name="value" type="java.lang.Object"/>
  11937. <doc>
  11938. <![CDATA[{@inheritDoc}]]>
  11939. </doc>
  11940. </method>
  11941. <method name="entrySet" return="java.util.Set"
  11942. abstract="false" native="false" synchronized="false"
  11943. static="false" final="false" visibility="public"
  11944. deprecated="not deprecated">
  11945. <doc>
  11946. <![CDATA[{@inheritDoc}]]>
  11947. </doc>
  11948. </method>
  11949. <method name="get" return="org.apache.hadoop.io.Writable"
  11950. abstract="false" native="false" synchronized="false"
  11951. static="false" final="false" visibility="public"
  11952. deprecated="not deprecated">
  11953. <param name="key" type="java.lang.Object"/>
  11954. <doc>
  11955. <![CDATA[{@inheritDoc}]]>
  11956. </doc>
  11957. </method>
  11958. <method name="isEmpty" return="boolean"
  11959. abstract="false" native="false" synchronized="false"
  11960. static="false" final="false" visibility="public"
  11961. deprecated="not deprecated">
  11962. <doc>
  11963. <![CDATA[{@inheritDoc}]]>
  11964. </doc>
  11965. </method>
  11966. <method name="keySet" return="java.util.Set"
  11967. abstract="false" native="false" synchronized="false"
  11968. static="false" final="false" visibility="public"
  11969. deprecated="not deprecated">
  11970. <doc>
  11971. <![CDATA[{@inheritDoc}]]>
  11972. </doc>
  11973. </method>
  11974. <method name="put" return="org.apache.hadoop.io.Writable"
  11975. abstract="false" native="false" synchronized="false"
  11976. static="false" final="false" visibility="public"
  11977. deprecated="not deprecated">
  11978. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11979. <param name="value" type="org.apache.hadoop.io.Writable"/>
  11980. <doc>
  11981. <![CDATA[{@inheritDoc}]]>
  11982. </doc>
  11983. </method>
  11984. <method name="putAll"
  11985. abstract="false" native="false" synchronized="false"
  11986. static="false" final="false" visibility="public"
  11987. deprecated="not deprecated">
  11988. <param name="t" type="java.util.Map"/>
  11989. <doc>
  11990. <![CDATA[{@inheritDoc}]]>
  11991. </doc>
  11992. </method>
  11993. <method name="remove" return="org.apache.hadoop.io.Writable"
  11994. abstract="false" native="false" synchronized="false"
  11995. static="false" final="false" visibility="public"
  11996. deprecated="not deprecated">
  11997. <param name="key" type="java.lang.Object"/>
  11998. <doc>
  11999. <![CDATA[{@inheritDoc}]]>
  12000. </doc>
  12001. </method>
  12002. <method name="size" return="int"
  12003. abstract="false" native="false" synchronized="false"
  12004. static="false" final="false" visibility="public"
  12005. deprecated="not deprecated">
  12006. <doc>
  12007. <![CDATA[{@inheritDoc}]]>
  12008. </doc>
  12009. </method>
  12010. <method name="values" return="java.util.Collection"
  12011. abstract="false" native="false" synchronized="false"
  12012. static="false" final="false" visibility="public"
  12013. deprecated="not deprecated">
  12014. <doc>
  12015. <![CDATA[{@inheritDoc}]]>
  12016. </doc>
  12017. </method>
  12018. <method name="write"
  12019. abstract="false" native="false" synchronized="false"
  12020. static="false" final="false" visibility="public"
  12021. deprecated="not deprecated">
  12022. <param name="out" type="java.io.DataOutput"/>
  12023. <exception name="IOException" type="java.io.IOException"/>
  12024. <doc>
  12025. <![CDATA[{@inheritDoc}]]>
  12026. </doc>
  12027. </method>
  12028. <method name="readFields"
  12029. abstract="false" native="false" synchronized="false"
  12030. static="false" final="false" visibility="public"
  12031. deprecated="not deprecated">
  12032. <param name="in" type="java.io.DataInput"/>
  12033. <exception name="IOException" type="java.io.IOException"/>
  12034. <doc>
  12035. <![CDATA[{@inheritDoc}]]>
  12036. </doc>
  12037. </method>
  12038. <doc>
  12039. <![CDATA[A Writable Map.]]>
  12040. </doc>
  12041. </class>
  12042. <!-- end class org.apache.hadoop.io.MapWritable -->
  12043. <!-- start class org.apache.hadoop.io.MD5Hash -->
  12044. <class name="MD5Hash" extends="java.lang.Object"
  12045. abstract="false"
  12046. static="false" final="false" visibility="public"
  12047. deprecated="not deprecated">
  12048. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12049. <constructor name="MD5Hash"
  12050. static="false" final="false" visibility="public"
  12051. deprecated="not deprecated">
  12052. <doc>
  12053. <![CDATA[Constructs an MD5Hash.]]>
  12054. </doc>
  12055. </constructor>
  12056. <constructor name="MD5Hash" type="java.lang.String"
  12057. static="false" final="false" visibility="public"
  12058. deprecated="not deprecated">
  12059. <doc>
  12060. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  12061. </doc>
  12062. </constructor>
  12063. <constructor name="MD5Hash" type="byte[]"
  12064. static="false" final="false" visibility="public"
  12065. deprecated="not deprecated">
  12066. <doc>
  12067. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  12068. </doc>
  12069. </constructor>
  12070. <method name="readFields"
  12071. abstract="false" native="false" synchronized="false"
  12072. static="false" final="false" visibility="public"
  12073. deprecated="not deprecated">
  12074. <param name="in" type="java.io.DataInput"/>
  12075. <exception name="IOException" type="java.io.IOException"/>
  12076. </method>
  12077. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  12078. abstract="false" native="false" synchronized="false"
  12079. static="true" final="false" visibility="public"
  12080. deprecated="not deprecated">
  12081. <param name="in" type="java.io.DataInput"/>
  12082. <exception name="IOException" type="java.io.IOException"/>
  12083. <doc>
  12084. <![CDATA[Constructs, reads and returns an instance.]]>
  12085. </doc>
  12086. </method>
  12087. <method name="write"
  12088. abstract="false" native="false" synchronized="false"
  12089. static="false" final="false" visibility="public"
  12090. deprecated="not deprecated">
  12091. <param name="out" type="java.io.DataOutput"/>
  12092. <exception name="IOException" type="java.io.IOException"/>
  12093. </method>
  12094. <method name="set"
  12095. abstract="false" native="false" synchronized="false"
  12096. static="false" final="false" visibility="public"
  12097. deprecated="not deprecated">
  12098. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12099. <doc>
  12100. <![CDATA[Copy the contents of another instance into this instance.]]>
  12101. </doc>
  12102. </method>
  12103. <method name="getDigest" return="byte[]"
  12104. abstract="false" native="false" synchronized="false"
  12105. static="false" final="false" visibility="public"
  12106. deprecated="not deprecated">
  12107. <doc>
  12108. <![CDATA[Returns the digest bytes.]]>
  12109. </doc>
  12110. </method>
  12111. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12112. abstract="false" native="false" synchronized="false"
  12113. static="true" final="false" visibility="public"
  12114. deprecated="not deprecated">
  12115. <param name="data" type="byte[]"/>
  12116. <doc>
  12117. <![CDATA[Construct a hash value for a byte array.]]>
  12118. </doc>
  12119. </method>
  12120. <method name="getDigester" return="java.security.MessageDigest"
  12121. abstract="false" native="false" synchronized="false"
  12122. static="true" final="false" visibility="public"
  12123. deprecated="not deprecated">
  12124. <doc>
  12125. <![CDATA[Create a thread local MD5 digester]]>
  12126. </doc>
  12127. </method>
  12128. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12129. abstract="false" native="false" synchronized="false"
  12130. static="true" final="false" visibility="public"
  12131. deprecated="not deprecated">
  12132. <param name="in" type="java.io.InputStream"/>
  12133. <exception name="IOException" type="java.io.IOException"/>
  12134. <doc>
  12135. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  12136. </doc>
  12137. </method>
  12138. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12139. abstract="false" native="false" synchronized="false"
  12140. static="true" final="false" visibility="public"
  12141. deprecated="not deprecated">
  12142. <param name="data" type="byte[]"/>
  12143. <param name="start" type="int"/>
  12144. <param name="len" type="int"/>
  12145. <doc>
  12146. <![CDATA[Construct a hash value for a byte array.]]>
  12147. </doc>
  12148. </method>
  12149. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12150. abstract="false" native="false" synchronized="false"
  12151. static="true" final="false" visibility="public"
  12152. deprecated="not deprecated">
  12153. <param name="string" type="java.lang.String"/>
  12154. <doc>
  12155. <![CDATA[Construct a hash value for a String.]]>
  12156. </doc>
  12157. </method>
  12158. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12159. abstract="false" native="false" synchronized="false"
  12160. static="true" final="false" visibility="public"
  12161. deprecated="not deprecated">
  12162. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  12163. <doc>
  12164. <![CDATA[Construct a hash value for a String.]]>
  12165. </doc>
  12166. </method>
  12167. <method name="halfDigest" return="long"
  12168. abstract="false" native="false" synchronized="false"
  12169. static="false" final="false" visibility="public"
  12170. deprecated="not deprecated">
  12171. <doc>
  12172. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  12173. </doc>
  12174. </method>
  12175. <method name="quarterDigest" return="int"
  12176. abstract="false" native="false" synchronized="false"
  12177. static="false" final="false" visibility="public"
  12178. deprecated="not deprecated">
  12179. <doc>
  12180. <![CDATA[Return a 32-bit digest of the MD5.
  12181. @return the first 4 bytes of the md5]]>
  12182. </doc>
  12183. </method>
  12184. <method name="equals" return="boolean"
  12185. abstract="false" native="false" synchronized="false"
  12186. static="false" final="false" visibility="public"
  12187. deprecated="not deprecated">
  12188. <param name="o" type="java.lang.Object"/>
  12189. <doc>
  12190. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  12191. same values.]]>
  12192. </doc>
  12193. </method>
  12194. <method name="hashCode" return="int"
  12195. abstract="false" native="false" synchronized="false"
  12196. static="false" final="false" visibility="public"
  12197. deprecated="not deprecated">
  12198. <doc>
  12199. <![CDATA[Returns a hash code value for this object.
  12200. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  12201. </doc>
  12202. </method>
  12203. <method name="compareTo" return="int"
  12204. abstract="false" native="false" synchronized="false"
  12205. static="false" final="false" visibility="public"
  12206. deprecated="not deprecated">
  12207. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12208. <doc>
  12209. <![CDATA[Compares this object with the specified object for order.]]>
  12210. </doc>
  12211. </method>
  12212. <method name="toString" return="java.lang.String"
  12213. abstract="false" native="false" synchronized="false"
  12214. static="false" final="false" visibility="public"
  12215. deprecated="not deprecated">
  12216. <doc>
  12217. <![CDATA[Returns a string representation of this object.]]>
  12218. </doc>
  12219. </method>
  12220. <method name="setDigest"
  12221. abstract="false" native="false" synchronized="false"
  12222. static="false" final="false" visibility="public"
  12223. deprecated="not deprecated">
  12224. <param name="hex" type="java.lang.String"/>
  12225. <doc>
  12226. <![CDATA[Sets the digest value from a hex string.]]>
  12227. </doc>
  12228. </method>
  12229. <field name="MD5_LEN" type="int"
  12230. transient="false" volatile="false"
  12231. static="true" final="true" visibility="public"
  12232. deprecated="not deprecated">
  12233. </field>
  12234. <doc>
  12235. <![CDATA[A Writable for MD5 hash values.]]>
  12236. </doc>
  12237. </class>
  12238. <!-- end class org.apache.hadoop.io.MD5Hash -->
  12239. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  12240. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12241. abstract="false"
  12242. static="true" final="false" visibility="public"
  12243. deprecated="not deprecated">
  12244. <constructor name="MD5Hash.Comparator"
  12245. static="false" final="false" visibility="public"
  12246. deprecated="not deprecated">
  12247. </constructor>
  12248. <method name="compare" return="int"
  12249. abstract="false" native="false" synchronized="false"
  12250. static="false" final="false" visibility="public"
  12251. deprecated="not deprecated">
  12252. <param name="b1" type="byte[]"/>
  12253. <param name="s1" type="int"/>
  12254. <param name="l1" type="int"/>
  12255. <param name="b2" type="byte[]"/>
  12256. <param name="s2" type="int"/>
  12257. <param name="l2" type="int"/>
  12258. </method>
  12259. <doc>
  12260. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  12261. </doc>
  12262. </class>
  12263. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  12264. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  12265. <class name="MultipleIOException" extends="java.io.IOException"
  12266. abstract="false"
  12267. static="false" final="false" visibility="public"
  12268. deprecated="not deprecated">
  12269. <method name="getExceptions" return="java.util.List"
  12270. abstract="false" native="false" synchronized="false"
  12271. static="false" final="false" visibility="public"
  12272. deprecated="not deprecated">
  12273. <doc>
  12274. <![CDATA[@return the underlying exceptions]]>
  12275. </doc>
  12276. </method>
  12277. <method name="createIOException" return="java.io.IOException"
  12278. abstract="false" native="false" synchronized="false"
  12279. static="true" final="false" visibility="public"
  12280. deprecated="not deprecated">
  12281. <param name="exceptions" type="java.util.List"/>
  12282. <doc>
  12283. <![CDATA[A convenient method to create an {@link IOException}.]]>
  12284. </doc>
  12285. </method>
  12286. <doc>
  12287. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  12288. </doc>
  12289. </class>
  12290. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  12291. <!-- start class org.apache.hadoop.io.NullWritable -->
  12292. <class name="NullWritable" extends="java.lang.Object"
  12293. abstract="false"
  12294. static="false" final="false" visibility="public"
  12295. deprecated="not deprecated">
  12296. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12297. <method name="get" return="org.apache.hadoop.io.NullWritable"
  12298. abstract="false" native="false" synchronized="false"
  12299. static="true" final="false" visibility="public"
  12300. deprecated="not deprecated">
  12301. <doc>
  12302. <![CDATA[Returns the single instance of this class.]]>
  12303. </doc>
  12304. </method>
  12305. <method name="toString" return="java.lang.String"
  12306. abstract="false" native="false" synchronized="false"
  12307. static="false" final="false" visibility="public"
  12308. deprecated="not deprecated">
  12309. </method>
  12310. <method name="hashCode" return="int"
  12311. abstract="false" native="false" synchronized="false"
  12312. static="false" final="false" visibility="public"
  12313. deprecated="not deprecated">
  12314. </method>
  12315. <method name="compareTo" return="int"
  12316. abstract="false" native="false" synchronized="false"
  12317. static="false" final="false" visibility="public"
  12318. deprecated="not deprecated">
  12319. <param name="other" type="java.lang.Object"/>
  12320. </method>
  12321. <method name="equals" return="boolean"
  12322. abstract="false" native="false" synchronized="false"
  12323. static="false" final="false" visibility="public"
  12324. deprecated="not deprecated">
  12325. <param name="other" type="java.lang.Object"/>
  12326. </method>
  12327. <method name="readFields"
  12328. abstract="false" native="false" synchronized="false"
  12329. static="false" final="false" visibility="public"
  12330. deprecated="not deprecated">
  12331. <param name="in" type="java.io.DataInput"/>
  12332. <exception name="IOException" type="java.io.IOException"/>
  12333. </method>
  12334. <method name="write"
  12335. abstract="false" native="false" synchronized="false"
  12336. static="false" final="false" visibility="public"
  12337. deprecated="not deprecated">
  12338. <param name="out" type="java.io.DataOutput"/>
  12339. <exception name="IOException" type="java.io.IOException"/>
  12340. </method>
  12341. <doc>
  12342. <![CDATA[Singleton Writable with no data.]]>
  12343. </doc>
  12344. </class>
  12345. <!-- end class org.apache.hadoop.io.NullWritable -->
  12346. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  12347. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12348. abstract="false"
  12349. static="true" final="false" visibility="public"
  12350. deprecated="not deprecated">
  12351. <constructor name="NullWritable.Comparator"
  12352. static="false" final="false" visibility="public"
  12353. deprecated="not deprecated">
  12354. </constructor>
  12355. <method name="compare" return="int"
  12356. abstract="false" native="false" synchronized="false"
  12357. static="false" final="false" visibility="public"
  12358. deprecated="not deprecated">
  12359. <param name="b1" type="byte[]"/>
  12360. <param name="s1" type="int"/>
  12361. <param name="l1" type="int"/>
  12362. <param name="b2" type="byte[]"/>
  12363. <param name="s2" type="int"/>
  12364. <param name="l2" type="int"/>
  12365. <doc>
  12366. <![CDATA[Compare the buffers in serialized form.]]>
  12367. </doc>
  12368. </method>
  12369. <doc>
  12370. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  12371. </doc>
  12372. </class>
  12373. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  12374. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  12375. <class name="ObjectWritable" extends="java.lang.Object"
  12376. abstract="false"
  12377. static="false" final="false" visibility="public"
  12378. deprecated="not deprecated">
  12379. <implements name="org.apache.hadoop.io.Writable"/>
  12380. <implements name="org.apache.hadoop.conf.Configurable"/>
  12381. <constructor name="ObjectWritable"
  12382. static="false" final="false" visibility="public"
  12383. deprecated="not deprecated">
  12384. </constructor>
  12385. <constructor name="ObjectWritable" type="java.lang.Object"
  12386. static="false" final="false" visibility="public"
  12387. deprecated="not deprecated">
  12388. </constructor>
  12389. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  12390. static="false" final="false" visibility="public"
  12391. deprecated="not deprecated">
  12392. </constructor>
  12393. <method name="get" return="java.lang.Object"
  12394. abstract="false" native="false" synchronized="false"
  12395. static="false" final="false" visibility="public"
  12396. deprecated="not deprecated">
  12397. <doc>
  12398. <![CDATA[Return the instance, or null if none.]]>
  12399. </doc>
  12400. </method>
  12401. <method name="getDeclaredClass" return="java.lang.Class"
  12402. abstract="false" native="false" synchronized="false"
  12403. static="false" final="false" visibility="public"
  12404. deprecated="not deprecated">
  12405. <doc>
  12406. <![CDATA[Return the class this is meant to be.]]>
  12407. </doc>
  12408. </method>
  12409. <method name="set"
  12410. abstract="false" native="false" synchronized="false"
  12411. static="false" final="false" visibility="public"
  12412. deprecated="not deprecated">
  12413. <param name="instance" type="java.lang.Object"/>
  12414. <doc>
  12415. <![CDATA[Reset the instance.]]>
  12416. </doc>
  12417. </method>
  12418. <method name="toString" return="java.lang.String"
  12419. abstract="false" native="false" synchronized="false"
  12420. static="false" final="false" visibility="public"
  12421. deprecated="not deprecated">
  12422. </method>
  12423. <method name="readFields"
  12424. abstract="false" native="false" synchronized="false"
  12425. static="false" final="false" visibility="public"
  12426. deprecated="not deprecated">
  12427. <param name="in" type="java.io.DataInput"/>
  12428. <exception name="IOException" type="java.io.IOException"/>
  12429. </method>
  12430. <method name="write"
  12431. abstract="false" native="false" synchronized="false"
  12432. static="false" final="false" visibility="public"
  12433. deprecated="not deprecated">
  12434. <param name="out" type="java.io.DataOutput"/>
  12435. <exception name="IOException" type="java.io.IOException"/>
  12436. </method>
  12437. <method name="writeObject"
  12438. abstract="false" native="false" synchronized="false"
  12439. static="true" final="false" visibility="public"
  12440. deprecated="not deprecated">
  12441. <param name="out" type="java.io.DataOutput"/>
  12442. <param name="instance" type="java.lang.Object"/>
  12443. <param name="declaredClass" type="java.lang.Class"/>
  12444. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12445. <exception name="IOException" type="java.io.IOException"/>
  12446. <doc>
  12447. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12448. the preceding.]]>
  12449. </doc>
  12450. </method>
  12451. <method name="readObject" return="java.lang.Object"
  12452. abstract="false" native="false" synchronized="false"
  12453. static="true" final="false" visibility="public"
  12454. deprecated="not deprecated">
  12455. <param name="in" type="java.io.DataInput"/>
  12456. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12457. <exception name="IOException" type="java.io.IOException"/>
  12458. <doc>
  12459. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12460. the preceding.]]>
  12461. </doc>
  12462. </method>
  12463. <method name="readObject" return="java.lang.Object"
  12464. abstract="false" native="false" synchronized="false"
  12465. static="true" final="false" visibility="public"
  12466. deprecated="not deprecated">
  12467. <param name="in" type="java.io.DataInput"/>
  12468. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  12469. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12470. <exception name="IOException" type="java.io.IOException"/>
  12471. <doc>
  12472. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12473. the preceding.]]>
  12474. </doc>
  12475. </method>
  12476. <method name="setConf"
  12477. abstract="false" native="false" synchronized="false"
  12478. static="false" final="false" visibility="public"
  12479. deprecated="not deprecated">
  12480. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12481. </method>
  12482. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12483. abstract="false" native="false" synchronized="false"
  12484. static="false" final="false" visibility="public"
  12485. deprecated="not deprecated">
  12486. </method>
  12487. <doc>
  12488. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  12489. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  12490. </doc>
  12491. </class>
  12492. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  12493. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  12494. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  12495. abstract="false"
  12496. static="false" final="false" visibility="public"
  12497. deprecated="not deprecated">
  12498. <constructor name="OutputBuffer"
  12499. static="false" final="false" visibility="public"
  12500. deprecated="not deprecated">
  12501. <doc>
  12502. <![CDATA[Constructs a new empty buffer.]]>
  12503. </doc>
  12504. </constructor>
  12505. <method name="getData" return="byte[]"
  12506. abstract="false" native="false" synchronized="false"
  12507. static="false" final="false" visibility="public"
  12508. deprecated="not deprecated">
  12509. <doc>
  12510. <![CDATA[Returns the current contents of the buffer.
  12511. Data is only valid to {@link #getLength()}.]]>
  12512. </doc>
  12513. </method>
  12514. <method name="getLength" return="int"
  12515. abstract="false" native="false" synchronized="false"
  12516. static="false" final="false" visibility="public"
  12517. deprecated="not deprecated">
  12518. <doc>
  12519. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  12520. </doc>
  12521. </method>
  12522. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  12523. abstract="false" native="false" synchronized="false"
  12524. static="false" final="false" visibility="public"
  12525. deprecated="not deprecated">
  12526. <doc>
  12527. <![CDATA[Resets the buffer to empty.]]>
  12528. </doc>
  12529. </method>
  12530. <method name="write"
  12531. abstract="false" native="false" synchronized="false"
  12532. static="false" final="false" visibility="public"
  12533. deprecated="not deprecated">
  12534. <param name="in" type="java.io.InputStream"/>
  12535. <param name="length" type="int"/>
  12536. <exception name="IOException" type="java.io.IOException"/>
  12537. <doc>
  12538. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  12539. </doc>
  12540. </method>
  12541. <doc>
  12542. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  12543. buffer.
  12544. <p>This saves memory over creating a new OutputStream and
  12545. ByteArrayOutputStream each time data is written.
  12546. <p>Typical usage is something like the following:<pre>
  12547. OutputBuffer buffer = new OutputBuffer();
  12548. while (... loop condition ...) {
  12549. buffer.reset();
  12550. ... write buffer using OutputStream methods ...
  12551. byte[] data = buffer.getData();
  12552. int dataLength = buffer.getLength();
  12553. ... write data to its ultimate destination ...
  12554. }
  12555. </pre>
  12556. @see DataOutputBuffer
  12557. @see InputBuffer]]>
  12558. </doc>
  12559. </class>
  12560. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  12561. <!-- start interface org.apache.hadoop.io.RawComparator -->
  12562. <interface name="RawComparator" abstract="true"
  12563. static="false" final="false" visibility="public"
  12564. deprecated="not deprecated">
  12565. <implements name="java.util.Comparator"/>
  12566. <method name="compare" return="int"
  12567. abstract="false" native="false" synchronized="false"
  12568. static="false" final="false" visibility="public"
  12569. deprecated="not deprecated">
  12570. <param name="b1" type="byte[]"/>
  12571. <param name="s1" type="int"/>
  12572. <param name="l1" type="int"/>
  12573. <param name="b2" type="byte[]"/>
  12574. <param name="s2" type="int"/>
  12575. <param name="l2" type="int"/>
  12576. </method>
  12577. <doc>
  12578. <![CDATA[<p>
  12579. A {@link Comparator} that operates directly on byte representations of
  12580. objects.
  12581. </p>
  12582. @param <T>
  12583. @see DeserializerComparator]]>
  12584. </doc>
  12585. </interface>
  12586. <!-- end interface org.apache.hadoop.io.RawComparator -->
  12587. <!-- start class org.apache.hadoop.io.ReadaheadPool -->
  12588. <class name="ReadaheadPool" extends="java.lang.Object"
  12589. abstract="false"
  12590. static="false" final="false" visibility="public"
  12591. deprecated="not deprecated">
  12592. <method name="getInstance" return="org.apache.hadoop.io.ReadaheadPool"
  12593. abstract="false" native="false" synchronized="false"
  12594. static="true" final="false" visibility="public"
  12595. deprecated="not deprecated">
  12596. <doc>
  12597. <![CDATA[Return the singleton instance for the current process.]]>
  12598. </doc>
  12599. </method>
  12600. <method name="readaheadStream" return="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"
  12601. abstract="false" native="false" synchronized="false"
  12602. static="false" final="false" visibility="public"
  12603. deprecated="not deprecated">
  12604. <param name="identifier" type="java.lang.String"/>
  12605. <param name="fd" type="java.io.FileDescriptor"/>
  12606. <param name="curPos" type="long"/>
  12607. <param name="readaheadLength" type="long"/>
  12608. <param name="maxOffsetToRead" type="long"/>
  12609. <param name="lastReadahead" type="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"/>
  12610. <doc>
  12611. <![CDATA[Issue a request to readahead on the given file descriptor.
  12612. @param identifier a textual identifier that will be used in error
  12613. messages (e.g. the file name)
  12614. @param fd the file descriptor to read ahead
  12615. @param curPos the current offset at which reads are being issued
  12616. @param readaheadLength the configured length to read ahead
  12617. @param maxOffsetToRead the maximum offset that will be readahead
  12618. (useful if, for example, only some segment of the file is
  12619. requested by the user). Pass {@link Long.MAX_VALUE} to allow
  12620. readahead to the end of the file.
  12621. @param lastReadahead the result returned by the previous invocation
  12622. of this function on this file descriptor, or null if this is
  12623. the first call
  12624. @return an object representing this outstanding request, or null
  12625. if no readahead was performed]]>
  12626. </doc>
  12627. </method>
  12628. <method name="submitReadahead" return="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"
  12629. abstract="false" native="false" synchronized="false"
  12630. static="false" final="false" visibility="public"
  12631. deprecated="not deprecated">
  12632. <param name="identifier" type="java.lang.String"/>
  12633. <param name="fd" type="java.io.FileDescriptor"/>
  12634. <param name="off" type="long"/>
  12635. <param name="len" type="long"/>
  12636. <doc>
  12637. <![CDATA[Submit a request to readahead on the given file descriptor.
  12638. @param identifier a textual identifier used in error messages, etc.
  12639. @param fd the file descriptor to readahead
  12640. @param off the offset at which to start the readahead
  12641. @param len the number of bytes to read
  12642. @return an object representing this pending request]]>
  12643. </doc>
  12644. </method>
  12645. <doc>
  12646. <![CDATA[Manages a pool of threads which can issue readahead requests on file descriptors.]]>
  12647. </doc>
  12648. </class>
  12649. <!-- end class org.apache.hadoop.io.ReadaheadPool -->
  12650. <!-- start interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  12651. <interface name="ReadaheadPool.ReadaheadRequest" abstract="true"
  12652. static="true" final="false" visibility="public"
  12653. deprecated="not deprecated">
  12654. <method name="cancel"
  12655. abstract="false" native="false" synchronized="false"
  12656. static="false" final="false" visibility="public"
  12657. deprecated="not deprecated">
  12658. <doc>
  12659. <![CDATA[Cancels the request for readahead. This should be used
  12660. if the reader no longer needs the requested data, <em>before</em>
  12661. closing the related file descriptor.
  12662. It is safe to use even if the readahead request has already
  12663. been fulfilled.]]>
  12664. </doc>
  12665. </method>
  12666. <method name="getOffset" return="long"
  12667. abstract="false" native="false" synchronized="false"
  12668. static="false" final="false" visibility="public"
  12669. deprecated="not deprecated">
  12670. <doc>
  12671. <![CDATA[@return the requested offset]]>
  12672. </doc>
  12673. </method>
  12674. <method name="getLength" return="long"
  12675. abstract="false" native="false" synchronized="false"
  12676. static="false" final="false" visibility="public"
  12677. deprecated="not deprecated">
  12678. <doc>
  12679. <![CDATA[@return the requested length]]>
  12680. </doc>
  12681. </method>
  12682. <doc>
  12683. <![CDATA[An outstanding readahead request that has been submitted to
  12684. the pool. This request may be pending or may have been
  12685. completed.]]>
  12686. </doc>
  12687. </interface>
  12688. <!-- end interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  12689. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  12690. <class name="SecureIOUtils" extends="java.lang.Object"
  12691. abstract="false"
  12692. static="false" final="false" visibility="public"
  12693. deprecated="not deprecated">
  12694. <constructor name="SecureIOUtils"
  12695. static="false" final="false" visibility="public"
  12696. deprecated="not deprecated">
  12697. </constructor>
  12698. <method name="openForRead" return="java.io.FileInputStream"
  12699. abstract="false" native="false" synchronized="false"
  12700. static="true" final="false" visibility="public"
  12701. deprecated="not deprecated">
  12702. <param name="f" type="java.io.File"/>
  12703. <param name="expectedOwner" type="java.lang.String"/>
  12704. <exception name="IOException" type="java.io.IOException"/>
  12705. <doc>
  12706. <![CDATA[Open the given File for read access, verifying the expected user
  12707. constraints.
  12708. @param f the file that we are trying to open
  12709. @param expectedOwner the expected user owner for the file
  12710. @throws IOException if an IO Error occurred, or the user does not
  12711. match]]>
  12712. </doc>
  12713. </method>
  12714. <method name="createForWrite" return="java.io.FileOutputStream"
  12715. abstract="false" native="false" synchronized="false"
  12716. static="true" final="false" visibility="public"
  12717. deprecated="not deprecated">
  12718. <param name="f" type="java.io.File"/>
  12719. <param name="permissions" type="int"/>
  12720. <exception name="IOException" type="java.io.IOException"/>
  12721. <doc>
  12722. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  12723. @param f the file that we want to create
  12724. @param permissions we want to have on the file (if security is enabled)
  12725. @throws AlreadyExistsException if the file already exists
  12726. @throws IOException if any other error occurred]]>
  12727. </doc>
  12728. </method>
  12729. <doc>
  12730. <![CDATA[This class provides secure APIs for opening and creating files on the local
  12731. disk. The main issue this class tries to handle is that of symlink traversal.
  12732. <br/>
  12733. An example of such an attack is:
  12734. <ol>
  12735. <li> Malicious user removes his task's syslog file, and puts a link to the
  12736. jobToken file of a target user.</li>
  12737. <li> Malicious user tries to open the syslog file via the servlet on the
  12738. tasktracker.</li>
  12739. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  12740. of the jobToken file. The malicious user can now access potentially sensitive
  12741. map outputs, etc. of the target user's job.</li>
  12742. </ol>
  12743. A similar attack is possible involving the
  12744. {@link org.apache.hadoop.mapred.TaskLogsTruncater}, but here it is to do
  12745. with unsecure write to a file.
  12746. <br/>]]>
  12747. </doc>
  12748. </class>
  12749. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  12750. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12751. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  12752. abstract="false"
  12753. static="true" final="false" visibility="public"
  12754. deprecated="not deprecated">
  12755. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  12756. static="false" final="false" visibility="public"
  12757. deprecated="not deprecated">
  12758. </constructor>
  12759. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  12760. static="false" final="false" visibility="public"
  12761. deprecated="not deprecated">
  12762. </constructor>
  12763. <doc>
  12764. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  12765. because another file already existed at that path.]]>
  12766. </doc>
  12767. </class>
  12768. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12769. <!-- start class org.apache.hadoop.io.SequenceFile -->
  12770. <class name="SequenceFile" extends="java.lang.Object"
  12771. abstract="false"
  12772. static="false" final="false" visibility="public"
  12773. deprecated="not deprecated">
  12774. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12775. abstract="false" native="false" synchronized="false"
  12776. static="true" final="false" visibility="public"
  12777. deprecated="Use
  12778. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12779. to get {@link CompressionType} for job-outputs.">
  12780. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12781. <doc>
  12782. <![CDATA[Get the compression type for the reduce outputs
  12783. @param job the job config to look in
  12784. @return the kind of compression to use
  12785. @deprecated Use
  12786. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12787. to get {@link CompressionType} for job-outputs.]]>
  12788. </doc>
  12789. </method>
  12790. <method name="setCompressionType"
  12791. abstract="false" native="false" synchronized="false"
  12792. static="true" final="false" visibility="public"
  12793. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  12794. the {@link CompressionType} while creating the {@link SequenceFile} or
  12795. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12796. to specify the {@link CompressionType} for job-outputs.
  12797. or">
  12798. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12799. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12800. <doc>
  12801. <![CDATA[Set the compression type for sequence files.
  12802. @param job the configuration to modify
  12803. @param val the new compression type (none, block, record)
  12804. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  12805. the {@link CompressionType} while creating the {@link SequenceFile} or
  12806. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12807. to specify the {@link CompressionType} for job-outputs.
  12808. or]]>
  12809. </doc>
  12810. </method>
  12811. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12812. abstract="false" native="false" synchronized="false"
  12813. static="true" final="false" visibility="public"
  12814. deprecated="not deprecated">
  12815. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12817. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12818. <param name="keyClass" type="java.lang.Class"/>
  12819. <param name="valClass" type="java.lang.Class"/>
  12820. <exception name="IOException" type="java.io.IOException"/>
  12821. <doc>
  12822. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12823. @param fs The configured filesystem.
  12824. @param conf The configuration.
  12825. @param name The name of the file.
  12826. @param keyClass The 'key' type.
  12827. @param valClass The 'value' type.
  12828. @return Returns the handle to the constructed SequenceFile Writer.
  12829. @throws IOException]]>
  12830. </doc>
  12831. </method>
  12832. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12833. abstract="false" native="false" synchronized="false"
  12834. static="true" final="false" visibility="public"
  12835. deprecated="not deprecated">
  12836. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12837. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12838. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12839. <param name="keyClass" type="java.lang.Class"/>
  12840. <param name="valClass" type="java.lang.Class"/>
  12841. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12842. <exception name="IOException" type="java.io.IOException"/>
  12843. <doc>
  12844. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12845. @param fs The configured filesystem.
  12846. @param conf The configuration.
  12847. @param name The name of the file.
  12848. @param keyClass The 'key' type.
  12849. @param valClass The 'value' type.
  12850. @param compressionType The compression type.
  12851. @return Returns the handle to the constructed SequenceFile Writer.
  12852. @throws IOException]]>
  12853. </doc>
  12854. </method>
  12855. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12856. abstract="false" native="false" synchronized="false"
  12857. static="true" final="false" visibility="public"
  12858. deprecated="not deprecated">
  12859. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12860. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12861. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12862. <param name="keyClass" type="java.lang.Class"/>
  12863. <param name="valClass" type="java.lang.Class"/>
  12864. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12865. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12866. <exception name="IOException" type="java.io.IOException"/>
  12867. <doc>
  12868. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12869. @param fs The configured filesystem.
  12870. @param conf The configuration.
  12871. @param name The name of the file.
  12872. @param keyClass The 'key' type.
  12873. @param valClass The 'value' type.
  12874. @param compressionType The compression type.
  12875. @param progress The Progressable object to track progress.
  12876. @return Returns the handle to the constructed SequenceFile Writer.
  12877. @throws IOException]]>
  12878. </doc>
  12879. </method>
  12880. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12881. abstract="false" native="false" synchronized="false"
  12882. static="true" final="false" visibility="public"
  12883. deprecated="not deprecated">
  12884. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12885. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12886. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12887. <param name="keyClass" type="java.lang.Class"/>
  12888. <param name="valClass" type="java.lang.Class"/>
  12889. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12890. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12891. <exception name="IOException" type="java.io.IOException"/>
  12892. <doc>
  12893. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12894. @param fs The configured filesystem.
  12895. @param conf The configuration.
  12896. @param name The name of the file.
  12897. @param keyClass The 'key' type.
  12898. @param valClass The 'value' type.
  12899. @param compressionType The compression type.
  12900. @param codec The compression codec.
  12901. @return Returns the handle to the constructed SequenceFile Writer.
  12902. @throws IOException]]>
  12903. </doc>
  12904. </method>
  12905. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12906. abstract="false" native="false" synchronized="false"
  12907. static="true" final="false" visibility="public"
  12908. deprecated="not deprecated">
  12909. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12910. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12911. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12912. <param name="keyClass" type="java.lang.Class"/>
  12913. <param name="valClass" type="java.lang.Class"/>
  12914. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12915. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12916. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12917. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12918. <exception name="IOException" type="java.io.IOException"/>
  12919. <doc>
  12920. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12921. @param fs The configured filesystem.
  12922. @param conf The configuration.
  12923. @param name The name of the file.
  12924. @param keyClass The 'key' type.
  12925. @param valClass The 'value' type.
  12926. @param compressionType The compression type.
  12927. @param codec The compression codec.
  12928. @param progress The Progressable object to track progress.
  12929. @param metadata The metadata of the file.
  12930. @return Returns the handle to the constructed SequenceFile Writer.
  12931. @throws IOException]]>
  12932. </doc>
  12933. </method>
  12934. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12935. abstract="false" native="false" synchronized="false"
  12936. static="true" final="false" visibility="public"
  12937. deprecated="not deprecated">
  12938. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12940. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12941. <param name="keyClass" type="java.lang.Class"/>
  12942. <param name="valClass" type="java.lang.Class"/>
  12943. <param name="bufferSize" type="int"/>
  12944. <param name="replication" type="short"/>
  12945. <param name="blockSize" type="long"/>
  12946. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12947. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12948. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12949. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12950. <exception name="IOException" type="java.io.IOException"/>
  12951. <doc>
  12952. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12953. @param fs The configured filesystem.
  12954. @param conf The configuration.
  12955. @param name The name of the file.
  12956. @param keyClass The 'key' type.
  12957. @param valClass The 'value' type.
  12958. @param bufferSize buffer size for the underlaying outputstream.
  12959. @param replication replication factor for the file.
  12960. @param blockSize block size for the file.
  12961. @param compressionType The compression type.
  12962. @param codec The compression codec.
  12963. @param progress The Progressable object to track progress.
  12964. @param metadata The metadata of the file.
  12965. @return Returns the handle to the constructed SequenceFile Writer.
  12966. @throws IOException]]>
  12967. </doc>
  12968. </method>
  12969. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12970. abstract="false" native="false" synchronized="false"
  12971. static="true" final="false" visibility="public"
  12972. deprecated="not deprecated">
  12973. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12974. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12975. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12976. <param name="keyClass" type="java.lang.Class"/>
  12977. <param name="valClass" type="java.lang.Class"/>
  12978. <param name="bufferSize" type="int"/>
  12979. <param name="replication" type="short"/>
  12980. <param name="blockSize" type="long"/>
  12981. <param name="createParent" type="boolean"/>
  12982. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12983. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12984. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12985. <exception name="IOException" type="java.io.IOException"/>
  12986. <doc>
  12987. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12988. @param fs The configured filesystem.
  12989. @param conf The configuration.
  12990. @param name The name of the file.
  12991. @param keyClass The 'key' type.
  12992. @param valClass The 'value' type.
  12993. @param bufferSize buffer size for the underlaying outputstream.
  12994. @param replication replication factor for the file.
  12995. @param blockSize block size for the file.
  12996. @param createParent create parent directory if non-existent
  12997. @param compressionType The compression type.
  12998. @param codec The compression codec.
  12999. @param metadata The metadata of the file.
  13000. @return Returns the handle to the constructed SequenceFile Writer.
  13001. @throws IOException]]>
  13002. </doc>
  13003. </method>
  13004. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13005. abstract="false" native="false" synchronized="false"
  13006. static="true" final="false" visibility="public"
  13007. deprecated="not deprecated">
  13008. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13009. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13010. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13011. <param name="keyClass" type="java.lang.Class"/>
  13012. <param name="valClass" type="java.lang.Class"/>
  13013. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13014. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13015. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13016. <exception name="IOException" type="java.io.IOException"/>
  13017. <doc>
  13018. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13019. @param fs The configured filesystem.
  13020. @param conf The configuration.
  13021. @param name The name of the file.
  13022. @param keyClass The 'key' type.
  13023. @param valClass The 'value' type.
  13024. @param compressionType The compression type.
  13025. @param codec The compression codec.
  13026. @param progress The Progressable object to track progress.
  13027. @return Returns the handle to the constructed SequenceFile Writer.
  13028. @throws IOException]]>
  13029. </doc>
  13030. </method>
  13031. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13032. abstract="false" native="false" synchronized="false"
  13033. static="true" final="false" visibility="public"
  13034. deprecated="not deprecated">
  13035. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13036. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13037. <param name="keyClass" type="java.lang.Class"/>
  13038. <param name="valClass" type="java.lang.Class"/>
  13039. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13040. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13041. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13042. <exception name="IOException" type="java.io.IOException"/>
  13043. <doc>
  13044. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13045. @param conf The configuration.
  13046. @param out The stream on top which the writer is to be constructed.
  13047. @param keyClass The 'key' type.
  13048. @param valClass The 'value' type.
  13049. @param compressionType The compression type.
  13050. @param codec The compression codec.
  13051. @param metadata The metadata of the file.
  13052. @return Returns the handle to the constructed SequenceFile Writer.
  13053. @throws IOException]]>
  13054. </doc>
  13055. </method>
  13056. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13057. abstract="false" native="false" synchronized="false"
  13058. static="true" final="false" visibility="public"
  13059. deprecated="not deprecated">
  13060. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13061. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13062. <param name="keyClass" type="java.lang.Class"/>
  13063. <param name="valClass" type="java.lang.Class"/>
  13064. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13065. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13066. <exception name="IOException" type="java.io.IOException"/>
  13067. <doc>
  13068. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13069. @param conf The configuration.
  13070. @param out The stream on top which the writer is to be constructed.
  13071. @param keyClass The 'key' type.
  13072. @param valClass The 'value' type.
  13073. @param compressionType The compression type.
  13074. @param codec The compression codec.
  13075. @return Returns the handle to the constructed SequenceFile Writer.
  13076. @throws IOException]]>
  13077. </doc>
  13078. </method>
  13079. <field name="SYNC_INTERVAL" type="int"
  13080. transient="false" volatile="false"
  13081. static="true" final="true" visibility="public"
  13082. deprecated="not deprecated">
  13083. <doc>
  13084. <![CDATA[The number of bytes between sync points.]]>
  13085. </doc>
  13086. </field>
  13087. <doc>
  13088. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  13089. pairs.
  13090. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  13091. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  13092. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  13093. {@link CompressionType} used to compress key/value pairs:
  13094. <ol>
  13095. <li>
  13096. <code>Writer</code> : Uncompressed records.
  13097. </li>
  13098. <li>
  13099. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  13100. values.
  13101. </li>
  13102. <li>
  13103. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  13104. values are collected in 'blocks'
  13105. separately and compressed. The size of
  13106. the 'block' is configurable.
  13107. </ol>
  13108. <p>The actual compression algorithm used to compress key and/or values can be
  13109. specified by using the appropriate {@link CompressionCodec}.</p>
  13110. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  13111. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  13112. <p>The {@link Reader} acts as the bridge and can read any of the above
  13113. <code>SequenceFile</code> formats.</p>
  13114. <h4 id="Formats">SequenceFile Formats</h4>
  13115. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  13116. depending on the <code>CompressionType</code> specified. All of them share a
  13117. <a href="#Header">common header</a> described below.
  13118. <h5 id="Header">SequenceFile Header</h5>
  13119. <ul>
  13120. <li>
  13121. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  13122. version number (e.g. SEQ4 or SEQ6)
  13123. </li>
  13124. <li>
  13125. keyClassName -key class
  13126. </li>
  13127. <li>
  13128. valueClassName - value class
  13129. </li>
  13130. <li>
  13131. compression - A boolean which specifies if compression is turned on for
  13132. keys/values in this file.
  13133. </li>
  13134. <li>
  13135. blockCompression - A boolean which specifies if block-compression is
  13136. turned on for keys/values in this file.
  13137. </li>
  13138. <li>
  13139. compression codec - <code>CompressionCodec</code> class which is used for
  13140. compression of keys and/or values (if compression is
  13141. enabled).
  13142. </li>
  13143. <li>
  13144. metadata - {@link Metadata} for this file.
  13145. </li>
  13146. <li>
  13147. sync - A sync marker to denote end of the header.
  13148. </li>
  13149. </ul>
  13150. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  13151. <ul>
  13152. <li>
  13153. <a href="#Header">Header</a>
  13154. </li>
  13155. <li>
  13156. Record
  13157. <ul>
  13158. <li>Record length</li>
  13159. <li>Key length</li>
  13160. <li>Key</li>
  13161. <li>Value</li>
  13162. </ul>
  13163. </li>
  13164. <li>
  13165. A sync-marker every few <code>100</code> bytes or so.
  13166. </li>
  13167. </ul>
  13168. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  13169. <ul>
  13170. <li>
  13171. <a href="#Header">Header</a>
  13172. </li>
  13173. <li>
  13174. Record
  13175. <ul>
  13176. <li>Record length</li>
  13177. <li>Key length</li>
  13178. <li>Key</li>
  13179. <li><i>Compressed</i> Value</li>
  13180. </ul>
  13181. </li>
  13182. <li>
  13183. A sync-marker every few <code>100</code> bytes or so.
  13184. </li>
  13185. </ul>
  13186. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  13187. <ul>
  13188. <li>
  13189. <a href="#Header">Header</a>
  13190. </li>
  13191. <li>
  13192. Record <i>Block</i>
  13193. <ul>
  13194. <li>Compressed key-lengths block-size</li>
  13195. <li>Compressed key-lengths block</li>
  13196. <li>Compressed keys block-size</li>
  13197. <li>Compressed keys block</li>
  13198. <li>Compressed value-lengths block-size</li>
  13199. <li>Compressed value-lengths block</li>
  13200. <li>Compressed values block-size</li>
  13201. <li>Compressed values block</li>
  13202. </ul>
  13203. </li>
  13204. <li>
  13205. A sync-marker every few <code>100</code> bytes or so.
  13206. </li>
  13207. </ul>
  13208. <p>The compressed blocks of key lengths and value lengths consist of the
  13209. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  13210. format.</p>
  13211. @see CompressionCodec]]>
  13212. </doc>
  13213. </class>
  13214. <!-- end class org.apache.hadoop.io.SequenceFile -->
  13215. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13216. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  13217. abstract="false"
  13218. static="true" final="true" visibility="public"
  13219. deprecated="not deprecated">
  13220. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  13221. abstract="false" native="false" synchronized="false"
  13222. static="true" final="false" visibility="public"
  13223. deprecated="not deprecated">
  13224. </method>
  13225. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  13226. abstract="false" native="false" synchronized="false"
  13227. static="true" final="false" visibility="public"
  13228. deprecated="not deprecated">
  13229. <param name="name" type="java.lang.String"/>
  13230. </method>
  13231. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13232. transient="false" volatile="false"
  13233. static="true" final="true" visibility="public"
  13234. deprecated="not deprecated">
  13235. <doc>
  13236. <![CDATA[Do not compress records.]]>
  13237. </doc>
  13238. </field>
  13239. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13240. transient="false" volatile="false"
  13241. static="true" final="true" visibility="public"
  13242. deprecated="not deprecated">
  13243. <doc>
  13244. <![CDATA[Compress values only, each separately.]]>
  13245. </doc>
  13246. </field>
  13247. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13248. transient="false" volatile="false"
  13249. static="true" final="true" visibility="public"
  13250. deprecated="not deprecated">
  13251. <doc>
  13252. <![CDATA[Compress sequences of records together in blocks.]]>
  13253. </doc>
  13254. </field>
  13255. <doc>
  13256. <![CDATA[The compression type used to compress key/value pairs in the
  13257. {@link SequenceFile}.
  13258. @see SequenceFile.Writer]]>
  13259. </doc>
  13260. </class>
  13261. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13262. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  13263. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  13264. abstract="false"
  13265. static="true" final="false" visibility="public"
  13266. deprecated="not deprecated">
  13267. <implements name="org.apache.hadoop.io.Writable"/>
  13268. <constructor name="SequenceFile.Metadata"
  13269. static="false" final="false" visibility="public"
  13270. deprecated="not deprecated">
  13271. </constructor>
  13272. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  13273. static="false" final="false" visibility="public"
  13274. deprecated="not deprecated">
  13275. </constructor>
  13276. <method name="get" return="org.apache.hadoop.io.Text"
  13277. abstract="false" native="false" synchronized="false"
  13278. static="false" final="false" visibility="public"
  13279. deprecated="not deprecated">
  13280. <param name="name" type="org.apache.hadoop.io.Text"/>
  13281. </method>
  13282. <method name="set"
  13283. abstract="false" native="false" synchronized="false"
  13284. static="false" final="false" visibility="public"
  13285. deprecated="not deprecated">
  13286. <param name="name" type="org.apache.hadoop.io.Text"/>
  13287. <param name="value" type="org.apache.hadoop.io.Text"/>
  13288. </method>
  13289. <method name="getMetadata" return="java.util.TreeMap"
  13290. abstract="false" native="false" synchronized="false"
  13291. static="false" final="false" visibility="public"
  13292. deprecated="not deprecated">
  13293. </method>
  13294. <method name="write"
  13295. abstract="false" native="false" synchronized="false"
  13296. static="false" final="false" visibility="public"
  13297. deprecated="not deprecated">
  13298. <param name="out" type="java.io.DataOutput"/>
  13299. <exception name="IOException" type="java.io.IOException"/>
  13300. </method>
  13301. <method name="readFields"
  13302. abstract="false" native="false" synchronized="false"
  13303. static="false" final="false" visibility="public"
  13304. deprecated="not deprecated">
  13305. <param name="in" type="java.io.DataInput"/>
  13306. <exception name="IOException" type="java.io.IOException"/>
  13307. </method>
  13308. <method name="equals" return="boolean"
  13309. abstract="false" native="false" synchronized="false"
  13310. static="false" final="false" visibility="public"
  13311. deprecated="not deprecated">
  13312. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13313. </method>
  13314. <method name="hashCode" return="int"
  13315. abstract="false" native="false" synchronized="false"
  13316. static="false" final="false" visibility="public"
  13317. deprecated="not deprecated">
  13318. </method>
  13319. <method name="toString" return="java.lang.String"
  13320. abstract="false" native="false" synchronized="false"
  13321. static="false" final="false" visibility="public"
  13322. deprecated="not deprecated">
  13323. </method>
  13324. <doc>
  13325. <![CDATA[The class encapsulating with the metadata of a file.
  13326. The metadata of a file is a list of attribute name/value
  13327. pairs of Text type.]]>
  13328. </doc>
  13329. </class>
  13330. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  13331. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  13332. <class name="SequenceFile.Reader" extends="java.lang.Object"
  13333. abstract="false"
  13334. static="true" final="false" visibility="public"
  13335. deprecated="not deprecated">
  13336. <implements name="java.io.Closeable"/>
  13337. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  13338. static="false" final="false" visibility="public"
  13339. deprecated="not deprecated">
  13340. <exception name="IOException" type="java.io.IOException"/>
  13341. <doc>
  13342. <![CDATA[Open the named file.]]>
  13343. </doc>
  13344. </constructor>
  13345. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  13346. abstract="false" native="false" synchronized="false"
  13347. static="false" final="false" visibility="protected"
  13348. deprecated="not deprecated">
  13349. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13350. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13351. <param name="bufferSize" type="int"/>
  13352. <param name="length" type="long"/>
  13353. <exception name="IOException" type="java.io.IOException"/>
  13354. <doc>
  13355. <![CDATA[Override this method to specialize the type of
  13356. {@link FSDataInputStream} returned.]]>
  13357. </doc>
  13358. </method>
  13359. <method name="close"
  13360. abstract="false" native="false" synchronized="true"
  13361. static="false" final="false" visibility="public"
  13362. deprecated="not deprecated">
  13363. <exception name="IOException" type="java.io.IOException"/>
  13364. <doc>
  13365. <![CDATA[Close the file.]]>
  13366. </doc>
  13367. </method>
  13368. <method name="getKeyClassName" return="java.lang.String"
  13369. abstract="false" native="false" synchronized="false"
  13370. static="false" final="false" visibility="public"
  13371. deprecated="not deprecated">
  13372. <doc>
  13373. <![CDATA[Returns the name of the key class.]]>
  13374. </doc>
  13375. </method>
  13376. <method name="getKeyClass" return="java.lang.Class"
  13377. abstract="false" native="false" synchronized="true"
  13378. static="false" final="false" visibility="public"
  13379. deprecated="not deprecated">
  13380. <doc>
  13381. <![CDATA[Returns the class of keys in this file.]]>
  13382. </doc>
  13383. </method>
  13384. <method name="getValueClassName" return="java.lang.String"
  13385. abstract="false" native="false" synchronized="false"
  13386. static="false" final="false" visibility="public"
  13387. deprecated="not deprecated">
  13388. <doc>
  13389. <![CDATA[Returns the name of the value class.]]>
  13390. </doc>
  13391. </method>
  13392. <method name="getValueClass" return="java.lang.Class"
  13393. abstract="false" native="false" synchronized="true"
  13394. static="false" final="false" visibility="public"
  13395. deprecated="not deprecated">
  13396. <doc>
  13397. <![CDATA[Returns the class of values in this file.]]>
  13398. </doc>
  13399. </method>
  13400. <method name="isCompressed" return="boolean"
  13401. abstract="false" native="false" synchronized="false"
  13402. static="false" final="false" visibility="public"
  13403. deprecated="not deprecated">
  13404. <doc>
  13405. <![CDATA[Returns true if values are compressed.]]>
  13406. </doc>
  13407. </method>
  13408. <method name="isBlockCompressed" return="boolean"
  13409. abstract="false" native="false" synchronized="false"
  13410. static="false" final="false" visibility="public"
  13411. deprecated="not deprecated">
  13412. <doc>
  13413. <![CDATA[Returns true if records are block-compressed.]]>
  13414. </doc>
  13415. </method>
  13416. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13417. abstract="false" native="false" synchronized="false"
  13418. static="false" final="false" visibility="public"
  13419. deprecated="not deprecated">
  13420. <doc>
  13421. <![CDATA[Returns the compression codec of data in this file.]]>
  13422. </doc>
  13423. </method>
  13424. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  13425. abstract="false" native="false" synchronized="false"
  13426. static="false" final="false" visibility="public"
  13427. deprecated="not deprecated">
  13428. <doc>
  13429. <![CDATA[Returns the metadata object of the file]]>
  13430. </doc>
  13431. </method>
  13432. <method name="getCurrentValue"
  13433. abstract="false" native="false" synchronized="true"
  13434. static="false" final="false" visibility="public"
  13435. deprecated="not deprecated">
  13436. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13437. <exception name="IOException" type="java.io.IOException"/>
  13438. <doc>
  13439. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13440. @param val : The 'value' to be read.
  13441. @throws IOException]]>
  13442. </doc>
  13443. </method>
  13444. <method name="getCurrentValue" return="java.lang.Object"
  13445. abstract="false" native="false" synchronized="true"
  13446. static="false" final="false" visibility="public"
  13447. deprecated="not deprecated">
  13448. <param name="val" type="java.lang.Object"/>
  13449. <exception name="IOException" type="java.io.IOException"/>
  13450. <doc>
  13451. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13452. @param val : The 'value' to be read.
  13453. @throws IOException]]>
  13454. </doc>
  13455. </method>
  13456. <method name="next" return="boolean"
  13457. abstract="false" native="false" synchronized="true"
  13458. static="false" final="false" visibility="public"
  13459. deprecated="not deprecated">
  13460. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13461. <exception name="IOException" type="java.io.IOException"/>
  13462. <doc>
  13463. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  13464. value. True if another entry exists, and false at end of file.]]>
  13465. </doc>
  13466. </method>
  13467. <method name="next" return="boolean"
  13468. abstract="false" native="false" synchronized="true"
  13469. static="false" final="false" visibility="public"
  13470. deprecated="not deprecated">
  13471. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13472. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13473. <exception name="IOException" type="java.io.IOException"/>
  13474. <doc>
  13475. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  13476. <code>val</code>. Returns true if such a pair exists and false when at
  13477. end of file]]>
  13478. </doc>
  13479. </method>
  13480. <method name="next" return="int"
  13481. abstract="false" native="false" synchronized="true"
  13482. static="false" final="false" visibility="public"
  13483. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  13484. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13485. <exception name="IOException" type="java.io.IOException"/>
  13486. <doc>
  13487. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  13488. </doc>
  13489. </method>
  13490. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13491. abstract="false" native="false" synchronized="false"
  13492. static="false" final="false" visibility="public"
  13493. deprecated="not deprecated">
  13494. </method>
  13495. <method name="nextRaw" return="int"
  13496. abstract="false" native="false" synchronized="true"
  13497. static="false" final="false" visibility="public"
  13498. deprecated="not deprecated">
  13499. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13500. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13501. <exception name="IOException" type="java.io.IOException"/>
  13502. <doc>
  13503. <![CDATA[Read 'raw' records.
  13504. @param key - The buffer into which the key is read
  13505. @param val - The 'raw' value
  13506. @return Returns the total record length or -1 for end of file
  13507. @throws IOException]]>
  13508. </doc>
  13509. </method>
  13510. <method name="nextRawKey" return="int"
  13511. abstract="false" native="false" synchronized="false"
  13512. static="false" final="false" visibility="public"
  13513. deprecated="not deprecated">
  13514. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13515. <exception name="IOException" type="java.io.IOException"/>
  13516. <doc>
  13517. <![CDATA[Read 'raw' keys.
  13518. @param key - The buffer into which the key is read
  13519. @return Returns the key length or -1 for end of file
  13520. @throws IOException]]>
  13521. </doc>
  13522. </method>
  13523. <method name="next" return="java.lang.Object"
  13524. abstract="false" native="false" synchronized="true"
  13525. static="false" final="false" visibility="public"
  13526. deprecated="not deprecated">
  13527. <param name="key" type="java.lang.Object"/>
  13528. <exception name="IOException" type="java.io.IOException"/>
  13529. <doc>
  13530. <![CDATA[Read the next key in the file, skipping its
  13531. value. Return null at end of file.]]>
  13532. </doc>
  13533. </method>
  13534. <method name="nextRawValue" return="int"
  13535. abstract="false" native="false" synchronized="true"
  13536. static="false" final="false" visibility="public"
  13537. deprecated="not deprecated">
  13538. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13539. <exception name="IOException" type="java.io.IOException"/>
  13540. <doc>
  13541. <![CDATA[Read 'raw' values.
  13542. @param val - The 'raw' value
  13543. @return Returns the value length
  13544. @throws IOException]]>
  13545. </doc>
  13546. </method>
  13547. <method name="seek"
  13548. abstract="false" native="false" synchronized="true"
  13549. static="false" final="false" visibility="public"
  13550. deprecated="not deprecated">
  13551. <param name="position" type="long"/>
  13552. <exception name="IOException" type="java.io.IOException"/>
  13553. <doc>
  13554. <![CDATA[Set the current byte position in the input file.
  13555. <p>The position passed must be a position returned by {@link
  13556. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  13557. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  13558. </doc>
  13559. </method>
  13560. <method name="sync"
  13561. abstract="false" native="false" synchronized="true"
  13562. static="false" final="false" visibility="public"
  13563. deprecated="not deprecated">
  13564. <param name="position" type="long"/>
  13565. <exception name="IOException" type="java.io.IOException"/>
  13566. <doc>
  13567. <![CDATA[Seek to the next sync mark past a given position.]]>
  13568. </doc>
  13569. </method>
  13570. <method name="syncSeen" return="boolean"
  13571. abstract="false" native="false" synchronized="false"
  13572. static="false" final="false" visibility="public"
  13573. deprecated="not deprecated">
  13574. <doc>
  13575. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  13576. </doc>
  13577. </method>
  13578. <method name="getPosition" return="long"
  13579. abstract="false" native="false" synchronized="true"
  13580. static="false" final="false" visibility="public"
  13581. deprecated="not deprecated">
  13582. <exception name="IOException" type="java.io.IOException"/>
  13583. <doc>
  13584. <![CDATA[Return the current byte position in the input file.]]>
  13585. </doc>
  13586. </method>
  13587. <method name="toString" return="java.lang.String"
  13588. abstract="false" native="false" synchronized="false"
  13589. static="false" final="false" visibility="public"
  13590. deprecated="not deprecated">
  13591. <doc>
  13592. <![CDATA[Returns the name of the file.]]>
  13593. </doc>
  13594. </method>
  13595. <doc>
  13596. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  13597. </doc>
  13598. </class>
  13599. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  13600. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  13601. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  13602. abstract="false"
  13603. static="true" final="false" visibility="public"
  13604. deprecated="not deprecated">
  13605. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13606. static="false" final="false" visibility="public"
  13607. deprecated="not deprecated">
  13608. <doc>
  13609. <![CDATA[Sort and merge files containing the named classes.]]>
  13610. </doc>
  13611. </constructor>
  13612. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13613. static="false" final="false" visibility="public"
  13614. deprecated="not deprecated">
  13615. <doc>
  13616. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  13617. </doc>
  13618. </constructor>
  13619. <method name="setFactor"
  13620. abstract="false" native="false" synchronized="false"
  13621. static="false" final="false" visibility="public"
  13622. deprecated="not deprecated">
  13623. <param name="factor" type="int"/>
  13624. <doc>
  13625. <![CDATA[Set the number of streams to merge at once.]]>
  13626. </doc>
  13627. </method>
  13628. <method name="getFactor" return="int"
  13629. abstract="false" native="false" synchronized="false"
  13630. static="false" final="false" visibility="public"
  13631. deprecated="not deprecated">
  13632. <doc>
  13633. <![CDATA[Get the number of streams to merge at once.]]>
  13634. </doc>
  13635. </method>
  13636. <method name="setMemory"
  13637. abstract="false" native="false" synchronized="false"
  13638. static="false" final="false" visibility="public"
  13639. deprecated="not deprecated">
  13640. <param name="memory" type="int"/>
  13641. <doc>
  13642. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  13643. </doc>
  13644. </method>
  13645. <method name="getMemory" return="int"
  13646. abstract="false" native="false" synchronized="false"
  13647. static="false" final="false" visibility="public"
  13648. deprecated="not deprecated">
  13649. <doc>
  13650. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  13651. </doc>
  13652. </method>
  13653. <method name="setProgressable"
  13654. abstract="false" native="false" synchronized="false"
  13655. static="false" final="false" visibility="public"
  13656. deprecated="not deprecated">
  13657. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  13658. <doc>
  13659. <![CDATA[Set the progressable object in order to report progress.]]>
  13660. </doc>
  13661. </method>
  13662. <method name="sort"
  13663. abstract="false" native="false" synchronized="false"
  13664. static="false" final="false" visibility="public"
  13665. deprecated="not deprecated">
  13666. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13667. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13668. <param name="deleteInput" type="boolean"/>
  13669. <exception name="IOException" type="java.io.IOException"/>
  13670. <doc>
  13671. <![CDATA[Perform a file sort from a set of input files into an output file.
  13672. @param inFiles the files to be sorted
  13673. @param outFile the sorted output file
  13674. @param deleteInput should the input files be deleted as they are read?]]>
  13675. </doc>
  13676. </method>
  13677. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13678. abstract="false" native="false" synchronized="false"
  13679. static="false" final="false" visibility="public"
  13680. deprecated="not deprecated">
  13681. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13682. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13683. <param name="deleteInput" type="boolean"/>
  13684. <exception name="IOException" type="java.io.IOException"/>
  13685. <doc>
  13686. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  13687. @param inFiles the files to be sorted
  13688. @param tempDir the directory where temp files are created during sort
  13689. @param deleteInput should the input files be deleted as they are read?
  13690. @return iterator the RawKeyValueIterator]]>
  13691. </doc>
  13692. </method>
  13693. <method name="sort"
  13694. abstract="false" native="false" synchronized="false"
  13695. static="false" final="false" visibility="public"
  13696. deprecated="not deprecated">
  13697. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  13698. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13699. <exception name="IOException" type="java.io.IOException"/>
  13700. <doc>
  13701. <![CDATA[The backwards compatible interface to sort.
  13702. @param inFile the input file to sort
  13703. @param outFile the sorted output file]]>
  13704. </doc>
  13705. </method>
  13706. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13707. abstract="false" native="false" synchronized="false"
  13708. static="false" final="false" visibility="public"
  13709. deprecated="not deprecated">
  13710. <param name="segments" type="java.util.List"/>
  13711. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13712. <exception name="IOException" type="java.io.IOException"/>
  13713. <doc>
  13714. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  13715. @param segments the list of SegmentDescriptors
  13716. @param tmpDir the directory to write temporary files into
  13717. @return RawKeyValueIterator
  13718. @throws IOException]]>
  13719. </doc>
  13720. </method>
  13721. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13722. abstract="false" native="false" synchronized="false"
  13723. static="false" final="false" visibility="public"
  13724. deprecated="not deprecated">
  13725. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13726. <param name="deleteInputs" type="boolean"/>
  13727. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13728. <exception name="IOException" type="java.io.IOException"/>
  13729. <doc>
  13730. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  13731. that is already set
  13732. @param inNames the array of path names
  13733. @param deleteInputs true if the input files should be deleted when
  13734. unnecessary
  13735. @param tmpDir the directory to write temporary files into
  13736. @return RawKeyValueIteratorMergeQueue
  13737. @throws IOException]]>
  13738. </doc>
  13739. </method>
  13740. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13741. abstract="false" native="false" synchronized="false"
  13742. static="false" final="false" visibility="public"
  13743. deprecated="not deprecated">
  13744. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13745. <param name="deleteInputs" type="boolean"/>
  13746. <param name="factor" type="int"/>
  13747. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13748. <exception name="IOException" type="java.io.IOException"/>
  13749. <doc>
  13750. <![CDATA[Merges the contents of files passed in Path[]
  13751. @param inNames the array of path names
  13752. @param deleteInputs true if the input files should be deleted when
  13753. unnecessary
  13754. @param factor the factor that will be used as the maximum merge fan-in
  13755. @param tmpDir the directory to write temporary files into
  13756. @return RawKeyValueIteratorMergeQueue
  13757. @throws IOException]]>
  13758. </doc>
  13759. </method>
  13760. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13761. abstract="false" native="false" synchronized="false"
  13762. static="false" final="false" visibility="public"
  13763. deprecated="not deprecated">
  13764. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13765. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13766. <param name="deleteInputs" type="boolean"/>
  13767. <exception name="IOException" type="java.io.IOException"/>
  13768. <doc>
  13769. <![CDATA[Merges the contents of files passed in Path[]
  13770. @param inNames the array of path names
  13771. @param tempDir the directory for creating temp files during merge
  13772. @param deleteInputs true if the input files should be deleted when
  13773. unnecessary
  13774. @return RawKeyValueIteratorMergeQueue
  13775. @throws IOException]]>
  13776. </doc>
  13777. </method>
  13778. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  13779. abstract="false" native="false" synchronized="false"
  13780. static="false" final="false" visibility="public"
  13781. deprecated="not deprecated">
  13782. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  13783. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  13784. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  13785. <exception name="IOException" type="java.io.IOException"/>
  13786. <doc>
  13787. <![CDATA[Clones the attributes (like compression of the input file and creates a
  13788. corresponding Writer
  13789. @param inputFile the path of the input file whose attributes should be
  13790. cloned
  13791. @param outputFile the path of the output file
  13792. @param prog the Progressable to report status during the file write
  13793. @return Writer
  13794. @throws IOException]]>
  13795. </doc>
  13796. </method>
  13797. <method name="writeFile"
  13798. abstract="false" native="false" synchronized="false"
  13799. static="false" final="false" visibility="public"
  13800. deprecated="not deprecated">
  13801. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  13802. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  13803. <exception name="IOException" type="java.io.IOException"/>
  13804. <doc>
  13805. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  13806. passed writer
  13807. @param records the RawKeyValueIterator
  13808. @param writer the Writer created earlier
  13809. @throws IOException]]>
  13810. </doc>
  13811. </method>
  13812. <method name="merge"
  13813. abstract="false" native="false" synchronized="false"
  13814. static="false" final="false" visibility="public"
  13815. deprecated="not deprecated">
  13816. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13817. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13818. <exception name="IOException" type="java.io.IOException"/>
  13819. <doc>
  13820. <![CDATA[Merge the provided files.
  13821. @param inFiles the array of input path names
  13822. @param outFile the final output file
  13823. @throws IOException]]>
  13824. </doc>
  13825. </method>
  13826. <doc>
  13827. <![CDATA[Sorts key/value pairs in a sequence-format file.
  13828. <p>For best performance, applications should make sure that the {@link
  13829. Writable#readFields(DataInput)} implementation of their keys is
  13830. very efficient. In particular, it should avoid allocating memory.]]>
  13831. </doc>
  13832. </class>
  13833. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  13834. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13835. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  13836. static="true" final="false" visibility="public"
  13837. deprecated="not deprecated">
  13838. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13839. abstract="false" native="false" synchronized="false"
  13840. static="false" final="false" visibility="public"
  13841. deprecated="not deprecated">
  13842. <exception name="IOException" type="java.io.IOException"/>
  13843. <doc>
  13844. <![CDATA[Gets the current raw key
  13845. @return DataOutputBuffer
  13846. @throws IOException]]>
  13847. </doc>
  13848. </method>
  13849. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13850. abstract="false" native="false" synchronized="false"
  13851. static="false" final="false" visibility="public"
  13852. deprecated="not deprecated">
  13853. <exception name="IOException" type="java.io.IOException"/>
  13854. <doc>
  13855. <![CDATA[Gets the current raw value
  13856. @return ValueBytes
  13857. @throws IOException]]>
  13858. </doc>
  13859. </method>
  13860. <method name="next" return="boolean"
  13861. abstract="false" native="false" synchronized="false"
  13862. static="false" final="false" visibility="public"
  13863. deprecated="not deprecated">
  13864. <exception name="IOException" type="java.io.IOException"/>
  13865. <doc>
  13866. <![CDATA[Sets up the current key and value (for getKey and getValue)
  13867. @return true if there exists a key/value, false otherwise
  13868. @throws IOException]]>
  13869. </doc>
  13870. </method>
  13871. <method name="close"
  13872. abstract="false" native="false" synchronized="false"
  13873. static="false" final="false" visibility="public"
  13874. deprecated="not deprecated">
  13875. <exception name="IOException" type="java.io.IOException"/>
  13876. <doc>
  13877. <![CDATA[closes the iterator so that the underlying streams can be closed
  13878. @throws IOException]]>
  13879. </doc>
  13880. </method>
  13881. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  13882. abstract="false" native="false" synchronized="false"
  13883. static="false" final="false" visibility="public"
  13884. deprecated="not deprecated">
  13885. <doc>
  13886. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  13887. indicating the bytes processed by the iterator so far]]>
  13888. </doc>
  13889. </method>
  13890. <doc>
  13891. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  13892. </doc>
  13893. </interface>
  13894. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13895. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13896. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  13897. abstract="false"
  13898. static="false" final="false" visibility="public"
  13899. deprecated="not deprecated">
  13900. <implements name="java.lang.Comparable"/>
  13901. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  13902. static="false" final="false" visibility="public"
  13903. deprecated="not deprecated">
  13904. <doc>
  13905. <![CDATA[Constructs a segment
  13906. @param segmentOffset the offset of the segment in the file
  13907. @param segmentLength the length of the segment
  13908. @param segmentPathName the path name of the file containing the segment]]>
  13909. </doc>
  13910. </constructor>
  13911. <method name="doSync"
  13912. abstract="false" native="false" synchronized="false"
  13913. static="false" final="false" visibility="public"
  13914. deprecated="not deprecated">
  13915. <doc>
  13916. <![CDATA[Do the sync checks]]>
  13917. </doc>
  13918. </method>
  13919. <method name="preserveInput"
  13920. abstract="false" native="false" synchronized="false"
  13921. static="false" final="false" visibility="public"
  13922. deprecated="not deprecated">
  13923. <param name="preserve" type="boolean"/>
  13924. <doc>
  13925. <![CDATA[Whether to delete the files when no longer needed]]>
  13926. </doc>
  13927. </method>
  13928. <method name="shouldPreserveInput" return="boolean"
  13929. abstract="false" native="false" synchronized="false"
  13930. static="false" final="false" visibility="public"
  13931. deprecated="not deprecated">
  13932. </method>
  13933. <method name="compareTo" return="int"
  13934. abstract="false" native="false" synchronized="false"
  13935. static="false" final="false" visibility="public"
  13936. deprecated="not deprecated">
  13937. <param name="o" type="java.lang.Object"/>
  13938. </method>
  13939. <method name="equals" return="boolean"
  13940. abstract="false" native="false" synchronized="false"
  13941. static="false" final="false" visibility="public"
  13942. deprecated="not deprecated">
  13943. <param name="o" type="java.lang.Object"/>
  13944. </method>
  13945. <method name="hashCode" return="int"
  13946. abstract="false" native="false" synchronized="false"
  13947. static="false" final="false" visibility="public"
  13948. deprecated="not deprecated">
  13949. </method>
  13950. <method name="nextRawKey" return="boolean"
  13951. abstract="false" native="false" synchronized="false"
  13952. static="false" final="false" visibility="public"
  13953. deprecated="not deprecated">
  13954. <exception name="IOException" type="java.io.IOException"/>
  13955. <doc>
  13956. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  13957. @return true if there is a key returned; false, otherwise
  13958. @throws IOException]]>
  13959. </doc>
  13960. </method>
  13961. <method name="nextRawValue" return="int"
  13962. abstract="false" native="false" synchronized="false"
  13963. static="false" final="false" visibility="public"
  13964. deprecated="not deprecated">
  13965. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13966. <exception name="IOException" type="java.io.IOException"/>
  13967. <doc>
  13968. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  13969. read earlier
  13970. @param rawValue
  13971. @return the length of the value
  13972. @throws IOException]]>
  13973. </doc>
  13974. </method>
  13975. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13976. abstract="false" native="false" synchronized="false"
  13977. static="false" final="false" visibility="public"
  13978. deprecated="not deprecated">
  13979. <doc>
  13980. <![CDATA[Returns the stored rawKey]]>
  13981. </doc>
  13982. </method>
  13983. <method name="cleanup"
  13984. abstract="false" native="false" synchronized="false"
  13985. static="false" final="false" visibility="public"
  13986. deprecated="not deprecated">
  13987. <exception name="IOException" type="java.io.IOException"/>
  13988. <doc>
  13989. <![CDATA[The default cleanup. Subclasses can override this with a custom
  13990. cleanup]]>
  13991. </doc>
  13992. </method>
  13993. <doc>
  13994. <![CDATA[This class defines a merge segment. This class can be subclassed to
  13995. provide a customized cleanup method implementation. In this
  13996. implementation, cleanup closes the file handle and deletes the file]]>
  13997. </doc>
  13998. </class>
  13999. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  14000. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14001. <interface name="SequenceFile.ValueBytes" abstract="true"
  14002. static="true" final="false" visibility="public"
  14003. deprecated="not deprecated">
  14004. <method name="writeUncompressedBytes"
  14005. abstract="false" native="false" synchronized="false"
  14006. static="false" final="false" visibility="public"
  14007. deprecated="not deprecated">
  14008. <param name="outStream" type="java.io.DataOutputStream"/>
  14009. <exception name="IOException" type="java.io.IOException"/>
  14010. <doc>
  14011. <![CDATA[Writes the uncompressed bytes to the outStream.
  14012. @param outStream : Stream to write uncompressed bytes into.
  14013. @throws IOException]]>
  14014. </doc>
  14015. </method>
  14016. <method name="writeCompressedBytes"
  14017. abstract="false" native="false" synchronized="false"
  14018. static="false" final="false" visibility="public"
  14019. deprecated="not deprecated">
  14020. <param name="outStream" type="java.io.DataOutputStream"/>
  14021. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14022. <exception name="IOException" type="java.io.IOException"/>
  14023. <doc>
  14024. <![CDATA[Write compressed bytes to outStream.
  14025. Note: that it will NOT compress the bytes if they are not compressed.
  14026. @param outStream : Stream to write compressed bytes into.]]>
  14027. </doc>
  14028. </method>
  14029. <method name="getSize" return="int"
  14030. abstract="false" native="false" synchronized="false"
  14031. static="false" final="false" visibility="public"
  14032. deprecated="not deprecated">
  14033. <doc>
  14034. <![CDATA[Size of stored data.]]>
  14035. </doc>
  14036. </method>
  14037. <doc>
  14038. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  14039. </doc>
  14040. </interface>
  14041. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14042. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  14043. <class name="SequenceFile.Writer" extends="java.lang.Object"
  14044. abstract="false"
  14045. static="true" final="false" visibility="public"
  14046. deprecated="not deprecated">
  14047. <implements name="java.io.Closeable"/>
  14048. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class"
  14049. static="false" final="false" visibility="public"
  14050. deprecated="not deprecated">
  14051. <exception name="IOException" type="java.io.IOException"/>
  14052. <doc>
  14053. <![CDATA[Create the named file.]]>
  14054. </doc>
  14055. </constructor>
  14056. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata"
  14057. static="false" final="false" visibility="public"
  14058. deprecated="not deprecated">
  14059. <exception name="IOException" type="java.io.IOException"/>
  14060. <doc>
  14061. <![CDATA[Create the named file with write-progress reporter.]]>
  14062. </doc>
  14063. </constructor>
  14064. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, int, short, long, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata"
  14065. static="false" final="false" visibility="public"
  14066. deprecated="not deprecated">
  14067. <exception name="IOException" type="java.io.IOException"/>
  14068. <doc>
  14069. <![CDATA[Create the named file with write-progress reporter.]]>
  14070. </doc>
  14071. </constructor>
  14072. <method name="getKeyClass" return="java.lang.Class"
  14073. abstract="false" native="false" synchronized="false"
  14074. static="false" final="false" visibility="public"
  14075. deprecated="not deprecated">
  14076. <doc>
  14077. <![CDATA[Returns the class of keys in this file.]]>
  14078. </doc>
  14079. </method>
  14080. <method name="getValueClass" return="java.lang.Class"
  14081. abstract="false" native="false" synchronized="false"
  14082. static="false" final="false" visibility="public"
  14083. deprecated="not deprecated">
  14084. <doc>
  14085. <![CDATA[Returns the class of values in this file.]]>
  14086. </doc>
  14087. </method>
  14088. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  14089. abstract="false" native="false" synchronized="false"
  14090. static="false" final="false" visibility="public"
  14091. deprecated="not deprecated">
  14092. <doc>
  14093. <![CDATA[Returns the compression codec of data in this file.]]>
  14094. </doc>
  14095. </method>
  14096. <method name="sync"
  14097. abstract="false" native="false" synchronized="false"
  14098. static="false" final="false" visibility="public"
  14099. deprecated="not deprecated">
  14100. <exception name="IOException" type="java.io.IOException"/>
  14101. <doc>
  14102. <![CDATA[create a sync point]]>
  14103. </doc>
  14104. </method>
  14105. <method name="syncFs"
  14106. abstract="false" native="false" synchronized="false"
  14107. static="false" final="false" visibility="public"
  14108. deprecated="not deprecated">
  14109. <exception name="IOException" type="java.io.IOException"/>
  14110. <doc>
  14111. <![CDATA[flush all currently written data to the file system]]>
  14112. </doc>
  14113. </method>
  14114. <method name="close"
  14115. abstract="false" native="false" synchronized="true"
  14116. static="false" final="false" visibility="public"
  14117. deprecated="not deprecated">
  14118. <exception name="IOException" type="java.io.IOException"/>
  14119. <doc>
  14120. <![CDATA[Close the file.]]>
  14121. </doc>
  14122. </method>
  14123. <method name="append"
  14124. abstract="false" native="false" synchronized="true"
  14125. static="false" final="false" visibility="public"
  14126. deprecated="not deprecated">
  14127. <param name="key" type="org.apache.hadoop.io.Writable"/>
  14128. <param name="val" type="org.apache.hadoop.io.Writable"/>
  14129. <exception name="IOException" type="java.io.IOException"/>
  14130. <doc>
  14131. <![CDATA[Append a key/value pair.]]>
  14132. </doc>
  14133. </method>
  14134. <method name="append"
  14135. abstract="false" native="false" synchronized="true"
  14136. static="false" final="false" visibility="public"
  14137. deprecated="not deprecated">
  14138. <param name="key" type="java.lang.Object"/>
  14139. <param name="val" type="java.lang.Object"/>
  14140. <exception name="IOException" type="java.io.IOException"/>
  14141. <doc>
  14142. <![CDATA[Append a key/value pair.]]>
  14143. </doc>
  14144. </method>
  14145. <method name="appendRaw"
  14146. abstract="false" native="false" synchronized="true"
  14147. static="false" final="false" visibility="public"
  14148. deprecated="not deprecated">
  14149. <param name="keyData" type="byte[]"/>
  14150. <param name="keyOffset" type="int"/>
  14151. <param name="keyLength" type="int"/>
  14152. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  14153. <exception name="IOException" type="java.io.IOException"/>
  14154. </method>
  14155. <method name="getLength" return="long"
  14156. abstract="false" native="false" synchronized="true"
  14157. static="false" final="false" visibility="public"
  14158. deprecated="not deprecated">
  14159. <exception name="IOException" type="java.io.IOException"/>
  14160. <doc>
  14161. <![CDATA[Returns the current length of the output file.
  14162. <p>This always returns a synchronized position. In other words,
  14163. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  14164. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  14165. the key may be earlier in the file than key last written when this
  14166. method was called (e.g., with block-compression, it may be the first key
  14167. in the block that was being written when this method was called).]]>
  14168. </doc>
  14169. </method>
  14170. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14171. transient="false" volatile="false"
  14172. static="false" final="false" visibility="protected"
  14173. deprecated="not deprecated">
  14174. </field>
  14175. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14176. transient="false" volatile="false"
  14177. static="false" final="false" visibility="protected"
  14178. deprecated="not deprecated">
  14179. </field>
  14180. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14181. transient="false" volatile="false"
  14182. static="false" final="false" visibility="protected"
  14183. deprecated="not deprecated">
  14184. </field>
  14185. <doc>
  14186. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  14187. </doc>
  14188. </class>
  14189. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  14190. <!-- start class org.apache.hadoop.io.SetFile -->
  14191. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  14192. abstract="false"
  14193. static="false" final="false" visibility="public"
  14194. deprecated="not deprecated">
  14195. <constructor name="SetFile"
  14196. static="false" final="false" visibility="protected"
  14197. deprecated="not deprecated">
  14198. </constructor>
  14199. <doc>
  14200. <![CDATA[A file-based set of keys.]]>
  14201. </doc>
  14202. </class>
  14203. <!-- end class org.apache.hadoop.io.SetFile -->
  14204. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  14205. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  14206. abstract="false"
  14207. static="true" final="false" visibility="public"
  14208. deprecated="not deprecated">
  14209. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  14210. static="false" final="false" visibility="public"
  14211. deprecated="not deprecated">
  14212. <exception name="IOException" type="java.io.IOException"/>
  14213. <doc>
  14214. <![CDATA[Construct a set reader for the named set.]]>
  14215. </doc>
  14216. </constructor>
  14217. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  14218. static="false" final="false" visibility="public"
  14219. deprecated="not deprecated">
  14220. <exception name="IOException" type="java.io.IOException"/>
  14221. <doc>
  14222. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  14223. </doc>
  14224. </constructor>
  14225. <method name="seek" return="boolean"
  14226. abstract="false" native="false" synchronized="false"
  14227. static="false" final="false" visibility="public"
  14228. deprecated="not deprecated">
  14229. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14230. <exception name="IOException" type="java.io.IOException"/>
  14231. </method>
  14232. <method name="next" return="boolean"
  14233. abstract="false" native="false" synchronized="false"
  14234. static="false" final="false" visibility="public"
  14235. deprecated="not deprecated">
  14236. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14237. <exception name="IOException" type="java.io.IOException"/>
  14238. <doc>
  14239. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  14240. true if such a key exists and false when at the end of the set.]]>
  14241. </doc>
  14242. </method>
  14243. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  14244. abstract="false" native="false" synchronized="false"
  14245. static="false" final="false" visibility="public"
  14246. deprecated="not deprecated">
  14247. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14248. <exception name="IOException" type="java.io.IOException"/>
  14249. <doc>
  14250. <![CDATA[Read the matching key from a set into <code>key</code>.
  14251. Returns <code>key</code>, or null if no match exists.]]>
  14252. </doc>
  14253. </method>
  14254. <doc>
  14255. <![CDATA[Provide access to an existing set file.]]>
  14256. </doc>
  14257. </class>
  14258. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  14259. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  14260. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  14261. abstract="false"
  14262. static="true" final="false" visibility="public"
  14263. deprecated="not deprecated">
  14264. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  14265. static="false" final="false" visibility="public"
  14266. deprecated="pass a Configuration too">
  14267. <exception name="IOException" type="java.io.IOException"/>
  14268. <doc>
  14269. <![CDATA[Create the named set for keys of the named class.
  14270. @deprecated pass a Configuration too]]>
  14271. </doc>
  14272. </constructor>
  14273. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  14274. static="false" final="false" visibility="public"
  14275. deprecated="not deprecated">
  14276. <exception name="IOException" type="java.io.IOException"/>
  14277. <doc>
  14278. <![CDATA[Create a set naming the element class and compression type.]]>
  14279. </doc>
  14280. </constructor>
  14281. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.io.SequenceFile.CompressionType"
  14282. static="false" final="false" visibility="public"
  14283. deprecated="not deprecated">
  14284. <exception name="IOException" type="java.io.IOException"/>
  14285. <doc>
  14286. <![CDATA[Create a set naming the element comparator and compression type.]]>
  14287. </doc>
  14288. </constructor>
  14289. <method name="append"
  14290. abstract="false" native="false" synchronized="false"
  14291. static="false" final="false" visibility="public"
  14292. deprecated="not deprecated">
  14293. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14294. <exception name="IOException" type="java.io.IOException"/>
  14295. <doc>
  14296. <![CDATA[Append a key to a set. The key must be strictly greater than the
  14297. previous key added to the set.]]>
  14298. </doc>
  14299. </method>
  14300. <doc>
  14301. <![CDATA[Write a new set file.]]>
  14302. </doc>
  14303. </class>
  14304. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  14305. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  14306. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  14307. abstract="false"
  14308. static="false" final="false" visibility="public"
  14309. deprecated="not deprecated">
  14310. <implements name="java.util.SortedMap"/>
  14311. <constructor name="SortedMapWritable"
  14312. static="false" final="false" visibility="public"
  14313. deprecated="not deprecated">
  14314. <doc>
  14315. <![CDATA[default constructor.]]>
  14316. </doc>
  14317. </constructor>
  14318. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  14319. static="false" final="false" visibility="public"
  14320. deprecated="not deprecated">
  14321. <doc>
  14322. <![CDATA[Copy constructor.
  14323. @param other the map to copy from]]>
  14324. </doc>
  14325. </constructor>
  14326. <method name="comparator" return="java.util.Comparator"
  14327. abstract="false" native="false" synchronized="false"
  14328. static="false" final="false" visibility="public"
  14329. deprecated="not deprecated">
  14330. <doc>
  14331. <![CDATA[{@inheritDoc}]]>
  14332. </doc>
  14333. </method>
  14334. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  14335. abstract="false" native="false" synchronized="false"
  14336. static="false" final="false" visibility="public"
  14337. deprecated="not deprecated">
  14338. <doc>
  14339. <![CDATA[{@inheritDoc}]]>
  14340. </doc>
  14341. </method>
  14342. <method name="headMap" return="java.util.SortedMap"
  14343. abstract="false" native="false" synchronized="false"
  14344. static="false" final="false" visibility="public"
  14345. deprecated="not deprecated">
  14346. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14347. <doc>
  14348. <![CDATA[{@inheritDoc}]]>
  14349. </doc>
  14350. </method>
  14351. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  14352. abstract="false" native="false" synchronized="false"
  14353. static="false" final="false" visibility="public"
  14354. deprecated="not deprecated">
  14355. <doc>
  14356. <![CDATA[{@inheritDoc}]]>
  14357. </doc>
  14358. </method>
  14359. <method name="subMap" return="java.util.SortedMap"
  14360. abstract="false" native="false" synchronized="false"
  14361. static="false" final="false" visibility="public"
  14362. deprecated="not deprecated">
  14363. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14364. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14365. <doc>
  14366. <![CDATA[{@inheritDoc}]]>
  14367. </doc>
  14368. </method>
  14369. <method name="tailMap" return="java.util.SortedMap"
  14370. abstract="false" native="false" synchronized="false"
  14371. static="false" final="false" visibility="public"
  14372. deprecated="not deprecated">
  14373. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14374. <doc>
  14375. <![CDATA[{@inheritDoc}]]>
  14376. </doc>
  14377. </method>
  14378. <method name="clear"
  14379. abstract="false" native="false" synchronized="false"
  14380. static="false" final="false" visibility="public"
  14381. deprecated="not deprecated">
  14382. <doc>
  14383. <![CDATA[{@inheritDoc}]]>
  14384. </doc>
  14385. </method>
  14386. <method name="containsKey" return="boolean"
  14387. abstract="false" native="false" synchronized="false"
  14388. static="false" final="false" visibility="public"
  14389. deprecated="not deprecated">
  14390. <param name="key" type="java.lang.Object"/>
  14391. <doc>
  14392. <![CDATA[{@inheritDoc}]]>
  14393. </doc>
  14394. </method>
  14395. <method name="containsValue" return="boolean"
  14396. abstract="false" native="false" synchronized="false"
  14397. static="false" final="false" visibility="public"
  14398. deprecated="not deprecated">
  14399. <param name="value" type="java.lang.Object"/>
  14400. <doc>
  14401. <![CDATA[{@inheritDoc}]]>
  14402. </doc>
  14403. </method>
  14404. <method name="entrySet" return="java.util.Set"
  14405. abstract="false" native="false" synchronized="false"
  14406. static="false" final="false" visibility="public"
  14407. deprecated="not deprecated">
  14408. <doc>
  14409. <![CDATA[{@inheritDoc}]]>
  14410. </doc>
  14411. </method>
  14412. <method name="get" return="org.apache.hadoop.io.Writable"
  14413. abstract="false" native="false" synchronized="false"
  14414. static="false" final="false" visibility="public"
  14415. deprecated="not deprecated">
  14416. <param name="key" type="java.lang.Object"/>
  14417. <doc>
  14418. <![CDATA[{@inheritDoc}]]>
  14419. </doc>
  14420. </method>
  14421. <method name="isEmpty" return="boolean"
  14422. abstract="false" native="false" synchronized="false"
  14423. static="false" final="false" visibility="public"
  14424. deprecated="not deprecated">
  14425. <doc>
  14426. <![CDATA[{@inheritDoc}]]>
  14427. </doc>
  14428. </method>
  14429. <method name="keySet" return="java.util.Set"
  14430. abstract="false" native="false" synchronized="false"
  14431. static="false" final="false" visibility="public"
  14432. deprecated="not deprecated">
  14433. <doc>
  14434. <![CDATA[{@inheritDoc}]]>
  14435. </doc>
  14436. </method>
  14437. <method name="put" return="org.apache.hadoop.io.Writable"
  14438. abstract="false" native="false" synchronized="false"
  14439. static="false" final="false" visibility="public"
  14440. deprecated="not deprecated">
  14441. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14442. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14443. <doc>
  14444. <![CDATA[{@inheritDoc}]]>
  14445. </doc>
  14446. </method>
  14447. <method name="putAll"
  14448. abstract="false" native="false" synchronized="false"
  14449. static="false" final="false" visibility="public"
  14450. deprecated="not deprecated">
  14451. <param name="t" type="java.util.Map"/>
  14452. <doc>
  14453. <![CDATA[{@inheritDoc}]]>
  14454. </doc>
  14455. </method>
  14456. <method name="remove" return="org.apache.hadoop.io.Writable"
  14457. abstract="false" native="false" synchronized="false"
  14458. static="false" final="false" visibility="public"
  14459. deprecated="not deprecated">
  14460. <param name="key" type="java.lang.Object"/>
  14461. <doc>
  14462. <![CDATA[{@inheritDoc}]]>
  14463. </doc>
  14464. </method>
  14465. <method name="size" return="int"
  14466. abstract="false" native="false" synchronized="false"
  14467. static="false" final="false" visibility="public"
  14468. deprecated="not deprecated">
  14469. <doc>
  14470. <![CDATA[{@inheritDoc}]]>
  14471. </doc>
  14472. </method>
  14473. <method name="values" return="java.util.Collection"
  14474. abstract="false" native="false" synchronized="false"
  14475. static="false" final="false" visibility="public"
  14476. deprecated="not deprecated">
  14477. <doc>
  14478. <![CDATA[{@inheritDoc}]]>
  14479. </doc>
  14480. </method>
  14481. <method name="readFields"
  14482. abstract="false" native="false" synchronized="false"
  14483. static="false" final="false" visibility="public"
  14484. deprecated="not deprecated">
  14485. <param name="in" type="java.io.DataInput"/>
  14486. <exception name="IOException" type="java.io.IOException"/>
  14487. <doc>
  14488. <![CDATA[{@inheritDoc}]]>
  14489. </doc>
  14490. </method>
  14491. <method name="write"
  14492. abstract="false" native="false" synchronized="false"
  14493. static="false" final="false" visibility="public"
  14494. deprecated="not deprecated">
  14495. <param name="out" type="java.io.DataOutput"/>
  14496. <exception name="IOException" type="java.io.IOException"/>
  14497. <doc>
  14498. <![CDATA[{@inheritDoc}]]>
  14499. </doc>
  14500. </method>
  14501. <doc>
  14502. <![CDATA[A Writable SortedMap.]]>
  14503. </doc>
  14504. </class>
  14505. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  14506. <!-- start interface org.apache.hadoop.io.Stringifier -->
  14507. <interface name="Stringifier" abstract="true"
  14508. static="false" final="false" visibility="public"
  14509. deprecated="not deprecated">
  14510. <implements name="java.io.Closeable"/>
  14511. <method name="toString" return="java.lang.String"
  14512. abstract="false" native="false" synchronized="false"
  14513. static="false" final="false" visibility="public"
  14514. deprecated="not deprecated">
  14515. <param name="obj" type="java.lang.Object"/>
  14516. <exception name="IOException" type="java.io.IOException"/>
  14517. <doc>
  14518. <![CDATA[Converts the object to a string representation
  14519. @param obj the object to convert
  14520. @return the string representation of the object
  14521. @throws IOException if the object cannot be converted]]>
  14522. </doc>
  14523. </method>
  14524. <method name="fromString" return="java.lang.Object"
  14525. abstract="false" native="false" synchronized="false"
  14526. static="false" final="false" visibility="public"
  14527. deprecated="not deprecated">
  14528. <param name="str" type="java.lang.String"/>
  14529. <exception name="IOException" type="java.io.IOException"/>
  14530. <doc>
  14531. <![CDATA[Restores the object from its string representation.
  14532. @param str the string representation of the object
  14533. @return restored object
  14534. @throws IOException if the object cannot be restored]]>
  14535. </doc>
  14536. </method>
  14537. <method name="close"
  14538. abstract="false" native="false" synchronized="false"
  14539. static="false" final="false" visibility="public"
  14540. deprecated="not deprecated">
  14541. <exception name="IOException" type="java.io.IOException"/>
  14542. <doc>
  14543. <![CDATA[Closes this object.
  14544. @throws IOException if an I/O error occurs]]>
  14545. </doc>
  14546. </method>
  14547. <doc>
  14548. <![CDATA[Stringifier interface offers two methods to convert an object
  14549. to a string representation and restore the object given its
  14550. string representation.
  14551. @param <T> the class of the objects to stringify]]>
  14552. </doc>
  14553. </interface>
  14554. <!-- end interface org.apache.hadoop.io.Stringifier -->
  14555. <!-- start class org.apache.hadoop.io.Text -->
  14556. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  14557. abstract="false"
  14558. static="false" final="false" visibility="public"
  14559. deprecated="not deprecated">
  14560. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14561. <constructor name="Text"
  14562. static="false" final="false" visibility="public"
  14563. deprecated="not deprecated">
  14564. </constructor>
  14565. <constructor name="Text" type="java.lang.String"
  14566. static="false" final="false" visibility="public"
  14567. deprecated="not deprecated">
  14568. <doc>
  14569. <![CDATA[Construct from a string.]]>
  14570. </doc>
  14571. </constructor>
  14572. <constructor name="Text" type="org.apache.hadoop.io.Text"
  14573. static="false" final="false" visibility="public"
  14574. deprecated="not deprecated">
  14575. <doc>
  14576. <![CDATA[Construct from another text.]]>
  14577. </doc>
  14578. </constructor>
  14579. <constructor name="Text" type="byte[]"
  14580. static="false" final="false" visibility="public"
  14581. deprecated="not deprecated">
  14582. <doc>
  14583. <![CDATA[Construct from a byte array.]]>
  14584. </doc>
  14585. </constructor>
  14586. <method name="getBytes" return="byte[]"
  14587. abstract="false" native="false" synchronized="false"
  14588. static="false" final="false" visibility="public"
  14589. deprecated="not deprecated">
  14590. <doc>
  14591. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  14592. valid.]]>
  14593. </doc>
  14594. </method>
  14595. <method name="getLength" return="int"
  14596. abstract="false" native="false" synchronized="false"
  14597. static="false" final="false" visibility="public"
  14598. deprecated="not deprecated">
  14599. <doc>
  14600. <![CDATA[Returns the number of bytes in the byte array]]>
  14601. </doc>
  14602. </method>
  14603. <method name="charAt" return="int"
  14604. abstract="false" native="false" synchronized="false"
  14605. static="false" final="false" visibility="public"
  14606. deprecated="not deprecated">
  14607. <param name="position" type="int"/>
  14608. <doc>
  14609. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  14610. for the character at <code>position</code>. Note that this
  14611. method avoids using the converter or doing String instatiation
  14612. @return the Unicode scalar value at position or -1
  14613. if the position is invalid or points to a
  14614. trailing byte]]>
  14615. </doc>
  14616. </method>
  14617. <method name="find" return="int"
  14618. abstract="false" native="false" synchronized="false"
  14619. static="false" final="false" visibility="public"
  14620. deprecated="not deprecated">
  14621. <param name="what" type="java.lang.String"/>
  14622. </method>
  14623. <method name="find" return="int"
  14624. abstract="false" native="false" synchronized="false"
  14625. static="false" final="false" visibility="public"
  14626. deprecated="not deprecated">
  14627. <param name="what" type="java.lang.String"/>
  14628. <param name="start" type="int"/>
  14629. <doc>
  14630. <![CDATA[Finds any occurence of <code>what</code> in the backing
  14631. buffer, starting as position <code>start</code>. The starting
  14632. position is measured in bytes and the return value is in
  14633. terms of byte position in the buffer. The backing buffer is
  14634. not converted to a string for this operation.
  14635. @return byte position of the first occurence of the search
  14636. string in the UTF-8 buffer or -1 if not found]]>
  14637. </doc>
  14638. </method>
  14639. <method name="set"
  14640. abstract="false" native="false" synchronized="false"
  14641. static="false" final="false" visibility="public"
  14642. deprecated="not deprecated">
  14643. <param name="string" type="java.lang.String"/>
  14644. <doc>
  14645. <![CDATA[Set to contain the contents of a string.]]>
  14646. </doc>
  14647. </method>
  14648. <method name="set"
  14649. abstract="false" native="false" synchronized="false"
  14650. static="false" final="false" visibility="public"
  14651. deprecated="not deprecated">
  14652. <param name="utf8" type="byte[]"/>
  14653. <doc>
  14654. <![CDATA[Set to a utf8 byte array]]>
  14655. </doc>
  14656. </method>
  14657. <method name="set"
  14658. abstract="false" native="false" synchronized="false"
  14659. static="false" final="false" visibility="public"
  14660. deprecated="not deprecated">
  14661. <param name="other" type="org.apache.hadoop.io.Text"/>
  14662. <doc>
  14663. <![CDATA[copy a text.]]>
  14664. </doc>
  14665. </method>
  14666. <method name="set"
  14667. abstract="false" native="false" synchronized="false"
  14668. static="false" final="false" visibility="public"
  14669. deprecated="not deprecated">
  14670. <param name="utf8" type="byte[]"/>
  14671. <param name="start" type="int"/>
  14672. <param name="len" type="int"/>
  14673. <doc>
  14674. <![CDATA[Set the Text to range of bytes
  14675. @param utf8 the data to copy from
  14676. @param start the first position of the new string
  14677. @param len the number of bytes of the new string]]>
  14678. </doc>
  14679. </method>
  14680. <method name="append"
  14681. abstract="false" native="false" synchronized="false"
  14682. static="false" final="false" visibility="public"
  14683. deprecated="not deprecated">
  14684. <param name="utf8" type="byte[]"/>
  14685. <param name="start" type="int"/>
  14686. <param name="len" type="int"/>
  14687. <doc>
  14688. <![CDATA[Append a range of bytes to the end of the given text
  14689. @param utf8 the data to copy from
  14690. @param start the first position to append from utf8
  14691. @param len the number of bytes to append]]>
  14692. </doc>
  14693. </method>
  14694. <method name="clear"
  14695. abstract="false" native="false" synchronized="false"
  14696. static="false" final="false" visibility="public"
  14697. deprecated="not deprecated">
  14698. <doc>
  14699. <![CDATA[Clear the string to empty.]]>
  14700. </doc>
  14701. </method>
  14702. <method name="toString" return="java.lang.String"
  14703. abstract="false" native="false" synchronized="false"
  14704. static="false" final="false" visibility="public"
  14705. deprecated="not deprecated">
  14706. <doc>
  14707. <![CDATA[Convert text back to string
  14708. @see java.lang.Object#toString()]]>
  14709. </doc>
  14710. </method>
  14711. <method name="readFields"
  14712. abstract="false" native="false" synchronized="false"
  14713. static="false" final="false" visibility="public"
  14714. deprecated="not deprecated">
  14715. <param name="in" type="java.io.DataInput"/>
  14716. <exception name="IOException" type="java.io.IOException"/>
  14717. <doc>
  14718. <![CDATA[deserialize]]>
  14719. </doc>
  14720. </method>
  14721. <method name="skip"
  14722. abstract="false" native="false" synchronized="false"
  14723. static="true" final="false" visibility="public"
  14724. deprecated="not deprecated">
  14725. <param name="in" type="java.io.DataInput"/>
  14726. <exception name="IOException" type="java.io.IOException"/>
  14727. <doc>
  14728. <![CDATA[Skips over one Text in the input.]]>
  14729. </doc>
  14730. </method>
  14731. <method name="write"
  14732. abstract="false" native="false" synchronized="false"
  14733. static="false" final="false" visibility="public"
  14734. deprecated="not deprecated">
  14735. <param name="out" type="java.io.DataOutput"/>
  14736. <exception name="IOException" type="java.io.IOException"/>
  14737. <doc>
  14738. <![CDATA[serialize
  14739. write this object to out
  14740. length uses zero-compressed encoding
  14741. @see Writable#write(DataOutput)]]>
  14742. </doc>
  14743. </method>
  14744. <method name="equals" return="boolean"
  14745. abstract="false" native="false" synchronized="false"
  14746. static="false" final="false" visibility="public"
  14747. deprecated="not deprecated">
  14748. <param name="o" type="java.lang.Object"/>
  14749. <doc>
  14750. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  14751. </doc>
  14752. </method>
  14753. <method name="hashCode" return="int"
  14754. abstract="false" native="false" synchronized="false"
  14755. static="false" final="false" visibility="public"
  14756. deprecated="not deprecated">
  14757. </method>
  14758. <method name="decode" return="java.lang.String"
  14759. abstract="false" native="false" synchronized="false"
  14760. static="true" final="false" visibility="public"
  14761. deprecated="not deprecated">
  14762. <param name="utf8" type="byte[]"/>
  14763. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14764. <doc>
  14765. <![CDATA[Converts the provided byte array to a String using the
  14766. UTF-8 encoding. If the input is malformed,
  14767. replace by a default value.]]>
  14768. </doc>
  14769. </method>
  14770. <method name="decode" return="java.lang.String"
  14771. abstract="false" native="false" synchronized="false"
  14772. static="true" final="false" visibility="public"
  14773. deprecated="not deprecated">
  14774. <param name="utf8" type="byte[]"/>
  14775. <param name="start" type="int"/>
  14776. <param name="length" type="int"/>
  14777. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14778. </method>
  14779. <method name="decode" return="java.lang.String"
  14780. abstract="false" native="false" synchronized="false"
  14781. static="true" final="false" visibility="public"
  14782. deprecated="not deprecated">
  14783. <param name="utf8" type="byte[]"/>
  14784. <param name="start" type="int"/>
  14785. <param name="length" type="int"/>
  14786. <param name="replace" type="boolean"/>
  14787. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14788. <doc>
  14789. <![CDATA[Converts the provided byte array to a String using the
  14790. UTF-8 encoding. If <code>replace</code> is true, then
  14791. malformed input is replaced with the
  14792. substitution character, which is U+FFFD. Otherwise the
  14793. method throws a MalformedInputException.]]>
  14794. </doc>
  14795. </method>
  14796. <method name="encode" return="java.nio.ByteBuffer"
  14797. abstract="false" native="false" synchronized="false"
  14798. static="true" final="false" visibility="public"
  14799. deprecated="not deprecated">
  14800. <param name="string" type="java.lang.String"/>
  14801. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14802. <doc>
  14803. <![CDATA[Converts the provided String to bytes using the
  14804. UTF-8 encoding. If the input is malformed,
  14805. invalid chars are replaced by a default value.
  14806. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14807. and length is ByteBuffer.limit()]]>
  14808. </doc>
  14809. </method>
  14810. <method name="encode" return="java.nio.ByteBuffer"
  14811. abstract="false" native="false" synchronized="false"
  14812. static="true" final="false" visibility="public"
  14813. deprecated="not deprecated">
  14814. <param name="string" type="java.lang.String"/>
  14815. <param name="replace" type="boolean"/>
  14816. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14817. <doc>
  14818. <![CDATA[Converts the provided String to bytes using the
  14819. UTF-8 encoding. If <code>replace</code> is true, then
  14820. malformed input is replaced with the
  14821. substitution character, which is U+FFFD. Otherwise the
  14822. method throws a MalformedInputException.
  14823. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14824. and length is ByteBuffer.limit()]]>
  14825. </doc>
  14826. </method>
  14827. <method name="readString" return="java.lang.String"
  14828. abstract="false" native="false" synchronized="false"
  14829. static="true" final="false" visibility="public"
  14830. deprecated="not deprecated">
  14831. <param name="in" type="java.io.DataInput"/>
  14832. <exception name="IOException" type="java.io.IOException"/>
  14833. <doc>
  14834. <![CDATA[Read a UTF8 encoded string from in]]>
  14835. </doc>
  14836. </method>
  14837. <method name="writeString" return="int"
  14838. abstract="false" native="false" synchronized="false"
  14839. static="true" final="false" visibility="public"
  14840. deprecated="not deprecated">
  14841. <param name="out" type="java.io.DataOutput"/>
  14842. <param name="s" type="java.lang.String"/>
  14843. <exception name="IOException" type="java.io.IOException"/>
  14844. <doc>
  14845. <![CDATA[Write a UTF8 encoded string to out]]>
  14846. </doc>
  14847. </method>
  14848. <method name="validateUTF8"
  14849. abstract="false" native="false" synchronized="false"
  14850. static="true" final="false" visibility="public"
  14851. deprecated="not deprecated">
  14852. <param name="utf8" type="byte[]"/>
  14853. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14854. <doc>
  14855. <![CDATA[Check if a byte array contains valid utf-8
  14856. @param utf8 byte array
  14857. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  14858. </doc>
  14859. </method>
  14860. <method name="validateUTF8"
  14861. abstract="false" native="false" synchronized="false"
  14862. static="true" final="false" visibility="public"
  14863. deprecated="not deprecated">
  14864. <param name="utf8" type="byte[]"/>
  14865. <param name="start" type="int"/>
  14866. <param name="len" type="int"/>
  14867. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14868. <doc>
  14869. <![CDATA[Check to see if a byte array is valid utf-8
  14870. @param utf8 the array of bytes
  14871. @param start the offset of the first byte in the array
  14872. @param len the length of the byte sequence
  14873. @throws MalformedInputException if the byte array contains invalid bytes]]>
  14874. </doc>
  14875. </method>
  14876. <method name="bytesToCodePoint" return="int"
  14877. abstract="false" native="false" synchronized="false"
  14878. static="true" final="false" visibility="public"
  14879. deprecated="not deprecated">
  14880. <param name="bytes" type="java.nio.ByteBuffer"/>
  14881. <doc>
  14882. <![CDATA[Returns the next code point at the current position in
  14883. the buffer. The buffer's position will be incremented.
  14884. Any mark set on this buffer will be changed by this method!]]>
  14885. </doc>
  14886. </method>
  14887. <method name="utf8Length" return="int"
  14888. abstract="false" native="false" synchronized="false"
  14889. static="true" final="false" visibility="public"
  14890. deprecated="not deprecated">
  14891. <param name="string" type="java.lang.String"/>
  14892. <doc>
  14893. <![CDATA[For the given string, returns the number of UTF-8 bytes
  14894. required to encode the string.
  14895. @param string text to encode
  14896. @return number of UTF-8 bytes required to encode]]>
  14897. </doc>
  14898. </method>
  14899. <doc>
  14900. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  14901. to serialize, deserialize, and compare texts at byte level. The type of
  14902. length is integer and is serialized using zero-compressed format. <p>In
  14903. addition, it provides methods for string traversal without converting the
  14904. byte array to a string. <p>Also includes utilities for
  14905. serializing/deserialing a string, coding/decoding a string, checking if a
  14906. byte array contains valid UTF8 code, calculating the length of an encoded
  14907. string.]]>
  14908. </doc>
  14909. </class>
  14910. <!-- end class org.apache.hadoop.io.Text -->
  14911. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  14912. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14913. abstract="false"
  14914. static="true" final="false" visibility="public"
  14915. deprecated="not deprecated">
  14916. <constructor name="Text.Comparator"
  14917. static="false" final="false" visibility="public"
  14918. deprecated="not deprecated">
  14919. </constructor>
  14920. <method name="compare" return="int"
  14921. abstract="false" native="false" synchronized="false"
  14922. static="false" final="false" visibility="public"
  14923. deprecated="not deprecated">
  14924. <param name="b1" type="byte[]"/>
  14925. <param name="s1" type="int"/>
  14926. <param name="l1" type="int"/>
  14927. <param name="b2" type="byte[]"/>
  14928. <param name="s2" type="int"/>
  14929. <param name="l2" type="int"/>
  14930. </method>
  14931. <doc>
  14932. <![CDATA[A WritableComparator optimized for Text keys.]]>
  14933. </doc>
  14934. </class>
  14935. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  14936. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  14937. <class name="TwoDArrayWritable" extends="java.lang.Object"
  14938. abstract="false"
  14939. static="false" final="false" visibility="public"
  14940. deprecated="not deprecated">
  14941. <implements name="org.apache.hadoop.io.Writable"/>
  14942. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  14943. static="false" final="false" visibility="public"
  14944. deprecated="not deprecated">
  14945. </constructor>
  14946. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  14947. static="false" final="false" visibility="public"
  14948. deprecated="not deprecated">
  14949. </constructor>
  14950. <method name="toArray" return="java.lang.Object"
  14951. abstract="false" native="false" synchronized="false"
  14952. static="false" final="false" visibility="public"
  14953. deprecated="not deprecated">
  14954. </method>
  14955. <method name="set"
  14956. abstract="false" native="false" synchronized="false"
  14957. static="false" final="false" visibility="public"
  14958. deprecated="not deprecated">
  14959. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  14960. </method>
  14961. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  14962. abstract="false" native="false" synchronized="false"
  14963. static="false" final="false" visibility="public"
  14964. deprecated="not deprecated">
  14965. </method>
  14966. <method name="readFields"
  14967. abstract="false" native="false" synchronized="false"
  14968. static="false" final="false" visibility="public"
  14969. deprecated="not deprecated">
  14970. <param name="in" type="java.io.DataInput"/>
  14971. <exception name="IOException" type="java.io.IOException"/>
  14972. </method>
  14973. <method name="write"
  14974. abstract="false" native="false" synchronized="false"
  14975. static="false" final="false" visibility="public"
  14976. deprecated="not deprecated">
  14977. <param name="out" type="java.io.DataOutput"/>
  14978. <exception name="IOException" type="java.io.IOException"/>
  14979. </method>
  14980. <doc>
  14981. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  14982. </doc>
  14983. </class>
  14984. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  14985. <!-- start class org.apache.hadoop.io.UTF8 -->
  14986. <class name="UTF8" extends="java.lang.Object"
  14987. abstract="false"
  14988. static="false" final="false" visibility="public"
  14989. deprecated="replaced by Text">
  14990. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14991. <constructor name="UTF8"
  14992. static="false" final="false" visibility="public"
  14993. deprecated="not deprecated">
  14994. </constructor>
  14995. <constructor name="UTF8" type="java.lang.String"
  14996. static="false" final="false" visibility="public"
  14997. deprecated="not deprecated">
  14998. <doc>
  14999. <![CDATA[Construct from a given string.]]>
  15000. </doc>
  15001. </constructor>
  15002. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  15003. static="false" final="false" visibility="public"
  15004. deprecated="not deprecated">
  15005. <doc>
  15006. <![CDATA[Construct from a given string.]]>
  15007. </doc>
  15008. </constructor>
  15009. <method name="getBytes" return="byte[]"
  15010. abstract="false" native="false" synchronized="false"
  15011. static="false" final="false" visibility="public"
  15012. deprecated="not deprecated">
  15013. <doc>
  15014. <![CDATA[The raw bytes.]]>
  15015. </doc>
  15016. </method>
  15017. <method name="getLength" return="int"
  15018. abstract="false" native="false" synchronized="false"
  15019. static="false" final="false" visibility="public"
  15020. deprecated="not deprecated">
  15021. <doc>
  15022. <![CDATA[The number of bytes in the encoded string.]]>
  15023. </doc>
  15024. </method>
  15025. <method name="set"
  15026. abstract="false" native="false" synchronized="false"
  15027. static="false" final="false" visibility="public"
  15028. deprecated="not deprecated">
  15029. <param name="string" type="java.lang.String"/>
  15030. <doc>
  15031. <![CDATA[Set to contain the contents of a string.]]>
  15032. </doc>
  15033. </method>
  15034. <method name="set"
  15035. abstract="false" native="false" synchronized="false"
  15036. static="false" final="false" visibility="public"
  15037. deprecated="not deprecated">
  15038. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  15039. <doc>
  15040. <![CDATA[Set to contain the contents of a string.]]>
  15041. </doc>
  15042. </method>
  15043. <method name="readFields"
  15044. abstract="false" native="false" synchronized="false"
  15045. static="false" final="false" visibility="public"
  15046. deprecated="not deprecated">
  15047. <param name="in" type="java.io.DataInput"/>
  15048. <exception name="IOException" type="java.io.IOException"/>
  15049. </method>
  15050. <method name="skip"
  15051. abstract="false" native="false" synchronized="false"
  15052. static="true" final="false" visibility="public"
  15053. deprecated="not deprecated">
  15054. <param name="in" type="java.io.DataInput"/>
  15055. <exception name="IOException" type="java.io.IOException"/>
  15056. <doc>
  15057. <![CDATA[Skips over one UTF8 in the input.]]>
  15058. </doc>
  15059. </method>
  15060. <method name="write"
  15061. abstract="false" native="false" synchronized="false"
  15062. static="false" final="false" visibility="public"
  15063. deprecated="not deprecated">
  15064. <param name="out" type="java.io.DataOutput"/>
  15065. <exception name="IOException" type="java.io.IOException"/>
  15066. </method>
  15067. <method name="compareTo" return="int"
  15068. abstract="false" native="false" synchronized="false"
  15069. static="false" final="false" visibility="public"
  15070. deprecated="not deprecated">
  15071. <param name="o" type="java.lang.Object"/>
  15072. <doc>
  15073. <![CDATA[Compare two UTF8s.]]>
  15074. </doc>
  15075. </method>
  15076. <method name="toString" return="java.lang.String"
  15077. abstract="false" native="false" synchronized="false"
  15078. static="false" final="false" visibility="public"
  15079. deprecated="not deprecated">
  15080. <doc>
  15081. <![CDATA[Convert to a String.]]>
  15082. </doc>
  15083. </method>
  15084. <method name="equals" return="boolean"
  15085. abstract="false" native="false" synchronized="false"
  15086. static="false" final="false" visibility="public"
  15087. deprecated="not deprecated">
  15088. <param name="o" type="java.lang.Object"/>
  15089. <doc>
  15090. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  15091. </doc>
  15092. </method>
  15093. <method name="hashCode" return="int"
  15094. abstract="false" native="false" synchronized="false"
  15095. static="false" final="false" visibility="public"
  15096. deprecated="not deprecated">
  15097. </method>
  15098. <method name="getBytes" return="byte[]"
  15099. abstract="false" native="false" synchronized="false"
  15100. static="true" final="false" visibility="public"
  15101. deprecated="not deprecated">
  15102. <param name="string" type="java.lang.String"/>
  15103. <doc>
  15104. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  15105. @see String#getBytes(String)]]>
  15106. </doc>
  15107. </method>
  15108. <method name="readString" return="java.lang.String"
  15109. abstract="false" native="false" synchronized="false"
  15110. static="true" final="false" visibility="public"
  15111. deprecated="not deprecated">
  15112. <param name="in" type="java.io.DataInput"/>
  15113. <exception name="IOException" type="java.io.IOException"/>
  15114. <doc>
  15115. <![CDATA[Read a UTF-8 encoded string.
  15116. @see DataInput#readUTF()]]>
  15117. </doc>
  15118. </method>
  15119. <method name="writeString" return="int"
  15120. abstract="false" native="false" synchronized="false"
  15121. static="true" final="false" visibility="public"
  15122. deprecated="not deprecated">
  15123. <param name="out" type="java.io.DataOutput"/>
  15124. <param name="s" type="java.lang.String"/>
  15125. <exception name="IOException" type="java.io.IOException"/>
  15126. <doc>
  15127. <![CDATA[Write a UTF-8 encoded string.
  15128. @see DataOutput#writeUTF(String)]]>
  15129. </doc>
  15130. </method>
  15131. <doc>
  15132. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  15133. <p>Also includes utilities for efficiently reading and writing UTF-8.
  15134. @deprecated replaced by Text]]>
  15135. </doc>
  15136. </class>
  15137. <!-- end class org.apache.hadoop.io.UTF8 -->
  15138. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  15139. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15140. abstract="false"
  15141. static="true" final="false" visibility="public"
  15142. deprecated="not deprecated">
  15143. <constructor name="UTF8.Comparator"
  15144. static="false" final="false" visibility="public"
  15145. deprecated="not deprecated">
  15146. </constructor>
  15147. <method name="compare" return="int"
  15148. abstract="false" native="false" synchronized="false"
  15149. static="false" final="false" visibility="public"
  15150. deprecated="not deprecated">
  15151. <param name="b1" type="byte[]"/>
  15152. <param name="s1" type="int"/>
  15153. <param name="l1" type="int"/>
  15154. <param name="b2" type="byte[]"/>
  15155. <param name="s2" type="int"/>
  15156. <param name="l2" type="int"/>
  15157. </method>
  15158. <doc>
  15159. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  15160. </doc>
  15161. </class>
  15162. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  15163. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  15164. <class name="VersionedWritable" extends="java.lang.Object"
  15165. abstract="true"
  15166. static="false" final="false" visibility="public"
  15167. deprecated="not deprecated">
  15168. <implements name="org.apache.hadoop.io.Writable"/>
  15169. <constructor name="VersionedWritable"
  15170. static="false" final="false" visibility="public"
  15171. deprecated="not deprecated">
  15172. </constructor>
  15173. <method name="getVersion" return="byte"
  15174. abstract="true" native="false" synchronized="false"
  15175. static="false" final="false" visibility="public"
  15176. deprecated="not deprecated">
  15177. <doc>
  15178. <![CDATA[Return the version number of the current implementation.]]>
  15179. </doc>
  15180. </method>
  15181. <method name="write"
  15182. abstract="false" native="false" synchronized="false"
  15183. static="false" final="false" visibility="public"
  15184. deprecated="not deprecated">
  15185. <param name="out" type="java.io.DataOutput"/>
  15186. <exception name="IOException" type="java.io.IOException"/>
  15187. </method>
  15188. <method name="readFields"
  15189. abstract="false" native="false" synchronized="false"
  15190. static="false" final="false" visibility="public"
  15191. deprecated="not deprecated">
  15192. <param name="in" type="java.io.DataInput"/>
  15193. <exception name="IOException" type="java.io.IOException"/>
  15194. </method>
  15195. <doc>
  15196. <![CDATA[A base class for Writables that provides version checking.
  15197. <p>This is useful when a class may evolve, so that instances written by the
  15198. old version of the class may still be processed by the new version. To
  15199. handle this situation, {@link #readFields(DataInput)}
  15200. implementations should catch {@link VersionMismatchException}.]]>
  15201. </doc>
  15202. </class>
  15203. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  15204. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  15205. <class name="VersionMismatchException" extends="java.io.IOException"
  15206. abstract="false"
  15207. static="false" final="false" visibility="public"
  15208. deprecated="not deprecated">
  15209. <constructor name="VersionMismatchException" type="byte, byte"
  15210. static="false" final="false" visibility="public"
  15211. deprecated="not deprecated">
  15212. </constructor>
  15213. <method name="toString" return="java.lang.String"
  15214. abstract="false" native="false" synchronized="false"
  15215. static="false" final="false" visibility="public"
  15216. deprecated="not deprecated">
  15217. <doc>
  15218. <![CDATA[Returns a string representation of this object.]]>
  15219. </doc>
  15220. </method>
  15221. <doc>
  15222. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  15223. version of an object being read does not match the current implementation
  15224. version as returned by {@link VersionedWritable#getVersion()}.]]>
  15225. </doc>
  15226. </class>
  15227. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  15228. <!-- start class org.apache.hadoop.io.VIntWritable -->
  15229. <class name="VIntWritable" extends="java.lang.Object"
  15230. abstract="false"
  15231. static="false" final="false" visibility="public"
  15232. deprecated="not deprecated">
  15233. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15234. <constructor name="VIntWritable"
  15235. static="false" final="false" visibility="public"
  15236. deprecated="not deprecated">
  15237. </constructor>
  15238. <constructor name="VIntWritable" type="int"
  15239. static="false" final="false" visibility="public"
  15240. deprecated="not deprecated">
  15241. </constructor>
  15242. <method name="set"
  15243. abstract="false" native="false" synchronized="false"
  15244. static="false" final="false" visibility="public"
  15245. deprecated="not deprecated">
  15246. <param name="value" type="int"/>
  15247. <doc>
  15248. <![CDATA[Set the value of this VIntWritable.]]>
  15249. </doc>
  15250. </method>
  15251. <method name="get" return="int"
  15252. abstract="false" native="false" synchronized="false"
  15253. static="false" final="false" visibility="public"
  15254. deprecated="not deprecated">
  15255. <doc>
  15256. <![CDATA[Return the value of this VIntWritable.]]>
  15257. </doc>
  15258. </method>
  15259. <method name="readFields"
  15260. abstract="false" native="false" synchronized="false"
  15261. static="false" final="false" visibility="public"
  15262. deprecated="not deprecated">
  15263. <param name="in" type="java.io.DataInput"/>
  15264. <exception name="IOException" type="java.io.IOException"/>
  15265. </method>
  15266. <method name="write"
  15267. abstract="false" native="false" synchronized="false"
  15268. static="false" final="false" visibility="public"
  15269. deprecated="not deprecated">
  15270. <param name="out" type="java.io.DataOutput"/>
  15271. <exception name="IOException" type="java.io.IOException"/>
  15272. </method>
  15273. <method name="equals" return="boolean"
  15274. abstract="false" native="false" synchronized="false"
  15275. static="false" final="false" visibility="public"
  15276. deprecated="not deprecated">
  15277. <param name="o" type="java.lang.Object"/>
  15278. <doc>
  15279. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  15280. </doc>
  15281. </method>
  15282. <method name="hashCode" return="int"
  15283. abstract="false" native="false" synchronized="false"
  15284. static="false" final="false" visibility="public"
  15285. deprecated="not deprecated">
  15286. </method>
  15287. <method name="compareTo" return="int"
  15288. abstract="false" native="false" synchronized="false"
  15289. static="false" final="false" visibility="public"
  15290. deprecated="not deprecated">
  15291. <param name="o" type="java.lang.Object"/>
  15292. <doc>
  15293. <![CDATA[Compares two VIntWritables.]]>
  15294. </doc>
  15295. </method>
  15296. <method name="toString" return="java.lang.String"
  15297. abstract="false" native="false" synchronized="false"
  15298. static="false" final="false" visibility="public"
  15299. deprecated="not deprecated">
  15300. </method>
  15301. <doc>
  15302. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  15303. Such values take between one and five bytes. Smaller values take fewer bytes.
  15304. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  15305. </doc>
  15306. </class>
  15307. <!-- end class org.apache.hadoop.io.VIntWritable -->
  15308. <!-- start class org.apache.hadoop.io.VLongWritable -->
  15309. <class name="VLongWritable" extends="java.lang.Object"
  15310. abstract="false"
  15311. static="false" final="false" visibility="public"
  15312. deprecated="not deprecated">
  15313. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15314. <constructor name="VLongWritable"
  15315. static="false" final="false" visibility="public"
  15316. deprecated="not deprecated">
  15317. </constructor>
  15318. <constructor name="VLongWritable" type="long"
  15319. static="false" final="false" visibility="public"
  15320. deprecated="not deprecated">
  15321. </constructor>
  15322. <method name="set"
  15323. abstract="false" native="false" synchronized="false"
  15324. static="false" final="false" visibility="public"
  15325. deprecated="not deprecated">
  15326. <param name="value" type="long"/>
  15327. <doc>
  15328. <![CDATA[Set the value of this LongWritable.]]>
  15329. </doc>
  15330. </method>
  15331. <method name="get" return="long"
  15332. abstract="false" native="false" synchronized="false"
  15333. static="false" final="false" visibility="public"
  15334. deprecated="not deprecated">
  15335. <doc>
  15336. <![CDATA[Return the value of this LongWritable.]]>
  15337. </doc>
  15338. </method>
  15339. <method name="readFields"
  15340. abstract="false" native="false" synchronized="false"
  15341. static="false" final="false" visibility="public"
  15342. deprecated="not deprecated">
  15343. <param name="in" type="java.io.DataInput"/>
  15344. <exception name="IOException" type="java.io.IOException"/>
  15345. </method>
  15346. <method name="write"
  15347. abstract="false" native="false" synchronized="false"
  15348. static="false" final="false" visibility="public"
  15349. deprecated="not deprecated">
  15350. <param name="out" type="java.io.DataOutput"/>
  15351. <exception name="IOException" type="java.io.IOException"/>
  15352. </method>
  15353. <method name="equals" return="boolean"
  15354. abstract="false" native="false" synchronized="false"
  15355. static="false" final="false" visibility="public"
  15356. deprecated="not deprecated">
  15357. <param name="o" type="java.lang.Object"/>
  15358. <doc>
  15359. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  15360. </doc>
  15361. </method>
  15362. <method name="hashCode" return="int"
  15363. abstract="false" native="false" synchronized="false"
  15364. static="false" final="false" visibility="public"
  15365. deprecated="not deprecated">
  15366. </method>
  15367. <method name="compareTo" return="int"
  15368. abstract="false" native="false" synchronized="false"
  15369. static="false" final="false" visibility="public"
  15370. deprecated="not deprecated">
  15371. <param name="o" type="java.lang.Object"/>
  15372. <doc>
  15373. <![CDATA[Compares two VLongWritables.]]>
  15374. </doc>
  15375. </method>
  15376. <method name="toString" return="java.lang.String"
  15377. abstract="false" native="false" synchronized="false"
  15378. static="false" final="false" visibility="public"
  15379. deprecated="not deprecated">
  15380. </method>
  15381. <doc>
  15382. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  15383. between one and five bytes. Smaller values take fewer bytes.
  15384. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  15385. </doc>
  15386. </class>
  15387. <!-- end class org.apache.hadoop.io.VLongWritable -->
  15388. <!-- start interface org.apache.hadoop.io.Writable -->
  15389. <interface name="Writable" abstract="true"
  15390. static="false" final="false" visibility="public"
  15391. deprecated="not deprecated">
  15392. <method name="write"
  15393. abstract="false" native="false" synchronized="false"
  15394. static="false" final="false" visibility="public"
  15395. deprecated="not deprecated">
  15396. <param name="out" type="java.io.DataOutput"/>
  15397. <exception name="IOException" type="java.io.IOException"/>
  15398. <doc>
  15399. <![CDATA[Serialize the fields of this object to <code>out</code>.
  15400. @param out <code>DataOuput</code> to serialize this object into.
  15401. @throws IOException]]>
  15402. </doc>
  15403. </method>
  15404. <method name="readFields"
  15405. abstract="false" native="false" synchronized="false"
  15406. static="false" final="false" visibility="public"
  15407. deprecated="not deprecated">
  15408. <param name="in" type="java.io.DataInput"/>
  15409. <exception name="IOException" type="java.io.IOException"/>
  15410. <doc>
  15411. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  15412. <p>For efficiency, implementations should attempt to re-use storage in the
  15413. existing object where possible.</p>
  15414. @param in <code>DataInput</code> to deseriablize this object from.
  15415. @throws IOException]]>
  15416. </doc>
  15417. </method>
  15418. <doc>
  15419. <![CDATA[A serializable object which implements a simple, efficient, serialization
  15420. protocol, based on {@link DataInput} and {@link DataOutput}.
  15421. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  15422. framework implements this interface.</p>
  15423. <p>Implementations typically implement a static <code>read(DataInput)</code>
  15424. method which constructs a new instance, calls {@link #readFields(DataInput)}
  15425. and returns the instance.</p>
  15426. <p>Example:</p>
  15427. <p><blockquote><pre>
  15428. public class MyWritable implements Writable {
  15429. // Some data
  15430. private int counter;
  15431. private long timestamp;
  15432. public void write(DataOutput out) throws IOException {
  15433. out.writeInt(counter);
  15434. out.writeLong(timestamp);
  15435. }
  15436. public void readFields(DataInput in) throws IOException {
  15437. counter = in.readInt();
  15438. timestamp = in.readLong();
  15439. }
  15440. public static MyWritable read(DataInput in) throws IOException {
  15441. MyWritable w = new MyWritable();
  15442. w.readFields(in);
  15443. return w;
  15444. }
  15445. }
  15446. </pre></blockquote></p>]]>
  15447. </doc>
  15448. </interface>
  15449. <!-- end interface org.apache.hadoop.io.Writable -->
  15450. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  15451. <interface name="WritableComparable" abstract="true"
  15452. static="false" final="false" visibility="public"
  15453. deprecated="not deprecated">
  15454. <implements name="org.apache.hadoop.io.Writable"/>
  15455. <implements name="java.lang.Comparable"/>
  15456. <doc>
  15457. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  15458. <p><code>WritableComparable</code>s can be compared to each other, typically
  15459. via <code>Comparator</code>s. Any type which is to be used as a
  15460. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  15461. interface.</p>
  15462. <p>Example:</p>
  15463. <p><blockquote><pre>
  15464. public class MyWritableComparable implements WritableComparable {
  15465. // Some data
  15466. private int counter;
  15467. private long timestamp;
  15468. public void write(DataOutput out) throws IOException {
  15469. out.writeInt(counter);
  15470. out.writeLong(timestamp);
  15471. }
  15472. public void readFields(DataInput in) throws IOException {
  15473. counter = in.readInt();
  15474. timestamp = in.readLong();
  15475. }
  15476. public int compareTo(MyWritableComparable w) {
  15477. int thisValue = this.value;
  15478. int thatValue = ((IntWritable)o).value;
  15479. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  15480. }
  15481. }
  15482. </pre></blockquote></p>]]>
  15483. </doc>
  15484. </interface>
  15485. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  15486. <!-- start class org.apache.hadoop.io.WritableComparator -->
  15487. <class name="WritableComparator" extends="java.lang.Object"
  15488. abstract="false"
  15489. static="false" final="false" visibility="public"
  15490. deprecated="not deprecated">
  15491. <implements name="org.apache.hadoop.io.RawComparator"/>
  15492. <constructor name="WritableComparator" type="java.lang.Class"
  15493. static="false" final="false" visibility="protected"
  15494. deprecated="not deprecated">
  15495. <doc>
  15496. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  15497. </doc>
  15498. </constructor>
  15499. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  15500. static="false" final="false" visibility="protected"
  15501. deprecated="not deprecated">
  15502. </constructor>
  15503. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  15504. abstract="false" native="false" synchronized="true"
  15505. static="true" final="false" visibility="public"
  15506. deprecated="not deprecated">
  15507. <param name="c" type="java.lang.Class"/>
  15508. <doc>
  15509. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  15510. </doc>
  15511. </method>
  15512. <method name="define"
  15513. abstract="false" native="false" synchronized="true"
  15514. static="true" final="false" visibility="public"
  15515. deprecated="not deprecated">
  15516. <param name="c" type="java.lang.Class"/>
  15517. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15518. <doc>
  15519. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  15520. implementation.]]>
  15521. </doc>
  15522. </method>
  15523. <method name="getKeyClass" return="java.lang.Class"
  15524. abstract="false" native="false" synchronized="false"
  15525. static="false" final="false" visibility="public"
  15526. deprecated="not deprecated">
  15527. <doc>
  15528. <![CDATA[Returns the WritableComparable implementation class.]]>
  15529. </doc>
  15530. </method>
  15531. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  15532. abstract="false" native="false" synchronized="false"
  15533. static="false" final="false" visibility="public"
  15534. deprecated="not deprecated">
  15535. <doc>
  15536. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  15537. </doc>
  15538. </method>
  15539. <method name="compare" return="int"
  15540. abstract="false" native="false" synchronized="false"
  15541. static="false" final="false" visibility="public"
  15542. deprecated="not deprecated">
  15543. <param name="b1" type="byte[]"/>
  15544. <param name="s1" type="int"/>
  15545. <param name="l1" type="int"/>
  15546. <param name="b2" type="byte[]"/>
  15547. <param name="s2" type="int"/>
  15548. <param name="l2" type="int"/>
  15549. <doc>
  15550. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  15551. <p>The default implementation reads the data into two {@link
  15552. WritableComparable}s (using {@link
  15553. Writable#readFields(DataInput)}, then calls {@link
  15554. #compare(WritableComparable,WritableComparable)}.]]>
  15555. </doc>
  15556. </method>
  15557. <method name="compare" return="int"
  15558. abstract="false" native="false" synchronized="false"
  15559. static="false" final="false" visibility="public"
  15560. deprecated="not deprecated">
  15561. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15562. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15563. <doc>
  15564. <![CDATA[Compare two WritableComparables.
  15565. <p> The default implementation uses the natural ordering, calling {@link
  15566. Comparable#compareTo(Object)}.]]>
  15567. </doc>
  15568. </method>
  15569. <method name="compare" return="int"
  15570. abstract="false" native="false" synchronized="false"
  15571. static="false" final="false" visibility="public"
  15572. deprecated="not deprecated">
  15573. <param name="a" type="java.lang.Object"/>
  15574. <param name="b" type="java.lang.Object"/>
  15575. </method>
  15576. <method name="compareBytes" return="int"
  15577. abstract="false" native="false" synchronized="false"
  15578. static="true" final="false" visibility="public"
  15579. deprecated="not deprecated">
  15580. <param name="b1" type="byte[]"/>
  15581. <param name="s1" type="int"/>
  15582. <param name="l1" type="int"/>
  15583. <param name="b2" type="byte[]"/>
  15584. <param name="s2" type="int"/>
  15585. <param name="l2" type="int"/>
  15586. <doc>
  15587. <![CDATA[Lexicographic order of binary data.]]>
  15588. </doc>
  15589. </method>
  15590. <method name="hashBytes" return="int"
  15591. abstract="false" native="false" synchronized="false"
  15592. static="true" final="false" visibility="public"
  15593. deprecated="not deprecated">
  15594. <param name="bytes" type="byte[]"/>
  15595. <param name="offset" type="int"/>
  15596. <param name="length" type="int"/>
  15597. <doc>
  15598. <![CDATA[Compute hash for binary data.]]>
  15599. </doc>
  15600. </method>
  15601. <method name="hashBytes" return="int"
  15602. abstract="false" native="false" synchronized="false"
  15603. static="true" final="false" visibility="public"
  15604. deprecated="not deprecated">
  15605. <param name="bytes" type="byte[]"/>
  15606. <param name="length" type="int"/>
  15607. <doc>
  15608. <![CDATA[Compute hash for binary data.]]>
  15609. </doc>
  15610. </method>
  15611. <method name="readUnsignedShort" return="int"
  15612. abstract="false" native="false" synchronized="false"
  15613. static="true" final="false" visibility="public"
  15614. deprecated="not deprecated">
  15615. <param name="bytes" type="byte[]"/>
  15616. <param name="start" type="int"/>
  15617. <doc>
  15618. <![CDATA[Parse an unsigned short from a byte array.]]>
  15619. </doc>
  15620. </method>
  15621. <method name="readInt" return="int"
  15622. abstract="false" native="false" synchronized="false"
  15623. static="true" final="false" visibility="public"
  15624. deprecated="not deprecated">
  15625. <param name="bytes" type="byte[]"/>
  15626. <param name="start" type="int"/>
  15627. <doc>
  15628. <![CDATA[Parse an integer from a byte array.]]>
  15629. </doc>
  15630. </method>
  15631. <method name="readFloat" return="float"
  15632. abstract="false" native="false" synchronized="false"
  15633. static="true" final="false" visibility="public"
  15634. deprecated="not deprecated">
  15635. <param name="bytes" type="byte[]"/>
  15636. <param name="start" type="int"/>
  15637. <doc>
  15638. <![CDATA[Parse a float from a byte array.]]>
  15639. </doc>
  15640. </method>
  15641. <method name="readLong" return="long"
  15642. abstract="false" native="false" synchronized="false"
  15643. static="true" final="false" visibility="public"
  15644. deprecated="not deprecated">
  15645. <param name="bytes" type="byte[]"/>
  15646. <param name="start" type="int"/>
  15647. <doc>
  15648. <![CDATA[Parse a long from a byte array.]]>
  15649. </doc>
  15650. </method>
  15651. <method name="readDouble" return="double"
  15652. abstract="false" native="false" synchronized="false"
  15653. static="true" final="false" visibility="public"
  15654. deprecated="not deprecated">
  15655. <param name="bytes" type="byte[]"/>
  15656. <param name="start" type="int"/>
  15657. <doc>
  15658. <![CDATA[Parse a double from a byte array.]]>
  15659. </doc>
  15660. </method>
  15661. <method name="readVLong" return="long"
  15662. abstract="false" native="false" synchronized="false"
  15663. static="true" final="false" visibility="public"
  15664. deprecated="not deprecated">
  15665. <param name="bytes" type="byte[]"/>
  15666. <param name="start" type="int"/>
  15667. <exception name="IOException" type="java.io.IOException"/>
  15668. <doc>
  15669. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  15670. @param bytes byte array with decode long
  15671. @param start starting index
  15672. @throws java.io.IOException
  15673. @return deserialized long]]>
  15674. </doc>
  15675. </method>
  15676. <method name="readVInt" return="int"
  15677. abstract="false" native="false" synchronized="false"
  15678. static="true" final="false" visibility="public"
  15679. deprecated="not deprecated">
  15680. <param name="bytes" type="byte[]"/>
  15681. <param name="start" type="int"/>
  15682. <exception name="IOException" type="java.io.IOException"/>
  15683. <doc>
  15684. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  15685. @param bytes byte array with the encoded integer
  15686. @param start start index
  15687. @throws java.io.IOException
  15688. @return deserialized integer]]>
  15689. </doc>
  15690. </method>
  15691. <doc>
  15692. <![CDATA[A Comparator for {@link WritableComparable}s.
  15693. <p>This base implemenation uses the natural ordering. To define alternate
  15694. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  15695. <p>One may optimize compare-intensive operations by overriding
  15696. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  15697. provided to assist in optimized implementations of this method.]]>
  15698. </doc>
  15699. </class>
  15700. <!-- end class org.apache.hadoop.io.WritableComparator -->
  15701. <!-- start class org.apache.hadoop.io.WritableFactories -->
  15702. <class name="WritableFactories" extends="java.lang.Object"
  15703. abstract="false"
  15704. static="false" final="false" visibility="public"
  15705. deprecated="not deprecated">
  15706. <method name="setFactory"
  15707. abstract="false" native="false" synchronized="true"
  15708. static="true" final="false" visibility="public"
  15709. deprecated="not deprecated">
  15710. <param name="c" type="java.lang.Class"/>
  15711. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  15712. <doc>
  15713. <![CDATA[Define a factory for a class.]]>
  15714. </doc>
  15715. </method>
  15716. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  15717. abstract="false" native="false" synchronized="true"
  15718. static="true" final="false" visibility="public"
  15719. deprecated="not deprecated">
  15720. <param name="c" type="java.lang.Class"/>
  15721. <doc>
  15722. <![CDATA[Define a factory for a class.]]>
  15723. </doc>
  15724. </method>
  15725. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15726. abstract="false" native="false" synchronized="false"
  15727. static="true" final="false" visibility="public"
  15728. deprecated="not deprecated">
  15729. <param name="c" type="java.lang.Class"/>
  15730. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15731. <doc>
  15732. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15733. </doc>
  15734. </method>
  15735. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15736. abstract="false" native="false" synchronized="false"
  15737. static="true" final="false" visibility="public"
  15738. deprecated="not deprecated">
  15739. <param name="c" type="java.lang.Class"/>
  15740. <doc>
  15741. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15742. </doc>
  15743. </method>
  15744. <doc>
  15745. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  15746. ObjectWritable} to be able to construct instances of non-public classes.]]>
  15747. </doc>
  15748. </class>
  15749. <!-- end class org.apache.hadoop.io.WritableFactories -->
  15750. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  15751. <interface name="WritableFactory" abstract="true"
  15752. static="false" final="false" visibility="public"
  15753. deprecated="not deprecated">
  15754. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15755. abstract="false" native="false" synchronized="false"
  15756. static="false" final="false" visibility="public"
  15757. deprecated="not deprecated">
  15758. <doc>
  15759. <![CDATA[Return a new instance.]]>
  15760. </doc>
  15761. </method>
  15762. <doc>
  15763. <![CDATA[A factory for a class of Writable.
  15764. @see WritableFactories]]>
  15765. </doc>
  15766. </interface>
  15767. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  15768. <!-- start class org.apache.hadoop.io.WritableName -->
  15769. <class name="WritableName" extends="java.lang.Object"
  15770. abstract="false"
  15771. static="false" final="false" visibility="public"
  15772. deprecated="not deprecated">
  15773. <method name="setName"
  15774. abstract="false" native="false" synchronized="true"
  15775. static="true" final="false" visibility="public"
  15776. deprecated="not deprecated">
  15777. <param name="writableClass" type="java.lang.Class"/>
  15778. <param name="name" type="java.lang.String"/>
  15779. <doc>
  15780. <![CDATA[Set the name that a class should be known as to something other than the
  15781. class name.]]>
  15782. </doc>
  15783. </method>
  15784. <method name="addName"
  15785. abstract="false" native="false" synchronized="true"
  15786. static="true" final="false" visibility="public"
  15787. deprecated="not deprecated">
  15788. <param name="writableClass" type="java.lang.Class"/>
  15789. <param name="name" type="java.lang.String"/>
  15790. <doc>
  15791. <![CDATA[Add an alternate name for a class.]]>
  15792. </doc>
  15793. </method>
  15794. <method name="getName" return="java.lang.String"
  15795. abstract="false" native="false" synchronized="true"
  15796. static="true" final="false" visibility="public"
  15797. deprecated="not deprecated">
  15798. <param name="writableClass" type="java.lang.Class"/>
  15799. <doc>
  15800. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  15801. </doc>
  15802. </method>
  15803. <method name="getClass" return="java.lang.Class"
  15804. abstract="false" native="false" synchronized="true"
  15805. static="true" final="false" visibility="public"
  15806. deprecated="not deprecated">
  15807. <param name="name" type="java.lang.String"/>
  15808. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15809. <exception name="IOException" type="java.io.IOException"/>
  15810. <doc>
  15811. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  15812. </doc>
  15813. </method>
  15814. <doc>
  15815. <![CDATA[Utility to permit renaming of Writable implementation classes without
  15816. invalidiating files that contain their class name.]]>
  15817. </doc>
  15818. </class>
  15819. <!-- end class org.apache.hadoop.io.WritableName -->
  15820. <!-- start class org.apache.hadoop.io.WritableUtils -->
  15821. <class name="WritableUtils" extends="java.lang.Object"
  15822. abstract="false"
  15823. static="false" final="true" visibility="public"
  15824. deprecated="not deprecated">
  15825. <constructor name="WritableUtils"
  15826. static="false" final="false" visibility="public"
  15827. deprecated="not deprecated">
  15828. </constructor>
  15829. <method name="readCompressedByteArray" return="byte[]"
  15830. abstract="false" native="false" synchronized="false"
  15831. static="true" final="false" visibility="public"
  15832. deprecated="not deprecated">
  15833. <param name="in" type="java.io.DataInput"/>
  15834. <exception name="IOException" type="java.io.IOException"/>
  15835. </method>
  15836. <method name="skipCompressedByteArray"
  15837. abstract="false" native="false" synchronized="false"
  15838. static="true" final="false" visibility="public"
  15839. deprecated="not deprecated">
  15840. <param name="in" type="java.io.DataInput"/>
  15841. <exception name="IOException" type="java.io.IOException"/>
  15842. </method>
  15843. <method name="writeCompressedByteArray" return="int"
  15844. abstract="false" native="false" synchronized="false"
  15845. static="true" final="false" visibility="public"
  15846. deprecated="not deprecated">
  15847. <param name="out" type="java.io.DataOutput"/>
  15848. <param name="bytes" type="byte[]"/>
  15849. <exception name="IOException" type="java.io.IOException"/>
  15850. </method>
  15851. <method name="readCompressedString" return="java.lang.String"
  15852. abstract="false" native="false" synchronized="false"
  15853. static="true" final="false" visibility="public"
  15854. deprecated="not deprecated">
  15855. <param name="in" type="java.io.DataInput"/>
  15856. <exception name="IOException" type="java.io.IOException"/>
  15857. </method>
  15858. <method name="writeCompressedString" return="int"
  15859. abstract="false" native="false" synchronized="false"
  15860. static="true" final="false" visibility="public"
  15861. deprecated="not deprecated">
  15862. <param name="out" type="java.io.DataOutput"/>
  15863. <param name="s" type="java.lang.String"/>
  15864. <exception name="IOException" type="java.io.IOException"/>
  15865. </method>
  15866. <method name="writeString"
  15867. abstract="false" native="false" synchronized="false"
  15868. static="true" final="false" visibility="public"
  15869. deprecated="not deprecated">
  15870. <param name="out" type="java.io.DataOutput"/>
  15871. <param name="s" type="java.lang.String"/>
  15872. <exception name="IOException" type="java.io.IOException"/>
  15873. </method>
  15874. <method name="readString" return="java.lang.String"
  15875. abstract="false" native="false" synchronized="false"
  15876. static="true" final="false" visibility="public"
  15877. deprecated="not deprecated">
  15878. <param name="in" type="java.io.DataInput"/>
  15879. <exception name="IOException" type="java.io.IOException"/>
  15880. </method>
  15881. <method name="writeStringArray"
  15882. abstract="false" native="false" synchronized="false"
  15883. static="true" final="false" visibility="public"
  15884. deprecated="not deprecated">
  15885. <param name="out" type="java.io.DataOutput"/>
  15886. <param name="s" type="java.lang.String[]"/>
  15887. <exception name="IOException" type="java.io.IOException"/>
  15888. </method>
  15889. <method name="writeCompressedStringArray"
  15890. abstract="false" native="false" synchronized="false"
  15891. static="true" final="false" visibility="public"
  15892. deprecated="not deprecated">
  15893. <param name="out" type="java.io.DataOutput"/>
  15894. <param name="s" type="java.lang.String[]"/>
  15895. <exception name="IOException" type="java.io.IOException"/>
  15896. </method>
  15897. <method name="readStringArray" return="java.lang.String[]"
  15898. abstract="false" native="false" synchronized="false"
  15899. static="true" final="false" visibility="public"
  15900. deprecated="not deprecated">
  15901. <param name="in" type="java.io.DataInput"/>
  15902. <exception name="IOException" type="java.io.IOException"/>
  15903. </method>
  15904. <method name="readCompressedStringArray" return="java.lang.String[]"
  15905. abstract="false" native="false" synchronized="false"
  15906. static="true" final="false" visibility="public"
  15907. deprecated="not deprecated">
  15908. <param name="in" type="java.io.DataInput"/>
  15909. <exception name="IOException" type="java.io.IOException"/>
  15910. </method>
  15911. <method name="displayByteArray"
  15912. abstract="false" native="false" synchronized="false"
  15913. static="true" final="false" visibility="public"
  15914. deprecated="not deprecated">
  15915. <param name="record" type="byte[]"/>
  15916. </method>
  15917. <method name="clone" return="org.apache.hadoop.io.Writable"
  15918. abstract="false" native="false" synchronized="false"
  15919. static="true" final="false" visibility="public"
  15920. deprecated="not deprecated">
  15921. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  15922. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15923. <doc>
  15924. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  15925. @param orig The object to copy
  15926. @return The copied object]]>
  15927. </doc>
  15928. </method>
  15929. <method name="cloneInto"
  15930. abstract="false" native="false" synchronized="false"
  15931. static="true" final="false" visibility="public"
  15932. deprecated="use ReflectionUtils.cloneInto instead.">
  15933. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  15934. <param name="src" type="org.apache.hadoop.io.Writable"/>
  15935. <exception name="IOException" type="java.io.IOException"/>
  15936. <doc>
  15937. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  15938. @param dst the object to copy from
  15939. @param src the object to copy into, which is destroyed
  15940. @throws IOException
  15941. @deprecated use ReflectionUtils.cloneInto instead.]]>
  15942. </doc>
  15943. </method>
  15944. <method name="writeVInt"
  15945. abstract="false" native="false" synchronized="false"
  15946. static="true" final="false" visibility="public"
  15947. deprecated="not deprecated">
  15948. <param name="stream" type="java.io.DataOutput"/>
  15949. <param name="i" type="int"/>
  15950. <exception name="IOException" type="java.io.IOException"/>
  15951. <doc>
  15952. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  15953. For -120 <= i <= 127, only one byte is used with the actual value.
  15954. For other values of i, the first byte value indicates whether the
  15955. integer is positive or negative, and the number of bytes that follow.
  15956. If the first byte value v is between -121 and -124, the following integer
  15957. is positive, with number of bytes that follow are -(v+120).
  15958. If the first byte value v is between -125 and -128, the following integer
  15959. is negative, with number of bytes that follow are -(v+124). Bytes are
  15960. stored in the high-non-zero-byte-first order.
  15961. @param stream Binary output stream
  15962. @param i Integer to be serialized
  15963. @throws java.io.IOException]]>
  15964. </doc>
  15965. </method>
  15966. <method name="writeVLong"
  15967. abstract="false" native="false" synchronized="false"
  15968. static="true" final="false" visibility="public"
  15969. deprecated="not deprecated">
  15970. <param name="stream" type="java.io.DataOutput"/>
  15971. <param name="i" type="long"/>
  15972. <exception name="IOException" type="java.io.IOException"/>
  15973. <doc>
  15974. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  15975. For -112 <= i <= 127, only one byte is used with the actual value.
  15976. For other values of i, the first byte value indicates whether the
  15977. long is positive or negative, and the number of bytes that follow.
  15978. If the first byte value v is between -113 and -120, the following long
  15979. is positive, with number of bytes that follow are -(v+112).
  15980. If the first byte value v is between -121 and -128, the following long
  15981. is negative, with number of bytes that follow are -(v+120). Bytes are
  15982. stored in the high-non-zero-byte-first order.
  15983. @param stream Binary output stream
  15984. @param i Long to be serialized
  15985. @throws java.io.IOException]]>
  15986. </doc>
  15987. </method>
  15988. <method name="readVLong" return="long"
  15989. abstract="false" native="false" synchronized="false"
  15990. static="true" final="false" visibility="public"
  15991. deprecated="not deprecated">
  15992. <param name="stream" type="java.io.DataInput"/>
  15993. <exception name="IOException" type="java.io.IOException"/>
  15994. <doc>
  15995. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  15996. @param stream Binary input stream
  15997. @throws java.io.IOException
  15998. @return deserialized long from stream.]]>
  15999. </doc>
  16000. </method>
  16001. <method name="readVInt" return="int"
  16002. abstract="false" native="false" synchronized="false"
  16003. static="true" final="false" visibility="public"
  16004. deprecated="not deprecated">
  16005. <param name="stream" type="java.io.DataInput"/>
  16006. <exception name="IOException" type="java.io.IOException"/>
  16007. <doc>
  16008. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  16009. @param stream Binary input stream
  16010. @throws java.io.IOException
  16011. @return deserialized integer from stream.]]>
  16012. </doc>
  16013. </method>
  16014. <method name="isNegativeVInt" return="boolean"
  16015. abstract="false" native="false" synchronized="false"
  16016. static="true" final="false" visibility="public"
  16017. deprecated="not deprecated">
  16018. <param name="value" type="byte"/>
  16019. <doc>
  16020. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  16021. @param value the first byte
  16022. @return is the value negative]]>
  16023. </doc>
  16024. </method>
  16025. <method name="decodeVIntSize" return="int"
  16026. abstract="false" native="false" synchronized="false"
  16027. static="true" final="false" visibility="public"
  16028. deprecated="not deprecated">
  16029. <param name="value" type="byte"/>
  16030. <doc>
  16031. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  16032. @param value the first byte of the vint/vlong
  16033. @return the total number of bytes (1 to 9)]]>
  16034. </doc>
  16035. </method>
  16036. <method name="getVIntSize" return="int"
  16037. abstract="false" native="false" synchronized="false"
  16038. static="true" final="false" visibility="public"
  16039. deprecated="not deprecated">
  16040. <param name="i" type="long"/>
  16041. <doc>
  16042. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  16043. @return the encoded length]]>
  16044. </doc>
  16045. </method>
  16046. <method name="readEnum" return="java.lang.Enum"
  16047. abstract="false" native="false" synchronized="false"
  16048. static="true" final="false" visibility="public"
  16049. deprecated="not deprecated">
  16050. <param name="in" type="java.io.DataInput"/>
  16051. <param name="enumType" type="java.lang.Class"/>
  16052. <exception name="IOException" type="java.io.IOException"/>
  16053. <doc>
  16054. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  16055. using String values.
  16056. @param <T> Enum type
  16057. @param in DataInput to read from
  16058. @param enumType Class type of Enum
  16059. @return Enum represented by String read from DataInput
  16060. @throws IOException]]>
  16061. </doc>
  16062. </method>
  16063. <method name="writeEnum"
  16064. abstract="false" native="false" synchronized="false"
  16065. static="true" final="false" visibility="public"
  16066. deprecated="not deprecated">
  16067. <param name="out" type="java.io.DataOutput"/>
  16068. <param name="enumVal" type="java.lang.Enum"/>
  16069. <exception name="IOException" type="java.io.IOException"/>
  16070. <doc>
  16071. <![CDATA[writes String value of enum to DataOutput.
  16072. @param out Dataoutput stream
  16073. @param enumVal enum value
  16074. @throws IOException]]>
  16075. </doc>
  16076. </method>
  16077. <method name="skipFully"
  16078. abstract="false" native="false" synchronized="false"
  16079. static="true" final="false" visibility="public"
  16080. deprecated="not deprecated">
  16081. <param name="in" type="java.io.DataInput"/>
  16082. <param name="len" type="int"/>
  16083. <exception name="IOException" type="java.io.IOException"/>
  16084. <doc>
  16085. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  16086. @param in input stream
  16087. @param len number of bytes to skip
  16088. @throws IOException when skipped less number of bytes]]>
  16089. </doc>
  16090. </method>
  16091. <method name="toByteArray" return="byte[]"
  16092. abstract="false" native="false" synchronized="false"
  16093. static="true" final="false" visibility="public"
  16094. deprecated="not deprecated">
  16095. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  16096. <doc>
  16097. <![CDATA[Convert writables to a byte array]]>
  16098. </doc>
  16099. </method>
  16100. </class>
  16101. <!-- end class org.apache.hadoop.io.WritableUtils -->
  16102. </package>
  16103. <package name="org.apache.hadoop.io.compress">
  16104. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16105. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  16106. abstract="false"
  16107. static="false" final="false" visibility="public"
  16108. deprecated="not deprecated">
  16109. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  16110. static="false" final="false" visibility="public"
  16111. deprecated="not deprecated">
  16112. <doc>
  16113. <![CDATA[Create a {@link BlockCompressorStream}.
  16114. @param out stream
  16115. @param compressor compressor to be used
  16116. @param bufferSize size of buffer
  16117. @param compressionOverhead maximum 'overhead' of the compression
  16118. algorithm with given bufferSize]]>
  16119. </doc>
  16120. </constructor>
  16121. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16122. static="false" final="false" visibility="public"
  16123. deprecated="not deprecated">
  16124. <doc>
  16125. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  16126. compressor.
  16127. Use default of 512 as bufferSize and compressionOverhead of
  16128. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  16129. @param out stream
  16130. @param compressor compressor to be used]]>
  16131. </doc>
  16132. </constructor>
  16133. <method name="write"
  16134. abstract="false" native="false" synchronized="false"
  16135. static="false" final="false" visibility="public"
  16136. deprecated="not deprecated">
  16137. <param name="b" type="byte[]"/>
  16138. <param name="off" type="int"/>
  16139. <param name="len" type="int"/>
  16140. <exception name="IOException" type="java.io.IOException"/>
  16141. <doc>
  16142. <![CDATA[Write the data provided to the compression codec, compressing no more
  16143. than the buffer size less the compression overhead as specified during
  16144. construction for each block.
  16145. Each block contains the uncompressed length for the block, followed by
  16146. one or more length-prefixed blocks of compressed data.]]>
  16147. </doc>
  16148. </method>
  16149. <method name="finish"
  16150. abstract="false" native="false" synchronized="false"
  16151. static="false" final="false" visibility="public"
  16152. deprecated="not deprecated">
  16153. <exception name="IOException" type="java.io.IOException"/>
  16154. </method>
  16155. <method name="compress"
  16156. abstract="false" native="false" synchronized="false"
  16157. static="false" final="false" visibility="protected"
  16158. deprecated="not deprecated">
  16159. <exception name="IOException" type="java.io.IOException"/>
  16160. </method>
  16161. <doc>
  16162. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  16163. with 'block-based' based compression algorithms, as opposed to
  16164. 'stream-based' compression algorithms.
  16165. It should be noted that this wrapper does not guarantee that blocks will
  16166. be sized for the compressor. If the
  16167. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  16168. effect meaningful compression, it is responsible for it.]]>
  16169. </doc>
  16170. </class>
  16171. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16172. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16173. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  16174. abstract="false"
  16175. static="false" final="false" visibility="public"
  16176. deprecated="not deprecated">
  16177. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  16178. static="false" final="false" visibility="public"
  16179. deprecated="not deprecated">
  16180. <exception name="IOException" type="java.io.IOException"/>
  16181. <doc>
  16182. <![CDATA[Create a {@link BlockDecompressorStream}.
  16183. @param in input stream
  16184. @param decompressor decompressor to use
  16185. @param bufferSize size of buffer
  16186. @throws IOException]]>
  16187. </doc>
  16188. </constructor>
  16189. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16190. static="false" final="false" visibility="public"
  16191. deprecated="not deprecated">
  16192. <exception name="IOException" type="java.io.IOException"/>
  16193. <doc>
  16194. <![CDATA[Create a {@link BlockDecompressorStream}.
  16195. @param in input stream
  16196. @param decompressor decompressor to use
  16197. @throws IOException]]>
  16198. </doc>
  16199. </constructor>
  16200. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  16201. static="false" final="false" visibility="protected"
  16202. deprecated="not deprecated">
  16203. <exception name="IOException" type="java.io.IOException"/>
  16204. </constructor>
  16205. <method name="decompress" return="int"
  16206. abstract="false" native="false" synchronized="false"
  16207. static="false" final="false" visibility="protected"
  16208. deprecated="not deprecated">
  16209. <param name="b" type="byte[]"/>
  16210. <param name="off" type="int"/>
  16211. <param name="len" type="int"/>
  16212. <exception name="IOException" type="java.io.IOException"/>
  16213. </method>
  16214. <method name="getCompressedData" return="int"
  16215. abstract="false" native="false" synchronized="false"
  16216. static="false" final="false" visibility="protected"
  16217. deprecated="not deprecated">
  16218. <exception name="IOException" type="java.io.IOException"/>
  16219. </method>
  16220. <method name="resetState"
  16221. abstract="false" native="false" synchronized="false"
  16222. static="false" final="false" visibility="public"
  16223. deprecated="not deprecated">
  16224. <exception name="IOException" type="java.io.IOException"/>
  16225. </method>
  16226. <doc>
  16227. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  16228. with 'block-based' based compression algorithms, as opposed to
  16229. 'stream-based' compression algorithms.]]>
  16230. </doc>
  16231. </class>
  16232. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16233. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  16234. <class name="BZip2Codec" extends="java.lang.Object"
  16235. abstract="false"
  16236. static="false" final="false" visibility="public"
  16237. deprecated="not deprecated">
  16238. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  16239. <constructor name="BZip2Codec"
  16240. static="false" final="false" visibility="public"
  16241. deprecated="not deprecated">
  16242. <doc>
  16243. <![CDATA[Creates a new instance of BZip2Codec]]>
  16244. </doc>
  16245. </constructor>
  16246. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16247. abstract="false" native="false" synchronized="false"
  16248. static="false" final="false" visibility="public"
  16249. deprecated="not deprecated">
  16250. <param name="out" type="java.io.OutputStream"/>
  16251. <exception name="IOException" type="java.io.IOException"/>
  16252. <doc>
  16253. <![CDATA[Creates CompressionOutputStream for BZip2
  16254. @param out
  16255. The output Stream
  16256. @return The BZip2 CompressionOutputStream
  16257. @throws java.io.IOException
  16258. Throws IO exception]]>
  16259. </doc>
  16260. </method>
  16261. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16262. abstract="false" native="false" synchronized="false"
  16263. static="false" final="false" visibility="public"
  16264. deprecated="not deprecated">
  16265. <param name="out" type="java.io.OutputStream"/>
  16266. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16267. <exception name="IOException" type="java.io.IOException"/>
  16268. <doc>
  16269. <![CDATA[Creates a compressor using given OutputStream.
  16270. @return CompressionOutputStream
  16271. @throws java.io.IOException]]>
  16272. </doc>
  16273. </method>
  16274. <method name="getCompressorType" return="java.lang.Class"
  16275. abstract="false" native="false" synchronized="false"
  16276. static="false" final="false" visibility="public"
  16277. deprecated="not deprecated">
  16278. <doc>
  16279. <![CDATA[This functionality is currently not supported.
  16280. @return BZip2DummyCompressor.class]]>
  16281. </doc>
  16282. </method>
  16283. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16284. abstract="false" native="false" synchronized="false"
  16285. static="false" final="false" visibility="public"
  16286. deprecated="not deprecated">
  16287. <doc>
  16288. <![CDATA[This functionality is currently not supported.
  16289. @return Compressor]]>
  16290. </doc>
  16291. </method>
  16292. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16293. abstract="false" native="false" synchronized="false"
  16294. static="false" final="false" visibility="public"
  16295. deprecated="not deprecated">
  16296. <param name="in" type="java.io.InputStream"/>
  16297. <exception name="IOException" type="java.io.IOException"/>
  16298. <doc>
  16299. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  16300. @param in
  16301. The InputStream
  16302. @return Returns CompressionInputStream for BZip2
  16303. @throws java.io.IOException
  16304. Throws IOException]]>
  16305. </doc>
  16306. </method>
  16307. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16308. abstract="false" native="false" synchronized="false"
  16309. static="false" final="false" visibility="public"
  16310. deprecated="not deprecated">
  16311. <param name="in" type="java.io.InputStream"/>
  16312. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16313. <exception name="IOException" type="java.io.IOException"/>
  16314. <doc>
  16315. <![CDATA[This functionality is currently not supported.
  16316. @return CompressionInputStream]]>
  16317. </doc>
  16318. </method>
  16319. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  16320. abstract="false" native="false" synchronized="false"
  16321. static="false" final="false" visibility="public"
  16322. deprecated="not deprecated">
  16323. <param name="seekableIn" type="java.io.InputStream"/>
  16324. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16325. <param name="start" type="long"/>
  16326. <param name="end" type="long"/>
  16327. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  16328. <exception name="IOException" type="java.io.IOException"/>
  16329. <doc>
  16330. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  16331. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  16332. @param seekableIn The InputStream
  16333. @param start The start offset into the compressed stream
  16334. @param end The end offset into the compressed stream
  16335. @param readMode Controls whether progress is reported continuously or
  16336. only at block boundaries.
  16337. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  16338. </doc>
  16339. </method>
  16340. <method name="getDecompressorType" return="java.lang.Class"
  16341. abstract="false" native="false" synchronized="false"
  16342. static="false" final="false" visibility="public"
  16343. deprecated="not deprecated">
  16344. <doc>
  16345. <![CDATA[This functionality is currently not supported.
  16346. @return BZip2DummyDecompressor.class]]>
  16347. </doc>
  16348. </method>
  16349. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16350. abstract="false" native="false" synchronized="false"
  16351. static="false" final="false" visibility="public"
  16352. deprecated="not deprecated">
  16353. <doc>
  16354. <![CDATA[This functionality is currently not supported.
  16355. @return Decompressor]]>
  16356. </doc>
  16357. </method>
  16358. <method name="getDefaultExtension" return="java.lang.String"
  16359. abstract="false" native="false" synchronized="false"
  16360. static="false" final="false" visibility="public"
  16361. deprecated="not deprecated">
  16362. <doc>
  16363. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  16364. @return A String telling the default bzip2 file extension]]>
  16365. </doc>
  16366. </method>
  16367. <doc>
  16368. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  16369. compression and decompression. Currently we dont have an implementation of
  16370. the Compressor and Decompressor interfaces, so those methods of
  16371. CompressionCodec which have a Compressor or Decompressor type argument, throw
  16372. UnsupportedOperationException.]]>
  16373. </doc>
  16374. </class>
  16375. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  16376. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  16377. <class name="CodecPool" extends="java.lang.Object"
  16378. abstract="false"
  16379. static="false" final="false" visibility="public"
  16380. deprecated="not deprecated">
  16381. <constructor name="CodecPool"
  16382. static="false" final="false" visibility="public"
  16383. deprecated="not deprecated">
  16384. </constructor>
  16385. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16386. abstract="false" native="false" synchronized="false"
  16387. static="true" final="false" visibility="public"
  16388. deprecated="not deprecated">
  16389. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16390. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16391. <doc>
  16392. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  16393. pool or a new one.
  16394. @param codec the <code>CompressionCodec</code> for which to get the
  16395. <code>Compressor</code>
  16396. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  16397. @return <code>Compressor</code> for the given
  16398. <code>CompressionCodec</code> from the pool or a new one]]>
  16399. </doc>
  16400. </method>
  16401. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16402. abstract="false" native="false" synchronized="false"
  16403. static="true" final="false" visibility="public"
  16404. deprecated="not deprecated">
  16405. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16406. </method>
  16407. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16408. abstract="false" native="false" synchronized="false"
  16409. static="true" final="false" visibility="public"
  16410. deprecated="not deprecated">
  16411. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16412. <doc>
  16413. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  16414. pool or a new one.
  16415. @param codec the <code>CompressionCodec</code> for which to get the
  16416. <code>Decompressor</code>
  16417. @return <code>Decompressor</code> for the given
  16418. <code>CompressionCodec</code> the pool or a new one]]>
  16419. </doc>
  16420. </method>
  16421. <method name="returnCompressor"
  16422. abstract="false" native="false" synchronized="false"
  16423. static="true" final="false" visibility="public"
  16424. deprecated="not deprecated">
  16425. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16426. <doc>
  16427. <![CDATA[Return the {@link Compressor} to the pool.
  16428. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  16429. </doc>
  16430. </method>
  16431. <method name="returnDecompressor"
  16432. abstract="false" native="false" synchronized="false"
  16433. static="true" final="false" visibility="public"
  16434. deprecated="not deprecated">
  16435. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16436. <doc>
  16437. <![CDATA[Return the {@link Decompressor} to the pool.
  16438. @param decompressor the <code>Decompressor</code> to be returned to the
  16439. pool]]>
  16440. </doc>
  16441. </method>
  16442. <doc>
  16443. <![CDATA[A global compressor/decompressor pool used to save and reuse
  16444. (possibly native) compression/decompression codecs.]]>
  16445. </doc>
  16446. </class>
  16447. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  16448. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  16449. <interface name="CompressionCodec" abstract="true"
  16450. static="false" final="false" visibility="public"
  16451. deprecated="not deprecated">
  16452. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16453. abstract="false" native="false" synchronized="false"
  16454. static="false" final="false" visibility="public"
  16455. deprecated="not deprecated">
  16456. <param name="out" type="java.io.OutputStream"/>
  16457. <exception name="IOException" type="java.io.IOException"/>
  16458. <doc>
  16459. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16460. {@link OutputStream}.
  16461. @param out the location for the final output stream
  16462. @return a stream the user can write uncompressed data to have it compressed
  16463. @throws IOException]]>
  16464. </doc>
  16465. </method>
  16466. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16467. abstract="false" native="false" synchronized="false"
  16468. static="false" final="false" visibility="public"
  16469. deprecated="not deprecated">
  16470. <param name="out" type="java.io.OutputStream"/>
  16471. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16472. <exception name="IOException" type="java.io.IOException"/>
  16473. <doc>
  16474. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16475. {@link OutputStream} with the given {@link Compressor}.
  16476. @param out the location for the final output stream
  16477. @param compressor compressor to use
  16478. @return a stream the user can write uncompressed data to have it compressed
  16479. @throws IOException]]>
  16480. </doc>
  16481. </method>
  16482. <method name="getCompressorType" return="java.lang.Class"
  16483. abstract="false" native="false" synchronized="false"
  16484. static="false" final="false" visibility="public"
  16485. deprecated="not deprecated">
  16486. <doc>
  16487. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  16488. @return the type of compressor needed by this codec.]]>
  16489. </doc>
  16490. </method>
  16491. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16492. abstract="false" native="false" synchronized="false"
  16493. static="false" final="false" visibility="public"
  16494. deprecated="not deprecated">
  16495. <doc>
  16496. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  16497. @return a new compressor for use by this codec]]>
  16498. </doc>
  16499. </method>
  16500. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16501. abstract="false" native="false" synchronized="false"
  16502. static="false" final="false" visibility="public"
  16503. deprecated="not deprecated">
  16504. <param name="in" type="java.io.InputStream"/>
  16505. <exception name="IOException" type="java.io.IOException"/>
  16506. <doc>
  16507. <![CDATA[Create a stream decompressor that will read from the given input stream.
  16508. @param in the stream to read compressed bytes from
  16509. @return a stream to read uncompressed bytes from
  16510. @throws IOException]]>
  16511. </doc>
  16512. </method>
  16513. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16514. abstract="false" native="false" synchronized="false"
  16515. static="false" final="false" visibility="public"
  16516. deprecated="not deprecated">
  16517. <param name="in" type="java.io.InputStream"/>
  16518. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16519. <exception name="IOException" type="java.io.IOException"/>
  16520. <doc>
  16521. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  16522. {@link InputStream} with the given {@link Decompressor}.
  16523. @param in the stream to read compressed bytes from
  16524. @param decompressor decompressor to use
  16525. @return a stream to read uncompressed bytes from
  16526. @throws IOException]]>
  16527. </doc>
  16528. </method>
  16529. <method name="getDecompressorType" return="java.lang.Class"
  16530. abstract="false" native="false" synchronized="false"
  16531. static="false" final="false" visibility="public"
  16532. deprecated="not deprecated">
  16533. <doc>
  16534. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  16535. @return the type of decompressor needed by this codec.]]>
  16536. </doc>
  16537. </method>
  16538. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16539. abstract="false" native="false" synchronized="false"
  16540. static="false" final="false" visibility="public"
  16541. deprecated="not deprecated">
  16542. <doc>
  16543. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  16544. @return a new decompressor for use by this codec]]>
  16545. </doc>
  16546. </method>
  16547. <method name="getDefaultExtension" return="java.lang.String"
  16548. abstract="false" native="false" synchronized="false"
  16549. static="false" final="false" visibility="public"
  16550. deprecated="not deprecated">
  16551. <doc>
  16552. <![CDATA[Get the default filename extension for this kind of compression.
  16553. @return the extension including the '.']]>
  16554. </doc>
  16555. </method>
  16556. <doc>
  16557. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  16558. </doc>
  16559. </interface>
  16560. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  16561. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16562. <class name="CompressionCodecFactory" extends="java.lang.Object"
  16563. abstract="false"
  16564. static="false" final="false" visibility="public"
  16565. deprecated="not deprecated">
  16566. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  16567. static="false" final="false" visibility="public"
  16568. deprecated="not deprecated">
  16569. <doc>
  16570. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  16571. and register them. Defaults to gzip and zip.]]>
  16572. </doc>
  16573. </constructor>
  16574. <method name="toString" return="java.lang.String"
  16575. abstract="false" native="false" synchronized="false"
  16576. static="false" final="false" visibility="public"
  16577. deprecated="not deprecated">
  16578. <doc>
  16579. <![CDATA[Print the extension map out as a string.]]>
  16580. </doc>
  16581. </method>
  16582. <method name="getCodecClasses" return="java.util.List"
  16583. abstract="false" native="false" synchronized="false"
  16584. static="true" final="false" visibility="public"
  16585. deprecated="not deprecated">
  16586. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16587. <doc>
  16588. <![CDATA[Get the list of codecs listed in the configuration
  16589. @param conf the configuration to look in
  16590. @return a list of the Configuration classes or null if the attribute
  16591. was not set]]>
  16592. </doc>
  16593. </method>
  16594. <method name="setCodecClasses"
  16595. abstract="false" native="false" synchronized="false"
  16596. static="true" final="false" visibility="public"
  16597. deprecated="not deprecated">
  16598. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16599. <param name="classes" type="java.util.List"/>
  16600. <doc>
  16601. <![CDATA[Sets a list of codec classes in the configuration.
  16602. @param conf the configuration to modify
  16603. @param classes the list of classes to set]]>
  16604. </doc>
  16605. </method>
  16606. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16607. abstract="false" native="false" synchronized="false"
  16608. static="false" final="false" visibility="public"
  16609. deprecated="not deprecated">
  16610. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16611. <doc>
  16612. <![CDATA[Find the relevant compression codec for the given file based on its
  16613. filename suffix.
  16614. @param file the filename to check
  16615. @return the codec object]]>
  16616. </doc>
  16617. </method>
  16618. <method name="removeSuffix" return="java.lang.String"
  16619. abstract="false" native="false" synchronized="false"
  16620. static="true" final="false" visibility="public"
  16621. deprecated="not deprecated">
  16622. <param name="filename" type="java.lang.String"/>
  16623. <param name="suffix" type="java.lang.String"/>
  16624. <doc>
  16625. <![CDATA[Removes a suffix from a filename, if it has it.
  16626. @param filename the filename to strip
  16627. @param suffix the suffix to remove
  16628. @return the shortened filename]]>
  16629. </doc>
  16630. </method>
  16631. <method name="main"
  16632. abstract="false" native="false" synchronized="false"
  16633. static="true" final="false" visibility="public"
  16634. deprecated="not deprecated">
  16635. <param name="args" type="java.lang.String[]"/>
  16636. <exception name="Exception" type="java.lang.Exception"/>
  16637. <doc>
  16638. <![CDATA[A little test program.
  16639. @param args]]>
  16640. </doc>
  16641. </method>
  16642. <field name="LOG" type="org.apache.commons.logging.Log"
  16643. transient="false" volatile="false"
  16644. static="true" final="true" visibility="public"
  16645. deprecated="not deprecated">
  16646. </field>
  16647. <doc>
  16648. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  16649. </doc>
  16650. </class>
  16651. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16652. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  16653. <class name="CompressionInputStream" extends="java.io.InputStream"
  16654. abstract="true"
  16655. static="false" final="false" visibility="public"
  16656. deprecated="not deprecated">
  16657. <implements name="org.apache.hadoop.fs.Seekable"/>
  16658. <constructor name="CompressionInputStream" type="java.io.InputStream"
  16659. static="false" final="false" visibility="protected"
  16660. deprecated="not deprecated">
  16661. <exception name="IOException" type="java.io.IOException"/>
  16662. <doc>
  16663. <![CDATA[Create a compression input stream that reads
  16664. the decompressed bytes from the given stream.
  16665. @param in The input stream to be compressed.
  16666. @throws IOException]]>
  16667. </doc>
  16668. </constructor>
  16669. <method name="close"
  16670. abstract="false" native="false" synchronized="false"
  16671. static="false" final="false" visibility="public"
  16672. deprecated="not deprecated">
  16673. <exception name="IOException" type="java.io.IOException"/>
  16674. </method>
  16675. <method name="read" return="int"
  16676. abstract="true" native="false" synchronized="false"
  16677. static="false" final="false" visibility="public"
  16678. deprecated="not deprecated">
  16679. <param name="b" type="byte[]"/>
  16680. <param name="off" type="int"/>
  16681. <param name="len" type="int"/>
  16682. <exception name="IOException" type="java.io.IOException"/>
  16683. <doc>
  16684. <![CDATA[Read bytes from the stream.
  16685. Made abstract to prevent leakage to underlying stream.]]>
  16686. </doc>
  16687. </method>
  16688. <method name="resetState"
  16689. abstract="true" native="false" synchronized="false"
  16690. static="false" final="false" visibility="public"
  16691. deprecated="not deprecated">
  16692. <exception name="IOException" type="java.io.IOException"/>
  16693. <doc>
  16694. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  16695. as the underlying stream may have been repositioned.]]>
  16696. </doc>
  16697. </method>
  16698. <method name="getPos" return="long"
  16699. abstract="false" native="false" synchronized="false"
  16700. static="false" final="false" visibility="public"
  16701. deprecated="not deprecated">
  16702. <exception name="IOException" type="java.io.IOException"/>
  16703. <doc>
  16704. <![CDATA[This method returns the current position in the stream.
  16705. @return Current position in stream as a long]]>
  16706. </doc>
  16707. </method>
  16708. <method name="seek"
  16709. abstract="false" native="false" synchronized="false"
  16710. static="false" final="false" visibility="public"
  16711. deprecated="not deprecated">
  16712. <param name="pos" type="long"/>
  16713. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  16714. <doc>
  16715. <![CDATA[This method is current not supported.
  16716. @throws UnsupportedOperationException]]>
  16717. </doc>
  16718. </method>
  16719. <method name="seekToNewSource" return="boolean"
  16720. abstract="false" native="false" synchronized="false"
  16721. static="false" final="false" visibility="public"
  16722. deprecated="not deprecated">
  16723. <param name="targetPos" type="long"/>
  16724. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  16725. <doc>
  16726. <![CDATA[This method is current not supported.
  16727. @throws UnsupportedOperationException]]>
  16728. </doc>
  16729. </method>
  16730. <field name="in" type="java.io.InputStream"
  16731. transient="false" volatile="false"
  16732. static="false" final="true" visibility="protected"
  16733. deprecated="not deprecated">
  16734. <doc>
  16735. <![CDATA[The input stream to be compressed.]]>
  16736. </doc>
  16737. </field>
  16738. <field name="maxAvailableData" type="long"
  16739. transient="false" volatile="false"
  16740. static="false" final="false" visibility="protected"
  16741. deprecated="not deprecated">
  16742. </field>
  16743. <doc>
  16744. <![CDATA[A compression input stream.
  16745. <p>Implementations are assumed to be buffered. This permits clients to
  16746. reposition the underlying input stream then call {@link #resetState()},
  16747. without having to also synchronize client buffers.]]>
  16748. </doc>
  16749. </class>
  16750. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  16751. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16752. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  16753. abstract="true"
  16754. static="false" final="false" visibility="public"
  16755. deprecated="not deprecated">
  16756. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  16757. static="false" final="false" visibility="protected"
  16758. deprecated="not deprecated">
  16759. <doc>
  16760. <![CDATA[Create a compression output stream that writes
  16761. the compressed bytes to the given stream.
  16762. @param out]]>
  16763. </doc>
  16764. </constructor>
  16765. <method name="close"
  16766. abstract="false" native="false" synchronized="false"
  16767. static="false" final="false" visibility="public"
  16768. deprecated="not deprecated">
  16769. <exception name="IOException" type="java.io.IOException"/>
  16770. </method>
  16771. <method name="flush"
  16772. abstract="false" native="false" synchronized="false"
  16773. static="false" final="false" visibility="public"
  16774. deprecated="not deprecated">
  16775. <exception name="IOException" type="java.io.IOException"/>
  16776. </method>
  16777. <method name="write"
  16778. abstract="true" native="false" synchronized="false"
  16779. static="false" final="false" visibility="public"
  16780. deprecated="not deprecated">
  16781. <param name="b" type="byte[]"/>
  16782. <param name="off" type="int"/>
  16783. <param name="len" type="int"/>
  16784. <exception name="IOException" type="java.io.IOException"/>
  16785. <doc>
  16786. <![CDATA[Write compressed bytes to the stream.
  16787. Made abstract to prevent leakage to underlying stream.]]>
  16788. </doc>
  16789. </method>
  16790. <method name="finish"
  16791. abstract="true" native="false" synchronized="false"
  16792. static="false" final="false" visibility="public"
  16793. deprecated="not deprecated">
  16794. <exception name="IOException" type="java.io.IOException"/>
  16795. <doc>
  16796. <![CDATA[Finishes writing compressed data to the output stream
  16797. without closing the underlying stream.]]>
  16798. </doc>
  16799. </method>
  16800. <method name="resetState"
  16801. abstract="true" native="false" synchronized="false"
  16802. static="false" final="false" visibility="public"
  16803. deprecated="not deprecated">
  16804. <exception name="IOException" type="java.io.IOException"/>
  16805. <doc>
  16806. <![CDATA[Reset the compression to the initial state.
  16807. Does not reset the underlying stream.]]>
  16808. </doc>
  16809. </method>
  16810. <field name="out" type="java.io.OutputStream"
  16811. transient="false" volatile="false"
  16812. static="false" final="true" visibility="protected"
  16813. deprecated="not deprecated">
  16814. <doc>
  16815. <![CDATA[The output stream to be compressed.]]>
  16816. </doc>
  16817. </field>
  16818. <doc>
  16819. <![CDATA[A compression output stream.]]>
  16820. </doc>
  16821. </class>
  16822. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16823. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  16824. <interface name="Compressor" abstract="true"
  16825. static="false" final="false" visibility="public"
  16826. deprecated="not deprecated">
  16827. <method name="setInput"
  16828. abstract="false" native="false" synchronized="false"
  16829. static="false" final="false" visibility="public"
  16830. deprecated="not deprecated">
  16831. <param name="b" type="byte[]"/>
  16832. <param name="off" type="int"/>
  16833. <param name="len" type="int"/>
  16834. <doc>
  16835. <![CDATA[Sets input data for compression.
  16836. This should be called whenever #needsInput() returns
  16837. <code>true</code> indicating that more input data is required.
  16838. @param b Input data
  16839. @param off Start offset
  16840. @param len Length]]>
  16841. </doc>
  16842. </method>
  16843. <method name="needsInput" return="boolean"
  16844. abstract="false" native="false" synchronized="false"
  16845. static="false" final="false" visibility="public"
  16846. deprecated="not deprecated">
  16847. <doc>
  16848. <![CDATA[Returns true if the input data buffer is empty and
  16849. #setInput() should be called to provide more input.
  16850. @return <code>true</code> if the input data buffer is empty and
  16851. #setInput() should be called in order to provide more input.]]>
  16852. </doc>
  16853. </method>
  16854. <method name="setDictionary"
  16855. abstract="false" native="false" synchronized="false"
  16856. static="false" final="false" visibility="public"
  16857. deprecated="not deprecated">
  16858. <param name="b" type="byte[]"/>
  16859. <param name="off" type="int"/>
  16860. <param name="len" type="int"/>
  16861. <doc>
  16862. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16863. is used when the history buffer can be predetermined.
  16864. @param b Dictionary data bytes
  16865. @param off Start offset
  16866. @param len Length]]>
  16867. </doc>
  16868. </method>
  16869. <method name="getBytesRead" return="long"
  16870. abstract="false" native="false" synchronized="false"
  16871. static="false" final="false" visibility="public"
  16872. deprecated="not deprecated">
  16873. <doc>
  16874. <![CDATA[Return number of uncompressed bytes input so far.]]>
  16875. </doc>
  16876. </method>
  16877. <method name="getBytesWritten" return="long"
  16878. abstract="false" native="false" synchronized="false"
  16879. static="false" final="false" visibility="public"
  16880. deprecated="not deprecated">
  16881. <doc>
  16882. <![CDATA[Return number of compressed bytes output so far.]]>
  16883. </doc>
  16884. </method>
  16885. <method name="finish"
  16886. abstract="false" native="false" synchronized="false"
  16887. static="false" final="false" visibility="public"
  16888. deprecated="not deprecated">
  16889. <doc>
  16890. <![CDATA[When called, indicates that compression should end
  16891. with the current contents of the input buffer.]]>
  16892. </doc>
  16893. </method>
  16894. <method name="finished" return="boolean"
  16895. abstract="false" native="false" synchronized="false"
  16896. static="false" final="false" visibility="public"
  16897. deprecated="not deprecated">
  16898. <doc>
  16899. <![CDATA[Returns true if the end of the compressed
  16900. data output stream has been reached.
  16901. @return <code>true</code> if the end of the compressed
  16902. data output stream has been reached.]]>
  16903. </doc>
  16904. </method>
  16905. <method name="compress" return="int"
  16906. abstract="false" native="false" synchronized="false"
  16907. static="false" final="false" visibility="public"
  16908. deprecated="not deprecated">
  16909. <param name="b" type="byte[]"/>
  16910. <param name="off" type="int"/>
  16911. <param name="len" type="int"/>
  16912. <exception name="IOException" type="java.io.IOException"/>
  16913. <doc>
  16914. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  16915. of bytes of compressed data. A return value of 0 indicates that
  16916. needsInput() should be called in order to determine if more input
  16917. data is required.
  16918. @param b Buffer for the compressed data
  16919. @param off Start offset of the data
  16920. @param len Size of the buffer
  16921. @return The actual number of bytes of compressed data.]]>
  16922. </doc>
  16923. </method>
  16924. <method name="reset"
  16925. abstract="false" native="false" synchronized="false"
  16926. static="false" final="false" visibility="public"
  16927. deprecated="not deprecated">
  16928. <doc>
  16929. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  16930. </doc>
  16931. </method>
  16932. <method name="end"
  16933. abstract="false" native="false" synchronized="false"
  16934. static="false" final="false" visibility="public"
  16935. deprecated="not deprecated">
  16936. <doc>
  16937. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  16938. </doc>
  16939. </method>
  16940. <method name="reinit"
  16941. abstract="false" native="false" synchronized="false"
  16942. static="false" final="false" visibility="public"
  16943. deprecated="not deprecated">
  16944. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16945. <doc>
  16946. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  16947. the given Configuration
  16948. @param conf Configuration from which new setting are fetched]]>
  16949. </doc>
  16950. </method>
  16951. <doc>
  16952. <![CDATA[Specification of a stream-based 'compressor' which can be
  16953. plugged into a {@link CompressionOutputStream} to compress data.
  16954. This is modelled after {@link java.util.zip.Deflater}]]>
  16955. </doc>
  16956. </interface>
  16957. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  16958. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  16959. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  16960. abstract="false"
  16961. static="false" final="false" visibility="public"
  16962. deprecated="not deprecated">
  16963. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  16964. static="false" final="false" visibility="public"
  16965. deprecated="not deprecated">
  16966. </constructor>
  16967. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16968. static="false" final="false" visibility="public"
  16969. deprecated="not deprecated">
  16970. </constructor>
  16971. <constructor name="CompressorStream" type="java.io.OutputStream"
  16972. static="false" final="false" visibility="protected"
  16973. deprecated="not deprecated">
  16974. <doc>
  16975. <![CDATA[Allow derived classes to directly set the underlying stream.
  16976. @param out Underlying output stream.]]>
  16977. </doc>
  16978. </constructor>
  16979. <method name="write"
  16980. abstract="false" native="false" synchronized="false"
  16981. static="false" final="false" visibility="public"
  16982. deprecated="not deprecated">
  16983. <param name="b" type="byte[]"/>
  16984. <param name="off" type="int"/>
  16985. <param name="len" type="int"/>
  16986. <exception name="IOException" type="java.io.IOException"/>
  16987. </method>
  16988. <method name="compress"
  16989. abstract="false" native="false" synchronized="false"
  16990. static="false" final="false" visibility="protected"
  16991. deprecated="not deprecated">
  16992. <exception name="IOException" type="java.io.IOException"/>
  16993. </method>
  16994. <method name="finish"
  16995. abstract="false" native="false" synchronized="false"
  16996. static="false" final="false" visibility="public"
  16997. deprecated="not deprecated">
  16998. <exception name="IOException" type="java.io.IOException"/>
  16999. </method>
  17000. <method name="resetState"
  17001. abstract="false" native="false" synchronized="false"
  17002. static="false" final="false" visibility="public"
  17003. deprecated="not deprecated">
  17004. <exception name="IOException" type="java.io.IOException"/>
  17005. </method>
  17006. <method name="close"
  17007. abstract="false" native="false" synchronized="false"
  17008. static="false" final="false" visibility="public"
  17009. deprecated="not deprecated">
  17010. <exception name="IOException" type="java.io.IOException"/>
  17011. </method>
  17012. <method name="write"
  17013. abstract="false" native="false" synchronized="false"
  17014. static="false" final="false" visibility="public"
  17015. deprecated="not deprecated">
  17016. <param name="b" type="int"/>
  17017. <exception name="IOException" type="java.io.IOException"/>
  17018. </method>
  17019. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  17020. transient="false" volatile="false"
  17021. static="false" final="false" visibility="protected"
  17022. deprecated="not deprecated">
  17023. </field>
  17024. <field name="buffer" type="byte[]"
  17025. transient="false" volatile="false"
  17026. static="false" final="false" visibility="protected"
  17027. deprecated="not deprecated">
  17028. </field>
  17029. <field name="closed" type="boolean"
  17030. transient="false" volatile="false"
  17031. static="false" final="false" visibility="protected"
  17032. deprecated="not deprecated">
  17033. </field>
  17034. </class>
  17035. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  17036. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  17037. <interface name="Decompressor" abstract="true"
  17038. static="false" final="false" visibility="public"
  17039. deprecated="not deprecated">
  17040. <method name="setInput"
  17041. abstract="false" native="false" synchronized="false"
  17042. static="false" final="false" visibility="public"
  17043. deprecated="not deprecated">
  17044. <param name="b" type="byte[]"/>
  17045. <param name="off" type="int"/>
  17046. <param name="len" type="int"/>
  17047. <doc>
  17048. <![CDATA[Sets input data for decompression.
  17049. This should be called if and only if {@link #needsInput()} returns
  17050. <code>true</code> indicating that more input data is required.
  17051. (Both native and non-native versions of various Decompressors require
  17052. that the data passed in via <code>b[]</code> remain unmodified until
  17053. the caller is explicitly notified--via {@link #needsInput()}--that the
  17054. buffer may be safely modified. With this requirement, an extra
  17055. buffer-copy can be avoided.)
  17056. @param b Input data
  17057. @param off Start offset
  17058. @param len Length]]>
  17059. </doc>
  17060. </method>
  17061. <method name="needsInput" return="boolean"
  17062. abstract="false" native="false" synchronized="false"
  17063. static="false" final="false" visibility="public"
  17064. deprecated="not deprecated">
  17065. <doc>
  17066. <![CDATA[Returns true if the input data buffer is empty and
  17067. {@link #setInput(byte[], int, int)} should be called to
  17068. provide more input.
  17069. @return <code>true</code> if the input data buffer is empty and
  17070. {@link #setInput(byte[], int, int)} should be called in
  17071. order to provide more input.]]>
  17072. </doc>
  17073. </method>
  17074. <method name="setDictionary"
  17075. abstract="false" native="false" synchronized="false"
  17076. static="false" final="false" visibility="public"
  17077. deprecated="not deprecated">
  17078. <param name="b" type="byte[]"/>
  17079. <param name="off" type="int"/>
  17080. <param name="len" type="int"/>
  17081. <doc>
  17082. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  17083. is used when the history buffer can be predetermined.
  17084. @param b Dictionary data bytes
  17085. @param off Start offset
  17086. @param len Length]]>
  17087. </doc>
  17088. </method>
  17089. <method name="needsDictionary" return="boolean"
  17090. abstract="false" native="false" synchronized="false"
  17091. static="false" final="false" visibility="public"
  17092. deprecated="not deprecated">
  17093. <doc>
  17094. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  17095. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  17096. </doc>
  17097. </method>
  17098. <method name="finished" return="boolean"
  17099. abstract="false" native="false" synchronized="false"
  17100. static="false" final="false" visibility="public"
  17101. deprecated="not deprecated">
  17102. <doc>
  17103. <![CDATA[Returns true if the end of the decompressed
  17104. data output stream has been reached.
  17105. @return <code>true</code> if the end of the decompressed
  17106. data output stream has been reached.]]>
  17107. </doc>
  17108. </method>
  17109. <method name="decompress" return="int"
  17110. abstract="false" native="false" synchronized="false"
  17111. static="false" final="false" visibility="public"
  17112. deprecated="not deprecated">
  17113. <param name="b" type="byte[]"/>
  17114. <param name="off" type="int"/>
  17115. <param name="len" type="int"/>
  17116. <exception name="IOException" type="java.io.IOException"/>
  17117. <doc>
  17118. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  17119. of bytes of uncompressed data. A return value of 0 indicates that
  17120. {@link #needsInput()} should be called in order to determine if more
  17121. input data is required.
  17122. @param b Buffer for the compressed data
  17123. @param off Start offset of the data
  17124. @param len Size of the buffer
  17125. @return The actual number of bytes of compressed data.
  17126. @throws IOException]]>
  17127. </doc>
  17128. </method>
  17129. <method name="getRemaining" return="int"
  17130. abstract="false" native="false" synchronized="false"
  17131. static="false" final="false" visibility="public"
  17132. deprecated="not deprecated">
  17133. <doc>
  17134. <![CDATA[Returns the number of bytes remaining in the compressed-data buffer;
  17135. typically called after the decompressor has finished decompressing
  17136. the current gzip stream (a.k.a. "member").]]>
  17137. </doc>
  17138. </method>
  17139. <method name="reset"
  17140. abstract="false" native="false" synchronized="false"
  17141. static="false" final="false" visibility="public"
  17142. deprecated="not deprecated">
  17143. <doc>
  17144. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  17145. input data can be processed.]]>
  17146. </doc>
  17147. </method>
  17148. <method name="end"
  17149. abstract="false" native="false" synchronized="false"
  17150. static="false" final="false" visibility="public"
  17151. deprecated="not deprecated">
  17152. <doc>
  17153. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  17154. </doc>
  17155. </method>
  17156. <doc>
  17157. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  17158. plugged into a {@link CompressionInputStream} to compress data.
  17159. This is modelled after {@link java.util.zip.Inflater}]]>
  17160. </doc>
  17161. </interface>
  17162. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  17163. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  17164. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17165. abstract="false"
  17166. static="false" final="false" visibility="public"
  17167. deprecated="not deprecated">
  17168. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  17169. static="false" final="false" visibility="public"
  17170. deprecated="not deprecated">
  17171. <exception name="IOException" type="java.io.IOException"/>
  17172. </constructor>
  17173. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  17174. static="false" final="false" visibility="public"
  17175. deprecated="not deprecated">
  17176. <exception name="IOException" type="java.io.IOException"/>
  17177. </constructor>
  17178. <constructor name="DecompressorStream" type="java.io.InputStream"
  17179. static="false" final="false" visibility="protected"
  17180. deprecated="not deprecated">
  17181. <exception name="IOException" type="java.io.IOException"/>
  17182. <doc>
  17183. <![CDATA[Allow derived classes to directly set the underlying stream.
  17184. @param in Underlying input stream.
  17185. @throws IOException]]>
  17186. </doc>
  17187. </constructor>
  17188. <method name="read" return="int"
  17189. abstract="false" native="false" synchronized="false"
  17190. static="false" final="false" visibility="public"
  17191. deprecated="not deprecated">
  17192. <exception name="IOException" type="java.io.IOException"/>
  17193. </method>
  17194. <method name="read" return="int"
  17195. abstract="false" native="false" synchronized="false"
  17196. static="false" final="false" visibility="public"
  17197. deprecated="not deprecated">
  17198. <param name="b" type="byte[]"/>
  17199. <param name="off" type="int"/>
  17200. <param name="len" type="int"/>
  17201. <exception name="IOException" type="java.io.IOException"/>
  17202. </method>
  17203. <method name="decompress" return="int"
  17204. abstract="false" native="false" synchronized="false"
  17205. static="false" final="false" visibility="protected"
  17206. deprecated="not deprecated">
  17207. <param name="b" type="byte[]"/>
  17208. <param name="off" type="int"/>
  17209. <param name="len" type="int"/>
  17210. <exception name="IOException" type="java.io.IOException"/>
  17211. </method>
  17212. <method name="getCompressedData" return="int"
  17213. abstract="false" native="false" synchronized="false"
  17214. static="false" final="false" visibility="protected"
  17215. deprecated="not deprecated">
  17216. <exception name="IOException" type="java.io.IOException"/>
  17217. </method>
  17218. <method name="checkStream"
  17219. abstract="false" native="false" synchronized="false"
  17220. static="false" final="false" visibility="protected"
  17221. deprecated="not deprecated">
  17222. <exception name="IOException" type="java.io.IOException"/>
  17223. </method>
  17224. <method name="resetState"
  17225. abstract="false" native="false" synchronized="false"
  17226. static="false" final="false" visibility="public"
  17227. deprecated="not deprecated">
  17228. <exception name="IOException" type="java.io.IOException"/>
  17229. </method>
  17230. <method name="skip" return="long"
  17231. abstract="false" native="false" synchronized="false"
  17232. static="false" final="false" visibility="public"
  17233. deprecated="not deprecated">
  17234. <param name="n" type="long"/>
  17235. <exception name="IOException" type="java.io.IOException"/>
  17236. </method>
  17237. <method name="available" return="int"
  17238. abstract="false" native="false" synchronized="false"
  17239. static="false" final="false" visibility="public"
  17240. deprecated="not deprecated">
  17241. <exception name="IOException" type="java.io.IOException"/>
  17242. </method>
  17243. <method name="close"
  17244. abstract="false" native="false" synchronized="false"
  17245. static="false" final="false" visibility="public"
  17246. deprecated="not deprecated">
  17247. <exception name="IOException" type="java.io.IOException"/>
  17248. </method>
  17249. <method name="markSupported" return="boolean"
  17250. abstract="false" native="false" synchronized="false"
  17251. static="false" final="false" visibility="public"
  17252. deprecated="not deprecated">
  17253. </method>
  17254. <method name="mark"
  17255. abstract="false" native="false" synchronized="true"
  17256. static="false" final="false" visibility="public"
  17257. deprecated="not deprecated">
  17258. <param name="readlimit" type="int"/>
  17259. </method>
  17260. <method name="reset"
  17261. abstract="false" native="false" synchronized="true"
  17262. static="false" final="false" visibility="public"
  17263. deprecated="not deprecated">
  17264. <exception name="IOException" type="java.io.IOException"/>
  17265. </method>
  17266. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  17267. transient="false" volatile="false"
  17268. static="false" final="false" visibility="protected"
  17269. deprecated="not deprecated">
  17270. </field>
  17271. <field name="buffer" type="byte[]"
  17272. transient="false" volatile="false"
  17273. static="false" final="false" visibility="protected"
  17274. deprecated="not deprecated">
  17275. </field>
  17276. <field name="eof" type="boolean"
  17277. transient="false" volatile="false"
  17278. static="false" final="false" visibility="protected"
  17279. deprecated="not deprecated">
  17280. </field>
  17281. <field name="closed" type="boolean"
  17282. transient="false" volatile="false"
  17283. static="false" final="false" visibility="protected"
  17284. deprecated="not deprecated">
  17285. </field>
  17286. </class>
  17287. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  17288. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  17289. <class name="DefaultCodec" extends="java.lang.Object"
  17290. abstract="false"
  17291. static="false" final="false" visibility="public"
  17292. deprecated="not deprecated">
  17293. <implements name="org.apache.hadoop.conf.Configurable"/>
  17294. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17295. <constructor name="DefaultCodec"
  17296. static="false" final="false" visibility="public"
  17297. deprecated="not deprecated">
  17298. </constructor>
  17299. <method name="setConf"
  17300. abstract="false" native="false" synchronized="false"
  17301. static="false" final="false" visibility="public"
  17302. deprecated="not deprecated">
  17303. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17304. </method>
  17305. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17306. abstract="false" native="false" synchronized="false"
  17307. static="false" final="false" visibility="public"
  17308. deprecated="not deprecated">
  17309. </method>
  17310. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17311. abstract="false" native="false" synchronized="false"
  17312. static="false" final="false" visibility="public"
  17313. deprecated="not deprecated">
  17314. <param name="out" type="java.io.OutputStream"/>
  17315. <exception name="IOException" type="java.io.IOException"/>
  17316. </method>
  17317. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17318. abstract="false" native="false" synchronized="false"
  17319. static="false" final="false" visibility="public"
  17320. deprecated="not deprecated">
  17321. <param name="out" type="java.io.OutputStream"/>
  17322. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17323. <exception name="IOException" type="java.io.IOException"/>
  17324. </method>
  17325. <method name="getCompressorType" return="java.lang.Class"
  17326. abstract="false" native="false" synchronized="false"
  17327. static="false" final="false" visibility="public"
  17328. deprecated="not deprecated">
  17329. </method>
  17330. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17331. abstract="false" native="false" synchronized="false"
  17332. static="false" final="false" visibility="public"
  17333. deprecated="not deprecated">
  17334. </method>
  17335. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17336. abstract="false" native="false" synchronized="false"
  17337. static="false" final="false" visibility="public"
  17338. deprecated="not deprecated">
  17339. <param name="in" type="java.io.InputStream"/>
  17340. <exception name="IOException" type="java.io.IOException"/>
  17341. </method>
  17342. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17343. abstract="false" native="false" synchronized="false"
  17344. static="false" final="false" visibility="public"
  17345. deprecated="not deprecated">
  17346. <param name="in" type="java.io.InputStream"/>
  17347. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17348. <exception name="IOException" type="java.io.IOException"/>
  17349. </method>
  17350. <method name="getDecompressorType" return="java.lang.Class"
  17351. abstract="false" native="false" synchronized="false"
  17352. static="false" final="false" visibility="public"
  17353. deprecated="not deprecated">
  17354. </method>
  17355. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17356. abstract="false" native="false" synchronized="false"
  17357. static="false" final="false" visibility="public"
  17358. deprecated="not deprecated">
  17359. </method>
  17360. <method name="getDefaultExtension" return="java.lang.String"
  17361. abstract="false" native="false" synchronized="false"
  17362. static="false" final="false" visibility="public"
  17363. deprecated="not deprecated">
  17364. </method>
  17365. </class>
  17366. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  17367. <!-- start interface org.apache.hadoop.io.compress.DoNotPool -->
  17368. <interface name="DoNotPool" abstract="true"
  17369. static="false" final="false" visibility="public"
  17370. deprecated="not deprecated">
  17371. <implements name="java.lang.annotation.Annotation"/>
  17372. <doc>
  17373. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  17374. type as not to be pooled.]]>
  17375. </doc>
  17376. </interface>
  17377. <!-- end interface org.apache.hadoop.io.compress.DoNotPool -->
  17378. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  17379. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  17380. abstract="false"
  17381. static="false" final="false" visibility="public"
  17382. deprecated="not deprecated">
  17383. <constructor name="GzipCodec"
  17384. static="false" final="false" visibility="public"
  17385. deprecated="not deprecated">
  17386. </constructor>
  17387. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17388. abstract="false" native="false" synchronized="false"
  17389. static="false" final="false" visibility="public"
  17390. deprecated="not deprecated">
  17391. <param name="out" type="java.io.OutputStream"/>
  17392. <exception name="IOException" type="java.io.IOException"/>
  17393. </method>
  17394. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17395. abstract="false" native="false" synchronized="false"
  17396. static="false" final="false" visibility="public"
  17397. deprecated="not deprecated">
  17398. <param name="out" type="java.io.OutputStream"/>
  17399. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17400. <exception name="IOException" type="java.io.IOException"/>
  17401. </method>
  17402. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17403. abstract="false" native="false" synchronized="false"
  17404. static="false" final="false" visibility="public"
  17405. deprecated="not deprecated">
  17406. </method>
  17407. <method name="getCompressorType" return="java.lang.Class"
  17408. abstract="false" native="false" synchronized="false"
  17409. static="false" final="false" visibility="public"
  17410. deprecated="not deprecated">
  17411. </method>
  17412. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17413. abstract="false" native="false" synchronized="false"
  17414. static="false" final="false" visibility="public"
  17415. deprecated="not deprecated">
  17416. <param name="in" type="java.io.InputStream"/>
  17417. <exception name="IOException" type="java.io.IOException"/>
  17418. </method>
  17419. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17420. abstract="false" native="false" synchronized="false"
  17421. static="false" final="false" visibility="public"
  17422. deprecated="not deprecated">
  17423. <param name="in" type="java.io.InputStream"/>
  17424. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17425. <exception name="IOException" type="java.io.IOException"/>
  17426. </method>
  17427. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17428. abstract="false" native="false" synchronized="false"
  17429. static="false" final="false" visibility="public"
  17430. deprecated="not deprecated">
  17431. </method>
  17432. <method name="getDecompressorType" return="java.lang.Class"
  17433. abstract="false" native="false" synchronized="false"
  17434. static="false" final="false" visibility="public"
  17435. deprecated="not deprecated">
  17436. </method>
  17437. <method name="getDefaultExtension" return="java.lang.String"
  17438. abstract="false" native="false" synchronized="false"
  17439. static="false" final="false" visibility="public"
  17440. deprecated="not deprecated">
  17441. </method>
  17442. <doc>
  17443. <![CDATA[This class creates gzip compressors/decompressors.]]>
  17444. </doc>
  17445. </class>
  17446. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  17447. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17448. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  17449. abstract="false"
  17450. static="true" final="false" visibility="protected"
  17451. deprecated="not deprecated">
  17452. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  17453. static="false" final="false" visibility="public"
  17454. deprecated="not deprecated">
  17455. <exception name="IOException" type="java.io.IOException"/>
  17456. </constructor>
  17457. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  17458. static="false" final="false" visibility="protected"
  17459. deprecated="not deprecated">
  17460. <doc>
  17461. <![CDATA[Allow children types to put a different type in here.
  17462. @param out the Deflater stream to use]]>
  17463. </doc>
  17464. </constructor>
  17465. <method name="close"
  17466. abstract="false" native="false" synchronized="false"
  17467. static="false" final="false" visibility="public"
  17468. deprecated="not deprecated">
  17469. <exception name="IOException" type="java.io.IOException"/>
  17470. </method>
  17471. <method name="flush"
  17472. abstract="false" native="false" synchronized="false"
  17473. static="false" final="false" visibility="public"
  17474. deprecated="not deprecated">
  17475. <exception name="IOException" type="java.io.IOException"/>
  17476. </method>
  17477. <method name="write"
  17478. abstract="false" native="false" synchronized="false"
  17479. static="false" final="false" visibility="public"
  17480. deprecated="not deprecated">
  17481. <param name="b" type="int"/>
  17482. <exception name="IOException" type="java.io.IOException"/>
  17483. </method>
  17484. <method name="write"
  17485. abstract="false" native="false" synchronized="false"
  17486. static="false" final="false" visibility="public"
  17487. deprecated="not deprecated">
  17488. <param name="data" type="byte[]"/>
  17489. <param name="offset" type="int"/>
  17490. <param name="length" type="int"/>
  17491. <exception name="IOException" type="java.io.IOException"/>
  17492. </method>
  17493. <method name="finish"
  17494. abstract="false" native="false" synchronized="false"
  17495. static="false" final="false" visibility="public"
  17496. deprecated="not deprecated">
  17497. <exception name="IOException" type="java.io.IOException"/>
  17498. </method>
  17499. <method name="resetState"
  17500. abstract="false" native="false" synchronized="false"
  17501. static="false" final="false" visibility="public"
  17502. deprecated="not deprecated">
  17503. <exception name="IOException" type="java.io.IOException"/>
  17504. </method>
  17505. <doc>
  17506. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  17507. a CompressionOutputStream.]]>
  17508. </doc>
  17509. </class>
  17510. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17511. <!-- start class org.apache.hadoop.io.compress.SnappyCodec -->
  17512. <class name="SnappyCodec" extends="java.lang.Object"
  17513. abstract="false"
  17514. static="false" final="false" visibility="public"
  17515. deprecated="not deprecated">
  17516. <implements name="org.apache.hadoop.conf.Configurable"/>
  17517. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17518. <constructor name="SnappyCodec"
  17519. static="false" final="false" visibility="public"
  17520. deprecated="not deprecated">
  17521. </constructor>
  17522. <method name="setConf"
  17523. abstract="false" native="false" synchronized="false"
  17524. static="false" final="false" visibility="public"
  17525. deprecated="not deprecated">
  17526. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17527. <doc>
  17528. <![CDATA[Set the configuration to be used by this object.
  17529. @param conf the configuration object.]]>
  17530. </doc>
  17531. </method>
  17532. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17533. abstract="false" native="false" synchronized="false"
  17534. static="false" final="false" visibility="public"
  17535. deprecated="not deprecated">
  17536. <doc>
  17537. <![CDATA[Return the configuration used by this object.
  17538. @return the configuration object used by this objec.]]>
  17539. </doc>
  17540. </method>
  17541. <method name="isNativeSnappyLoaded" return="boolean"
  17542. abstract="false" native="false" synchronized="false"
  17543. static="true" final="false" visibility="public"
  17544. deprecated="not deprecated">
  17545. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17546. <doc>
  17547. <![CDATA[Are the native snappy libraries loaded & initialized?
  17548. @param conf configuration
  17549. @return true if loaded & initialized, otherwise false]]>
  17550. </doc>
  17551. </method>
  17552. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17553. abstract="false" native="false" synchronized="false"
  17554. static="false" final="false" visibility="public"
  17555. deprecated="not deprecated">
  17556. <param name="out" type="java.io.OutputStream"/>
  17557. <exception name="IOException" type="java.io.IOException"/>
  17558. <doc>
  17559. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17560. {@link OutputStream}.
  17561. @param out the location for the final output stream
  17562. @return a stream the user can write uncompressed data to have it compressed
  17563. @throws IOException]]>
  17564. </doc>
  17565. </method>
  17566. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17567. abstract="false" native="false" synchronized="false"
  17568. static="false" final="false" visibility="public"
  17569. deprecated="not deprecated">
  17570. <param name="out" type="java.io.OutputStream"/>
  17571. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17572. <exception name="IOException" type="java.io.IOException"/>
  17573. <doc>
  17574. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17575. {@link OutputStream} with the given {@link Compressor}.
  17576. @param out the location for the final output stream
  17577. @param compressor compressor to use
  17578. @return a stream the user can write uncompressed data to have it compressed
  17579. @throws IOException]]>
  17580. </doc>
  17581. </method>
  17582. <method name="getCompressorType" return="java.lang.Class"
  17583. abstract="false" native="false" synchronized="false"
  17584. static="false" final="false" visibility="public"
  17585. deprecated="not deprecated">
  17586. <doc>
  17587. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  17588. @return the type of compressor needed by this codec.]]>
  17589. </doc>
  17590. </method>
  17591. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17592. abstract="false" native="false" synchronized="false"
  17593. static="false" final="false" visibility="public"
  17594. deprecated="not deprecated">
  17595. <doc>
  17596. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  17597. @return a new compressor for use by this codec]]>
  17598. </doc>
  17599. </method>
  17600. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17601. abstract="false" native="false" synchronized="false"
  17602. static="false" final="false" visibility="public"
  17603. deprecated="not deprecated">
  17604. <param name="in" type="java.io.InputStream"/>
  17605. <exception name="IOException" type="java.io.IOException"/>
  17606. <doc>
  17607. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17608. input stream.
  17609. @param in the stream to read compressed bytes from
  17610. @return a stream to read uncompressed bytes from
  17611. @throws IOException]]>
  17612. </doc>
  17613. </method>
  17614. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17615. abstract="false" native="false" synchronized="false"
  17616. static="false" final="false" visibility="public"
  17617. deprecated="not deprecated">
  17618. <param name="in" type="java.io.InputStream"/>
  17619. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17620. <exception name="IOException" type="java.io.IOException"/>
  17621. <doc>
  17622. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17623. {@link InputStream} with the given {@link Decompressor}.
  17624. @param in the stream to read compressed bytes from
  17625. @param decompressor decompressor to use
  17626. @return a stream to read uncompressed bytes from
  17627. @throws IOException]]>
  17628. </doc>
  17629. </method>
  17630. <method name="getDecompressorType" return="java.lang.Class"
  17631. abstract="false" native="false" synchronized="false"
  17632. static="false" final="false" visibility="public"
  17633. deprecated="not deprecated">
  17634. <doc>
  17635. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  17636. @return the type of decompressor needed by this codec.]]>
  17637. </doc>
  17638. </method>
  17639. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17640. abstract="false" native="false" synchronized="false"
  17641. static="false" final="false" visibility="public"
  17642. deprecated="not deprecated">
  17643. <doc>
  17644. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  17645. @return a new decompressor for use by this codec]]>
  17646. </doc>
  17647. </method>
  17648. <method name="getDefaultExtension" return="java.lang.String"
  17649. abstract="false" native="false" synchronized="false"
  17650. static="false" final="false" visibility="public"
  17651. deprecated="not deprecated">
  17652. <doc>
  17653. <![CDATA[Get the default filename extension for this kind of compression.
  17654. @return <code>.snappy</code>.]]>
  17655. </doc>
  17656. </method>
  17657. <doc>
  17658. <![CDATA[This class creates snappy compressors/decompressors.]]>
  17659. </doc>
  17660. </class>
  17661. <!-- end class org.apache.hadoop.io.compress.SnappyCodec -->
  17662. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17663. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17664. abstract="true"
  17665. static="false" final="false" visibility="public"
  17666. deprecated="not deprecated">
  17667. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  17668. static="false" final="false" visibility="public"
  17669. deprecated="not deprecated">
  17670. <exception name="IOException" type="java.io.IOException"/>
  17671. </constructor>
  17672. <method name="setStart"
  17673. abstract="false" native="false" synchronized="false"
  17674. static="false" final="false" visibility="protected"
  17675. deprecated="not deprecated">
  17676. <param name="start" type="long"/>
  17677. </method>
  17678. <method name="setEnd"
  17679. abstract="false" native="false" synchronized="false"
  17680. static="false" final="false" visibility="protected"
  17681. deprecated="not deprecated">
  17682. <param name="end" type="long"/>
  17683. </method>
  17684. <method name="getAdjustedStart" return="long"
  17685. abstract="false" native="false" synchronized="false"
  17686. static="false" final="false" visibility="public"
  17687. deprecated="not deprecated">
  17688. <doc>
  17689. <![CDATA[After calling createInputStream, the values of start or end
  17690. might change. So this method can be used to get the new value of start.
  17691. @return The changed value of start]]>
  17692. </doc>
  17693. </method>
  17694. <method name="getAdjustedEnd" return="long"
  17695. abstract="false" native="false" synchronized="false"
  17696. static="false" final="false" visibility="public"
  17697. deprecated="not deprecated">
  17698. <doc>
  17699. <![CDATA[After calling createInputStream, the values of start or end
  17700. might change. So this method can be used to get the new value of end.
  17701. @return The changed value of end]]>
  17702. </doc>
  17703. </method>
  17704. <doc>
  17705. <![CDATA[An InputStream covering a range of compressed data. The start and end
  17706. offsets requested by a client may be modified by the codec to fit block
  17707. boundaries or other algorithm-dependent requirements.]]>
  17708. </doc>
  17709. </class>
  17710. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17711. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  17712. <interface name="SplittableCompressionCodec" abstract="true"
  17713. static="false" final="false" visibility="public"
  17714. deprecated="not deprecated">
  17715. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17716. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  17717. abstract="false" native="false" synchronized="false"
  17718. static="false" final="false" visibility="public"
  17719. deprecated="not deprecated">
  17720. <param name="seekableIn" type="java.io.InputStream"/>
  17721. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17722. <param name="start" type="long"/>
  17723. <param name="end" type="long"/>
  17724. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  17725. <exception name="IOException" type="java.io.IOException"/>
  17726. <doc>
  17727. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  17728. the codecs wants the ability to work with the underlying stream positions.
  17729. @param seekableIn The seekable input stream (seeks in compressed data)
  17730. @param start The start offset into the compressed stream. May be changed
  17731. by the underlying codec.
  17732. @param end The end offset into the compressed stream. May be changed by
  17733. the underlying codec.
  17734. @param readMode Controls whether stream position is reported continuously
  17735. from the compressed stream only only at block boundaries.
  17736. @return a stream to read uncompressed bytes from]]>
  17737. </doc>
  17738. </method>
  17739. <doc>
  17740. <![CDATA[This interface is meant to be implemented by those compression codecs
  17741. which are capable to compress / decompress a stream starting at any
  17742. arbitrary position.
  17743. Especially the process of decompressing a stream starting at some arbitrary
  17744. position is challenging. Most of the codecs are only able to successfully
  17745. decompress a stream, if they start from the very beginning till the end.
  17746. One of the reasons is the stored state at the beginning of the stream which
  17747. is crucial for decompression.
  17748. Yet there are few codecs which do not save the whole state at the beginning
  17749. of the stream and hence can be used to de-compress stream starting at any
  17750. arbitrary points. This interface is meant to be used by such codecs. Such
  17751. codecs are highly valuable, especially in the context of Hadoop, because
  17752. an input compressed file can be split and hence can be worked on by multiple
  17753. machines in parallel.]]>
  17754. </doc>
  17755. </interface>
  17756. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  17757. <!-- start class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  17758. <class name="SplittableCompressionCodec.READ_MODE" extends="java.lang.Enum"
  17759. abstract="false"
  17760. static="true" final="true" visibility="public"
  17761. deprecated="not deprecated">
  17762. <method name="values" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE[]"
  17763. abstract="false" native="false" synchronized="false"
  17764. static="true" final="false" visibility="public"
  17765. deprecated="not deprecated">
  17766. </method>
  17767. <method name="valueOf" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  17768. abstract="false" native="false" synchronized="false"
  17769. static="true" final="false" visibility="public"
  17770. deprecated="not deprecated">
  17771. <param name="name" type="java.lang.String"/>
  17772. </method>
  17773. <field name="CONTINUOUS" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  17774. transient="false" volatile="false"
  17775. static="true" final="true" visibility="public"
  17776. deprecated="not deprecated">
  17777. </field>
  17778. <field name="BYBLOCK" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  17779. transient="false" volatile="false"
  17780. static="true" final="true" visibility="public"
  17781. deprecated="not deprecated">
  17782. </field>
  17783. <doc>
  17784. <![CDATA[During decompression, data can be read off from the decompressor in two
  17785. modes, namely continuous and blocked. Few codecs (e.g. BZip2) are capable
  17786. of compressing data in blocks and then decompressing the blocks. In
  17787. Blocked reading mode codecs inform 'end of block' events to its caller.
  17788. While in continuous mode, the caller of codecs is unaware about the blocks
  17789. and uncompressed data is spilled out like a continuous stream.]]>
  17790. </doc>
  17791. </class>
  17792. <!-- end class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  17793. </package>
  17794. <package name="org.apache.hadoop.io.compress.bzip2">
  17795. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17796. <interface name="BZip2Constants" abstract="true"
  17797. static="false" final="false" visibility="public"
  17798. deprecated="not deprecated">
  17799. <field name="baseBlockSize" type="int"
  17800. transient="false" volatile="false"
  17801. static="true" final="true" visibility="public"
  17802. deprecated="not deprecated">
  17803. </field>
  17804. <field name="MAX_ALPHA_SIZE" type="int"
  17805. transient="false" volatile="false"
  17806. static="true" final="true" visibility="public"
  17807. deprecated="not deprecated">
  17808. </field>
  17809. <field name="MAX_CODE_LEN" type="int"
  17810. transient="false" volatile="false"
  17811. static="true" final="true" visibility="public"
  17812. deprecated="not deprecated">
  17813. </field>
  17814. <field name="RUNA" type="int"
  17815. transient="false" volatile="false"
  17816. static="true" final="true" visibility="public"
  17817. deprecated="not deprecated">
  17818. </field>
  17819. <field name="RUNB" type="int"
  17820. transient="false" volatile="false"
  17821. static="true" final="true" visibility="public"
  17822. deprecated="not deprecated">
  17823. </field>
  17824. <field name="N_GROUPS" type="int"
  17825. transient="false" volatile="false"
  17826. static="true" final="true" visibility="public"
  17827. deprecated="not deprecated">
  17828. </field>
  17829. <field name="G_SIZE" type="int"
  17830. transient="false" volatile="false"
  17831. static="true" final="true" visibility="public"
  17832. deprecated="not deprecated">
  17833. </field>
  17834. <field name="N_ITERS" type="int"
  17835. transient="false" volatile="false"
  17836. static="true" final="true" visibility="public"
  17837. deprecated="not deprecated">
  17838. </field>
  17839. <field name="MAX_SELECTORS" type="int"
  17840. transient="false" volatile="false"
  17841. static="true" final="true" visibility="public"
  17842. deprecated="not deprecated">
  17843. </field>
  17844. <field name="NUM_OVERSHOOT_BYTES" type="int"
  17845. transient="false" volatile="false"
  17846. static="true" final="true" visibility="public"
  17847. deprecated="not deprecated">
  17848. </field>
  17849. <field name="END_OF_BLOCK" type="int"
  17850. transient="false" volatile="false"
  17851. static="true" final="true" visibility="public"
  17852. deprecated="not deprecated">
  17853. <doc>
  17854. <![CDATA[End of a BZip2 block]]>
  17855. </doc>
  17856. </field>
  17857. <field name="END_OF_STREAM" type="int"
  17858. transient="false" volatile="false"
  17859. static="true" final="true" visibility="public"
  17860. deprecated="not deprecated">
  17861. <doc>
  17862. <![CDATA[End of BZip2 stream.]]>
  17863. </doc>
  17864. </field>
  17865. <field name="rNums" type="int[]"
  17866. transient="false" volatile="false"
  17867. static="true" final="true" visibility="public"
  17868. deprecated="not deprecated">
  17869. <doc>
  17870. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  17871. is.
  17872. <p>
  17873. FIXME: This array should be in a private or package private location,
  17874. since it could be modified by malicious code.
  17875. </p>]]>
  17876. </doc>
  17877. </field>
  17878. <doc>
  17879. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  17880. and static data.
  17881. <p>
  17882. This interface is public for historical purposes. You should have no need to
  17883. use it.
  17884. </p>]]>
  17885. </doc>
  17886. </interface>
  17887. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17888. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17889. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  17890. abstract="false"
  17891. static="false" final="false" visibility="public"
  17892. deprecated="not deprecated">
  17893. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17894. <constructor name="BZip2DummyCompressor"
  17895. static="false" final="false" visibility="public"
  17896. deprecated="not deprecated">
  17897. </constructor>
  17898. <method name="compress" return="int"
  17899. abstract="false" native="false" synchronized="false"
  17900. static="false" final="false" visibility="public"
  17901. deprecated="not deprecated">
  17902. <param name="b" type="byte[]"/>
  17903. <param name="off" type="int"/>
  17904. <param name="len" type="int"/>
  17905. <exception name="IOException" type="java.io.IOException"/>
  17906. </method>
  17907. <method name="end"
  17908. abstract="false" native="false" synchronized="false"
  17909. static="false" final="false" visibility="public"
  17910. deprecated="not deprecated">
  17911. </method>
  17912. <method name="finish"
  17913. abstract="false" native="false" synchronized="false"
  17914. static="false" final="false" visibility="public"
  17915. deprecated="not deprecated">
  17916. </method>
  17917. <method name="finished" return="boolean"
  17918. abstract="false" native="false" synchronized="false"
  17919. static="false" final="false" visibility="public"
  17920. deprecated="not deprecated">
  17921. </method>
  17922. <method name="getBytesRead" return="long"
  17923. abstract="false" native="false" synchronized="false"
  17924. static="false" final="false" visibility="public"
  17925. deprecated="not deprecated">
  17926. </method>
  17927. <method name="getBytesWritten" return="long"
  17928. abstract="false" native="false" synchronized="false"
  17929. static="false" final="false" visibility="public"
  17930. deprecated="not deprecated">
  17931. </method>
  17932. <method name="needsInput" return="boolean"
  17933. abstract="false" native="false" synchronized="false"
  17934. static="false" final="false" visibility="public"
  17935. deprecated="not deprecated">
  17936. </method>
  17937. <method name="reset"
  17938. abstract="false" native="false" synchronized="false"
  17939. static="false" final="false" visibility="public"
  17940. deprecated="not deprecated">
  17941. </method>
  17942. <method name="setDictionary"
  17943. abstract="false" native="false" synchronized="false"
  17944. static="false" final="false" visibility="public"
  17945. deprecated="not deprecated">
  17946. <param name="b" type="byte[]"/>
  17947. <param name="off" type="int"/>
  17948. <param name="len" type="int"/>
  17949. </method>
  17950. <method name="setInput"
  17951. abstract="false" native="false" synchronized="false"
  17952. static="false" final="false" visibility="public"
  17953. deprecated="not deprecated">
  17954. <param name="b" type="byte[]"/>
  17955. <param name="off" type="int"/>
  17956. <param name="len" type="int"/>
  17957. </method>
  17958. <method name="reinit"
  17959. abstract="false" native="false" synchronized="false"
  17960. static="false" final="false" visibility="public"
  17961. deprecated="not deprecated">
  17962. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17963. </method>
  17964. <doc>
  17965. <![CDATA[This is a dummy compressor for BZip2.]]>
  17966. </doc>
  17967. </class>
  17968. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17969. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  17970. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  17971. abstract="false"
  17972. static="false" final="false" visibility="public"
  17973. deprecated="not deprecated">
  17974. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17975. <constructor name="BZip2DummyDecompressor"
  17976. static="false" final="false" visibility="public"
  17977. deprecated="not deprecated">
  17978. </constructor>
  17979. <method name="decompress" return="int"
  17980. abstract="false" native="false" synchronized="false"
  17981. static="false" final="false" visibility="public"
  17982. deprecated="not deprecated">
  17983. <param name="b" type="byte[]"/>
  17984. <param name="off" type="int"/>
  17985. <param name="len" type="int"/>
  17986. <exception name="IOException" type="java.io.IOException"/>
  17987. </method>
  17988. <method name="end"
  17989. abstract="false" native="false" synchronized="false"
  17990. static="false" final="false" visibility="public"
  17991. deprecated="not deprecated">
  17992. </method>
  17993. <method name="finished" return="boolean"
  17994. abstract="false" native="false" synchronized="false"
  17995. static="false" final="false" visibility="public"
  17996. deprecated="not deprecated">
  17997. </method>
  17998. <method name="needsDictionary" return="boolean"
  17999. abstract="false" native="false" synchronized="false"
  18000. static="false" final="false" visibility="public"
  18001. deprecated="not deprecated">
  18002. </method>
  18003. <method name="needsInput" return="boolean"
  18004. abstract="false" native="false" synchronized="false"
  18005. static="false" final="false" visibility="public"
  18006. deprecated="not deprecated">
  18007. </method>
  18008. <method name="getRemaining" return="int"
  18009. abstract="false" native="false" synchronized="false"
  18010. static="false" final="false" visibility="public"
  18011. deprecated="not deprecated">
  18012. </method>
  18013. <method name="reset"
  18014. abstract="false" native="false" synchronized="false"
  18015. static="false" final="false" visibility="public"
  18016. deprecated="not deprecated">
  18017. </method>
  18018. <method name="setDictionary"
  18019. abstract="false" native="false" synchronized="false"
  18020. static="false" final="false" visibility="public"
  18021. deprecated="not deprecated">
  18022. <param name="b" type="byte[]"/>
  18023. <param name="off" type="int"/>
  18024. <param name="len" type="int"/>
  18025. </method>
  18026. <method name="setInput"
  18027. abstract="false" native="false" synchronized="false"
  18028. static="false" final="false" visibility="public"
  18029. deprecated="not deprecated">
  18030. <param name="b" type="byte[]"/>
  18031. <param name="off" type="int"/>
  18032. <param name="len" type="int"/>
  18033. </method>
  18034. <doc>
  18035. <![CDATA[This is a dummy decompressor for BZip2.]]>
  18036. </doc>
  18037. </class>
  18038. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  18039. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  18040. <class name="CBZip2InputStream" extends="java.io.InputStream"
  18041. abstract="false"
  18042. static="false" final="false" visibility="public"
  18043. deprecated="not deprecated">
  18044. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  18045. <constructor name="CBZip2InputStream" type="java.io.InputStream, org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18046. static="false" final="false" visibility="public"
  18047. deprecated="not deprecated">
  18048. <exception name="IOException" type="java.io.IOException"/>
  18049. <doc>
  18050. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  18051. specified stream.
  18052. <p>
  18053. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  18054. constructor expects the next byte in the stream to be the first one after
  18055. the magic. Thus callers have to skip the first two bytes. Otherwise this
  18056. constructor will throw an exception.
  18057. </p>
  18058. @throws IOException
  18059. if the stream content is malformed or an I/O error occurs.
  18060. @throws NullPointerException
  18061. if <tt>in == null</tt>]]>
  18062. </doc>
  18063. </constructor>
  18064. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  18065. static="false" final="false" visibility="public"
  18066. deprecated="not deprecated">
  18067. <exception name="IOException" type="java.io.IOException"/>
  18068. </constructor>
  18069. <method name="getProcessedByteCount" return="long"
  18070. abstract="false" native="false" synchronized="false"
  18071. static="false" final="false" visibility="public"
  18072. deprecated="not deprecated">
  18073. <doc>
  18074. <![CDATA[This method reports the processed bytes so far. Please note that this
  18075. statistic is only updated on block boundaries and only when the stream is
  18076. initiated in BYBLOCK mode.]]>
  18077. </doc>
  18078. </method>
  18079. <method name="updateProcessedByteCount"
  18080. abstract="false" native="false" synchronized="false"
  18081. static="false" final="false" visibility="protected"
  18082. deprecated="not deprecated">
  18083. <param name="count" type="int"/>
  18084. <doc>
  18085. <![CDATA[This method keeps track of raw processed compressed
  18086. bytes.
  18087. @param count count is the number of bytes to be
  18088. added to raw processed bytes]]>
  18089. </doc>
  18090. </method>
  18091. <method name="updateReportedByteCount"
  18092. abstract="false" native="false" synchronized="false"
  18093. static="false" final="false" visibility="public"
  18094. deprecated="not deprecated">
  18095. <param name="count" type="int"/>
  18096. <doc>
  18097. <![CDATA[This method is called by the client of this
  18098. class in case there are any corrections in
  18099. the stream position. One common example is
  18100. when client of this code removes starting BZ
  18101. characters from the compressed stream.
  18102. @param count count bytes are added to the reported bytes]]>
  18103. </doc>
  18104. </method>
  18105. <method name="skipToNextMarker" return="boolean"
  18106. abstract="false" native="false" synchronized="false"
  18107. static="false" final="false" visibility="public"
  18108. deprecated="not deprecated">
  18109. <param name="marker" type="long"/>
  18110. <param name="markerBitLength" type="int"/>
  18111. <exception name="IOException" type="java.io.IOException"/>
  18112. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  18113. <doc>
  18114. <![CDATA[This method tries to find the marker (passed to it as the first parameter)
  18115. in the stream. It can find bit patterns of length <= 63 bits. Specifically
  18116. this method is used in CBZip2InputStream to find the end of block (EOB)
  18117. delimiter in the stream, starting from the current position of the stream.
  18118. If marker is found, the stream position will be right after marker at the
  18119. end of this call.
  18120. @param marker The bit pattern to be found in the stream
  18121. @param markerBitLength No of bits in the marker
  18122. @throws IOException
  18123. @throws IllegalArgumentException if marketBitLength is greater than 63]]>
  18124. </doc>
  18125. </method>
  18126. <method name="reportCRCError"
  18127. abstract="false" native="false" synchronized="false"
  18128. static="false" final="false" visibility="protected"
  18129. deprecated="not deprecated">
  18130. <exception name="IOException" type="java.io.IOException"/>
  18131. </method>
  18132. <method name="numberOfBytesTillNextMarker" return="long"
  18133. abstract="false" native="false" synchronized="false"
  18134. static="true" final="false" visibility="public"
  18135. deprecated="not deprecated">
  18136. <param name="in" type="java.io.InputStream"/>
  18137. <exception name="IOException" type="java.io.IOException"/>
  18138. <doc>
  18139. <![CDATA[Returns the number of bytes between the current stream position
  18140. and the immediate next BZip2 block marker.
  18141. @param in
  18142. The InputStream
  18143. @return long Number of bytes between current stream position and the
  18144. next BZip2 block start marker.
  18145. @throws IOException]]>
  18146. </doc>
  18147. </method>
  18148. <method name="read" return="int"
  18149. abstract="false" native="false" synchronized="false"
  18150. static="false" final="false" visibility="public"
  18151. deprecated="not deprecated">
  18152. <exception name="IOException" type="java.io.IOException"/>
  18153. </method>
  18154. <method name="read" return="int"
  18155. abstract="false" native="false" synchronized="false"
  18156. static="false" final="false" visibility="public"
  18157. deprecated="not deprecated">
  18158. <param name="dest" type="byte[]"/>
  18159. <param name="offs" type="int"/>
  18160. <param name="len" type="int"/>
  18161. <exception name="IOException" type="java.io.IOException"/>
  18162. <doc>
  18163. <![CDATA[In CONTINOUS reading mode, this read method starts from the
  18164. start of the compressed stream and end at the end of file by
  18165. emitting un-compressed data. In this mode stream positioning
  18166. is not announced and should be ignored.
  18167. In BYBLOCK reading mode, this read method informs about the end
  18168. of a BZip2 block by returning EOB. At this event, the compressed
  18169. stream position is also announced. This announcement tells that
  18170. how much of the compressed stream has been de-compressed and read
  18171. out of this class. In between EOB events, the stream position is
  18172. not updated.
  18173. @throws IOException
  18174. if the stream content is malformed or an I/O error occurs.
  18175. @return int The return value greater than 0 are the bytes read. A value
  18176. of -1 means end of stream while -2 represents end of block]]>
  18177. </doc>
  18178. </method>
  18179. <method name="close"
  18180. abstract="false" native="false" synchronized="false"
  18181. static="false" final="false" visibility="public"
  18182. deprecated="not deprecated">
  18183. <exception name="IOException" type="java.io.IOException"/>
  18184. </method>
  18185. <field name="BLOCK_DELIMITER" type="long"
  18186. transient="false" volatile="false"
  18187. static="true" final="true" visibility="public"
  18188. deprecated="not deprecated">
  18189. </field>
  18190. <field name="EOS_DELIMITER" type="long"
  18191. transient="false" volatile="false"
  18192. static="true" final="true" visibility="public"
  18193. deprecated="not deprecated">
  18194. </field>
  18195. <doc>
  18196. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  18197. header chars) to be read as any other stream.
  18198. <p>
  18199. The decompression requires large amounts of memory. Thus you should call the
  18200. {@link #close() close()} method as soon as possible, to force
  18201. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  18202. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  18203. usage.
  18204. </p>
  18205. <p>
  18206. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  18207. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  18208. Thus you should consider to use a buffered source stream.
  18209. </p>
  18210. <p>
  18211. Instances of this class are not threadsafe.
  18212. </p>]]>
  18213. </doc>
  18214. </class>
  18215. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  18216. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE -->
  18217. <class name="CBZip2InputStream.STATE" extends="java.lang.Enum"
  18218. abstract="false"
  18219. static="true" final="true" visibility="public"
  18220. deprecated="not deprecated">
  18221. <method name="values" return="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE[]"
  18222. abstract="false" native="false" synchronized="false"
  18223. static="true" final="false" visibility="public"
  18224. deprecated="not deprecated">
  18225. </method>
  18226. <method name="valueOf" return="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18227. abstract="false" native="false" synchronized="false"
  18228. static="true" final="false" visibility="public"
  18229. deprecated="not deprecated">
  18230. <param name="name" type="java.lang.String"/>
  18231. </method>
  18232. <field name="EOF" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18233. transient="false" volatile="false"
  18234. static="true" final="true" visibility="public"
  18235. deprecated="not deprecated">
  18236. </field>
  18237. <field name="START_BLOCK_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18238. transient="false" volatile="false"
  18239. static="true" final="true" visibility="public"
  18240. deprecated="not deprecated">
  18241. </field>
  18242. <field name="RAND_PART_A_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18243. transient="false" volatile="false"
  18244. static="true" final="true" visibility="public"
  18245. deprecated="not deprecated">
  18246. </field>
  18247. <field name="RAND_PART_B_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18248. transient="false" volatile="false"
  18249. static="true" final="true" visibility="public"
  18250. deprecated="not deprecated">
  18251. </field>
  18252. <field name="RAND_PART_C_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18253. transient="false" volatile="false"
  18254. static="true" final="true" visibility="public"
  18255. deprecated="not deprecated">
  18256. </field>
  18257. <field name="NO_RAND_PART_A_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18258. transient="false" volatile="false"
  18259. static="true" final="true" visibility="public"
  18260. deprecated="not deprecated">
  18261. </field>
  18262. <field name="NO_RAND_PART_B_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18263. transient="false" volatile="false"
  18264. static="true" final="true" visibility="public"
  18265. deprecated="not deprecated">
  18266. </field>
  18267. <field name="NO_RAND_PART_C_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18268. transient="false" volatile="false"
  18269. static="true" final="true" visibility="public"
  18270. deprecated="not deprecated">
  18271. </field>
  18272. <field name="NO_PROCESS_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18273. transient="false" volatile="false"
  18274. static="true" final="true" visibility="public"
  18275. deprecated="not deprecated">
  18276. </field>
  18277. <doc>
  18278. <![CDATA[A state machine to keep track of current state of the de-coder]]>
  18279. </doc>
  18280. </class>
  18281. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE -->
  18282. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18283. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  18284. abstract="false"
  18285. static="false" final="false" visibility="public"
  18286. deprecated="not deprecated">
  18287. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  18288. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  18289. static="false" final="false" visibility="public"
  18290. deprecated="not deprecated">
  18291. <exception name="IOException" type="java.io.IOException"/>
  18292. <doc>
  18293. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  18294. <p>
  18295. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  18296. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  18297. constructor.
  18298. </p>
  18299. @param out *
  18300. the destination stream.
  18301. @throws IOException
  18302. if an I/O error occurs in the specified stream.
  18303. @throws NullPointerException
  18304. if <code>out == null</code>.]]>
  18305. </doc>
  18306. </constructor>
  18307. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  18308. static="false" final="false" visibility="public"
  18309. deprecated="not deprecated">
  18310. <exception name="IOException" type="java.io.IOException"/>
  18311. <doc>
  18312. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  18313. <p>
  18314. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  18315. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  18316. constructor.
  18317. </p>
  18318. @param out
  18319. the destination stream.
  18320. @param blockSize
  18321. the blockSize as 100k units.
  18322. @throws IOException
  18323. if an I/O error occurs in the specified stream.
  18324. @throws IllegalArgumentException
  18325. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  18326. @throws NullPointerException
  18327. if <code>out == null</code>.
  18328. @see #MIN_BLOCKSIZE
  18329. @see #MAX_BLOCKSIZE]]>
  18330. </doc>
  18331. </constructor>
  18332. <method name="hbMakeCodeLengths"
  18333. abstract="false" native="false" synchronized="false"
  18334. static="true" final="false" visibility="protected"
  18335. deprecated="not deprecated">
  18336. <param name="len" type="char[]"/>
  18337. <param name="freq" type="int[]"/>
  18338. <param name="alphaSize" type="int"/>
  18339. <param name="maxLen" type="int"/>
  18340. <doc>
  18341. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  18342. don't know what it does then you don't need it.]]>
  18343. </doc>
  18344. </method>
  18345. <method name="chooseBlockSize" return="int"
  18346. abstract="false" native="false" synchronized="false"
  18347. static="true" final="false" visibility="public"
  18348. deprecated="not deprecated">
  18349. <param name="inputLength" type="long"/>
  18350. <doc>
  18351. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  18352. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  18353. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  18354. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  18355. always.
  18356. @param inputLength
  18357. The length of the data which will be compressed by
  18358. <tt>CBZip2OutputStream</tt>.]]>
  18359. </doc>
  18360. </method>
  18361. <method name="write"
  18362. abstract="false" native="false" synchronized="false"
  18363. static="false" final="false" visibility="public"
  18364. deprecated="not deprecated">
  18365. <param name="b" type="int"/>
  18366. <exception name="IOException" type="java.io.IOException"/>
  18367. </method>
  18368. <method name="finalize"
  18369. abstract="false" native="false" synchronized="false"
  18370. static="false" final="false" visibility="protected"
  18371. deprecated="not deprecated">
  18372. <exception name="Throwable" type="java.lang.Throwable"/>
  18373. <doc>
  18374. <![CDATA[Overriden to close the stream.]]>
  18375. </doc>
  18376. </method>
  18377. <method name="finish"
  18378. abstract="false" native="false" synchronized="false"
  18379. static="false" final="false" visibility="public"
  18380. deprecated="not deprecated">
  18381. <exception name="IOException" type="java.io.IOException"/>
  18382. </method>
  18383. <method name="close"
  18384. abstract="false" native="false" synchronized="false"
  18385. static="false" final="false" visibility="public"
  18386. deprecated="not deprecated">
  18387. <exception name="IOException" type="java.io.IOException"/>
  18388. </method>
  18389. <method name="flush"
  18390. abstract="false" native="false" synchronized="false"
  18391. static="false" final="false" visibility="public"
  18392. deprecated="not deprecated">
  18393. <exception name="IOException" type="java.io.IOException"/>
  18394. </method>
  18395. <method name="getBlockSize" return="int"
  18396. abstract="false" native="false" synchronized="false"
  18397. static="false" final="true" visibility="public"
  18398. deprecated="not deprecated">
  18399. <doc>
  18400. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  18401. </doc>
  18402. </method>
  18403. <method name="write"
  18404. abstract="false" native="false" synchronized="false"
  18405. static="false" final="false" visibility="public"
  18406. deprecated="not deprecated">
  18407. <param name="buf" type="byte[]"/>
  18408. <param name="offs" type="int"/>
  18409. <param name="len" type="int"/>
  18410. <exception name="IOException" type="java.io.IOException"/>
  18411. </method>
  18412. <field name="MIN_BLOCKSIZE" type="int"
  18413. transient="false" volatile="false"
  18414. static="true" final="true" visibility="public"
  18415. deprecated="not deprecated">
  18416. <doc>
  18417. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  18418. </doc>
  18419. </field>
  18420. <field name="MAX_BLOCKSIZE" type="int"
  18421. transient="false" volatile="false"
  18422. static="true" final="true" visibility="public"
  18423. deprecated="not deprecated">
  18424. <doc>
  18425. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  18426. </doc>
  18427. </field>
  18428. <field name="SETMASK" type="int"
  18429. transient="false" volatile="false"
  18430. static="true" final="true" visibility="protected"
  18431. deprecated="not deprecated">
  18432. <doc>
  18433. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18434. don't know what it means then you don't need it.]]>
  18435. </doc>
  18436. </field>
  18437. <field name="CLEARMASK" type="int"
  18438. transient="false" volatile="false"
  18439. static="true" final="true" visibility="protected"
  18440. deprecated="not deprecated">
  18441. <doc>
  18442. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18443. don't know what it means then you don't need it.]]>
  18444. </doc>
  18445. </field>
  18446. <field name="GREATER_ICOST" type="int"
  18447. transient="false" volatile="false"
  18448. static="true" final="true" visibility="protected"
  18449. deprecated="not deprecated">
  18450. <doc>
  18451. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18452. don't know what it means then you don't need it.]]>
  18453. </doc>
  18454. </field>
  18455. <field name="LESSER_ICOST" type="int"
  18456. transient="false" volatile="false"
  18457. static="true" final="true" visibility="protected"
  18458. deprecated="not deprecated">
  18459. <doc>
  18460. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18461. don't know what it means then you don't need it.]]>
  18462. </doc>
  18463. </field>
  18464. <field name="SMALL_THRESH" type="int"
  18465. transient="false" volatile="false"
  18466. static="true" final="true" visibility="protected"
  18467. deprecated="not deprecated">
  18468. <doc>
  18469. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18470. don't know what it means then you don't need it.]]>
  18471. </doc>
  18472. </field>
  18473. <field name="DEPTH_THRESH" type="int"
  18474. transient="false" volatile="false"
  18475. static="true" final="true" visibility="protected"
  18476. deprecated="not deprecated">
  18477. <doc>
  18478. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18479. don't know what it means then you don't need it.]]>
  18480. </doc>
  18481. </field>
  18482. <field name="WORK_FACTOR" type="int"
  18483. transient="false" volatile="false"
  18484. static="true" final="true" visibility="protected"
  18485. deprecated="not deprecated">
  18486. <doc>
  18487. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18488. don't know what it means then you don't need it.]]>
  18489. </doc>
  18490. </field>
  18491. <field name="QSORT_STACK_SIZE" type="int"
  18492. transient="false" volatile="false"
  18493. static="true" final="true" visibility="protected"
  18494. deprecated="not deprecated">
  18495. <doc>
  18496. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18497. don't know what it means then you don't need it.
  18498. <p>
  18499. If you are ever unlucky/improbable enough to get a stack overflow whilst
  18500. sorting, increase the following constant and try again. In practice I
  18501. have never seen the stack go above 27 elems, so the following limit seems
  18502. very generous.
  18503. </p>]]>
  18504. </doc>
  18505. </field>
  18506. <doc>
  18507. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  18508. header chars) into another stream.
  18509. <p>
  18510. The compression requires large amounts of memory. Thus you should call the
  18511. {@link #close() close()} method as soon as possible, to force
  18512. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  18513. </p>
  18514. <p>
  18515. You can shrink the amount of allocated memory and maybe raise the compression
  18516. speed by choosing a lower blocksize, which in turn may cause a lower
  18517. compression ratio. You can avoid unnecessary memory allocation by avoiding
  18518. using a blocksize which is bigger than the size of the input.
  18519. </p>
  18520. <p>
  18521. You can compute the memory usage for compressing by the following formula:
  18522. </p>
  18523. <pre>
  18524. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  18525. </pre>
  18526. <p>
  18527. To get the memory required for decompression by {@link CBZip2InputStream
  18528. CBZip2InputStream} use
  18529. </p>
  18530. <pre>
  18531. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  18532. </pre>
  18533. <table width="100%" border="1">
  18534. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  18535. </colgroup>
  18536. <tr>
  18537. <th colspan="3">Memory usage by blocksize</th>
  18538. </tr>
  18539. <tr>
  18540. <th align="right">Blocksize</th> <th align="right">Compression<br>
  18541. memory usage</th> <th align="right">Decompression<br>
  18542. memory usage</th>
  18543. </tr>
  18544. <tr>
  18545. <td align="right">100k</td>
  18546. <td align="right">1300k</td>
  18547. <td align="right">565k</td>
  18548. </tr>
  18549. <tr>
  18550. <td align="right">200k</td>
  18551. <td align="right">2200k</td>
  18552. <td align="right">1065k</td>
  18553. </tr>
  18554. <tr>
  18555. <td align="right">300k</td>
  18556. <td align="right">3100k</td>
  18557. <td align="right">1565k</td>
  18558. </tr>
  18559. <tr>
  18560. <td align="right">400k</td>
  18561. <td align="right">4000k</td>
  18562. <td align="right">2065k</td>
  18563. </tr>
  18564. <tr>
  18565. <td align="right">500k</td>
  18566. <td align="right">4900k</td>
  18567. <td align="right">2565k</td>
  18568. </tr>
  18569. <tr>
  18570. <td align="right">600k</td>
  18571. <td align="right">5800k</td>
  18572. <td align="right">3065k</td>
  18573. </tr>
  18574. <tr>
  18575. <td align="right">700k</td>
  18576. <td align="right">6700k</td>
  18577. <td align="right">3565k</td>
  18578. </tr>
  18579. <tr>
  18580. <td align="right">800k</td>
  18581. <td align="right">7600k</td>
  18582. <td align="right">4065k</td>
  18583. </tr>
  18584. <tr>
  18585. <td align="right">900k</td>
  18586. <td align="right">8500k</td>
  18587. <td align="right">4565k</td>
  18588. </tr>
  18589. </table>
  18590. <p>
  18591. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  18592. bzipped input is smaller than one block.
  18593. </p>
  18594. <p>
  18595. Instances of this class are not threadsafe.
  18596. </p>
  18597. <p>
  18598. TODO: Update to BZip2 1.0.1
  18599. </p>]]>
  18600. </doc>
  18601. </class>
  18602. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18603. </package>
  18604. <package name="org.apache.hadoop.io.compress.snappy">
  18605. <!-- start class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18606. <class name="LoadSnappy" extends="java.lang.Object"
  18607. abstract="false"
  18608. static="false" final="false" visibility="public"
  18609. deprecated="not deprecated">
  18610. <constructor name="LoadSnappy"
  18611. static="false" final="false" visibility="public"
  18612. deprecated="not deprecated">
  18613. </constructor>
  18614. <method name="isAvailable" return="boolean"
  18615. abstract="false" native="false" synchronized="false"
  18616. static="true" final="false" visibility="public"
  18617. deprecated="not deprecated">
  18618. <doc>
  18619. <![CDATA[Returns if Snappy native library is loaded.
  18620. @return <code>true</code> if Snappy native library is loaded,
  18621. <code>false</code> if not.]]>
  18622. </doc>
  18623. </method>
  18624. <method name="isLoaded" return="boolean"
  18625. abstract="false" native="false" synchronized="false"
  18626. static="true" final="false" visibility="public"
  18627. deprecated="not deprecated">
  18628. <doc>
  18629. <![CDATA[Returns if Snappy native library is loaded.
  18630. @return <code>true</code> if Snappy native library is loaded,
  18631. <code>false</code> if not.]]>
  18632. </doc>
  18633. </method>
  18634. <doc>
  18635. <![CDATA[Determines if Snappy native library is available and loads it if available.]]>
  18636. </doc>
  18637. </class>
  18638. <!-- end class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18639. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  18640. <class name="SnappyCompressor" extends="java.lang.Object"
  18641. abstract="false"
  18642. static="false" final="false" visibility="public"
  18643. deprecated="not deprecated">
  18644. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18645. <constructor name="SnappyCompressor" type="int"
  18646. static="false" final="false" visibility="public"
  18647. deprecated="not deprecated">
  18648. <doc>
  18649. <![CDATA[Creates a new compressor.
  18650. @param directBufferSize size of the direct buffer to be used.]]>
  18651. </doc>
  18652. </constructor>
  18653. <constructor name="SnappyCompressor"
  18654. static="false" final="false" visibility="public"
  18655. deprecated="not deprecated">
  18656. <doc>
  18657. <![CDATA[Creates a new compressor with the default buffer size.]]>
  18658. </doc>
  18659. </constructor>
  18660. <method name="setInput"
  18661. abstract="false" native="false" synchronized="true"
  18662. static="false" final="false" visibility="public"
  18663. deprecated="not deprecated">
  18664. <param name="b" type="byte[]"/>
  18665. <param name="off" type="int"/>
  18666. <param name="len" type="int"/>
  18667. <doc>
  18668. <![CDATA[Sets input data for compression.
  18669. This should be called whenever #needsInput() returns
  18670. <code>true</code> indicating that more input data is required.
  18671. @param b Input data
  18672. @param off Start offset
  18673. @param len Length]]>
  18674. </doc>
  18675. </method>
  18676. <method name="setDictionary"
  18677. abstract="false" native="false" synchronized="true"
  18678. static="false" final="false" visibility="public"
  18679. deprecated="not deprecated">
  18680. <param name="b" type="byte[]"/>
  18681. <param name="off" type="int"/>
  18682. <param name="len" type="int"/>
  18683. <doc>
  18684. <![CDATA[Does nothing.]]>
  18685. </doc>
  18686. </method>
  18687. <method name="needsInput" return="boolean"
  18688. abstract="false" native="false" synchronized="true"
  18689. static="false" final="false" visibility="public"
  18690. deprecated="not deprecated">
  18691. <doc>
  18692. <![CDATA[Returns true if the input data buffer is empty and
  18693. #setInput() should be called to provide more input.
  18694. @return <code>true</code> if the input data buffer is empty and
  18695. #setInput() should be called in order to provide more input.]]>
  18696. </doc>
  18697. </method>
  18698. <method name="finish"
  18699. abstract="false" native="false" synchronized="true"
  18700. static="false" final="false" visibility="public"
  18701. deprecated="not deprecated">
  18702. <doc>
  18703. <![CDATA[When called, indicates that compression should end
  18704. with the current contents of the input buffer.]]>
  18705. </doc>
  18706. </method>
  18707. <method name="finished" return="boolean"
  18708. abstract="false" native="false" synchronized="true"
  18709. static="false" final="false" visibility="public"
  18710. deprecated="not deprecated">
  18711. <doc>
  18712. <![CDATA[Returns true if the end of the compressed
  18713. data output stream has been reached.
  18714. @return <code>true</code> if the end of the compressed
  18715. data output stream has been reached.]]>
  18716. </doc>
  18717. </method>
  18718. <method name="compress" return="int"
  18719. abstract="false" native="false" synchronized="true"
  18720. static="false" final="false" visibility="public"
  18721. deprecated="not deprecated">
  18722. <param name="b" type="byte[]"/>
  18723. <param name="off" type="int"/>
  18724. <param name="len" type="int"/>
  18725. <exception name="IOException" type="java.io.IOException"/>
  18726. <doc>
  18727. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  18728. of bytes of compressed data. A return value of 0 indicates that
  18729. needsInput() should be called in order to determine if more input
  18730. data is required.
  18731. @param b Buffer for the compressed data
  18732. @param off Start offset of the data
  18733. @param len Size of the buffer
  18734. @return The actual number of bytes of compressed data.]]>
  18735. </doc>
  18736. </method>
  18737. <method name="reset"
  18738. abstract="false" native="false" synchronized="true"
  18739. static="false" final="false" visibility="public"
  18740. deprecated="not deprecated">
  18741. <doc>
  18742. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  18743. </doc>
  18744. </method>
  18745. <method name="reinit"
  18746. abstract="false" native="false" synchronized="true"
  18747. static="false" final="false" visibility="public"
  18748. deprecated="not deprecated">
  18749. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18750. <doc>
  18751. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  18752. the given Configuration
  18753. @param conf Configuration from which new setting are fetched]]>
  18754. </doc>
  18755. </method>
  18756. <method name="getBytesRead" return="long"
  18757. abstract="false" native="false" synchronized="true"
  18758. static="false" final="false" visibility="public"
  18759. deprecated="not deprecated">
  18760. <doc>
  18761. <![CDATA[Return number of bytes given to this compressor since last reset.]]>
  18762. </doc>
  18763. </method>
  18764. <method name="getBytesWritten" return="long"
  18765. abstract="false" native="false" synchronized="true"
  18766. static="false" final="false" visibility="public"
  18767. deprecated="not deprecated">
  18768. <doc>
  18769. <![CDATA[Return number of bytes consumed by callers of compress since last reset.]]>
  18770. </doc>
  18771. </method>
  18772. <method name="end"
  18773. abstract="false" native="false" synchronized="true"
  18774. static="false" final="false" visibility="public"
  18775. deprecated="not deprecated">
  18776. <doc>
  18777. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  18778. </doc>
  18779. </method>
  18780. <doc>
  18781. <![CDATA[A {@link Compressor} based on the snappy compression algorithm.
  18782. http://code.google.com/p/snappy/]]>
  18783. </doc>
  18784. </class>
  18785. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  18786. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  18787. <class name="SnappyDecompressor" extends="java.lang.Object"
  18788. abstract="false"
  18789. static="false" final="false" visibility="public"
  18790. deprecated="not deprecated">
  18791. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18792. <constructor name="SnappyDecompressor" type="int"
  18793. static="false" final="false" visibility="public"
  18794. deprecated="not deprecated">
  18795. <doc>
  18796. <![CDATA[Creates a new compressor.
  18797. @param directBufferSize size of the direct buffer to be used.]]>
  18798. </doc>
  18799. </constructor>
  18800. <constructor name="SnappyDecompressor"
  18801. static="false" final="false" visibility="public"
  18802. deprecated="not deprecated">
  18803. <doc>
  18804. <![CDATA[Creates a new decompressor with the default buffer size.]]>
  18805. </doc>
  18806. </constructor>
  18807. <method name="setInput"
  18808. abstract="false" native="false" synchronized="true"
  18809. static="false" final="false" visibility="public"
  18810. deprecated="not deprecated">
  18811. <param name="b" type="byte[]"/>
  18812. <param name="off" type="int"/>
  18813. <param name="len" type="int"/>
  18814. <doc>
  18815. <![CDATA[Sets input data for decompression.
  18816. This should be called if and only if {@link #needsInput()} returns
  18817. <code>true</code> indicating that more input data is required.
  18818. (Both native and non-native versions of various Decompressors require
  18819. that the data passed in via <code>b[]</code> remain unmodified until
  18820. the caller is explicitly notified--via {@link #needsInput()}--that the
  18821. buffer may be safely modified. With this requirement, an extra
  18822. buffer-copy can be avoided.)
  18823. @param b Input data
  18824. @param off Start offset
  18825. @param len Length]]>
  18826. </doc>
  18827. </method>
  18828. <method name="setDictionary"
  18829. abstract="false" native="false" synchronized="true"
  18830. static="false" final="false" visibility="public"
  18831. deprecated="not deprecated">
  18832. <param name="b" type="byte[]"/>
  18833. <param name="off" type="int"/>
  18834. <param name="len" type="int"/>
  18835. <doc>
  18836. <![CDATA[Does nothing.]]>
  18837. </doc>
  18838. </method>
  18839. <method name="needsInput" return="boolean"
  18840. abstract="false" native="false" synchronized="true"
  18841. static="false" final="false" visibility="public"
  18842. deprecated="not deprecated">
  18843. <doc>
  18844. <![CDATA[Returns true if the input data buffer is empty and
  18845. {@link #setInput(byte[], int, int)} should be called to
  18846. provide more input.
  18847. @return <code>true</code> if the input data buffer is empty and
  18848. {@link #setInput(byte[], int, int)} should be called in
  18849. order to provide more input.]]>
  18850. </doc>
  18851. </method>
  18852. <method name="needsDictionary" return="boolean"
  18853. abstract="false" native="false" synchronized="true"
  18854. static="false" final="false" visibility="public"
  18855. deprecated="not deprecated">
  18856. <doc>
  18857. <![CDATA[Returns <code>false</code>.
  18858. @return <code>false</code>.]]>
  18859. </doc>
  18860. </method>
  18861. <method name="finished" return="boolean"
  18862. abstract="false" native="false" synchronized="true"
  18863. static="false" final="false" visibility="public"
  18864. deprecated="not deprecated">
  18865. <doc>
  18866. <![CDATA[Returns true if the end of the decompressed
  18867. data output stream has been reached.
  18868. @return <code>true</code> if the end of the decompressed
  18869. data output stream has been reached.]]>
  18870. </doc>
  18871. </method>
  18872. <method name="decompress" return="int"
  18873. abstract="false" native="false" synchronized="true"
  18874. static="false" final="false" visibility="public"
  18875. deprecated="not deprecated">
  18876. <param name="b" type="byte[]"/>
  18877. <param name="off" type="int"/>
  18878. <param name="len" type="int"/>
  18879. <exception name="IOException" type="java.io.IOException"/>
  18880. <doc>
  18881. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  18882. of bytes of uncompressed data. A return value of 0 indicates that
  18883. {@link #needsInput()} should be called in order to determine if more
  18884. input data is required.
  18885. @param b Buffer for the compressed data
  18886. @param off Start offset of the data
  18887. @param len Size of the buffer
  18888. @return The actual number of bytes of compressed data.
  18889. @throws IOException]]>
  18890. </doc>
  18891. </method>
  18892. <method name="getRemaining" return="int"
  18893. abstract="false" native="false" synchronized="true"
  18894. static="false" final="false" visibility="public"
  18895. deprecated="not deprecated">
  18896. <doc>
  18897. <![CDATA[Returns <code>0</code>.
  18898. @return <code>0</code>.]]>
  18899. </doc>
  18900. </method>
  18901. <method name="reset"
  18902. abstract="false" native="false" synchronized="true"
  18903. static="false" final="false" visibility="public"
  18904. deprecated="not deprecated">
  18905. </method>
  18906. <method name="end"
  18907. abstract="false" native="false" synchronized="true"
  18908. static="false" final="false" visibility="public"
  18909. deprecated="not deprecated">
  18910. <doc>
  18911. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  18912. input data can be processed.]]>
  18913. </doc>
  18914. </method>
  18915. <doc>
  18916. <![CDATA[A {@link Decompressor} based on the snappy compression algorithm.
  18917. http://code.google.com/p/snappy/]]>
  18918. </doc>
  18919. </class>
  18920. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  18921. </package>
  18922. <package name="org.apache.hadoop.io.compress.zlib">
  18923. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  18924. <class name="BuiltInGzipDecompressor" extends="java.lang.Object"
  18925. abstract="false"
  18926. static="false" final="false" visibility="public"
  18927. deprecated="not deprecated">
  18928. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18929. <constructor name="BuiltInGzipDecompressor"
  18930. static="false" final="false" visibility="public"
  18931. deprecated="not deprecated">
  18932. <doc>
  18933. <![CDATA[Creates a new (pure Java) gzip decompressor.]]>
  18934. </doc>
  18935. </constructor>
  18936. <method name="needsInput" return="boolean"
  18937. abstract="false" native="false" synchronized="true"
  18938. static="false" final="false" visibility="public"
  18939. deprecated="not deprecated">
  18940. <doc>
  18941. <![CDATA[{@inheritDoc}]]>
  18942. </doc>
  18943. </method>
  18944. <method name="setInput"
  18945. abstract="false" native="false" synchronized="true"
  18946. static="false" final="false" visibility="public"
  18947. deprecated="not deprecated">
  18948. <param name="b" type="byte[]"/>
  18949. <param name="off" type="int"/>
  18950. <param name="len" type="int"/>
  18951. <doc>
  18952. <![CDATA[{@inheritDoc}]]>
  18953. </doc>
  18954. </method>
  18955. <method name="decompress" return="int"
  18956. abstract="false" native="false" synchronized="true"
  18957. static="false" final="false" visibility="public"
  18958. deprecated="not deprecated">
  18959. <param name="b" type="byte[]"/>
  18960. <param name="off" type="int"/>
  18961. <param name="len" type="int"/>
  18962. <exception name="IOException" type="java.io.IOException"/>
  18963. <doc>
  18964. <![CDATA[Decompress the data (gzip header, deflate stream, gzip trailer) in the
  18965. provided buffer.
  18966. @return the number of decompressed bytes placed into b]]>
  18967. </doc>
  18968. </method>
  18969. <method name="getBytesRead" return="long"
  18970. abstract="false" native="false" synchronized="true"
  18971. static="false" final="false" visibility="public"
  18972. deprecated="not deprecated">
  18973. <doc>
  18974. <![CDATA[Returns the total number of compressed bytes input so far, including
  18975. gzip header/trailer bytes.</p>
  18976. @return the total (non-negative) number of compressed bytes read so far]]>
  18977. </doc>
  18978. </method>
  18979. <method name="getRemaining" return="int"
  18980. abstract="false" native="false" synchronized="true"
  18981. static="false" final="false" visibility="public"
  18982. deprecated="not deprecated">
  18983. <doc>
  18984. <![CDATA[Returns the number of bytes remaining in the input buffer; normally
  18985. called when finished() is true to determine amount of post-gzip-stream
  18986. data. Note that, other than the finished state with concatenated data
  18987. after the end of the current gzip stream, this will never return a
  18988. non-zero value unless called after {@link #setInput(byte[] b, int off,
  18989. int len)} and before {@link #decompress(byte[] b, int off, int len)}.
  18990. (That is, after {@link #decompress(byte[] b, int off, int len)} it
  18991. always returns zero, except in finished state with concatenated data.)</p>
  18992. @return the total (non-negative) number of unprocessed bytes in input]]>
  18993. </doc>
  18994. </method>
  18995. <method name="needsDictionary" return="boolean"
  18996. abstract="false" native="false" synchronized="true"
  18997. static="false" final="false" visibility="public"
  18998. deprecated="not deprecated">
  18999. <doc>
  19000. <![CDATA[{@inheritDoc}]]>
  19001. </doc>
  19002. </method>
  19003. <method name="setDictionary"
  19004. abstract="false" native="false" synchronized="true"
  19005. static="false" final="false" visibility="public"
  19006. deprecated="not deprecated">
  19007. <param name="b" type="byte[]"/>
  19008. <param name="off" type="int"/>
  19009. <param name="len" type="int"/>
  19010. <doc>
  19011. <![CDATA[{@inheritDoc}]]>
  19012. </doc>
  19013. </method>
  19014. <method name="finished" return="boolean"
  19015. abstract="false" native="false" synchronized="true"
  19016. static="false" final="false" visibility="public"
  19017. deprecated="not deprecated">
  19018. <doc>
  19019. <![CDATA[Returns true if the end of the gzip substream (single "member") has been
  19020. reached.</p>]]>
  19021. </doc>
  19022. </method>
  19023. <method name="reset"
  19024. abstract="false" native="false" synchronized="true"
  19025. static="false" final="false" visibility="public"
  19026. deprecated="not deprecated">
  19027. <doc>
  19028. <![CDATA[Resets everything, including the input buffer, regardless of whether the
  19029. current gzip substream is finished.</p>]]>
  19030. </doc>
  19031. </method>
  19032. <method name="end"
  19033. abstract="false" native="false" synchronized="true"
  19034. static="false" final="false" visibility="public"
  19035. deprecated="not deprecated">
  19036. <doc>
  19037. <![CDATA[{@inheritDoc}]]>
  19038. </doc>
  19039. </method>
  19040. <doc>
  19041. <![CDATA[A {@link Decompressor} based on the popular gzip compressed file format.
  19042. http://www.gzip.org/]]>
  19043. </doc>
  19044. </class>
  19045. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  19046. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19047. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  19048. abstract="false"
  19049. static="false" final="false" visibility="public"
  19050. deprecated="not deprecated">
  19051. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19052. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  19053. static="false" final="false" visibility="public"
  19054. deprecated="not deprecated">
  19055. </constructor>
  19056. <constructor name="BuiltInZlibDeflater" type="int"
  19057. static="false" final="false" visibility="public"
  19058. deprecated="not deprecated">
  19059. </constructor>
  19060. <constructor name="BuiltInZlibDeflater"
  19061. static="false" final="false" visibility="public"
  19062. deprecated="not deprecated">
  19063. </constructor>
  19064. <method name="compress" return="int"
  19065. abstract="false" native="false" synchronized="true"
  19066. static="false" final="false" visibility="public"
  19067. deprecated="not deprecated">
  19068. <param name="b" type="byte[]"/>
  19069. <param name="off" type="int"/>
  19070. <param name="len" type="int"/>
  19071. <exception name="IOException" type="java.io.IOException"/>
  19072. </method>
  19073. <method name="reinit"
  19074. abstract="false" native="false" synchronized="false"
  19075. static="false" final="false" visibility="public"
  19076. deprecated="not deprecated">
  19077. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19078. <doc>
  19079. <![CDATA[reinit the compressor with the given configuration. It will reset the
  19080. compressor's compression level and compression strategy. Different from
  19081. <tt>ZlibCompressor</tt>, <tt>BuiltInZlibDeflater</tt> only support three
  19082. kind of compression strategy: FILTERED, HUFFMAN_ONLY and DEFAULT_STRATEGY.
  19083. It will use DEFAULT_STRATEGY as default if the configured compression
  19084. strategy is not supported.]]>
  19085. </doc>
  19086. </method>
  19087. <doc>
  19088. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  19089. to org.apache.hadoop.io.compress.Compressor interface.]]>
  19090. </doc>
  19091. </class>
  19092. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19093. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19094. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  19095. abstract="false"
  19096. static="false" final="false" visibility="public"
  19097. deprecated="not deprecated">
  19098. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19099. <constructor name="BuiltInZlibInflater" type="boolean"
  19100. static="false" final="false" visibility="public"
  19101. deprecated="not deprecated">
  19102. </constructor>
  19103. <constructor name="BuiltInZlibInflater"
  19104. static="false" final="false" visibility="public"
  19105. deprecated="not deprecated">
  19106. </constructor>
  19107. <method name="decompress" return="int"
  19108. abstract="false" native="false" synchronized="true"
  19109. static="false" final="false" visibility="public"
  19110. deprecated="not deprecated">
  19111. <param name="b" type="byte[]"/>
  19112. <param name="off" type="int"/>
  19113. <param name="len" type="int"/>
  19114. <exception name="IOException" type="java.io.IOException"/>
  19115. </method>
  19116. <doc>
  19117. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  19118. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  19119. </doc>
  19120. </class>
  19121. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19122. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19123. <class name="ZlibCompressor" extends="java.lang.Object"
  19124. abstract="false"
  19125. static="false" final="false" visibility="public"
  19126. deprecated="not deprecated">
  19127. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19128. <constructor name="ZlibCompressor"
  19129. static="false" final="false" visibility="public"
  19130. deprecated="not deprecated">
  19131. <doc>
  19132. <![CDATA[Creates a new compressor with the default compression level.
  19133. Compressed data will be generated in ZLIB format.]]>
  19134. </doc>
  19135. </constructor>
  19136. <constructor name="ZlibCompressor" type="org.apache.hadoop.conf.Configuration"
  19137. static="false" final="false" visibility="public"
  19138. deprecated="not deprecated">
  19139. <doc>
  19140. <![CDATA[Creates a new compressor, taking settings from the configuration.]]>
  19141. </doc>
  19142. </constructor>
  19143. <constructor name="ZlibCompressor" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel, org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy, org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader, int"
  19144. static="false" final="false" visibility="public"
  19145. deprecated="not deprecated">
  19146. <doc>
  19147. <![CDATA[Creates a new compressor using the specified compression level.
  19148. Compressed data will be generated in ZLIB format.
  19149. @param level Compression level #CompressionLevel
  19150. @param strategy Compression strategy #CompressionStrategy
  19151. @param header Compression header #CompressionHeader
  19152. @param directBufferSize Size of the direct buffer to be used.]]>
  19153. </doc>
  19154. </constructor>
  19155. <method name="construct"
  19156. abstract="false" native="false" synchronized="false"
  19157. static="false" final="true" visibility="protected"
  19158. deprecated="not deprecated">
  19159. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19160. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19161. <param name="header" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"/>
  19162. <param name="directBufferSize" type="int"/>
  19163. </method>
  19164. <method name="reinit"
  19165. abstract="false" native="false" synchronized="true"
  19166. static="false" final="false" visibility="public"
  19167. deprecated="not deprecated">
  19168. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19169. <doc>
  19170. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  19171. the given Configuration. It will reset the compressor's compression level
  19172. and compression strategy.
  19173. @param conf Configuration storing new settings]]>
  19174. </doc>
  19175. </method>
  19176. <method name="setInput"
  19177. abstract="false" native="false" synchronized="true"
  19178. static="false" final="false" visibility="public"
  19179. deprecated="not deprecated">
  19180. <param name="b" type="byte[]"/>
  19181. <param name="off" type="int"/>
  19182. <param name="len" type="int"/>
  19183. </method>
  19184. <method name="setDictionary"
  19185. abstract="false" native="false" synchronized="true"
  19186. static="false" final="false" visibility="public"
  19187. deprecated="not deprecated">
  19188. <param name="b" type="byte[]"/>
  19189. <param name="off" type="int"/>
  19190. <param name="len" type="int"/>
  19191. </method>
  19192. <method name="needsInput" return="boolean"
  19193. abstract="false" native="false" synchronized="false"
  19194. static="false" final="false" visibility="public"
  19195. deprecated="not deprecated">
  19196. </method>
  19197. <method name="finish"
  19198. abstract="false" native="false" synchronized="true"
  19199. static="false" final="false" visibility="public"
  19200. deprecated="not deprecated">
  19201. </method>
  19202. <method name="finished" return="boolean"
  19203. abstract="false" native="false" synchronized="true"
  19204. static="false" final="false" visibility="public"
  19205. deprecated="not deprecated">
  19206. </method>
  19207. <method name="compress" return="int"
  19208. abstract="false" native="false" synchronized="true"
  19209. static="false" final="false" visibility="public"
  19210. deprecated="not deprecated">
  19211. <param name="b" type="byte[]"/>
  19212. <param name="off" type="int"/>
  19213. <param name="len" type="int"/>
  19214. <exception name="IOException" type="java.io.IOException"/>
  19215. </method>
  19216. <method name="getBytesWritten" return="long"
  19217. abstract="false" native="false" synchronized="true"
  19218. static="false" final="false" visibility="public"
  19219. deprecated="not deprecated">
  19220. <doc>
  19221. <![CDATA[Returns the total number of compressed bytes output so far.
  19222. @return the total (non-negative) number of compressed bytes output so far]]>
  19223. </doc>
  19224. </method>
  19225. <method name="getBytesRead" return="long"
  19226. abstract="false" native="false" synchronized="true"
  19227. static="false" final="false" visibility="public"
  19228. deprecated="not deprecated">
  19229. <doc>
  19230. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  19231. @return the total (non-negative) number of uncompressed bytes input so far]]>
  19232. </doc>
  19233. </method>
  19234. <method name="reset"
  19235. abstract="false" native="false" synchronized="true"
  19236. static="false" final="false" visibility="public"
  19237. deprecated="not deprecated">
  19238. </method>
  19239. <method name="end"
  19240. abstract="false" native="false" synchronized="true"
  19241. static="false" final="false" visibility="public"
  19242. deprecated="not deprecated">
  19243. </method>
  19244. <doc>
  19245. <![CDATA[A {@link Compressor} based on the popular
  19246. zlib compression algorithm.
  19247. http://www.zlib.net/]]>
  19248. </doc>
  19249. </class>
  19250. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19251. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19252. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  19253. abstract="false"
  19254. static="true" final="true" visibility="public"
  19255. deprecated="not deprecated">
  19256. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  19257. abstract="false" native="false" synchronized="false"
  19258. static="true" final="false" visibility="public"
  19259. deprecated="not deprecated">
  19260. </method>
  19261. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19262. abstract="false" native="false" synchronized="false"
  19263. static="true" final="false" visibility="public"
  19264. deprecated="not deprecated">
  19265. <param name="name" type="java.lang.String"/>
  19266. </method>
  19267. <method name="windowBits" return="int"
  19268. abstract="false" native="false" synchronized="false"
  19269. static="false" final="false" visibility="public"
  19270. deprecated="not deprecated">
  19271. </method>
  19272. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19273. transient="false" volatile="false"
  19274. static="true" final="true" visibility="public"
  19275. deprecated="not deprecated">
  19276. <doc>
  19277. <![CDATA[No headers/trailers/checksums.]]>
  19278. </doc>
  19279. </field>
  19280. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19281. transient="false" volatile="false"
  19282. static="true" final="true" visibility="public"
  19283. deprecated="not deprecated">
  19284. <doc>
  19285. <![CDATA[Default headers/trailers/checksums.]]>
  19286. </doc>
  19287. </field>
  19288. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19289. transient="false" volatile="false"
  19290. static="true" final="true" visibility="public"
  19291. deprecated="not deprecated">
  19292. <doc>
  19293. <![CDATA[Simple gzip headers/trailers.]]>
  19294. </doc>
  19295. </field>
  19296. <doc>
  19297. <![CDATA[The type of header for compressed data.]]>
  19298. </doc>
  19299. </class>
  19300. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19301. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19302. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  19303. abstract="false"
  19304. static="true" final="true" visibility="public"
  19305. deprecated="not deprecated">
  19306. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  19307. abstract="false" native="false" synchronized="false"
  19308. static="true" final="false" visibility="public"
  19309. deprecated="not deprecated">
  19310. </method>
  19311. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19312. abstract="false" native="false" synchronized="false"
  19313. static="true" final="false" visibility="public"
  19314. deprecated="not deprecated">
  19315. <param name="name" type="java.lang.String"/>
  19316. </method>
  19317. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19318. transient="false" volatile="false"
  19319. static="true" final="true" visibility="public"
  19320. deprecated="not deprecated">
  19321. <doc>
  19322. <![CDATA[Compression level for no compression.]]>
  19323. </doc>
  19324. </field>
  19325. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19326. transient="false" volatile="false"
  19327. static="true" final="true" visibility="public"
  19328. deprecated="not deprecated">
  19329. <doc>
  19330. <![CDATA[Compression level for fastest compression.]]>
  19331. </doc>
  19332. </field>
  19333. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19334. transient="false" volatile="false"
  19335. static="true" final="true" visibility="public"
  19336. deprecated="not deprecated">
  19337. <doc>
  19338. <![CDATA[Compression level for best compression.]]>
  19339. </doc>
  19340. </field>
  19341. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19342. transient="false" volatile="false"
  19343. static="true" final="true" visibility="public"
  19344. deprecated="not deprecated">
  19345. <doc>
  19346. <![CDATA[Default compression level.]]>
  19347. </doc>
  19348. </field>
  19349. <doc>
  19350. <![CDATA[The compression level for zlib library.]]>
  19351. </doc>
  19352. </class>
  19353. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19354. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19355. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  19356. abstract="false"
  19357. static="true" final="true" visibility="public"
  19358. deprecated="not deprecated">
  19359. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  19360. abstract="false" native="false" synchronized="false"
  19361. static="true" final="false" visibility="public"
  19362. deprecated="not deprecated">
  19363. </method>
  19364. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19365. abstract="false" native="false" synchronized="false"
  19366. static="true" final="false" visibility="public"
  19367. deprecated="not deprecated">
  19368. <param name="name" type="java.lang.String"/>
  19369. </method>
  19370. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19371. transient="false" volatile="false"
  19372. static="true" final="true" visibility="public"
  19373. deprecated="not deprecated">
  19374. <doc>
  19375. <![CDATA[Compression strategy best used for data consisting mostly of small
  19376. values with a somewhat random distribution. Forces more Huffman coding
  19377. and less string matching.]]>
  19378. </doc>
  19379. </field>
  19380. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19381. transient="false" volatile="false"
  19382. static="true" final="true" visibility="public"
  19383. deprecated="not deprecated">
  19384. <doc>
  19385. <![CDATA[Compression strategy for Huffman coding only.]]>
  19386. </doc>
  19387. </field>
  19388. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19389. transient="false" volatile="false"
  19390. static="true" final="true" visibility="public"
  19391. deprecated="not deprecated">
  19392. <doc>
  19393. <![CDATA[Compression strategy to limit match distances to one
  19394. (run-length encoding).]]>
  19395. </doc>
  19396. </field>
  19397. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19398. transient="false" volatile="false"
  19399. static="true" final="true" visibility="public"
  19400. deprecated="not deprecated">
  19401. <doc>
  19402. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  19403. allowing for a simpler decoder for special applications.]]>
  19404. </doc>
  19405. </field>
  19406. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19407. transient="false" volatile="false"
  19408. static="true" final="true" visibility="public"
  19409. deprecated="not deprecated">
  19410. <doc>
  19411. <![CDATA[Default compression strategy.]]>
  19412. </doc>
  19413. </field>
  19414. <doc>
  19415. <![CDATA[The compression level for zlib library.]]>
  19416. </doc>
  19417. </class>
  19418. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19419. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19420. <class name="ZlibDecompressor" extends="java.lang.Object"
  19421. abstract="false"
  19422. static="false" final="false" visibility="public"
  19423. deprecated="not deprecated">
  19424. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19425. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  19426. static="false" final="false" visibility="public"
  19427. deprecated="not deprecated">
  19428. <doc>
  19429. <![CDATA[Creates a new decompressor.]]>
  19430. </doc>
  19431. </constructor>
  19432. <constructor name="ZlibDecompressor"
  19433. static="false" final="false" visibility="public"
  19434. deprecated="not deprecated">
  19435. </constructor>
  19436. <method name="setInput"
  19437. abstract="false" native="false" synchronized="true"
  19438. static="false" final="false" visibility="public"
  19439. deprecated="not deprecated">
  19440. <param name="b" type="byte[]"/>
  19441. <param name="off" type="int"/>
  19442. <param name="len" type="int"/>
  19443. </method>
  19444. <method name="setDictionary"
  19445. abstract="false" native="false" synchronized="true"
  19446. static="false" final="false" visibility="public"
  19447. deprecated="not deprecated">
  19448. <param name="b" type="byte[]"/>
  19449. <param name="off" type="int"/>
  19450. <param name="len" type="int"/>
  19451. </method>
  19452. <method name="needsInput" return="boolean"
  19453. abstract="false" native="false" synchronized="true"
  19454. static="false" final="false" visibility="public"
  19455. deprecated="not deprecated">
  19456. </method>
  19457. <method name="needsDictionary" return="boolean"
  19458. abstract="false" native="false" synchronized="true"
  19459. static="false" final="false" visibility="public"
  19460. deprecated="not deprecated">
  19461. </method>
  19462. <method name="finished" return="boolean"
  19463. abstract="false" native="false" synchronized="true"
  19464. static="false" final="false" visibility="public"
  19465. deprecated="not deprecated">
  19466. </method>
  19467. <method name="decompress" return="int"
  19468. abstract="false" native="false" synchronized="true"
  19469. static="false" final="false" visibility="public"
  19470. deprecated="not deprecated">
  19471. <param name="b" type="byte[]"/>
  19472. <param name="off" type="int"/>
  19473. <param name="len" type="int"/>
  19474. <exception name="IOException" type="java.io.IOException"/>
  19475. </method>
  19476. <method name="getBytesWritten" return="long"
  19477. abstract="false" native="false" synchronized="true"
  19478. static="false" final="false" visibility="public"
  19479. deprecated="not deprecated">
  19480. <doc>
  19481. <![CDATA[Returns the total number of uncompressed bytes output so far.
  19482. @return the total (non-negative) number of uncompressed bytes output so far]]>
  19483. </doc>
  19484. </method>
  19485. <method name="getBytesRead" return="long"
  19486. abstract="false" native="false" synchronized="true"
  19487. static="false" final="false" visibility="public"
  19488. deprecated="not deprecated">
  19489. <doc>
  19490. <![CDATA[Returns the total number of compressed bytes input so far.</p>
  19491. @return the total (non-negative) number of compressed bytes input so far]]>
  19492. </doc>
  19493. </method>
  19494. <method name="getRemaining" return="int"
  19495. abstract="false" native="false" synchronized="true"
  19496. static="false" final="false" visibility="public"
  19497. deprecated="not deprecated">
  19498. <doc>
  19499. <![CDATA[Returns the number of bytes remaining in the input buffers; normally
  19500. called when finished() is true to determine amount of post-gzip-stream
  19501. data.</p>
  19502. @return the total (non-negative) number of unprocessed bytes in input]]>
  19503. </doc>
  19504. </method>
  19505. <method name="reset"
  19506. abstract="false" native="false" synchronized="true"
  19507. static="false" final="false" visibility="public"
  19508. deprecated="not deprecated">
  19509. <doc>
  19510. <![CDATA[Resets everything including the input buffers (user and direct).</p>]]>
  19511. </doc>
  19512. </method>
  19513. <method name="end"
  19514. abstract="false" native="false" synchronized="true"
  19515. static="false" final="false" visibility="public"
  19516. deprecated="not deprecated">
  19517. </method>
  19518. <method name="finalize"
  19519. abstract="false" native="false" synchronized="false"
  19520. static="false" final="false" visibility="protected"
  19521. deprecated="not deprecated">
  19522. </method>
  19523. <doc>
  19524. <![CDATA[A {@link Decompressor} based on the popular
  19525. zlib compression algorithm.
  19526. http://www.zlib.net/]]>
  19527. </doc>
  19528. </class>
  19529. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19530. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19531. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  19532. abstract="false"
  19533. static="true" final="true" visibility="public"
  19534. deprecated="not deprecated">
  19535. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  19536. abstract="false" native="false" synchronized="false"
  19537. static="true" final="false" visibility="public"
  19538. deprecated="not deprecated">
  19539. </method>
  19540. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19541. abstract="false" native="false" synchronized="false"
  19542. static="true" final="false" visibility="public"
  19543. deprecated="not deprecated">
  19544. <param name="name" type="java.lang.String"/>
  19545. </method>
  19546. <method name="windowBits" return="int"
  19547. abstract="false" native="false" synchronized="false"
  19548. static="false" final="false" visibility="public"
  19549. deprecated="not deprecated">
  19550. </method>
  19551. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19552. transient="false" volatile="false"
  19553. static="true" final="true" visibility="public"
  19554. deprecated="not deprecated">
  19555. <doc>
  19556. <![CDATA[No headers/trailers/checksums.]]>
  19557. </doc>
  19558. </field>
  19559. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19560. transient="false" volatile="false"
  19561. static="true" final="true" visibility="public"
  19562. deprecated="not deprecated">
  19563. <doc>
  19564. <![CDATA[Default headers/trailers/checksums.]]>
  19565. </doc>
  19566. </field>
  19567. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19568. transient="false" volatile="false"
  19569. static="true" final="true" visibility="public"
  19570. deprecated="not deprecated">
  19571. <doc>
  19572. <![CDATA[Simple gzip headers/trailers.]]>
  19573. </doc>
  19574. </field>
  19575. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19576. transient="false" volatile="false"
  19577. static="true" final="true" visibility="public"
  19578. deprecated="not deprecated">
  19579. <doc>
  19580. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  19581. </doc>
  19582. </field>
  19583. <doc>
  19584. <![CDATA[The headers to detect from compressed data.]]>
  19585. </doc>
  19586. </class>
  19587. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19588. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19589. <class name="ZlibFactory" extends="java.lang.Object"
  19590. abstract="false"
  19591. static="false" final="false" visibility="public"
  19592. deprecated="not deprecated">
  19593. <constructor name="ZlibFactory"
  19594. static="false" final="false" visibility="public"
  19595. deprecated="not deprecated">
  19596. </constructor>
  19597. <method name="isNativeZlibLoaded" return="boolean"
  19598. abstract="false" native="false" synchronized="false"
  19599. static="true" final="false" visibility="public"
  19600. deprecated="not deprecated">
  19601. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19602. <doc>
  19603. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  19604. can be loaded for this job.
  19605. @param conf configuration
  19606. @return <code>true</code> if native-zlib is loaded & initialized
  19607. and can be loaded for this job, else <code>false</code>]]>
  19608. </doc>
  19609. </method>
  19610. <method name="getZlibCompressorType" return="java.lang.Class"
  19611. abstract="false" native="false" synchronized="false"
  19612. static="true" final="false" visibility="public"
  19613. deprecated="not deprecated">
  19614. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19615. <doc>
  19616. <![CDATA[Return the appropriate type of the zlib compressor.
  19617. @param conf configuration
  19618. @return the appropriate type of the zlib compressor.]]>
  19619. </doc>
  19620. </method>
  19621. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19622. abstract="false" native="false" synchronized="false"
  19623. static="true" final="false" visibility="public"
  19624. deprecated="not deprecated">
  19625. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19626. <doc>
  19627. <![CDATA[Return the appropriate implementation of the zlib compressor.
  19628. @param conf configuration
  19629. @return the appropriate implementation of the zlib compressor.]]>
  19630. </doc>
  19631. </method>
  19632. <method name="getZlibDecompressorType" return="java.lang.Class"
  19633. abstract="false" native="false" synchronized="false"
  19634. static="true" final="false" visibility="public"
  19635. deprecated="not deprecated">
  19636. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19637. <doc>
  19638. <![CDATA[Return the appropriate type of the zlib decompressor.
  19639. @param conf configuration
  19640. @return the appropriate type of the zlib decompressor.]]>
  19641. </doc>
  19642. </method>
  19643. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19644. abstract="false" native="false" synchronized="false"
  19645. static="true" final="false" visibility="public"
  19646. deprecated="not deprecated">
  19647. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19648. <doc>
  19649. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  19650. @param conf configuration
  19651. @return the appropriate implementation of the zlib decompressor.]]>
  19652. </doc>
  19653. </method>
  19654. <method name="setCompressionStrategy"
  19655. abstract="false" native="false" synchronized="false"
  19656. static="true" final="false" visibility="public"
  19657. deprecated="not deprecated">
  19658. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19659. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19660. </method>
  19661. <method name="getCompressionStrategy" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19662. abstract="false" native="false" synchronized="false"
  19663. static="true" final="false" visibility="public"
  19664. deprecated="not deprecated">
  19665. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19666. </method>
  19667. <method name="setCompressionLevel"
  19668. abstract="false" native="false" synchronized="false"
  19669. static="true" final="false" visibility="public"
  19670. deprecated="not deprecated">
  19671. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19672. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19673. </method>
  19674. <method name="getCompressionLevel" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19675. abstract="false" native="false" synchronized="false"
  19676. static="true" final="false" visibility="public"
  19677. deprecated="not deprecated">
  19678. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19679. </method>
  19680. <doc>
  19681. <![CDATA[A collection of factories to create the right
  19682. zlib/gzip compressor/decompressor instances.]]>
  19683. </doc>
  19684. </class>
  19685. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19686. </package>
  19687. <package name="org.apache.hadoop.io.file.tfile">
  19688. <!-- start class org.apache.hadoop.io.file.tfile.ByteArray -->
  19689. <class name="ByteArray" extends="java.lang.Object"
  19690. abstract="false"
  19691. static="false" final="true" visibility="public"
  19692. deprecated="not deprecated">
  19693. <implements name="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19694. <constructor name="ByteArray" type="org.apache.hadoop.io.BytesWritable"
  19695. static="false" final="false" visibility="public"
  19696. deprecated="not deprecated">
  19697. <doc>
  19698. <![CDATA[Constructing a ByteArray from a {@link BytesWritable}.
  19699. @param other]]>
  19700. </doc>
  19701. </constructor>
  19702. <constructor name="ByteArray" type="byte[]"
  19703. static="false" final="false" visibility="public"
  19704. deprecated="not deprecated">
  19705. <doc>
  19706. <![CDATA[Wrap a whole byte array as a RawComparable.
  19707. @param buffer
  19708. the byte array buffer.]]>
  19709. </doc>
  19710. </constructor>
  19711. <constructor name="ByteArray" type="byte[], int, int"
  19712. static="false" final="false" visibility="public"
  19713. deprecated="not deprecated">
  19714. <doc>
  19715. <![CDATA[Wrap a partial byte array as a RawComparable.
  19716. @param buffer
  19717. the byte array buffer.
  19718. @param offset
  19719. the starting offset
  19720. @param len
  19721. the length of the consecutive bytes to be wrapped.]]>
  19722. </doc>
  19723. </constructor>
  19724. <method name="buffer" return="byte[]"
  19725. abstract="false" native="false" synchronized="false"
  19726. static="false" final="false" visibility="public"
  19727. deprecated="not deprecated">
  19728. <doc>
  19729. <![CDATA[@return the underlying buffer.]]>
  19730. </doc>
  19731. </method>
  19732. <method name="offset" return="int"
  19733. abstract="false" native="false" synchronized="false"
  19734. static="false" final="false" visibility="public"
  19735. deprecated="not deprecated">
  19736. <doc>
  19737. <![CDATA[@return the offset in the buffer.]]>
  19738. </doc>
  19739. </method>
  19740. <method name="size" return="int"
  19741. abstract="false" native="false" synchronized="false"
  19742. static="false" final="false" visibility="public"
  19743. deprecated="not deprecated">
  19744. <doc>
  19745. <![CDATA[@return the size of the byte array.]]>
  19746. </doc>
  19747. </method>
  19748. <doc>
  19749. <![CDATA[Adaptor class to wrap byte-array backed objects (including java byte array)
  19750. as RawComparable objects.]]>
  19751. </doc>
  19752. </class>
  19753. <!-- end class org.apache.hadoop.io.file.tfile.ByteArray -->
  19754. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  19755. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  19756. abstract="false"
  19757. static="false" final="false" visibility="public"
  19758. deprecated="not deprecated">
  19759. <doc>
  19760. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  19761. </doc>
  19762. </class>
  19763. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  19764. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  19765. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  19766. abstract="false"
  19767. static="false" final="false" visibility="public"
  19768. deprecated="not deprecated">
  19769. <doc>
  19770. <![CDATA[Exception - No such Meta Block with the given name.]]>
  19771. </doc>
  19772. </class>
  19773. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  19774. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  19775. <interface name="RawComparable" abstract="true"
  19776. static="false" final="false" visibility="public"
  19777. deprecated="not deprecated">
  19778. <method name="buffer" return="byte[]"
  19779. abstract="false" native="false" synchronized="false"
  19780. static="false" final="false" visibility="public"
  19781. deprecated="not deprecated">
  19782. <doc>
  19783. <![CDATA[Get the underlying byte array.
  19784. @return The underlying byte array.]]>
  19785. </doc>
  19786. </method>
  19787. <method name="offset" return="int"
  19788. abstract="false" native="false" synchronized="false"
  19789. static="false" final="false" visibility="public"
  19790. deprecated="not deprecated">
  19791. <doc>
  19792. <![CDATA[Get the offset of the first byte in the byte array.
  19793. @return The offset of the first byte in the byte array.]]>
  19794. </doc>
  19795. </method>
  19796. <method name="size" return="int"
  19797. abstract="false" native="false" synchronized="false"
  19798. static="false" final="false" visibility="public"
  19799. deprecated="not deprecated">
  19800. <doc>
  19801. <![CDATA[Get the size of the byte range in the byte array.
  19802. @return The size of the byte range in the byte array.]]>
  19803. </doc>
  19804. </method>
  19805. <doc>
  19806. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  19807. This is useful in places where we need a single object reference to specify a
  19808. range of bytes in a byte array, such as {@link Comparable} or
  19809. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  19810. The actual comparison among RawComparable's requires an external
  19811. RawComparator and it is applications' responsibility to ensure two
  19812. RawComparable are supposed to be semantically comparable with the same
  19813. RawComparator.]]>
  19814. </doc>
  19815. </interface>
  19816. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  19817. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  19818. <class name="TFile" extends="java.lang.Object"
  19819. abstract="false"
  19820. static="false" final="false" visibility="public"
  19821. deprecated="not deprecated">
  19822. <method name="makeComparator" return="java.util.Comparator"
  19823. abstract="false" native="false" synchronized="false"
  19824. static="true" final="false" visibility="public"
  19825. deprecated="not deprecated">
  19826. <param name="name" type="java.lang.String"/>
  19827. <doc>
  19828. <![CDATA[Make a raw comparator from a string name.
  19829. @param name
  19830. Comparator name
  19831. @return A RawComparable comparator.]]>
  19832. </doc>
  19833. </method>
  19834. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  19835. abstract="false" native="false" synchronized="false"
  19836. static="true" final="false" visibility="public"
  19837. deprecated="not deprecated">
  19838. <doc>
  19839. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  19840. TFile.Writer.
  19841. @return Array of strings, each represents a supported compression
  19842. algorithm. Currently, the following compression algorithms are
  19843. supported.
  19844. <ul>
  19845. <li>"none" - No compression.
  19846. <li>"lzo" - LZO compression.
  19847. <li>"gz" - GZIP compression.
  19848. </ul>]]>
  19849. </doc>
  19850. </method>
  19851. <method name="main"
  19852. abstract="false" native="false" synchronized="false"
  19853. static="true" final="false" visibility="public"
  19854. deprecated="not deprecated">
  19855. <param name="args" type="java.lang.String[]"/>
  19856. <doc>
  19857. <![CDATA[Dumping the TFile information.
  19858. @param args
  19859. A list of TFile paths.]]>
  19860. </doc>
  19861. </method>
  19862. <field name="COMPRESSION_GZ" type="java.lang.String"
  19863. transient="false" volatile="false"
  19864. static="true" final="true" visibility="public"
  19865. deprecated="not deprecated">
  19866. <doc>
  19867. <![CDATA[compression: gzip]]>
  19868. </doc>
  19869. </field>
  19870. <field name="COMPRESSION_LZO" type="java.lang.String"
  19871. transient="false" volatile="false"
  19872. static="true" final="true" visibility="public"
  19873. deprecated="not deprecated">
  19874. <doc>
  19875. <![CDATA[compression: lzo]]>
  19876. </doc>
  19877. </field>
  19878. <field name="COMPRESSION_NONE" type="java.lang.String"
  19879. transient="false" volatile="false"
  19880. static="true" final="true" visibility="public"
  19881. deprecated="not deprecated">
  19882. <doc>
  19883. <![CDATA[compression: none]]>
  19884. </doc>
  19885. </field>
  19886. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  19887. transient="false" volatile="false"
  19888. static="true" final="true" visibility="public"
  19889. deprecated="not deprecated">
  19890. <doc>
  19891. <![CDATA[comparator: memcmp]]>
  19892. </doc>
  19893. </field>
  19894. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  19895. transient="false" volatile="false"
  19896. static="true" final="true" visibility="public"
  19897. deprecated="not deprecated">
  19898. <doc>
  19899. <![CDATA[comparator prefix: java class]]>
  19900. </doc>
  19901. </field>
  19902. <doc>
  19903. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  19904. bytes. Keys are restricted to 64KB, value length is not restricted
  19905. (practically limited to the available disk storage). TFile further provides
  19906. the following features:
  19907. <ul>
  19908. <li>Block Compression.
  19909. <li>Named meta data blocks.
  19910. <li>Sorted or unsorted keys.
  19911. <li>Seek by key or by file offset.
  19912. </ul>
  19913. The memory footprint of a TFile includes the following:
  19914. <ul>
  19915. <li>Some constant overhead of reading or writing a compressed block.
  19916. <ul>
  19917. <li>Each compressed block requires one compression/decompression codec for
  19918. I/O.
  19919. <li>Temporary space to buffer the key.
  19920. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  19921. chunk encoded, so that we buffer at most one chunk of user data. By default,
  19922. the chunk buffer is 1MB. Reading chunked value does not require additional
  19923. memory.
  19924. </ul>
  19925. <li>TFile index, which is proportional to the total number of Data Blocks.
  19926. The total amount of memory needed to hold the index can be estimated as
  19927. (56+AvgKeySize)*NumBlocks.
  19928. <li>MetaBlock index, which is proportional to the total number of Meta
  19929. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  19930. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  19931. </ul>
  19932. <p>
  19933. The behavior of TFile can be customized by the following variables through
  19934. Configuration:
  19935. <ul>
  19936. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  19937. to 1MB. Values of the length less than the chunk size is guaranteed to have
  19938. known value length in read time (See
  19939. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  19940. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  19941. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  19942. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  19943. FSDataInputStream. Integer (in bytes). Default to 256KB.
  19944. </ul>
  19945. <p>
  19946. Suggestions on performance optimization.
  19947. <ul>
  19948. <li>Minimum block size. We recommend a setting of minimum block size between
  19949. 256KB to 1MB for general usage. Larger block size is preferred if files are
  19950. primarily for sequential access. However, it would lead to inefficient random
  19951. access (because there are more data to decompress). Smaller blocks are good
  19952. for random access, but require more memory to hold the block index, and may
  19953. be slower to create (because we must flush the compressor stream at the
  19954. conclusion of each data block, which leads to an FS I/O flush). Further, due
  19955. to the internal caching in Compression codec, the smallest possible block
  19956. size would be around 20KB-30KB.
  19957. <li>The current implementation does not offer true multi-threading for
  19958. reading. The implementation uses FSDataInputStream seek()+read(), which is
  19959. shown to be much faster than positioned-read call in single thread mode.
  19960. However, it also means that if multiple threads attempt to access the same
  19961. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  19962. sequentially even if they access different DFS blocks.
  19963. <li>Compression codec. Use "none" if the data is not very compressable (by
  19964. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  19965. as the starting point for experimenting. "gz" overs slightly better
  19966. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  19967. decompress, comparing to "lzo".
  19968. <li>File system buffering, if the underlying FSDataInputStream and
  19969. FSDataOutputStream is already adequately buffered; or if applications
  19970. reads/writes keys and values in large buffers, we can reduce the sizes of
  19971. input/output buffering in TFile layer by setting the configuration parameters
  19972. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  19973. </ul>
  19974. Some design rationale behind TFile can be found at <a
  19975. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  19976. </doc>
  19977. </class>
  19978. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  19979. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  19980. <class name="TFile.Reader" extends="java.lang.Object"
  19981. abstract="false"
  19982. static="true" final="false" visibility="public"
  19983. deprecated="not deprecated">
  19984. <implements name="java.io.Closeable"/>
  19985. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  19986. static="false" final="false" visibility="public"
  19987. deprecated="not deprecated">
  19988. <exception name="IOException" type="java.io.IOException"/>
  19989. <doc>
  19990. <![CDATA[Constructor
  19991. @param fsdis
  19992. FS input stream of the TFile.
  19993. @param fileLength
  19994. The length of TFile. This is required because we have no easy
  19995. way of knowing the actual size of the input file through the
  19996. File input stream.
  19997. @param conf
  19998. @throws IOException]]>
  19999. </doc>
  20000. </constructor>
  20001. <method name="close"
  20002. abstract="false" native="false" synchronized="false"
  20003. static="false" final="false" visibility="public"
  20004. deprecated="not deprecated">
  20005. <exception name="IOException" type="java.io.IOException"/>
  20006. <doc>
  20007. <![CDATA[Close the reader. The state of the Reader object is undefined after
  20008. close. Calling close() for multiple times has no effect.]]>
  20009. </doc>
  20010. </method>
  20011. <method name="getComparatorName" return="java.lang.String"
  20012. abstract="false" native="false" synchronized="false"
  20013. static="false" final="false" visibility="public"
  20014. deprecated="not deprecated">
  20015. <doc>
  20016. <![CDATA[Get the string representation of the comparator.
  20017. @return If the TFile is not sorted by keys, an empty string will be
  20018. returned. Otherwise, the actual comparator string that is
  20019. provided during the TFile creation time will be returned.]]>
  20020. </doc>
  20021. </method>
  20022. <method name="isSorted" return="boolean"
  20023. abstract="false" native="false" synchronized="false"
  20024. static="false" final="false" visibility="public"
  20025. deprecated="not deprecated">
  20026. <doc>
  20027. <![CDATA[Is the TFile sorted?
  20028. @return true if TFile is sorted.]]>
  20029. </doc>
  20030. </method>
  20031. <method name="getEntryCount" return="long"
  20032. abstract="false" native="false" synchronized="false"
  20033. static="false" final="false" visibility="public"
  20034. deprecated="not deprecated">
  20035. <doc>
  20036. <![CDATA[Get the number of key-value pair entries in TFile.
  20037. @return the number of key-value pairs in TFile]]>
  20038. </doc>
  20039. </method>
  20040. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20041. abstract="false" native="false" synchronized="false"
  20042. static="false" final="false" visibility="public"
  20043. deprecated="not deprecated">
  20044. <exception name="IOException" type="java.io.IOException"/>
  20045. <doc>
  20046. <![CDATA[Get the first key in the TFile.
  20047. @return The first key in the TFile.
  20048. @throws IOException]]>
  20049. </doc>
  20050. </method>
  20051. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20052. abstract="false" native="false" synchronized="false"
  20053. static="false" final="false" visibility="public"
  20054. deprecated="not deprecated">
  20055. <exception name="IOException" type="java.io.IOException"/>
  20056. <doc>
  20057. <![CDATA[Get the last key in the TFile.
  20058. @return The last key in the TFile.
  20059. @throws IOException]]>
  20060. </doc>
  20061. </method>
  20062. <method name="getEntryComparator" return="java.util.Comparator"
  20063. abstract="false" native="false" synchronized="false"
  20064. static="false" final="false" visibility="public"
  20065. deprecated="not deprecated">
  20066. <doc>
  20067. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  20068. stores the entries in a collection (such as PriorityQueue) and perform
  20069. sorting or comparison among entries based on the keys without copying out
  20070. the key.
  20071. @return An Entry Comparator..]]>
  20072. </doc>
  20073. </method>
  20074. <method name="getComparator" return="java.util.Comparator"
  20075. abstract="false" native="false" synchronized="false"
  20076. static="false" final="false" visibility="public"
  20077. deprecated="not deprecated">
  20078. <doc>
  20079. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  20080. string comparator representation.
  20081. @return a Comparator that can compare RawComparable's.]]>
  20082. </doc>
  20083. </method>
  20084. <method name="getMetaBlock" return="java.io.DataInputStream"
  20085. abstract="false" native="false" synchronized="false"
  20086. static="false" final="false" visibility="public"
  20087. deprecated="not deprecated">
  20088. <param name="name" type="java.lang.String"/>
  20089. <exception name="IOException" type="java.io.IOException"/>
  20090. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  20091. <doc>
  20092. <![CDATA[Stream access to a meta block.``
  20093. @param name
  20094. The name of the meta block.
  20095. @return The input stream.
  20096. @throws IOException
  20097. on I/O error.
  20098. @throws MetaBlockDoesNotExist
  20099. If the meta block with the name does not exist.]]>
  20100. </doc>
  20101. </method>
  20102. <method name="getRecordNumNear" return="long"
  20103. abstract="false" native="false" synchronized="false"
  20104. static="false" final="false" visibility="public"
  20105. deprecated="not deprecated">
  20106. <param name="offset" type="long"/>
  20107. <exception name="IOException" type="java.io.IOException"/>
  20108. <doc>
  20109. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  20110. whose byte offset in the TFile is greater than or equal to the specified
  20111. offset.
  20112. @param offset
  20113. the user supplied offset.
  20114. @return the RecordNum to the corresponding entry. If no such entry
  20115. exists, it returns the total entry count.
  20116. @throws IOException]]>
  20117. </doc>
  20118. </method>
  20119. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20120. abstract="false" native="false" synchronized="false"
  20121. static="false" final="false" visibility="public"
  20122. deprecated="not deprecated">
  20123. <param name="offset" type="long"/>
  20124. <exception name="IOException" type="java.io.IOException"/>
  20125. <doc>
  20126. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  20127. than or equal to the specified offset.
  20128. @param offset
  20129. The file offset.
  20130. @return the key that fits the requirement; or null if no such key exists
  20131. (which could happen if the offset is close to the end of the
  20132. TFile).
  20133. @throws IOException]]>
  20134. </doc>
  20135. </method>
  20136. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20137. abstract="false" native="false" synchronized="false"
  20138. static="false" final="false" visibility="public"
  20139. deprecated="not deprecated">
  20140. <exception name="IOException" type="java.io.IOException"/>
  20141. <doc>
  20142. <![CDATA[Get a scanner than can scan the whole TFile.
  20143. @return The scanner object. A valid Scanner is always returned even if
  20144. the TFile is empty.
  20145. @throws IOException]]>
  20146. </doc>
  20147. </method>
  20148. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20149. abstract="false" native="false" synchronized="false"
  20150. static="false" final="false" visibility="public"
  20151. deprecated="not deprecated">
  20152. <param name="offset" type="long"/>
  20153. <param name="length" type="long"/>
  20154. <exception name="IOException" type="java.io.IOException"/>
  20155. <doc>
  20156. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  20157. @param offset
  20158. The beginning byte offset in the TFile.
  20159. @param length
  20160. The length of the region.
  20161. @return The actual coverage of the returned scanner tries to match the
  20162. specified byte-region but always round up to the compression
  20163. block boundaries. It is possible that the returned scanner
  20164. contains zero key-value pairs even if length is positive.
  20165. @throws IOException]]>
  20166. </doc>
  20167. </method>
  20168. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20169. abstract="false" native="false" synchronized="false"
  20170. static="false" final="false" visibility="public"
  20171. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  20172. <param name="beginKey" type="byte[]"/>
  20173. <param name="endKey" type="byte[]"/>
  20174. <exception name="IOException" type="java.io.IOException"/>
  20175. <doc>
  20176. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  20177. @param beginKey
  20178. Begin key of the scan (inclusive). If null, scan from the first
  20179. key-value entry of the TFile.
  20180. @param endKey
  20181. End key of the scan (exclusive). If null, scan up to the last
  20182. key-value entry of the TFile.
  20183. @return The actual coverage of the returned scanner will cover all keys
  20184. greater than or equal to the beginKey and less than the endKey.
  20185. @throws IOException
  20186. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  20187. </doc>
  20188. </method>
  20189. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20190. abstract="false" native="false" synchronized="false"
  20191. static="false" final="false" visibility="public"
  20192. deprecated="not deprecated">
  20193. <param name="beginKey" type="byte[]"/>
  20194. <param name="endKey" type="byte[]"/>
  20195. <exception name="IOException" type="java.io.IOException"/>
  20196. <doc>
  20197. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  20198. @param beginKey
  20199. Begin key of the scan (inclusive). If null, scan from the first
  20200. key-value entry of the TFile.
  20201. @param endKey
  20202. End key of the scan (exclusive). If null, scan up to the last
  20203. key-value entry of the TFile.
  20204. @return The actual coverage of the returned scanner will cover all keys
  20205. greater than or equal to the beginKey and less than the endKey.
  20206. @throws IOException]]>
  20207. </doc>
  20208. </method>
  20209. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20210. abstract="false" native="false" synchronized="false"
  20211. static="false" final="false" visibility="public"
  20212. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  20213. instead.">
  20214. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20215. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20216. <exception name="IOException" type="java.io.IOException"/>
  20217. <doc>
  20218. <![CDATA[Get a scanner that covers a specific key range.
  20219. @param beginKey
  20220. Begin key of the scan (inclusive). If null, scan from the first
  20221. key-value entry of the TFile.
  20222. @param endKey
  20223. End key of the scan (exclusive). If null, scan up to the last
  20224. key-value entry of the TFile.
  20225. @return The actual coverage of the returned scanner will cover all keys
  20226. greater than or equal to the beginKey and less than the endKey.
  20227. @throws IOException
  20228. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  20229. instead.]]>
  20230. </doc>
  20231. </method>
  20232. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20233. abstract="false" native="false" synchronized="false"
  20234. static="false" final="false" visibility="public"
  20235. deprecated="not deprecated">
  20236. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20237. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20238. <exception name="IOException" type="java.io.IOException"/>
  20239. <doc>
  20240. <![CDATA[Get a scanner that covers a specific key range.
  20241. @param beginKey
  20242. Begin key of the scan (inclusive). If null, scan from the first
  20243. key-value entry of the TFile.
  20244. @param endKey
  20245. End key of the scan (exclusive). If null, scan up to the last
  20246. key-value entry of the TFile.
  20247. @return The actual coverage of the returned scanner will cover all keys
  20248. greater than or equal to the beginKey and less than the endKey.
  20249. @throws IOException]]>
  20250. </doc>
  20251. </method>
  20252. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20253. abstract="false" native="false" synchronized="false"
  20254. static="false" final="false" visibility="public"
  20255. deprecated="not deprecated">
  20256. <param name="beginRecNum" type="long"/>
  20257. <param name="endRecNum" type="long"/>
  20258. <exception name="IOException" type="java.io.IOException"/>
  20259. <doc>
  20260. <![CDATA[Create a scanner that covers a range of records.
  20261. @param beginRecNum
  20262. The RecordNum for the first record (inclusive).
  20263. @param endRecNum
  20264. The RecordNum for the last record (exclusive). To scan the whole
  20265. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  20266. @return The TFile scanner that covers the specified range of records.
  20267. @throws IOException]]>
  20268. </doc>
  20269. </method>
  20270. <doc>
  20271. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  20272. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  20273. ) , a portion of TFile based on byte offsets (
  20274. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  20275. fall in a certain key range (for sorted TFile only,
  20276. {@link Reader#createScannerByKey(byte[], byte[])} or
  20277. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  20278. </doc>
  20279. </class>
  20280. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  20281. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  20282. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  20283. abstract="false"
  20284. static="true" final="false" visibility="public"
  20285. deprecated="not deprecated">
  20286. <implements name="java.io.Closeable"/>
  20287. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  20288. static="false" final="false" visibility="protected"
  20289. deprecated="not deprecated">
  20290. <exception name="IOException" type="java.io.IOException"/>
  20291. <doc>
  20292. <![CDATA[Constructor
  20293. @param reader
  20294. The TFile reader object.
  20295. @param offBegin
  20296. Begin byte-offset of the scan.
  20297. @param offEnd
  20298. End byte-offset of the scan.
  20299. @throws IOException
  20300. The offsets will be rounded to the beginning of a compressed
  20301. block whose offset is greater than or equal to the specified
  20302. offset.]]>
  20303. </doc>
  20304. </constructor>
  20305. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, org.apache.hadoop.io.file.tfile.RawComparable, org.apache.hadoop.io.file.tfile.RawComparable"
  20306. static="false" final="false" visibility="protected"
  20307. deprecated="not deprecated">
  20308. <exception name="IOException" type="java.io.IOException"/>
  20309. <doc>
  20310. <![CDATA[Constructor
  20311. @param reader
  20312. The TFile reader object.
  20313. @param beginKey
  20314. Begin key of the scan. If null, scan from the first <K,V>
  20315. entry of the TFile.
  20316. @param endKey
  20317. End key of the scan. If null, scan up to the last <K, V> entry
  20318. of the TFile.
  20319. @throws IOException]]>
  20320. </doc>
  20321. </constructor>
  20322. <method name="seekTo" return="boolean"
  20323. abstract="false" native="false" synchronized="false"
  20324. static="false" final="false" visibility="public"
  20325. deprecated="not deprecated">
  20326. <param name="key" type="byte[]"/>
  20327. <exception name="IOException" type="java.io.IOException"/>
  20328. <doc>
  20329. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20330. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  20331. returned by the previous entry() call will be invalid.
  20332. @param key
  20333. The input key
  20334. @return true if we find an equal key.
  20335. @throws IOException]]>
  20336. </doc>
  20337. </method>
  20338. <method name="seekTo" return="boolean"
  20339. abstract="false" native="false" synchronized="false"
  20340. static="false" final="false" visibility="public"
  20341. deprecated="not deprecated">
  20342. <param name="key" type="byte[]"/>
  20343. <param name="keyOffset" type="int"/>
  20344. <param name="keyLen" type="int"/>
  20345. <exception name="IOException" type="java.io.IOException"/>
  20346. <doc>
  20347. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20348. to the input key. The entry returned by the previous entry() call will
  20349. be invalid.
  20350. @param key
  20351. The input key
  20352. @param keyOffset
  20353. offset in the key buffer.
  20354. @param keyLen
  20355. key buffer length.
  20356. @return true if we find an equal key; false otherwise.
  20357. @throws IOException]]>
  20358. </doc>
  20359. </method>
  20360. <method name="rewind"
  20361. abstract="false" native="false" synchronized="false"
  20362. static="false" final="false" visibility="public"
  20363. deprecated="not deprecated">
  20364. <exception name="IOException" type="java.io.IOException"/>
  20365. <doc>
  20366. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  20367. previous entry() call will be invalid.
  20368. @throws IOException]]>
  20369. </doc>
  20370. </method>
  20371. <method name="seekToEnd"
  20372. abstract="false" native="false" synchronized="false"
  20373. static="false" final="false" visibility="public"
  20374. deprecated="not deprecated">
  20375. <exception name="IOException" type="java.io.IOException"/>
  20376. <doc>
  20377. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  20378. entry() call will be invalid.
  20379. @throws IOException]]>
  20380. </doc>
  20381. </method>
  20382. <method name="lowerBound"
  20383. abstract="false" native="false" synchronized="false"
  20384. static="false" final="false" visibility="public"
  20385. deprecated="not deprecated">
  20386. <param name="key" type="byte[]"/>
  20387. <exception name="IOException" type="java.io.IOException"/>
  20388. <doc>
  20389. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20390. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  20391. entry returned by the previous entry() call will be invalid.
  20392. @param key
  20393. The input key
  20394. @throws IOException]]>
  20395. </doc>
  20396. </method>
  20397. <method name="lowerBound"
  20398. abstract="false" native="false" synchronized="false"
  20399. static="false" final="false" visibility="public"
  20400. deprecated="not deprecated">
  20401. <param name="key" type="byte[]"/>
  20402. <param name="keyOffset" type="int"/>
  20403. <param name="keyLen" type="int"/>
  20404. <exception name="IOException" type="java.io.IOException"/>
  20405. <doc>
  20406. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20407. to the input key. The entry returned by the previous entry() call will
  20408. be invalid.
  20409. @param key
  20410. The input key
  20411. @param keyOffset
  20412. offset in the key buffer.
  20413. @param keyLen
  20414. key buffer length.
  20415. @throws IOException]]>
  20416. </doc>
  20417. </method>
  20418. <method name="upperBound"
  20419. abstract="false" native="false" synchronized="false"
  20420. static="false" final="false" visibility="public"
  20421. deprecated="not deprecated">
  20422. <param name="key" type="byte[]"/>
  20423. <exception name="IOException" type="java.io.IOException"/>
  20424. <doc>
  20425. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  20426. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  20427. returned by the previous entry() call will be invalid.
  20428. @param key
  20429. The input key
  20430. @throws IOException]]>
  20431. </doc>
  20432. </method>
  20433. <method name="upperBound"
  20434. abstract="false" native="false" synchronized="false"
  20435. static="false" final="false" visibility="public"
  20436. deprecated="not deprecated">
  20437. <param name="key" type="byte[]"/>
  20438. <param name="keyOffset" type="int"/>
  20439. <param name="keyLen" type="int"/>
  20440. <exception name="IOException" type="java.io.IOException"/>
  20441. <doc>
  20442. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  20443. the input key. The entry returned by the previous entry() call will be
  20444. invalid.
  20445. @param key
  20446. The input key
  20447. @param keyOffset
  20448. offset in the key buffer.
  20449. @param keyLen
  20450. key buffer length.
  20451. @throws IOException]]>
  20452. </doc>
  20453. </method>
  20454. <method name="advance" return="boolean"
  20455. abstract="false" native="false" synchronized="false"
  20456. static="false" final="false" visibility="public"
  20457. deprecated="not deprecated">
  20458. <exception name="IOException" type="java.io.IOException"/>
  20459. <doc>
  20460. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  20461. previous entry() call will be invalid.
  20462. @return true if the cursor successfully moves. False when cursor is
  20463. already at the end location and cannot be advanced.
  20464. @throws IOException]]>
  20465. </doc>
  20466. </method>
  20467. <method name="close"
  20468. abstract="false" native="false" synchronized="false"
  20469. static="false" final="false" visibility="public"
  20470. deprecated="not deprecated">
  20471. <exception name="IOException" type="java.io.IOException"/>
  20472. <doc>
  20473. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  20474. scanner after calling close is not defined. The entry returned by the
  20475. previous entry() call will be invalid.]]>
  20476. </doc>
  20477. </method>
  20478. <method name="atEnd" return="boolean"
  20479. abstract="false" native="false" synchronized="false"
  20480. static="false" final="false" visibility="public"
  20481. deprecated="not deprecated">
  20482. <doc>
  20483. <![CDATA[Is cursor at the end location?
  20484. @return true if the cursor is at the end location.]]>
  20485. </doc>
  20486. </method>
  20487. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  20488. abstract="false" native="false" synchronized="false"
  20489. static="false" final="false" visibility="public"
  20490. deprecated="not deprecated">
  20491. <exception name="IOException" type="java.io.IOException"/>
  20492. <doc>
  20493. <![CDATA[Get an entry to access the key and value.
  20494. @return The Entry object to access the key and value.
  20495. @throws IOException]]>
  20496. </doc>
  20497. </method>
  20498. <method name="getRecordNum" return="long"
  20499. abstract="false" native="false" synchronized="false"
  20500. static="false" final="false" visibility="public"
  20501. deprecated="not deprecated">
  20502. <exception name="IOException" type="java.io.IOException"/>
  20503. <doc>
  20504. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  20505. @return The RecordNum corresponding to the entry pointed by the cursor.
  20506. @throws IOException]]>
  20507. </doc>
  20508. </method>
  20509. <doc>
  20510. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  20511. creation, points to the first key-value pair in the scan range. If the
  20512. scan range is empty, the cursor will point to the end of the scan range.
  20513. <p>
  20514. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  20515. location of the scanner.
  20516. <p>
  20517. Use {@link Scanner#advance()} to move the cursor to the next key-value
  20518. pair (or end if none exists). Use seekTo methods (
  20519. {@link Scanner#seekTo(byte[])} or
  20520. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  20521. location in the covered range (including backward seeking). Use
  20522. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  20523. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  20524. <p>
  20525. Actual keys and values may be obtained through {@link Scanner.Entry}
  20526. object, which is obtained through {@link Scanner#entry()}.]]>
  20527. </doc>
  20528. </class>
  20529. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  20530. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  20531. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  20532. abstract="false"
  20533. static="false" final="false" visibility="public"
  20534. deprecated="not deprecated">
  20535. <implements name="java.lang.Comparable"/>
  20536. <constructor name="TFile.Reader.Scanner.Entry"
  20537. static="false" final="false" visibility="public"
  20538. deprecated="not deprecated">
  20539. </constructor>
  20540. <method name="getKeyLength" return="int"
  20541. abstract="false" native="false" synchronized="false"
  20542. static="false" final="false" visibility="public"
  20543. deprecated="not deprecated">
  20544. <doc>
  20545. <![CDATA[Get the length of the key.
  20546. @return the length of the key.]]>
  20547. </doc>
  20548. </method>
  20549. <method name="get"
  20550. abstract="false" native="false" synchronized="false"
  20551. static="false" final="false" visibility="public"
  20552. deprecated="not deprecated">
  20553. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20554. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20555. <exception name="IOException" type="java.io.IOException"/>
  20556. <doc>
  20557. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  20558. equivalent to getKey(key); getValue(value);
  20559. @param key
  20560. BytesWritable to hold key.
  20561. @param value
  20562. BytesWritable to hold value
  20563. @throws IOException]]>
  20564. </doc>
  20565. </method>
  20566. <method name="getKey" return="int"
  20567. abstract="false" native="false" synchronized="false"
  20568. static="false" final="false" visibility="public"
  20569. deprecated="not deprecated">
  20570. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20571. <exception name="IOException" type="java.io.IOException"/>
  20572. <doc>
  20573. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  20574. automatically resized to the actual key size.
  20575. @param key
  20576. BytesWritable to hold the key.
  20577. @throws IOException]]>
  20578. </doc>
  20579. </method>
  20580. <method name="getValue" return="long"
  20581. abstract="false" native="false" synchronized="false"
  20582. static="false" final="false" visibility="public"
  20583. deprecated="not deprecated">
  20584. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20585. <exception name="IOException" type="java.io.IOException"/>
  20586. <doc>
  20587. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  20588. automatically resized to the actual value size. The implementation
  20589. directly uses the buffer inside BytesWritable for storing the value.
  20590. The call does not require the value length to be known.
  20591. @param value
  20592. @throws IOException]]>
  20593. </doc>
  20594. </method>
  20595. <method name="writeKey" return="int"
  20596. abstract="false" native="false" synchronized="false"
  20597. static="false" final="false" visibility="public"
  20598. deprecated="not deprecated">
  20599. <param name="out" type="java.io.OutputStream"/>
  20600. <exception name="IOException" type="java.io.IOException"/>
  20601. <doc>
  20602. <![CDATA[Writing the key to the output stream. This method avoids copying key
  20603. buffer from Scanner into user buffer, then writing to the output
  20604. stream.
  20605. @param out
  20606. The output stream
  20607. @return the length of the key.
  20608. @throws IOException]]>
  20609. </doc>
  20610. </method>
  20611. <method name="writeValue" return="long"
  20612. abstract="false" native="false" synchronized="false"
  20613. static="false" final="false" visibility="public"
  20614. deprecated="not deprecated">
  20615. <param name="out" type="java.io.OutputStream"/>
  20616. <exception name="IOException" type="java.io.IOException"/>
  20617. <doc>
  20618. <![CDATA[Writing the value to the output stream. This method avoids copying
  20619. value data from Scanner into user buffer, then writing to the output
  20620. stream. It does not require the value length to be known.
  20621. @param out
  20622. The output stream
  20623. @return the length of the value
  20624. @throws IOException]]>
  20625. </doc>
  20626. </method>
  20627. <method name="getKey" return="int"
  20628. abstract="false" native="false" synchronized="false"
  20629. static="false" final="false" visibility="public"
  20630. deprecated="not deprecated">
  20631. <param name="buf" type="byte[]"/>
  20632. <exception name="IOException" type="java.io.IOException"/>
  20633. <doc>
  20634. <![CDATA[Copy the key into user supplied buffer.
  20635. @param buf
  20636. The buffer supplied by user. The length of the buffer must
  20637. not be shorter than the key length.
  20638. @return The length of the key.
  20639. @throws IOException]]>
  20640. </doc>
  20641. </method>
  20642. <method name="getKey" return="int"
  20643. abstract="false" native="false" synchronized="false"
  20644. static="false" final="false" visibility="public"
  20645. deprecated="not deprecated">
  20646. <param name="buf" type="byte[]"/>
  20647. <param name="offset" type="int"/>
  20648. <exception name="IOException" type="java.io.IOException"/>
  20649. <doc>
  20650. <![CDATA[Copy the key into user supplied buffer.
  20651. @param buf
  20652. The buffer supplied by user.
  20653. @param offset
  20654. The starting offset of the user buffer where we should copy
  20655. the key into. Requiring the key-length + offset no greater
  20656. than the buffer length.
  20657. @return The length of the key.
  20658. @throws IOException]]>
  20659. </doc>
  20660. </method>
  20661. <method name="getKeyStream" return="java.io.DataInputStream"
  20662. abstract="false" native="false" synchronized="false"
  20663. static="false" final="false" visibility="public"
  20664. deprecated="not deprecated">
  20665. <doc>
  20666. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  20667. user objects.
  20668. @return The input stream.]]>
  20669. </doc>
  20670. </method>
  20671. <method name="getValueLength" return="int"
  20672. abstract="false" native="false" synchronized="false"
  20673. static="false" final="false" visibility="public"
  20674. deprecated="not deprecated">
  20675. <doc>
  20676. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  20677. true.
  20678. @return the length of the value.]]>
  20679. </doc>
  20680. </method>
  20681. <method name="getValue" return="int"
  20682. abstract="false" native="false" synchronized="false"
  20683. static="false" final="false" visibility="public"
  20684. deprecated="not deprecated">
  20685. <param name="buf" type="byte[]"/>
  20686. <exception name="IOException" type="java.io.IOException"/>
  20687. <doc>
  20688. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20689. large enough to hold the whole value. The value part of the key-value
  20690. pair pointed by the current cursor is not cached and can only be
  20691. examined once. Calling any of the following functions more than once
  20692. without moving the cursor will result in exception:
  20693. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20694. {@link #getValueStream}.
  20695. @return the length of the value. Does not require
  20696. isValueLengthKnown() to be true.
  20697. @throws IOException]]>
  20698. </doc>
  20699. </method>
  20700. <method name="getValue" return="int"
  20701. abstract="false" native="false" synchronized="false"
  20702. static="false" final="false" visibility="public"
  20703. deprecated="not deprecated">
  20704. <param name="buf" type="byte[]"/>
  20705. <param name="offset" type="int"/>
  20706. <exception name="IOException" type="java.io.IOException"/>
  20707. <doc>
  20708. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20709. large enough to hold the whole value (starting from the offset). The
  20710. value part of the key-value pair pointed by the current cursor is not
  20711. cached and can only be examined once. Calling any of the following
  20712. functions more than once without moving the cursor will result in
  20713. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20714. {@link #getValueStream}.
  20715. @return the length of the value. Does not require
  20716. isValueLengthKnown() to be true.
  20717. @throws IOException]]>
  20718. </doc>
  20719. </method>
  20720. <method name="getValueStream" return="java.io.DataInputStream"
  20721. abstract="false" native="false" synchronized="false"
  20722. static="false" final="false" visibility="public"
  20723. deprecated="not deprecated">
  20724. <exception name="IOException" type="java.io.IOException"/>
  20725. <doc>
  20726. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  20727. by the current cursor is not cached and can only be examined once.
  20728. Calling any of the following functions more than once without moving
  20729. the cursor will result in exception: {@link #getValue(byte[])},
  20730. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  20731. @return The input stream for reading the value.
  20732. @throws IOException]]>
  20733. </doc>
  20734. </method>
  20735. <method name="isValueLengthKnown" return="boolean"
  20736. abstract="false" native="false" synchronized="false"
  20737. static="false" final="false" visibility="public"
  20738. deprecated="not deprecated">
  20739. <doc>
  20740. <![CDATA[Check whether it is safe to call getValueLength().
  20741. @return true if value length is known before hand. Values less than
  20742. the chunk size will always have their lengths known before
  20743. hand. Values that are written out as a whole (with advertised
  20744. length up-front) will always have their lengths known in
  20745. read.]]>
  20746. </doc>
  20747. </method>
  20748. <method name="compareTo" return="int"
  20749. abstract="false" native="false" synchronized="false"
  20750. static="false" final="false" visibility="public"
  20751. deprecated="not deprecated">
  20752. <param name="buf" type="byte[]"/>
  20753. <doc>
  20754. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  20755. key.length).
  20756. @param buf
  20757. The key buffer.
  20758. @return comparison result between the entry key with the input key.]]>
  20759. </doc>
  20760. </method>
  20761. <method name="compareTo" return="int"
  20762. abstract="false" native="false" synchronized="false"
  20763. static="false" final="false" visibility="public"
  20764. deprecated="not deprecated">
  20765. <param name="buf" type="byte[]"/>
  20766. <param name="offset" type="int"/>
  20767. <param name="length" type="int"/>
  20768. <doc>
  20769. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  20770. ByteArray(buf, offset, length)
  20771. @param buf
  20772. The key buffer
  20773. @param offset
  20774. offset into the key buffer.
  20775. @param length
  20776. the length of the key.
  20777. @return comparison result between the entry key with the input key.]]>
  20778. </doc>
  20779. </method>
  20780. <method name="compareTo" return="int"
  20781. abstract="false" native="false" synchronized="false"
  20782. static="false" final="false" visibility="public"
  20783. deprecated="not deprecated">
  20784. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20785. <doc>
  20786. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  20787. Entries are stored in a collection, and we want to compare a user
  20788. supplied key.]]>
  20789. </doc>
  20790. </method>
  20791. <method name="equals" return="boolean"
  20792. abstract="false" native="false" synchronized="false"
  20793. static="false" final="false" visibility="public"
  20794. deprecated="not deprecated">
  20795. <param name="other" type="java.lang.Object"/>
  20796. <doc>
  20797. <![CDATA[Compare whether this and other points to the same key value.]]>
  20798. </doc>
  20799. </method>
  20800. <method name="hashCode" return="int"
  20801. abstract="false" native="false" synchronized="false"
  20802. static="false" final="false" visibility="public"
  20803. deprecated="not deprecated">
  20804. </method>
  20805. <doc>
  20806. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  20807. </doc>
  20808. </class>
  20809. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  20810. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  20811. <class name="TFile.Writer" extends="java.lang.Object"
  20812. abstract="false"
  20813. static="true" final="false" visibility="public"
  20814. deprecated="not deprecated">
  20815. <implements name="java.io.Closeable"/>
  20816. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  20817. static="false" final="false" visibility="public"
  20818. deprecated="not deprecated">
  20819. <exception name="IOException" type="java.io.IOException"/>
  20820. <doc>
  20821. <![CDATA[Constructor
  20822. @param fsdos
  20823. output stream for writing. Must be at position 0.
  20824. @param minBlockSize
  20825. Minimum compressed block size in bytes. A compression block will
  20826. not be closed until it reaches this size except for the last
  20827. block.
  20828. @param compressName
  20829. Name of the compression algorithm. Must be one of the strings
  20830. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  20831. @param comparator
  20832. Leave comparator as null or empty string if TFile is not sorted.
  20833. Otherwise, provide the string name for the comparison algorithm
  20834. for keys. Two kinds of comparators are supported.
  20835. <ul>
  20836. <li>Algorithmic comparator: binary comparators that is language
  20837. independent. Currently, only "memcmp" is supported.
  20838. <li>Language-specific comparator: binary comparators that can
  20839. only be constructed in specific language. For Java, the syntax
  20840. is "jclass:", followed by the class name of the RawComparator.
  20841. Currently, we only support RawComparators that can be
  20842. constructed through the default constructor (with no
  20843. parameters). Parameterized RawComparators such as
  20844. {@link WritableComparator} or
  20845. {@link JavaSerializationComparator} may not be directly used.
  20846. One should write a wrapper class that inherits from such classes
  20847. and use its default constructor to perform proper
  20848. initialization.
  20849. </ul>
  20850. @param conf
  20851. The configuration object.
  20852. @throws IOException]]>
  20853. </doc>
  20854. </constructor>
  20855. <method name="close"
  20856. abstract="false" native="false" synchronized="false"
  20857. static="false" final="false" visibility="public"
  20858. deprecated="not deprecated">
  20859. <exception name="IOException" type="java.io.IOException"/>
  20860. <doc>
  20861. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  20862. being thrown. Future close calls will have no effect.
  20863. The underlying FSDataOutputStream is not closed.]]>
  20864. </doc>
  20865. </method>
  20866. <method name="append"
  20867. abstract="false" native="false" synchronized="false"
  20868. static="false" final="false" visibility="public"
  20869. deprecated="not deprecated">
  20870. <param name="key" type="byte[]"/>
  20871. <param name="value" type="byte[]"/>
  20872. <exception name="IOException" type="java.io.IOException"/>
  20873. <doc>
  20874. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  20875. append(key, 0, key.length, value, 0, value.length)
  20876. @param key
  20877. Buffer for key.
  20878. @param value
  20879. Buffer for value.
  20880. @throws IOException]]>
  20881. </doc>
  20882. </method>
  20883. <method name="append"
  20884. abstract="false" native="false" synchronized="false"
  20885. static="false" final="false" visibility="public"
  20886. deprecated="not deprecated">
  20887. <param name="key" type="byte[]"/>
  20888. <param name="koff" type="int"/>
  20889. <param name="klen" type="int"/>
  20890. <param name="value" type="byte[]"/>
  20891. <param name="voff" type="int"/>
  20892. <param name="vlen" type="int"/>
  20893. <exception name="IOException" type="java.io.IOException"/>
  20894. <doc>
  20895. <![CDATA[Adding a new key-value pair to TFile.
  20896. @param key
  20897. buffer for key.
  20898. @param koff
  20899. offset in key buffer.
  20900. @param klen
  20901. length of key.
  20902. @param value
  20903. buffer for value.
  20904. @param voff
  20905. offset in value buffer.
  20906. @param vlen
  20907. length of value.
  20908. @throws IOException
  20909. Upon IO errors.
  20910. <p>
  20911. If an exception is thrown, the TFile will be in an inconsistent
  20912. state. The only legitimate call after that would be close]]>
  20913. </doc>
  20914. </method>
  20915. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  20916. abstract="false" native="false" synchronized="false"
  20917. static="false" final="false" visibility="public"
  20918. deprecated="not deprecated">
  20919. <param name="length" type="int"/>
  20920. <exception name="IOException" type="java.io.IOException"/>
  20921. <doc>
  20922. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  20923. called when there is no active Key appending stream or value appending
  20924. stream.
  20925. @param length
  20926. The expected length of the key. If length of the key is not
  20927. known, set length = -1. Otherwise, the application must write
  20928. exactly as many bytes as specified here before calling close on
  20929. the returned output stream.
  20930. @return The key appending output stream.
  20931. @throws IOException]]>
  20932. </doc>
  20933. </method>
  20934. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  20935. abstract="false" native="false" synchronized="false"
  20936. static="false" final="false" visibility="public"
  20937. deprecated="not deprecated">
  20938. <param name="length" type="int"/>
  20939. <exception name="IOException" type="java.io.IOException"/>
  20940. <doc>
  20941. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  20942. called right after a key appending operation (the key append stream must
  20943. be closed).
  20944. @param length
  20945. The expected length of the value. If length of the value is not
  20946. known, set length = -1. Otherwise, the application must write
  20947. exactly as many bytes as specified here before calling close on
  20948. the returned output stream. Advertising the value size up-front
  20949. guarantees that the value is encoded in one chunk, and avoids
  20950. intermediate chunk buffering.
  20951. @throws IOException]]>
  20952. </doc>
  20953. </method>
  20954. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  20955. abstract="false" native="false" synchronized="false"
  20956. static="false" final="false" visibility="public"
  20957. deprecated="not deprecated">
  20958. <param name="name" type="java.lang.String"/>
  20959. <param name="compressName" type="java.lang.String"/>
  20960. <exception name="IOException" type="java.io.IOException"/>
  20961. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  20962. <doc>
  20963. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  20964. be called when there is a key append stream or value append stream
  20965. active. No more key-value insertion is allowed after a meta data block
  20966. has been added to TFile.
  20967. @param name
  20968. Name of the meta block.
  20969. @param compressName
  20970. Name of the compression algorithm to be used. Must be one of the
  20971. strings returned by
  20972. {@link TFile#getSupportedCompressionAlgorithms()}.
  20973. @return A DataOutputStream that can be used to write Meta Block data.
  20974. Closing the stream would signal the ending of the block.
  20975. @throws IOException
  20976. @throws MetaBlockAlreadyExists
  20977. the Meta Block with the same name already exists.]]>
  20978. </doc>
  20979. </method>
  20980. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  20981. abstract="false" native="false" synchronized="false"
  20982. static="false" final="false" visibility="public"
  20983. deprecated="not deprecated">
  20984. <param name="name" type="java.lang.String"/>
  20985. <exception name="IOException" type="java.io.IOException"/>
  20986. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  20987. <doc>
  20988. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  20989. be called when there is a key append stream or value append stream
  20990. active. No more key-value insertion is allowed after a meta data block
  20991. has been added to TFile. Data will be compressed using the default
  20992. compressor as defined in Writer's constructor.
  20993. @param name
  20994. Name of the meta block.
  20995. @return A DataOutputStream that can be used to write Meta Block data.
  20996. Closing the stream would signal the ending of the block.
  20997. @throws IOException
  20998. @throws MetaBlockAlreadyExists
  20999. the Meta Block with the same name already exists.]]>
  21000. </doc>
  21001. </method>
  21002. <doc>
  21003. <![CDATA[TFile Writer.]]>
  21004. </doc>
  21005. </class>
  21006. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  21007. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  21008. <class name="Utils" extends="java.lang.Object"
  21009. abstract="false"
  21010. static="false" final="true" visibility="public"
  21011. deprecated="not deprecated">
  21012. <method name="writeVInt"
  21013. abstract="false" native="false" synchronized="false"
  21014. static="true" final="false" visibility="public"
  21015. deprecated="not deprecated">
  21016. <param name="out" type="java.io.DataOutput"/>
  21017. <param name="n" type="int"/>
  21018. <exception name="IOException" type="java.io.IOException"/>
  21019. <doc>
  21020. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  21021. <code>Utils#writeVLong(out, n)</code>.
  21022. @param out
  21023. output stream
  21024. @param n
  21025. The integer to be encoded
  21026. @throws IOException
  21027. @see Utils#writeVLong(DataOutput, long)]]>
  21028. </doc>
  21029. </method>
  21030. <method name="writeVLong"
  21031. abstract="false" native="false" synchronized="false"
  21032. static="true" final="false" visibility="public"
  21033. deprecated="not deprecated">
  21034. <param name="out" type="java.io.DataOutput"/>
  21035. <param name="n" type="long"/>
  21036. <exception name="IOException" type="java.io.IOException"/>
  21037. <doc>
  21038. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  21039. <ul>
  21040. <li>if n in [-32, 127): encode in one byte with the actual value.
  21041. Otherwise,
  21042. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  21043. byte[1]=n&0xff. Otherwise,
  21044. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  21045. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  21046. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  21047. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  21048. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  21049. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  21050. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  21051. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  21052. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  21053. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  21054. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  21055. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  21056. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  21057. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  21058. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  21059. byte[7]=n&0xff;
  21060. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  21061. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  21062. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  21063. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  21064. </ul>
  21065. @param out
  21066. output stream
  21067. @param n
  21068. the integer number
  21069. @throws IOException]]>
  21070. </doc>
  21071. </method>
  21072. <method name="readVInt" return="int"
  21073. abstract="false" native="false" synchronized="false"
  21074. static="true" final="false" visibility="public"
  21075. deprecated="not deprecated">
  21076. <param name="in" type="java.io.DataInput"/>
  21077. <exception name="IOException" type="java.io.IOException"/>
  21078. <doc>
  21079. <![CDATA[Decoding the variable-length integer. Synonymous to
  21080. <code>(int)Utils#readVLong(in)</code>.
  21081. @param in
  21082. input stream
  21083. @return the decoded integer
  21084. @throws IOException
  21085. @see Utils#readVLong(DataInput)]]>
  21086. </doc>
  21087. </method>
  21088. <method name="readVLong" return="long"
  21089. abstract="false" native="false" synchronized="false"
  21090. static="true" final="false" visibility="public"
  21091. deprecated="not deprecated">
  21092. <param name="in" type="java.io.DataInput"/>
  21093. <exception name="IOException" type="java.io.IOException"/>
  21094. <doc>
  21095. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  21096. is FB, and the following bytes are NB[*].
  21097. <ul>
  21098. <li>if (FB >= -32), return (long)FB;
  21099. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  21100. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  21101. NB[1]&0xff;
  21102. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  21103. (NB[1]&0xff)<<8 + NB[2]&0xff;
  21104. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  21105. big-endian integer.
  21106. @param in
  21107. input stream
  21108. @return the decoded long integer.
  21109. @throws IOException]]>
  21110. </doc>
  21111. </method>
  21112. <method name="writeString"
  21113. abstract="false" native="false" synchronized="false"
  21114. static="true" final="false" visibility="public"
  21115. deprecated="not deprecated">
  21116. <param name="out" type="java.io.DataOutput"/>
  21117. <param name="s" type="java.lang.String"/>
  21118. <exception name="IOException" type="java.io.IOException"/>
  21119. <doc>
  21120. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  21121. @param out
  21122. @param s
  21123. @throws IOException]]>
  21124. </doc>
  21125. </method>
  21126. <method name="readString" return="java.lang.String"
  21127. abstract="false" native="false" synchronized="false"
  21128. static="true" final="false" visibility="public"
  21129. deprecated="not deprecated">
  21130. <param name="in" type="java.io.DataInput"/>
  21131. <exception name="IOException" type="java.io.IOException"/>
  21132. <doc>
  21133. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  21134. @param in
  21135. The input stream.
  21136. @return The string
  21137. @throws IOException]]>
  21138. </doc>
  21139. </method>
  21140. <method name="lowerBound" return="int"
  21141. abstract="false" native="false" synchronized="false"
  21142. static="true" final="false" visibility="public"
  21143. deprecated="not deprecated">
  21144. <param name="list" type="java.util.List"/>
  21145. <param name="key" type="java.lang.Object"/>
  21146. <param name="cmp" type="java.util.Comparator"/>
  21147. <doc>
  21148. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  21149. that compares greater than or equal to key.
  21150. @param <T>
  21151. Type of the input key.
  21152. @param list
  21153. The list
  21154. @param key
  21155. The input key.
  21156. @param cmp
  21157. Comparator for the key.
  21158. @return The index to the desired element if it exists; or list.size()
  21159. otherwise.]]>
  21160. </doc>
  21161. </method>
  21162. <method name="upperBound" return="int"
  21163. abstract="false" native="false" synchronized="false"
  21164. static="true" final="false" visibility="public"
  21165. deprecated="not deprecated">
  21166. <param name="list" type="java.util.List"/>
  21167. <param name="key" type="java.lang.Object"/>
  21168. <param name="cmp" type="java.util.Comparator"/>
  21169. <doc>
  21170. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  21171. that compares greater than the input key.
  21172. @param <T>
  21173. Type of the input key.
  21174. @param list
  21175. The list
  21176. @param key
  21177. The input key.
  21178. @param cmp
  21179. Comparator for the key.
  21180. @return The index to the desired element if it exists; or list.size()
  21181. otherwise.]]>
  21182. </doc>
  21183. </method>
  21184. <method name="lowerBound" return="int"
  21185. abstract="false" native="false" synchronized="false"
  21186. static="true" final="false" visibility="public"
  21187. deprecated="not deprecated">
  21188. <param name="list" type="java.util.List"/>
  21189. <param name="key" type="java.lang.Object"/>
  21190. <doc>
  21191. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  21192. that compares greater than or equal to key.
  21193. @param <T>
  21194. Type of the input key.
  21195. @param list
  21196. The list
  21197. @param key
  21198. The input key.
  21199. @return The index to the desired element if it exists; or list.size()
  21200. otherwise.]]>
  21201. </doc>
  21202. </method>
  21203. <method name="upperBound" return="int"
  21204. abstract="false" native="false" synchronized="false"
  21205. static="true" final="false" visibility="public"
  21206. deprecated="not deprecated">
  21207. <param name="list" type="java.util.List"/>
  21208. <param name="key" type="java.lang.Object"/>
  21209. <doc>
  21210. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  21211. that compares greater than the input key.
  21212. @param <T>
  21213. Type of the input key.
  21214. @param list
  21215. The list
  21216. @param key
  21217. The input key.
  21218. @return The index to the desired element if it exists; or list.size()
  21219. otherwise.]]>
  21220. </doc>
  21221. </method>
  21222. <doc>
  21223. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  21224. </doc>
  21225. </class>
  21226. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  21227. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  21228. <class name="Utils.Version" extends="java.lang.Object"
  21229. abstract="false"
  21230. static="true" final="true" visibility="public"
  21231. deprecated="not deprecated">
  21232. <implements name="java.lang.Comparable"/>
  21233. <constructor name="Utils.Version" type="java.io.DataInput"
  21234. static="false" final="false" visibility="public"
  21235. deprecated="not deprecated">
  21236. <exception name="IOException" type="java.io.IOException"/>
  21237. <doc>
  21238. <![CDATA[Construct the Version object by reading from the input stream.
  21239. @param in
  21240. input stream
  21241. @throws IOException]]>
  21242. </doc>
  21243. </constructor>
  21244. <constructor name="Utils.Version" type="short, short"
  21245. static="false" final="false" visibility="public"
  21246. deprecated="not deprecated">
  21247. <doc>
  21248. <![CDATA[Constructor.
  21249. @param major
  21250. major version.
  21251. @param minor
  21252. minor version.]]>
  21253. </doc>
  21254. </constructor>
  21255. <method name="write"
  21256. abstract="false" native="false" synchronized="false"
  21257. static="false" final="false" visibility="public"
  21258. deprecated="not deprecated">
  21259. <param name="out" type="java.io.DataOutput"/>
  21260. <exception name="IOException" type="java.io.IOException"/>
  21261. <doc>
  21262. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  21263. major version followed by minor version, both as big-endian short
  21264. integers.
  21265. @param out
  21266. The DataOutput object.
  21267. @throws IOException]]>
  21268. </doc>
  21269. </method>
  21270. <method name="getMajor" return="int"
  21271. abstract="false" native="false" synchronized="false"
  21272. static="false" final="false" visibility="public"
  21273. deprecated="not deprecated">
  21274. <doc>
  21275. <![CDATA[Get the major version.
  21276. @return Major version.]]>
  21277. </doc>
  21278. </method>
  21279. <method name="getMinor" return="int"
  21280. abstract="false" native="false" synchronized="false"
  21281. static="false" final="false" visibility="public"
  21282. deprecated="not deprecated">
  21283. <doc>
  21284. <![CDATA[Get the minor version.
  21285. @return The minor version.]]>
  21286. </doc>
  21287. </method>
  21288. <method name="size" return="int"
  21289. abstract="false" native="false" synchronized="false"
  21290. static="true" final="false" visibility="public"
  21291. deprecated="not deprecated">
  21292. <doc>
  21293. <![CDATA[Get the size of the serialized Version object.
  21294. @return serialized size of the version object.]]>
  21295. </doc>
  21296. </method>
  21297. <method name="toString" return="java.lang.String"
  21298. abstract="false" native="false" synchronized="false"
  21299. static="false" final="false" visibility="public"
  21300. deprecated="not deprecated">
  21301. <doc>
  21302. <![CDATA[Return a string representation of the version.]]>
  21303. </doc>
  21304. </method>
  21305. <method name="compatibleWith" return="boolean"
  21306. abstract="false" native="false" synchronized="false"
  21307. static="false" final="false" visibility="public"
  21308. deprecated="not deprecated">
  21309. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  21310. <doc>
  21311. <![CDATA[Test compatibility.
  21312. @param other
  21313. The Version object to test compatibility with.
  21314. @return true if both versions have the same major version number; false
  21315. otherwise.]]>
  21316. </doc>
  21317. </method>
  21318. <method name="compareTo" return="int"
  21319. abstract="false" native="false" synchronized="false"
  21320. static="false" final="false" visibility="public"
  21321. deprecated="not deprecated">
  21322. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  21323. <doc>
  21324. <![CDATA[Compare this version with another version.]]>
  21325. </doc>
  21326. </method>
  21327. <method name="equals" return="boolean"
  21328. abstract="false" native="false" synchronized="false"
  21329. static="false" final="false" visibility="public"
  21330. deprecated="not deprecated">
  21331. <param name="other" type="java.lang.Object"/>
  21332. </method>
  21333. <method name="hashCode" return="int"
  21334. abstract="false" native="false" synchronized="false"
  21335. static="false" final="false" visibility="public"
  21336. deprecated="not deprecated">
  21337. </method>
  21338. <doc>
  21339. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  21340. this class to maintain version information in their meta blocks.
  21341. A version number consists of a major version and a minor version. The
  21342. suggested usage of major and minor version number is to increment major
  21343. version number when the new storage format is not backward compatible, and
  21344. increment the minor version otherwise.]]>
  21345. </doc>
  21346. </class>
  21347. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  21348. </package>
  21349. <package name="org.apache.hadoop.io.nativeio">
  21350. <!-- start class org.apache.hadoop.io.nativeio.Errno -->
  21351. <class name="Errno" extends="java.lang.Enum"
  21352. abstract="false"
  21353. static="false" final="true" visibility="public"
  21354. deprecated="not deprecated">
  21355. <method name="values" return="org.apache.hadoop.io.nativeio.Errno[]"
  21356. abstract="false" native="false" synchronized="false"
  21357. static="true" final="false" visibility="public"
  21358. deprecated="not deprecated">
  21359. </method>
  21360. <method name="valueOf" return="org.apache.hadoop.io.nativeio.Errno"
  21361. abstract="false" native="false" synchronized="false"
  21362. static="true" final="false" visibility="public"
  21363. deprecated="not deprecated">
  21364. <param name="name" type="java.lang.String"/>
  21365. </method>
  21366. <field name="EPERM" type="org.apache.hadoop.io.nativeio.Errno"
  21367. transient="false" volatile="false"
  21368. static="true" final="true" visibility="public"
  21369. deprecated="not deprecated">
  21370. </field>
  21371. <field name="ENOENT" type="org.apache.hadoop.io.nativeio.Errno"
  21372. transient="false" volatile="false"
  21373. static="true" final="true" visibility="public"
  21374. deprecated="not deprecated">
  21375. </field>
  21376. <field name="ESRCH" type="org.apache.hadoop.io.nativeio.Errno"
  21377. transient="false" volatile="false"
  21378. static="true" final="true" visibility="public"
  21379. deprecated="not deprecated">
  21380. </field>
  21381. <field name="EINTR" type="org.apache.hadoop.io.nativeio.Errno"
  21382. transient="false" volatile="false"
  21383. static="true" final="true" visibility="public"
  21384. deprecated="not deprecated">
  21385. </field>
  21386. <field name="EIO" type="org.apache.hadoop.io.nativeio.Errno"
  21387. transient="false" volatile="false"
  21388. static="true" final="true" visibility="public"
  21389. deprecated="not deprecated">
  21390. </field>
  21391. <field name="ENXIO" type="org.apache.hadoop.io.nativeio.Errno"
  21392. transient="false" volatile="false"
  21393. static="true" final="true" visibility="public"
  21394. deprecated="not deprecated">
  21395. </field>
  21396. <field name="E2BIG" type="org.apache.hadoop.io.nativeio.Errno"
  21397. transient="false" volatile="false"
  21398. static="true" final="true" visibility="public"
  21399. deprecated="not deprecated">
  21400. </field>
  21401. <field name="ENOEXEC" type="org.apache.hadoop.io.nativeio.Errno"
  21402. transient="false" volatile="false"
  21403. static="true" final="true" visibility="public"
  21404. deprecated="not deprecated">
  21405. </field>
  21406. <field name="EBADF" type="org.apache.hadoop.io.nativeio.Errno"
  21407. transient="false" volatile="false"
  21408. static="true" final="true" visibility="public"
  21409. deprecated="not deprecated">
  21410. </field>
  21411. <field name="ECHILD" type="org.apache.hadoop.io.nativeio.Errno"
  21412. transient="false" volatile="false"
  21413. static="true" final="true" visibility="public"
  21414. deprecated="not deprecated">
  21415. </field>
  21416. <field name="EAGAIN" type="org.apache.hadoop.io.nativeio.Errno"
  21417. transient="false" volatile="false"
  21418. static="true" final="true" visibility="public"
  21419. deprecated="not deprecated">
  21420. </field>
  21421. <field name="ENOMEM" type="org.apache.hadoop.io.nativeio.Errno"
  21422. transient="false" volatile="false"
  21423. static="true" final="true" visibility="public"
  21424. deprecated="not deprecated">
  21425. </field>
  21426. <field name="EACCES" type="org.apache.hadoop.io.nativeio.Errno"
  21427. transient="false" volatile="false"
  21428. static="true" final="true" visibility="public"
  21429. deprecated="not deprecated">
  21430. </field>
  21431. <field name="EFAULT" type="org.apache.hadoop.io.nativeio.Errno"
  21432. transient="false" volatile="false"
  21433. static="true" final="true" visibility="public"
  21434. deprecated="not deprecated">
  21435. </field>
  21436. <field name="ENOTBLK" type="org.apache.hadoop.io.nativeio.Errno"
  21437. transient="false" volatile="false"
  21438. static="true" final="true" visibility="public"
  21439. deprecated="not deprecated">
  21440. </field>
  21441. <field name="EBUSY" type="org.apache.hadoop.io.nativeio.Errno"
  21442. transient="false" volatile="false"
  21443. static="true" final="true" visibility="public"
  21444. deprecated="not deprecated">
  21445. </field>
  21446. <field name="EEXIST" type="org.apache.hadoop.io.nativeio.Errno"
  21447. transient="false" volatile="false"
  21448. static="true" final="true" visibility="public"
  21449. deprecated="not deprecated">
  21450. </field>
  21451. <field name="EXDEV" type="org.apache.hadoop.io.nativeio.Errno"
  21452. transient="false" volatile="false"
  21453. static="true" final="true" visibility="public"
  21454. deprecated="not deprecated">
  21455. </field>
  21456. <field name="ENODEV" type="org.apache.hadoop.io.nativeio.Errno"
  21457. transient="false" volatile="false"
  21458. static="true" final="true" visibility="public"
  21459. deprecated="not deprecated">
  21460. </field>
  21461. <field name="ENOTDIR" type="org.apache.hadoop.io.nativeio.Errno"
  21462. transient="false" volatile="false"
  21463. static="true" final="true" visibility="public"
  21464. deprecated="not deprecated">
  21465. </field>
  21466. <field name="EISDIR" type="org.apache.hadoop.io.nativeio.Errno"
  21467. transient="false" volatile="false"
  21468. static="true" final="true" visibility="public"
  21469. deprecated="not deprecated">
  21470. </field>
  21471. <field name="EINVAL" type="org.apache.hadoop.io.nativeio.Errno"
  21472. transient="false" volatile="false"
  21473. static="true" final="true" visibility="public"
  21474. deprecated="not deprecated">
  21475. </field>
  21476. <field name="ENFILE" type="org.apache.hadoop.io.nativeio.Errno"
  21477. transient="false" volatile="false"
  21478. static="true" final="true" visibility="public"
  21479. deprecated="not deprecated">
  21480. </field>
  21481. <field name="EMFILE" type="org.apache.hadoop.io.nativeio.Errno"
  21482. transient="false" volatile="false"
  21483. static="true" final="true" visibility="public"
  21484. deprecated="not deprecated">
  21485. </field>
  21486. <field name="ENOTTY" type="org.apache.hadoop.io.nativeio.Errno"
  21487. transient="false" volatile="false"
  21488. static="true" final="true" visibility="public"
  21489. deprecated="not deprecated">
  21490. </field>
  21491. <field name="ETXTBSY" type="org.apache.hadoop.io.nativeio.Errno"
  21492. transient="false" volatile="false"
  21493. static="true" final="true" visibility="public"
  21494. deprecated="not deprecated">
  21495. </field>
  21496. <field name="EFBIG" type="org.apache.hadoop.io.nativeio.Errno"
  21497. transient="false" volatile="false"
  21498. static="true" final="true" visibility="public"
  21499. deprecated="not deprecated">
  21500. </field>
  21501. <field name="ENOSPC" type="org.apache.hadoop.io.nativeio.Errno"
  21502. transient="false" volatile="false"
  21503. static="true" final="true" visibility="public"
  21504. deprecated="not deprecated">
  21505. </field>
  21506. <field name="ESPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  21507. transient="false" volatile="false"
  21508. static="true" final="true" visibility="public"
  21509. deprecated="not deprecated">
  21510. </field>
  21511. <field name="EROFS" type="org.apache.hadoop.io.nativeio.Errno"
  21512. transient="false" volatile="false"
  21513. static="true" final="true" visibility="public"
  21514. deprecated="not deprecated">
  21515. </field>
  21516. <field name="EMLINK" type="org.apache.hadoop.io.nativeio.Errno"
  21517. transient="false" volatile="false"
  21518. static="true" final="true" visibility="public"
  21519. deprecated="not deprecated">
  21520. </field>
  21521. <field name="EPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  21522. transient="false" volatile="false"
  21523. static="true" final="true" visibility="public"
  21524. deprecated="not deprecated">
  21525. </field>
  21526. <field name="EDOM" type="org.apache.hadoop.io.nativeio.Errno"
  21527. transient="false" volatile="false"
  21528. static="true" final="true" visibility="public"
  21529. deprecated="not deprecated">
  21530. </field>
  21531. <field name="ERANGE" type="org.apache.hadoop.io.nativeio.Errno"
  21532. transient="false" volatile="false"
  21533. static="true" final="true" visibility="public"
  21534. deprecated="not deprecated">
  21535. </field>
  21536. <field name="UNKNOWN" type="org.apache.hadoop.io.nativeio.Errno"
  21537. transient="false" volatile="false"
  21538. static="true" final="true" visibility="public"
  21539. deprecated="not deprecated">
  21540. </field>
  21541. <doc>
  21542. <![CDATA[Enum representing POSIX errno values.]]>
  21543. </doc>
  21544. </class>
  21545. <!-- end class org.apache.hadoop.io.nativeio.Errno -->
  21546. <!-- start class org.apache.hadoop.io.nativeio.NativeIO -->
  21547. <class name="NativeIO" extends="java.lang.Object"
  21548. abstract="false"
  21549. static="false" final="false" visibility="public"
  21550. deprecated="not deprecated">
  21551. <constructor name="NativeIO"
  21552. static="false" final="false" visibility="public"
  21553. deprecated="not deprecated">
  21554. </constructor>
  21555. <method name="isAvailable" return="boolean"
  21556. abstract="false" native="false" synchronized="false"
  21557. static="true" final="false" visibility="public"
  21558. deprecated="not deprecated">
  21559. <doc>
  21560. <![CDATA[Return true if the JNI-based native IO extensions are available.]]>
  21561. </doc>
  21562. </method>
  21563. <method name="open" return="java.io.FileDescriptor"
  21564. abstract="false" native="true" synchronized="false"
  21565. static="true" final="false" visibility="public"
  21566. deprecated="not deprecated">
  21567. <param name="path" type="java.lang.String"/>
  21568. <param name="flags" type="int"/>
  21569. <param name="mode" type="int"/>
  21570. <exception name="IOException" type="java.io.IOException"/>
  21571. <doc>
  21572. <![CDATA[Wrapper around open(2)]]>
  21573. </doc>
  21574. </method>
  21575. <method name="fstat" return="org.apache.hadoop.io.nativeio.NativeIO.Stat"
  21576. abstract="false" native="true" synchronized="false"
  21577. static="true" final="false" visibility="public"
  21578. deprecated="not deprecated">
  21579. <param name="fd" type="java.io.FileDescriptor"/>
  21580. <exception name="IOException" type="java.io.IOException"/>
  21581. <doc>
  21582. <![CDATA[Wrapper around fstat(2)]]>
  21583. </doc>
  21584. </method>
  21585. <method name="chmod"
  21586. abstract="false" native="true" synchronized="false"
  21587. static="true" final="false" visibility="public"
  21588. deprecated="not deprecated">
  21589. <param name="path" type="java.lang.String"/>
  21590. <param name="mode" type="int"/>
  21591. <exception name="IOException" type="java.io.IOException"/>
  21592. <doc>
  21593. <![CDATA[Wrapper around chmod(2)]]>
  21594. </doc>
  21595. </method>
  21596. <method name="posixFadviseIfPossible"
  21597. abstract="false" native="false" synchronized="false"
  21598. static="true" final="false" visibility="public"
  21599. deprecated="not deprecated">
  21600. <param name="fd" type="java.io.FileDescriptor"/>
  21601. <param name="offset" type="long"/>
  21602. <param name="len" type="long"/>
  21603. <param name="flags" type="int"/>
  21604. <exception name="NativeIOException" type="org.apache.hadoop.io.nativeio.NativeIOException"/>
  21605. <doc>
  21606. <![CDATA[Call posix_fadvise on the given file descriptor. See the manpage
  21607. for this syscall for more information. On systems where this
  21608. call is not available, does nothing.
  21609. @throws NativeIOException if there is an error with the syscall]]>
  21610. </doc>
  21611. </method>
  21612. <method name="syncFileRangeIfPossible"
  21613. abstract="false" native="false" synchronized="false"
  21614. static="true" final="false" visibility="public"
  21615. deprecated="not deprecated">
  21616. <param name="fd" type="java.io.FileDescriptor"/>
  21617. <param name="offset" type="long"/>
  21618. <param name="nbytes" type="long"/>
  21619. <param name="flags" type="int"/>
  21620. <exception name="NativeIOException" type="org.apache.hadoop.io.nativeio.NativeIOException"/>
  21621. <doc>
  21622. <![CDATA[Call sync_file_range on the given file descriptor. See the manpage
  21623. for this syscall for more information. On systems where this
  21624. call is not available, does nothing.
  21625. @throws NativeIOException if there is an error with the syscall]]>
  21626. </doc>
  21627. </method>
  21628. <method name="getOwner" return="java.lang.String"
  21629. abstract="false" native="false" synchronized="false"
  21630. static="true" final="false" visibility="public"
  21631. deprecated="not deprecated">
  21632. <param name="fd" type="java.io.FileDescriptor"/>
  21633. <exception name="IOException" type="java.io.IOException"/>
  21634. </method>
  21635. <field name="O_RDONLY" type="int"
  21636. transient="false" volatile="false"
  21637. static="true" final="true" visibility="public"
  21638. deprecated="not deprecated">
  21639. </field>
  21640. <field name="O_WRONLY" type="int"
  21641. transient="false" volatile="false"
  21642. static="true" final="true" visibility="public"
  21643. deprecated="not deprecated">
  21644. </field>
  21645. <field name="O_RDWR" type="int"
  21646. transient="false" volatile="false"
  21647. static="true" final="true" visibility="public"
  21648. deprecated="not deprecated">
  21649. </field>
  21650. <field name="O_CREAT" type="int"
  21651. transient="false" volatile="false"
  21652. static="true" final="true" visibility="public"
  21653. deprecated="not deprecated">
  21654. </field>
  21655. <field name="O_EXCL" type="int"
  21656. transient="false" volatile="false"
  21657. static="true" final="true" visibility="public"
  21658. deprecated="not deprecated">
  21659. </field>
  21660. <field name="O_NOCTTY" type="int"
  21661. transient="false" volatile="false"
  21662. static="true" final="true" visibility="public"
  21663. deprecated="not deprecated">
  21664. </field>
  21665. <field name="O_TRUNC" type="int"
  21666. transient="false" volatile="false"
  21667. static="true" final="true" visibility="public"
  21668. deprecated="not deprecated">
  21669. </field>
  21670. <field name="O_APPEND" type="int"
  21671. transient="false" volatile="false"
  21672. static="true" final="true" visibility="public"
  21673. deprecated="not deprecated">
  21674. </field>
  21675. <field name="O_NONBLOCK" type="int"
  21676. transient="false" volatile="false"
  21677. static="true" final="true" visibility="public"
  21678. deprecated="not deprecated">
  21679. </field>
  21680. <field name="O_SYNC" type="int"
  21681. transient="false" volatile="false"
  21682. static="true" final="true" visibility="public"
  21683. deprecated="not deprecated">
  21684. </field>
  21685. <field name="O_ASYNC" type="int"
  21686. transient="false" volatile="false"
  21687. static="true" final="true" visibility="public"
  21688. deprecated="not deprecated">
  21689. </field>
  21690. <field name="O_FSYNC" type="int"
  21691. transient="false" volatile="false"
  21692. static="true" final="true" visibility="public"
  21693. deprecated="not deprecated">
  21694. </field>
  21695. <field name="O_NDELAY" type="int"
  21696. transient="false" volatile="false"
  21697. static="true" final="true" visibility="public"
  21698. deprecated="not deprecated">
  21699. </field>
  21700. <field name="POSIX_FADV_NORMAL" type="int"
  21701. transient="false" volatile="false"
  21702. static="true" final="true" visibility="public"
  21703. deprecated="not deprecated">
  21704. </field>
  21705. <field name="POSIX_FADV_RANDOM" type="int"
  21706. transient="false" volatile="false"
  21707. static="true" final="true" visibility="public"
  21708. deprecated="not deprecated">
  21709. </field>
  21710. <field name="POSIX_FADV_SEQUENTIAL" type="int"
  21711. transient="false" volatile="false"
  21712. static="true" final="true" visibility="public"
  21713. deprecated="not deprecated">
  21714. </field>
  21715. <field name="POSIX_FADV_WILLNEED" type="int"
  21716. transient="false" volatile="false"
  21717. static="true" final="true" visibility="public"
  21718. deprecated="not deprecated">
  21719. </field>
  21720. <field name="POSIX_FADV_DONTNEED" type="int"
  21721. transient="false" volatile="false"
  21722. static="true" final="true" visibility="public"
  21723. deprecated="not deprecated">
  21724. </field>
  21725. <field name="POSIX_FADV_NOREUSE" type="int"
  21726. transient="false" volatile="false"
  21727. static="true" final="true" visibility="public"
  21728. deprecated="not deprecated">
  21729. </field>
  21730. <field name="SYNC_FILE_RANGE_WAIT_BEFORE" type="int"
  21731. transient="false" volatile="false"
  21732. static="true" final="true" visibility="public"
  21733. deprecated="not deprecated">
  21734. </field>
  21735. <field name="SYNC_FILE_RANGE_WRITE" type="int"
  21736. transient="false" volatile="false"
  21737. static="true" final="true" visibility="public"
  21738. deprecated="not deprecated">
  21739. </field>
  21740. <field name="SYNC_FILE_RANGE_WAIT_AFTER" type="int"
  21741. transient="false" volatile="false"
  21742. static="true" final="true" visibility="public"
  21743. deprecated="not deprecated">
  21744. </field>
  21745. <doc>
  21746. <![CDATA[JNI wrappers for various native IO-related calls not available in Java.
  21747. These functions should generally be used alongside a fallback to another
  21748. more portable mechanism.]]>
  21749. </doc>
  21750. </class>
  21751. <!-- end class org.apache.hadoop.io.nativeio.NativeIO -->
  21752. <!-- start class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  21753. <class name="NativeIO.Stat" extends="java.lang.Object"
  21754. abstract="false"
  21755. static="true" final="false" visibility="public"
  21756. deprecated="not deprecated">
  21757. <method name="toString" return="java.lang.String"
  21758. abstract="false" native="false" synchronized="false"
  21759. static="false" final="false" visibility="public"
  21760. deprecated="not deprecated">
  21761. </method>
  21762. <method name="getOwner" return="java.lang.String"
  21763. abstract="false" native="false" synchronized="false"
  21764. static="false" final="false" visibility="public"
  21765. deprecated="not deprecated">
  21766. </method>
  21767. <method name="getMode" return="int"
  21768. abstract="false" native="false" synchronized="false"
  21769. static="false" final="false" visibility="public"
  21770. deprecated="not deprecated">
  21771. </method>
  21772. <field name="S_IFMT" type="int"
  21773. transient="false" volatile="false"
  21774. static="true" final="true" visibility="public"
  21775. deprecated="not deprecated">
  21776. </field>
  21777. <field name="S_IFIFO" type="int"
  21778. transient="false" volatile="false"
  21779. static="true" final="true" visibility="public"
  21780. deprecated="not deprecated">
  21781. </field>
  21782. <field name="S_IFCHR" type="int"
  21783. transient="false" volatile="false"
  21784. static="true" final="true" visibility="public"
  21785. deprecated="not deprecated">
  21786. </field>
  21787. <field name="S_IFDIR" type="int"
  21788. transient="false" volatile="false"
  21789. static="true" final="true" visibility="public"
  21790. deprecated="not deprecated">
  21791. </field>
  21792. <field name="S_IFBLK" type="int"
  21793. transient="false" volatile="false"
  21794. static="true" final="true" visibility="public"
  21795. deprecated="not deprecated">
  21796. </field>
  21797. <field name="S_IFREG" type="int"
  21798. transient="false" volatile="false"
  21799. static="true" final="true" visibility="public"
  21800. deprecated="not deprecated">
  21801. </field>
  21802. <field name="S_IFLNK" type="int"
  21803. transient="false" volatile="false"
  21804. static="true" final="true" visibility="public"
  21805. deprecated="not deprecated">
  21806. </field>
  21807. <field name="S_IFSOCK" type="int"
  21808. transient="false" volatile="false"
  21809. static="true" final="true" visibility="public"
  21810. deprecated="not deprecated">
  21811. </field>
  21812. <field name="S_IFWHT" type="int"
  21813. transient="false" volatile="false"
  21814. static="true" final="true" visibility="public"
  21815. deprecated="not deprecated">
  21816. </field>
  21817. <field name="S_ISUID" type="int"
  21818. transient="false" volatile="false"
  21819. static="true" final="true" visibility="public"
  21820. deprecated="not deprecated">
  21821. </field>
  21822. <field name="S_ISGID" type="int"
  21823. transient="false" volatile="false"
  21824. static="true" final="true" visibility="public"
  21825. deprecated="not deprecated">
  21826. </field>
  21827. <field name="S_ISVTX" type="int"
  21828. transient="false" volatile="false"
  21829. static="true" final="true" visibility="public"
  21830. deprecated="not deprecated">
  21831. </field>
  21832. <field name="S_IRUSR" type="int"
  21833. transient="false" volatile="false"
  21834. static="true" final="true" visibility="public"
  21835. deprecated="not deprecated">
  21836. </field>
  21837. <field name="S_IWUSR" type="int"
  21838. transient="false" volatile="false"
  21839. static="true" final="true" visibility="public"
  21840. deprecated="not deprecated">
  21841. </field>
  21842. <field name="S_IXUSR" type="int"
  21843. transient="false" volatile="false"
  21844. static="true" final="true" visibility="public"
  21845. deprecated="not deprecated">
  21846. </field>
  21847. <doc>
  21848. <![CDATA[Result type of the fstat call]]>
  21849. </doc>
  21850. </class>
  21851. <!-- end class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  21852. <!-- start class org.apache.hadoop.io.nativeio.NativeIOException -->
  21853. <class name="NativeIOException" extends="java.io.IOException"
  21854. abstract="false"
  21855. static="false" final="false" visibility="public"
  21856. deprecated="not deprecated">
  21857. <constructor name="NativeIOException" type="java.lang.String, org.apache.hadoop.io.nativeio.Errno"
  21858. static="false" final="false" visibility="public"
  21859. deprecated="not deprecated">
  21860. </constructor>
  21861. <method name="getErrno" return="org.apache.hadoop.io.nativeio.Errno"
  21862. abstract="false" native="false" synchronized="false"
  21863. static="false" final="false" visibility="public"
  21864. deprecated="not deprecated">
  21865. </method>
  21866. <method name="toString" return="java.lang.String"
  21867. abstract="false" native="false" synchronized="false"
  21868. static="false" final="false" visibility="public"
  21869. deprecated="not deprecated">
  21870. </method>
  21871. <doc>
  21872. <![CDATA[An exception generated by a call to the native IO code.
  21873. These exceptions simply wrap <i>errno</i> result codes.]]>
  21874. </doc>
  21875. </class>
  21876. <!-- end class org.apache.hadoop.io.nativeio.NativeIOException -->
  21877. </package>
  21878. <package name="org.apache.hadoop.io.retry">
  21879. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  21880. <class name="RetryPolicies" extends="java.lang.Object"
  21881. abstract="false"
  21882. static="false" final="false" visibility="public"
  21883. deprecated="not deprecated">
  21884. <constructor name="RetryPolicies"
  21885. static="false" final="false" visibility="public"
  21886. deprecated="not deprecated">
  21887. </constructor>
  21888. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21889. abstract="false" native="false" synchronized="false"
  21890. static="true" final="true" visibility="public"
  21891. deprecated="not deprecated">
  21892. <param name="maxRetries" type="int"/>
  21893. <param name="sleepTime" type="long"/>
  21894. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21895. <doc>
  21896. <![CDATA[<p>
  21897. Keep trying a limited number of times, waiting a fixed time between attempts,
  21898. and then fail by re-throwing the exception.
  21899. </p>]]>
  21900. </doc>
  21901. </method>
  21902. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21903. abstract="false" native="false" synchronized="false"
  21904. static="true" final="true" visibility="public"
  21905. deprecated="not deprecated">
  21906. <param name="maxTime" type="long"/>
  21907. <param name="sleepTime" type="long"/>
  21908. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21909. <doc>
  21910. <![CDATA[<p>
  21911. Keep trying for a maximum time, waiting a fixed time between attempts,
  21912. and then fail by re-throwing the exception.
  21913. </p>]]>
  21914. </doc>
  21915. </method>
  21916. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21917. abstract="false" native="false" synchronized="false"
  21918. static="true" final="true" visibility="public"
  21919. deprecated="not deprecated">
  21920. <param name="maxRetries" type="int"/>
  21921. <param name="sleepTime" type="long"/>
  21922. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21923. <doc>
  21924. <![CDATA[<p>
  21925. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  21926. and then fail by re-throwing the exception.
  21927. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  21928. </p>]]>
  21929. </doc>
  21930. </method>
  21931. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  21932. abstract="false" native="false" synchronized="false"
  21933. static="true" final="true" visibility="public"
  21934. deprecated="not deprecated">
  21935. <param name="maxRetries" type="int"/>
  21936. <param name="sleepTime" type="long"/>
  21937. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21938. <doc>
  21939. <![CDATA[<p>
  21940. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  21941. and then fail by re-throwing the exception.
  21942. The time between attempts is <code>sleepTime</code> mutliplied by a random
  21943. number in the range of [0, 2 to the number of retries)
  21944. </p>]]>
  21945. </doc>
  21946. </method>
  21947. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  21948. abstract="false" native="false" synchronized="false"
  21949. static="true" final="true" visibility="public"
  21950. deprecated="not deprecated">
  21951. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  21952. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  21953. <doc>
  21954. <![CDATA[<p>
  21955. Set a default policy with some explicit handlers for specific exceptions.
  21956. </p>]]>
  21957. </doc>
  21958. </method>
  21959. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  21960. abstract="false" native="false" synchronized="false"
  21961. static="true" final="true" visibility="public"
  21962. deprecated="not deprecated">
  21963. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  21964. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  21965. <doc>
  21966. <![CDATA[<p>
  21967. A retry policy for RemoteException
  21968. Set a default policy with some explicit handlers for specific exceptions.
  21969. </p>]]>
  21970. </doc>
  21971. </method>
  21972. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  21973. transient="false" volatile="false"
  21974. static="true" final="true" visibility="public"
  21975. deprecated="not deprecated">
  21976. <doc>
  21977. <![CDATA[<p>
  21978. Try once, and fail by re-throwing the exception.
  21979. This corresponds to having no retry mechanism in place.
  21980. </p>]]>
  21981. </doc>
  21982. </field>
  21983. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  21984. transient="false" volatile="false"
  21985. static="true" final="true" visibility="public"
  21986. deprecated="not deprecated">
  21987. <doc>
  21988. <![CDATA[<p>
  21989. Try once, and fail silently for <code>void</code> methods, or by
  21990. re-throwing the exception for non-<code>void</code> methods.
  21991. </p>]]>
  21992. </doc>
  21993. </field>
  21994. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  21995. transient="false" volatile="false"
  21996. static="true" final="true" visibility="public"
  21997. deprecated="not deprecated">
  21998. <doc>
  21999. <![CDATA[<p>
  22000. Keep trying forever.
  22001. </p>]]>
  22002. </doc>
  22003. </field>
  22004. <doc>
  22005. <![CDATA[<p>
  22006. A collection of useful implementations of {@link RetryPolicy}.
  22007. </p>]]>
  22008. </doc>
  22009. </class>
  22010. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  22011. <!-- start class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry -->
  22012. <class name="RetryPolicies.MultipleLinearRandomRetry" extends="java.lang.Object"
  22013. abstract="false"
  22014. static="true" final="false" visibility="public"
  22015. deprecated="not deprecated">
  22016. <implements name="org.apache.hadoop.io.retry.RetryPolicy"/>
  22017. <constructor name="RetryPolicies.MultipleLinearRandomRetry" type="java.util.List"
  22018. static="false" final="false" visibility="public"
  22019. deprecated="not deprecated">
  22020. </constructor>
  22021. <method name="shouldRetry" return="boolean"
  22022. abstract="false" native="false" synchronized="false"
  22023. static="false" final="false" visibility="public"
  22024. deprecated="not deprecated">
  22025. <param name="e" type="java.lang.Exception"/>
  22026. <param name="curRetry" type="int"/>
  22027. <exception name="Exception" type="java.lang.Exception"/>
  22028. </method>
  22029. <method name="hashCode" return="int"
  22030. abstract="false" native="false" synchronized="false"
  22031. static="false" final="false" visibility="public"
  22032. deprecated="not deprecated">
  22033. </method>
  22034. <method name="equals" return="boolean"
  22035. abstract="false" native="false" synchronized="false"
  22036. static="false" final="false" visibility="public"
  22037. deprecated="not deprecated">
  22038. <param name="that" type="java.lang.Object"/>
  22039. </method>
  22040. <method name="toString" return="java.lang.String"
  22041. abstract="false" native="false" synchronized="false"
  22042. static="false" final="false" visibility="public"
  22043. deprecated="not deprecated">
  22044. </method>
  22045. <method name="parseCommaSeparatedString" return="org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry"
  22046. abstract="false" native="false" synchronized="false"
  22047. static="true" final="false" visibility="public"
  22048. deprecated="not deprecated">
  22049. <param name="s" type="java.lang.String"/>
  22050. <doc>
  22051. <![CDATA[Parse the given string as a MultipleLinearRandomRetry object.
  22052. The format of the string is "t_1, n_1, t_2, n_2, ...",
  22053. where t_i and n_i are the i-th pair of sleep time and number of retires.
  22054. Note that the white spaces in the string are ignored.
  22055. @return the parsed object, or null if the parsing fails.]]>
  22056. </doc>
  22057. </method>
  22058. <doc>
  22059. <![CDATA[Given pairs of number of retries and sleep time (n0, t0), (n1, t1), ...,
  22060. the first n0 retries sleep t0 milliseconds on average,
  22061. the following n1 retries sleep t1 milliseconds on average, and so on.
  22062. For all the sleep, the actual sleep time is randomly uniform distributed
  22063. in the close interval [0.5t, 1.5t], where t is the sleep time specified.
  22064. The objects of this class are immutable.]]>
  22065. </doc>
  22066. </class>
  22067. <!-- end class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry -->
  22068. <!-- start class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry.Pair -->
  22069. <class name="RetryPolicies.MultipleLinearRandomRetry.Pair" extends="java.lang.Object"
  22070. abstract="false"
  22071. static="true" final="false" visibility="public"
  22072. deprecated="not deprecated">
  22073. <constructor name="RetryPolicies.MultipleLinearRandomRetry.Pair" type="int, int"
  22074. static="false" final="false" visibility="public"
  22075. deprecated="not deprecated">
  22076. </constructor>
  22077. <method name="toString" return="java.lang.String"
  22078. abstract="false" native="false" synchronized="false"
  22079. static="false" final="false" visibility="public"
  22080. deprecated="not deprecated">
  22081. </method>
  22082. <doc>
  22083. <![CDATA[Pairs of numRetries and sleepSeconds]]>
  22084. </doc>
  22085. </class>
  22086. <!-- end class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry.Pair -->
  22087. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  22088. <interface name="RetryPolicy" abstract="true"
  22089. static="false" final="false" visibility="public"
  22090. deprecated="not deprecated">
  22091. <method name="shouldRetry" return="boolean"
  22092. abstract="false" native="false" synchronized="false"
  22093. static="false" final="false" visibility="public"
  22094. deprecated="not deprecated">
  22095. <param name="e" type="java.lang.Exception"/>
  22096. <param name="retries" type="int"/>
  22097. <exception name="Exception" type="java.lang.Exception"/>
  22098. <doc>
  22099. <![CDATA[<p>
  22100. Determines whether the framework should retry a
  22101. method for the given exception, and the number
  22102. of retries that have been made for that operation
  22103. so far.
  22104. </p>
  22105. @param e The exception that caused the method to fail.
  22106. @param retries The number of times the method has been retried.
  22107. @return <code>true</code> if the method should be retried,
  22108. <code>false</code> if the method should not be retried
  22109. but shouldn't fail with an exception (only for void methods).
  22110. @throws Exception The re-thrown exception <code>e</code> indicating
  22111. that the method failed and should not be retried further.]]>
  22112. </doc>
  22113. </method>
  22114. <doc>
  22115. <![CDATA[<p>
  22116. Specifies a policy for retrying method failures.
  22117. Implementations of this interface should be immutable.
  22118. </p>]]>
  22119. </doc>
  22120. </interface>
  22121. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  22122. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  22123. <class name="RetryProxy" extends="java.lang.Object"
  22124. abstract="false"
  22125. static="false" final="false" visibility="public"
  22126. deprecated="not deprecated">
  22127. <constructor name="RetryProxy"
  22128. static="false" final="false" visibility="public"
  22129. deprecated="not deprecated">
  22130. </constructor>
  22131. <method name="create" return="java.lang.Object"
  22132. abstract="false" native="false" synchronized="false"
  22133. static="true" final="false" visibility="public"
  22134. deprecated="not deprecated">
  22135. <param name="iface" type="java.lang.Class"/>
  22136. <param name="implementation" type="java.lang.Object"/>
  22137. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22138. <doc>
  22139. <![CDATA[<p>
  22140. Create a proxy for an interface of an implementation class
  22141. using the same retry policy for each method in the interface.
  22142. </p>
  22143. @param iface the interface that the retry will implement
  22144. @param implementation the instance whose methods should be retried
  22145. @param retryPolicy the policy for retirying method call failures
  22146. @return the retry proxy]]>
  22147. </doc>
  22148. </method>
  22149. <method name="create" return="java.lang.Object"
  22150. abstract="false" native="false" synchronized="false"
  22151. static="true" final="false" visibility="public"
  22152. deprecated="not deprecated">
  22153. <param name="iface" type="java.lang.Class"/>
  22154. <param name="implementation" type="java.lang.Object"/>
  22155. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  22156. <doc>
  22157. <![CDATA[<p>
  22158. Create a proxy for an interface of an implementation class
  22159. using the a set of retry policies specified by method name.
  22160. If no retry policy is defined for a method then a default of
  22161. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  22162. </p>
  22163. @param iface the interface that the retry will implement
  22164. @param implementation the instance whose methods should be retried
  22165. @param methodNameToPolicyMap a map of method names to retry policies
  22166. @return the retry proxy]]>
  22167. </doc>
  22168. </method>
  22169. <method name="create" return="java.lang.Object"
  22170. abstract="false" native="false" synchronized="false"
  22171. static="true" final="false" visibility="public"
  22172. deprecated="not deprecated">
  22173. <param name="iface" type="java.lang.Class"/>
  22174. <param name="implementation" type="java.lang.Object"/>
  22175. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22176. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  22177. </method>
  22178. <doc>
  22179. <![CDATA[<p>
  22180. A factory for creating retry proxies.
  22181. </p>]]>
  22182. </doc>
  22183. </class>
  22184. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  22185. <!-- start class org.apache.hadoop.io.retry.RetryUtils -->
  22186. <class name="RetryUtils" extends="java.lang.Object"
  22187. abstract="false"
  22188. static="false" final="false" visibility="public"
  22189. deprecated="not deprecated">
  22190. <constructor name="RetryUtils"
  22191. static="false" final="false" visibility="public"
  22192. deprecated="not deprecated">
  22193. </constructor>
  22194. <method name="getDefaultRetryPolicy" return="org.apache.hadoop.io.retry.RetryPolicy"
  22195. abstract="false" native="false" synchronized="false"
  22196. static="true" final="false" visibility="public"
  22197. deprecated="not deprecated">
  22198. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22199. <param name="retryPolicyEnabledKey" type="java.lang.String"/>
  22200. <param name="defaultRetryPolicyEnabled" type="boolean"/>
  22201. <param name="retryPolicySpecKey" type="java.lang.String"/>
  22202. <param name="defaultRetryPolicySpec" type="java.lang.String"/>
  22203. <param name="remoteExceptionToRetry" type="java.lang.Class"/>
  22204. <doc>
  22205. <![CDATA[Return the default retry policy set in conf.
  22206. If the value retryPolicyEnabledKey is set to false in conf,
  22207. use TRY_ONCE_THEN_FAIL.
  22208. Otherwise, get the MultipleLinearRandomRetry policy specified in the conf
  22209. and then
  22210. (1) use multipleLinearRandomRetry for
  22211. - remoteExceptionToRetry, or
  22212. - IOException other than RemoteException; and
  22213. (2) use TRY_ONCE_THEN_FAIL for
  22214. - RemoteException other than remoteExceptionToRetry, or
  22215. - non-IOException.
  22216. @param conf
  22217. @param retryPolicyEnabledKey conf property key for enabling retry
  22218. @param defaultRetryPolicyEnabled default retryPolicyEnabledKey conf value
  22219. @param retryPolicySpecKey conf property key for retry policy spec
  22220. @param defaultRetryPolicySpec default retryPolicySpecKey conf value
  22221. @param remoteExceptionToRetry The particular RemoteException to retry
  22222. @return the default retry policy.]]>
  22223. </doc>
  22224. </method>
  22225. <method name="getMultipleLinearRandomRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  22226. abstract="false" native="false" synchronized="false"
  22227. static="true" final="false" visibility="public"
  22228. deprecated="not deprecated">
  22229. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22230. <param name="retryPolicyEnabledKey" type="java.lang.String"/>
  22231. <param name="defaultRetryPolicyEnabled" type="boolean"/>
  22232. <param name="retryPolicySpecKey" type="java.lang.String"/>
  22233. <param name="defaultRetryPolicySpec" type="java.lang.String"/>
  22234. <doc>
  22235. <![CDATA[Return the MultipleLinearRandomRetry policy specified in the conf,
  22236. or null if the feature is disabled.
  22237. If the policy is specified in the conf but the policy cannot be parsed,
  22238. the default policy is returned.
  22239. Retry policy spec:
  22240. N pairs of sleep-time and number-of-retries "s1,n1,s2,n2,..."
  22241. @param conf
  22242. @param retryPolicyEnabledKey conf property key for enabling retry
  22243. @param defaultRetryPolicyEnabled default retryPolicyEnabledKey conf value
  22244. @param retryPolicySpecKey conf property key for retry policy spec
  22245. @param defaultRetryPolicySpec default retryPolicySpecKey conf value
  22246. @return the MultipleLinearRandomRetry policy specified in the conf,
  22247. or null if the feature is disabled.]]>
  22248. </doc>
  22249. </method>
  22250. <field name="LOG" type="org.apache.commons.logging.Log"
  22251. transient="false" volatile="false"
  22252. static="true" final="true" visibility="public"
  22253. deprecated="not deprecated">
  22254. </field>
  22255. </class>
  22256. <!-- end class org.apache.hadoop.io.retry.RetryUtils -->
  22257. </package>
  22258. <package name="org.apache.hadoop.io.serializer">
  22259. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  22260. <interface name="Deserializer" abstract="true"
  22261. static="false" final="false" visibility="public"
  22262. deprecated="not deprecated">
  22263. <method name="open"
  22264. abstract="false" native="false" synchronized="false"
  22265. static="false" final="false" visibility="public"
  22266. deprecated="not deprecated">
  22267. <param name="in" type="java.io.InputStream"/>
  22268. <exception name="IOException" type="java.io.IOException"/>
  22269. <doc>
  22270. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  22271. </doc>
  22272. </method>
  22273. <method name="deserialize" return="java.lang.Object"
  22274. abstract="false" native="false" synchronized="false"
  22275. static="false" final="false" visibility="public"
  22276. deprecated="not deprecated">
  22277. <param name="t" type="java.lang.Object"/>
  22278. <exception name="IOException" type="java.io.IOException"/>
  22279. <doc>
  22280. <![CDATA[<p>
  22281. Deserialize the next object from the underlying input stream.
  22282. If the object <code>t</code> is non-null then this deserializer
  22283. <i>may</i> set its internal state to the next object read from the input
  22284. stream. Otherwise, if the object <code>t</code> is null a new
  22285. deserialized object will be created.
  22286. </p>
  22287. @return the deserialized object]]>
  22288. </doc>
  22289. </method>
  22290. <method name="close"
  22291. abstract="false" native="false" synchronized="false"
  22292. static="false" final="false" visibility="public"
  22293. deprecated="not deprecated">
  22294. <exception name="IOException" type="java.io.IOException"/>
  22295. <doc>
  22296. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  22297. </doc>
  22298. </method>
  22299. <doc>
  22300. <![CDATA[<p>
  22301. Provides a facility for deserializing objects of type <T> from an
  22302. {@link InputStream}.
  22303. </p>
  22304. <p>
  22305. Deserializers are stateful, but must not buffer the input since
  22306. other producers may read from the input between calls to
  22307. {@link #deserialize(Object)}.
  22308. </p>
  22309. @param <T>]]>
  22310. </doc>
  22311. </interface>
  22312. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  22313. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  22314. <class name="DeserializerComparator" extends="java.lang.Object"
  22315. abstract="true"
  22316. static="false" final="false" visibility="public"
  22317. deprecated="not deprecated">
  22318. <implements name="org.apache.hadoop.io.RawComparator"/>
  22319. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  22320. static="false" final="false" visibility="protected"
  22321. deprecated="not deprecated">
  22322. <exception name="IOException" type="java.io.IOException"/>
  22323. </constructor>
  22324. <method name="compare" return="int"
  22325. abstract="false" native="false" synchronized="false"
  22326. static="false" final="false" visibility="public"
  22327. deprecated="not deprecated">
  22328. <param name="b1" type="byte[]"/>
  22329. <param name="s1" type="int"/>
  22330. <param name="l1" type="int"/>
  22331. <param name="b2" type="byte[]"/>
  22332. <param name="s2" type="int"/>
  22333. <param name="l2" type="int"/>
  22334. </method>
  22335. <doc>
  22336. <![CDATA[<p>
  22337. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  22338. the objects to be compared so that the standard {@link Comparator} can
  22339. be used to compare them.
  22340. </p>
  22341. <p>
  22342. One may optimize compare-intensive operations by using a custom
  22343. implementation of {@link RawComparator} that operates directly
  22344. on byte representations.
  22345. </p>
  22346. @param <T>]]>
  22347. </doc>
  22348. </class>
  22349. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  22350. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  22351. <class name="JavaSerialization" extends="java.lang.Object"
  22352. abstract="false"
  22353. static="false" final="false" visibility="public"
  22354. deprecated="not deprecated">
  22355. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22356. <constructor name="JavaSerialization"
  22357. static="false" final="false" visibility="public"
  22358. deprecated="not deprecated">
  22359. </constructor>
  22360. <method name="accept" return="boolean"
  22361. abstract="false" native="false" synchronized="false"
  22362. static="false" final="false" visibility="public"
  22363. deprecated="not deprecated">
  22364. <param name="c" type="java.lang.Class"/>
  22365. </method>
  22366. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22367. abstract="false" native="false" synchronized="false"
  22368. static="false" final="false" visibility="public"
  22369. deprecated="not deprecated">
  22370. <param name="c" type="java.lang.Class"/>
  22371. </method>
  22372. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22373. abstract="false" native="false" synchronized="false"
  22374. static="false" final="false" visibility="public"
  22375. deprecated="not deprecated">
  22376. <param name="c" type="java.lang.Class"/>
  22377. </method>
  22378. <doc>
  22379. <![CDATA[<p>
  22380. An experimental {@link Serialization} for Java {@link Serializable} classes.
  22381. </p>
  22382. @see JavaSerializationComparator]]>
  22383. </doc>
  22384. </class>
  22385. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  22386. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22387. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  22388. abstract="false"
  22389. static="false" final="false" visibility="public"
  22390. deprecated="not deprecated">
  22391. <constructor name="JavaSerializationComparator"
  22392. static="false" final="false" visibility="public"
  22393. deprecated="not deprecated">
  22394. <exception name="IOException" type="java.io.IOException"/>
  22395. </constructor>
  22396. <method name="compare" return="int"
  22397. abstract="false" native="false" synchronized="false"
  22398. static="false" final="false" visibility="public"
  22399. deprecated="not deprecated">
  22400. <param name="o1" type="java.io.Serializable"/>
  22401. <param name="o2" type="java.io.Serializable"/>
  22402. </method>
  22403. <doc>
  22404. <![CDATA[<p>
  22405. A {@link RawComparator} that uses a {@link JavaSerialization}
  22406. {@link Deserializer} to deserialize objects that are then compared via
  22407. their {@link Comparable} interfaces.
  22408. </p>
  22409. @param <T>
  22410. @see JavaSerialization]]>
  22411. </doc>
  22412. </class>
  22413. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22414. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  22415. <interface name="Serialization" abstract="true"
  22416. static="false" final="false" visibility="public"
  22417. deprecated="not deprecated">
  22418. <method name="accept" return="boolean"
  22419. abstract="false" native="false" synchronized="false"
  22420. static="false" final="false" visibility="public"
  22421. deprecated="not deprecated">
  22422. <param name="c" type="java.lang.Class"/>
  22423. <doc>
  22424. <![CDATA[Allows clients to test whether this {@link Serialization}
  22425. supports the given class.]]>
  22426. </doc>
  22427. </method>
  22428. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22429. abstract="false" native="false" synchronized="false"
  22430. static="false" final="false" visibility="public"
  22431. deprecated="not deprecated">
  22432. <param name="c" type="java.lang.Class"/>
  22433. <doc>
  22434. <![CDATA[@return a {@link Serializer} for the given class.]]>
  22435. </doc>
  22436. </method>
  22437. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22438. abstract="false" native="false" synchronized="false"
  22439. static="false" final="false" visibility="public"
  22440. deprecated="not deprecated">
  22441. <param name="c" type="java.lang.Class"/>
  22442. <doc>
  22443. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  22444. </doc>
  22445. </method>
  22446. <doc>
  22447. <![CDATA[<p>
  22448. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  22449. </p>
  22450. @param <T>]]>
  22451. </doc>
  22452. </interface>
  22453. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  22454. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  22455. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  22456. abstract="false"
  22457. static="false" final="false" visibility="public"
  22458. deprecated="not deprecated">
  22459. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  22460. static="false" final="false" visibility="public"
  22461. deprecated="not deprecated">
  22462. <doc>
  22463. <![CDATA[<p>
  22464. Serializations are found by reading the <code>io.serializations</code>
  22465. property from <code>conf</code>, which is a comma-delimited list of
  22466. classnames.
  22467. </p>]]>
  22468. </doc>
  22469. </constructor>
  22470. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22471. abstract="false" native="false" synchronized="false"
  22472. static="false" final="false" visibility="public"
  22473. deprecated="not deprecated">
  22474. <param name="c" type="java.lang.Class"/>
  22475. </method>
  22476. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22477. abstract="false" native="false" synchronized="false"
  22478. static="false" final="false" visibility="public"
  22479. deprecated="not deprecated">
  22480. <param name="c" type="java.lang.Class"/>
  22481. </method>
  22482. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  22483. abstract="false" native="false" synchronized="false"
  22484. static="false" final="false" visibility="public"
  22485. deprecated="not deprecated">
  22486. <param name="c" type="java.lang.Class"/>
  22487. </method>
  22488. <doc>
  22489. <![CDATA[<p>
  22490. A factory for {@link Serialization}s.
  22491. </p>]]>
  22492. </doc>
  22493. </class>
  22494. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  22495. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  22496. <interface name="Serializer" abstract="true"
  22497. static="false" final="false" visibility="public"
  22498. deprecated="not deprecated">
  22499. <method name="open"
  22500. abstract="false" native="false" synchronized="false"
  22501. static="false" final="false" visibility="public"
  22502. deprecated="not deprecated">
  22503. <param name="out" type="java.io.OutputStream"/>
  22504. <exception name="IOException" type="java.io.IOException"/>
  22505. <doc>
  22506. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  22507. </doc>
  22508. </method>
  22509. <method name="serialize"
  22510. abstract="false" native="false" synchronized="false"
  22511. static="false" final="false" visibility="public"
  22512. deprecated="not deprecated">
  22513. <param name="t" type="java.lang.Object"/>
  22514. <exception name="IOException" type="java.io.IOException"/>
  22515. <doc>
  22516. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  22517. </doc>
  22518. </method>
  22519. <method name="close"
  22520. abstract="false" native="false" synchronized="false"
  22521. static="false" final="false" visibility="public"
  22522. deprecated="not deprecated">
  22523. <exception name="IOException" type="java.io.IOException"/>
  22524. <doc>
  22525. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  22526. </doc>
  22527. </method>
  22528. <doc>
  22529. <![CDATA[<p>
  22530. Provides a facility for serializing objects of type <T> to an
  22531. {@link OutputStream}.
  22532. </p>
  22533. <p>
  22534. Serializers are stateful, but must not buffer the output since
  22535. other producers may write to the output between calls to
  22536. {@link #serialize(Object)}.
  22537. </p>
  22538. @param <T>]]>
  22539. </doc>
  22540. </interface>
  22541. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  22542. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  22543. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  22544. abstract="false"
  22545. static="false" final="false" visibility="public"
  22546. deprecated="not deprecated">
  22547. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22548. <constructor name="WritableSerialization"
  22549. static="false" final="false" visibility="public"
  22550. deprecated="not deprecated">
  22551. </constructor>
  22552. <method name="accept" return="boolean"
  22553. abstract="false" native="false" synchronized="false"
  22554. static="false" final="false" visibility="public"
  22555. deprecated="not deprecated">
  22556. <param name="c" type="java.lang.Class"/>
  22557. </method>
  22558. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22559. abstract="false" native="false" synchronized="false"
  22560. static="false" final="false" visibility="public"
  22561. deprecated="not deprecated">
  22562. <param name="c" type="java.lang.Class"/>
  22563. </method>
  22564. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22565. abstract="false" native="false" synchronized="false"
  22566. static="false" final="false" visibility="public"
  22567. deprecated="not deprecated">
  22568. <param name="c" type="java.lang.Class"/>
  22569. </method>
  22570. <doc>
  22571. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  22572. {@link Writable#write(java.io.DataOutput)} and
  22573. {@link Writable#readFields(java.io.DataInput)}.]]>
  22574. </doc>
  22575. </class>
  22576. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  22577. </package>
  22578. <package name="org.apache.hadoop.ipc">
  22579. <!-- start class org.apache.hadoop.ipc.Client -->
  22580. <class name="Client" extends="java.lang.Object"
  22581. abstract="false"
  22582. static="false" final="false" visibility="public"
  22583. deprecated="not deprecated">
  22584. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  22585. static="false" final="false" visibility="public"
  22586. deprecated="not deprecated">
  22587. <doc>
  22588. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  22589. class.]]>
  22590. </doc>
  22591. </constructor>
  22592. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  22593. static="false" final="false" visibility="public"
  22594. deprecated="not deprecated">
  22595. <doc>
  22596. <![CDATA[Construct an IPC client with the default SocketFactory
  22597. @param valueClass
  22598. @param conf]]>
  22599. </doc>
  22600. </constructor>
  22601. <method name="setPingInterval"
  22602. abstract="false" native="false" synchronized="false"
  22603. static="true" final="true" visibility="public"
  22604. deprecated="not deprecated">
  22605. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22606. <param name="pingInterval" type="int"/>
  22607. <doc>
  22608. <![CDATA[set the ping interval value in configuration
  22609. @param conf Configuration
  22610. @param pingInterval the ping interval]]>
  22611. </doc>
  22612. </method>
  22613. <method name="stop"
  22614. abstract="false" native="false" synchronized="false"
  22615. static="false" final="false" visibility="public"
  22616. deprecated="not deprecated">
  22617. <doc>
  22618. <![CDATA[Stop all threads related to this client. No further calls may be made
  22619. using this client.]]>
  22620. </doc>
  22621. </method>
  22622. <method name="call" return="org.apache.hadoop.io.Writable"
  22623. abstract="false" native="false" synchronized="false"
  22624. static="false" final="false" visibility="public"
  22625. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22626. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22627. <param name="address" type="java.net.InetSocketAddress"/>
  22628. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22629. <exception name="IOException" type="java.io.IOException"/>
  22630. <doc>
  22631. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22632. <code>address</code>, returning the value. Throws exceptions if there are
  22633. network problems or if the remote code threw an exception.
  22634. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22635. </doc>
  22636. </method>
  22637. <method name="call" return="org.apache.hadoop.io.Writable"
  22638. abstract="false" native="false" synchronized="false"
  22639. static="false" final="false" visibility="public"
  22640. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22641. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22642. <param name="addr" type="java.net.InetSocketAddress"/>
  22643. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22644. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22645. <exception name="IOException" type="java.io.IOException"/>
  22646. <doc>
  22647. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22648. <code>address</code> with the <code>ticket</code> credentials, returning
  22649. the value.
  22650. Throws exceptions if there are network problems or if the remote code
  22651. threw an exception.
  22652. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22653. </doc>
  22654. </method>
  22655. <method name="call" return="org.apache.hadoop.io.Writable"
  22656. abstract="false" native="false" synchronized="false"
  22657. static="false" final="false" visibility="public"
  22658. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22659. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22660. <param name="addr" type="java.net.InetSocketAddress"/>
  22661. <param name="protocol" type="java.lang.Class"/>
  22662. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22663. <param name="rpcTimeout" type="int"/>
  22664. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22665. <exception name="IOException" type="java.io.IOException"/>
  22666. <doc>
  22667. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22668. <code>address</code> which is servicing the <code>protocol</code> protocol,
  22669. with the <code>ticket</code> credentials and <code>rpcTimeout</code> as
  22670. timeout, returning the value.
  22671. Throws exceptions if there are network problems or if the remote code
  22672. threw an exception.
  22673. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22674. </doc>
  22675. </method>
  22676. <method name="call" return="org.apache.hadoop.io.Writable"
  22677. abstract="false" native="false" synchronized="false"
  22678. static="false" final="false" visibility="public"
  22679. deprecated="not deprecated">
  22680. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22681. <param name="addr" type="java.net.InetSocketAddress"/>
  22682. <param name="protocol" type="java.lang.Class"/>
  22683. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22684. <param name="rpcTimeout" type="int"/>
  22685. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22686. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22687. <exception name="IOException" type="java.io.IOException"/>
  22688. <doc>
  22689. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22690. <code>address</code> which is servicing the <code>protocol</code> protocol,
  22691. with the <code>ticket</code> credentials, <code>rpcTimeout</code> as timeout
  22692. and <code>conf</code> as configuration for this connection, returning the
  22693. value. Throws exceptions if there are network problems or if the remote code
  22694. threw an exception.]]>
  22695. </doc>
  22696. </method>
  22697. <method name="call" return="org.apache.hadoop.io.Writable"
  22698. abstract="false" native="false" synchronized="false"
  22699. static="false" final="false" visibility="public"
  22700. deprecated="not deprecated">
  22701. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22702. <param name="remoteId" type="org.apache.hadoop.ipc.Client.ConnectionId"/>
  22703. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22704. <exception name="IOException" type="java.io.IOException"/>
  22705. <doc>
  22706. <![CDATA[Make a call, passing <code>param</code>, to the IPC server defined by
  22707. <code>remoteId</code>, returning the value.
  22708. Throws exceptions if there are network problems or if the remote code
  22709. threw an exception.]]>
  22710. </doc>
  22711. </method>
  22712. <method name="call" return="org.apache.hadoop.io.Writable[]"
  22713. abstract="false" native="false" synchronized="false"
  22714. static="false" final="false" visibility="public"
  22715. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  22716. Class, UserGroupInformation, Configuration)} instead">
  22717. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  22718. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  22719. <exception name="IOException" type="java.io.IOException"/>
  22720. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22721. <doc>
  22722. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  22723. Class, UserGroupInformation, Configuration)} instead]]>
  22724. </doc>
  22725. </method>
  22726. <method name="call" return="org.apache.hadoop.io.Writable[]"
  22727. abstract="false" native="false" synchronized="false"
  22728. static="false" final="false" visibility="public"
  22729. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  22730. Class, UserGroupInformation, Configuration)} instead">
  22731. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  22732. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  22733. <param name="protocol" type="java.lang.Class"/>
  22734. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22735. <exception name="IOException" type="java.io.IOException"/>
  22736. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22737. <doc>
  22738. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  22739. Class, UserGroupInformation, Configuration)} instead]]>
  22740. </doc>
  22741. </method>
  22742. <method name="call" return="org.apache.hadoop.io.Writable[]"
  22743. abstract="false" native="false" synchronized="false"
  22744. static="false" final="false" visibility="public"
  22745. deprecated="not deprecated">
  22746. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  22747. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  22748. <param name="protocol" type="java.lang.Class"/>
  22749. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22750. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22751. <exception name="IOException" type="java.io.IOException"/>
  22752. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22753. <doc>
  22754. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  22755. corresponding address. When all values are available, or have timed out
  22756. or errored, the collected results are returned in an array. The array
  22757. contains nulls for calls that timed out or errored.]]>
  22758. </doc>
  22759. </method>
  22760. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  22761. transient="false" volatile="false"
  22762. static="true" final="true" visibility="public"
  22763. deprecated="not deprecated">
  22764. </field>
  22765. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  22766. transient="false" volatile="false"
  22767. static="true" final="true" visibility="public"
  22768. deprecated="not deprecated">
  22769. </field>
  22770. <field name="LOG" type="org.apache.commons.logging.Log"
  22771. transient="false" volatile="false"
  22772. static="true" final="true" visibility="public"
  22773. deprecated="not deprecated">
  22774. </field>
  22775. <doc>
  22776. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  22777. parameter, and return a {@link Writable} as their value. A service runs on
  22778. a port and is defined by a parameter class and a value class.
  22779. @see Server]]>
  22780. </doc>
  22781. </class>
  22782. <!-- end class org.apache.hadoop.ipc.Client -->
  22783. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  22784. <class name="RemoteException" extends="java.io.IOException"
  22785. abstract="false"
  22786. static="false" final="false" visibility="public"
  22787. deprecated="not deprecated">
  22788. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  22789. static="false" final="false" visibility="public"
  22790. deprecated="not deprecated">
  22791. </constructor>
  22792. <method name="getClassName" return="java.lang.String"
  22793. abstract="false" native="false" synchronized="false"
  22794. static="false" final="false" visibility="public"
  22795. deprecated="not deprecated">
  22796. </method>
  22797. <method name="unwrapRemoteException" return="java.io.IOException"
  22798. abstract="false" native="false" synchronized="false"
  22799. static="false" final="false" visibility="public"
  22800. deprecated="not deprecated">
  22801. <param name="lookupTypes" type="java.lang.Class[]"/>
  22802. <doc>
  22803. <![CDATA[If this remote exception wraps up one of the lookupTypes
  22804. then return this exception.
  22805. <p>
  22806. Unwraps any IOException.
  22807. @param lookupTypes the desired exception class.
  22808. @return IOException, which is either the lookupClass exception or this.]]>
  22809. </doc>
  22810. </method>
  22811. <method name="unwrapRemoteException" return="java.io.IOException"
  22812. abstract="false" native="false" synchronized="false"
  22813. static="false" final="false" visibility="public"
  22814. deprecated="not deprecated">
  22815. <doc>
  22816. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  22817. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  22818. a <code>String</code> as a parameter.
  22819. Otherwise it returns this.
  22820. @return <code>Throwable]]>
  22821. </doc>
  22822. </method>
  22823. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  22824. abstract="false" native="false" synchronized="false"
  22825. static="true" final="false" visibility="public"
  22826. deprecated="not deprecated">
  22827. <param name="attrs" type="org.xml.sax.Attributes"/>
  22828. <doc>
  22829. <![CDATA[Create RemoteException from attributes]]>
  22830. </doc>
  22831. </method>
  22832. </class>
  22833. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  22834. <!-- start class org.apache.hadoop.ipc.RPC -->
  22835. <class name="RPC" extends="java.lang.Object"
  22836. abstract="false"
  22837. static="false" final="false" visibility="public"
  22838. deprecated="not deprecated">
  22839. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22840. abstract="false" native="false" synchronized="false"
  22841. static="true" final="false" visibility="public"
  22842. deprecated="not deprecated">
  22843. <param name="protocol" type="java.lang.Class"/>
  22844. <param name="clientVersion" type="long"/>
  22845. <param name="addr" type="java.net.InetSocketAddress"/>
  22846. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22847. <exception name="IOException" type="java.io.IOException"/>
  22848. </method>
  22849. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22850. abstract="false" native="false" synchronized="false"
  22851. static="true" final="false" visibility="public"
  22852. deprecated="not deprecated">
  22853. <param name="protocol" type="java.lang.Class"/>
  22854. <param name="clientVersion" type="long"/>
  22855. <param name="addr" type="java.net.InetSocketAddress"/>
  22856. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22857. <param name="factory" type="javax.net.SocketFactory"/>
  22858. <exception name="IOException" type="java.io.IOException"/>
  22859. <doc>
  22860. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22861. talking to a server at the named address.]]>
  22862. </doc>
  22863. </method>
  22864. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22865. abstract="false" native="false" synchronized="false"
  22866. static="true" final="false" visibility="public"
  22867. deprecated="not deprecated">
  22868. <param name="protocol" type="java.lang.Class"/>
  22869. <param name="clientVersion" type="long"/>
  22870. <param name="addr" type="java.net.InetSocketAddress"/>
  22871. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22872. <param name="factory" type="javax.net.SocketFactory"/>
  22873. <param name="rpcTimeout" type="int"/>
  22874. <exception name="IOException" type="java.io.IOException"/>
  22875. <doc>
  22876. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22877. talking to a server at the named address.]]>
  22878. </doc>
  22879. </method>
  22880. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22881. abstract="false" native="false" synchronized="false"
  22882. static="true" final="false" visibility="public"
  22883. deprecated="not deprecated">
  22884. <param name="protocol" type="java.lang.Class"/>
  22885. <param name="clientVersion" type="long"/>
  22886. <param name="addr" type="java.net.InetSocketAddress"/>
  22887. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22888. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22889. <param name="factory" type="javax.net.SocketFactory"/>
  22890. <exception name="IOException" type="java.io.IOException"/>
  22891. <doc>
  22892. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22893. talking to a server at the named address.]]>
  22894. </doc>
  22895. </method>
  22896. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22897. abstract="false" native="false" synchronized="false"
  22898. static="true" final="false" visibility="public"
  22899. deprecated="not deprecated">
  22900. <param name="protocol" type="java.lang.Class"/>
  22901. <param name="clientVersion" type="long"/>
  22902. <param name="addr" type="java.net.InetSocketAddress"/>
  22903. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22904. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22905. <param name="factory" type="javax.net.SocketFactory"/>
  22906. <param name="rpcTimeout" type="int"/>
  22907. <exception name="IOException" type="java.io.IOException"/>
  22908. <doc>
  22909. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22910. talking to a server at the named address.]]>
  22911. </doc>
  22912. </method>
  22913. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22914. abstract="false" native="false" synchronized="false"
  22915. static="true" final="false" visibility="public"
  22916. deprecated="not deprecated">
  22917. <param name="protocol" type="java.lang.Class"/>
  22918. <param name="clientVersion" type="long"/>
  22919. <param name="addr" type="java.net.InetSocketAddress"/>
  22920. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22921. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22922. <param name="factory" type="javax.net.SocketFactory"/>
  22923. <param name="rpcTimeout" type="int"/>
  22924. <param name="connectionRetryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22925. <exception name="IOException" type="java.io.IOException"/>
  22926. <doc>
  22927. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  22928. talking to a server at the named address.]]>
  22929. </doc>
  22930. </method>
  22931. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22932. abstract="false" native="false" synchronized="false"
  22933. static="true" final="false" visibility="public"
  22934. deprecated="not deprecated">
  22935. <param name="protocol" type="java.lang.Class"/>
  22936. <param name="clientVersion" type="long"/>
  22937. <param name="addr" type="java.net.InetSocketAddress"/>
  22938. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22939. <exception name="IOException" type="java.io.IOException"/>
  22940. <doc>
  22941. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  22942. @param protocol
  22943. @param clientVersion
  22944. @param addr
  22945. @param conf
  22946. @return a proxy instance
  22947. @throws IOException]]>
  22948. </doc>
  22949. </method>
  22950. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  22951. abstract="false" native="false" synchronized="false"
  22952. static="true" final="false" visibility="public"
  22953. deprecated="not deprecated">
  22954. <param name="protocol" type="java.lang.Class"/>
  22955. <param name="clientVersion" type="long"/>
  22956. <param name="addr" type="java.net.InetSocketAddress"/>
  22957. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22958. <param name="rpcTimeout" type="int"/>
  22959. <exception name="IOException" type="java.io.IOException"/>
  22960. </method>
  22961. <method name="stopProxy"
  22962. abstract="false" native="false" synchronized="false"
  22963. static="true" final="false" visibility="public"
  22964. deprecated="not deprecated">
  22965. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  22966. <doc>
  22967. <![CDATA[Stop this proxy and release its invoker's resource
  22968. @param proxy the proxy to be stopped]]>
  22969. </doc>
  22970. </method>
  22971. <method name="call" return="java.lang.Object[]"
  22972. abstract="false" native="false" synchronized="false"
  22973. static="true" final="false" visibility="public"
  22974. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  22975. <param name="method" type="java.lang.reflect.Method"/>
  22976. <param name="params" type="java.lang.Object[][]"/>
  22977. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  22978. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22979. <exception name="IOException" type="java.io.IOException"/>
  22980. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22981. <doc>
  22982. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  22983. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  22984. </doc>
  22985. </method>
  22986. <method name="call" return="java.lang.Object[]"
  22987. abstract="false" native="false" synchronized="false"
  22988. static="true" final="false" visibility="public"
  22989. deprecated="not deprecated">
  22990. <param name="method" type="java.lang.reflect.Method"/>
  22991. <param name="params" type="java.lang.Object[][]"/>
  22992. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  22993. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22994. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22995. <exception name="IOException" type="java.io.IOException"/>
  22996. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22997. <doc>
  22998. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  22999. </doc>
  23000. </method>
  23001. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23002. abstract="false" native="false" synchronized="false"
  23003. static="true" final="false" visibility="public"
  23004. deprecated="not deprecated">
  23005. <param name="instance" type="java.lang.Object"/>
  23006. <param name="bindAddress" type="java.lang.String"/>
  23007. <param name="port" type="int"/>
  23008. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23009. <exception name="IOException" type="java.io.IOException"/>
  23010. <doc>
  23011. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23012. port and address.]]>
  23013. </doc>
  23014. </method>
  23015. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23016. abstract="false" native="false" synchronized="false"
  23017. static="true" final="false" visibility="public"
  23018. deprecated="not deprecated">
  23019. <param name="instance" type="java.lang.Object"/>
  23020. <param name="bindAddress" type="java.lang.String"/>
  23021. <param name="port" type="int"/>
  23022. <param name="numHandlers" type="int"/>
  23023. <param name="verbose" type="boolean"/>
  23024. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23025. <exception name="IOException" type="java.io.IOException"/>
  23026. <doc>
  23027. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23028. port and address.]]>
  23029. </doc>
  23030. </method>
  23031. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23032. abstract="false" native="false" synchronized="false"
  23033. static="true" final="false" visibility="public"
  23034. deprecated="not deprecated">
  23035. <param name="instance" type="java.lang.Object"/>
  23036. <param name="bindAddress" type="java.lang.String"/>
  23037. <param name="port" type="int"/>
  23038. <param name="numHandlers" type="int"/>
  23039. <param name="verbose" type="boolean"/>
  23040. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23041. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  23042. <exception name="IOException" type="java.io.IOException"/>
  23043. <doc>
  23044. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23045. port and address, with a secret manager.]]>
  23046. </doc>
  23047. </method>
  23048. <doc>
  23049. <![CDATA[A simple RPC mechanism.
  23050. A <i>protocol</i> is a Java interface. All parameters and return types must
  23051. be one of:
  23052. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  23053. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  23054. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  23055. <li>a {@link String}; or</li>
  23056. <li>a {@link Writable}; or</li>
  23057. <li>an array of the above types</li> </ul>
  23058. All methods in the protocol should throw only IOException. No field data of
  23059. the protocol instance is transmitted.]]>
  23060. </doc>
  23061. </class>
  23062. <!-- end class org.apache.hadoop.ipc.RPC -->
  23063. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  23064. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  23065. abstract="false"
  23066. static="true" final="false" visibility="public"
  23067. deprecated="not deprecated">
  23068. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  23069. static="false" final="false" visibility="public"
  23070. deprecated="not deprecated">
  23071. <exception name="IOException" type="java.io.IOException"/>
  23072. <doc>
  23073. <![CDATA[Construct an RPC server.
  23074. @param instance the instance whose methods will be called
  23075. @param conf the configuration to use
  23076. @param bindAddress the address to bind on to listen for connection
  23077. @param port the port to listen for connections on]]>
  23078. </doc>
  23079. </constructor>
  23080. <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"
  23081. static="false" final="false" visibility="public"
  23082. deprecated="not deprecated">
  23083. <exception name="IOException" type="java.io.IOException"/>
  23084. <doc>
  23085. <![CDATA[Construct an RPC server.
  23086. @param instance the instance whose methods will be called
  23087. @param conf the configuration to use
  23088. @param bindAddress the address to bind on to listen for connection
  23089. @param port the port to listen for connections on
  23090. @param numHandlers the number of method handler threads to run
  23091. @param verbose whether each call should be logged]]>
  23092. </doc>
  23093. </constructor>
  23094. <method name="call" return="org.apache.hadoop.io.Writable"
  23095. abstract="false" native="false" synchronized="false"
  23096. static="false" final="false" visibility="public"
  23097. deprecated="not deprecated">
  23098. <param name="protocol" type="java.lang.Class"/>
  23099. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23100. <param name="receivedTime" type="long"/>
  23101. <exception name="IOException" type="java.io.IOException"/>
  23102. </method>
  23103. <doc>
  23104. <![CDATA[An RPC Server.]]>
  23105. </doc>
  23106. </class>
  23107. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  23108. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  23109. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  23110. abstract="false"
  23111. static="true" final="false" visibility="public"
  23112. deprecated="not deprecated">
  23113. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  23114. static="false" final="false" visibility="public"
  23115. deprecated="not deprecated">
  23116. <doc>
  23117. <![CDATA[Create a version mismatch exception
  23118. @param interfaceName the name of the protocol mismatch
  23119. @param clientVersion the client's version of the protocol
  23120. @param serverVersion the server's version of the protocol]]>
  23121. </doc>
  23122. </constructor>
  23123. <method name="getInterfaceName" return="java.lang.String"
  23124. abstract="false" native="false" synchronized="false"
  23125. static="false" final="false" visibility="public"
  23126. deprecated="not deprecated">
  23127. <doc>
  23128. <![CDATA[Get the interface name
  23129. @return the java class name
  23130. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  23131. </doc>
  23132. </method>
  23133. <method name="getClientVersion" return="long"
  23134. abstract="false" native="false" synchronized="false"
  23135. static="false" final="false" visibility="public"
  23136. deprecated="not deprecated">
  23137. <doc>
  23138. <![CDATA[Get the client's preferred version]]>
  23139. </doc>
  23140. </method>
  23141. <method name="getServerVersion" return="long"
  23142. abstract="false" native="false" synchronized="false"
  23143. static="false" final="false" visibility="public"
  23144. deprecated="not deprecated">
  23145. <doc>
  23146. <![CDATA[Get the server's agreed to version.]]>
  23147. </doc>
  23148. </method>
  23149. <doc>
  23150. <![CDATA[A version mismatch for the RPC protocol.]]>
  23151. </doc>
  23152. </class>
  23153. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  23154. <!-- start class org.apache.hadoop.ipc.Server -->
  23155. <class name="Server" extends="java.lang.Object"
  23156. abstract="true"
  23157. static="false" final="false" visibility="public"
  23158. deprecated="not deprecated">
  23159. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  23160. static="false" final="false" visibility="protected"
  23161. deprecated="not deprecated">
  23162. <exception name="IOException" type="java.io.IOException"/>
  23163. </constructor>
  23164. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  23165. static="false" final="false" visibility="protected"
  23166. deprecated="not deprecated">
  23167. <exception name="IOException" type="java.io.IOException"/>
  23168. </constructor>
  23169. <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"
  23170. static="false" final="false" visibility="protected"
  23171. deprecated="not deprecated">
  23172. <exception name="IOException" type="java.io.IOException"/>
  23173. <doc>
  23174. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  23175. be of the named class. The <code>handlerCount</handlerCount> determines
  23176. the number of handler threads that will be used to process calls.]]>
  23177. </doc>
  23178. </constructor>
  23179. <method name="get" return="org.apache.hadoop.ipc.Server"
  23180. abstract="false" native="false" synchronized="false"
  23181. static="true" final="false" visibility="public"
  23182. deprecated="not deprecated">
  23183. <doc>
  23184. <![CDATA[Returns the server instance called under or null. May be called under
  23185. {@link #call(Writable, long)} implementations, and under {@link Writable}
  23186. methods of paramters and return values. Permits applications to access
  23187. the server context.]]>
  23188. </doc>
  23189. </method>
  23190. <method name="getRemoteIp" return="java.net.InetAddress"
  23191. abstract="false" native="false" synchronized="false"
  23192. static="true" final="false" visibility="public"
  23193. deprecated="not deprecated">
  23194. <doc>
  23195. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  23196. Returns null incase of an error.]]>
  23197. </doc>
  23198. </method>
  23199. <method name="getRemoteAddress" return="java.lang.String"
  23200. abstract="false" native="false" synchronized="false"
  23201. static="true" final="false" visibility="public"
  23202. deprecated="not deprecated">
  23203. <doc>
  23204. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  23205. Returns null in case of an error.]]>
  23206. </doc>
  23207. </method>
  23208. <method name="bind"
  23209. abstract="false" native="false" synchronized="false"
  23210. static="true" final="false" visibility="public"
  23211. deprecated="not deprecated">
  23212. <param name="socket" type="java.net.ServerSocket"/>
  23213. <param name="address" type="java.net.InetSocketAddress"/>
  23214. <param name="backlog" type="int"/>
  23215. <exception name="IOException" type="java.io.IOException"/>
  23216. <doc>
  23217. <![CDATA[A convenience method to bind to a given address and report
  23218. better exceptions if the address is not a valid host.
  23219. @param socket the socket to bind
  23220. @param address the address to bind to
  23221. @param backlog the number of connections allowed in the queue
  23222. @throws BindException if the address can't be bound
  23223. @throws UnknownHostException if the address isn't a valid host name
  23224. @throws IOException other random errors from bind]]>
  23225. </doc>
  23226. </method>
  23227. <method name="getRpcMetrics" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23228. abstract="false" native="false" synchronized="false"
  23229. static="false" final="false" visibility="public"
  23230. deprecated="not deprecated">
  23231. <doc>
  23232. <![CDATA[Returns a handle to the rpcMetrics (required in tests)
  23233. @return rpc metrics]]>
  23234. </doc>
  23235. </method>
  23236. <method name="setSocketSendBufSize"
  23237. abstract="false" native="false" synchronized="false"
  23238. static="false" final="false" visibility="public"
  23239. deprecated="not deprecated">
  23240. <param name="size" type="int"/>
  23241. <doc>
  23242. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  23243. </doc>
  23244. </method>
  23245. <method name="start"
  23246. abstract="false" native="false" synchronized="true"
  23247. static="false" final="false" visibility="public"
  23248. deprecated="not deprecated">
  23249. <doc>
  23250. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  23251. </doc>
  23252. </method>
  23253. <method name="stop"
  23254. abstract="false" native="false" synchronized="true"
  23255. static="false" final="false" visibility="public"
  23256. deprecated="not deprecated">
  23257. <doc>
  23258. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  23259. </doc>
  23260. </method>
  23261. <method name="join"
  23262. abstract="false" native="false" synchronized="true"
  23263. static="false" final="false" visibility="public"
  23264. deprecated="not deprecated">
  23265. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23266. <doc>
  23267. <![CDATA[Wait for the server to be stopped.
  23268. Does not wait for all subthreads to finish.
  23269. See {@link #stop()}.]]>
  23270. </doc>
  23271. </method>
  23272. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  23273. abstract="false" native="false" synchronized="true"
  23274. static="false" final="false" visibility="public"
  23275. deprecated="not deprecated">
  23276. <doc>
  23277. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  23278. @return the socket (ip+port) on which the RPC server is listening to.]]>
  23279. </doc>
  23280. </method>
  23281. <method name="call" return="org.apache.hadoop.io.Writable"
  23282. abstract="false" native="false" synchronized="false"
  23283. static="false" final="false" visibility="public"
  23284. deprecated="Use {@link #call(Class, Writable, long)} instead">
  23285. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23286. <param name="receiveTime" type="long"/>
  23287. <exception name="IOException" type="java.io.IOException"/>
  23288. <doc>
  23289. <![CDATA[Called for each call.
  23290. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  23291. </doc>
  23292. </method>
  23293. <method name="call" return="org.apache.hadoop.io.Writable"
  23294. abstract="true" native="false" synchronized="false"
  23295. static="false" final="false" visibility="public"
  23296. deprecated="not deprecated">
  23297. <param name="protocol" type="java.lang.Class"/>
  23298. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23299. <param name="receiveTime" type="long"/>
  23300. <exception name="IOException" type="java.io.IOException"/>
  23301. <doc>
  23302. <![CDATA[Called for each call.]]>
  23303. </doc>
  23304. </method>
  23305. <method name="authorize"
  23306. abstract="false" native="false" synchronized="false"
  23307. static="false" final="false" visibility="public"
  23308. deprecated="not deprecated">
  23309. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  23310. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  23311. <param name="addr" type="java.net.InetAddress"/>
  23312. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  23313. <doc>
  23314. <![CDATA[Authorize the incoming client connection.
  23315. @param user client user
  23316. @param connection incoming connection
  23317. @param addr InetAddress of incoming connection
  23318. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  23319. </doc>
  23320. </method>
  23321. <method name="getNumOpenConnections" return="int"
  23322. abstract="false" native="false" synchronized="false"
  23323. static="false" final="false" visibility="public"
  23324. deprecated="not deprecated">
  23325. <doc>
  23326. <![CDATA[The number of open RPC conections
  23327. @return the number of open rpc connections]]>
  23328. </doc>
  23329. </method>
  23330. <method name="getCallQueueLen" return="int"
  23331. abstract="false" native="false" synchronized="false"
  23332. static="false" final="false" visibility="public"
  23333. deprecated="not deprecated">
  23334. <doc>
  23335. <![CDATA[The number of rpc calls in the queue.
  23336. @return The number of rpc calls in the queue.]]>
  23337. </doc>
  23338. </method>
  23339. <field name="HEADER" type="java.nio.ByteBuffer"
  23340. transient="false" volatile="false"
  23341. static="true" final="true" visibility="public"
  23342. deprecated="not deprecated">
  23343. <doc>
  23344. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  23345. </doc>
  23346. </field>
  23347. <field name="CURRENT_VERSION" type="byte"
  23348. transient="false" volatile="false"
  23349. static="true" final="true" visibility="public"
  23350. deprecated="not deprecated">
  23351. </field>
  23352. <field name="LOG" type="org.apache.commons.logging.Log"
  23353. transient="false" volatile="false"
  23354. static="true" final="true" visibility="public"
  23355. deprecated="not deprecated">
  23356. </field>
  23357. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23358. transient="false" volatile="false"
  23359. static="false" final="false" visibility="protected"
  23360. deprecated="not deprecated">
  23361. </field>
  23362. <doc>
  23363. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  23364. parameter, and return a {@link Writable} as their value. A service runs on
  23365. a port and is defined by a parameter class and a value class.
  23366. @see Client]]>
  23367. </doc>
  23368. </class>
  23369. <!-- end class org.apache.hadoop.ipc.Server -->
  23370. <!-- start class org.apache.hadoop.ipc.Server.Connection -->
  23371. <class name="Server.Connection" extends="java.lang.Object"
  23372. abstract="false"
  23373. static="false" final="false" visibility="public"
  23374. deprecated="not deprecated">
  23375. <constructor name="Server.Connection" type="java.nio.channels.SelectionKey, java.nio.channels.SocketChannel, long"
  23376. static="false" final="false" visibility="public"
  23377. deprecated="not deprecated">
  23378. </constructor>
  23379. <method name="toString" return="java.lang.String"
  23380. abstract="false" native="false" synchronized="false"
  23381. static="false" final="false" visibility="public"
  23382. deprecated="not deprecated">
  23383. </method>
  23384. <method name="getHostAddress" return="java.lang.String"
  23385. abstract="false" native="false" synchronized="false"
  23386. static="false" final="false" visibility="public"
  23387. deprecated="not deprecated">
  23388. </method>
  23389. <method name="getHostInetAddress" return="java.net.InetAddress"
  23390. abstract="false" native="false" synchronized="false"
  23391. static="false" final="false" visibility="public"
  23392. deprecated="not deprecated">
  23393. </method>
  23394. <method name="setLastContact"
  23395. abstract="false" native="false" synchronized="false"
  23396. static="false" final="false" visibility="public"
  23397. deprecated="not deprecated">
  23398. <param name="lastContact" type="long"/>
  23399. </method>
  23400. <method name="getLastContact" return="long"
  23401. abstract="false" native="false" synchronized="false"
  23402. static="false" final="false" visibility="public"
  23403. deprecated="not deprecated">
  23404. </method>
  23405. <method name="readAndProcess" return="int"
  23406. abstract="false" native="false" synchronized="false"
  23407. static="false" final="false" visibility="public"
  23408. deprecated="not deprecated">
  23409. <exception name="IOException" type="java.io.IOException"/>
  23410. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23411. </method>
  23412. <field name="attemptingUser" type="org.apache.hadoop.security.UserGroupInformation"
  23413. transient="false" volatile="false"
  23414. static="false" final="false" visibility="public"
  23415. deprecated="not deprecated">
  23416. </field>
  23417. <doc>
  23418. <![CDATA[Reads calls from a connection and queues them for handling.]]>
  23419. </doc>
  23420. </class>
  23421. <!-- end class org.apache.hadoop.ipc.Server.Connection -->
  23422. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  23423. <interface name="VersionedProtocol" abstract="true"
  23424. static="false" final="false" visibility="public"
  23425. deprecated="not deprecated">
  23426. <method name="getProtocolVersion" return="long"
  23427. abstract="false" native="false" synchronized="false"
  23428. static="false" final="false" visibility="public"
  23429. deprecated="not deprecated">
  23430. <param name="protocol" type="java.lang.String"/>
  23431. <param name="clientVersion" type="long"/>
  23432. <exception name="IOException" type="java.io.IOException"/>
  23433. <doc>
  23434. <![CDATA[Return protocol version corresponding to protocol interface.
  23435. @param protocol The classname of the protocol interface
  23436. @param clientVersion The version of the protocol that the client speaks
  23437. @return the version that the server will speak]]>
  23438. </doc>
  23439. </method>
  23440. <doc>
  23441. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  23442. Subclasses of this interface are also supposed to have
  23443. a static final long versionID field.]]>
  23444. </doc>
  23445. </interface>
  23446. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  23447. </package>
  23448. <package name="org.apache.hadoop.ipc.metrics">
  23449. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  23450. <class name="RpcInstrumentation" extends="java.lang.Object"
  23451. abstract="false"
  23452. static="false" final="false" visibility="public"
  23453. deprecated="not deprecated">
  23454. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  23455. <method name="getMetrics"
  23456. abstract="false" native="false" synchronized="false"
  23457. static="false" final="false" visibility="public"
  23458. deprecated="not deprecated">
  23459. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  23460. <param name="all" type="boolean"/>
  23461. </method>
  23462. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23463. abstract="false" native="false" synchronized="false"
  23464. static="true" final="false" visibility="public"
  23465. deprecated="not deprecated">
  23466. <param name="serverName" type="java.lang.String"/>
  23467. <param name="port" type="int"/>
  23468. <doc>
  23469. <![CDATA[Create an RPC instrumentation object
  23470. @param serverName name of the server
  23471. @param port the RPC port
  23472. @return the instrumentation object]]>
  23473. </doc>
  23474. </method>
  23475. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23476. abstract="false" native="false" synchronized="false"
  23477. static="true" final="false" visibility="public"
  23478. deprecated="not deprecated">
  23479. <param name="serverName" type="java.lang.String"/>
  23480. <param name="port" type="int"/>
  23481. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  23482. <doc>
  23483. <![CDATA[Create an RPC instrumentation object
  23484. Mostly useful for testing.
  23485. @param serverName name of the server
  23486. @param port the RPC port
  23487. @param ms the metrics system object
  23488. @return the instrumentation object]]>
  23489. </doc>
  23490. </method>
  23491. <method name="detailed" return="org.apache.hadoop.metrics2.MetricsSource"
  23492. abstract="false" native="false" synchronized="false"
  23493. static="false" final="false" visibility="public"
  23494. deprecated="not deprecated">
  23495. <doc>
  23496. <![CDATA[@return the detailed (per call) metrics source for RPC]]>
  23497. </doc>
  23498. </method>
  23499. <method name="incrAuthenticationFailures"
  23500. abstract="false" native="false" synchronized="false"
  23501. static="false" final="false" visibility="public"
  23502. deprecated="not deprecated">
  23503. <doc>
  23504. <![CDATA[One authentication failure event]]>
  23505. </doc>
  23506. </method>
  23507. <method name="incrAuthenticationSuccesses"
  23508. abstract="false" native="false" synchronized="false"
  23509. static="false" final="false" visibility="public"
  23510. deprecated="not deprecated">
  23511. <doc>
  23512. <![CDATA[One authentication success event]]>
  23513. </doc>
  23514. </method>
  23515. <method name="incrAuthorizationSuccesses"
  23516. abstract="false" native="false" synchronized="false"
  23517. static="false" final="false" visibility="public"
  23518. deprecated="not deprecated">
  23519. <doc>
  23520. <![CDATA[One authorization success event]]>
  23521. </doc>
  23522. </method>
  23523. <method name="incrAuthorizationFailures"
  23524. abstract="false" native="false" synchronized="false"
  23525. static="false" final="false" visibility="public"
  23526. deprecated="not deprecated">
  23527. <doc>
  23528. <![CDATA[One authorization failure event]]>
  23529. </doc>
  23530. </method>
  23531. <method name="shutdown"
  23532. abstract="false" native="false" synchronized="false"
  23533. static="false" final="false" visibility="public"
  23534. deprecated="not deprecated">
  23535. <doc>
  23536. <![CDATA[Shutdown the instrumentation for the process]]>
  23537. </doc>
  23538. </method>
  23539. <method name="incrSentBytes"
  23540. abstract="false" native="false" synchronized="false"
  23541. static="false" final="false" visibility="public"
  23542. deprecated="not deprecated">
  23543. <param name="count" type="int"/>
  23544. <doc>
  23545. <![CDATA[Increment sent bytes by count
  23546. @param count to increment]]>
  23547. </doc>
  23548. </method>
  23549. <method name="incrReceivedBytes"
  23550. abstract="false" native="false" synchronized="false"
  23551. static="false" final="false" visibility="public"
  23552. deprecated="not deprecated">
  23553. <param name="count" type="int"/>
  23554. <doc>
  23555. <![CDATA[Increment received bytes by count
  23556. @param count to increment]]>
  23557. </doc>
  23558. </method>
  23559. <method name="addRpcQueueTime"
  23560. abstract="false" native="false" synchronized="false"
  23561. static="false" final="false" visibility="public"
  23562. deprecated="not deprecated">
  23563. <param name="qTime" type="int"/>
  23564. <doc>
  23565. <![CDATA[Add an RPC queue time sample
  23566. @param qTime]]>
  23567. </doc>
  23568. </method>
  23569. <method name="addRpcProcessingTime"
  23570. abstract="false" native="false" synchronized="false"
  23571. static="false" final="false" visibility="public"
  23572. deprecated="not deprecated">
  23573. <param name="processingTime" type="int"/>
  23574. <doc>
  23575. <![CDATA[Add an RPC processing time sample
  23576. @param processingTime]]>
  23577. </doc>
  23578. </method>
  23579. <method name="addRpcProcessingTime"
  23580. abstract="false" native="false" synchronized="false"
  23581. static="false" final="false" visibility="public"
  23582. deprecated="not deprecated">
  23583. <param name="methodName" type="java.lang.String"/>
  23584. <param name="processingTime" type="int"/>
  23585. <doc>
  23586. <![CDATA[Add an RPC processing time sample for a particular RPC method
  23587. @param methodName method name of the RPC
  23588. @param processingTime elapsed processing time of the RPC]]>
  23589. </doc>
  23590. </method>
  23591. <doc>
  23592. <![CDATA[The RPC metrics instrumentation]]>
  23593. </doc>
  23594. </class>
  23595. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  23596. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  23597. <class name="RpcInstrumentation.Detailed" extends="org.apache.hadoop.metrics2.lib.AbstractMetricsSource"
  23598. abstract="false"
  23599. static="true" final="false" visibility="public"
  23600. deprecated="not deprecated">
  23601. <method name="addRpcProcessingTime"
  23602. abstract="false" native="false" synchronized="true"
  23603. static="false" final="false" visibility="public"
  23604. deprecated="not deprecated">
  23605. <param name="methodName" type="java.lang.String"/>
  23606. <param name="processingTime" type="int"/>
  23607. </method>
  23608. <doc>
  23609. <![CDATA[Use a separate source for detailed (per call) RPC metrics for
  23610. easy and efficient filtering]]>
  23611. </doc>
  23612. </class>
  23613. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  23614. </package>
  23615. <package name="org.apache.hadoop.jmx">
  23616. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  23617. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  23618. abstract="false"
  23619. static="false" final="false" visibility="public"
  23620. deprecated="not deprecated">
  23621. <constructor name="JMXJsonServlet"
  23622. static="false" final="false" visibility="public"
  23623. deprecated="not deprecated">
  23624. </constructor>
  23625. <method name="init"
  23626. abstract="false" native="false" synchronized="false"
  23627. static="false" final="false" visibility="public"
  23628. deprecated="not deprecated">
  23629. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23630. <doc>
  23631. <![CDATA[Initialize this servlet.]]>
  23632. </doc>
  23633. </method>
  23634. <method name="doGet"
  23635. abstract="false" native="false" synchronized="false"
  23636. static="false" final="false" visibility="public"
  23637. deprecated="not deprecated">
  23638. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23639. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23640. <doc>
  23641. <![CDATA[Process a GET request for the specified resource.
  23642. @param request
  23643. The servlet request we are processing
  23644. @param response
  23645. The servlet response we are creating]]>
  23646. </doc>
  23647. </method>
  23648. <field name="mBeanServer" type="javax.management.MBeanServer"
  23649. transient="true" volatile="false"
  23650. static="false" final="false" visibility="protected"
  23651. deprecated="not deprecated">
  23652. <doc>
  23653. <![CDATA[MBean server.]]>
  23654. </doc>
  23655. </field>
  23656. <doc>
  23657. <![CDATA[Provides Read only web access to JMX.
  23658. <p>
  23659. This servlet generally will be placed under the /jmx URL for each
  23660. HttpServer. It provides read only
  23661. access to JMX metrics. The optional <code>qry</code> parameter
  23662. may be used to query only a subset of the JMX Beans. This query
  23663. functionality is provided through the
  23664. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  23665. method.
  23666. <p>
  23667. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  23668. all hadoop metrics exposed through JMX.
  23669. <p>
  23670. If the <code>qry</code> parameter is not formatted correctly then a
  23671. 400 BAD REQUEST http response code will be returned.
  23672. <p>
  23673. The return format is JSON and in the form
  23674. <p>
  23675. <code><pre>
  23676. {
  23677. "beans" : [
  23678. {
  23679. "name":"bean-name"
  23680. ...
  23681. }
  23682. ]
  23683. }
  23684. </pre></code>
  23685. <p>
  23686. The servlet attempts to convert the the JMXBeans into JSON. Each
  23687. bean's attributes will be converted to a JSON object member.
  23688. If the attribute is a boolean, a number, a string, or an array
  23689. it will be converted to the JSON equivalent.
  23690. If the value is a {@link CompositeData} then it will be converted
  23691. to a JSON object with the keys as the name of the JSON member and
  23692. the value is converted following these same rules.
  23693. If the value is a {@link TabularData} then it will be converted
  23694. to an array of the {@link CompositeData} elements that it contains.
  23695. All other objects will be converted to a string and output as such.
  23696. The bean's name and modelerType will be returned for all beans.]]>
  23697. </doc>
  23698. </class>
  23699. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  23700. </package>
  23701. <package name="org.apache.hadoop.log">
  23702. <!-- start class org.apache.hadoop.log.EventCounter -->
  23703. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  23704. abstract="false"
  23705. static="false" final="false" visibility="public"
  23706. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  23707. <constructor name="EventCounter"
  23708. static="false" final="false" visibility="public"
  23709. deprecated="not deprecated">
  23710. </constructor>
  23711. <doc>
  23712. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23713. fatal, error and warn. The class name is used in log4j.properties
  23714. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  23715. </doc>
  23716. </class>
  23717. <!-- end class org.apache.hadoop.log.EventCounter -->
  23718. <!-- start class org.apache.hadoop.log.LogLevel -->
  23719. <class name="LogLevel" extends="java.lang.Object"
  23720. abstract="false"
  23721. static="false" final="false" visibility="public"
  23722. deprecated="not deprecated">
  23723. <constructor name="LogLevel"
  23724. static="false" final="false" visibility="public"
  23725. deprecated="not deprecated">
  23726. </constructor>
  23727. <method name="main"
  23728. abstract="false" native="false" synchronized="false"
  23729. static="true" final="false" visibility="public"
  23730. deprecated="not deprecated">
  23731. <param name="args" type="java.lang.String[]"/>
  23732. <doc>
  23733. <![CDATA[A command line implementation]]>
  23734. </doc>
  23735. </method>
  23736. <field name="USAGES" type="java.lang.String"
  23737. transient="false" volatile="false"
  23738. static="true" final="true" visibility="public"
  23739. deprecated="not deprecated">
  23740. </field>
  23741. <doc>
  23742. <![CDATA[Change log level in runtime.]]>
  23743. </doc>
  23744. </class>
  23745. <!-- end class org.apache.hadoop.log.LogLevel -->
  23746. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  23747. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  23748. abstract="false"
  23749. static="true" final="false" visibility="public"
  23750. deprecated="not deprecated">
  23751. <constructor name="LogLevel.Servlet"
  23752. static="false" final="false" visibility="public"
  23753. deprecated="not deprecated">
  23754. </constructor>
  23755. <method name="doGet"
  23756. abstract="false" native="false" synchronized="false"
  23757. static="false" final="false" visibility="public"
  23758. deprecated="not deprecated">
  23759. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23760. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23761. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23762. <exception name="IOException" type="java.io.IOException"/>
  23763. </method>
  23764. <doc>
  23765. <![CDATA[A servlet implementation]]>
  23766. </doc>
  23767. </class>
  23768. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  23769. </package>
  23770. <package name="org.apache.hadoop.log.metrics">
  23771. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  23772. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  23773. abstract="false"
  23774. static="false" final="false" visibility="public"
  23775. deprecated="not deprecated">
  23776. <constructor name="EventCounter"
  23777. static="false" final="false" visibility="public"
  23778. deprecated="not deprecated">
  23779. </constructor>
  23780. <method name="getFatal" return="long"
  23781. abstract="false" native="false" synchronized="false"
  23782. static="true" final="false" visibility="public"
  23783. deprecated="not deprecated">
  23784. </method>
  23785. <method name="getError" return="long"
  23786. abstract="false" native="false" synchronized="false"
  23787. static="true" final="false" visibility="public"
  23788. deprecated="not deprecated">
  23789. </method>
  23790. <method name="getWarn" return="long"
  23791. abstract="false" native="false" synchronized="false"
  23792. static="true" final="false" visibility="public"
  23793. deprecated="not deprecated">
  23794. </method>
  23795. <method name="getInfo" return="long"
  23796. abstract="false" native="false" synchronized="false"
  23797. static="true" final="false" visibility="public"
  23798. deprecated="not deprecated">
  23799. </method>
  23800. <method name="append"
  23801. abstract="false" native="false" synchronized="false"
  23802. static="false" final="false" visibility="public"
  23803. deprecated="not deprecated">
  23804. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  23805. </method>
  23806. <method name="close"
  23807. abstract="false" native="false" synchronized="false"
  23808. static="false" final="false" visibility="public"
  23809. deprecated="not deprecated">
  23810. </method>
  23811. <method name="requiresLayout" return="boolean"
  23812. abstract="false" native="false" synchronized="false"
  23813. static="false" final="false" visibility="public"
  23814. deprecated="not deprecated">
  23815. </method>
  23816. <doc>
  23817. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23818. fatal, error and warn. The class name is used in log4j.properties]]>
  23819. </doc>
  23820. </class>
  23821. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  23822. </package>
  23823. <package name="org.apache.hadoop.metrics">
  23824. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  23825. <class name="ContextFactory" extends="java.lang.Object"
  23826. abstract="false"
  23827. static="false" final="false" visibility="public"
  23828. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23829. <constructor name="ContextFactory"
  23830. static="false" final="false" visibility="protected"
  23831. deprecated="not deprecated">
  23832. <doc>
  23833. <![CDATA[Creates a new instance of ContextFactory]]>
  23834. </doc>
  23835. </constructor>
  23836. <method name="getAttribute" return="java.lang.Object"
  23837. abstract="false" native="false" synchronized="false"
  23838. static="false" final="false" visibility="public"
  23839. deprecated="not deprecated">
  23840. <param name="attributeName" type="java.lang.String"/>
  23841. <doc>
  23842. <![CDATA[Returns the value of the named attribute, or null if there is no
  23843. attribute of that name.
  23844. @param attributeName the attribute name
  23845. @return the attribute value]]>
  23846. </doc>
  23847. </method>
  23848. <method name="getAttributeNames" return="java.lang.String[]"
  23849. abstract="false" native="false" synchronized="false"
  23850. static="false" final="false" visibility="public"
  23851. deprecated="not deprecated">
  23852. <doc>
  23853. <![CDATA[Returns the names of all the factory's attributes.
  23854. @return the attribute names]]>
  23855. </doc>
  23856. </method>
  23857. <method name="setAttribute"
  23858. abstract="false" native="false" synchronized="false"
  23859. static="false" final="false" visibility="public"
  23860. deprecated="not deprecated">
  23861. <param name="attributeName" type="java.lang.String"/>
  23862. <param name="value" type="java.lang.Object"/>
  23863. <doc>
  23864. <![CDATA[Sets the named factory attribute to the specified value, creating it
  23865. if it did not already exist. If the value is null, this is the same as
  23866. calling removeAttribute.
  23867. @param attributeName the attribute name
  23868. @param value the new attribute value]]>
  23869. </doc>
  23870. </method>
  23871. <method name="removeAttribute"
  23872. abstract="false" native="false" synchronized="false"
  23873. static="false" final="false" visibility="public"
  23874. deprecated="not deprecated">
  23875. <param name="attributeName" type="java.lang.String"/>
  23876. <doc>
  23877. <![CDATA[Removes the named attribute if it exists.
  23878. @param attributeName the attribute name]]>
  23879. </doc>
  23880. </method>
  23881. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23882. abstract="false" native="false" synchronized="true"
  23883. static="false" final="false" visibility="public"
  23884. deprecated="not deprecated">
  23885. <param name="refName" type="java.lang.String"/>
  23886. <param name="contextName" type="java.lang.String"/>
  23887. <exception name="IOException" type="java.io.IOException"/>
  23888. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  23889. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  23890. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  23891. <doc>
  23892. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  23893. using the factory's current configuration attributes. <p/>
  23894. When constructing the instance, if the factory property
  23895. <i>contextName</i>.class</code> exists,
  23896. its value is taken to be the name of the class to instantiate. Otherwise,
  23897. the default is to create an instance of
  23898. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  23899. dummy "no-op" context which will cause all metric data to be discarded.
  23900. @param contextName the name of the context
  23901. @return the named MetricsContext]]>
  23902. </doc>
  23903. </method>
  23904. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23905. abstract="false" native="false" synchronized="true"
  23906. static="false" final="false" visibility="public"
  23907. deprecated="not deprecated">
  23908. <param name="contextName" type="java.lang.String"/>
  23909. <exception name="IOException" type="java.io.IOException"/>
  23910. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  23911. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  23912. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  23913. </method>
  23914. <method name="getAllContexts" return="java.util.Collection"
  23915. abstract="false" native="false" synchronized="true"
  23916. static="false" final="false" visibility="public"
  23917. deprecated="not deprecated">
  23918. <doc>
  23919. <![CDATA[Returns all MetricsContexts built by this factory.]]>
  23920. </doc>
  23921. </method>
  23922. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  23923. abstract="false" native="false" synchronized="true"
  23924. static="true" final="false" visibility="public"
  23925. deprecated="not deprecated">
  23926. <param name="contextName" type="java.lang.String"/>
  23927. <doc>
  23928. <![CDATA[Returns a "null" context - one which does nothing.]]>
  23929. </doc>
  23930. </method>
  23931. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  23932. abstract="false" native="false" synchronized="true"
  23933. static="true" final="false" visibility="public"
  23934. deprecated="not deprecated">
  23935. <exception name="IOException" type="java.io.IOException"/>
  23936. <doc>
  23937. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  23938. necessary. <p/>
  23939. When the instance is constructed, this method checks if the file
  23940. <code>hadoop-metrics.properties</code> exists on the class path. If it
  23941. exists, it must be in the format defined by java.util.Properties, and all
  23942. the properties in the file are set as attributes on the newly created
  23943. ContextFactory instance.
  23944. @return the singleton ContextFactory instance]]>
  23945. </doc>
  23946. </method>
  23947. <doc>
  23948. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  23949. of this class, use the static <code>getFactory()</code> method.
  23950. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23951. </doc>
  23952. </class>
  23953. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  23954. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  23955. <interface name="MetricsContext" abstract="true"
  23956. static="false" final="false" visibility="public"
  23957. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23958. <method name="init"
  23959. abstract="false" native="false" synchronized="false"
  23960. static="false" final="false" visibility="public"
  23961. deprecated="not deprecated">
  23962. <param name="contextName" type="java.lang.String"/>
  23963. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23964. <doc>
  23965. <![CDATA[Initialize this context.
  23966. @param contextName The given name for this context
  23967. @param factory The creator of this context]]>
  23968. </doc>
  23969. </method>
  23970. <method name="getContextName" return="java.lang.String"
  23971. abstract="false" native="false" synchronized="false"
  23972. static="false" final="false" visibility="public"
  23973. deprecated="not deprecated">
  23974. <doc>
  23975. <![CDATA[Returns the context name.
  23976. @return the context name]]>
  23977. </doc>
  23978. </method>
  23979. <method name="startMonitoring"
  23980. abstract="false" native="false" synchronized="false"
  23981. static="false" final="false" visibility="public"
  23982. deprecated="not deprecated">
  23983. <exception name="IOException" type="java.io.IOException"/>
  23984. <doc>
  23985. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  23986. updated.]]>
  23987. </doc>
  23988. </method>
  23989. <method name="stopMonitoring"
  23990. abstract="false" native="false" synchronized="false"
  23991. static="false" final="false" visibility="public"
  23992. deprecated="not deprecated">
  23993. <doc>
  23994. <![CDATA[Stops monitoring. This does not free any data that the implementation
  23995. may have buffered for sending at the next timer event. It
  23996. is OK to call <code>startMonitoring()</code> again after calling
  23997. this.
  23998. @see #close()]]>
  23999. </doc>
  24000. </method>
  24001. <method name="isMonitoring" return="boolean"
  24002. abstract="false" native="false" synchronized="false"
  24003. static="false" final="false" visibility="public"
  24004. deprecated="not deprecated">
  24005. <doc>
  24006. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24007. </doc>
  24008. </method>
  24009. <method name="close"
  24010. abstract="false" native="false" synchronized="false"
  24011. static="false" final="false" visibility="public"
  24012. deprecated="not deprecated">
  24013. <doc>
  24014. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  24015. object to its initial state.]]>
  24016. </doc>
  24017. </method>
  24018. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24019. abstract="false" native="false" synchronized="false"
  24020. static="false" final="false" visibility="public"
  24021. deprecated="not deprecated">
  24022. <param name="recordName" type="java.lang.String"/>
  24023. <doc>
  24024. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  24025. Throws an exception if the metrics implementation is configured with a fixed
  24026. set of record names and <code>recordName</code> is not in that set.
  24027. @param recordName the name of the record
  24028. @throws MetricsException if recordName conflicts with configuration data]]>
  24029. </doc>
  24030. </method>
  24031. <method name="registerUpdater"
  24032. abstract="false" native="false" synchronized="false"
  24033. static="false" final="false" visibility="public"
  24034. deprecated="not deprecated">
  24035. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24036. <doc>
  24037. <![CDATA[Registers a callback to be called at regular time intervals, as
  24038. determined by the implementation-class specific configuration.
  24039. @param updater object to be run periodically; it should updated
  24040. some metrics records and then return]]>
  24041. </doc>
  24042. </method>
  24043. <method name="unregisterUpdater"
  24044. abstract="false" native="false" synchronized="false"
  24045. static="false" final="false" visibility="public"
  24046. deprecated="not deprecated">
  24047. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24048. <doc>
  24049. <![CDATA[Removes a callback, if it exists.
  24050. @param updater object to be removed from the callback list]]>
  24051. </doc>
  24052. </method>
  24053. <method name="getPeriod" return="int"
  24054. abstract="false" native="false" synchronized="false"
  24055. static="false" final="false" visibility="public"
  24056. deprecated="not deprecated">
  24057. <doc>
  24058. <![CDATA[Returns the timer period.]]>
  24059. </doc>
  24060. </method>
  24061. <method name="getAllRecords" return="java.util.Map"
  24062. abstract="false" native="false" synchronized="false"
  24063. static="false" final="false" visibility="public"
  24064. deprecated="not deprecated">
  24065. <doc>
  24066. <![CDATA[Retrieves all the records managed by this MetricsContext.
  24067. Useful for monitoring systems that are polling-based.
  24068. @return A non-null map from all record names to the records managed.]]>
  24069. </doc>
  24070. </method>
  24071. <field name="DEFAULT_PERIOD" type="int"
  24072. transient="false" volatile="false"
  24073. static="true" final="true" visibility="public"
  24074. deprecated="not deprecated">
  24075. <doc>
  24076. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  24077. </doc>
  24078. </field>
  24079. <doc>
  24080. <![CDATA[The main interface to the metrics package.
  24081. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24082. </doc>
  24083. </interface>
  24084. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  24085. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  24086. <class name="MetricsException" extends="java.lang.RuntimeException"
  24087. abstract="false"
  24088. static="false" final="false" visibility="public"
  24089. deprecated="in favor of {@link org.apache.hadoop.metrics2.MetricsException}.">
  24090. <constructor name="MetricsException"
  24091. static="false" final="false" visibility="public"
  24092. deprecated="not deprecated">
  24093. <doc>
  24094. <![CDATA[Creates a new instance of MetricsException]]>
  24095. </doc>
  24096. </constructor>
  24097. <constructor name="MetricsException" type="java.lang.String"
  24098. static="false" final="false" visibility="public"
  24099. deprecated="not deprecated">
  24100. <doc>
  24101. <![CDATA[Creates a new instance of MetricsException
  24102. @param message an error message]]>
  24103. </doc>
  24104. </constructor>
  24105. <doc>
  24106. <![CDATA[General-purpose, unchecked metrics exception.
  24107. @deprecated in favor of {@link org.apache.hadoop.metrics2.MetricsException}.]]>
  24108. </doc>
  24109. </class>
  24110. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  24111. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  24112. <interface name="MetricsRecord" abstract="true"
  24113. static="false" final="false" visibility="public"
  24114. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24115. <method name="getRecordName" return="java.lang.String"
  24116. abstract="false" native="false" synchronized="false"
  24117. static="false" final="false" visibility="public"
  24118. deprecated="not deprecated">
  24119. <doc>
  24120. <![CDATA[Returns the record name.
  24121. @return the record name]]>
  24122. </doc>
  24123. </method>
  24124. <method name="setTag"
  24125. abstract="false" native="false" synchronized="false"
  24126. static="false" final="false" visibility="public"
  24127. deprecated="not deprecated">
  24128. <param name="tagName" type="java.lang.String"/>
  24129. <param name="tagValue" type="java.lang.String"/>
  24130. <doc>
  24131. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  24132. which is treated the same as an empty String.
  24133. @param tagName name of the tag
  24134. @param tagValue new value of the tag
  24135. @throws MetricsException if the tagName conflicts with the configuration]]>
  24136. </doc>
  24137. </method>
  24138. <method name="setTag"
  24139. abstract="false" native="false" synchronized="false"
  24140. static="false" final="false" visibility="public"
  24141. deprecated="not deprecated">
  24142. <param name="tagName" type="java.lang.String"/>
  24143. <param name="tagValue" type="int"/>
  24144. <doc>
  24145. <![CDATA[Sets the named tag to the specified value.
  24146. @param tagName name of the tag
  24147. @param tagValue new value of the tag
  24148. @throws MetricsException if the tagName conflicts with the configuration]]>
  24149. </doc>
  24150. </method>
  24151. <method name="setTag"
  24152. abstract="false" native="false" synchronized="false"
  24153. static="false" final="false" visibility="public"
  24154. deprecated="not deprecated">
  24155. <param name="tagName" type="java.lang.String"/>
  24156. <param name="tagValue" type="long"/>
  24157. <doc>
  24158. <![CDATA[Sets the named tag to the specified value.
  24159. @param tagName name of the tag
  24160. @param tagValue new value of the tag
  24161. @throws MetricsException if the tagName conflicts with the configuration]]>
  24162. </doc>
  24163. </method>
  24164. <method name="setTag"
  24165. abstract="false" native="false" synchronized="false"
  24166. static="false" final="false" visibility="public"
  24167. deprecated="not deprecated">
  24168. <param name="tagName" type="java.lang.String"/>
  24169. <param name="tagValue" type="short"/>
  24170. <doc>
  24171. <![CDATA[Sets the named tag to the specified value.
  24172. @param tagName name of the tag
  24173. @param tagValue new value of the tag
  24174. @throws MetricsException if the tagName conflicts with the configuration]]>
  24175. </doc>
  24176. </method>
  24177. <method name="setTag"
  24178. abstract="false" native="false" synchronized="false"
  24179. static="false" final="false" visibility="public"
  24180. deprecated="not deprecated">
  24181. <param name="tagName" type="java.lang.String"/>
  24182. <param name="tagValue" type="byte"/>
  24183. <doc>
  24184. <![CDATA[Sets the named tag to the specified value.
  24185. @param tagName name of the tag
  24186. @param tagValue new value of the tag
  24187. @throws MetricsException if the tagName conflicts with the configuration]]>
  24188. </doc>
  24189. </method>
  24190. <method name="removeTag"
  24191. abstract="false" native="false" synchronized="false"
  24192. static="false" final="false" visibility="public"
  24193. deprecated="not deprecated">
  24194. <param name="tagName" type="java.lang.String"/>
  24195. <doc>
  24196. <![CDATA[Removes any tag of the specified name.
  24197. @param tagName name of a tag]]>
  24198. </doc>
  24199. </method>
  24200. <method name="setMetric"
  24201. abstract="false" native="false" synchronized="false"
  24202. static="false" final="false" visibility="public"
  24203. deprecated="not deprecated">
  24204. <param name="metricName" type="java.lang.String"/>
  24205. <param name="metricValue" type="int"/>
  24206. <doc>
  24207. <![CDATA[Sets the named metric to the specified value.
  24208. @param metricName name of the metric
  24209. @param metricValue new value of the metric
  24210. @throws MetricsException if the metricName or the type of the metricValue
  24211. conflicts with the configuration]]>
  24212. </doc>
  24213. </method>
  24214. <method name="setMetric"
  24215. abstract="false" native="false" synchronized="false"
  24216. static="false" final="false" visibility="public"
  24217. deprecated="not deprecated">
  24218. <param name="metricName" type="java.lang.String"/>
  24219. <param name="metricValue" type="long"/>
  24220. <doc>
  24221. <![CDATA[Sets the named metric to the specified value.
  24222. @param metricName name of the metric
  24223. @param metricValue new value of the metric
  24224. @throws MetricsException if the metricName or the type of the metricValue
  24225. conflicts with the configuration]]>
  24226. </doc>
  24227. </method>
  24228. <method name="setMetric"
  24229. abstract="false" native="false" synchronized="false"
  24230. static="false" final="false" visibility="public"
  24231. deprecated="not deprecated">
  24232. <param name="metricName" type="java.lang.String"/>
  24233. <param name="metricValue" type="short"/>
  24234. <doc>
  24235. <![CDATA[Sets the named metric to the specified value.
  24236. @param metricName name of the metric
  24237. @param metricValue new value of the metric
  24238. @throws MetricsException if the metricName or the type of the metricValue
  24239. conflicts with the configuration]]>
  24240. </doc>
  24241. </method>
  24242. <method name="setMetric"
  24243. abstract="false" native="false" synchronized="false"
  24244. static="false" final="false" visibility="public"
  24245. deprecated="not deprecated">
  24246. <param name="metricName" type="java.lang.String"/>
  24247. <param name="metricValue" type="byte"/>
  24248. <doc>
  24249. <![CDATA[Sets the named metric to the specified value.
  24250. @param metricName name of the metric
  24251. @param metricValue new value of the metric
  24252. @throws MetricsException if the metricName or the type of the metricValue
  24253. conflicts with the configuration]]>
  24254. </doc>
  24255. </method>
  24256. <method name="setMetric"
  24257. abstract="false" native="false" synchronized="false"
  24258. static="false" final="false" visibility="public"
  24259. deprecated="not deprecated">
  24260. <param name="metricName" type="java.lang.String"/>
  24261. <param name="metricValue" type="float"/>
  24262. <doc>
  24263. <![CDATA[Sets the named metric to the specified value.
  24264. @param metricName name of the metric
  24265. @param metricValue new value of the metric
  24266. @throws MetricsException if the metricName or the type of the metricValue
  24267. conflicts with the configuration]]>
  24268. </doc>
  24269. </method>
  24270. <method name="incrMetric"
  24271. abstract="false" native="false" synchronized="false"
  24272. static="false" final="false" visibility="public"
  24273. deprecated="not deprecated">
  24274. <param name="metricName" type="java.lang.String"/>
  24275. <param name="metricValue" type="int"/>
  24276. <doc>
  24277. <![CDATA[Increments the named metric by the specified value.
  24278. @param metricName name of the metric
  24279. @param metricValue incremental value
  24280. @throws MetricsException if the metricName or the type of the metricValue
  24281. conflicts with the configuration]]>
  24282. </doc>
  24283. </method>
  24284. <method name="incrMetric"
  24285. abstract="false" native="false" synchronized="false"
  24286. static="false" final="false" visibility="public"
  24287. deprecated="not deprecated">
  24288. <param name="metricName" type="java.lang.String"/>
  24289. <param name="metricValue" type="long"/>
  24290. <doc>
  24291. <![CDATA[Increments the named metric by the specified value.
  24292. @param metricName name of the metric
  24293. @param metricValue incremental value
  24294. @throws MetricsException if the metricName or the type of the metricValue
  24295. conflicts with the configuration]]>
  24296. </doc>
  24297. </method>
  24298. <method name="incrMetric"
  24299. abstract="false" native="false" synchronized="false"
  24300. static="false" final="false" visibility="public"
  24301. deprecated="not deprecated">
  24302. <param name="metricName" type="java.lang.String"/>
  24303. <param name="metricValue" type="short"/>
  24304. <doc>
  24305. <![CDATA[Increments the named metric by the specified value.
  24306. @param metricName name of the metric
  24307. @param metricValue incremental value
  24308. @throws MetricsException if the metricName or the type of the metricValue
  24309. conflicts with the configuration]]>
  24310. </doc>
  24311. </method>
  24312. <method name="incrMetric"
  24313. abstract="false" native="false" synchronized="false"
  24314. static="false" final="false" visibility="public"
  24315. deprecated="not deprecated">
  24316. <param name="metricName" type="java.lang.String"/>
  24317. <param name="metricValue" type="byte"/>
  24318. <doc>
  24319. <![CDATA[Increments the named metric by the specified value.
  24320. @param metricName name of the metric
  24321. @param metricValue incremental value
  24322. @throws MetricsException if the metricName or the type of the metricValue
  24323. conflicts with the configuration]]>
  24324. </doc>
  24325. </method>
  24326. <method name="incrMetric"
  24327. abstract="false" native="false" synchronized="false"
  24328. static="false" final="false" visibility="public"
  24329. deprecated="not deprecated">
  24330. <param name="metricName" type="java.lang.String"/>
  24331. <param name="metricValue" type="float"/>
  24332. <doc>
  24333. <![CDATA[Increments the named metric by the specified value.
  24334. @param metricName name of the metric
  24335. @param metricValue incremental value
  24336. @throws MetricsException if the metricName or the type of the metricValue
  24337. conflicts with the configuration]]>
  24338. </doc>
  24339. </method>
  24340. <method name="update"
  24341. abstract="false" native="false" synchronized="false"
  24342. static="false" final="false" visibility="public"
  24343. deprecated="not deprecated">
  24344. <doc>
  24345. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  24346. If the tag values match an existing row, that row is updated;
  24347. otherwise, a new row is added.]]>
  24348. </doc>
  24349. </method>
  24350. <method name="remove"
  24351. abstract="false" native="false" synchronized="false"
  24352. static="false" final="false" visibility="public"
  24353. deprecated="not deprecated">
  24354. <doc>
  24355. <![CDATA[Removes, from the buffered data table, all rows having tags
  24356. that equal the tags that have been set on this record. For example,
  24357. if there are no tags on this record, all rows for this record name
  24358. would be removed. Or, if there is a single tag on this record, then
  24359. just rows containing a tag with the same name and value would be removed.]]>
  24360. </doc>
  24361. </method>
  24362. <doc>
  24363. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  24364. system. <p/>
  24365. A record name identifies the kind of data to be reported. For example, a
  24366. program reporting statistics relating to the disks on a computer might use
  24367. a record name "diskStats".<p/>
  24368. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  24369. continue the example, the "diskStats" record might use a tag named
  24370. "diskName" to identify a particular disk. Sometimes it is useful to have
  24371. more than one tag, so there might also be a "diskType" with value "ide" or
  24372. "scsi" or whatever.<p/>
  24373. A record also has zero or more <i>metrics</i>. These are the named
  24374. values that are to be reported to the metrics system. In the "diskStats"
  24375. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  24376. "kbReadPerSecond", etc.<p/>
  24377. The general procedure for using a MetricsRecord is to fill in its tag and
  24378. metric values, and then call <code>update()</code> to pass the record to the
  24379. client library.
  24380. Metric data is not immediately sent to the metrics system
  24381. each time that <code>update()</code> is called.
  24382. An internal table is maintained, identified by the record name. This
  24383. table has columns
  24384. corresponding to the tag and the metric names, and rows
  24385. corresponding to each unique set of tag values. An update
  24386. either modifies an existing row in the table, or adds a new row with a set of
  24387. tag values that are different from all the other rows. Note that if there
  24388. are no tags, then there can be at most one row in the table. <p/>
  24389. Once a row is added to the table, its data will be sent to the metrics system
  24390. on every timer period, whether or not it has been updated since the previous
  24391. timer period. If this is inappropriate, for example if metrics were being
  24392. reported by some transient object in an application, the <code>remove()</code>
  24393. method can be used to remove the row and thus stop the data from being
  24394. sent.<p/>
  24395. Note that the <code>update()</code> method is atomic. This means that it is
  24396. safe for different threads to be updating the same metric. More precisely,
  24397. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  24398. with the same set of tag names and tag values. Different threads should
  24399. <b>not</b> use the same MetricsRecord instance at the same time.
  24400. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24401. </doc>
  24402. </interface>
  24403. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  24404. <!-- start class org.apache.hadoop.metrics.MetricsServlet -->
  24405. <class name="MetricsServlet" extends="javax.servlet.http.HttpServlet"
  24406. abstract="false"
  24407. static="false" final="false" visibility="public"
  24408. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24409. <constructor name="MetricsServlet"
  24410. static="false" final="false" visibility="public"
  24411. deprecated="not deprecated">
  24412. </constructor>
  24413. <method name="doGet"
  24414. abstract="false" native="false" synchronized="false"
  24415. static="false" final="false" visibility="public"
  24416. deprecated="not deprecated">
  24417. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  24418. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  24419. <exception name="ServletException" type="javax.servlet.ServletException"/>
  24420. <exception name="IOException" type="java.io.IOException"/>
  24421. </method>
  24422. <doc>
  24423. <![CDATA[A servlet to print out metrics data. By default, the servlet returns a
  24424. textual representation (no promises are made for parseability), and
  24425. users can use "?format=json" for parseable output.
  24426. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24427. </doc>
  24428. </class>
  24429. <!-- end class org.apache.hadoop.metrics.MetricsServlet -->
  24430. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  24431. <class name="MetricsUtil" extends="java.lang.Object"
  24432. abstract="false"
  24433. static="false" final="false" visibility="public"
  24434. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24435. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24436. abstract="false" native="false" synchronized="false"
  24437. static="true" final="false" visibility="public"
  24438. deprecated="not deprecated">
  24439. <param name="contextName" type="java.lang.String"/>
  24440. </method>
  24441. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24442. abstract="false" native="false" synchronized="false"
  24443. static="true" final="false" visibility="public"
  24444. deprecated="not deprecated">
  24445. <param name="refName" type="java.lang.String"/>
  24446. <param name="contextName" type="java.lang.String"/>
  24447. <doc>
  24448. <![CDATA[Utility method to return the named context.
  24449. If the desired context cannot be created for any reason, the exception
  24450. is logged, and a null context is returned.]]>
  24451. </doc>
  24452. </method>
  24453. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24454. abstract="false" native="false" synchronized="false"
  24455. static="true" final="false" visibility="public"
  24456. deprecated="not deprecated">
  24457. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24458. <param name="recordName" type="java.lang.String"/>
  24459. <doc>
  24460. <![CDATA[Utility method to create and return new metrics record instance within the
  24461. given context. This record is tagged with the host name.
  24462. @param context the context
  24463. @param recordName name of the record
  24464. @return newly created metrics record]]>
  24465. </doc>
  24466. </method>
  24467. <field name="LOG" type="org.apache.commons.logging.Log"
  24468. transient="false" volatile="false"
  24469. static="true" final="true" visibility="public"
  24470. deprecated="not deprecated">
  24471. </field>
  24472. <doc>
  24473. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  24474. For examples of usage, see NameNodeMetrics.
  24475. @see org.apache.hadoop.metrics.MetricsRecord
  24476. @see org.apache.hadoop.metrics.MetricsContext
  24477. @see org.apache.hadoop.metrics.ContextFactory
  24478. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24479. </doc>
  24480. </class>
  24481. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  24482. <!-- start interface org.apache.hadoop.metrics.Updater -->
  24483. <interface name="Updater" abstract="true"
  24484. static="false" final="false" visibility="public"
  24485. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24486. <method name="doUpdates"
  24487. abstract="false" native="false" synchronized="false"
  24488. static="false" final="false" visibility="public"
  24489. deprecated="not deprecated">
  24490. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24491. <doc>
  24492. <![CDATA[Timer-based call-back from the metric library.]]>
  24493. </doc>
  24494. </method>
  24495. <doc>
  24496. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.
  24497. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24498. </doc>
  24499. </interface>
  24500. <!-- end interface org.apache.hadoop.metrics.Updater -->
  24501. </package>
  24502. <package name="org.apache.hadoop.metrics.file">
  24503. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  24504. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24505. abstract="false"
  24506. static="false" final="false" visibility="public"
  24507. deprecated="use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.">
  24508. <constructor name="FileContext"
  24509. static="false" final="false" visibility="public"
  24510. deprecated="not deprecated">
  24511. <doc>
  24512. <![CDATA[Creates a new instance of FileContext]]>
  24513. </doc>
  24514. </constructor>
  24515. <method name="init"
  24516. abstract="false" native="false" synchronized="false"
  24517. static="false" final="false" visibility="public"
  24518. deprecated="not deprecated">
  24519. <param name="contextName" type="java.lang.String"/>
  24520. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24521. </method>
  24522. <method name="getFileName" return="java.lang.String"
  24523. abstract="false" native="false" synchronized="false"
  24524. static="false" final="false" visibility="public"
  24525. deprecated="not deprecated">
  24526. <doc>
  24527. <![CDATA[Returns the configured file name, or null.]]>
  24528. </doc>
  24529. </method>
  24530. <method name="startMonitoring"
  24531. abstract="false" native="false" synchronized="false"
  24532. static="false" final="false" visibility="public"
  24533. deprecated="not deprecated">
  24534. <exception name="IOException" type="java.io.IOException"/>
  24535. <doc>
  24536. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  24537. file specified by the <code>fileName</code> attribute,
  24538. if specified. Otherwise the data will be written to standard
  24539. output.]]>
  24540. </doc>
  24541. </method>
  24542. <method name="stopMonitoring"
  24543. abstract="false" native="false" synchronized="false"
  24544. static="false" final="false" visibility="public"
  24545. deprecated="not deprecated">
  24546. <doc>
  24547. <![CDATA[Stops monitoring, closing the file.
  24548. @see #close()]]>
  24549. </doc>
  24550. </method>
  24551. <method name="emitRecord"
  24552. abstract="false" native="false" synchronized="false"
  24553. static="false" final="false" visibility="public"
  24554. deprecated="not deprecated">
  24555. <param name="contextName" type="java.lang.String"/>
  24556. <param name="recordName" type="java.lang.String"/>
  24557. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24558. <doc>
  24559. <![CDATA[Emits a metrics record to a file.]]>
  24560. </doc>
  24561. </method>
  24562. <method name="flush"
  24563. abstract="false" native="false" synchronized="false"
  24564. static="false" final="false" visibility="public"
  24565. deprecated="not deprecated">
  24566. <doc>
  24567. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  24568. </doc>
  24569. </method>
  24570. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  24571. transient="false" volatile="false"
  24572. static="true" final="true" visibility="protected"
  24573. deprecated="not deprecated">
  24574. </field>
  24575. <field name="PERIOD_PROPERTY" type="java.lang.String"
  24576. transient="false" volatile="false"
  24577. static="true" final="true" visibility="protected"
  24578. deprecated="not deprecated">
  24579. </field>
  24580. <doc>
  24581. <![CDATA[Metrics context for writing metrics to a file.<p/>
  24582. This class is configured by setting ContextFactory attributes which in turn
  24583. are usually configured through a properties file. All the attributes are
  24584. prefixed by the contextName. For example, the properties file might contain:
  24585. <pre>
  24586. myContextName.fileName=/tmp/metrics.log
  24587. myContextName.period=5
  24588. </pre>
  24589. @deprecated use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.]]>
  24590. </doc>
  24591. </class>
  24592. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  24593. </package>
  24594. <package name="org.apache.hadoop.metrics.ganglia">
  24595. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24596. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24597. abstract="false"
  24598. static="false" final="false" visibility="public"
  24599. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24600. <constructor name="GangliaContext"
  24601. static="false" final="false" visibility="public"
  24602. deprecated="not deprecated">
  24603. <doc>
  24604. <![CDATA[Creates a new instance of GangliaContext]]>
  24605. </doc>
  24606. </constructor>
  24607. <method name="init"
  24608. abstract="false" native="false" synchronized="false"
  24609. static="false" final="false" visibility="public"
  24610. deprecated="not deprecated">
  24611. <param name="contextName" type="java.lang.String"/>
  24612. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24613. </method>
  24614. <method name="emitRecord"
  24615. abstract="false" native="false" synchronized="false"
  24616. static="false" final="false" visibility="public"
  24617. deprecated="not deprecated">
  24618. <param name="contextName" type="java.lang.String"/>
  24619. <param name="recordName" type="java.lang.String"/>
  24620. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24621. <exception name="IOException" type="java.io.IOException"/>
  24622. </method>
  24623. <method name="emitMetric"
  24624. abstract="false" native="false" synchronized="false"
  24625. static="false" final="false" visibility="protected"
  24626. deprecated="not deprecated">
  24627. <param name="name" type="java.lang.String"/>
  24628. <param name="type" type="java.lang.String"/>
  24629. <param name="value" type="java.lang.String"/>
  24630. <exception name="IOException" type="java.io.IOException"/>
  24631. </method>
  24632. <method name="getUnits" return="java.lang.String"
  24633. abstract="false" native="false" synchronized="false"
  24634. static="false" final="false" visibility="protected"
  24635. deprecated="not deprecated">
  24636. <param name="metricName" type="java.lang.String"/>
  24637. </method>
  24638. <method name="getSlope" return="int"
  24639. abstract="false" native="false" synchronized="false"
  24640. static="false" final="false" visibility="protected"
  24641. deprecated="not deprecated">
  24642. <param name="metricName" type="java.lang.String"/>
  24643. </method>
  24644. <method name="getTmax" return="int"
  24645. abstract="false" native="false" synchronized="false"
  24646. static="false" final="false" visibility="protected"
  24647. deprecated="not deprecated">
  24648. <param name="metricName" type="java.lang.String"/>
  24649. </method>
  24650. <method name="getDmax" return="int"
  24651. abstract="false" native="false" synchronized="false"
  24652. static="false" final="false" visibility="protected"
  24653. deprecated="not deprecated">
  24654. <param name="metricName" type="java.lang.String"/>
  24655. </method>
  24656. <method name="xdr_string"
  24657. abstract="false" native="false" synchronized="false"
  24658. static="false" final="false" visibility="protected"
  24659. deprecated="not deprecated">
  24660. <param name="s" type="java.lang.String"/>
  24661. <doc>
  24662. <![CDATA[Puts a string into the buffer by first writing the size of the string
  24663. as an int, followed by the bytes of the string, padded if necessary to
  24664. a multiple of 4.]]>
  24665. </doc>
  24666. </method>
  24667. <method name="xdr_int"
  24668. abstract="false" native="false" synchronized="false"
  24669. static="false" final="false" visibility="protected"
  24670. deprecated="not deprecated">
  24671. <param name="i" type="int"/>
  24672. <doc>
  24673. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  24674. </doc>
  24675. </method>
  24676. <field name="buffer" type="byte[]"
  24677. transient="false" volatile="false"
  24678. static="false" final="false" visibility="protected"
  24679. deprecated="not deprecated">
  24680. </field>
  24681. <field name="offset" type="int"
  24682. transient="false" volatile="false"
  24683. static="false" final="false" visibility="protected"
  24684. deprecated="not deprecated">
  24685. </field>
  24686. <field name="metricsServers" type="java.util.List"
  24687. transient="false" volatile="false"
  24688. static="false" final="false" visibility="protected"
  24689. deprecated="not deprecated">
  24690. </field>
  24691. <field name="datagramSocket" type="java.net.DatagramSocket"
  24692. transient="false" volatile="false"
  24693. static="false" final="false" visibility="protected"
  24694. deprecated="not deprecated">
  24695. </field>
  24696. <doc>
  24697. <![CDATA[Context for sending metrics to Ganglia.
  24698. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24699. </doc>
  24700. </class>
  24701. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24702. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  24703. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  24704. abstract="false"
  24705. static="false" final="false" visibility="public"
  24706. deprecated="not deprecated">
  24707. <constructor name="GangliaContext31"
  24708. static="false" final="false" visibility="public"
  24709. deprecated="not deprecated">
  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="emitMetric"
  24719. abstract="false" native="false" synchronized="false"
  24720. static="false" final="false" visibility="protected"
  24721. deprecated="not deprecated">
  24722. <param name="name" type="java.lang.String"/>
  24723. <param name="type" type="java.lang.String"/>
  24724. <param name="value" type="java.lang.String"/>
  24725. <exception name="IOException" type="java.io.IOException"/>
  24726. </method>
  24727. <doc>
  24728. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  24729. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  24730. </doc>
  24731. </class>
  24732. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  24733. </package>
  24734. <package name="org.apache.hadoop.metrics.jvm">
  24735. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  24736. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  24737. abstract="false"
  24738. static="false" final="false" visibility="public"
  24739. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  24740. <constructor name="EventCounter"
  24741. static="false" final="false" visibility="public"
  24742. deprecated="not deprecated">
  24743. </constructor>
  24744. <doc>
  24745. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  24746. fatal, error and warn.
  24747. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  24748. </doc>
  24749. </class>
  24750. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  24751. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  24752. <class name="JvmMetrics" extends="java.lang.Object"
  24753. abstract="false"
  24754. static="false" final="false" visibility="public"
  24755. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24756. <implements name="org.apache.hadoop.metrics.Updater"/>
  24757. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  24758. abstract="false" native="false" synchronized="true"
  24759. static="true" final="false" visibility="public"
  24760. deprecated="not deprecated">
  24761. <param name="processName" type="java.lang.String"/>
  24762. <param name="sessionId" type="java.lang.String"/>
  24763. </method>
  24764. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  24765. abstract="false" native="false" synchronized="true"
  24766. static="true" final="false" visibility="public"
  24767. deprecated="not deprecated">
  24768. <param name="processName" type="java.lang.String"/>
  24769. <param name="sessionId" type="java.lang.String"/>
  24770. <param name="recordName" type="java.lang.String"/>
  24771. </method>
  24772. <method name="doUpdates"
  24773. abstract="false" native="false" synchronized="false"
  24774. static="false" final="false" visibility="public"
  24775. deprecated="not deprecated">
  24776. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24777. <doc>
  24778. <![CDATA[This will be called periodically (with the period being configuration
  24779. dependent).]]>
  24780. </doc>
  24781. </method>
  24782. <doc>
  24783. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  24784. Any application can create an instance of this class in order to emit
  24785. Java VM metrics.
  24786. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24787. </doc>
  24788. </class>
  24789. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  24790. </package>
  24791. <package name="org.apache.hadoop.metrics.spi">
  24792. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  24793. <class name="AbstractMetricsContext" extends="java.lang.Object"
  24794. abstract="true"
  24795. static="false" final="false" visibility="public"
  24796. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24797. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  24798. <constructor name="AbstractMetricsContext"
  24799. static="false" final="false" visibility="protected"
  24800. deprecated="not deprecated">
  24801. <doc>
  24802. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  24803. </doc>
  24804. </constructor>
  24805. <method name="init"
  24806. abstract="false" native="false" synchronized="false"
  24807. static="false" final="false" visibility="public"
  24808. deprecated="not deprecated">
  24809. <param name="contextName" type="java.lang.String"/>
  24810. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24811. <doc>
  24812. <![CDATA[Initializes the context.]]>
  24813. </doc>
  24814. </method>
  24815. <method name="getAttribute" return="java.lang.String"
  24816. abstract="false" native="false" synchronized="false"
  24817. static="false" final="false" visibility="protected"
  24818. deprecated="not deprecated">
  24819. <param name="attributeName" type="java.lang.String"/>
  24820. <doc>
  24821. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  24822. </doc>
  24823. </method>
  24824. <method name="getAttributeTable" return="java.util.Map"
  24825. abstract="false" native="false" synchronized="false"
  24826. static="false" final="false" visibility="protected"
  24827. deprecated="not deprecated">
  24828. <param name="tableName" type="java.lang.String"/>
  24829. <doc>
  24830. <![CDATA[Returns an attribute-value map derived from the factory attributes
  24831. by finding all factory attributes that begin with
  24832. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  24833. those attributes with the contextName and tableName stripped off.]]>
  24834. </doc>
  24835. </method>
  24836. <method name="getContextName" return="java.lang.String"
  24837. abstract="false" native="false" synchronized="false"
  24838. static="false" final="false" visibility="public"
  24839. deprecated="not deprecated">
  24840. <doc>
  24841. <![CDATA[Returns the context name.]]>
  24842. </doc>
  24843. </method>
  24844. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  24845. abstract="false" native="false" synchronized="false"
  24846. static="false" final="false" visibility="public"
  24847. deprecated="not deprecated">
  24848. <doc>
  24849. <![CDATA[Returns the factory by which this context was created.]]>
  24850. </doc>
  24851. </method>
  24852. <method name="startMonitoring"
  24853. abstract="false" native="false" synchronized="true"
  24854. static="false" final="false" visibility="public"
  24855. deprecated="not deprecated">
  24856. <exception name="IOException" type="java.io.IOException"/>
  24857. <doc>
  24858. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  24859. </doc>
  24860. </method>
  24861. <method name="stopMonitoring"
  24862. abstract="false" native="false" synchronized="true"
  24863. static="false" final="false" visibility="public"
  24864. deprecated="not deprecated">
  24865. <doc>
  24866. <![CDATA[Stops monitoring. This does not free buffered data.
  24867. @see #close()]]>
  24868. </doc>
  24869. </method>
  24870. <method name="isMonitoring" return="boolean"
  24871. abstract="false" native="false" synchronized="false"
  24872. static="false" final="false" visibility="public"
  24873. deprecated="not deprecated">
  24874. <doc>
  24875. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24876. </doc>
  24877. </method>
  24878. <method name="close"
  24879. abstract="false" native="false" synchronized="true"
  24880. static="false" final="false" visibility="public"
  24881. deprecated="not deprecated">
  24882. <doc>
  24883. <![CDATA[Stops monitoring and frees buffered data, returning this
  24884. object to its initial state.]]>
  24885. </doc>
  24886. </method>
  24887. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24888. abstract="false" native="false" synchronized="true"
  24889. static="false" final="true" visibility="public"
  24890. deprecated="not deprecated">
  24891. <param name="recordName" type="java.lang.String"/>
  24892. <doc>
  24893. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  24894. Throws an exception if the metrics implementation is configured with a fixed
  24895. set of record names and <code>recordName</code> is not in that set.
  24896. @param recordName the name of the record
  24897. @throws MetricsException if recordName conflicts with configuration data]]>
  24898. </doc>
  24899. </method>
  24900. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24901. abstract="false" native="false" synchronized="false"
  24902. static="false" final="false" visibility="protected"
  24903. deprecated="not deprecated">
  24904. <param name="recordName" type="java.lang.String"/>
  24905. <doc>
  24906. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  24907. @param recordName the name of the record
  24908. @return newly created instance of MetricsRecordImpl or subclass]]>
  24909. </doc>
  24910. </method>
  24911. <method name="registerUpdater"
  24912. abstract="false" native="false" synchronized="true"
  24913. static="false" final="false" visibility="public"
  24914. deprecated="not deprecated">
  24915. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24916. <doc>
  24917. <![CDATA[Registers a callback to be called at time intervals determined by
  24918. the configuration.
  24919. @param updater object to be run periodically; it should update
  24920. some metrics records]]>
  24921. </doc>
  24922. </method>
  24923. <method name="unregisterUpdater"
  24924. abstract="false" native="false" synchronized="true"
  24925. static="false" final="false" visibility="public"
  24926. deprecated="not deprecated">
  24927. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24928. <doc>
  24929. <![CDATA[Removes a callback, if it exists.
  24930. @param updater object to be removed from the callback list]]>
  24931. </doc>
  24932. </method>
  24933. <method name="getAllRecords" return="java.util.Map"
  24934. abstract="false" native="false" synchronized="true"
  24935. static="false" final="false" visibility="public"
  24936. deprecated="not deprecated">
  24937. <doc>
  24938. <![CDATA[Retrieves all the records managed by this MetricsContext.
  24939. Useful for monitoring systems that are polling-based.
  24940. @return A non-null collection of all monitoring records.]]>
  24941. </doc>
  24942. </method>
  24943. <method name="emitRecord"
  24944. abstract="true" native="false" synchronized="false"
  24945. static="false" final="false" visibility="protected"
  24946. deprecated="not deprecated">
  24947. <param name="contextName" type="java.lang.String"/>
  24948. <param name="recordName" type="java.lang.String"/>
  24949. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24950. <exception name="IOException" type="java.io.IOException"/>
  24951. <doc>
  24952. <![CDATA[Sends a record to the metrics system.]]>
  24953. </doc>
  24954. </method>
  24955. <method name="flush"
  24956. abstract="false" native="false" synchronized="false"
  24957. static="false" final="false" visibility="protected"
  24958. deprecated="not deprecated">
  24959. <exception name="IOException" type="java.io.IOException"/>
  24960. <doc>
  24961. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  24962. Subclasses may override it in order to perform some kind of flush.]]>
  24963. </doc>
  24964. </method>
  24965. <method name="update"
  24966. abstract="false" native="false" synchronized="false"
  24967. static="false" final="false" visibility="protected"
  24968. deprecated="not deprecated">
  24969. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24970. <doc>
  24971. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  24972. the internal table of metric data.]]>
  24973. </doc>
  24974. </method>
  24975. <method name="remove"
  24976. abstract="false" native="false" synchronized="false"
  24977. static="false" final="false" visibility="protected"
  24978. deprecated="not deprecated">
  24979. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24980. <doc>
  24981. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  24982. the internal table of metric data. A row matches if it has the same
  24983. tag names and values as record, but it may also have additional
  24984. tags.]]>
  24985. </doc>
  24986. </method>
  24987. <method name="getPeriod" return="int"
  24988. abstract="false" native="false" synchronized="false"
  24989. static="false" final="false" visibility="public"
  24990. deprecated="not deprecated">
  24991. <doc>
  24992. <![CDATA[Returns the timer period.]]>
  24993. </doc>
  24994. </method>
  24995. <method name="setPeriod"
  24996. abstract="false" native="false" synchronized="false"
  24997. static="false" final="false" visibility="protected"
  24998. deprecated="not deprecated">
  24999. <param name="period" type="int"/>
  25000. <doc>
  25001. <![CDATA[Sets the timer period]]>
  25002. </doc>
  25003. </method>
  25004. <method name="parseAndSetPeriod"
  25005. abstract="false" native="false" synchronized="false"
  25006. static="false" final="false" visibility="protected"
  25007. deprecated="not deprecated">
  25008. <param name="attributeName" type="java.lang.String"/>
  25009. <doc>
  25010. <![CDATA[If a period is set in the attribute passed in, override
  25011. the default with it.]]>
  25012. </doc>
  25013. </method>
  25014. <doc>
  25015. <![CDATA[The main class of the Service Provider Interface. This class should be
  25016. extended in order to integrate the Metrics API with a specific metrics
  25017. client library. <p/>
  25018. This class implements the internal table of metric data, and the timer
  25019. on which data is to be sent to the metrics system. Subclasses must
  25020. override the abstract <code>emitRecord</code> method in order to transmit
  25021. the data. <p/>
  25022. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25023. </doc>
  25024. </class>
  25025. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  25026. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  25027. <class name="AbstractMetricsContext.MetricMap" extends="java.util.TreeMap"
  25028. abstract="false"
  25029. static="true" final="false" visibility="public"
  25030. deprecated="not deprecated">
  25031. </class>
  25032. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  25033. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  25034. <class name="AbstractMetricsContext.TagMap" extends="java.util.TreeMap"
  25035. abstract="false"
  25036. static="true" final="false" visibility="public"
  25037. deprecated="not deprecated">
  25038. <method name="containsAll" return="boolean"
  25039. abstract="false" native="false" synchronized="false"
  25040. static="false" final="false" visibility="public"
  25041. deprecated="not deprecated">
  25042. <param name="other" type="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"/>
  25043. <doc>
  25044. <![CDATA[Returns true if this tagmap contains every tag in other.]]>
  25045. </doc>
  25046. </method>
  25047. </class>
  25048. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  25049. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  25050. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25051. abstract="false"
  25052. static="false" final="false" visibility="public"
  25053. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25054. <constructor name="CompositeContext"
  25055. static="false" final="false" visibility="public"
  25056. deprecated="not deprecated">
  25057. </constructor>
  25058. <method name="init"
  25059. abstract="false" native="false" synchronized="false"
  25060. static="false" final="false" visibility="public"
  25061. deprecated="not deprecated">
  25062. <param name="contextName" type="java.lang.String"/>
  25063. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25064. </method>
  25065. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  25066. abstract="false" native="false" synchronized="false"
  25067. static="false" final="false" visibility="public"
  25068. deprecated="not deprecated">
  25069. <param name="recordName" type="java.lang.String"/>
  25070. </method>
  25071. <method name="emitRecord"
  25072. abstract="false" native="false" synchronized="false"
  25073. static="false" final="false" visibility="protected"
  25074. deprecated="not deprecated">
  25075. <param name="contextName" type="java.lang.String"/>
  25076. <param name="recordName" type="java.lang.String"/>
  25077. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25078. <exception name="IOException" type="java.io.IOException"/>
  25079. </method>
  25080. <method name="flush"
  25081. abstract="false" native="false" synchronized="false"
  25082. static="false" final="false" visibility="protected"
  25083. deprecated="not deprecated">
  25084. <exception name="IOException" type="java.io.IOException"/>
  25085. </method>
  25086. <method name="startMonitoring"
  25087. abstract="false" native="false" synchronized="false"
  25088. static="false" final="false" visibility="public"
  25089. deprecated="not deprecated">
  25090. <exception name="IOException" type="java.io.IOException"/>
  25091. </method>
  25092. <method name="stopMonitoring"
  25093. abstract="false" native="false" synchronized="false"
  25094. static="false" final="false" visibility="public"
  25095. deprecated="not deprecated">
  25096. </method>
  25097. <method name="isMonitoring" return="boolean"
  25098. abstract="false" native="false" synchronized="false"
  25099. static="false" final="false" visibility="public"
  25100. deprecated="not deprecated">
  25101. <doc>
  25102. <![CDATA[Return true if all subcontexts are monitoring.]]>
  25103. </doc>
  25104. </method>
  25105. <method name="close"
  25106. abstract="false" native="false" synchronized="false"
  25107. static="false" final="false" visibility="public"
  25108. deprecated="not deprecated">
  25109. </method>
  25110. <method name="registerUpdater"
  25111. abstract="false" native="false" synchronized="false"
  25112. static="false" final="false" visibility="public"
  25113. deprecated="not deprecated">
  25114. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25115. </method>
  25116. <method name="unregisterUpdater"
  25117. abstract="false" native="false" synchronized="false"
  25118. static="false" final="false" visibility="public"
  25119. deprecated="not deprecated">
  25120. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25121. </method>
  25122. <doc>
  25123. <![CDATA[@deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25124. </doc>
  25125. </class>
  25126. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  25127. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25128. <class name="MetricsRecordImpl" extends="java.lang.Object"
  25129. abstract="false"
  25130. static="false" final="false" visibility="public"
  25131. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25132. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  25133. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25134. static="false" final="false" visibility="protected"
  25135. deprecated="not deprecated">
  25136. <doc>
  25137. <![CDATA[Creates a new instance of FileRecord]]>
  25138. </doc>
  25139. </constructor>
  25140. <method name="getRecordName" return="java.lang.String"
  25141. abstract="false" native="false" synchronized="false"
  25142. static="false" final="false" visibility="public"
  25143. deprecated="not deprecated">
  25144. <doc>
  25145. <![CDATA[Returns the record name.
  25146. @return the record name]]>
  25147. </doc>
  25148. </method>
  25149. <method name="setTag"
  25150. abstract="false" native="false" synchronized="false"
  25151. static="false" final="false" visibility="public"
  25152. deprecated="not deprecated">
  25153. <param name="tagName" type="java.lang.String"/>
  25154. <param name="tagValue" type="java.lang.String"/>
  25155. <doc>
  25156. <![CDATA[Sets the named tag to the specified value.
  25157. @param tagName name of the tag
  25158. @param tagValue new value of the tag
  25159. @throws MetricsException if the tagName conflicts with the configuration]]>
  25160. </doc>
  25161. </method>
  25162. <method name="setTag"
  25163. abstract="false" native="false" synchronized="false"
  25164. static="false" final="false" visibility="public"
  25165. deprecated="not deprecated">
  25166. <param name="tagName" type="java.lang.String"/>
  25167. <param name="tagValue" type="int"/>
  25168. <doc>
  25169. <![CDATA[Sets the named tag to the specified value.
  25170. @param tagName name of the tag
  25171. @param tagValue new value of the tag
  25172. @throws MetricsException if the tagName conflicts with the configuration]]>
  25173. </doc>
  25174. </method>
  25175. <method name="setTag"
  25176. abstract="false" native="false" synchronized="false"
  25177. static="false" final="false" visibility="public"
  25178. deprecated="not deprecated">
  25179. <param name="tagName" type="java.lang.String"/>
  25180. <param name="tagValue" type="long"/>
  25181. <doc>
  25182. <![CDATA[Sets the named tag to the specified value.
  25183. @param tagName name of the tag
  25184. @param tagValue new value of the tag
  25185. @throws MetricsException if the tagName conflicts with the configuration]]>
  25186. </doc>
  25187. </method>
  25188. <method name="setTag"
  25189. abstract="false" native="false" synchronized="false"
  25190. static="false" final="false" visibility="public"
  25191. deprecated="not deprecated">
  25192. <param name="tagName" type="java.lang.String"/>
  25193. <param name="tagValue" type="short"/>
  25194. <doc>
  25195. <![CDATA[Sets the named tag to the specified value.
  25196. @param tagName name of the tag
  25197. @param tagValue new value of the tag
  25198. @throws MetricsException if the tagName conflicts with the configuration]]>
  25199. </doc>
  25200. </method>
  25201. <method name="setTag"
  25202. abstract="false" native="false" synchronized="false"
  25203. static="false" final="false" visibility="public"
  25204. deprecated="not deprecated">
  25205. <param name="tagName" type="java.lang.String"/>
  25206. <param name="tagValue" type="byte"/>
  25207. <doc>
  25208. <![CDATA[Sets the named tag to the specified value.
  25209. @param tagName name of the tag
  25210. @param tagValue new value of the tag
  25211. @throws MetricsException if the tagName conflicts with the configuration]]>
  25212. </doc>
  25213. </method>
  25214. <method name="removeTag"
  25215. abstract="false" native="false" synchronized="false"
  25216. static="false" final="false" visibility="public"
  25217. deprecated="not deprecated">
  25218. <param name="tagName" type="java.lang.String"/>
  25219. <doc>
  25220. <![CDATA[Removes any tag of the specified name.]]>
  25221. </doc>
  25222. </method>
  25223. <method name="setMetric"
  25224. abstract="false" native="false" synchronized="false"
  25225. static="false" final="false" visibility="public"
  25226. deprecated="not deprecated">
  25227. <param name="metricName" type="java.lang.String"/>
  25228. <param name="metricValue" type="int"/>
  25229. <doc>
  25230. <![CDATA[Sets the named metric to the specified value.
  25231. @param metricName name of the metric
  25232. @param metricValue new value of the metric
  25233. @throws MetricsException if the metricName or the type of the metricValue
  25234. conflicts with the configuration]]>
  25235. </doc>
  25236. </method>
  25237. <method name="setMetric"
  25238. abstract="false" native="false" synchronized="false"
  25239. static="false" final="false" visibility="public"
  25240. deprecated="not deprecated">
  25241. <param name="metricName" type="java.lang.String"/>
  25242. <param name="metricValue" type="long"/>
  25243. <doc>
  25244. <![CDATA[Sets the named metric to the specified value.
  25245. @param metricName name of the metric
  25246. @param metricValue new value of the metric
  25247. @throws MetricsException if the metricName or the type of the metricValue
  25248. conflicts with the configuration]]>
  25249. </doc>
  25250. </method>
  25251. <method name="setMetric"
  25252. abstract="false" native="false" synchronized="false"
  25253. static="false" final="false" visibility="public"
  25254. deprecated="not deprecated">
  25255. <param name="metricName" type="java.lang.String"/>
  25256. <param name="metricValue" type="short"/>
  25257. <doc>
  25258. <![CDATA[Sets the named metric to the specified value.
  25259. @param metricName name of the metric
  25260. @param metricValue new value of the metric
  25261. @throws MetricsException if the metricName or the type of the metricValue
  25262. conflicts with the configuration]]>
  25263. </doc>
  25264. </method>
  25265. <method name="setMetric"
  25266. abstract="false" native="false" synchronized="false"
  25267. static="false" final="false" visibility="public"
  25268. deprecated="not deprecated">
  25269. <param name="metricName" type="java.lang.String"/>
  25270. <param name="metricValue" type="byte"/>
  25271. <doc>
  25272. <![CDATA[Sets the named metric to the specified value.
  25273. @param metricName name of the metric
  25274. @param metricValue new value of the metric
  25275. @throws MetricsException if the metricName or the type of the metricValue
  25276. conflicts with the configuration]]>
  25277. </doc>
  25278. </method>
  25279. <method name="setMetric"
  25280. abstract="false" native="false" synchronized="false"
  25281. static="false" final="false" visibility="public"
  25282. deprecated="not deprecated">
  25283. <param name="metricName" type="java.lang.String"/>
  25284. <param name="metricValue" type="float"/>
  25285. <doc>
  25286. <![CDATA[Sets the named metric to the specified value.
  25287. @param metricName name of the metric
  25288. @param metricValue new value of the metric
  25289. @throws MetricsException if the metricName or the type of the metricValue
  25290. conflicts with the configuration]]>
  25291. </doc>
  25292. </method>
  25293. <method name="incrMetric"
  25294. abstract="false" native="false" synchronized="false"
  25295. static="false" final="false" visibility="public"
  25296. deprecated="not deprecated">
  25297. <param name="metricName" type="java.lang.String"/>
  25298. <param name="metricValue" type="int"/>
  25299. <doc>
  25300. <![CDATA[Increments the named metric by the specified value.
  25301. @param metricName name of the metric
  25302. @param metricValue incremental value
  25303. @throws MetricsException if the metricName or the type of the metricValue
  25304. conflicts with the configuration]]>
  25305. </doc>
  25306. </method>
  25307. <method name="incrMetric"
  25308. abstract="false" native="false" synchronized="false"
  25309. static="false" final="false" visibility="public"
  25310. deprecated="not deprecated">
  25311. <param name="metricName" type="java.lang.String"/>
  25312. <param name="metricValue" type="long"/>
  25313. <doc>
  25314. <![CDATA[Increments the named metric by the specified value.
  25315. @param metricName name of the metric
  25316. @param metricValue incremental value
  25317. @throws MetricsException if the metricName or the type of the metricValue
  25318. conflicts with the configuration]]>
  25319. </doc>
  25320. </method>
  25321. <method name="incrMetric"
  25322. abstract="false" native="false" synchronized="false"
  25323. static="false" final="false" visibility="public"
  25324. deprecated="not deprecated">
  25325. <param name="metricName" type="java.lang.String"/>
  25326. <param name="metricValue" type="short"/>
  25327. <doc>
  25328. <![CDATA[Increments the named metric by the specified value.
  25329. @param metricName name of the metric
  25330. @param metricValue incremental value
  25331. @throws MetricsException if the metricName or the type of the metricValue
  25332. conflicts with the configuration]]>
  25333. </doc>
  25334. </method>
  25335. <method name="incrMetric"
  25336. abstract="false" native="false" synchronized="false"
  25337. static="false" final="false" visibility="public"
  25338. deprecated="not deprecated">
  25339. <param name="metricName" type="java.lang.String"/>
  25340. <param name="metricValue" type="byte"/>
  25341. <doc>
  25342. <![CDATA[Increments the named metric by the specified value.
  25343. @param metricName name of the metric
  25344. @param metricValue incremental value
  25345. @throws MetricsException if the metricName or the type of the metricValue
  25346. conflicts with the configuration]]>
  25347. </doc>
  25348. </method>
  25349. <method name="incrMetric"
  25350. abstract="false" native="false" synchronized="false"
  25351. static="false" final="false" visibility="public"
  25352. deprecated="not deprecated">
  25353. <param name="metricName" type="java.lang.String"/>
  25354. <param name="metricValue" type="float"/>
  25355. <doc>
  25356. <![CDATA[Increments the named metric by the specified value.
  25357. @param metricName name of the metric
  25358. @param metricValue incremental value
  25359. @throws MetricsException if the metricName or the type of the metricValue
  25360. conflicts with the configuration]]>
  25361. </doc>
  25362. </method>
  25363. <method name="update"
  25364. abstract="false" native="false" synchronized="false"
  25365. static="false" final="false" visibility="public"
  25366. deprecated="not deprecated">
  25367. <doc>
  25368. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  25369. If the tag values match an existing row, that row is updated;
  25370. otherwise, a new row is added.]]>
  25371. </doc>
  25372. </method>
  25373. <method name="remove"
  25374. abstract="false" native="false" synchronized="false"
  25375. static="false" final="false" visibility="public"
  25376. deprecated="not deprecated">
  25377. <doc>
  25378. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  25379. that equal the tags that have been set on this record.]]>
  25380. </doc>
  25381. </method>
  25382. <doc>
  25383. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  25384. from which it was created, and delegates back to it on <code>update</code>
  25385. and <code>remove()</code>.
  25386. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25387. </doc>
  25388. </class>
  25389. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25390. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  25391. <class name="MetricValue" extends="java.lang.Object"
  25392. abstract="false"
  25393. static="false" final="false" visibility="public"
  25394. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25395. <constructor name="MetricValue" type="java.lang.Number, boolean"
  25396. static="false" final="false" visibility="public"
  25397. deprecated="not deprecated">
  25398. <doc>
  25399. <![CDATA[Creates a new instance of MetricValue]]>
  25400. </doc>
  25401. </constructor>
  25402. <method name="isIncrement" return="boolean"
  25403. abstract="false" native="false" synchronized="false"
  25404. static="false" final="false" visibility="public"
  25405. deprecated="not deprecated">
  25406. </method>
  25407. <method name="isAbsolute" return="boolean"
  25408. abstract="false" native="false" synchronized="false"
  25409. static="false" final="false" visibility="public"
  25410. deprecated="not deprecated">
  25411. </method>
  25412. <method name="getNumber" return="java.lang.Number"
  25413. abstract="false" native="false" synchronized="false"
  25414. static="false" final="false" visibility="public"
  25415. deprecated="not deprecated">
  25416. </method>
  25417. <field name="ABSOLUTE" type="boolean"
  25418. transient="false" volatile="false"
  25419. static="true" final="true" visibility="public"
  25420. deprecated="not deprecated">
  25421. </field>
  25422. <field name="INCREMENT" type="boolean"
  25423. transient="false" volatile="false"
  25424. static="true" final="true" visibility="public"
  25425. deprecated="not deprecated">
  25426. </field>
  25427. <doc>
  25428. <![CDATA[A Number that is either an absolute or an incremental amount.
  25429. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25430. </doc>
  25431. </class>
  25432. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  25433. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25434. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25435. abstract="false"
  25436. static="false" final="false" visibility="public"
  25437. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25438. <constructor name="NoEmitMetricsContext"
  25439. static="false" final="false" visibility="public"
  25440. deprecated="not deprecated">
  25441. <doc>
  25442. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25443. </doc>
  25444. </constructor>
  25445. <method name="init"
  25446. abstract="false" native="false" synchronized="false"
  25447. static="false" final="false" visibility="public"
  25448. deprecated="not deprecated">
  25449. <param name="contextName" type="java.lang.String"/>
  25450. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25451. </method>
  25452. <method name="emitRecord"
  25453. abstract="false" native="false" synchronized="false"
  25454. static="false" final="false" visibility="protected"
  25455. deprecated="not deprecated">
  25456. <param name="contextName" type="java.lang.String"/>
  25457. <param name="recordName" type="java.lang.String"/>
  25458. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25459. <doc>
  25460. <![CDATA[Do-nothing version of emitRecord]]>
  25461. </doc>
  25462. </method>
  25463. <doc>
  25464. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  25465. does save it for retrieval with getAllRecords().
  25466. This is useful if you want to support {@link MetricsServlet}, but
  25467. not emit metrics in any other way.
  25468. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25469. </doc>
  25470. </class>
  25471. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25472. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  25473. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25474. abstract="false"
  25475. static="false" final="false" visibility="public"
  25476. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25477. <constructor name="NullContext"
  25478. static="false" final="false" visibility="public"
  25479. deprecated="not deprecated">
  25480. <doc>
  25481. <![CDATA[Creates a new instance of NullContext]]>
  25482. </doc>
  25483. </constructor>
  25484. <method name="startMonitoring"
  25485. abstract="false" native="false" synchronized="false"
  25486. static="false" final="false" visibility="public"
  25487. deprecated="not deprecated">
  25488. <doc>
  25489. <![CDATA[Do-nothing version of startMonitoring]]>
  25490. </doc>
  25491. </method>
  25492. <method name="emitRecord"
  25493. abstract="false" native="false" synchronized="false"
  25494. static="false" final="false" visibility="protected"
  25495. deprecated="not deprecated">
  25496. <param name="contextName" type="java.lang.String"/>
  25497. <param name="recordName" type="java.lang.String"/>
  25498. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25499. <doc>
  25500. <![CDATA[Do-nothing version of emitRecord]]>
  25501. </doc>
  25502. </method>
  25503. <method name="update"
  25504. abstract="false" native="false" synchronized="false"
  25505. static="false" final="false" visibility="protected"
  25506. deprecated="not deprecated">
  25507. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25508. <doc>
  25509. <![CDATA[Do-nothing version of update]]>
  25510. </doc>
  25511. </method>
  25512. <method name="remove"
  25513. abstract="false" native="false" synchronized="false"
  25514. static="false" final="false" visibility="protected"
  25515. deprecated="not deprecated">
  25516. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25517. <doc>
  25518. <![CDATA[Do-nothing version of remove]]>
  25519. </doc>
  25520. </method>
  25521. <doc>
  25522. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  25523. default context, so that no performance data is emitted if no configuration
  25524. data is found.
  25525. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25526. </doc>
  25527. </class>
  25528. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  25529. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25530. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25531. abstract="false"
  25532. static="false" final="false" visibility="public"
  25533. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25534. <constructor name="NullContextWithUpdateThread"
  25535. static="false" final="false" visibility="public"
  25536. deprecated="not deprecated">
  25537. <doc>
  25538. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25539. </doc>
  25540. </constructor>
  25541. <method name="init"
  25542. abstract="false" native="false" synchronized="false"
  25543. static="false" final="false" visibility="public"
  25544. deprecated="not deprecated">
  25545. <param name="contextName" type="java.lang.String"/>
  25546. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25547. </method>
  25548. <method name="emitRecord"
  25549. abstract="false" native="false" synchronized="false"
  25550. static="false" final="false" visibility="protected"
  25551. deprecated="not deprecated">
  25552. <param name="contextName" type="java.lang.String"/>
  25553. <param name="recordName" type="java.lang.String"/>
  25554. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25555. <doc>
  25556. <![CDATA[Do-nothing version of emitRecord]]>
  25557. </doc>
  25558. </method>
  25559. <method name="update"
  25560. abstract="false" native="false" synchronized="false"
  25561. static="false" final="false" visibility="protected"
  25562. deprecated="not deprecated">
  25563. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25564. <doc>
  25565. <![CDATA[Do-nothing version of update]]>
  25566. </doc>
  25567. </method>
  25568. <method name="remove"
  25569. abstract="false" native="false" synchronized="false"
  25570. static="false" final="false" visibility="protected"
  25571. deprecated="not deprecated">
  25572. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25573. <doc>
  25574. <![CDATA[Do-nothing version of remove]]>
  25575. </doc>
  25576. </method>
  25577. <doc>
  25578. <![CDATA[A null context which has a thread calling
  25579. periodically when monitoring is started. This keeps the data sampled
  25580. correctly.
  25581. In all other respects, this is like the NULL context: No data is emitted.
  25582. This is suitable for Monitoring systems like JMX which reads the metrics
  25583. when someone reads the data from JMX.
  25584. The default impl of start and stop monitoring:
  25585. is the AbstractMetricsContext is good enough.
  25586. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25587. </doc>
  25588. </class>
  25589. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25590. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  25591. <class name="OutputRecord" extends="java.lang.Object"
  25592. abstract="false"
  25593. static="false" final="false" visibility="public"
  25594. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25595. <method name="getTagNames" return="java.util.Set"
  25596. abstract="false" native="false" synchronized="false"
  25597. static="false" final="false" visibility="public"
  25598. deprecated="not deprecated">
  25599. <doc>
  25600. <![CDATA[Returns the set of tag names]]>
  25601. </doc>
  25602. </method>
  25603. <method name="getTag" return="java.lang.Object"
  25604. abstract="false" native="false" synchronized="false"
  25605. static="false" final="false" visibility="public"
  25606. deprecated="not deprecated">
  25607. <param name="name" type="java.lang.String"/>
  25608. <doc>
  25609. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  25610. @return the tag value, or null if there is no such tag]]>
  25611. </doc>
  25612. </method>
  25613. <method name="getMetricNames" return="java.util.Set"
  25614. abstract="false" native="false" synchronized="false"
  25615. static="false" final="false" visibility="public"
  25616. deprecated="not deprecated">
  25617. <doc>
  25618. <![CDATA[Returns the set of metric names.]]>
  25619. </doc>
  25620. </method>
  25621. <method name="getMetric" return="java.lang.Number"
  25622. abstract="false" native="false" synchronized="false"
  25623. static="false" final="false" visibility="public"
  25624. deprecated="not deprecated">
  25625. <param name="name" type="java.lang.String"/>
  25626. <doc>
  25627. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  25628. </doc>
  25629. </method>
  25630. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  25631. abstract="false" native="false" synchronized="false"
  25632. static="false" final="false" visibility="public"
  25633. deprecated="not deprecated">
  25634. <doc>
  25635. <![CDATA[Returns a copy of this record's tags.]]>
  25636. </doc>
  25637. </method>
  25638. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  25639. abstract="false" native="false" synchronized="false"
  25640. static="false" final="false" visibility="public"
  25641. deprecated="not deprecated">
  25642. <doc>
  25643. <![CDATA[Returns a copy of this record's metrics.]]>
  25644. </doc>
  25645. </method>
  25646. <doc>
  25647. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  25648. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25649. </doc>
  25650. </class>
  25651. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  25652. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  25653. <class name="Util" extends="java.lang.Object"
  25654. abstract="false"
  25655. static="false" final="false" visibility="public"
  25656. deprecated="not deprecated">
  25657. <method name="parse" return="java.util.List"
  25658. abstract="false" native="false" synchronized="false"
  25659. static="true" final="false" visibility="public"
  25660. deprecated="not deprecated">
  25661. <param name="specs" type="java.lang.String"/>
  25662. <param name="defaultPort" type="int"/>
  25663. <doc>
  25664. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  25665. of the form <i>hostname</i> or <i>hostname:port</i>. If
  25666. the specs string is null, defaults to localhost:defaultPort.
  25667. @return a list of InetSocketAddress objects.]]>
  25668. </doc>
  25669. </method>
  25670. <doc>
  25671. <![CDATA[Static utility methods]]>
  25672. </doc>
  25673. </class>
  25674. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  25675. </package>
  25676. <package name="org.apache.hadoop.metrics.util">
  25677. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  25678. <class name="MBeanUtil" extends="java.lang.Object"
  25679. abstract="false"
  25680. static="false" final="false" visibility="public"
  25681. deprecated="in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.">
  25682. <constructor name="MBeanUtil"
  25683. static="false" final="false" visibility="public"
  25684. deprecated="not deprecated">
  25685. </constructor>
  25686. <method name="registerMBean" return="javax.management.ObjectName"
  25687. abstract="false" native="false" synchronized="false"
  25688. static="true" final="false" visibility="public"
  25689. deprecated="not deprecated">
  25690. <param name="serviceName" type="java.lang.String"/>
  25691. <param name="nameName" type="java.lang.String"/>
  25692. <param name="theMbean" type="java.lang.Object"/>
  25693. <doc>
  25694. <![CDATA[Register the MBean using our standard MBeanName format
  25695. "hadoop:service=<serviceName>,name=<nameName>"
  25696. Where the <serviceName> and <nameName> are the supplied parameters
  25697. @param serviceName
  25698. @param nameName
  25699. @param theMbean - the MBean to register
  25700. @return the named used to register the MBean]]>
  25701. </doc>
  25702. </method>
  25703. <method name="unregisterMBean"
  25704. abstract="false" native="false" synchronized="false"
  25705. static="true" final="false" visibility="public"
  25706. deprecated="not deprecated">
  25707. <param name="mbeanName" type="javax.management.ObjectName"/>
  25708. </method>
  25709. <doc>
  25710. <![CDATA[This util class provides a method to register an MBean using
  25711. our standard naming convention as described in the doc
  25712. for {@link #registerMBean(String, String, Object)}
  25713. @deprecated in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.]]>
  25714. </doc>
  25715. </class>
  25716. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  25717. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  25718. <class name="MetricsBase" extends="java.lang.Object"
  25719. abstract="true"
  25720. static="false" final="false" visibility="public"
  25721. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25722. <constructor name="MetricsBase" type="java.lang.String"
  25723. static="false" final="false" visibility="protected"
  25724. deprecated="not deprecated">
  25725. </constructor>
  25726. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  25727. static="false" final="false" visibility="protected"
  25728. deprecated="not deprecated">
  25729. </constructor>
  25730. <method name="pushMetric"
  25731. abstract="true" native="false" synchronized="false"
  25732. static="false" final="false" visibility="public"
  25733. deprecated="not deprecated">
  25734. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25735. </method>
  25736. <method name="getName" return="java.lang.String"
  25737. abstract="false" native="false" synchronized="false"
  25738. static="false" final="false" visibility="public"
  25739. deprecated="not deprecated">
  25740. </method>
  25741. <method name="getDescription" return="java.lang.String"
  25742. abstract="false" native="false" synchronized="false"
  25743. static="false" final="false" visibility="public"
  25744. deprecated="not deprecated">
  25745. </method>
  25746. <field name="NO_DESCRIPTION" type="java.lang.String"
  25747. transient="false" volatile="false"
  25748. static="true" final="true" visibility="public"
  25749. deprecated="not deprecated">
  25750. </field>
  25751. <doc>
  25752. <![CDATA[This is base class for all metrics
  25753. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25754. </doc>
  25755. </class>
  25756. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  25757. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  25758. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  25759. abstract="true"
  25760. static="false" final="false" visibility="public"
  25761. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25762. <implements name="javax.management.DynamicMBean"/>
  25763. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25764. static="false" final="false" visibility="protected"
  25765. deprecated="not deprecated">
  25766. </constructor>
  25767. <method name="getAttribute" return="java.lang.Object"
  25768. abstract="false" native="false" synchronized="false"
  25769. static="false" final="false" visibility="public"
  25770. deprecated="not deprecated">
  25771. <param name="attributeName" type="java.lang.String"/>
  25772. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  25773. <exception name="MBeanException" type="javax.management.MBeanException"/>
  25774. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  25775. </method>
  25776. <method name="getAttributes" return="javax.management.AttributeList"
  25777. abstract="false" native="false" synchronized="false"
  25778. static="false" final="false" visibility="public"
  25779. deprecated="not deprecated">
  25780. <param name="attributeNames" type="java.lang.String[]"/>
  25781. </method>
  25782. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  25783. abstract="false" native="false" synchronized="false"
  25784. static="false" final="false" visibility="public"
  25785. deprecated="not deprecated">
  25786. </method>
  25787. <method name="invoke" return="java.lang.Object"
  25788. abstract="false" native="false" synchronized="false"
  25789. static="false" final="false" visibility="public"
  25790. deprecated="not deprecated">
  25791. <param name="actionName" type="java.lang.String"/>
  25792. <param name="parms" type="java.lang.Object[]"/>
  25793. <param name="signature" type="java.lang.String[]"/>
  25794. <exception name="MBeanException" type="javax.management.MBeanException"/>
  25795. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  25796. </method>
  25797. <method name="setAttribute"
  25798. abstract="false" native="false" synchronized="false"
  25799. static="false" final="false" visibility="public"
  25800. deprecated="not deprecated">
  25801. <param name="attribute" type="javax.management.Attribute"/>
  25802. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  25803. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  25804. <exception name="MBeanException" type="javax.management.MBeanException"/>
  25805. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  25806. </method>
  25807. <method name="setAttributes" return="javax.management.AttributeList"
  25808. abstract="false" native="false" synchronized="false"
  25809. static="false" final="false" visibility="public"
  25810. deprecated="not deprecated">
  25811. <param name="attributes" type="javax.management.AttributeList"/>
  25812. </method>
  25813. <doc>
  25814. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  25815. metrics.
  25816. The metrics constructors registers metrics in a registry.
  25817. Different categories of metrics should be in differnt classes with their own
  25818. registry (as in NameNodeMetrics and DataNodeMetrics).
  25819. Then the MBean can be created passing the registry to the constructor.
  25820. The MBean should be then registered using a mbean name (example):
  25821. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  25822. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  25823. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  25824. "TestStatistics", theMBean);
  25825. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25826. </doc>
  25827. </class>
  25828. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  25829. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  25830. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25831. abstract="false"
  25832. static="false" final="false" visibility="public"
  25833. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.">
  25834. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25835. static="false" final="false" visibility="public"
  25836. deprecated="not deprecated">
  25837. <doc>
  25838. <![CDATA[Constructor - create a new metric
  25839. @param nam the name of the metrics to be used to publish the metric
  25840. @param registry - where the metrics object will be registered]]>
  25841. </doc>
  25842. </constructor>
  25843. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25844. static="false" final="false" visibility="public"
  25845. deprecated="not deprecated">
  25846. <doc>
  25847. <![CDATA[Constructor - create a new metric
  25848. @param nam the name of the metrics to be used to publish the metric
  25849. @param registry - where the metrics object will be registered
  25850. A description of {@link #NO_DESCRIPTION} is used]]>
  25851. </doc>
  25852. </constructor>
  25853. <method name="set"
  25854. abstract="false" native="false" synchronized="true"
  25855. static="false" final="false" visibility="public"
  25856. deprecated="not deprecated">
  25857. <param name="newValue" type="int"/>
  25858. <doc>
  25859. <![CDATA[Set the value
  25860. @param newValue]]>
  25861. </doc>
  25862. </method>
  25863. <method name="get" return="int"
  25864. abstract="false" native="false" synchronized="true"
  25865. static="false" final="false" visibility="public"
  25866. deprecated="not deprecated">
  25867. <doc>
  25868. <![CDATA[Get value
  25869. @return the value last set]]>
  25870. </doc>
  25871. </method>
  25872. <method name="pushMetric"
  25873. abstract="false" native="false" synchronized="true"
  25874. static="false" final="false" visibility="public"
  25875. deprecated="not deprecated">
  25876. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25877. <doc>
  25878. <![CDATA[Push the metric to the mr.
  25879. The metric is pushed only if it was updated since last push
  25880. Note this does NOT push to JMX
  25881. (JMX gets the info via {@link #get()}
  25882. @param mr]]>
  25883. </doc>
  25884. </method>
  25885. <doc>
  25886. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  25887. but changes only when it is set.
  25888. Each time its value is set, it is published only *once* at the next update
  25889. call.
  25890. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.]]>
  25891. </doc>
  25892. </class>
  25893. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  25894. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  25895. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  25896. abstract="false"
  25897. static="false" final="false" visibility="public"
  25898. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25899. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  25900. static="false" final="false" visibility="public"
  25901. deprecated="not deprecated">
  25902. <doc>
  25903. <![CDATA[Constructor - create a new metric
  25904. @param nam the name of the metrics to be used to publish the metric
  25905. @param registry - where the metrics object will be registered]]>
  25906. </doc>
  25907. </constructor>
  25908. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  25909. static="false" final="false" visibility="public"
  25910. deprecated="not deprecated">
  25911. <doc>
  25912. <![CDATA[Constructor - create a new metric
  25913. @param nam the name of the metrics to be used to publish the metric
  25914. @param registry - where the metrics object will be registered
  25915. A description of {@link #NO_DESCRIPTION} is used]]>
  25916. </doc>
  25917. </constructor>
  25918. <method name="set"
  25919. abstract="false" native="false" synchronized="true"
  25920. static="false" final="false" visibility="public"
  25921. deprecated="not deprecated">
  25922. <param name="newValue" type="long"/>
  25923. <doc>
  25924. <![CDATA[Set the value
  25925. @param newValue]]>
  25926. </doc>
  25927. </method>
  25928. <method name="get" return="long"
  25929. abstract="false" native="false" synchronized="true"
  25930. static="false" final="false" visibility="public"
  25931. deprecated="not deprecated">
  25932. <doc>
  25933. <![CDATA[Get value
  25934. @return the value last set]]>
  25935. </doc>
  25936. </method>
  25937. <method name="pushMetric"
  25938. abstract="false" native="false" synchronized="true"
  25939. static="false" final="false" visibility="public"
  25940. deprecated="not deprecated">
  25941. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  25942. <doc>
  25943. <![CDATA[Push the metric to the mr.
  25944. The metric is pushed only if it was updated since last push
  25945. Note this does NOT push to JMX
  25946. (JMX gets the info via {@link #get()}
  25947. @param mr]]>
  25948. </doc>
  25949. </method>
  25950. <doc>
  25951. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  25952. but changes only when it is set.
  25953. Each time its value is set, it is published only *once* at the next update
  25954. call.
  25955. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25956. </doc>
  25957. </class>
  25958. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  25959. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  25960. <class name="MetricsRegistry" extends="java.lang.Object"
  25961. abstract="false"
  25962. static="false" final="false" visibility="public"
  25963. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.">
  25964. <constructor name="MetricsRegistry"
  25965. static="false" final="false" visibility="public"
  25966. deprecated="not deprecated">
  25967. </constructor>
  25968. <method name="size" return="int"
  25969. abstract="false" native="false" synchronized="false"
  25970. static="false" final="false" visibility="public"
  25971. deprecated="not deprecated">
  25972. <doc>
  25973. <![CDATA[@return number of metrics in the registry]]>
  25974. </doc>
  25975. </method>
  25976. <method name="add"
  25977. abstract="false" native="false" synchronized="true"
  25978. static="false" final="false" visibility="public"
  25979. deprecated="not deprecated">
  25980. <param name="metricsName" type="java.lang.String"/>
  25981. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  25982. <doc>
  25983. <![CDATA[Add a new metrics to the registry
  25984. @param metricsName - the name
  25985. @param theMetricsObj - the metrics
  25986. @throws IllegalArgumentException if a name is already registered]]>
  25987. </doc>
  25988. </method>
  25989. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  25990. abstract="false" native="false" synchronized="true"
  25991. static="false" final="false" visibility="public"
  25992. deprecated="not deprecated">
  25993. <param name="metricsName" type="java.lang.String"/>
  25994. <doc>
  25995. <![CDATA[@param metricsName
  25996. @return the metrics if there is one registered by the supplied name.
  25997. Returns null if none is registered]]>
  25998. </doc>
  25999. </method>
  26000. <method name="getKeyList" return="java.util.Collection"
  26001. abstract="false" native="false" synchronized="true"
  26002. static="false" final="false" visibility="public"
  26003. deprecated="not deprecated">
  26004. <doc>
  26005. <![CDATA[@return the list of metrics names]]>
  26006. </doc>
  26007. </method>
  26008. <method name="getMetricsList" return="java.util.Collection"
  26009. abstract="false" native="false" synchronized="true"
  26010. static="false" final="false" visibility="public"
  26011. deprecated="not deprecated">
  26012. <doc>
  26013. <![CDATA[@return the list of metrics]]>
  26014. </doc>
  26015. </method>
  26016. <doc>
  26017. <![CDATA[This is the registry for metrics.
  26018. Related set of metrics should be declared in a holding class and registered
  26019. in a registry for those metrics which is also stored in the the holding class.
  26020. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.]]>
  26021. </doc>
  26022. </class>
  26023. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  26024. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  26025. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26026. abstract="false"
  26027. static="false" final="false" visibility="public"
  26028. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.">
  26029. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26030. static="false" final="false" visibility="public"
  26031. deprecated="not deprecated">
  26032. <doc>
  26033. <![CDATA[Constructor - create a new metric
  26034. @param nam the name of the metrics to be used to publish the metric
  26035. @param registry - where the metrics object will be registered
  26036. @param description - the description]]>
  26037. </doc>
  26038. </constructor>
  26039. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26040. static="false" final="false" visibility="public"
  26041. deprecated="not deprecated">
  26042. <doc>
  26043. <![CDATA[Constructor - create a new metric
  26044. @param nam the name of the metrics to be used to publish the metric
  26045. @param registry - where the metrics object will be registered
  26046. A description of {@link #NO_DESCRIPTION} is used]]>
  26047. </doc>
  26048. </constructor>
  26049. <method name="inc"
  26050. abstract="false" native="false" synchronized="true"
  26051. static="false" final="false" visibility="public"
  26052. deprecated="not deprecated">
  26053. <param name="incr" type="int"/>
  26054. <doc>
  26055. <![CDATA[Inc metrics for incr vlaue
  26056. @param incr - number of operations]]>
  26057. </doc>
  26058. </method>
  26059. <method name="inc"
  26060. abstract="false" native="false" synchronized="true"
  26061. static="false" final="false" visibility="public"
  26062. deprecated="not deprecated">
  26063. <doc>
  26064. <![CDATA[Inc metrics by one]]>
  26065. </doc>
  26066. </method>
  26067. <method name="pushMetric"
  26068. abstract="false" native="false" synchronized="true"
  26069. static="false" final="false" visibility="public"
  26070. deprecated="not deprecated">
  26071. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26072. <doc>
  26073. <![CDATA[Push the delta metrics to the mr.
  26074. The delta is since the last push/interval.
  26075. Note this does NOT push to JMX
  26076. (JMX gets the info via {@link #previousIntervalValue}
  26077. @param mr]]>
  26078. </doc>
  26079. </method>
  26080. <method name="getPreviousIntervalValue" return="int"
  26081. abstract="false" native="false" synchronized="true"
  26082. static="false" final="false" visibility="public"
  26083. deprecated="not deprecated">
  26084. <doc>
  26085. <![CDATA[The Value at the Previous interval
  26086. @return prev interval value]]>
  26087. </doc>
  26088. </method>
  26089. <method name="getCurrentIntervalValue" return="int"
  26090. abstract="false" native="false" synchronized="true"
  26091. static="false" final="false" visibility="public"
  26092. deprecated="not deprecated">
  26093. <doc>
  26094. <![CDATA[The Value at the current interval
  26095. @return prev interval value]]>
  26096. </doc>
  26097. </method>
  26098. <doc>
  26099. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  26100. varies over time (e.g. number of files created). The metrics is accumulated
  26101. over an interval (set in the metrics config file); the metrics is
  26102. published at the end of each interval and then
  26103. reset to zero. Hence the counter has the value in the current interval.
  26104. Note if one wants a time associated with the metric then use
  26105. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  26106. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.]]>
  26107. </doc>
  26108. </class>
  26109. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  26110. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  26111. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26112. abstract="false"
  26113. static="false" final="false" visibility="public"
  26114. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.">
  26115. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26116. static="false" final="false" visibility="public"
  26117. deprecated="not deprecated">
  26118. <doc>
  26119. <![CDATA[Constructor - create a new metric
  26120. @param nam the name of the metrics to be used to publish the metric
  26121. @param registry - where the metrics object will be registered]]>
  26122. </doc>
  26123. </constructor>
  26124. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26125. static="false" final="false" visibility="public"
  26126. deprecated="not deprecated">
  26127. <doc>
  26128. <![CDATA[Constructor - create a new metric
  26129. @param nam the name of the metrics to be used to publish the metric
  26130. @param registry - where the metrics object will be registered
  26131. A description of {@link #NO_DESCRIPTION} is used]]>
  26132. </doc>
  26133. </constructor>
  26134. <method name="inc"
  26135. abstract="false" native="false" synchronized="true"
  26136. static="false" final="false" visibility="public"
  26137. deprecated="not deprecated">
  26138. <param name="incr" type="long"/>
  26139. <doc>
  26140. <![CDATA[Inc metrics for incr vlaue
  26141. @param incr - number of operations]]>
  26142. </doc>
  26143. </method>
  26144. <method name="inc"
  26145. abstract="false" native="false" synchronized="true"
  26146. static="false" final="false" visibility="public"
  26147. deprecated="not deprecated">
  26148. <doc>
  26149. <![CDATA[Inc metrics by one]]>
  26150. </doc>
  26151. </method>
  26152. <method name="pushMetric"
  26153. abstract="false" native="false" synchronized="true"
  26154. static="false" final="false" visibility="public"
  26155. deprecated="not deprecated">
  26156. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26157. <doc>
  26158. <![CDATA[Push the delta metrics to the mr.
  26159. The delta is since the last push/interval.
  26160. Note this does NOT push to JMX
  26161. (JMX gets the info via {@link #previousIntervalValue}
  26162. @param mr]]>
  26163. </doc>
  26164. </method>
  26165. <method name="getPreviousIntervalValue" return="long"
  26166. abstract="false" native="false" synchronized="true"
  26167. static="false" final="false" visibility="public"
  26168. deprecated="not deprecated">
  26169. <doc>
  26170. <![CDATA[The Value at the Previous interval
  26171. @return prev interval value]]>
  26172. </doc>
  26173. </method>
  26174. <method name="getCurrentIntervalValue" return="long"
  26175. abstract="false" native="false" synchronized="true"
  26176. static="false" final="false" visibility="public"
  26177. deprecated="not deprecated">
  26178. <doc>
  26179. <![CDATA[The Value at the current interval
  26180. @return prev interval value]]>
  26181. </doc>
  26182. </method>
  26183. <doc>
  26184. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  26185. varies over time (e.g. number of files created). The metrics is accumulated
  26186. over an interval (set in the metrics config file); the metrics is
  26187. published at the end of each interval and then
  26188. reset to zero. Hence the counter has the value in the current interval.
  26189. Note if one wants a time associated with the metric then use
  26190. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  26191. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.]]>
  26192. </doc>
  26193. </class>
  26194. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  26195. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  26196. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26197. abstract="false"
  26198. static="false" final="false" visibility="public"
  26199. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.">
  26200. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26201. static="false" final="false" visibility="public"
  26202. deprecated="not deprecated">
  26203. <doc>
  26204. <![CDATA[Constructor - create a new metric
  26205. @param nam the name of the metrics to be used to publish the metric
  26206. @param registry - where the metrics object will be registered]]>
  26207. </doc>
  26208. </constructor>
  26209. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26210. static="false" final="false" visibility="public"
  26211. deprecated="not deprecated">
  26212. <doc>
  26213. <![CDATA[Constructor - create a new metric
  26214. @param nam the name of the metrics to be used to publish the metric
  26215. @param registry - where the metrics object will be registered
  26216. A description of {@link #NO_DESCRIPTION} is used]]>
  26217. </doc>
  26218. </constructor>
  26219. <method name="inc"
  26220. abstract="false" native="false" synchronized="true"
  26221. static="false" final="false" visibility="public"
  26222. deprecated="not deprecated">
  26223. <param name="numOps" type="int"/>
  26224. <param name="time" type="long"/>
  26225. <doc>
  26226. <![CDATA[Increment the metrics for numOps operations
  26227. @param numOps - number of operations
  26228. @param time - time for numOps operations]]>
  26229. </doc>
  26230. </method>
  26231. <method name="inc"
  26232. abstract="false" native="false" synchronized="true"
  26233. static="false" final="false" visibility="public"
  26234. deprecated="not deprecated">
  26235. <param name="time" type="long"/>
  26236. <doc>
  26237. <![CDATA[Increment the metrics for one operation
  26238. @param time for one operation]]>
  26239. </doc>
  26240. </method>
  26241. <method name="pushMetric"
  26242. abstract="false" native="false" synchronized="true"
  26243. static="false" final="false" visibility="public"
  26244. deprecated="not deprecated">
  26245. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26246. <doc>
  26247. <![CDATA[Push the delta metrics to the mr.
  26248. The delta is since the last push/interval.
  26249. Note this does NOT push to JMX
  26250. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  26251. {@link #getPreviousIntervalNumOps()}
  26252. @param mr]]>
  26253. </doc>
  26254. </method>
  26255. <method name="getPreviousIntervalNumOps" return="int"
  26256. abstract="false" native="false" synchronized="true"
  26257. static="false" final="false" visibility="public"
  26258. deprecated="not deprecated">
  26259. <doc>
  26260. <![CDATA[The number of operations in the previous interval
  26261. @return - ops in prev interval]]>
  26262. </doc>
  26263. </method>
  26264. <method name="getPreviousIntervalAverageTime" return="long"
  26265. abstract="false" native="false" synchronized="true"
  26266. static="false" final="false" visibility="public"
  26267. deprecated="not deprecated">
  26268. <doc>
  26269. <![CDATA[The average rate of an operation in the previous interval
  26270. @return - the average rate.]]>
  26271. </doc>
  26272. </method>
  26273. <method name="getMinTime" return="long"
  26274. abstract="false" native="false" synchronized="true"
  26275. static="false" final="false" visibility="public"
  26276. deprecated="not deprecated">
  26277. <doc>
  26278. <![CDATA[The min time for a single operation since the last reset
  26279. {@link #resetMinMax()}
  26280. @return min time for an operation]]>
  26281. </doc>
  26282. </method>
  26283. <method name="getMaxTime" return="long"
  26284. abstract="false" native="false" synchronized="true"
  26285. static="false" final="false" visibility="public"
  26286. deprecated="not deprecated">
  26287. <doc>
  26288. <![CDATA[The max time for a single operation since the last reset
  26289. {@link #resetMinMax()}
  26290. @return max time for an operation]]>
  26291. </doc>
  26292. </method>
  26293. <method name="resetMinMax"
  26294. abstract="false" native="false" synchronized="true"
  26295. static="false" final="false" visibility="public"
  26296. deprecated="not deprecated">
  26297. <doc>
  26298. <![CDATA[Reset the min max values]]>
  26299. </doc>
  26300. </method>
  26301. <doc>
  26302. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  26303. naturally varies over time (e.g. time taken to create a file).
  26304. The rate is averaged at each interval heart beat (the interval
  26305. is set in the metrics config file).
  26306. This class also keeps track of the min and max rates along with
  26307. a method to reset the min-max.
  26308. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.]]>
  26309. </doc>
  26310. </class>
  26311. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  26312. </package>
  26313. <package name="org.apache.hadoop.metrics2">
  26314. <!-- start class org.apache.hadoop.metrics2.Metric -->
  26315. <class name="Metric" extends="java.lang.Object"
  26316. abstract="true"
  26317. static="false" final="false" visibility="public"
  26318. deprecated="not deprecated">
  26319. <constructor name="Metric" type="java.lang.String"
  26320. static="false" final="false" visibility="public"
  26321. deprecated="not deprecated">
  26322. <doc>
  26323. <![CDATA[Construct the metric with name only
  26324. @param name of the metric]]>
  26325. </doc>
  26326. </constructor>
  26327. <constructor name="Metric" type="java.lang.String, java.lang.String"
  26328. static="false" final="false" visibility="public"
  26329. deprecated="not deprecated">
  26330. <doc>
  26331. <![CDATA[Construct the metric with a name and a description
  26332. @param name of the metric
  26333. @param desc description of the metric]]>
  26334. </doc>
  26335. </constructor>
  26336. <method name="name" return="java.lang.String"
  26337. abstract="false" native="false" synchronized="false"
  26338. static="false" final="false" visibility="public"
  26339. deprecated="not deprecated">
  26340. <doc>
  26341. <![CDATA[Get the name of the metric
  26342. @return the name]]>
  26343. </doc>
  26344. </method>
  26345. <method name="description" return="java.lang.String"
  26346. abstract="false" native="false" synchronized="false"
  26347. static="false" final="false" visibility="public"
  26348. deprecated="not deprecated">
  26349. <doc>
  26350. <![CDATA[Get the description of the metric
  26351. @return the description]]>
  26352. </doc>
  26353. </method>
  26354. <method name="value" return="java.lang.Number"
  26355. abstract="true" native="false" synchronized="false"
  26356. static="false" final="false" visibility="public"
  26357. deprecated="not deprecated">
  26358. <doc>
  26359. <![CDATA[Get the value of the metric
  26360. @return the value of the metric]]>
  26361. </doc>
  26362. </method>
  26363. <method name="visit"
  26364. abstract="true" native="false" synchronized="false"
  26365. static="false" final="false" visibility="public"
  26366. deprecated="not deprecated">
  26367. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  26368. <doc>
  26369. <![CDATA[Accept a visitor interface
  26370. @param visitor of the metric]]>
  26371. </doc>
  26372. </method>
  26373. <method name="equals" return="boolean"
  26374. abstract="false" native="false" synchronized="false"
  26375. static="false" final="false" visibility="public"
  26376. deprecated="not deprecated">
  26377. <param name="obj" type="java.lang.Object"/>
  26378. </method>
  26379. <method name="hashCode" return="int"
  26380. abstract="false" native="false" synchronized="false"
  26381. static="false" final="false" visibility="public"
  26382. deprecated="not deprecated">
  26383. </method>
  26384. <method name="toString" return="java.lang.String"
  26385. abstract="false" native="false" synchronized="false"
  26386. static="false" final="false" visibility="public"
  26387. deprecated="not deprecated">
  26388. </method>
  26389. <field name="NO_DESCRIPTION" type="java.lang.String"
  26390. transient="false" volatile="false"
  26391. static="true" final="true" visibility="public"
  26392. deprecated="not deprecated">
  26393. </field>
  26394. <doc>
  26395. <![CDATA[The immutable metric]]>
  26396. </doc>
  26397. </class>
  26398. <!-- end class org.apache.hadoop.metrics2.Metric -->
  26399. <!-- start class org.apache.hadoop.metrics2.MetricCounter -->
  26400. <class name="MetricCounter" extends="org.apache.hadoop.metrics2.Metric"
  26401. abstract="true"
  26402. static="false" final="false" visibility="public"
  26403. deprecated="not deprecated">
  26404. <constructor name="MetricCounter" type="java.lang.String, java.lang.String"
  26405. static="false" final="false" visibility="public"
  26406. deprecated="not deprecated">
  26407. <doc>
  26408. <![CDATA[Construct a counter metric
  26409. @param name of the metric
  26410. @param description of the metric]]>
  26411. </doc>
  26412. </constructor>
  26413. <method name="value" return="java.lang.Number"
  26414. abstract="true" native="false" synchronized="false"
  26415. static="false" final="false" visibility="public"
  26416. deprecated="not deprecated">
  26417. </method>
  26418. <doc>
  26419. <![CDATA[A generic immutable counter metric type
  26420. @param <T> value type of the metric]]>
  26421. </doc>
  26422. </class>
  26423. <!-- end class org.apache.hadoop.metrics2.MetricCounter -->
  26424. <!-- start class org.apache.hadoop.metrics2.MetricGauge -->
  26425. <class name="MetricGauge" extends="org.apache.hadoop.metrics2.Metric"
  26426. abstract="true"
  26427. static="false" final="false" visibility="public"
  26428. deprecated="not deprecated">
  26429. <constructor name="MetricGauge" type="java.lang.String, java.lang.String"
  26430. static="false" final="false" visibility="public"
  26431. deprecated="not deprecated">
  26432. <doc>
  26433. <![CDATA[Construct a gauge metric
  26434. @param name of the metric
  26435. @param description of the metric]]>
  26436. </doc>
  26437. </constructor>
  26438. <method name="value" return="java.lang.Number"
  26439. abstract="true" native="false" synchronized="false"
  26440. static="false" final="false" visibility="public"
  26441. deprecated="not deprecated">
  26442. </method>
  26443. <doc>
  26444. <![CDATA[A generic immutable gauge metric
  26445. @param <T> value type of the metric]]>
  26446. </doc>
  26447. </class>
  26448. <!-- end class org.apache.hadoop.metrics2.MetricGauge -->
  26449. <!-- start interface org.apache.hadoop.metrics2.MetricsBuilder -->
  26450. <interface name="MetricsBuilder" abstract="true"
  26451. static="false" final="false" visibility="public"
  26452. deprecated="not deprecated">
  26453. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26454. abstract="false" native="false" synchronized="false"
  26455. static="false" final="false" visibility="public"
  26456. deprecated="not deprecated">
  26457. <param name="name" type="java.lang.String"/>
  26458. <doc>
  26459. <![CDATA[Add a metrics record
  26460. @param name of the record
  26461. @return a metrics record builder for the record]]>
  26462. </doc>
  26463. </method>
  26464. <doc>
  26465. <![CDATA[The metrics builder interface]]>
  26466. </doc>
  26467. </interface>
  26468. <!-- end interface org.apache.hadoop.metrics2.MetricsBuilder -->
  26469. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  26470. <class name="MetricsException" extends="java.lang.RuntimeException"
  26471. abstract="false"
  26472. static="false" final="false" visibility="public"
  26473. deprecated="not deprecated">
  26474. <constructor name="MetricsException" type="java.lang.String"
  26475. static="false" final="false" visibility="public"
  26476. deprecated="not deprecated">
  26477. <doc>
  26478. <![CDATA[Construct the exception with a message
  26479. @param message for the exception]]>
  26480. </doc>
  26481. </constructor>
  26482. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  26483. static="false" final="false" visibility="public"
  26484. deprecated="not deprecated">
  26485. <doc>
  26486. <![CDATA[Construct the exception with a message and a cause
  26487. @param message for the exception
  26488. @param cause of the exception]]>
  26489. </doc>
  26490. </constructor>
  26491. <constructor name="MetricsException" type="java.lang.Throwable"
  26492. static="false" final="false" visibility="public"
  26493. deprecated="not deprecated">
  26494. <doc>
  26495. <![CDATA[Construct the exception with a cause
  26496. @param cause of the exception]]>
  26497. </doc>
  26498. </constructor>
  26499. <doc>
  26500. <![CDATA[A general metrics exception wrapper]]>
  26501. </doc>
  26502. </class>
  26503. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  26504. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  26505. <class name="MetricsFilter" extends="java.lang.Object"
  26506. abstract="true"
  26507. static="false" final="false" visibility="public"
  26508. deprecated="not deprecated">
  26509. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  26510. <constructor name="MetricsFilter"
  26511. static="false" final="false" visibility="public"
  26512. deprecated="not deprecated">
  26513. </constructor>
  26514. <method name="init"
  26515. abstract="true" native="false" synchronized="false"
  26516. static="false" final="false" visibility="public"
  26517. deprecated="not deprecated">
  26518. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26519. </method>
  26520. <method name="accepts" return="boolean"
  26521. abstract="true" native="false" synchronized="false"
  26522. static="false" final="false" visibility="public"
  26523. deprecated="not deprecated">
  26524. <param name="name" type="java.lang.String"/>
  26525. <doc>
  26526. <![CDATA[Whether to accept the name
  26527. @param name to filter on
  26528. @return true to accept; false otherwise.]]>
  26529. </doc>
  26530. </method>
  26531. <method name="accepts" return="boolean"
  26532. abstract="true" native="false" synchronized="false"
  26533. static="false" final="false" visibility="public"
  26534. deprecated="not deprecated">
  26535. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26536. <doc>
  26537. <![CDATA[Whether to accept the tag
  26538. @param tag to filter on
  26539. @return true to accept; false otherwise]]>
  26540. </doc>
  26541. </method>
  26542. <method name="accepts" return="boolean"
  26543. abstract="true" native="false" synchronized="false"
  26544. static="false" final="false" visibility="public"
  26545. deprecated="not deprecated">
  26546. <param name="tags" type="java.lang.Iterable"/>
  26547. <doc>
  26548. <![CDATA[Whether to accept the tags
  26549. @param tags to filter on
  26550. @return true to accept; false otherwise]]>
  26551. </doc>
  26552. </method>
  26553. <method name="accepts" return="boolean"
  26554. abstract="false" native="false" synchronized="false"
  26555. static="false" final="false" visibility="public"
  26556. deprecated="not deprecated">
  26557. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26558. <doc>
  26559. <![CDATA[Whether to accept the record
  26560. @param record to filter on
  26561. @return true to accept; false otherwise.]]>
  26562. </doc>
  26563. </method>
  26564. <doc>
  26565. <![CDATA[The metrics filter interface]]>
  26566. </doc>
  26567. </class>
  26568. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  26569. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  26570. <interface name="MetricsPlugin" abstract="true"
  26571. static="false" final="false" visibility="public"
  26572. deprecated="not deprecated">
  26573. <method name="init"
  26574. abstract="false" native="false" synchronized="false"
  26575. static="false" final="false" visibility="public"
  26576. deprecated="not deprecated">
  26577. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26578. <doc>
  26579. <![CDATA[Initialize the plugin
  26580. @param conf the configuration object for the plugin]]>
  26581. </doc>
  26582. </method>
  26583. <doc>
  26584. <![CDATA[A fairly generic plugin interface]]>
  26585. </doc>
  26586. </interface>
  26587. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  26588. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  26589. <interface name="MetricsRecord" abstract="true"
  26590. static="false" final="false" visibility="public"
  26591. deprecated="not deprecated">
  26592. <method name="timestamp" return="long"
  26593. abstract="false" native="false" synchronized="false"
  26594. static="false" final="false" visibility="public"
  26595. deprecated="not deprecated">
  26596. <doc>
  26597. <![CDATA[Get the timestamp of the metrics
  26598. @return the timestamp]]>
  26599. </doc>
  26600. </method>
  26601. <method name="name" return="java.lang.String"
  26602. abstract="false" native="false" synchronized="false"
  26603. static="false" final="false" visibility="public"
  26604. deprecated="not deprecated">
  26605. <doc>
  26606. <![CDATA[Get the record name of the metrics
  26607. @return the record name]]>
  26608. </doc>
  26609. </method>
  26610. <method name="context" return="java.lang.String"
  26611. abstract="false" native="false" synchronized="false"
  26612. static="false" final="false" visibility="public"
  26613. deprecated="not deprecated">
  26614. <doc>
  26615. <![CDATA[Get the context name of the metrics
  26616. @return the context name]]>
  26617. </doc>
  26618. </method>
  26619. <method name="tags" return="java.lang.Iterable"
  26620. abstract="false" native="false" synchronized="false"
  26621. static="false" final="false" visibility="public"
  26622. deprecated="not deprecated">
  26623. <doc>
  26624. <![CDATA[Get the tags of the record
  26625. @return the tags]]>
  26626. </doc>
  26627. </method>
  26628. <method name="metrics" return="java.lang.Iterable"
  26629. abstract="false" native="false" synchronized="false"
  26630. static="false" final="false" visibility="public"
  26631. deprecated="not deprecated">
  26632. <doc>
  26633. <![CDATA[Get the metrics of the record
  26634. @return the metrics]]>
  26635. </doc>
  26636. </method>
  26637. <doc>
  26638. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  26639. </doc>
  26640. </interface>
  26641. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  26642. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  26643. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  26644. abstract="true"
  26645. static="false" final="false" visibility="public"
  26646. deprecated="not deprecated">
  26647. <constructor name="MetricsRecordBuilder"
  26648. static="false" final="false" visibility="public"
  26649. deprecated="not deprecated">
  26650. </constructor>
  26651. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26652. abstract="true" native="false" synchronized="false"
  26653. static="false" final="false" visibility="public"
  26654. deprecated="not deprecated">
  26655. <param name="name" type="java.lang.String"/>
  26656. <param name="description" type="java.lang.String"/>
  26657. <param name="value" type="java.lang.String"/>
  26658. <doc>
  26659. <![CDATA[Add a metrics tag
  26660. @param name of the tag
  26661. @param description of the tag
  26662. @param value of the tag
  26663. @return self]]>
  26664. </doc>
  26665. </method>
  26666. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26667. abstract="true" native="false" synchronized="false"
  26668. static="false" final="false" visibility="public"
  26669. deprecated="not deprecated">
  26670. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26671. <doc>
  26672. <![CDATA[Add an immutable metrics tag object
  26673. @param tag a pre-made tag object (potentially save an object construction)
  26674. @return self]]>
  26675. </doc>
  26676. </method>
  26677. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26678. abstract="true" native="false" synchronized="false"
  26679. static="false" final="false" visibility="public"
  26680. deprecated="not deprecated">
  26681. <param name="value" type="java.lang.String"/>
  26682. <doc>
  26683. <![CDATA[Set the context tag
  26684. @param value of the context
  26685. @return self]]>
  26686. </doc>
  26687. </method>
  26688. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26689. abstract="true" native="false" synchronized="false"
  26690. static="false" final="false" visibility="public"
  26691. deprecated="not deprecated">
  26692. <param name="name" type="java.lang.String"/>
  26693. <param name="description" type="java.lang.String"/>
  26694. <param name="value" type="int"/>
  26695. <doc>
  26696. <![CDATA[Add an int counter metric
  26697. @param name of the metric
  26698. @param description of the metric
  26699. @param value of the metric
  26700. @return self]]>
  26701. </doc>
  26702. </method>
  26703. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26704. abstract="true" native="false" synchronized="false"
  26705. static="false" final="false" visibility="public"
  26706. deprecated="not deprecated">
  26707. <param name="name" type="java.lang.String"/>
  26708. <param name="description" type="java.lang.String"/>
  26709. <param name="value" type="long"/>
  26710. <doc>
  26711. <![CDATA[Add an long counter metric
  26712. @param name of the metric
  26713. @param description of the metric
  26714. @param value of the metric
  26715. @return self]]>
  26716. </doc>
  26717. </method>
  26718. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26719. abstract="true" native="false" synchronized="false"
  26720. static="false" final="false" visibility="public"
  26721. deprecated="not deprecated">
  26722. <param name="name" type="java.lang.String"/>
  26723. <param name="description" type="java.lang.String"/>
  26724. <param name="value" type="int"/>
  26725. <doc>
  26726. <![CDATA[Add a int gauge metric
  26727. @param name of the metric
  26728. @param description of the metric
  26729. @param value of the metric
  26730. @return self]]>
  26731. </doc>
  26732. </method>
  26733. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26734. abstract="true" native="false" synchronized="false"
  26735. static="false" final="false" visibility="public"
  26736. deprecated="not deprecated">
  26737. <param name="name" type="java.lang.String"/>
  26738. <param name="description" type="java.lang.String"/>
  26739. <param name="value" type="long"/>
  26740. <doc>
  26741. <![CDATA[Add a long gauge metric
  26742. @param name of the metric
  26743. @param description of the metric
  26744. @param value of the metric
  26745. @return self]]>
  26746. </doc>
  26747. </method>
  26748. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26749. abstract="true" native="false" synchronized="false"
  26750. static="false" final="false" visibility="public"
  26751. deprecated="not deprecated">
  26752. <param name="name" type="java.lang.String"/>
  26753. <param name="description" type="java.lang.String"/>
  26754. <param name="value" type="float"/>
  26755. <doc>
  26756. <![CDATA[Add a float gauge metric
  26757. @param name of the metric
  26758. @param description of the metric
  26759. @param value of the metric
  26760. @return self]]>
  26761. </doc>
  26762. </method>
  26763. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26764. abstract="true" native="false" synchronized="false"
  26765. static="false" final="false" visibility="public"
  26766. deprecated="not deprecated">
  26767. <param name="name" type="java.lang.String"/>
  26768. <param name="description" type="java.lang.String"/>
  26769. <param name="value" type="double"/>
  26770. <doc>
  26771. <![CDATA[Add a double gauge metric
  26772. @param name of the metric
  26773. @param description of the metric
  26774. @param value of the metric
  26775. @return self]]>
  26776. </doc>
  26777. </method>
  26778. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26779. abstract="true" native="false" synchronized="false"
  26780. static="false" final="false" visibility="public"
  26781. deprecated="not deprecated">
  26782. <param name="metric" type="org.apache.hadoop.metrics2.Metric"/>
  26783. <doc>
  26784. <![CDATA[Add a pre-made immutable metric object
  26785. @param metric the pre-made metric to save an object construction
  26786. @return self]]>
  26787. </doc>
  26788. </method>
  26789. <doc>
  26790. <![CDATA[The metrics record builder interface]]>
  26791. </doc>
  26792. </class>
  26793. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  26794. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  26795. <interface name="MetricsSink" abstract="true"
  26796. static="false" final="false" visibility="public"
  26797. deprecated="not deprecated">
  26798. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  26799. <method name="putMetrics"
  26800. abstract="false" native="false" synchronized="false"
  26801. static="false" final="false" visibility="public"
  26802. deprecated="not deprecated">
  26803. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26804. <doc>
  26805. <![CDATA[Put a metrics record in the sink
  26806. @param record the record to put]]>
  26807. </doc>
  26808. </method>
  26809. <method name="flush"
  26810. abstract="false" native="false" synchronized="false"
  26811. static="false" final="false" visibility="public"
  26812. deprecated="not deprecated">
  26813. <doc>
  26814. <![CDATA[Flush any buffered metrics]]>
  26815. </doc>
  26816. </method>
  26817. <doc>
  26818. <![CDATA[The metrics sink interface]]>
  26819. </doc>
  26820. </interface>
  26821. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  26822. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  26823. <interface name="MetricsSource" abstract="true"
  26824. static="false" final="false" visibility="public"
  26825. deprecated="not deprecated">
  26826. <method name="getMetrics"
  26827. abstract="false" native="false" synchronized="false"
  26828. static="false" final="false" visibility="public"
  26829. deprecated="not deprecated">
  26830. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  26831. <param name="all" type="boolean"/>
  26832. <doc>
  26833. <![CDATA[Get metrics from the source
  26834. @param builder to contain the resulting metrics snapshot
  26835. @param all if true, return all metrics even if unchanged.]]>
  26836. </doc>
  26837. </method>
  26838. <doc>
  26839. <![CDATA[The metrics source interface]]>
  26840. </doc>
  26841. </interface>
  26842. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  26843. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem -->
  26844. <interface name="MetricsSystem" abstract="true"
  26845. static="false" final="false" visibility="public"
  26846. deprecated="not deprecated">
  26847. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  26848. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  26849. abstract="false" native="false" synchronized="false"
  26850. static="false" final="false" visibility="public"
  26851. deprecated="not deprecated">
  26852. <param name="name" type="java.lang.String"/>
  26853. <param name="desc" type="java.lang.String"/>
  26854. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26855. <doc>
  26856. <![CDATA[Register a metrics source
  26857. @param <T> the type of the source
  26858. @param source to register
  26859. @param name of the source. Must be unique.
  26860. @param desc the description of the source.
  26861. @return the source
  26862. @exception MetricsException]]>
  26863. </doc>
  26864. </method>
  26865. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  26866. abstract="false" native="false" synchronized="false"
  26867. static="false" final="false" visibility="public"
  26868. deprecated="not deprecated">
  26869. <param name="name" type="java.lang.String"/>
  26870. <param name="desc" type="java.lang.String"/>
  26871. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  26872. <doc>
  26873. <![CDATA[Register a metrics sink
  26874. @param <T> the type of the sink
  26875. @param sink to register
  26876. @param name of the sink. Must be unique.
  26877. @param desc the description of the sink
  26878. @return the sink
  26879. @exception MetricsException]]>
  26880. </doc>
  26881. </method>
  26882. <method name="register"
  26883. abstract="false" native="false" synchronized="false"
  26884. static="false" final="false" visibility="public"
  26885. deprecated="not deprecated">
  26886. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26887. <doc>
  26888. <![CDATA[Register a callback interface for JMX events
  26889. @param callback the callback object implementing the MBean interface.]]>
  26890. </doc>
  26891. </method>
  26892. <method name="shutdown"
  26893. abstract="false" native="false" synchronized="false"
  26894. static="false" final="false" visibility="public"
  26895. deprecated="not deprecated">
  26896. <doc>
  26897. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  26898. The MetricsSystemMXBean will be unregistered.]]>
  26899. </doc>
  26900. </method>
  26901. <doc>
  26902. <![CDATA[The metrics system interface]]>
  26903. </doc>
  26904. </interface>
  26905. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem -->
  26906. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  26907. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  26908. abstract="true"
  26909. static="true" final="false" visibility="public"
  26910. deprecated="not deprecated">
  26911. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26912. <constructor name="MetricsSystem.AbstractCallback"
  26913. static="false" final="false" visibility="public"
  26914. deprecated="not deprecated">
  26915. </constructor>
  26916. <method name="preStart"
  26917. abstract="false" native="false" synchronized="false"
  26918. static="false" final="false" visibility="public"
  26919. deprecated="not deprecated">
  26920. </method>
  26921. <method name="postStart"
  26922. abstract="false" native="false" synchronized="false"
  26923. static="false" final="false" visibility="public"
  26924. deprecated="not deprecated">
  26925. </method>
  26926. <method name="preStop"
  26927. abstract="false" native="false" synchronized="false"
  26928. static="false" final="false" visibility="public"
  26929. deprecated="not deprecated">
  26930. </method>
  26931. <method name="postStop"
  26932. abstract="false" native="false" synchronized="false"
  26933. static="false" final="false" visibility="public"
  26934. deprecated="not deprecated">
  26935. </method>
  26936. <doc>
  26937. <![CDATA[Convenient abstract class for implementing callback interface]]>
  26938. </doc>
  26939. </class>
  26940. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  26941. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  26942. <interface name="MetricsSystem.Callback" abstract="true"
  26943. static="true" final="false" visibility="public"
  26944. deprecated="not deprecated">
  26945. <method name="preStart"
  26946. abstract="false" native="false" synchronized="false"
  26947. static="false" final="false" visibility="public"
  26948. deprecated="not deprecated">
  26949. <doc>
  26950. <![CDATA[Called before start()]]>
  26951. </doc>
  26952. </method>
  26953. <method name="postStart"
  26954. abstract="false" native="false" synchronized="false"
  26955. static="false" final="false" visibility="public"
  26956. deprecated="not deprecated">
  26957. <doc>
  26958. <![CDATA[Called after start()]]>
  26959. </doc>
  26960. </method>
  26961. <method name="preStop"
  26962. abstract="false" native="false" synchronized="false"
  26963. static="false" final="false" visibility="public"
  26964. deprecated="not deprecated">
  26965. <doc>
  26966. <![CDATA[Called before stop()]]>
  26967. </doc>
  26968. </method>
  26969. <method name="postStop"
  26970. abstract="false" native="false" synchronized="false"
  26971. static="false" final="false" visibility="public"
  26972. deprecated="not deprecated">
  26973. <doc>
  26974. <![CDATA[Called after stop()]]>
  26975. </doc>
  26976. </method>
  26977. <doc>
  26978. <![CDATA[The metrics system callback interface]]>
  26979. </doc>
  26980. </interface>
  26981. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  26982. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  26983. <interface name="MetricsSystemMXBean" abstract="true"
  26984. static="false" final="false" visibility="public"
  26985. deprecated="not deprecated">
  26986. <method name="start"
  26987. abstract="false" native="false" synchronized="false"
  26988. static="false" final="false" visibility="public"
  26989. deprecated="not deprecated">
  26990. <doc>
  26991. <![CDATA[Start the metrics system
  26992. @exception MetricsException]]>
  26993. </doc>
  26994. </method>
  26995. <method name="stop"
  26996. abstract="false" native="false" synchronized="false"
  26997. static="false" final="false" visibility="public"
  26998. deprecated="not deprecated">
  26999. <doc>
  27000. <![CDATA[Stop the metrics system
  27001. @exception MetricsException]]>
  27002. </doc>
  27003. </method>
  27004. <method name="refreshMBeans"
  27005. abstract="false" native="false" synchronized="false"
  27006. static="false" final="false" visibility="public"
  27007. deprecated="not deprecated">
  27008. <doc>
  27009. <![CDATA[Force a refresh of MBeans
  27010. @exception MetricsException]]>
  27011. </doc>
  27012. </method>
  27013. <method name="currentConfig" return="java.lang.String"
  27014. abstract="false" native="false" synchronized="false"
  27015. static="false" final="false" visibility="public"
  27016. deprecated="not deprecated">
  27017. <doc>
  27018. <![CDATA[@return the current config
  27019. Note, avoid getConfig, as it'll turn it into an attribute,
  27020. which doesn't support multiple lines in the values.
  27021. @exception MetricsException]]>
  27022. </doc>
  27023. </method>
  27024. <doc>
  27025. <![CDATA[The JMX interface to the metrics system]]>
  27026. </doc>
  27027. </interface>
  27028. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  27029. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  27030. <class name="MetricsTag" extends="java.lang.Object"
  27031. abstract="false"
  27032. static="false" final="false" visibility="public"
  27033. deprecated="not deprecated">
  27034. <constructor name="MetricsTag" type="java.lang.String, java.lang.String, java.lang.String"
  27035. static="false" final="false" visibility="public"
  27036. deprecated="not deprecated">
  27037. <doc>
  27038. <![CDATA[Construct the tag with name, description and value
  27039. @param name of the tag
  27040. @param description of the tag
  27041. @param value of the tag]]>
  27042. </doc>
  27043. </constructor>
  27044. <method name="name" return="java.lang.String"
  27045. abstract="false" native="false" synchronized="false"
  27046. static="false" final="false" visibility="public"
  27047. deprecated="not deprecated">
  27048. <doc>
  27049. <![CDATA[Get the name of the tag
  27050. @return the name]]>
  27051. </doc>
  27052. </method>
  27053. <method name="description" return="java.lang.String"
  27054. abstract="false" native="false" synchronized="false"
  27055. static="false" final="false" visibility="public"
  27056. deprecated="not deprecated">
  27057. <doc>
  27058. <![CDATA[Get the description of the tag
  27059. @return the description]]>
  27060. </doc>
  27061. </method>
  27062. <method name="value" return="java.lang.String"
  27063. abstract="false" native="false" synchronized="false"
  27064. static="false" final="false" visibility="public"
  27065. deprecated="not deprecated">
  27066. <doc>
  27067. <![CDATA[Get the value of the tag
  27068. @return the value]]>
  27069. </doc>
  27070. </method>
  27071. <method name="equals" return="boolean"
  27072. abstract="false" native="false" synchronized="false"
  27073. static="false" final="false" visibility="public"
  27074. deprecated="not deprecated">
  27075. <param name="obj" type="java.lang.Object"/>
  27076. </method>
  27077. <method name="hashCode" return="int"
  27078. abstract="false" native="false" synchronized="false"
  27079. static="false" final="false" visibility="public"
  27080. deprecated="not deprecated">
  27081. </method>
  27082. <method name="toString" return="java.lang.String"
  27083. abstract="false" native="false" synchronized="false"
  27084. static="false" final="false" visibility="public"
  27085. deprecated="not deprecated">
  27086. </method>
  27087. <doc>
  27088. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  27089. </doc>
  27090. </class>
  27091. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  27092. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  27093. <interface name="MetricsVisitor" abstract="true"
  27094. static="false" final="false" visibility="public"
  27095. deprecated="not deprecated">
  27096. <method name="gauge"
  27097. abstract="false" native="false" synchronized="false"
  27098. static="false" final="false" visibility="public"
  27099. deprecated="not deprecated">
  27100. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27101. <param name="value" type="int"/>
  27102. <doc>
  27103. <![CDATA[Callback for int value gauges
  27104. @param metric the metric object
  27105. @param value of the metric]]>
  27106. </doc>
  27107. </method>
  27108. <method name="gauge"
  27109. abstract="false" native="false" synchronized="false"
  27110. static="false" final="false" visibility="public"
  27111. deprecated="not deprecated">
  27112. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27113. <param name="value" type="long"/>
  27114. <doc>
  27115. <![CDATA[Callback for long value gauges
  27116. @param metric the metric object
  27117. @param value of the metric]]>
  27118. </doc>
  27119. </method>
  27120. <method name="gauge"
  27121. abstract="false" native="false" synchronized="false"
  27122. static="false" final="false" visibility="public"
  27123. deprecated="not deprecated">
  27124. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27125. <param name="value" type="float"/>
  27126. <doc>
  27127. <![CDATA[Callback for float value gauges
  27128. @param metric the metric object
  27129. @param value of the metric]]>
  27130. </doc>
  27131. </method>
  27132. <method name="gauge"
  27133. abstract="false" native="false" synchronized="false"
  27134. static="false" final="false" visibility="public"
  27135. deprecated="not deprecated">
  27136. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27137. <param name="value" type="double"/>
  27138. <doc>
  27139. <![CDATA[Callback for double value gauges
  27140. @param metric the metric object
  27141. @param value of the metric]]>
  27142. </doc>
  27143. </method>
  27144. <method name="counter"
  27145. abstract="false" native="false" synchronized="false"
  27146. static="false" final="false" visibility="public"
  27147. deprecated="not deprecated">
  27148. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  27149. <param name="value" type="int"/>
  27150. <doc>
  27151. <![CDATA[Callback for integer value counters
  27152. @param metric the metric object
  27153. @param value of the metric]]>
  27154. </doc>
  27155. </method>
  27156. <method name="counter"
  27157. abstract="false" native="false" synchronized="false"
  27158. static="false" final="false" visibility="public"
  27159. deprecated="not deprecated">
  27160. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  27161. <param name="value" type="long"/>
  27162. <doc>
  27163. <![CDATA[Callback for long value counters
  27164. @param metric the metric object
  27165. @param value of the metric]]>
  27166. </doc>
  27167. </method>
  27168. <doc>
  27169. <![CDATA[A visitor interface for metrics]]>
  27170. </doc>
  27171. </interface>
  27172. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  27173. </package>
  27174. <package name="org.apache.hadoop.metrics2.filter">
  27175. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  27176. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  27177. abstract="false"
  27178. static="false" final="false" visibility="public"
  27179. deprecated="not deprecated">
  27180. <constructor name="GlobFilter"
  27181. static="false" final="false" visibility="public"
  27182. deprecated="not deprecated">
  27183. </constructor>
  27184. <method name="compile" return="java.util.regex.Pattern"
  27185. abstract="false" native="false" synchronized="false"
  27186. static="false" final="false" visibility="protected"
  27187. deprecated="not deprecated">
  27188. <param name="s" type="java.lang.String"/>
  27189. </method>
  27190. <doc>
  27191. <![CDATA[A glob pattern filter for metrics]]>
  27192. </doc>
  27193. </class>
  27194. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  27195. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  27196. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  27197. abstract="false"
  27198. static="false" final="false" visibility="public"
  27199. deprecated="not deprecated">
  27200. <constructor name="RegexFilter"
  27201. static="false" final="false" visibility="public"
  27202. deprecated="not deprecated">
  27203. </constructor>
  27204. <method name="compile" return="java.util.regex.Pattern"
  27205. abstract="false" native="false" synchronized="false"
  27206. static="false" final="false" visibility="protected"
  27207. deprecated="not deprecated">
  27208. <param name="s" type="java.lang.String"/>
  27209. </method>
  27210. <doc>
  27211. <![CDATA[A regex pattern filter for metrics]]>
  27212. </doc>
  27213. </class>
  27214. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  27215. </package>
  27216. <package name="org.apache.hadoop.metrics2.impl">
  27217. <!-- start class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  27218. <class name="MetricsConfigException" extends="org.apache.hadoop.metrics2.MetricsException"
  27219. abstract="false"
  27220. static="false" final="false" visibility="public"
  27221. deprecated="not deprecated">
  27222. <doc>
  27223. <![CDATA[The metrics configuration runtime exception]]>
  27224. </doc>
  27225. </class>
  27226. <!-- end class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  27227. <!-- start class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  27228. <class name="MetricsRecordImpl" extends="java.lang.Object"
  27229. abstract="false"
  27230. static="false" final="false" visibility="public"
  27231. deprecated="not deprecated">
  27232. <implements name="org.apache.hadoop.metrics2.MetricsRecord"/>
  27233. <constructor name="MetricsRecordImpl" type="java.lang.String, long, java.lang.Iterable, java.lang.Iterable"
  27234. static="false" final="false" visibility="public"
  27235. deprecated="not deprecated">
  27236. <doc>
  27237. <![CDATA[Construct a metrics record
  27238. @param name of the record
  27239. @param timestamp of the record
  27240. @param tags of the record
  27241. @param metrics of the record]]>
  27242. </doc>
  27243. </constructor>
  27244. <method name="timestamp" return="long"
  27245. abstract="false" native="false" synchronized="false"
  27246. static="false" final="false" visibility="public"
  27247. deprecated="not deprecated">
  27248. </method>
  27249. <method name="name" return="java.lang.String"
  27250. abstract="false" native="false" synchronized="false"
  27251. static="false" final="false" visibility="public"
  27252. deprecated="not deprecated">
  27253. </method>
  27254. <method name="context" return="java.lang.String"
  27255. abstract="false" native="false" synchronized="false"
  27256. static="false" final="false" visibility="public"
  27257. deprecated="not deprecated">
  27258. </method>
  27259. <method name="tags" return="java.lang.Iterable"
  27260. abstract="false" native="false" synchronized="false"
  27261. static="false" final="false" visibility="public"
  27262. deprecated="not deprecated">
  27263. </method>
  27264. <method name="metrics" return="java.lang.Iterable"
  27265. abstract="false" native="false" synchronized="false"
  27266. static="false" final="false" visibility="public"
  27267. deprecated="not deprecated">
  27268. </method>
  27269. <method name="equals" return="boolean"
  27270. abstract="false" native="false" synchronized="false"
  27271. static="false" final="false" visibility="public"
  27272. deprecated="not deprecated">
  27273. <param name="obj" type="java.lang.Object"/>
  27274. </method>
  27275. <method name="hashCode" return="int"
  27276. abstract="false" native="false" synchronized="false"
  27277. static="false" final="false" visibility="public"
  27278. deprecated="not deprecated">
  27279. </method>
  27280. <method name="toString" return="java.lang.String"
  27281. abstract="false" native="false" synchronized="false"
  27282. static="false" final="false" visibility="public"
  27283. deprecated="not deprecated">
  27284. </method>
  27285. <field name="CONTEXT_KEY" type="java.lang.String"
  27286. transient="false" volatile="false"
  27287. static="true" final="true" visibility="protected"
  27288. deprecated="not deprecated">
  27289. </field>
  27290. <field name="DEFAULT_CONTEXT" type="java.lang.String"
  27291. transient="false" volatile="false"
  27292. static="true" final="true" visibility="protected"
  27293. deprecated="not deprecated">
  27294. </field>
  27295. </class>
  27296. <!-- end class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  27297. <!-- start class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  27298. <class name="MetricsSystemImpl" extends="java.lang.Object"
  27299. abstract="false"
  27300. static="false" final="false" visibility="public"
  27301. deprecated="not deprecated">
  27302. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  27303. <constructor name="MetricsSystemImpl" type="java.lang.String"
  27304. static="false" final="false" visibility="public"
  27305. deprecated="not deprecated">
  27306. <doc>
  27307. <![CDATA[Construct the metrics system
  27308. @param prefix for the system]]>
  27309. </doc>
  27310. </constructor>
  27311. <constructor name="MetricsSystemImpl"
  27312. static="false" final="false" visibility="public"
  27313. deprecated="not deprecated">
  27314. <doc>
  27315. <![CDATA[Construct the system but not initializing (read config etc.) it.]]>
  27316. </doc>
  27317. </constructor>
  27318. <method name="init"
  27319. abstract="false" native="false" synchronized="true"
  27320. static="false" final="false" visibility="public"
  27321. deprecated="not deprecated">
  27322. <param name="prefix" type="java.lang.String"/>
  27323. <doc>
  27324. <![CDATA[Initialized the metrics system with a prefix.
  27325. @param prefix the system will look for configs with the prefix]]>
  27326. </doc>
  27327. </method>
  27328. <method name="start"
  27329. abstract="false" native="false" synchronized="true"
  27330. static="false" final="false" visibility="public"
  27331. deprecated="not deprecated">
  27332. </method>
  27333. <method name="stop"
  27334. abstract="false" native="false" synchronized="true"
  27335. static="false" final="false" visibility="public"
  27336. deprecated="not deprecated">
  27337. </method>
  27338. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27339. abstract="false" native="false" synchronized="true"
  27340. static="false" final="false" visibility="public"
  27341. deprecated="not deprecated">
  27342. <param name="name" type="java.lang.String"/>
  27343. <param name="desc" type="java.lang.String"/>
  27344. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27345. </method>
  27346. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27347. abstract="false" native="false" synchronized="true"
  27348. static="false" final="false" visibility="public"
  27349. deprecated="not deprecated">
  27350. <param name="name" type="java.lang.String"/>
  27351. <param name="description" type="java.lang.String"/>
  27352. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27353. </method>
  27354. <method name="register"
  27355. abstract="false" native="false" synchronized="true"
  27356. static="false" final="false" visibility="public"
  27357. deprecated="not deprecated">
  27358. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27359. </method>
  27360. <method name="refreshMBeans"
  27361. abstract="false" native="false" synchronized="true"
  27362. static="false" final="false" visibility="public"
  27363. deprecated="not deprecated">
  27364. </method>
  27365. <method name="currentConfig" return="java.lang.String"
  27366. abstract="false" native="false" synchronized="true"
  27367. static="false" final="false" visibility="public"
  27368. deprecated="not deprecated">
  27369. </method>
  27370. <method name="shutdown"
  27371. abstract="false" native="false" synchronized="true"
  27372. static="false" final="false" visibility="public"
  27373. deprecated="not deprecated">
  27374. </method>
  27375. <doc>
  27376. <![CDATA[A base class for metrics system singletons]]>
  27377. </doc>
  27378. </class>
  27379. <!-- end class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  27380. </package>
  27381. <package name="org.apache.hadoop.metrics2.lib">
  27382. <!-- start class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  27383. <class name="AbstractMetricsSource" extends="java.lang.Object"
  27384. abstract="true"
  27385. static="false" final="false" visibility="public"
  27386. deprecated="not deprecated">
  27387. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  27388. <constructor name="AbstractMetricsSource" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  27389. static="false" final="false" visibility="public"
  27390. deprecated="not deprecated">
  27391. <doc>
  27392. <![CDATA[Construct the source with name and a mutable metrics factory
  27393. @param name of the default record
  27394. @param mf the factory to create mutable metrics]]>
  27395. </doc>
  27396. </constructor>
  27397. <constructor name="AbstractMetricsSource" type="java.lang.String"
  27398. static="false" final="false" visibility="public"
  27399. deprecated="not deprecated">
  27400. <doc>
  27401. <![CDATA[Construct the source with a name with a default factory
  27402. @param name of the default record]]>
  27403. </doc>
  27404. </constructor>
  27405. <method name="registry" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27406. abstract="false" native="false" synchronized="false"
  27407. static="false" final="false" visibility="public"
  27408. deprecated="not deprecated">
  27409. <doc>
  27410. <![CDATA[@return the registry for mutable metrics]]>
  27411. </doc>
  27412. </method>
  27413. <method name="getMetrics"
  27414. abstract="false" native="false" synchronized="false"
  27415. static="false" final="false" visibility="public"
  27416. deprecated="not deprecated">
  27417. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  27418. <param name="all" type="boolean"/>
  27419. </method>
  27420. <field name="registry" type="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27421. transient="false" volatile="false"
  27422. static="false" final="true" visibility="protected"
  27423. deprecated="not deprecated">
  27424. </field>
  27425. <doc>
  27426. <![CDATA[A convenient base class for writing metrics sources]]>
  27427. </doc>
  27428. </class>
  27429. <!-- end class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  27430. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  27431. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  27432. abstract="false"
  27433. static="false" final="true" visibility="public"
  27434. deprecated="not deprecated">
  27435. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  27436. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  27437. abstract="false" native="false" synchronized="false"
  27438. static="true" final="false" visibility="public"
  27439. deprecated="not deprecated">
  27440. </method>
  27441. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  27442. abstract="false" native="false" synchronized="false"
  27443. static="true" final="false" visibility="public"
  27444. deprecated="not deprecated">
  27445. <param name="name" type="java.lang.String"/>
  27446. </method>
  27447. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  27448. abstract="false" native="false" synchronized="false"
  27449. static="true" final="false" visibility="public"
  27450. deprecated="not deprecated">
  27451. <param name="prefix" type="java.lang.String"/>
  27452. <doc>
  27453. <![CDATA[Common static convenience method to initialize the metrics system
  27454. @param prefix for configuration
  27455. @return the metrics system instance]]>
  27456. </doc>
  27457. </method>
  27458. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27459. abstract="false" native="false" synchronized="false"
  27460. static="false" final="false" visibility="public"
  27461. deprecated="not deprecated">
  27462. <param name="name" type="java.lang.String"/>
  27463. <param name="desc" type="java.lang.String"/>
  27464. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27465. </method>
  27466. <method name="registerSource" return="org.apache.hadoop.metrics2.MetricsSource"
  27467. abstract="false" native="false" synchronized="false"
  27468. static="true" final="false" visibility="public"
  27469. deprecated="not deprecated">
  27470. <param name="name" type="java.lang.String"/>
  27471. <param name="desc" type="java.lang.String"/>
  27472. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27473. <doc>
  27474. <![CDATA[Common static method to register a source
  27475. @param <T> type of the source
  27476. @param name of the source
  27477. @param desc description
  27478. @param source the source object to register
  27479. @return the source object]]>
  27480. </doc>
  27481. </method>
  27482. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27483. abstract="false" native="false" synchronized="false"
  27484. static="false" final="false" visibility="public"
  27485. deprecated="not deprecated">
  27486. <param name="name" type="java.lang.String"/>
  27487. <param name="desc" type="java.lang.String"/>
  27488. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27489. </method>
  27490. <method name="register"
  27491. abstract="false" native="false" synchronized="false"
  27492. static="false" final="false" visibility="public"
  27493. deprecated="not deprecated">
  27494. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27495. </method>
  27496. <method name="start"
  27497. abstract="false" native="false" synchronized="false"
  27498. static="false" final="false" visibility="public"
  27499. deprecated="not deprecated">
  27500. </method>
  27501. <method name="stop"
  27502. abstract="false" native="false" synchronized="false"
  27503. static="false" final="false" visibility="public"
  27504. deprecated="not deprecated">
  27505. </method>
  27506. <method name="refreshMBeans"
  27507. abstract="false" native="false" synchronized="false"
  27508. static="false" final="false" visibility="public"
  27509. deprecated="not deprecated">
  27510. </method>
  27511. <method name="currentConfig" return="java.lang.String"
  27512. abstract="false" native="false" synchronized="false"
  27513. static="false" final="false" visibility="public"
  27514. deprecated="not deprecated">
  27515. </method>
  27516. <method name="shutdown"
  27517. abstract="false" native="false" synchronized="false"
  27518. static="false" final="false" visibility="public"
  27519. deprecated="not deprecated">
  27520. </method>
  27521. <field name="INSTANCE" type="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  27522. transient="false" volatile="false"
  27523. static="true" final="true" visibility="public"
  27524. deprecated="not deprecated">
  27525. <doc>
  27526. <![CDATA[The singleton instance]]>
  27527. </doc>
  27528. </field>
  27529. <doc>
  27530. <![CDATA[The default metrics system singleton]]>
  27531. </doc>
  27532. </class>
  27533. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  27534. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutable -->
  27535. <class name="MetricMutable" extends="java.lang.Object"
  27536. abstract="true"
  27537. static="false" final="false" visibility="public"
  27538. deprecated="not deprecated">
  27539. <constructor name="MetricMutable" type="java.lang.String, java.lang.String"
  27540. static="false" final="false" visibility="public"
  27541. deprecated="not deprecated">
  27542. <doc>
  27543. <![CDATA[Construct a mutable metric
  27544. @param name of the metric
  27545. @param description of the metric]]>
  27546. </doc>
  27547. </constructor>
  27548. <method name="snapshot"
  27549. abstract="true" native="false" synchronized="false"
  27550. static="false" final="false" visibility="public"
  27551. deprecated="not deprecated">
  27552. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27553. <param name="all" type="boolean"/>
  27554. <doc>
  27555. <![CDATA[Get a snapshot/snapshot of the metric
  27556. @param builder the metrics record builder
  27557. @param all if true, snapshot unchanged metrics as well]]>
  27558. </doc>
  27559. </method>
  27560. <method name="snapshot"
  27561. abstract="false" native="false" synchronized="false"
  27562. static="false" final="false" visibility="public"
  27563. deprecated="not deprecated">
  27564. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27565. <doc>
  27566. <![CDATA[Get a sampe/snapshot of metric if changed
  27567. @param builder the metrics record builder]]>
  27568. </doc>
  27569. </method>
  27570. <method name="setChanged"
  27571. abstract="false" native="false" synchronized="false"
  27572. static="false" final="false" visibility="protected"
  27573. deprecated="not deprecated">
  27574. <doc>
  27575. <![CDATA[Set the changed flag in mutable operations]]>
  27576. </doc>
  27577. </method>
  27578. <method name="clearChanged"
  27579. abstract="false" native="false" synchronized="false"
  27580. static="false" final="false" visibility="protected"
  27581. deprecated="not deprecated">
  27582. <doc>
  27583. <![CDATA[Clear the changed flag in the snapshot operations]]>
  27584. </doc>
  27585. </method>
  27586. <method name="changed" return="boolean"
  27587. abstract="false" native="false" synchronized="false"
  27588. static="false" final="false" visibility="public"
  27589. deprecated="not deprecated">
  27590. <doc>
  27591. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  27592. </doc>
  27593. </method>
  27594. <field name="name" type="java.lang.String"
  27595. transient="false" volatile="false"
  27596. static="false" final="true" visibility="public"
  27597. deprecated="not deprecated">
  27598. <doc>
  27599. <![CDATA[name of the metric]]>
  27600. </doc>
  27601. </field>
  27602. <field name="description" type="java.lang.String"
  27603. transient="false" volatile="false"
  27604. static="false" final="true" visibility="public"
  27605. deprecated="not deprecated">
  27606. <doc>
  27607. <![CDATA[description of the metric]]>
  27608. </doc>
  27609. </field>
  27610. <doc>
  27611. <![CDATA[The mutable metric interface]]>
  27612. </doc>
  27613. </class>
  27614. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutable -->
  27615. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  27616. <class name="MetricMutableCounter" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  27617. abstract="true"
  27618. static="false" final="false" visibility="public"
  27619. deprecated="not deprecated">
  27620. <constructor name="MetricMutableCounter" type="java.lang.String, java.lang.String"
  27621. static="false" final="false" visibility="public"
  27622. deprecated="not deprecated">
  27623. <doc>
  27624. <![CDATA[Construct the metric with name and description
  27625. @param name
  27626. @param description]]>
  27627. </doc>
  27628. </constructor>
  27629. <method name="incr"
  27630. abstract="true" native="false" synchronized="false"
  27631. static="false" final="false" visibility="public"
  27632. deprecated="not deprecated">
  27633. <doc>
  27634. <![CDATA[Increment the metric value by 1.]]>
  27635. </doc>
  27636. </method>
  27637. <doc>
  27638. <![CDATA[The mutable counter (monotonically increasing) metric interface
  27639. @param <T> the type of the metric]]>
  27640. </doc>
  27641. </class>
  27642. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  27643. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  27644. <class name="MetricMutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  27645. abstract="false"
  27646. static="false" final="false" visibility="public"
  27647. deprecated="not deprecated">
  27648. <constructor name="MetricMutableCounterInt" type="java.lang.String, java.lang.String, int"
  27649. static="false" final="false" visibility="public"
  27650. deprecated="not deprecated">
  27651. <doc>
  27652. <![CDATA[Construct a mutable int counter
  27653. @param name of the counter
  27654. @param description of the counter
  27655. @param initValue the initial value of the counter]]>
  27656. </doc>
  27657. </constructor>
  27658. <method name="incr"
  27659. abstract="false" native="false" synchronized="true"
  27660. static="false" final="false" visibility="public"
  27661. deprecated="not deprecated">
  27662. </method>
  27663. <method name="incr"
  27664. abstract="false" native="false" synchronized="true"
  27665. static="false" final="false" visibility="public"
  27666. deprecated="not deprecated">
  27667. <param name="delta" type="int"/>
  27668. <doc>
  27669. <![CDATA[Increment the value by a delta
  27670. @param delta of the increment]]>
  27671. </doc>
  27672. </method>
  27673. <method name="snapshot"
  27674. abstract="false" native="false" synchronized="false"
  27675. static="false" final="false" visibility="public"
  27676. deprecated="not deprecated">
  27677. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27678. <param name="all" type="boolean"/>
  27679. </method>
  27680. <doc>
  27681. <![CDATA[A mutable int counter for implementing metrics sources]]>
  27682. </doc>
  27683. </class>
  27684. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  27685. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  27686. <class name="MetricMutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  27687. abstract="false"
  27688. static="false" final="false" visibility="public"
  27689. deprecated="not deprecated">
  27690. <constructor name="MetricMutableCounterLong" type="java.lang.String, java.lang.String, long"
  27691. static="false" final="false" visibility="public"
  27692. deprecated="not deprecated">
  27693. <doc>
  27694. <![CDATA[Construct a mutable long counter
  27695. @param name of the counter
  27696. @param description of the counter
  27697. @param initValue the initial value of the counter]]>
  27698. </doc>
  27699. </constructor>
  27700. <method name="incr"
  27701. abstract="false" native="false" synchronized="true"
  27702. static="false" final="false" visibility="public"
  27703. deprecated="not deprecated">
  27704. </method>
  27705. <method name="incr"
  27706. abstract="false" native="false" synchronized="true"
  27707. static="false" final="false" visibility="public"
  27708. deprecated="not deprecated">
  27709. <param name="delta" type="long"/>
  27710. <doc>
  27711. <![CDATA[Increment the value by a delta
  27712. @param delta of the increment]]>
  27713. </doc>
  27714. </method>
  27715. <method name="snapshot"
  27716. abstract="false" native="false" synchronized="false"
  27717. static="false" final="false" visibility="public"
  27718. deprecated="not deprecated">
  27719. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27720. <param name="all" type="boolean"/>
  27721. </method>
  27722. <doc>
  27723. <![CDATA[A mutable long counter]]>
  27724. </doc>
  27725. </class>
  27726. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  27727. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  27728. <class name="MetricMutableFactory" extends="java.lang.Object"
  27729. abstract="false"
  27730. static="false" final="false" visibility="public"
  27731. deprecated="not deprecated">
  27732. <constructor name="MetricMutableFactory"
  27733. static="false" final="false" visibility="public"
  27734. deprecated="not deprecated">
  27735. </constructor>
  27736. <method name="newMetric" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  27737. abstract="false" native="false" synchronized="false"
  27738. static="false" final="false" visibility="public"
  27739. deprecated="not deprecated">
  27740. <param name="name" type="java.lang.String"/>
  27741. <doc>
  27742. <![CDATA[Create a new mutable metric by name
  27743. Usually overridden by app specific factory
  27744. @param name of the metric
  27745. @return a new metric object]]>
  27746. </doc>
  27747. </method>
  27748. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  27749. abstract="false" native="false" synchronized="false"
  27750. static="false" final="false" visibility="public"
  27751. deprecated="not deprecated">
  27752. <param name="name" type="java.lang.String"/>
  27753. <param name="description" type="java.lang.String"/>
  27754. <param name="initValue" type="int"/>
  27755. <doc>
  27756. <![CDATA[Create a mutable integer counter
  27757. @param name of the metric
  27758. @param description of the metric
  27759. @param initValue of the metric
  27760. @return a new metric object]]>
  27761. </doc>
  27762. </method>
  27763. <method name="newCounterInt" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  27764. abstract="false" native="false" synchronized="false"
  27765. static="false" final="false" visibility="public"
  27766. deprecated="not deprecated">
  27767. <param name="name" type="java.lang.String"/>
  27768. <doc>
  27769. <![CDATA[Create a mutable integer counter with name only.
  27770. Usually gets overridden.
  27771. @param name of the metric
  27772. @return a new metric object]]>
  27773. </doc>
  27774. </method>
  27775. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  27776. abstract="false" native="false" synchronized="false"
  27777. static="false" final="false" visibility="public"
  27778. deprecated="not deprecated">
  27779. <param name="name" type="java.lang.String"/>
  27780. <param name="description" type="java.lang.String"/>
  27781. <param name="initValue" type="long"/>
  27782. <doc>
  27783. <![CDATA[Create a mutable long integer counter
  27784. @param name of the metric
  27785. @param description of the metric
  27786. @param initValue of the metric
  27787. @return a new metric object]]>
  27788. </doc>
  27789. </method>
  27790. <method name="newCounterLong" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  27791. abstract="false" native="false" synchronized="false"
  27792. static="false" final="false" visibility="public"
  27793. deprecated="not deprecated">
  27794. <param name="name" type="java.lang.String"/>
  27795. <doc>
  27796. <![CDATA[Create a mutable long integer counter with a name
  27797. Usually gets overridden.
  27798. @param name of the metric
  27799. @return a new metric object]]>
  27800. </doc>
  27801. </method>
  27802. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  27803. abstract="false" native="false" synchronized="false"
  27804. static="false" final="false" visibility="public"
  27805. deprecated="not deprecated">
  27806. <param name="name" type="java.lang.String"/>
  27807. <param name="description" type="java.lang.String"/>
  27808. <param name="initValue" type="int"/>
  27809. <doc>
  27810. <![CDATA[Create a mutable integer gauge
  27811. @param name of the metric
  27812. @param description of the metric
  27813. @param initValue of the metric
  27814. @return a new metric object]]>
  27815. </doc>
  27816. </method>
  27817. <method name="newGaugeInt" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  27818. abstract="false" native="false" synchronized="false"
  27819. static="false" final="false" visibility="public"
  27820. deprecated="not deprecated">
  27821. <param name="name" type="java.lang.String"/>
  27822. <doc>
  27823. <![CDATA[Create a mutable integer gauge with name only.
  27824. Usually gets overridden.
  27825. @param name of the metric
  27826. @return a new metric object]]>
  27827. </doc>
  27828. </method>
  27829. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  27830. abstract="false" native="false" synchronized="false"
  27831. static="false" final="false" visibility="public"
  27832. deprecated="not deprecated">
  27833. <param name="name" type="java.lang.String"/>
  27834. <param name="description" type="java.lang.String"/>
  27835. <param name="initValue" type="long"/>
  27836. <doc>
  27837. <![CDATA[Create a mutable long integer gauge
  27838. @param name of the metric
  27839. @param description of the metric
  27840. @param initValue of the metric
  27841. @return a new metric object]]>
  27842. </doc>
  27843. </method>
  27844. <method name="newGaugeLong" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  27845. abstract="false" native="false" synchronized="false"
  27846. static="false" final="false" visibility="public"
  27847. deprecated="not deprecated">
  27848. <param name="name" type="java.lang.String"/>
  27849. <doc>
  27850. <![CDATA[Create a mutable long integer gauge with name only.
  27851. Usually gets overridden.
  27852. @param name of the metric
  27853. @return a new metric object]]>
  27854. </doc>
  27855. </method>
  27856. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27857. abstract="false" native="false" synchronized="false"
  27858. static="false" final="false" visibility="public"
  27859. deprecated="not deprecated">
  27860. <param name="name" type="java.lang.String"/>
  27861. <param name="description" type="java.lang.String"/>
  27862. <param name="sampleName" type="java.lang.String"/>
  27863. <param name="valueName" type="java.lang.String"/>
  27864. <param name="extended" type="boolean"/>
  27865. <doc>
  27866. <![CDATA[Create a mutable stat metric
  27867. @param name of the metric
  27868. @param description of the metric
  27869. @param sampleName of the metric (e.g., ops)
  27870. @param valueName of the metric (e.g., time or latency)
  27871. @param extended if true, produces extended stat (stdev, min/max etc.)
  27872. @return a new metric object]]>
  27873. </doc>
  27874. </method>
  27875. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  27876. abstract="false" native="false" synchronized="false"
  27877. static="false" final="false" visibility="public"
  27878. deprecated="not deprecated">
  27879. <param name="name" type="java.lang.String"/>
  27880. <doc>
  27881. <![CDATA[Create a mutable stat metric with name only.
  27882. Usually gets overridden.
  27883. @param name of the metric
  27884. @return a new metric object]]>
  27885. </doc>
  27886. </method>
  27887. <doc>
  27888. <![CDATA[Factory class for mutable metrics]]>
  27889. </doc>
  27890. </class>
  27891. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  27892. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  27893. <class name="MetricMutableGauge" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  27894. abstract="true"
  27895. static="false" final="false" visibility="public"
  27896. deprecated="not deprecated">
  27897. <constructor name="MetricMutableGauge" type="java.lang.String, java.lang.String"
  27898. static="false" final="false" visibility="public"
  27899. deprecated="not deprecated">
  27900. <doc>
  27901. <![CDATA[Construct the metric with name and description
  27902. @param name of the metric
  27903. @param description of the metric]]>
  27904. </doc>
  27905. </constructor>
  27906. <method name="incr"
  27907. abstract="true" native="false" synchronized="false"
  27908. static="false" final="false" visibility="public"
  27909. deprecated="not deprecated">
  27910. <doc>
  27911. <![CDATA[Increment the value of the metric by 1]]>
  27912. </doc>
  27913. </method>
  27914. <method name="decr"
  27915. abstract="true" native="false" synchronized="false"
  27916. static="false" final="false" visibility="public"
  27917. deprecated="not deprecated">
  27918. <doc>
  27919. <![CDATA[Decrement the value of the metric by 1]]>
  27920. </doc>
  27921. </method>
  27922. <doc>
  27923. <![CDATA[The mutable gauge metric interface
  27924. @param <T> the type of the metric]]>
  27925. </doc>
  27926. </class>
  27927. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  27928. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  27929. <class name="MetricMutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  27930. abstract="false"
  27931. static="false" final="false" visibility="public"
  27932. deprecated="not deprecated">
  27933. <constructor name="MetricMutableGaugeInt" type="java.lang.String, java.lang.String, int"
  27934. static="false" final="false" visibility="public"
  27935. deprecated="not deprecated">
  27936. <doc>
  27937. <![CDATA[Construct a mutable int gauge metric
  27938. @param name of the gauge
  27939. @param description of the gauge
  27940. @param initValue the initial value of the gauge]]>
  27941. </doc>
  27942. </constructor>
  27943. <method name="incr"
  27944. abstract="false" native="false" synchronized="true"
  27945. static="false" final="false" visibility="public"
  27946. deprecated="not deprecated">
  27947. </method>
  27948. <method name="incr"
  27949. abstract="false" native="false" synchronized="true"
  27950. static="false" final="false" visibility="public"
  27951. deprecated="not deprecated">
  27952. <param name="delta" type="int"/>
  27953. <doc>
  27954. <![CDATA[Increment by delta
  27955. @param delta of the increment]]>
  27956. </doc>
  27957. </method>
  27958. <method name="decr"
  27959. abstract="false" native="false" synchronized="true"
  27960. static="false" final="false" visibility="public"
  27961. deprecated="not deprecated">
  27962. </method>
  27963. <method name="decr"
  27964. abstract="false" native="false" synchronized="true"
  27965. static="false" final="false" visibility="public"
  27966. deprecated="not deprecated">
  27967. <param name="delta" type="int"/>
  27968. <doc>
  27969. <![CDATA[decrement by delta
  27970. @param delta of the decrement]]>
  27971. </doc>
  27972. </method>
  27973. <method name="set"
  27974. abstract="false" native="false" synchronized="false"
  27975. static="false" final="false" visibility="public"
  27976. deprecated="not deprecated">
  27977. <param name="value" type="int"/>
  27978. <doc>
  27979. <![CDATA[Set the value of the metric
  27980. @param value to set]]>
  27981. </doc>
  27982. </method>
  27983. <method name="snapshot"
  27984. abstract="false" native="false" synchronized="false"
  27985. static="false" final="false" visibility="public"
  27986. deprecated="not deprecated">
  27987. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27988. <param name="all" type="boolean"/>
  27989. </method>
  27990. <doc>
  27991. <![CDATA[A mutable int gauge]]>
  27992. </doc>
  27993. </class>
  27994. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  27995. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  27996. <class name="MetricMutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  27997. abstract="false"
  27998. static="false" final="false" visibility="public"
  27999. deprecated="not deprecated">
  28000. <constructor name="MetricMutableGaugeLong" type="java.lang.String, java.lang.String, long"
  28001. static="false" final="false" visibility="public"
  28002. deprecated="not deprecated">
  28003. <doc>
  28004. <![CDATA[Construct a mutable long gauge metric
  28005. @param name of the gauge
  28006. @param description of the gauge
  28007. @param initValue the initial value of the gauge]]>
  28008. </doc>
  28009. </constructor>
  28010. <method name="incr"
  28011. abstract="false" native="false" synchronized="true"
  28012. static="false" final="false" visibility="public"
  28013. deprecated="not deprecated">
  28014. </method>
  28015. <method name="incr"
  28016. abstract="false" native="false" synchronized="true"
  28017. static="false" final="false" visibility="public"
  28018. deprecated="not deprecated">
  28019. <param name="delta" type="long"/>
  28020. <doc>
  28021. <![CDATA[Increment by delta
  28022. @param delta of the increment]]>
  28023. </doc>
  28024. </method>
  28025. <method name="decr"
  28026. abstract="false" native="false" synchronized="true"
  28027. static="false" final="false" visibility="public"
  28028. deprecated="not deprecated">
  28029. </method>
  28030. <method name="decr"
  28031. abstract="false" native="false" synchronized="true"
  28032. static="false" final="false" visibility="public"
  28033. deprecated="not deprecated">
  28034. <param name="delta" type="long"/>
  28035. <doc>
  28036. <![CDATA[decrement by delta
  28037. @param delta of the decrement]]>
  28038. </doc>
  28039. </method>
  28040. <method name="set"
  28041. abstract="false" native="false" synchronized="false"
  28042. static="false" final="false" visibility="public"
  28043. deprecated="not deprecated">
  28044. <param name="value" type="long"/>
  28045. <doc>
  28046. <![CDATA[Set the value of the metric
  28047. @param value to set]]>
  28048. </doc>
  28049. </method>
  28050. <method name="snapshot"
  28051. abstract="false" native="false" synchronized="false"
  28052. static="false" final="false" visibility="public"
  28053. deprecated="not deprecated">
  28054. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28055. <param name="all" type="boolean"/>
  28056. </method>
  28057. <doc>
  28058. <![CDATA[A mutable long gauge]]>
  28059. </doc>
  28060. </class>
  28061. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  28062. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  28063. <class name="MetricMutableStat" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  28064. abstract="false"
  28065. static="false" final="false" visibility="public"
  28066. deprecated="not deprecated">
  28067. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  28068. static="false" final="false" visibility="public"
  28069. deprecated="not deprecated">
  28070. <doc>
  28071. <![CDATA[Construct a sample statistics metric
  28072. @param name of the metric
  28073. @param description of the metric
  28074. @param sampleName of the metric (e.g. "ops")
  28075. @param valueName of the metric (e.g. "time", "latency")
  28076. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  28077. </doc>
  28078. </constructor>
  28079. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  28080. static="false" final="false" visibility="public"
  28081. deprecated="not deprecated">
  28082. <doc>
  28083. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  28084. @param name of the metric
  28085. @param description of the metric
  28086. @param sampleName of the metric (e.g. "ops")
  28087. @param valueName of the metric (e.g. "time", "latency")]]>
  28088. </doc>
  28089. </constructor>
  28090. <method name="add"
  28091. abstract="false" native="false" synchronized="true"
  28092. static="false" final="false" visibility="public"
  28093. deprecated="not deprecated">
  28094. <param name="numSamples" type="long"/>
  28095. <param name="sum" type="long"/>
  28096. <doc>
  28097. <![CDATA[Add a number of samples and their sum to the running stat
  28098. @param numSamples number of samples
  28099. @param sum of the samples]]>
  28100. </doc>
  28101. </method>
  28102. <method name="add"
  28103. abstract="false" native="false" synchronized="true"
  28104. static="false" final="false" visibility="public"
  28105. deprecated="not deprecated">
  28106. <param name="value" type="long"/>
  28107. <doc>
  28108. <![CDATA[Add a snapshot to the metric
  28109. @param value of the metric]]>
  28110. </doc>
  28111. </method>
  28112. <method name="snapshot"
  28113. abstract="false" native="false" synchronized="true"
  28114. static="false" final="false" visibility="public"
  28115. deprecated="not deprecated">
  28116. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28117. <param name="all" type="boolean"/>
  28118. </method>
  28119. <method name="resetMinMax"
  28120. abstract="false" native="false" synchronized="false"
  28121. static="false" final="false" visibility="public"
  28122. deprecated="not deprecated">
  28123. <doc>
  28124. <![CDATA[Reset the all time min max of the metric]]>
  28125. </doc>
  28126. </method>
  28127. <doc>
  28128. <![CDATA[A mutable metric with stats
  28129. Useful for keep throughput/latency stats.
  28130. e.g., new MetricMutableStat("rpcName", "rpcName stats", "ops", "time");]]>
  28131. </doc>
  28132. </class>
  28133. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  28134. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28135. <class name="MetricsRegistry" extends="java.lang.Object"
  28136. abstract="false"
  28137. static="false" final="false" visibility="public"
  28138. deprecated="not deprecated">
  28139. <constructor name="MetricsRegistry" type="java.lang.String"
  28140. static="false" final="false" visibility="public"
  28141. deprecated="not deprecated">
  28142. <doc>
  28143. <![CDATA[Construct the registry with a record name
  28144. @param name of the record of the metrics]]>
  28145. </doc>
  28146. </constructor>
  28147. <constructor name="MetricsRegistry" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  28148. static="false" final="false" visibility="public"
  28149. deprecated="not deprecated">
  28150. <doc>
  28151. <![CDATA[Construct the registry with a name and a metric factory
  28152. @param name of the record of the metrics
  28153. @param factory for creating new mutable metrics]]>
  28154. </doc>
  28155. </constructor>
  28156. <method name="name" return="java.lang.String"
  28157. abstract="false" native="false" synchronized="false"
  28158. static="false" final="false" visibility="public"
  28159. deprecated="not deprecated">
  28160. <doc>
  28161. <![CDATA[@return the name of the metrics registry]]>
  28162. </doc>
  28163. </method>
  28164. <method name="get" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  28165. abstract="false" native="false" synchronized="false"
  28166. static="false" final="false" visibility="public"
  28167. deprecated="not deprecated">
  28168. <param name="name" type="java.lang.String"/>
  28169. <doc>
  28170. <![CDATA[Get a metric by name
  28171. @param name of the metric
  28172. @return the metric object]]>
  28173. </doc>
  28174. </method>
  28175. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  28176. abstract="false" native="false" synchronized="false"
  28177. static="false" final="false" visibility="public"
  28178. deprecated="not deprecated">
  28179. <param name="name" type="java.lang.String"/>
  28180. <param name="description" type="java.lang.String"/>
  28181. <param name="initValue" type="int"/>
  28182. <doc>
  28183. <![CDATA[Create a mutable integer counter
  28184. @param name of the metric
  28185. @param description of the metric
  28186. @param initValue of the metric
  28187. @return a new counter object]]>
  28188. </doc>
  28189. </method>
  28190. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  28191. abstract="false" native="false" synchronized="false"
  28192. static="false" final="false" visibility="public"
  28193. deprecated="not deprecated">
  28194. <param name="name" type="java.lang.String"/>
  28195. <param name="description" type="java.lang.String"/>
  28196. <param name="initValue" type="long"/>
  28197. <doc>
  28198. <![CDATA[Create a mutable long integer counter
  28199. @param name of the metric
  28200. @param description of the metric
  28201. @param initValue of the metric
  28202. @return a new counter object]]>
  28203. </doc>
  28204. </method>
  28205. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  28206. abstract="false" native="false" synchronized="false"
  28207. static="false" final="false" visibility="public"
  28208. deprecated="not deprecated">
  28209. <param name="name" type="java.lang.String"/>
  28210. <param name="description" type="java.lang.String"/>
  28211. <param name="initValue" type="int"/>
  28212. <doc>
  28213. <![CDATA[Create a mutable integer gauge
  28214. @param name of the metric
  28215. @param description of the metric
  28216. @param initValue of the metric
  28217. @return a new gauge object]]>
  28218. </doc>
  28219. </method>
  28220. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  28221. abstract="false" native="false" synchronized="false"
  28222. static="false" final="false" visibility="public"
  28223. deprecated="not deprecated">
  28224. <param name="name" type="java.lang.String"/>
  28225. <param name="description" type="java.lang.String"/>
  28226. <param name="initValue" type="long"/>
  28227. <doc>
  28228. <![CDATA[Create a mutable long integer gauge
  28229. @param name of the metric
  28230. @param description of the metric
  28231. @param initValue of the metric
  28232. @return a new gauge object]]>
  28233. </doc>
  28234. </method>
  28235. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28236. abstract="false" native="false" synchronized="false"
  28237. static="false" final="false" visibility="public"
  28238. deprecated="not deprecated">
  28239. <param name="name" type="java.lang.String"/>
  28240. <param name="description" type="java.lang.String"/>
  28241. <param name="sampleName" type="java.lang.String"/>
  28242. <param name="valueName" type="java.lang.String"/>
  28243. <param name="extended" type="boolean"/>
  28244. <doc>
  28245. <![CDATA[Create a mutable metric with stats
  28246. @param name of the metric
  28247. @param description of the metric
  28248. @param sampleName of the metric (e.g., "ops")
  28249. @param valueName of the metric (e.g., "time" or "latency")
  28250. @param extended produce extended stat (stdev, min/max etc.) if true.
  28251. @return a new metric object]]>
  28252. </doc>
  28253. </method>
  28254. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28255. abstract="false" native="false" synchronized="false"
  28256. static="false" final="false" visibility="public"
  28257. deprecated="not deprecated">
  28258. <param name="name" type="java.lang.String"/>
  28259. <param name="description" type="java.lang.String"/>
  28260. <param name="sampleName" type="java.lang.String"/>
  28261. <param name="valueName" type="java.lang.String"/>
  28262. <doc>
  28263. <![CDATA[Create a mutable metric with stats
  28264. @param name of the metric
  28265. @param description of the metric
  28266. @param sampleName of the metric (e.g., "ops")
  28267. @param valueName of the metric (e.g., "time" or "latency")
  28268. @return a new metric object]]>
  28269. </doc>
  28270. </method>
  28271. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28272. abstract="false" native="false" synchronized="false"
  28273. static="false" final="false" visibility="public"
  28274. deprecated="not deprecated">
  28275. <param name="name" type="java.lang.String"/>
  28276. <doc>
  28277. <![CDATA[Create a mutable metric with stats using the name only
  28278. @param name of the metric
  28279. @return a new metric object]]>
  28280. </doc>
  28281. </method>
  28282. <method name="incr"
  28283. abstract="false" native="false" synchronized="false"
  28284. static="false" final="false" visibility="public"
  28285. deprecated="not deprecated">
  28286. <param name="name" type="java.lang.String"/>
  28287. <doc>
  28288. <![CDATA[Increment a metric by name.
  28289. @param name of the metric]]>
  28290. </doc>
  28291. </method>
  28292. <method name="incr"
  28293. abstract="false" native="false" synchronized="false"
  28294. static="false" final="false" visibility="public"
  28295. deprecated="not deprecated">
  28296. <param name="name" type="java.lang.String"/>
  28297. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28298. <doc>
  28299. <![CDATA[Increment a metric by name.
  28300. @param name of the metric
  28301. @param factory to lazily create the metric if not null]]>
  28302. </doc>
  28303. </method>
  28304. <method name="decr"
  28305. abstract="false" native="false" synchronized="false"
  28306. static="false" final="false" visibility="public"
  28307. deprecated="not deprecated">
  28308. <param name="name" type="java.lang.String"/>
  28309. <doc>
  28310. <![CDATA[Decrement a metric by name.
  28311. @param name of the metric]]>
  28312. </doc>
  28313. </method>
  28314. <method name="decr"
  28315. abstract="false" native="false" synchronized="false"
  28316. static="false" final="false" visibility="public"
  28317. deprecated="not deprecated">
  28318. <param name="name" type="java.lang.String"/>
  28319. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28320. <doc>
  28321. <![CDATA[Decrement a metric by name.
  28322. @param name of the metric
  28323. @param factory to lazily create the metric if not null]]>
  28324. </doc>
  28325. </method>
  28326. <method name="add"
  28327. abstract="false" native="false" synchronized="false"
  28328. static="false" final="false" visibility="public"
  28329. deprecated="not deprecated">
  28330. <param name="name" type="java.lang.String"/>
  28331. <param name="value" type="long"/>
  28332. <doc>
  28333. <![CDATA[Add a value to a metric by name.
  28334. @param name of the metric
  28335. @param value of the snapshot to add]]>
  28336. </doc>
  28337. </method>
  28338. <method name="add"
  28339. abstract="false" native="false" synchronized="false"
  28340. static="false" final="false" visibility="public"
  28341. deprecated="not deprecated">
  28342. <param name="name" type="java.lang.String"/>
  28343. <param name="value" type="long"/>
  28344. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28345. <doc>
  28346. <![CDATA[Decrement a metric by name.
  28347. @param name of the metric
  28348. @param value of the snapshot to add
  28349. @param factory to lazily create the metric if not null]]>
  28350. </doc>
  28351. </method>
  28352. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28353. abstract="false" native="false" synchronized="false"
  28354. static="false" final="false" visibility="public"
  28355. deprecated="not deprecated">
  28356. <param name="name" type="java.lang.String"/>
  28357. <doc>
  28358. <![CDATA[Set the metrics context tag
  28359. @param name of the context
  28360. @return the registry itself as a convenience]]>
  28361. </doc>
  28362. </method>
  28363. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28364. abstract="false" native="false" synchronized="false"
  28365. static="false" final="false" visibility="public"
  28366. deprecated="not deprecated">
  28367. <param name="name" type="java.lang.String"/>
  28368. <param name="description" type="java.lang.String"/>
  28369. <param name="value" type="java.lang.String"/>
  28370. <doc>
  28371. <![CDATA[Add a tag to the metrics
  28372. @param name of the tag
  28373. @param description of the tag
  28374. @param value of the tag
  28375. @return the registry (for keep adding tags)]]>
  28376. </doc>
  28377. </method>
  28378. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28379. abstract="false" native="false" synchronized="false"
  28380. static="false" final="false" visibility="public"
  28381. deprecated="not deprecated">
  28382. <param name="name" type="java.lang.String"/>
  28383. <param name="description" type="java.lang.String"/>
  28384. <param name="value" type="java.lang.String"/>
  28385. <param name="override" type="boolean"/>
  28386. <doc>
  28387. <![CDATA[Add a tag to the metrics
  28388. @param name of the tag
  28389. @param description of the tag
  28390. @param value of the tag
  28391. @param override existing tag if true
  28392. @return the registry (for keep adding tags)]]>
  28393. </doc>
  28394. </method>
  28395. <method name="tags" return="java.util.Set"
  28396. abstract="false" native="false" synchronized="false"
  28397. static="false" final="false" visibility="public"
  28398. deprecated="not deprecated">
  28399. <doc>
  28400. <![CDATA[Get the tags
  28401. @return the tags set]]>
  28402. </doc>
  28403. </method>
  28404. <method name="metrics" return="java.util.Set"
  28405. abstract="false" native="false" synchronized="false"
  28406. static="false" final="false" visibility="public"
  28407. deprecated="not deprecated">
  28408. <doc>
  28409. <![CDATA[Get the metrics
  28410. @return the metrics set]]>
  28411. </doc>
  28412. </method>
  28413. <method name="snapshot"
  28414. abstract="false" native="false" synchronized="false"
  28415. static="false" final="false" visibility="public"
  28416. deprecated="not deprecated">
  28417. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28418. <param name="all" type="boolean"/>
  28419. <doc>
  28420. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  28421. @param builder to contain the metrics snapshot
  28422. @param all get all the metrics even if the values are not changed.]]>
  28423. </doc>
  28424. </method>
  28425. <field name="CONTEXT_KEY" type="java.lang.String"
  28426. transient="false" volatile="false"
  28427. static="true" final="true" visibility="public"
  28428. deprecated="not deprecated">
  28429. <doc>
  28430. <![CDATA[key for the context tag]]>
  28431. </doc>
  28432. </field>
  28433. <field name="CONTEXT_DESC" type="java.lang.String"
  28434. transient="false" volatile="false"
  28435. static="true" final="true" visibility="public"
  28436. deprecated="not deprecated">
  28437. <doc>
  28438. <![CDATA[description for the context tag]]>
  28439. </doc>
  28440. </field>
  28441. <doc>
  28442. <![CDATA[An optional metrics registry class for creating and maintaining a
  28443. collection of MetricsMutables, making writing metrics source easier.]]>
  28444. </doc>
  28445. </class>
  28446. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28447. </package>
  28448. <package name="org.apache.hadoop.metrics2.sink">
  28449. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  28450. <class name="FileSink" extends="java.lang.Object"
  28451. abstract="false"
  28452. static="false" final="false" visibility="public"
  28453. deprecated="not deprecated">
  28454. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28455. <constructor name="FileSink"
  28456. static="false" final="false" visibility="public"
  28457. deprecated="not deprecated">
  28458. </constructor>
  28459. <method name="init"
  28460. abstract="false" native="false" synchronized="false"
  28461. static="false" final="false" visibility="public"
  28462. deprecated="not deprecated">
  28463. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28464. </method>
  28465. <method name="putMetrics"
  28466. abstract="false" native="false" synchronized="false"
  28467. static="false" final="false" visibility="public"
  28468. deprecated="not deprecated">
  28469. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28470. </method>
  28471. <method name="flush"
  28472. abstract="false" native="false" synchronized="false"
  28473. static="false" final="false" visibility="public"
  28474. deprecated="not deprecated">
  28475. </method>
  28476. </class>
  28477. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  28478. </package>
  28479. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  28480. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  28481. <class name="AbstractGangliaSink" extends="java.lang.Object"
  28482. abstract="true"
  28483. static="false" final="false" visibility="public"
  28484. deprecated="not deprecated">
  28485. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28486. <constructor name="AbstractGangliaSink"
  28487. static="false" final="false" visibility="public"
  28488. deprecated="not deprecated">
  28489. </constructor>
  28490. <method name="init"
  28491. abstract="false" native="false" synchronized="false"
  28492. static="false" final="false" visibility="public"
  28493. deprecated="not deprecated">
  28494. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28495. </method>
  28496. <method name="flush"
  28497. abstract="false" native="false" synchronized="false"
  28498. static="false" final="false" visibility="public"
  28499. deprecated="not deprecated">
  28500. </method>
  28501. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  28502. abstract="false" native="false" synchronized="false"
  28503. static="false" final="false" visibility="protected"
  28504. deprecated="not deprecated">
  28505. <param name="metricName" type="java.lang.String"/>
  28506. <doc>
  28507. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  28508. @param metricName
  28509. @return looked up GangliaConf]]>
  28510. </doc>
  28511. </method>
  28512. <method name="getHostName" return="java.lang.String"
  28513. abstract="false" native="false" synchronized="false"
  28514. static="false" final="false" visibility="protected"
  28515. deprecated="not deprecated">
  28516. <doc>
  28517. <![CDATA[@return the hostName]]>
  28518. </doc>
  28519. </method>
  28520. <method name="xdr_string"
  28521. abstract="false" native="false" synchronized="false"
  28522. static="false" final="false" visibility="protected"
  28523. deprecated="not deprecated">
  28524. <param name="s" type="java.lang.String"/>
  28525. <doc>
  28526. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  28527. int, followed by the bytes of the string, padded if necessary to a multiple
  28528. of 4.
  28529. @param s the string to be written to buffer at offset location]]>
  28530. </doc>
  28531. </method>
  28532. <method name="xdr_int"
  28533. abstract="false" native="false" synchronized="false"
  28534. static="false" final="false" visibility="protected"
  28535. deprecated="not deprecated">
  28536. <param name="i" type="int"/>
  28537. <doc>
  28538. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  28539. </doc>
  28540. </method>
  28541. <method name="emitToGangliaHosts"
  28542. abstract="false" native="false" synchronized="false"
  28543. static="false" final="false" visibility="protected"
  28544. deprecated="not deprecated">
  28545. <exception name="IOException" type="java.io.IOException"/>
  28546. <doc>
  28547. <![CDATA[Sends Ganglia Metrics to the configured hosts
  28548. @throws IOException]]>
  28549. </doc>
  28550. </method>
  28551. <method name="isSupportSparseMetrics" return="boolean"
  28552. abstract="false" native="false" synchronized="false"
  28553. static="false" final="false" visibility="protected"
  28554. deprecated="not deprecated">
  28555. <doc>
  28556. <![CDATA[@return whether sparse metrics are supported]]>
  28557. </doc>
  28558. </method>
  28559. <field name="LOG" type="org.apache.commons.logging.Log"
  28560. transient="false" volatile="false"
  28561. static="false" final="true" visibility="public"
  28562. deprecated="not deprecated">
  28563. </field>
  28564. <field name="DEFAULT_UNITS" type="java.lang.String"
  28565. transient="false" volatile="false"
  28566. static="true" final="true" visibility="public"
  28567. deprecated="not deprecated">
  28568. </field>
  28569. <field name="DEFAULT_TMAX" type="int"
  28570. transient="false" volatile="false"
  28571. static="true" final="true" visibility="public"
  28572. deprecated="not deprecated">
  28573. </field>
  28574. <field name="DEFAULT_DMAX" type="int"
  28575. transient="false" volatile="false"
  28576. static="true" final="true" visibility="public"
  28577. deprecated="not deprecated">
  28578. </field>
  28579. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28580. transient="false" volatile="false"
  28581. static="true" final="true" visibility="public"
  28582. deprecated="not deprecated">
  28583. </field>
  28584. <field name="DEFAULT_PORT" type="int"
  28585. transient="false" volatile="false"
  28586. static="true" final="true" visibility="public"
  28587. deprecated="not deprecated">
  28588. </field>
  28589. <field name="SERVERS_PROPERTY" type="java.lang.String"
  28590. transient="false" volatile="false"
  28591. static="true" final="true" visibility="public"
  28592. deprecated="not deprecated">
  28593. </field>
  28594. <field name="BUFFER_SIZE" type="int"
  28595. transient="false" volatile="false"
  28596. static="true" final="true" visibility="public"
  28597. deprecated="not deprecated">
  28598. </field>
  28599. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  28600. transient="false" volatile="false"
  28601. static="true" final="true" visibility="public"
  28602. deprecated="not deprecated">
  28603. </field>
  28604. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  28605. transient="false" volatile="false"
  28606. static="true" final="true" visibility="public"
  28607. deprecated="not deprecated">
  28608. </field>
  28609. <field name="EQUAL" type="java.lang.String"
  28610. transient="false" volatile="false"
  28611. static="true" final="true" visibility="public"
  28612. deprecated="not deprecated">
  28613. </field>
  28614. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  28615. transient="false" volatile="false"
  28616. static="false" final="true" visibility="protected"
  28617. deprecated="not deprecated">
  28618. <doc>
  28619. <![CDATA[Used for visiting Metrics]]>
  28620. </doc>
  28621. </field>
  28622. <doc>
  28623. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  28624. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  28625. As per the documentation, sink implementations doesn't have to worry about
  28626. thread safety. Hence the code wasn't written for thread safety and should
  28627. be modified in case the above assumption changes in the future.]]>
  28628. </doc>
  28629. </class>
  28630. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  28631. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  28632. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  28633. abstract="false"
  28634. static="true" final="true" visibility="public"
  28635. deprecated="not deprecated">
  28636. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  28637. abstract="false" native="false" synchronized="false"
  28638. static="true" final="false" visibility="public"
  28639. deprecated="not deprecated">
  28640. </method>
  28641. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28642. abstract="false" native="false" synchronized="false"
  28643. static="true" final="false" visibility="public"
  28644. deprecated="not deprecated">
  28645. <param name="name" type="java.lang.String"/>
  28646. </method>
  28647. <field name="slope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28648. transient="false" volatile="false"
  28649. static="true" final="true" visibility="public"
  28650. deprecated="not deprecated">
  28651. </field>
  28652. <field name="units" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28653. transient="false" volatile="false"
  28654. static="true" final="true" visibility="public"
  28655. deprecated="not deprecated">
  28656. </field>
  28657. <field name="dmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28658. transient="false" volatile="false"
  28659. static="true" final="true" visibility="public"
  28660. deprecated="not deprecated">
  28661. </field>
  28662. <field name="tmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  28663. transient="false" volatile="false"
  28664. static="true" final="true" visibility="public"
  28665. deprecated="not deprecated">
  28666. </field>
  28667. <doc>
  28668. <![CDATA[define enum for various type of conf]]>
  28669. </doc>
  28670. </class>
  28671. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  28672. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  28673. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  28674. abstract="false"
  28675. static="true" final="true" visibility="public"
  28676. deprecated="not deprecated">
  28677. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  28678. abstract="false" native="false" synchronized="false"
  28679. static="true" final="false" visibility="public"
  28680. deprecated="not deprecated">
  28681. </method>
  28682. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28683. abstract="false" native="false" synchronized="false"
  28684. static="true" final="false" visibility="public"
  28685. deprecated="not deprecated">
  28686. <param name="name" type="java.lang.String"/>
  28687. </method>
  28688. <field name="zero" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28689. transient="false" volatile="false"
  28690. static="true" final="true" visibility="public"
  28691. deprecated="not deprecated">
  28692. </field>
  28693. <field name="positive" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28694. transient="false" volatile="false"
  28695. static="true" final="true" visibility="public"
  28696. deprecated="not deprecated">
  28697. </field>
  28698. <field name="negative" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28699. transient="false" volatile="false"
  28700. static="true" final="true" visibility="public"
  28701. deprecated="not deprecated">
  28702. </field>
  28703. <field name="both" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28704. transient="false" volatile="false"
  28705. static="true" final="true" visibility="public"
  28706. deprecated="not deprecated">
  28707. </field>
  28708. <doc>
  28709. <![CDATA[ganglia slope values which equal the ordinal]]>
  28710. </doc>
  28711. </class>
  28712. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  28713. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  28714. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  28715. abstract="false"
  28716. static="false" final="false" visibility="public"
  28717. deprecated="not deprecated">
  28718. <constructor name="GangliaSink30"
  28719. static="false" final="false" visibility="public"
  28720. deprecated="not deprecated">
  28721. </constructor>
  28722. <method name="putMetrics"
  28723. abstract="false" native="false" synchronized="false"
  28724. static="false" final="false" visibility="public"
  28725. deprecated="not deprecated">
  28726. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28727. </method>
  28728. <method name="emitMetric"
  28729. abstract="false" native="false" synchronized="false"
  28730. static="false" final="false" visibility="protected"
  28731. deprecated="not deprecated">
  28732. <param name="groupName" type="java.lang.String"/>
  28733. <param name="name" type="java.lang.String"/>
  28734. <param name="type" type="java.lang.String"/>
  28735. <param name="value" type="java.lang.String"/>
  28736. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  28737. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  28738. <exception name="IOException" type="java.io.IOException"/>
  28739. <doc>
  28740. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  28741. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  28742. order to keep it in sync.
  28743. @param groupName The group name of the metric
  28744. @param name The metric name
  28745. @param type The type of the metric
  28746. @param value The value of the metric
  28747. @param gConf The GangliaConf for this metric
  28748. @param gSlope The slope for this metric
  28749. @throws IOException]]>
  28750. </doc>
  28751. </method>
  28752. <field name="LOG" type="org.apache.commons.logging.Log"
  28753. transient="false" volatile="false"
  28754. static="false" final="true" visibility="public"
  28755. deprecated="not deprecated">
  28756. </field>
  28757. <field name="metricsCache" type="org.apache.hadoop.metrics2.util.MetricsCache"
  28758. transient="false" volatile="false"
  28759. static="false" final="false" visibility="protected"
  28760. deprecated="not deprecated">
  28761. </field>
  28762. <doc>
  28763. <![CDATA[This code supports Ganglia 3.0]]>
  28764. </doc>
  28765. </class>
  28766. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  28767. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  28768. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  28769. abstract="false"
  28770. static="false" final="false" visibility="public"
  28771. deprecated="not deprecated">
  28772. <constructor name="GangliaSink31"
  28773. static="false" final="false" visibility="public"
  28774. deprecated="not deprecated">
  28775. </constructor>
  28776. <method name="emitMetric"
  28777. abstract="false" native="false" synchronized="false"
  28778. static="false" final="false" visibility="protected"
  28779. deprecated="not deprecated">
  28780. <param name="groupName" type="java.lang.String"/>
  28781. <param name="name" type="java.lang.String"/>
  28782. <param name="type" type="java.lang.String"/>
  28783. <param name="value" type="java.lang.String"/>
  28784. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  28785. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  28786. <exception name="IOException" type="java.io.IOException"/>
  28787. <doc>
  28788. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  28789. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  28790. order to keep it in sync.
  28791. @param groupName The group name of the metric
  28792. @param name The metric name
  28793. @param type The type of the metric
  28794. @param value The value of the metric
  28795. @param gConf The GangliaConf for this metric
  28796. @param gSlope The slope for this metric
  28797. @throws IOException]]>
  28798. </doc>
  28799. </method>
  28800. <field name="LOG" type="org.apache.commons.logging.Log"
  28801. transient="false" volatile="false"
  28802. static="false" final="true" visibility="public"
  28803. deprecated="not deprecated">
  28804. </field>
  28805. <doc>
  28806. <![CDATA[This code supports Ganglia 3.1]]>
  28807. </doc>
  28808. </class>
  28809. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  28810. </package>
  28811. <package name="org.apache.hadoop.metrics2.source">
  28812. <!-- start class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  28813. <class name="JvmMetricsSource" extends="java.lang.Object"
  28814. abstract="false"
  28815. static="false" final="false" visibility="public"
  28816. deprecated="not deprecated">
  28817. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  28818. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  28819. abstract="false" native="false" synchronized="false"
  28820. static="true" final="false" visibility="public"
  28821. deprecated="not deprecated">
  28822. <param name="processName" type="java.lang.String"/>
  28823. <param name="sessionId" type="java.lang.String"/>
  28824. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  28825. </method>
  28826. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  28827. abstract="false" native="false" synchronized="false"
  28828. static="true" final="false" visibility="public"
  28829. deprecated="not deprecated">
  28830. <param name="processName" type="java.lang.String"/>
  28831. <param name="sessionId" type="java.lang.String"/>
  28832. </method>
  28833. <method name="getMetrics"
  28834. abstract="false" native="false" synchronized="false"
  28835. static="false" final="false" visibility="public"
  28836. deprecated="not deprecated">
  28837. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  28838. <param name="all" type="boolean"/>
  28839. </method>
  28840. </class>
  28841. <!-- end class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  28842. </package>
  28843. <package name="org.apache.hadoop.metrics2.util">
  28844. <!-- start class org.apache.hadoop.metrics2.util.Contracts -->
  28845. <class name="Contracts" extends="java.lang.Object"
  28846. abstract="false"
  28847. static="false" final="false" visibility="public"
  28848. deprecated="not deprecated">
  28849. <method name="checkNotNull" return="java.lang.Object"
  28850. abstract="false" native="false" synchronized="false"
  28851. static="true" final="false" visibility="public"
  28852. deprecated="not deprecated">
  28853. <param name="ref" type="java.lang.Object"/>
  28854. <param name="msg" type="java.lang.Object"/>
  28855. <doc>
  28856. <![CDATA[Check that a reference is not null.
  28857. @param <T> type of the reference
  28858. @param ref the reference to check
  28859. @param msg the error message
  28860. @throws NullPointerException if {@code ref} is null
  28861. @return the checked reference for convenience]]>
  28862. </doc>
  28863. </method>
  28864. <method name="checkState"
  28865. abstract="false" native="false" synchronized="false"
  28866. static="true" final="false" visibility="public"
  28867. deprecated="not deprecated">
  28868. <param name="expression" type="boolean"/>
  28869. <param name="msg" type="java.lang.Object"/>
  28870. <doc>
  28871. <![CDATA[Check the state expression for false conditions
  28872. @param expression the boolean expression to check
  28873. @param msg the error message if {@code expression} is false
  28874. @throws IllegalStateException if {@code expression} is false]]>
  28875. </doc>
  28876. </method>
  28877. <method name="checkArg" return="java.lang.Object"
  28878. abstract="false" native="false" synchronized="false"
  28879. static="true" final="false" visibility="public"
  28880. deprecated="not deprecated">
  28881. <param name="arg" type="java.lang.Object"/>
  28882. <param name="expression" type="boolean"/>
  28883. <param name="msg" type="java.lang.Object"/>
  28884. <doc>
  28885. <![CDATA[Check an argument for false conditions
  28886. @param <T> type of the argument
  28887. @param arg the argument to check
  28888. @param expression the boolean expression for the condition
  28889. @param msg the error message if {@code expression} is false
  28890. @return the argument for convenience]]>
  28891. </doc>
  28892. </method>
  28893. <method name="checkArg" return="int"
  28894. abstract="false" native="false" synchronized="false"
  28895. static="true" final="false" visibility="public"
  28896. deprecated="not deprecated">
  28897. <param name="arg" type="int"/>
  28898. <param name="expression" type="boolean"/>
  28899. <param name="msg" type="java.lang.Object"/>
  28900. <doc>
  28901. <![CDATA[Check an argument for false conditions
  28902. @param arg the argument to check
  28903. @param expression the boolean expression for the condition
  28904. @param msg the error message if {@code expression} is false
  28905. @return the argument for convenience]]>
  28906. </doc>
  28907. </method>
  28908. <method name="checkArg" return="long"
  28909. abstract="false" native="false" synchronized="false"
  28910. static="true" final="false" visibility="public"
  28911. deprecated="not deprecated">
  28912. <param name="arg" type="long"/>
  28913. <param name="expression" type="boolean"/>
  28914. <param name="msg" type="java.lang.Object"/>
  28915. <doc>
  28916. <![CDATA[Check an argument for false conditions
  28917. @param arg the argument to check
  28918. @param expression the boolean expression for the condition
  28919. @param msg the error message if {@code expression} is false
  28920. @return the argument for convenience]]>
  28921. </doc>
  28922. </method>
  28923. <method name="checkArg" return="float"
  28924. abstract="false" native="false" synchronized="false"
  28925. static="true" final="false" visibility="public"
  28926. deprecated="not deprecated">
  28927. <param name="arg" type="float"/>
  28928. <param name="expression" type="boolean"/>
  28929. <param name="msg" type="java.lang.Object"/>
  28930. <doc>
  28931. <![CDATA[Check an argument for false conditions
  28932. @param arg the argument to check
  28933. @param expression the boolean expression for the condition
  28934. @param msg the error message if {@code expression} is false
  28935. @return the argument for convenience]]>
  28936. </doc>
  28937. </method>
  28938. <method name="checkArg" return="double"
  28939. abstract="false" native="false" synchronized="false"
  28940. static="true" final="false" visibility="public"
  28941. deprecated="not deprecated">
  28942. <param name="arg" type="double"/>
  28943. <param name="expression" type="boolean"/>
  28944. <param name="msg" type="java.lang.Object"/>
  28945. <doc>
  28946. <![CDATA[Check an argument for false conditions
  28947. @param arg the argument to check
  28948. @param expression the boolean expression for the condition
  28949. @param msg the error message if {@code expression} is false
  28950. @return the argument for convenience]]>
  28951. </doc>
  28952. </method>
  28953. <doc>
  28954. <![CDATA[Utilities for programming by contract (preconditions, postconditions etc.)]]>
  28955. </doc>
  28956. </class>
  28957. <!-- end class org.apache.hadoop.metrics2.util.Contracts -->
  28958. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  28959. <class name="MBeans" extends="java.lang.Object"
  28960. abstract="false"
  28961. static="false" final="false" visibility="public"
  28962. deprecated="not deprecated">
  28963. <constructor name="MBeans"
  28964. static="false" final="false" visibility="public"
  28965. deprecated="not deprecated">
  28966. </constructor>
  28967. <method name="register" return="javax.management.ObjectName"
  28968. abstract="false" native="false" synchronized="false"
  28969. static="true" final="false" visibility="public"
  28970. deprecated="not deprecated">
  28971. <param name="serviceName" type="java.lang.String"/>
  28972. <param name="nameName" type="java.lang.String"/>
  28973. <param name="theMbean" type="java.lang.Object"/>
  28974. <doc>
  28975. <![CDATA[Register the MBean using our standard MBeanName format
  28976. "hadoop:service=<serviceName>,name=<nameName>"
  28977. Where the <serviceName> and <nameName> are the supplied parameters
  28978. @param serviceName
  28979. @param nameName
  28980. @param theMbean - the MBean to register
  28981. @return the named used to register the MBean]]>
  28982. </doc>
  28983. </method>
  28984. <method name="unregister"
  28985. abstract="false" native="false" synchronized="false"
  28986. static="true" final="false" visibility="public"
  28987. deprecated="not deprecated">
  28988. <param name="mbeanName" type="javax.management.ObjectName"/>
  28989. </method>
  28990. <doc>
  28991. <![CDATA[This util class provides a method to register an MBean using
  28992. our standard naming convention as described in the doc
  28993. for {link {@link #register(String, String, Object)}]]>
  28994. </doc>
  28995. </class>
  28996. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  28997. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  28998. <class name="MetricsCache" extends="java.lang.Object"
  28999. abstract="false"
  29000. static="false" final="false" visibility="public"
  29001. deprecated="not deprecated">
  29002. <constructor name="MetricsCache"
  29003. static="false" final="false" visibility="public"
  29004. deprecated="not deprecated">
  29005. </constructor>
  29006. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29007. abstract="false" native="false" synchronized="false"
  29008. static="false" final="false" visibility="public"
  29009. deprecated="not deprecated">
  29010. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29011. <param name="includingTags" type="boolean"/>
  29012. <doc>
  29013. <![CDATA[Update the cache and return the cached record
  29014. @param mr the update record
  29015. @param includingTags cache tag values (for later lookup by name) if true
  29016. @return the updated cached record]]>
  29017. </doc>
  29018. </method>
  29019. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29020. abstract="false" native="false" synchronized="false"
  29021. static="false" final="false" visibility="public"
  29022. deprecated="not deprecated">
  29023. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29024. </method>
  29025. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29026. abstract="false" native="false" synchronized="false"
  29027. static="false" final="false" visibility="public"
  29028. deprecated="not deprecated">
  29029. <param name="name" type="java.lang.String"/>
  29030. <param name="tags" type="java.util.Collection"/>
  29031. <doc>
  29032. <![CDATA[Get the cached record
  29033. @param name of the record
  29034. @param tags of the record
  29035. @return the cached record or null]]>
  29036. </doc>
  29037. </method>
  29038. <doc>
  29039. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  29040. </doc>
  29041. </class>
  29042. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  29043. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  29044. <class name="MetricsCache.Record" extends="java.lang.Object"
  29045. abstract="false"
  29046. static="true" final="false" visibility="public"
  29047. deprecated="not deprecated">
  29048. <constructor name="MetricsCache.Record"
  29049. static="false" final="false" visibility="public"
  29050. deprecated="not deprecated">
  29051. </constructor>
  29052. <method name="getTag" return="java.lang.String"
  29053. abstract="false" native="false" synchronized="false"
  29054. static="false" final="false" visibility="public"
  29055. deprecated="not deprecated">
  29056. <param name="key" type="java.lang.String"/>
  29057. <doc>
  29058. <![CDATA[Get the tag value
  29059. @param key name of the tag
  29060. @return the tag value]]>
  29061. </doc>
  29062. </method>
  29063. <method name="getMetric" return="java.lang.Number"
  29064. abstract="false" native="false" synchronized="false"
  29065. static="false" final="false" visibility="public"
  29066. deprecated="not deprecated">
  29067. <param name="key" type="java.lang.String"/>
  29068. <doc>
  29069. <![CDATA[Get the metric value
  29070. @param key name of the metric
  29071. @return the metric value]]>
  29072. </doc>
  29073. </method>
  29074. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.Metric"
  29075. abstract="false" native="false" synchronized="false"
  29076. static="false" final="false" visibility="public"
  29077. deprecated="not deprecated">
  29078. <param name="key" type="java.lang.String"/>
  29079. <doc>
  29080. <![CDATA[Get the metric value
  29081. @param key name of the metric
  29082. @return the metric value]]>
  29083. </doc>
  29084. </method>
  29085. <method name="metrics" return="java.util.Set"
  29086. abstract="false" native="false" synchronized="false"
  29087. static="false" final="false" visibility="public"
  29088. deprecated="not deprecated">
  29089. <doc>
  29090. <![CDATA[@return entry set of metrics]]>
  29091. </doc>
  29092. </method>
  29093. <method name="metricsEntrySet" return="java.util.Set"
  29094. abstract="false" native="false" synchronized="false"
  29095. static="false" final="false" visibility="public"
  29096. deprecated="not deprecated">
  29097. <doc>
  29098. <![CDATA[@return entry set of metrics]]>
  29099. </doc>
  29100. </method>
  29101. <doc>
  29102. <![CDATA[Cached record]]>
  29103. </doc>
  29104. </class>
  29105. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  29106. <!-- start class org.apache.hadoop.metrics2.util.SampleStat -->
  29107. <class name="SampleStat" extends="java.lang.Object"
  29108. abstract="false"
  29109. static="false" final="false" visibility="public"
  29110. deprecated="not deprecated">
  29111. <constructor name="SampleStat"
  29112. static="false" final="false" visibility="public"
  29113. deprecated="not deprecated">
  29114. <doc>
  29115. <![CDATA[Construct a new running sample stat]]>
  29116. </doc>
  29117. </constructor>
  29118. <method name="reset"
  29119. abstract="false" native="false" synchronized="false"
  29120. static="false" final="false" visibility="public"
  29121. deprecated="not deprecated">
  29122. </method>
  29123. <method name="copyTo"
  29124. abstract="false" native="false" synchronized="false"
  29125. static="false" final="false" visibility="public"
  29126. deprecated="not deprecated">
  29127. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat"/>
  29128. <doc>
  29129. <![CDATA[Copy the values to other (saves object creation and gc.)
  29130. @param other the destination to hold our values]]>
  29131. </doc>
  29132. </method>
  29133. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  29134. abstract="false" native="false" synchronized="false"
  29135. static="false" final="false" visibility="public"
  29136. deprecated="not deprecated">
  29137. <param name="x" type="double"/>
  29138. <doc>
  29139. <![CDATA[Add a sample the running stat.
  29140. @param x the sample number
  29141. @return self]]>
  29142. </doc>
  29143. </method>
  29144. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  29145. abstract="false" native="false" synchronized="false"
  29146. static="false" final="false" visibility="public"
  29147. deprecated="not deprecated">
  29148. <param name="nSamples" type="long"/>
  29149. <param name="x" type="double"/>
  29150. <doc>
  29151. <![CDATA[Add some sample and a partial sum to the running stat.
  29152. Note, min/max is not evaluated using this method.
  29153. @param nSamples number of samples
  29154. @param x the partial sum
  29155. @return self]]>
  29156. </doc>
  29157. </method>
  29158. <method name="numSamples" return="long"
  29159. abstract="false" native="false" synchronized="false"
  29160. static="false" final="false" visibility="public"
  29161. deprecated="not deprecated">
  29162. <doc>
  29163. <![CDATA[@return the total number of samples]]>
  29164. </doc>
  29165. </method>
  29166. <method name="mean" return="double"
  29167. abstract="false" native="false" synchronized="false"
  29168. static="false" final="false" visibility="public"
  29169. deprecated="not deprecated">
  29170. <doc>
  29171. <![CDATA[@return the arithmetic mean of the samples]]>
  29172. </doc>
  29173. </method>
  29174. <method name="variance" return="double"
  29175. abstract="false" native="false" synchronized="false"
  29176. static="false" final="false" visibility="public"
  29177. deprecated="not deprecated">
  29178. <doc>
  29179. <![CDATA[@return the variance of the samples]]>
  29180. </doc>
  29181. </method>
  29182. <method name="stddev" return="double"
  29183. abstract="false" native="false" synchronized="false"
  29184. static="false" final="false" visibility="public"
  29185. deprecated="not deprecated">
  29186. <doc>
  29187. <![CDATA[@return the standard deviation of the samples]]>
  29188. </doc>
  29189. </method>
  29190. <method name="min" return="double"
  29191. abstract="false" native="false" synchronized="false"
  29192. static="false" final="false" visibility="public"
  29193. deprecated="not deprecated">
  29194. <doc>
  29195. <![CDATA[@return the minimum value of the samples]]>
  29196. </doc>
  29197. </method>
  29198. <method name="max" return="double"
  29199. abstract="false" native="false" synchronized="false"
  29200. static="false" final="false" visibility="public"
  29201. deprecated="not deprecated">
  29202. <doc>
  29203. <![CDATA[@return the maximum value of the samples]]>
  29204. </doc>
  29205. </method>
  29206. <doc>
  29207. <![CDATA[Helper to compute running sample stats]]>
  29208. </doc>
  29209. </class>
  29210. <!-- end class org.apache.hadoop.metrics2.util.SampleStat -->
  29211. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  29212. <class name="SampleStat.MinMax" extends="java.lang.Object"
  29213. abstract="false"
  29214. static="true" final="false" visibility="public"
  29215. deprecated="not deprecated">
  29216. <constructor name="SampleStat.MinMax"
  29217. static="false" final="false" visibility="public"
  29218. deprecated="not deprecated">
  29219. </constructor>
  29220. <method name="add"
  29221. abstract="false" native="false" synchronized="false"
  29222. static="false" final="false" visibility="public"
  29223. deprecated="not deprecated">
  29224. <param name="value" type="double"/>
  29225. </method>
  29226. <method name="min" return="double"
  29227. abstract="false" native="false" synchronized="false"
  29228. static="false" final="false" visibility="public"
  29229. deprecated="not deprecated">
  29230. </method>
  29231. <method name="max" return="double"
  29232. abstract="false" native="false" synchronized="false"
  29233. static="false" final="false" visibility="public"
  29234. deprecated="not deprecated">
  29235. </method>
  29236. <method name="reset"
  29237. abstract="false" native="false" synchronized="false"
  29238. static="false" final="false" visibility="public"
  29239. deprecated="not deprecated">
  29240. </method>
  29241. <method name="reset"
  29242. abstract="false" native="false" synchronized="false"
  29243. static="false" final="false" visibility="public"
  29244. deprecated="not deprecated">
  29245. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  29246. </method>
  29247. <doc>
  29248. <![CDATA[Helper to keep running min/max]]>
  29249. </doc>
  29250. </class>
  29251. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  29252. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  29253. <class name="Servers" extends="java.lang.Object"
  29254. abstract="false"
  29255. static="false" final="false" visibility="public"
  29256. deprecated="not deprecated">
  29257. <method name="parse" return="java.util.List"
  29258. abstract="false" native="false" synchronized="false"
  29259. static="true" final="false" visibility="public"
  29260. deprecated="not deprecated">
  29261. <param name="specs" type="java.lang.String"/>
  29262. <param name="defaultPort" type="int"/>
  29263. <doc>
  29264. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  29265. of the form <i>hostname</i> or <i>hostname:port</i>. If
  29266. the specs string is null, defaults to localhost:defaultPort.
  29267. @param specs server specs (see description)
  29268. @param defaultPort the default port if not specified
  29269. @return a list of InetSocketAddress objects.]]>
  29270. </doc>
  29271. </method>
  29272. <doc>
  29273. <![CDATA[Helpers to handle server addresses]]>
  29274. </doc>
  29275. </class>
  29276. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  29277. <!-- start class org.apache.hadoop.metrics2.util.TryIterator -->
  29278. <class name="TryIterator" extends="java.lang.Object"
  29279. abstract="true"
  29280. static="false" final="false" visibility="public"
  29281. deprecated="not deprecated">
  29282. <implements name="java.util.Iterator"/>
  29283. <constructor name="TryIterator"
  29284. static="false" final="false" visibility="public"
  29285. deprecated="not deprecated">
  29286. </constructor>
  29287. <method name="tryNext" return="java.lang.Object"
  29288. abstract="true" native="false" synchronized="false"
  29289. static="false" final="false" visibility="protected"
  29290. deprecated="not deprecated">
  29291. <doc>
  29292. <![CDATA[Return the next element. Must call {@link #done()} when done, otherwise
  29293. infinite loop could occur. If this method throws an exception, any
  29294. further attempts to use the iterator would result in an
  29295. {@link IllegalStateException}.
  29296. @return the next element if there is one or return {@link #done()}]]>
  29297. </doc>
  29298. </method>
  29299. <method name="done" return="java.lang.Object"
  29300. abstract="false" native="false" synchronized="false"
  29301. static="false" final="true" visibility="protected"
  29302. deprecated="not deprecated">
  29303. <doc>
  29304. <![CDATA[Implementations of {@link #tryNext} <b>must</b> call this method
  29305. when there are no more elements left in the iteration.
  29306. @return null as a convenience to implement {@link #tryNext()}]]>
  29307. </doc>
  29308. </method>
  29309. <method name="hasNext" return="boolean"
  29310. abstract="false" native="false" synchronized="false"
  29311. static="false" final="true" visibility="public"
  29312. deprecated="not deprecated">
  29313. <doc>
  29314. <![CDATA[@return true if we have a next element or false otherwise.]]>
  29315. </doc>
  29316. </method>
  29317. <method name="next" return="java.lang.Object"
  29318. abstract="false" native="false" synchronized="false"
  29319. static="false" final="true" visibility="public"
  29320. deprecated="not deprecated">
  29321. <doc>
  29322. <![CDATA[@return the next element if we have one.]]>
  29323. </doc>
  29324. </method>
  29325. <method name="current" return="java.lang.Object"
  29326. abstract="false" native="false" synchronized="false"
  29327. static="false" final="true" visibility="public"
  29328. deprecated="not deprecated">
  29329. <doc>
  29330. <![CDATA[@return the current element without advancing the iterator]]>
  29331. </doc>
  29332. </method>
  29333. <method name="remove"
  29334. abstract="false" native="false" synchronized="false"
  29335. static="false" final="true" visibility="public"
  29336. deprecated="not deprecated">
  29337. <doc>
  29338. <![CDATA[Guaranteed to throw UnsupportedOperationException]]>
  29339. </doc>
  29340. </method>
  29341. <doc>
  29342. <![CDATA[A base class for unmodifiable iterators (throws on remove)
  29343. This class also makes writing filtering iterators easier, where the only
  29344. way to discover the end of data is by trying to read it. The same applies
  29345. to writing iterator wrappers around stream read calls.
  29346. One only needs to implement the tryNext() method and call done() when done.
  29347. @param <T> the type of the iterator]]>
  29348. </doc>
  29349. </class>
  29350. <!-- end class org.apache.hadoop.metrics2.util.TryIterator -->
  29351. </package>
  29352. <package name="org.apache.hadoop.net">
  29353. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  29354. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  29355. abstract="false"
  29356. static="false" final="false" visibility="public"
  29357. deprecated="not deprecated">
  29358. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  29359. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  29360. static="false" final="false" visibility="public"
  29361. deprecated="not deprecated">
  29362. </constructor>
  29363. <method name="resolve" return="java.util.List"
  29364. abstract="false" native="false" synchronized="false"
  29365. static="false" final="false" visibility="public"
  29366. deprecated="not deprecated">
  29367. <param name="names" type="java.util.List"/>
  29368. </method>
  29369. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  29370. transient="false" volatile="false"
  29371. static="false" final="false" visibility="protected"
  29372. deprecated="not deprecated">
  29373. </field>
  29374. <doc>
  29375. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  29376. raw DNSToSwitchMapping and stores the resolved network location in
  29377. a cache. The following calls to a resolved network location
  29378. will get its location from the cache.]]>
  29379. </doc>
  29380. </class>
  29381. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  29382. <!-- start class org.apache.hadoop.net.DNS -->
  29383. <class name="DNS" extends="java.lang.Object"
  29384. abstract="false"
  29385. static="false" final="false" visibility="public"
  29386. deprecated="not deprecated">
  29387. <constructor name="DNS"
  29388. static="false" final="false" visibility="public"
  29389. deprecated="not deprecated">
  29390. </constructor>
  29391. <method name="reverseDns" return="java.lang.String"
  29392. abstract="false" native="false" synchronized="false"
  29393. static="true" final="false" visibility="public"
  29394. deprecated="not deprecated">
  29395. <param name="hostIp" type="java.net.InetAddress"/>
  29396. <param name="ns" type="java.lang.String"/>
  29397. <exception name="NamingException" type="javax.naming.NamingException"/>
  29398. <doc>
  29399. <![CDATA[Returns the hostname associated with the specified IP address by the
  29400. provided nameserver.
  29401. @param hostIp
  29402. The address to reverse lookup
  29403. @param ns
  29404. The host name of a reachable DNS server
  29405. @return The host name associated with the provided IP
  29406. @throws NamingException
  29407. If a NamingException is encountered]]>
  29408. </doc>
  29409. </method>
  29410. <method name="getIPs" return="java.lang.String[]"
  29411. abstract="false" native="false" synchronized="false"
  29412. static="true" final="false" visibility="public"
  29413. deprecated="not deprecated">
  29414. <param name="strInterface" type="java.lang.String"/>
  29415. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29416. <doc>
  29417. <![CDATA[Like {@link DNS#getIPs(String, boolean)}, but returns all
  29418. IPs associated with the given interface and its subinterfaces.]]>
  29419. </doc>
  29420. </method>
  29421. <method name="getIPs" return="java.lang.String[]"
  29422. abstract="false" native="false" synchronized="false"
  29423. static="true" final="false" visibility="public"
  29424. deprecated="not deprecated">
  29425. <param name="strInterface" type="java.lang.String"/>
  29426. <param name="returnSubinterfaces" type="boolean"/>
  29427. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29428. <doc>
  29429. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  29430. textual form.
  29431. @param strInterface
  29432. The name of the network interface or subinterface to query
  29433. (eg eth0 or eth0:0) or the string "default"
  29434. @param returnSubinterfaces
  29435. Whether to return IPs associated with subinterfaces of
  29436. the given interface
  29437. @return A string vector of all the IPs associated with the provided
  29438. interface
  29439. @throws UnknownHostException
  29440. If an UnknownHostException is encountered in querying the
  29441. default interface or the given interface can not be found]]>
  29442. </doc>
  29443. </method>
  29444. <method name="getDefaultIP" return="java.lang.String"
  29445. abstract="false" native="false" synchronized="false"
  29446. static="true" final="false" visibility="public"
  29447. deprecated="not deprecated">
  29448. <param name="strInterface" type="java.lang.String"/>
  29449. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29450. <doc>
  29451. <![CDATA[Returns the first available IP address associated with the provided
  29452. network interface
  29453. @param strInterface
  29454. The name of the network interface or subinterface to query
  29455. (e.g. eth0 or eth0:0) or the string "default"
  29456. @return The IP address in text form
  29457. @throws UnknownHostException
  29458. If one is encountered in querying the default interface]]>
  29459. </doc>
  29460. </method>
  29461. <method name="getHosts" return="java.lang.String[]"
  29462. abstract="false" native="false" synchronized="false"
  29463. static="true" final="false" visibility="public"
  29464. deprecated="not deprecated">
  29465. <param name="strInterface" type="java.lang.String"/>
  29466. <param name="nameserver" type="java.lang.String"/>
  29467. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29468. <doc>
  29469. <![CDATA[Returns all the host names associated by the provided nameserver with the
  29470. address bound to the specified network interface
  29471. @param strInterface
  29472. The name of the network interface or subinterface to query
  29473. (e.g. eth0 or eth0:0) or the string "default"
  29474. @param nameserver
  29475. The DNS host name
  29476. @return A string vector of all host names associated with the IPs tied to
  29477. the specified interface
  29478. @throws UnknownHostException]]>
  29479. </doc>
  29480. </method>
  29481. <method name="getHosts" return="java.lang.String[]"
  29482. abstract="false" native="false" synchronized="false"
  29483. static="true" final="false" visibility="public"
  29484. deprecated="not deprecated">
  29485. <param name="strInterface" type="java.lang.String"/>
  29486. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29487. <doc>
  29488. <![CDATA[Returns all the host names associated by the default nameserver with the
  29489. address bound to the specified network interface
  29490. @param strInterface
  29491. The name of the network interface to query (e.g. eth0)
  29492. @return The list of host names associated with IPs bound to the network
  29493. interface
  29494. @throws UnknownHostException
  29495. If one is encountered while querying the deault interface]]>
  29496. </doc>
  29497. </method>
  29498. <method name="getDefaultHost" return="java.lang.String"
  29499. abstract="false" native="false" synchronized="false"
  29500. static="true" final="false" visibility="public"
  29501. deprecated="not deprecated">
  29502. <param name="strInterface" type="java.lang.String"/>
  29503. <param name="nameserver" type="java.lang.String"/>
  29504. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29505. <doc>
  29506. <![CDATA[Returns the default (first) host name associated by the provided
  29507. nameserver with the address bound to the specified network interface
  29508. @param strInterface
  29509. The name of the network interface to query (e.g. eth0)
  29510. @param nameserver
  29511. The DNS host name
  29512. @return The default host names associated with IPs bound to the network
  29513. interface
  29514. @throws UnknownHostException
  29515. If one is encountered while querying the deault interface]]>
  29516. </doc>
  29517. </method>
  29518. <method name="getDefaultHost" return="java.lang.String"
  29519. abstract="false" native="false" synchronized="false"
  29520. static="true" final="false" visibility="public"
  29521. deprecated="not deprecated">
  29522. <param name="strInterface" type="java.lang.String"/>
  29523. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29524. <doc>
  29525. <![CDATA[Returns the default (first) host name associated by the default
  29526. nameserver with the address bound to the specified network interface
  29527. @param strInterface
  29528. The name of the network interface to query (e.g. eth0)
  29529. @return The default host name associated with IPs bound to the network
  29530. interface
  29531. @throws UnknownHostException
  29532. If one is encountered while querying the deault interface]]>
  29533. </doc>
  29534. </method>
  29535. <field name="LOG" type="org.apache.commons.logging.Log"
  29536. transient="false" volatile="false"
  29537. static="true" final="true" visibility="public"
  29538. deprecated="not deprecated">
  29539. </field>
  29540. <doc>
  29541. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  29542. the querying of specific network interfaces or nameservers.]]>
  29543. </doc>
  29544. </class>
  29545. <!-- end class org.apache.hadoop.net.DNS -->
  29546. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  29547. <interface name="DNSToSwitchMapping" abstract="true"
  29548. static="false" final="false" visibility="public"
  29549. deprecated="not deprecated">
  29550. <method name="resolve" return="java.util.List"
  29551. abstract="false" native="false" synchronized="false"
  29552. static="false" final="false" visibility="public"
  29553. deprecated="not deprecated">
  29554. <param name="names" type="java.util.List"/>
  29555. <doc>
  29556. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  29557. switch information (network paths). One-to-one correspondence must be
  29558. maintained between the elements in the lists.
  29559. Consider an element in the argument list - x.y.com. The switch information
  29560. that is returned must be a network path of the form /foo/rack,
  29561. where / is the root, and 'foo' is the switch where 'rack' is connected.
  29562. Note the hostname/ip-address is not part of the returned path.
  29563. The network topology of the cluster would determine the number of
  29564. components in the network path.
  29565. @param names
  29566. @return list of resolved network paths]]>
  29567. </doc>
  29568. </method>
  29569. <doc>
  29570. <![CDATA[An interface that should be implemented to allow pluggable
  29571. DNS-name/IP-address to RackID resolvers.]]>
  29572. </doc>
  29573. </interface>
  29574. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  29575. <!-- start class org.apache.hadoop.net.NetUtils -->
  29576. <class name="NetUtils" extends="java.lang.Object"
  29577. abstract="false"
  29578. static="false" final="false" visibility="public"
  29579. deprecated="not deprecated">
  29580. <constructor name="NetUtils"
  29581. static="false" final="false" visibility="public"
  29582. deprecated="not deprecated">
  29583. </constructor>
  29584. <method name="getSocketFactory" return="javax.net.SocketFactory"
  29585. abstract="false" native="false" synchronized="false"
  29586. static="true" final="false" visibility="public"
  29587. deprecated="not deprecated">
  29588. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29589. <param name="clazz" type="java.lang.Class"/>
  29590. <doc>
  29591. <![CDATA[Get the socket factory for the given class according to its
  29592. configuration parameter
  29593. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  29594. such parameter exists then fall back on the default socket factory as
  29595. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  29596. this default socket factory is not configured, then fall back on the JVM
  29597. default socket factory.
  29598. @param conf the configuration
  29599. @param clazz the class (usually a {@link VersionedProtocol})
  29600. @return a socket factory]]>
  29601. </doc>
  29602. </method>
  29603. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  29604. abstract="false" native="false" synchronized="false"
  29605. static="true" final="false" visibility="public"
  29606. deprecated="not deprecated">
  29607. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29608. <doc>
  29609. <![CDATA[Get the default socket factory as specified by the configuration
  29610. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  29611. @param conf the configuration
  29612. @return the default socket factory as specified in the configuration or
  29613. the JVM default socket factory if the configuration does not
  29614. contain a default socket factory property.]]>
  29615. </doc>
  29616. </method>
  29617. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  29618. abstract="false" native="false" synchronized="false"
  29619. static="true" final="false" visibility="public"
  29620. deprecated="not deprecated">
  29621. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29622. <param name="propValue" type="java.lang.String"/>
  29623. <doc>
  29624. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  29625. given proxy URI corresponds to an absence of configuration parameter,
  29626. returns null. If the URI is malformed raises an exception.
  29627. @param propValue the property which is the class name of the
  29628. SocketFactory to instantiate; assumed non null and non empty.
  29629. @return a socket factory as defined in the property value.]]>
  29630. </doc>
  29631. </method>
  29632. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  29633. abstract="false" native="false" synchronized="false"
  29634. static="true" final="false" visibility="public"
  29635. deprecated="not deprecated">
  29636. <param name="target" type="java.lang.String"/>
  29637. <doc>
  29638. <![CDATA[Util method to build socket addr from either:
  29639. <host>:<post>
  29640. <fs>://<host>:<port>/<path>]]>
  29641. </doc>
  29642. </method>
  29643. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  29644. abstract="false" native="false" synchronized="false"
  29645. static="true" final="false" visibility="public"
  29646. deprecated="not deprecated">
  29647. <param name="target" type="java.lang.String"/>
  29648. <param name="defaultPort" type="int"/>
  29649. <doc>
  29650. <![CDATA[Util method to build socket addr from either:
  29651. <host>
  29652. <host>:<post>
  29653. <fs>://<host>:<port>/<path>]]>
  29654. </doc>
  29655. </method>
  29656. <method name="makeSocketAddr" return="java.net.InetSocketAddress"
  29657. abstract="false" native="false" synchronized="false"
  29658. static="true" final="false" visibility="public"
  29659. deprecated="not deprecated">
  29660. <param name="host" type="java.lang.String"/>
  29661. <param name="port" type="int"/>
  29662. <doc>
  29663. <![CDATA[Create a socket address with the given host and port. The hostname
  29664. might be replaced with another host that was set via
  29665. {@link #addStaticResolution(String, String)}. The value of
  29666. hadoop.security.token.service.use_ip will determine whether the
  29667. standard java host resolver is used, or if the fully qualified resolver
  29668. is used.
  29669. @param host the hostname or IP use to instantiate the object
  29670. @param port the port number
  29671. @return InetSocketAddress]]>
  29672. </doc>
  29673. </method>
  29674. <method name="getCanonicalUri" return="java.net.URI"
  29675. abstract="false" native="false" synchronized="false"
  29676. static="true" final="false" visibility="public"
  29677. deprecated="not deprecated">
  29678. <param name="uri" type="java.net.URI"/>
  29679. <param name="defaultPort" type="int"/>
  29680. <doc>
  29681. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  29682. @param uri to resolve
  29683. @param defaultPort if none is given
  29684. @return URI
  29685. @throws UnknownHostException]]>
  29686. </doc>
  29687. </method>
  29688. <method name="getServerAddress" return="java.lang.String"
  29689. abstract="false" native="false" synchronized="false"
  29690. static="true" final="false" visibility="public"
  29691. deprecated="not deprecated">
  29692. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29693. <param name="oldBindAddressName" type="java.lang.String"/>
  29694. <param name="oldPortName" type="java.lang.String"/>
  29695. <param name="newBindAddressName" type="java.lang.String"/>
  29696. <doc>
  29697. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  29698. to a single colon separated one.
  29699. @param conf the configuration to check
  29700. @param oldBindAddressName the old address attribute name
  29701. @param oldPortName the old port attribute name
  29702. @param newBindAddressName the new combined name
  29703. @return the complete address from the configuration]]>
  29704. </doc>
  29705. </method>
  29706. <method name="addStaticResolution"
  29707. abstract="false" native="false" synchronized="false"
  29708. static="true" final="false" visibility="public"
  29709. deprecated="not deprecated">
  29710. <param name="host" type="java.lang.String"/>
  29711. <param name="resolvedName" type="java.lang.String"/>
  29712. <doc>
  29713. <![CDATA[Adds a static resolution for host. This can be used for setting up
  29714. hostnames with names that are fake to point to a well known host. For e.g.
  29715. in some testcases we require to have daemons with different hostnames
  29716. running on the same machine. In order to create connections to these
  29717. daemons, one can set up mappings from those hostnames to "localhost".
  29718. {@link NetUtils#getStaticResolution(String)} can be used to query for
  29719. the actual hostname.
  29720. @param host
  29721. @param resolvedName]]>
  29722. </doc>
  29723. </method>
  29724. <method name="getStaticResolution" return="java.lang.String"
  29725. abstract="false" native="false" synchronized="false"
  29726. static="true" final="false" visibility="public"
  29727. deprecated="not deprecated">
  29728. <param name="host" type="java.lang.String"/>
  29729. <doc>
  29730. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  29731. have been set earlier using
  29732. {@link NetUtils#addStaticResolution(String, String)}
  29733. @param host
  29734. @return the resolution]]>
  29735. </doc>
  29736. </method>
  29737. <method name="getAllStaticResolutions" return="java.util.List"
  29738. abstract="false" native="false" synchronized="false"
  29739. static="true" final="false" visibility="public"
  29740. deprecated="not deprecated">
  29741. <doc>
  29742. <![CDATA[This is used to get all the resolutions that were added using
  29743. {@link NetUtils#addStaticResolution(String, String)}. The return
  29744. value is a List each element of which contains an array of String
  29745. of the form String[0]=hostname, String[1]=resolved-hostname
  29746. @return the list of resolutions]]>
  29747. </doc>
  29748. </method>
  29749. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  29750. abstract="false" native="false" synchronized="false"
  29751. static="true" final="false" visibility="public"
  29752. deprecated="not deprecated">
  29753. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  29754. <doc>
  29755. <![CDATA[Returns InetSocketAddress that a client can use to
  29756. connect to the server. Server.getListenerAddress() is not correct when
  29757. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  29758. the getListenerAddress() returns "0.0.0.0:port".
  29759. @param server
  29760. @return socket address that a client can use to connect to the server.]]>
  29761. </doc>
  29762. </method>
  29763. <method name="getInputStream" return="java.io.InputStream"
  29764. abstract="false" native="false" synchronized="false"
  29765. static="true" final="false" visibility="public"
  29766. deprecated="not deprecated">
  29767. <param name="socket" type="java.net.Socket"/>
  29768. <exception name="IOException" type="java.io.IOException"/>
  29769. <doc>
  29770. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  29771. From documentation for {@link #getInputStream(Socket, long)}:<br>
  29772. Returns InputStream for the socket. If the socket has an associated
  29773. SocketChannel then it returns a
  29774. {@link SocketInputStream} with the given timeout. If the socket does not
  29775. have a channel, {@link Socket#getInputStream()} is returned. In the later
  29776. case, the timeout argument is ignored and the timeout set with
  29777. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  29778. Any socket created using socket factories returned by {@link NetUtils},
  29779. must use this interface instead of {@link Socket#getInputStream()}.
  29780. @see #getInputStream(Socket, long)
  29781. @param socket
  29782. @return InputStream for reading from the socket.
  29783. @throws IOException]]>
  29784. </doc>
  29785. </method>
  29786. <method name="getInputStream" return="java.io.InputStream"
  29787. abstract="false" native="false" synchronized="false"
  29788. static="true" final="false" visibility="public"
  29789. deprecated="not deprecated">
  29790. <param name="socket" type="java.net.Socket"/>
  29791. <param name="timeout" type="long"/>
  29792. <exception name="IOException" type="java.io.IOException"/>
  29793. <doc>
  29794. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  29795. SocketChannel then it returns a
  29796. {@link SocketInputStream} with the given timeout. If the socket does not
  29797. have a channel, {@link Socket#getInputStream()} is returned. In the later
  29798. case, the timeout argument is ignored and the timeout set with
  29799. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  29800. Any socket created using socket factories returned by {@link NetUtils},
  29801. must use this interface instead of {@link Socket#getInputStream()}.
  29802. @see Socket#getChannel()
  29803. @param socket
  29804. @param timeout timeout in milliseconds. This may not always apply. zero
  29805. for waiting as long as necessary.
  29806. @return InputStream for reading from the socket.
  29807. @throws IOException]]>
  29808. </doc>
  29809. </method>
  29810. <method name="getOutputStream" return="java.io.OutputStream"
  29811. abstract="false" native="false" synchronized="false"
  29812. static="true" final="false" visibility="public"
  29813. deprecated="not deprecated">
  29814. <param name="socket" type="java.net.Socket"/>
  29815. <exception name="IOException" type="java.io.IOException"/>
  29816. <doc>
  29817. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  29818. wait until data is available.<br><br>
  29819. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  29820. Returns OutputStream for the socket. If the socket has an associated
  29821. SocketChannel then it returns a
  29822. {@link SocketOutputStream} with the given timeout. If the socket does not
  29823. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  29824. case, the timeout argument is ignored and the write will wait until
  29825. data is available.<br><br>
  29826. Any socket created using socket factories returned by {@link NetUtils},
  29827. must use this interface instead of {@link Socket#getOutputStream()}.
  29828. @see #getOutputStream(Socket, long)
  29829. @param socket
  29830. @return OutputStream for writing to the socket.
  29831. @throws IOException]]>
  29832. </doc>
  29833. </method>
  29834. <method name="getOutputStream" return="java.io.OutputStream"
  29835. abstract="false" native="false" synchronized="false"
  29836. static="true" final="false" visibility="public"
  29837. deprecated="not deprecated">
  29838. <param name="socket" type="java.net.Socket"/>
  29839. <param name="timeout" type="long"/>
  29840. <exception name="IOException" type="java.io.IOException"/>
  29841. <doc>
  29842. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  29843. SocketChannel then it returns a
  29844. {@link SocketOutputStream} with the given timeout. If the socket does not
  29845. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  29846. case, the timeout argument is ignored and the write will wait until
  29847. data is available.<br><br>
  29848. Any socket created using socket factories returned by {@link NetUtils},
  29849. must use this interface instead of {@link Socket#getOutputStream()}.
  29850. @see Socket#getChannel()
  29851. @param socket
  29852. @param timeout timeout in milliseconds. This may not always apply. zero
  29853. for waiting as long as necessary.
  29854. @return OutputStream for writing to the socket.
  29855. @throws IOException]]>
  29856. </doc>
  29857. </method>
  29858. <method name="connect"
  29859. abstract="false" native="false" synchronized="false"
  29860. static="true" final="false" visibility="public"
  29861. deprecated="not deprecated">
  29862. <param name="socket" type="java.net.Socket"/>
  29863. <param name="address" type="java.net.SocketAddress"/>
  29864. <param name="timeout" type="int"/>
  29865. <exception name="IOException" type="java.io.IOException"/>
  29866. <doc>
  29867. <![CDATA[This is a drop-in replacement for
  29868. {@link Socket#connect(SocketAddress, int)}.
  29869. In the case of normal sockets that don't have associated channels, this
  29870. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  29871. <code>socket.getChannel()</code> returns a non-null channel,
  29872. connect is implemented using Hadoop's selectors. This is done mainly
  29873. to avoid Sun's connect implementation from creating thread-local
  29874. selectors, since Hadoop does not have control on when these are closed
  29875. and could end up taking all the available file descriptors.
  29876. @see java.net.Socket#connect(java.net.SocketAddress, int)
  29877. @param socket
  29878. @param address the remote address
  29879. @param timeout timeout in milliseconds]]>
  29880. </doc>
  29881. </method>
  29882. <method name="connect"
  29883. abstract="false" native="false" synchronized="false"
  29884. static="true" final="false" visibility="public"
  29885. deprecated="not deprecated">
  29886. <param name="socket" type="java.net.Socket"/>
  29887. <param name="endpoint" type="java.net.SocketAddress"/>
  29888. <param name="localAddr" type="java.net.SocketAddress"/>
  29889. <param name="timeout" type="int"/>
  29890. <exception name="IOException" type="java.io.IOException"/>
  29891. <doc>
  29892. <![CDATA[Like {@link NetUtils#connect(Socket, SocketAddress, int)} but
  29893. also takes a local address and port to bind the socket to.
  29894. @param socket
  29895. @param endpoint the remote address
  29896. @param localAddr the local address to bind the socket to
  29897. @param timeout timeout in milliseconds]]>
  29898. </doc>
  29899. </method>
  29900. <method name="normalizeHostName" return="java.lang.String"
  29901. abstract="false" native="false" synchronized="false"
  29902. static="true" final="false" visibility="public"
  29903. deprecated="not deprecated">
  29904. <param name="name" type="java.lang.String"/>
  29905. <doc>
  29906. <![CDATA[Given a string representation of a host, return its ip address
  29907. in textual presentation.
  29908. @param name a string representation of a host:
  29909. either a textual representation its IP address or its host name
  29910. @return its IP address in the string format]]>
  29911. </doc>
  29912. </method>
  29913. <method name="normalizeHostNames" return="java.util.List"
  29914. abstract="false" native="false" synchronized="false"
  29915. static="true" final="false" visibility="public"
  29916. deprecated="not deprecated">
  29917. <param name="names" type="java.util.Collection"/>
  29918. <doc>
  29919. <![CDATA[Given a collection of string representation of hosts, return a list of
  29920. corresponding IP addresses in the textual representation.
  29921. @param names a collection of string representations of hosts
  29922. @return a list of corresponding IP addresses in the string format
  29923. @see #normalizeHostName(String)]]>
  29924. </doc>
  29925. </method>
  29926. <method name="verifyHostnames"
  29927. abstract="false" native="false" synchronized="false"
  29928. static="true" final="false" visibility="public"
  29929. deprecated="not deprecated">
  29930. <param name="names" type="java.lang.String[]"/>
  29931. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29932. <doc>
  29933. <![CDATA[Performs a sanity check on the list of hostnames/IPs to verify they at least
  29934. appear to be valid.
  29935. @param names - List of hostnames/IPs
  29936. @throws UnknownHostException]]>
  29937. </doc>
  29938. </method>
  29939. <method name="getLocalInetAddress" return="java.net.InetAddress"
  29940. abstract="false" native="false" synchronized="false"
  29941. static="true" final="false" visibility="public"
  29942. deprecated="not deprecated">
  29943. <param name="host" type="java.lang.String"/>
  29944. <exception name="SocketException" type="java.net.SocketException"/>
  29945. <doc>
  29946. <![CDATA[Checks if {@code host} is a local host name and return {@link InetAddress}
  29947. corresponding to that address.
  29948. @param host the specified host
  29949. @return a valid local {@link InetAddress} or null
  29950. @throws SocketException if an I/O error occurs]]>
  29951. </doc>
  29952. </method>
  29953. <method name="isValidSubnet" return="boolean"
  29954. abstract="false" native="false" synchronized="false"
  29955. static="true" final="false" visibility="public"
  29956. deprecated="not deprecated">
  29957. <param name="subnet" type="java.lang.String"/>
  29958. <doc>
  29959. <![CDATA[@return true if the given string is a subnet specified
  29960. using CIDR notation, false otherwise]]>
  29961. </doc>
  29962. </method>
  29963. <method name="getIPs" return="java.util.List"
  29964. abstract="false" native="false" synchronized="false"
  29965. static="true" final="false" visibility="public"
  29966. deprecated="not deprecated">
  29967. <param name="subnet" type="java.lang.String"/>
  29968. <param name="returnSubinterfaces" type="boolean"/>
  29969. <doc>
  29970. <![CDATA[Return an InetAddress for each interface that matches the
  29971. given subnet specified using CIDR notation.
  29972. @param subnet subnet specified using CIDR notation
  29973. @param returnSubinterfaces
  29974. whether to return IPs associated with subinterfaces
  29975. @throws IllegalArgumentException if subnet is invalid]]>
  29976. </doc>
  29977. </method>
  29978. </class>
  29979. <!-- end class org.apache.hadoop.net.NetUtils -->
  29980. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  29981. <class name="NetworkTopology" extends="java.lang.Object"
  29982. abstract="false"
  29983. static="false" final="false" visibility="public"
  29984. deprecated="not deprecated">
  29985. <constructor name="NetworkTopology"
  29986. static="false" final="false" visibility="public"
  29987. deprecated="not deprecated">
  29988. </constructor>
  29989. <method name="add"
  29990. abstract="false" native="false" synchronized="false"
  29991. static="false" final="false" visibility="public"
  29992. deprecated="not deprecated">
  29993. <param name="node" type="org.apache.hadoop.net.Node"/>
  29994. <doc>
  29995. <![CDATA[Add a leaf node
  29996. Update node counter & rack counter if neccessary
  29997. @param node
  29998. node to be added
  29999. @exception IllegalArgumentException if add a node to a leave
  30000. or node to be added is not a leaf]]>
  30001. </doc>
  30002. </method>
  30003. <method name="remove"
  30004. abstract="false" native="false" synchronized="false"
  30005. static="false" final="false" visibility="public"
  30006. deprecated="not deprecated">
  30007. <param name="node" type="org.apache.hadoop.net.Node"/>
  30008. <doc>
  30009. <![CDATA[Remove a node
  30010. Update node counter & rack counter if neccessary
  30011. @param node
  30012. node to be removed]]>
  30013. </doc>
  30014. </method>
  30015. <method name="contains" return="boolean"
  30016. abstract="false" native="false" synchronized="false"
  30017. static="false" final="false" visibility="public"
  30018. deprecated="not deprecated">
  30019. <param name="node" type="org.apache.hadoop.net.Node"/>
  30020. <doc>
  30021. <![CDATA[Check if the tree contains node <i>node</i>
  30022. @param node
  30023. a node
  30024. @return true if <i>node</i> is already in the tree; false otherwise]]>
  30025. </doc>
  30026. </method>
  30027. <method name="getNode" return="org.apache.hadoop.net.Node"
  30028. abstract="false" native="false" synchronized="false"
  30029. static="false" final="false" visibility="public"
  30030. deprecated="not deprecated">
  30031. <param name="loc" type="java.lang.String"/>
  30032. <doc>
  30033. <![CDATA[Given a string representation of a node, return its reference
  30034. @param loc
  30035. a path-like string representation of a node
  30036. @return a reference to the node; null if the node is not in the tree]]>
  30037. </doc>
  30038. </method>
  30039. <method name="getNumOfRacks" return="int"
  30040. abstract="false" native="false" synchronized="false"
  30041. static="false" final="false" visibility="public"
  30042. deprecated="not deprecated">
  30043. <doc>
  30044. <![CDATA[Return the total number of racks]]>
  30045. </doc>
  30046. </method>
  30047. <method name="getNumOfLeaves" return="int"
  30048. abstract="false" native="false" synchronized="false"
  30049. static="false" final="false" visibility="public"
  30050. deprecated="not deprecated">
  30051. <doc>
  30052. <![CDATA[Return the total number of nodes]]>
  30053. </doc>
  30054. </method>
  30055. <method name="getDistance" return="int"
  30056. abstract="false" native="false" synchronized="false"
  30057. static="false" final="false" visibility="public"
  30058. deprecated="not deprecated">
  30059. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30060. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30061. <doc>
  30062. <![CDATA[Return the distance between two nodes
  30063. It is assumed that the distance from one node to its parent is 1
  30064. The distance between two nodes is calculated by summing up their distances
  30065. to their closest common ancestor.
  30066. @param node1 one node
  30067. @param node2 another node
  30068. @return the distance between node1 and node2
  30069. node1 or node2 do not belong to the cluster]]>
  30070. </doc>
  30071. </method>
  30072. <method name="isOnSameRack" return="boolean"
  30073. abstract="false" native="false" synchronized="false"
  30074. static="false" final="false" visibility="public"
  30075. deprecated="not deprecated">
  30076. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30077. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30078. <doc>
  30079. <![CDATA[Check if two nodes are on the same rack
  30080. @param node1 one node
  30081. @param node2 another node
  30082. @return true if node1 and node2 are pm the same rack; false otherwise
  30083. @exception IllegalArgumentException when either node1 or node2 is null, or
  30084. node1 or node2 do not belong to the cluster]]>
  30085. </doc>
  30086. </method>
  30087. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  30088. abstract="false" native="false" synchronized="false"
  30089. static="false" final="false" visibility="public"
  30090. deprecated="not deprecated">
  30091. <param name="scope" type="java.lang.String"/>
  30092. <doc>
  30093. <![CDATA[randomly choose one node from <i>scope</i>
  30094. if scope starts with ~, choose one from the all nodes except for the
  30095. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  30096. @param scope range of nodes from which a node will be choosen
  30097. @return the choosen node]]>
  30098. </doc>
  30099. </method>
  30100. <method name="countNumOfAvailableNodes" return="int"
  30101. abstract="false" native="false" synchronized="false"
  30102. static="false" final="false" visibility="public"
  30103. deprecated="not deprecated">
  30104. <param name="scope" type="java.lang.String"/>
  30105. <param name="excludedNodes" type="java.util.List"/>
  30106. <doc>
  30107. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  30108. if scope starts with ~, return the number of nodes that are not
  30109. in <i>scope</i> and <i>excludedNodes</i>;
  30110. @param scope a path string that may start with ~
  30111. @param excludedNodes a list of nodes
  30112. @return number of available nodes]]>
  30113. </doc>
  30114. </method>
  30115. <method name="toString" return="java.lang.String"
  30116. abstract="false" native="false" synchronized="false"
  30117. static="false" final="false" visibility="public"
  30118. deprecated="not deprecated">
  30119. <doc>
  30120. <![CDATA[convert a network tree to a string]]>
  30121. </doc>
  30122. </method>
  30123. <method name="pseudoSortByDistance"
  30124. abstract="false" native="false" synchronized="false"
  30125. static="false" final="false" visibility="public"
  30126. deprecated="not deprecated">
  30127. <param name="reader" type="org.apache.hadoop.net.Node"/>
  30128. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  30129. <doc>
  30130. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  30131. It linearly scans the array, if a local node is found, swap it with
  30132. the first element of the array.
  30133. If a local rack node is found, swap it with the first element following
  30134. the local node.
  30135. If neither local node or local rack node is found, put a random replica
  30136. location at postion 0.
  30137. It leaves the rest nodes untouched.]]>
  30138. </doc>
  30139. </method>
  30140. <field name="DEFAULT_RACK" type="java.lang.String"
  30141. transient="false" volatile="false"
  30142. static="true" final="true" visibility="public"
  30143. deprecated="not deprecated">
  30144. </field>
  30145. <field name="DEFAULT_HOST_LEVEL" type="int"
  30146. transient="false" volatile="false"
  30147. static="true" final="true" visibility="public"
  30148. deprecated="not deprecated">
  30149. </field>
  30150. <field name="LOG" type="org.apache.commons.logging.Log"
  30151. transient="false" volatile="false"
  30152. static="true" final="true" visibility="public"
  30153. deprecated="not deprecated">
  30154. </field>
  30155. <doc>
  30156. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  30157. network topology.
  30158. For example, a cluster may be consists of many data centers filled
  30159. with racks of computers.
  30160. In a network topology, leaves represent data nodes (computers) and inner
  30161. nodes represent switches/routers that manage traffic in/out of data centers
  30162. or racks.]]>
  30163. </doc>
  30164. </class>
  30165. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  30166. <!-- start class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  30167. <class name="NetworkTopology.InvalidTopologyException" extends="java.lang.RuntimeException"
  30168. abstract="false"
  30169. static="true" final="false" visibility="public"
  30170. deprecated="not deprecated">
  30171. <constructor name="NetworkTopology.InvalidTopologyException" type="java.lang.String"
  30172. static="false" final="false" visibility="public"
  30173. deprecated="not deprecated">
  30174. </constructor>
  30175. </class>
  30176. <!-- end class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  30177. <!-- start interface org.apache.hadoop.net.Node -->
  30178. <interface name="Node" abstract="true"
  30179. static="false" final="false" visibility="public"
  30180. deprecated="not deprecated">
  30181. <method name="getNetworkLocation" return="java.lang.String"
  30182. abstract="false" native="false" synchronized="false"
  30183. static="false" final="false" visibility="public"
  30184. deprecated="not deprecated">
  30185. <doc>
  30186. <![CDATA[Return the string representation of this node's network location]]>
  30187. </doc>
  30188. </method>
  30189. <method name="setNetworkLocation"
  30190. abstract="false" native="false" synchronized="false"
  30191. static="false" final="false" visibility="public"
  30192. deprecated="not deprecated">
  30193. <param name="location" type="java.lang.String"/>
  30194. <doc>
  30195. <![CDATA[Set the node's network location]]>
  30196. </doc>
  30197. </method>
  30198. <method name="getName" return="java.lang.String"
  30199. abstract="false" native="false" synchronized="false"
  30200. static="false" final="false" visibility="public"
  30201. deprecated="not deprecated">
  30202. <doc>
  30203. <![CDATA[Return this node's name]]>
  30204. </doc>
  30205. </method>
  30206. <method name="getParent" return="org.apache.hadoop.net.Node"
  30207. abstract="false" native="false" synchronized="false"
  30208. static="false" final="false" visibility="public"
  30209. deprecated="not deprecated">
  30210. <doc>
  30211. <![CDATA[Return this node's parent]]>
  30212. </doc>
  30213. </method>
  30214. <method name="setParent"
  30215. abstract="false" native="false" synchronized="false"
  30216. static="false" final="false" visibility="public"
  30217. deprecated="not deprecated">
  30218. <param name="parent" type="org.apache.hadoop.net.Node"/>
  30219. <doc>
  30220. <![CDATA[Set this node's parent]]>
  30221. </doc>
  30222. </method>
  30223. <method name="getLevel" return="int"
  30224. abstract="false" native="false" synchronized="false"
  30225. static="false" final="false" visibility="public"
  30226. deprecated="not deprecated">
  30227. <doc>
  30228. <![CDATA[Return this node's level in the tree.
  30229. E.g. the root of a tree returns 0 and its children return 1]]>
  30230. </doc>
  30231. </method>
  30232. <method name="setLevel"
  30233. abstract="false" native="false" synchronized="false"
  30234. static="false" final="false" visibility="public"
  30235. deprecated="not deprecated">
  30236. <param name="i" type="int"/>
  30237. <doc>
  30238. <![CDATA[Set this node's level in the tree.]]>
  30239. </doc>
  30240. </method>
  30241. <doc>
  30242. <![CDATA[The interface defines a node in a network topology.
  30243. A node may be a leave representing a data node or an inner
  30244. node representing a datacenter or rack.
  30245. Each data has a name and its location in the network is
  30246. decided by a string with syntax similar to a file name.
  30247. For example, a data node's name is hostname:port# and if it's located at
  30248. rack "orange" in datacenter "dog", the string representation of its
  30249. network location is /dog/orange]]>
  30250. </doc>
  30251. </interface>
  30252. <!-- end interface org.apache.hadoop.net.Node -->
  30253. <!-- start class org.apache.hadoop.net.NodeBase -->
  30254. <class name="NodeBase" extends="java.lang.Object"
  30255. abstract="false"
  30256. static="false" final="false" visibility="public"
  30257. deprecated="not deprecated">
  30258. <implements name="org.apache.hadoop.net.Node"/>
  30259. <constructor name="NodeBase"
  30260. static="false" final="false" visibility="public"
  30261. deprecated="not deprecated">
  30262. <doc>
  30263. <![CDATA[Default constructor]]>
  30264. </doc>
  30265. </constructor>
  30266. <constructor name="NodeBase" type="java.lang.String"
  30267. static="false" final="false" visibility="public"
  30268. deprecated="not deprecated">
  30269. <doc>
  30270. <![CDATA[Construct a node from its path
  30271. @param path
  30272. a concatenation of this node's location, the path seperator, and its name]]>
  30273. </doc>
  30274. </constructor>
  30275. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  30276. static="false" final="false" visibility="public"
  30277. deprecated="not deprecated">
  30278. <doc>
  30279. <![CDATA[Construct a node from its name and its location
  30280. @param name this node's name
  30281. @param location this node's location]]>
  30282. </doc>
  30283. </constructor>
  30284. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  30285. static="false" final="false" visibility="public"
  30286. deprecated="not deprecated">
  30287. <doc>
  30288. <![CDATA[Construct a node from its name and its location
  30289. @param name this node's name
  30290. @param location this node's location
  30291. @param parent this node's parent node
  30292. @param level this node's level in the tree]]>
  30293. </doc>
  30294. </constructor>
  30295. <method name="getName" return="java.lang.String"
  30296. abstract="false" native="false" synchronized="false"
  30297. static="false" final="false" visibility="public"
  30298. deprecated="not deprecated">
  30299. <doc>
  30300. <![CDATA[Return this node's name]]>
  30301. </doc>
  30302. </method>
  30303. <method name="getNetworkLocation" return="java.lang.String"
  30304. abstract="false" native="false" synchronized="false"
  30305. static="false" final="false" visibility="public"
  30306. deprecated="not deprecated">
  30307. <doc>
  30308. <![CDATA[Return this node's network location]]>
  30309. </doc>
  30310. </method>
  30311. <method name="setNetworkLocation"
  30312. abstract="false" native="false" synchronized="false"
  30313. static="false" final="false" visibility="public"
  30314. deprecated="not deprecated">
  30315. <param name="location" type="java.lang.String"/>
  30316. <doc>
  30317. <![CDATA[Set this node's network location]]>
  30318. </doc>
  30319. </method>
  30320. <method name="getPath" return="java.lang.String"
  30321. abstract="false" native="false" synchronized="false"
  30322. static="true" final="false" visibility="public"
  30323. deprecated="not deprecated">
  30324. <param name="node" type="org.apache.hadoop.net.Node"/>
  30325. <doc>
  30326. <![CDATA[Return this node's path]]>
  30327. </doc>
  30328. </method>
  30329. <method name="toString" return="java.lang.String"
  30330. abstract="false" native="false" synchronized="false"
  30331. static="false" final="false" visibility="public"
  30332. deprecated="not deprecated">
  30333. <doc>
  30334. <![CDATA[Return this node's string representation]]>
  30335. </doc>
  30336. </method>
  30337. <method name="normalize" return="java.lang.String"
  30338. abstract="false" native="false" synchronized="false"
  30339. static="true" final="false" visibility="public"
  30340. deprecated="not deprecated">
  30341. <param name="path" type="java.lang.String"/>
  30342. <doc>
  30343. <![CDATA[Normalize a path]]>
  30344. </doc>
  30345. </method>
  30346. <method name="getParent" return="org.apache.hadoop.net.Node"
  30347. abstract="false" native="false" synchronized="false"
  30348. static="false" final="false" visibility="public"
  30349. deprecated="not deprecated">
  30350. <doc>
  30351. <![CDATA[Return this node's parent]]>
  30352. </doc>
  30353. </method>
  30354. <method name="setParent"
  30355. abstract="false" native="false" synchronized="false"
  30356. static="false" final="false" visibility="public"
  30357. deprecated="not deprecated">
  30358. <param name="parent" type="org.apache.hadoop.net.Node"/>
  30359. <doc>
  30360. <![CDATA[Set this node's parent]]>
  30361. </doc>
  30362. </method>
  30363. <method name="getLevel" return="int"
  30364. abstract="false" native="false" synchronized="false"
  30365. static="false" final="false" visibility="public"
  30366. deprecated="not deprecated">
  30367. <doc>
  30368. <![CDATA[Return this node's level in the tree.
  30369. E.g. the root of a tree returns 0 and its children return 1]]>
  30370. </doc>
  30371. </method>
  30372. <method name="setLevel"
  30373. abstract="false" native="false" synchronized="false"
  30374. static="false" final="false" visibility="public"
  30375. deprecated="not deprecated">
  30376. <param name="level" type="int"/>
  30377. <doc>
  30378. <![CDATA[Set this node's level in the tree]]>
  30379. </doc>
  30380. </method>
  30381. <field name="PATH_SEPARATOR" type="char"
  30382. transient="false" volatile="false"
  30383. static="true" final="true" visibility="public"
  30384. deprecated="not deprecated">
  30385. </field>
  30386. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  30387. transient="false" volatile="false"
  30388. static="true" final="true" visibility="public"
  30389. deprecated="not deprecated">
  30390. </field>
  30391. <field name="ROOT" type="java.lang.String"
  30392. transient="false" volatile="false"
  30393. static="true" final="true" visibility="public"
  30394. deprecated="not deprecated">
  30395. </field>
  30396. <field name="name" type="java.lang.String"
  30397. transient="false" volatile="false"
  30398. static="false" final="false" visibility="protected"
  30399. deprecated="not deprecated">
  30400. </field>
  30401. <field name="location" type="java.lang.String"
  30402. transient="false" volatile="false"
  30403. static="false" final="false" visibility="protected"
  30404. deprecated="not deprecated">
  30405. </field>
  30406. <field name="level" type="int"
  30407. transient="false" volatile="false"
  30408. static="false" final="false" visibility="protected"
  30409. deprecated="not deprecated">
  30410. </field>
  30411. <field name="parent" type="org.apache.hadoop.net.Node"
  30412. transient="false" volatile="false"
  30413. static="false" final="false" visibility="protected"
  30414. deprecated="not deprecated">
  30415. </field>
  30416. <doc>
  30417. <![CDATA[A base class that implements interface Node]]>
  30418. </doc>
  30419. </class>
  30420. <!-- end class org.apache.hadoop.net.NodeBase -->
  30421. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  30422. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  30423. abstract="false"
  30424. static="false" final="true" visibility="public"
  30425. deprecated="not deprecated">
  30426. <implements name="org.apache.hadoop.conf.Configurable"/>
  30427. <constructor name="ScriptBasedMapping"
  30428. static="false" final="false" visibility="public"
  30429. deprecated="not deprecated">
  30430. </constructor>
  30431. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  30432. static="false" final="false" visibility="public"
  30433. deprecated="not deprecated">
  30434. </constructor>
  30435. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30436. abstract="false" native="false" synchronized="false"
  30437. static="false" final="false" visibility="public"
  30438. deprecated="not deprecated">
  30439. </method>
  30440. <method name="setConf"
  30441. abstract="false" native="false" synchronized="false"
  30442. static="false" final="false" visibility="public"
  30443. deprecated="not deprecated">
  30444. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30445. </method>
  30446. <doc>
  30447. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  30448. script configured via topology.script.file.name .]]>
  30449. </doc>
  30450. </class>
  30451. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  30452. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  30453. <class name="SocketInputStream" extends="java.io.InputStream"
  30454. abstract="false"
  30455. static="false" final="false" visibility="public"
  30456. deprecated="not deprecated">
  30457. <implements name="java.nio.channels.ReadableByteChannel"/>
  30458. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  30459. static="false" final="false" visibility="public"
  30460. deprecated="not deprecated">
  30461. <exception name="IOException" type="java.io.IOException"/>
  30462. <doc>
  30463. <![CDATA[Create a new input stream with the given timeout. If the timeout
  30464. is zero, it will be treated as infinite timeout. The socket's
  30465. channel will be configured to be non-blocking.
  30466. @param channel
  30467. Channel for reading, should also be a {@link SelectableChannel}.
  30468. The channel will be configured to be non-blocking.
  30469. @param timeout timeout in milliseconds. must not be negative.
  30470. @throws IOException]]>
  30471. </doc>
  30472. </constructor>
  30473. <constructor name="SocketInputStream" type="java.net.Socket, long"
  30474. static="false" final="false" visibility="public"
  30475. deprecated="not deprecated">
  30476. <exception name="IOException" type="java.io.IOException"/>
  30477. <doc>
  30478. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  30479. Create a new input stream with the given timeout. If the timeout
  30480. is zero, it will be treated as infinite timeout. The socket's
  30481. channel will be configured to be non-blocking.
  30482. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  30483. @param socket should have a channel associated with it.
  30484. @param timeout timeout timeout in milliseconds. must not be negative.
  30485. @throws IOException]]>
  30486. </doc>
  30487. </constructor>
  30488. <constructor name="SocketInputStream" type="java.net.Socket"
  30489. static="false" final="false" visibility="public"
  30490. deprecated="not deprecated">
  30491. <exception name="IOException" type="java.io.IOException"/>
  30492. <doc>
  30493. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  30494. :<br><br>
  30495. Create a new input stream with the given timeout. If the timeout
  30496. is zero, it will be treated as infinite timeout. The socket's
  30497. channel will be configured to be non-blocking.
  30498. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  30499. @param socket should have a channel associated with it.
  30500. @throws IOException]]>
  30501. </doc>
  30502. </constructor>
  30503. <method name="read" return="int"
  30504. abstract="false" native="false" synchronized="false"
  30505. static="false" final="false" visibility="public"
  30506. deprecated="not deprecated">
  30507. <exception name="IOException" type="java.io.IOException"/>
  30508. </method>
  30509. <method name="read" return="int"
  30510. abstract="false" native="false" synchronized="false"
  30511. static="false" final="false" visibility="public"
  30512. deprecated="not deprecated">
  30513. <param name="b" type="byte[]"/>
  30514. <param name="off" type="int"/>
  30515. <param name="len" type="int"/>
  30516. <exception name="IOException" type="java.io.IOException"/>
  30517. </method>
  30518. <method name="close"
  30519. abstract="false" native="false" synchronized="true"
  30520. static="false" final="false" visibility="public"
  30521. deprecated="not deprecated">
  30522. <exception name="IOException" type="java.io.IOException"/>
  30523. </method>
  30524. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  30525. abstract="false" native="false" synchronized="false"
  30526. static="false" final="false" visibility="public"
  30527. deprecated="not deprecated">
  30528. <doc>
  30529. <![CDATA[Returns underlying channel used by inputstream.
  30530. This is useful in certain cases like channel for
  30531. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  30532. </doc>
  30533. </method>
  30534. <method name="isOpen" return="boolean"
  30535. abstract="false" native="false" synchronized="false"
  30536. static="false" final="false" visibility="public"
  30537. deprecated="not deprecated">
  30538. </method>
  30539. <method name="read" return="int"
  30540. abstract="false" native="false" synchronized="false"
  30541. static="false" final="false" visibility="public"
  30542. deprecated="not deprecated">
  30543. <param name="dst" type="java.nio.ByteBuffer"/>
  30544. <exception name="IOException" type="java.io.IOException"/>
  30545. </method>
  30546. <method name="waitForReadable"
  30547. abstract="false" native="false" synchronized="false"
  30548. static="false" final="false" visibility="public"
  30549. deprecated="not deprecated">
  30550. <exception name="IOException" type="java.io.IOException"/>
  30551. <doc>
  30552. <![CDATA[waits for the underlying channel to be ready for reading.
  30553. The timeout specified for this stream applies to this wait.
  30554. @throws SocketTimeoutException
  30555. if select on the channel times out.
  30556. @throws IOException
  30557. if any other I/O error occurs.]]>
  30558. </doc>
  30559. </method>
  30560. <doc>
  30561. <![CDATA[This implements an input stream that can have a timeout while reading.
  30562. This sets non-blocking flag on the socket channel.
  30563. So after create this object, read() on
  30564. {@link Socket#getInputStream()} and write() on
  30565. {@link Socket#getOutputStream()} for the associated socket will throw
  30566. IllegalBlockingModeException.
  30567. Please use {@link SocketOutputStream} for writing.]]>
  30568. </doc>
  30569. </class>
  30570. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  30571. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  30572. <class name="SocketOutputStream" extends="java.io.OutputStream"
  30573. abstract="false"
  30574. static="false" final="false" visibility="public"
  30575. deprecated="not deprecated">
  30576. <implements name="java.nio.channels.WritableByteChannel"/>
  30577. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  30578. static="false" final="false" visibility="public"
  30579. deprecated="not deprecated">
  30580. <exception name="IOException" type="java.io.IOException"/>
  30581. <doc>
  30582. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  30583. is zero, it will be treated as infinite timeout. The socket's
  30584. channel will be configured to be non-blocking.
  30585. @param channel
  30586. Channel for writing, should also be a {@link SelectableChannel}.
  30587. The channel will be configured to be non-blocking.
  30588. @param timeout timeout in milliseconds. must not be negative.
  30589. @throws IOException]]>
  30590. </doc>
  30591. </constructor>
  30592. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  30593. static="false" final="false" visibility="public"
  30594. deprecated="not deprecated">
  30595. <exception name="IOException" type="java.io.IOException"/>
  30596. <doc>
  30597. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  30598. Create a new ouput stream with the given timeout. If the timeout
  30599. is zero, it will be treated as infinite timeout. The socket's
  30600. channel will be configured to be non-blocking.
  30601. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  30602. @param socket should have a channel associated with it.
  30603. @param timeout timeout timeout in milliseconds. must not be negative.
  30604. @throws IOException]]>
  30605. </doc>
  30606. </constructor>
  30607. <method name="write"
  30608. abstract="false" native="false" synchronized="false"
  30609. static="false" final="false" visibility="public"
  30610. deprecated="not deprecated">
  30611. <param name="b" type="int"/>
  30612. <exception name="IOException" type="java.io.IOException"/>
  30613. </method>
  30614. <method name="write"
  30615. abstract="false" native="false" synchronized="false"
  30616. static="false" final="false" visibility="public"
  30617. deprecated="not deprecated">
  30618. <param name="b" type="byte[]"/>
  30619. <param name="off" type="int"/>
  30620. <param name="len" type="int"/>
  30621. <exception name="IOException" type="java.io.IOException"/>
  30622. </method>
  30623. <method name="close"
  30624. abstract="false" native="false" synchronized="true"
  30625. static="false" final="false" visibility="public"
  30626. deprecated="not deprecated">
  30627. <exception name="IOException" type="java.io.IOException"/>
  30628. </method>
  30629. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  30630. abstract="false" native="false" synchronized="false"
  30631. static="false" final="false" visibility="public"
  30632. deprecated="not deprecated">
  30633. <doc>
  30634. <![CDATA[Returns underlying channel used by this stream.
  30635. This is useful in certain cases like channel for
  30636. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  30637. </doc>
  30638. </method>
  30639. <method name="isOpen" return="boolean"
  30640. abstract="false" native="false" synchronized="false"
  30641. static="false" final="false" visibility="public"
  30642. deprecated="not deprecated">
  30643. </method>
  30644. <method name="write" return="int"
  30645. abstract="false" native="false" synchronized="false"
  30646. static="false" final="false" visibility="public"
  30647. deprecated="not deprecated">
  30648. <param name="src" type="java.nio.ByteBuffer"/>
  30649. <exception name="IOException" type="java.io.IOException"/>
  30650. </method>
  30651. <method name="waitForWritable"
  30652. abstract="false" native="false" synchronized="false"
  30653. static="false" final="false" visibility="public"
  30654. deprecated="not deprecated">
  30655. <exception name="IOException" type="java.io.IOException"/>
  30656. <doc>
  30657. <![CDATA[waits for the underlying channel to be ready for writing.
  30658. The timeout specified for this stream applies to this wait.
  30659. @throws SocketTimeoutException
  30660. if select on the channel times out.
  30661. @throws IOException
  30662. if any other I/O error occurs.]]>
  30663. </doc>
  30664. </method>
  30665. <method name="transferToFully"
  30666. abstract="false" native="false" synchronized="false"
  30667. static="false" final="false" visibility="public"
  30668. deprecated="not deprecated">
  30669. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  30670. <param name="position" type="long"/>
  30671. <param name="count" type="int"/>
  30672. <exception name="IOException" type="java.io.IOException"/>
  30673. <doc>
  30674. <![CDATA[Transfers data from FileChannel using
  30675. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  30676. Similar to readFully(), this waits till requested amount of
  30677. data is transfered.
  30678. @param fileCh FileChannel to transfer data from.
  30679. @param position position within the channel where the transfer begins
  30680. @param count number of bytes to transfer.
  30681. @throws EOFException
  30682. If end of input file is reached before requested number of
  30683. bytes are transfered.
  30684. @throws SocketTimeoutException
  30685. If this channel blocks transfer longer than timeout for
  30686. this stream.
  30687. @throws IOException Includes any exception thrown by
  30688. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  30689. </doc>
  30690. </method>
  30691. <doc>
  30692. <![CDATA[This implements an output stream that can have a timeout while writing.
  30693. This sets non-blocking flag on the socket channel.
  30694. So after creating this object , read() on
  30695. {@link Socket#getInputStream()} and write() on
  30696. {@link Socket#getOutputStream()} on the associated socket will throw
  30697. llegalBlockingModeException.
  30698. Please use {@link SocketInputStream} for reading.]]>
  30699. </doc>
  30700. </class>
  30701. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  30702. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  30703. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  30704. abstract="false"
  30705. static="false" final="false" visibility="public"
  30706. deprecated="not deprecated">
  30707. <implements name="org.apache.hadoop.conf.Configurable"/>
  30708. <constructor name="SocksSocketFactory"
  30709. static="false" final="false" visibility="public"
  30710. deprecated="not deprecated">
  30711. <doc>
  30712. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  30713. </doc>
  30714. </constructor>
  30715. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  30716. static="false" final="false" visibility="public"
  30717. deprecated="not deprecated">
  30718. <doc>
  30719. <![CDATA[Constructor with a supplied Proxy
  30720. @param proxy the proxy to use to create sockets]]>
  30721. </doc>
  30722. </constructor>
  30723. <method name="createSocket" return="java.net.Socket"
  30724. abstract="false" native="false" synchronized="false"
  30725. static="false" final="false" visibility="public"
  30726. deprecated="not deprecated">
  30727. <exception name="IOException" type="java.io.IOException"/>
  30728. </method>
  30729. <method name="createSocket" return="java.net.Socket"
  30730. abstract="false" native="false" synchronized="false"
  30731. static="false" final="false" visibility="public"
  30732. deprecated="not deprecated">
  30733. <param name="addr" type="java.net.InetAddress"/>
  30734. <param name="port" type="int"/>
  30735. <exception name="IOException" type="java.io.IOException"/>
  30736. </method>
  30737. <method name="createSocket" return="java.net.Socket"
  30738. abstract="false" native="false" synchronized="false"
  30739. static="false" final="false" visibility="public"
  30740. deprecated="not deprecated">
  30741. <param name="addr" type="java.net.InetAddress"/>
  30742. <param name="port" type="int"/>
  30743. <param name="localHostAddr" type="java.net.InetAddress"/>
  30744. <param name="localPort" type="int"/>
  30745. <exception name="IOException" type="java.io.IOException"/>
  30746. </method>
  30747. <method name="createSocket" return="java.net.Socket"
  30748. abstract="false" native="false" synchronized="false"
  30749. static="false" final="false" visibility="public"
  30750. deprecated="not deprecated">
  30751. <param name="host" type="java.lang.String"/>
  30752. <param name="port" type="int"/>
  30753. <exception name="IOException" type="java.io.IOException"/>
  30754. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30755. </method>
  30756. <method name="createSocket" return="java.net.Socket"
  30757. abstract="false" native="false" synchronized="false"
  30758. static="false" final="false" visibility="public"
  30759. deprecated="not deprecated">
  30760. <param name="host" type="java.lang.String"/>
  30761. <param name="port" type="int"/>
  30762. <param name="localHostAddr" type="java.net.InetAddress"/>
  30763. <param name="localPort" type="int"/>
  30764. <exception name="IOException" type="java.io.IOException"/>
  30765. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30766. </method>
  30767. <method name="hashCode" return="int"
  30768. abstract="false" native="false" synchronized="false"
  30769. static="false" final="false" visibility="public"
  30770. deprecated="not deprecated">
  30771. </method>
  30772. <method name="equals" return="boolean"
  30773. abstract="false" native="false" synchronized="false"
  30774. static="false" final="false" visibility="public"
  30775. deprecated="not deprecated">
  30776. <param name="obj" type="java.lang.Object"/>
  30777. </method>
  30778. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30779. abstract="false" native="false" synchronized="false"
  30780. static="false" final="false" visibility="public"
  30781. deprecated="not deprecated">
  30782. </method>
  30783. <method name="setConf"
  30784. abstract="false" native="false" synchronized="false"
  30785. static="false" final="false" visibility="public"
  30786. deprecated="not deprecated">
  30787. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30788. </method>
  30789. <doc>
  30790. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  30791. </doc>
  30792. </class>
  30793. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  30794. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  30795. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  30796. abstract="false"
  30797. static="false" final="false" visibility="public"
  30798. deprecated="not deprecated">
  30799. <constructor name="StandardSocketFactory"
  30800. static="false" final="false" visibility="public"
  30801. deprecated="not deprecated">
  30802. <doc>
  30803. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  30804. </doc>
  30805. </constructor>
  30806. <method name="createSocket" return="java.net.Socket"
  30807. abstract="false" native="false" synchronized="false"
  30808. static="false" final="false" visibility="public"
  30809. deprecated="not deprecated">
  30810. <exception name="IOException" type="java.io.IOException"/>
  30811. </method>
  30812. <method name="createSocket" return="java.net.Socket"
  30813. abstract="false" native="false" synchronized="false"
  30814. static="false" final="false" visibility="public"
  30815. deprecated="not deprecated">
  30816. <param name="addr" type="java.net.InetAddress"/>
  30817. <param name="port" type="int"/>
  30818. <exception name="IOException" type="java.io.IOException"/>
  30819. </method>
  30820. <method name="createSocket" return="java.net.Socket"
  30821. abstract="false" native="false" synchronized="false"
  30822. static="false" final="false" visibility="public"
  30823. deprecated="not deprecated">
  30824. <param name="addr" type="java.net.InetAddress"/>
  30825. <param name="port" type="int"/>
  30826. <param name="localHostAddr" type="java.net.InetAddress"/>
  30827. <param name="localPort" type="int"/>
  30828. <exception name="IOException" type="java.io.IOException"/>
  30829. </method>
  30830. <method name="createSocket" return="java.net.Socket"
  30831. abstract="false" native="false" synchronized="false"
  30832. static="false" final="false" visibility="public"
  30833. deprecated="not deprecated">
  30834. <param name="host" type="java.lang.String"/>
  30835. <param name="port" type="int"/>
  30836. <exception name="IOException" type="java.io.IOException"/>
  30837. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30838. </method>
  30839. <method name="createSocket" return="java.net.Socket"
  30840. abstract="false" native="false" synchronized="false"
  30841. static="false" final="false" visibility="public"
  30842. deprecated="not deprecated">
  30843. <param name="host" type="java.lang.String"/>
  30844. <param name="port" type="int"/>
  30845. <param name="localHostAddr" type="java.net.InetAddress"/>
  30846. <param name="localPort" type="int"/>
  30847. <exception name="IOException" type="java.io.IOException"/>
  30848. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30849. </method>
  30850. <method name="equals" return="boolean"
  30851. abstract="false" native="false" synchronized="false"
  30852. static="false" final="false" visibility="public"
  30853. deprecated="not deprecated">
  30854. <param name="obj" type="java.lang.Object"/>
  30855. </method>
  30856. <method name="hashCode" return="int"
  30857. abstract="false" native="false" synchronized="false"
  30858. static="false" final="false" visibility="public"
  30859. deprecated="not deprecated">
  30860. </method>
  30861. <doc>
  30862. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  30863. </doc>
  30864. </class>
  30865. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  30866. </package>
  30867. <package name="org.apache.hadoop.record">
  30868. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  30869. <class name="BinaryRecordInput" extends="java.lang.Object"
  30870. abstract="false"
  30871. static="false" final="false" visibility="public"
  30872. deprecated="not deprecated">
  30873. <implements name="org.apache.hadoop.record.RecordInput"/>
  30874. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  30875. static="false" final="false" visibility="public"
  30876. deprecated="not deprecated">
  30877. <doc>
  30878. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  30879. </doc>
  30880. </constructor>
  30881. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  30882. static="false" final="false" visibility="public"
  30883. deprecated="not deprecated">
  30884. <doc>
  30885. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  30886. </doc>
  30887. </constructor>
  30888. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  30889. abstract="false" native="false" synchronized="false"
  30890. static="true" final="false" visibility="public"
  30891. deprecated="not deprecated">
  30892. <param name="inp" type="java.io.DataInput"/>
  30893. <doc>
  30894. <![CDATA[Get a thread-local record input for the supplied DataInput.
  30895. @param inp data input stream
  30896. @return binary record input corresponding to the supplied DataInput.]]>
  30897. </doc>
  30898. </method>
  30899. <method name="readByte" return="byte"
  30900. abstract="false" native="false" synchronized="false"
  30901. static="false" final="false" visibility="public"
  30902. deprecated="not deprecated">
  30903. <param name="tag" type="java.lang.String"/>
  30904. <exception name="IOException" type="java.io.IOException"/>
  30905. </method>
  30906. <method name="readBool" return="boolean"
  30907. abstract="false" native="false" synchronized="false"
  30908. static="false" final="false" visibility="public"
  30909. deprecated="not deprecated">
  30910. <param name="tag" type="java.lang.String"/>
  30911. <exception name="IOException" type="java.io.IOException"/>
  30912. </method>
  30913. <method name="readInt" return="int"
  30914. abstract="false" native="false" synchronized="false"
  30915. static="false" final="false" visibility="public"
  30916. deprecated="not deprecated">
  30917. <param name="tag" type="java.lang.String"/>
  30918. <exception name="IOException" type="java.io.IOException"/>
  30919. </method>
  30920. <method name="readLong" return="long"
  30921. abstract="false" native="false" synchronized="false"
  30922. static="false" final="false" visibility="public"
  30923. deprecated="not deprecated">
  30924. <param name="tag" type="java.lang.String"/>
  30925. <exception name="IOException" type="java.io.IOException"/>
  30926. </method>
  30927. <method name="readFloat" return="float"
  30928. abstract="false" native="false" synchronized="false"
  30929. static="false" final="false" visibility="public"
  30930. deprecated="not deprecated">
  30931. <param name="tag" type="java.lang.String"/>
  30932. <exception name="IOException" type="java.io.IOException"/>
  30933. </method>
  30934. <method name="readDouble" return="double"
  30935. abstract="false" native="false" synchronized="false"
  30936. static="false" final="false" visibility="public"
  30937. deprecated="not deprecated">
  30938. <param name="tag" type="java.lang.String"/>
  30939. <exception name="IOException" type="java.io.IOException"/>
  30940. </method>
  30941. <method name="readString" return="java.lang.String"
  30942. abstract="false" native="false" synchronized="false"
  30943. static="false" final="false" visibility="public"
  30944. deprecated="not deprecated">
  30945. <param name="tag" type="java.lang.String"/>
  30946. <exception name="IOException" type="java.io.IOException"/>
  30947. </method>
  30948. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30949. abstract="false" native="false" synchronized="false"
  30950. static="false" final="false" visibility="public"
  30951. deprecated="not deprecated">
  30952. <param name="tag" type="java.lang.String"/>
  30953. <exception name="IOException" type="java.io.IOException"/>
  30954. </method>
  30955. <method name="startRecord"
  30956. abstract="false" native="false" synchronized="false"
  30957. static="false" final="false" visibility="public"
  30958. deprecated="not deprecated">
  30959. <param name="tag" type="java.lang.String"/>
  30960. <exception name="IOException" type="java.io.IOException"/>
  30961. </method>
  30962. <method name="endRecord"
  30963. abstract="false" native="false" synchronized="false"
  30964. static="false" final="false" visibility="public"
  30965. deprecated="not deprecated">
  30966. <param name="tag" type="java.lang.String"/>
  30967. <exception name="IOException" type="java.io.IOException"/>
  30968. </method>
  30969. <method name="startVector" return="org.apache.hadoop.record.Index"
  30970. abstract="false" native="false" synchronized="false"
  30971. static="false" final="false" visibility="public"
  30972. deprecated="not deprecated">
  30973. <param name="tag" type="java.lang.String"/>
  30974. <exception name="IOException" type="java.io.IOException"/>
  30975. </method>
  30976. <method name="endVector"
  30977. abstract="false" native="false" synchronized="false"
  30978. static="false" final="false" visibility="public"
  30979. deprecated="not deprecated">
  30980. <param name="tag" type="java.lang.String"/>
  30981. <exception name="IOException" type="java.io.IOException"/>
  30982. </method>
  30983. <method name="startMap" return="org.apache.hadoop.record.Index"
  30984. abstract="false" native="false" synchronized="false"
  30985. static="false" final="false" visibility="public"
  30986. deprecated="not deprecated">
  30987. <param name="tag" type="java.lang.String"/>
  30988. <exception name="IOException" type="java.io.IOException"/>
  30989. </method>
  30990. <method name="endMap"
  30991. abstract="false" native="false" synchronized="false"
  30992. static="false" final="false" visibility="public"
  30993. deprecated="not deprecated">
  30994. <param name="tag" type="java.lang.String"/>
  30995. <exception name="IOException" type="java.io.IOException"/>
  30996. </method>
  30997. </class>
  30998. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  30999. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  31000. <class name="BinaryRecordOutput" extends="java.lang.Object"
  31001. abstract="false"
  31002. static="false" final="false" visibility="public"
  31003. deprecated="not deprecated">
  31004. <implements name="org.apache.hadoop.record.RecordOutput"/>
  31005. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  31006. static="false" final="false" visibility="public"
  31007. deprecated="not deprecated">
  31008. <doc>
  31009. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  31010. </doc>
  31011. </constructor>
  31012. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  31013. static="false" final="false" visibility="public"
  31014. deprecated="not deprecated">
  31015. <doc>
  31016. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  31017. </doc>
  31018. </constructor>
  31019. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  31020. abstract="false" native="false" synchronized="false"
  31021. static="true" final="false" visibility="public"
  31022. deprecated="not deprecated">
  31023. <param name="out" type="java.io.DataOutput"/>
  31024. <doc>
  31025. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  31026. @param out data output stream
  31027. @return binary record output corresponding to the supplied DataOutput.]]>
  31028. </doc>
  31029. </method>
  31030. <method name="writeByte"
  31031. abstract="false" native="false" synchronized="false"
  31032. static="false" final="false" visibility="public"
  31033. deprecated="not deprecated">
  31034. <param name="b" type="byte"/>
  31035. <param name="tag" type="java.lang.String"/>
  31036. <exception name="IOException" type="java.io.IOException"/>
  31037. </method>
  31038. <method name="writeBool"
  31039. abstract="false" native="false" synchronized="false"
  31040. static="false" final="false" visibility="public"
  31041. deprecated="not deprecated">
  31042. <param name="b" type="boolean"/>
  31043. <param name="tag" type="java.lang.String"/>
  31044. <exception name="IOException" type="java.io.IOException"/>
  31045. </method>
  31046. <method name="writeInt"
  31047. abstract="false" native="false" synchronized="false"
  31048. static="false" final="false" visibility="public"
  31049. deprecated="not deprecated">
  31050. <param name="i" type="int"/>
  31051. <param name="tag" type="java.lang.String"/>
  31052. <exception name="IOException" type="java.io.IOException"/>
  31053. </method>
  31054. <method name="writeLong"
  31055. abstract="false" native="false" synchronized="false"
  31056. static="false" final="false" visibility="public"
  31057. deprecated="not deprecated">
  31058. <param name="l" type="long"/>
  31059. <param name="tag" type="java.lang.String"/>
  31060. <exception name="IOException" type="java.io.IOException"/>
  31061. </method>
  31062. <method name="writeFloat"
  31063. abstract="false" native="false" synchronized="false"
  31064. static="false" final="false" visibility="public"
  31065. deprecated="not deprecated">
  31066. <param name="f" type="float"/>
  31067. <param name="tag" type="java.lang.String"/>
  31068. <exception name="IOException" type="java.io.IOException"/>
  31069. </method>
  31070. <method name="writeDouble"
  31071. abstract="false" native="false" synchronized="false"
  31072. static="false" final="false" visibility="public"
  31073. deprecated="not deprecated">
  31074. <param name="d" type="double"/>
  31075. <param name="tag" type="java.lang.String"/>
  31076. <exception name="IOException" type="java.io.IOException"/>
  31077. </method>
  31078. <method name="writeString"
  31079. abstract="false" native="false" synchronized="false"
  31080. static="false" final="false" visibility="public"
  31081. deprecated="not deprecated">
  31082. <param name="s" type="java.lang.String"/>
  31083. <param name="tag" type="java.lang.String"/>
  31084. <exception name="IOException" type="java.io.IOException"/>
  31085. </method>
  31086. <method name="writeBuffer"
  31087. abstract="false" native="false" synchronized="false"
  31088. static="false" final="false" visibility="public"
  31089. deprecated="not deprecated">
  31090. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31091. <param name="tag" type="java.lang.String"/>
  31092. <exception name="IOException" type="java.io.IOException"/>
  31093. </method>
  31094. <method name="startRecord"
  31095. abstract="false" native="false" synchronized="false"
  31096. static="false" final="false" visibility="public"
  31097. deprecated="not deprecated">
  31098. <param name="r" type="org.apache.hadoop.record.Record"/>
  31099. <param name="tag" type="java.lang.String"/>
  31100. <exception name="IOException" type="java.io.IOException"/>
  31101. </method>
  31102. <method name="endRecord"
  31103. abstract="false" native="false" synchronized="false"
  31104. static="false" final="false" visibility="public"
  31105. deprecated="not deprecated">
  31106. <param name="r" type="org.apache.hadoop.record.Record"/>
  31107. <param name="tag" type="java.lang.String"/>
  31108. <exception name="IOException" type="java.io.IOException"/>
  31109. </method>
  31110. <method name="startVector"
  31111. abstract="false" native="false" synchronized="false"
  31112. static="false" final="false" visibility="public"
  31113. deprecated="not deprecated">
  31114. <param name="v" type="java.util.ArrayList"/>
  31115. <param name="tag" type="java.lang.String"/>
  31116. <exception name="IOException" type="java.io.IOException"/>
  31117. </method>
  31118. <method name="endVector"
  31119. abstract="false" native="false" synchronized="false"
  31120. static="false" final="false" visibility="public"
  31121. deprecated="not deprecated">
  31122. <param name="v" type="java.util.ArrayList"/>
  31123. <param name="tag" type="java.lang.String"/>
  31124. <exception name="IOException" type="java.io.IOException"/>
  31125. </method>
  31126. <method name="startMap"
  31127. abstract="false" native="false" synchronized="false"
  31128. static="false" final="false" visibility="public"
  31129. deprecated="not deprecated">
  31130. <param name="v" type="java.util.TreeMap"/>
  31131. <param name="tag" type="java.lang.String"/>
  31132. <exception name="IOException" type="java.io.IOException"/>
  31133. </method>
  31134. <method name="endMap"
  31135. abstract="false" native="false" synchronized="false"
  31136. static="false" final="false" visibility="public"
  31137. deprecated="not deprecated">
  31138. <param name="v" type="java.util.TreeMap"/>
  31139. <param name="tag" type="java.lang.String"/>
  31140. <exception name="IOException" type="java.io.IOException"/>
  31141. </method>
  31142. </class>
  31143. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  31144. <!-- start class org.apache.hadoop.record.Buffer -->
  31145. <class name="Buffer" extends="java.lang.Object"
  31146. abstract="false"
  31147. static="false" final="false" visibility="public"
  31148. deprecated="not deprecated">
  31149. <implements name="java.lang.Comparable"/>
  31150. <implements name="java.lang.Cloneable"/>
  31151. <constructor name="Buffer"
  31152. static="false" final="false" visibility="public"
  31153. deprecated="not deprecated">
  31154. <doc>
  31155. <![CDATA[Create a zero-count sequence.]]>
  31156. </doc>
  31157. </constructor>
  31158. <constructor name="Buffer" type="byte[]"
  31159. static="false" final="false" visibility="public"
  31160. deprecated="not deprecated">
  31161. <doc>
  31162. <![CDATA[Create a Buffer using the byte array as the initial value.
  31163. @param bytes This array becomes the backing storage for the object.]]>
  31164. </doc>
  31165. </constructor>
  31166. <constructor name="Buffer" type="byte[], int, int"
  31167. static="false" final="false" visibility="public"
  31168. deprecated="not deprecated">
  31169. <doc>
  31170. <![CDATA[Create a Buffer using the byte range as the initial value.
  31171. @param bytes Copy of this array becomes the backing storage for the object.
  31172. @param offset offset into byte array
  31173. @param length length of data]]>
  31174. </doc>
  31175. </constructor>
  31176. <method name="set"
  31177. abstract="false" native="false" synchronized="false"
  31178. static="false" final="false" visibility="public"
  31179. deprecated="not deprecated">
  31180. <param name="bytes" type="byte[]"/>
  31181. <doc>
  31182. <![CDATA[Use the specified bytes array as underlying sequence.
  31183. @param bytes byte sequence]]>
  31184. </doc>
  31185. </method>
  31186. <method name="copy"
  31187. abstract="false" native="false" synchronized="false"
  31188. static="false" final="true" visibility="public"
  31189. deprecated="not deprecated">
  31190. <param name="bytes" type="byte[]"/>
  31191. <param name="offset" type="int"/>
  31192. <param name="length" type="int"/>
  31193. <doc>
  31194. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  31195. @param bytes byte array to be assigned
  31196. @param offset offset into byte array
  31197. @param length length of data]]>
  31198. </doc>
  31199. </method>
  31200. <method name="get" return="byte[]"
  31201. abstract="false" native="false" synchronized="false"
  31202. static="false" final="false" visibility="public"
  31203. deprecated="not deprecated">
  31204. <doc>
  31205. <![CDATA[Get the data from the Buffer.
  31206. @return The data is only valid between 0 and getCount() - 1.]]>
  31207. </doc>
  31208. </method>
  31209. <method name="getCount" return="int"
  31210. abstract="false" native="false" synchronized="false"
  31211. static="false" final="false" visibility="public"
  31212. deprecated="not deprecated">
  31213. <doc>
  31214. <![CDATA[Get the current count of the buffer.]]>
  31215. </doc>
  31216. </method>
  31217. <method name="getCapacity" return="int"
  31218. abstract="false" native="false" synchronized="false"
  31219. static="false" final="false" visibility="public"
  31220. deprecated="not deprecated">
  31221. <doc>
  31222. <![CDATA[Get the capacity, which is the maximum count that could handled without
  31223. resizing the backing storage.
  31224. @return The number of bytes]]>
  31225. </doc>
  31226. </method>
  31227. <method name="setCapacity"
  31228. abstract="false" native="false" synchronized="false"
  31229. static="false" final="false" visibility="public"
  31230. deprecated="not deprecated">
  31231. <param name="newCapacity" type="int"/>
  31232. <doc>
  31233. <![CDATA[Change the capacity of the backing storage.
  31234. The data is preserved if newCapacity >= getCount().
  31235. @param newCapacity The new capacity in bytes.]]>
  31236. </doc>
  31237. </method>
  31238. <method name="reset"
  31239. abstract="false" native="false" synchronized="false"
  31240. static="false" final="false" visibility="public"
  31241. deprecated="not deprecated">
  31242. <doc>
  31243. <![CDATA[Reset the buffer to 0 size]]>
  31244. </doc>
  31245. </method>
  31246. <method name="truncate"
  31247. abstract="false" native="false" synchronized="false"
  31248. static="false" final="false" visibility="public"
  31249. deprecated="not deprecated">
  31250. <doc>
  31251. <![CDATA[Change the capacity of the backing store to be the same as the current
  31252. count of buffer.]]>
  31253. </doc>
  31254. </method>
  31255. <method name="append"
  31256. abstract="false" native="false" synchronized="false"
  31257. static="false" final="false" visibility="public"
  31258. deprecated="not deprecated">
  31259. <param name="bytes" type="byte[]"/>
  31260. <param name="offset" type="int"/>
  31261. <param name="length" type="int"/>
  31262. <doc>
  31263. <![CDATA[Append specified bytes to the buffer.
  31264. @param bytes byte array to be appended
  31265. @param offset offset into byte array
  31266. @param length length of data]]>
  31267. </doc>
  31268. </method>
  31269. <method name="append"
  31270. abstract="false" native="false" synchronized="false"
  31271. static="false" final="false" visibility="public"
  31272. deprecated="not deprecated">
  31273. <param name="bytes" type="byte[]"/>
  31274. <doc>
  31275. <![CDATA[Append specified bytes to the buffer
  31276. @param bytes byte array to be appended]]>
  31277. </doc>
  31278. </method>
  31279. <method name="hashCode" return="int"
  31280. abstract="false" native="false" synchronized="false"
  31281. static="false" final="false" visibility="public"
  31282. deprecated="not deprecated">
  31283. </method>
  31284. <method name="compareTo" return="int"
  31285. abstract="false" native="false" synchronized="false"
  31286. static="false" final="false" visibility="public"
  31287. deprecated="not deprecated">
  31288. <param name="other" type="java.lang.Object"/>
  31289. <doc>
  31290. <![CDATA[Define the sort order of the Buffer.
  31291. @param other The other buffer
  31292. @return Positive if this is bigger than other, 0 if they are equal, and
  31293. negative if this is smaller than other.]]>
  31294. </doc>
  31295. </method>
  31296. <method name="equals" return="boolean"
  31297. abstract="false" native="false" synchronized="false"
  31298. static="false" final="false" visibility="public"
  31299. deprecated="not deprecated">
  31300. <param name="other" type="java.lang.Object"/>
  31301. </method>
  31302. <method name="toString" return="java.lang.String"
  31303. abstract="false" native="false" synchronized="false"
  31304. static="false" final="false" visibility="public"
  31305. deprecated="not deprecated">
  31306. </method>
  31307. <method name="toString" return="java.lang.String"
  31308. abstract="false" native="false" synchronized="false"
  31309. static="false" final="false" visibility="public"
  31310. deprecated="not deprecated">
  31311. <param name="charsetName" type="java.lang.String"/>
  31312. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31313. <doc>
  31314. <![CDATA[Convert the byte buffer to a string an specific character encoding
  31315. @param charsetName Valid Java Character Set Name]]>
  31316. </doc>
  31317. </method>
  31318. <method name="clone" return="java.lang.Object"
  31319. abstract="false" native="false" synchronized="false"
  31320. static="false" final="false" visibility="public"
  31321. deprecated="not deprecated">
  31322. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  31323. </method>
  31324. <doc>
  31325. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  31326. It is resizable and distinguishes between the count of the seqeunce and
  31327. the current capacity.]]>
  31328. </doc>
  31329. </class>
  31330. <!-- end class org.apache.hadoop.record.Buffer -->
  31331. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  31332. <class name="CsvRecordInput" extends="java.lang.Object"
  31333. abstract="false"
  31334. static="false" final="false" visibility="public"
  31335. deprecated="not deprecated">
  31336. <implements name="org.apache.hadoop.record.RecordInput"/>
  31337. <constructor name="CsvRecordInput" type="java.io.InputStream"
  31338. static="false" final="false" visibility="public"
  31339. deprecated="not deprecated">
  31340. <doc>
  31341. <![CDATA[Creates a new instance of CsvRecordInput]]>
  31342. </doc>
  31343. </constructor>
  31344. <method name="readByte" return="byte"
  31345. abstract="false" native="false" synchronized="false"
  31346. static="false" final="false" visibility="public"
  31347. deprecated="not deprecated">
  31348. <param name="tag" type="java.lang.String"/>
  31349. <exception name="IOException" type="java.io.IOException"/>
  31350. </method>
  31351. <method name="readBool" return="boolean"
  31352. abstract="false" native="false" synchronized="false"
  31353. static="false" final="false" visibility="public"
  31354. deprecated="not deprecated">
  31355. <param name="tag" type="java.lang.String"/>
  31356. <exception name="IOException" type="java.io.IOException"/>
  31357. </method>
  31358. <method name="readInt" return="int"
  31359. abstract="false" native="false" synchronized="false"
  31360. static="false" final="false" visibility="public"
  31361. deprecated="not deprecated">
  31362. <param name="tag" type="java.lang.String"/>
  31363. <exception name="IOException" type="java.io.IOException"/>
  31364. </method>
  31365. <method name="readLong" return="long"
  31366. abstract="false" native="false" synchronized="false"
  31367. static="false" final="false" visibility="public"
  31368. deprecated="not deprecated">
  31369. <param name="tag" type="java.lang.String"/>
  31370. <exception name="IOException" type="java.io.IOException"/>
  31371. </method>
  31372. <method name="readFloat" return="float"
  31373. abstract="false" native="false" synchronized="false"
  31374. static="false" final="false" visibility="public"
  31375. deprecated="not deprecated">
  31376. <param name="tag" type="java.lang.String"/>
  31377. <exception name="IOException" type="java.io.IOException"/>
  31378. </method>
  31379. <method name="readDouble" return="double"
  31380. abstract="false" native="false" synchronized="false"
  31381. static="false" final="false" visibility="public"
  31382. deprecated="not deprecated">
  31383. <param name="tag" type="java.lang.String"/>
  31384. <exception name="IOException" type="java.io.IOException"/>
  31385. </method>
  31386. <method name="readString" return="java.lang.String"
  31387. abstract="false" native="false" synchronized="false"
  31388. static="false" final="false" visibility="public"
  31389. deprecated="not deprecated">
  31390. <param name="tag" type="java.lang.String"/>
  31391. <exception name="IOException" type="java.io.IOException"/>
  31392. </method>
  31393. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  31394. abstract="false" native="false" synchronized="false"
  31395. static="false" final="false" visibility="public"
  31396. deprecated="not deprecated">
  31397. <param name="tag" type="java.lang.String"/>
  31398. <exception name="IOException" type="java.io.IOException"/>
  31399. </method>
  31400. <method name="startRecord"
  31401. abstract="false" native="false" synchronized="false"
  31402. static="false" final="false" visibility="public"
  31403. deprecated="not deprecated">
  31404. <param name="tag" type="java.lang.String"/>
  31405. <exception name="IOException" type="java.io.IOException"/>
  31406. </method>
  31407. <method name="endRecord"
  31408. abstract="false" native="false" synchronized="false"
  31409. static="false" final="false" visibility="public"
  31410. deprecated="not deprecated">
  31411. <param name="tag" type="java.lang.String"/>
  31412. <exception name="IOException" type="java.io.IOException"/>
  31413. </method>
  31414. <method name="startVector" return="org.apache.hadoop.record.Index"
  31415. abstract="false" native="false" synchronized="false"
  31416. static="false" final="false" visibility="public"
  31417. deprecated="not deprecated">
  31418. <param name="tag" type="java.lang.String"/>
  31419. <exception name="IOException" type="java.io.IOException"/>
  31420. </method>
  31421. <method name="endVector"
  31422. abstract="false" native="false" synchronized="false"
  31423. static="false" final="false" visibility="public"
  31424. deprecated="not deprecated">
  31425. <param name="tag" type="java.lang.String"/>
  31426. <exception name="IOException" type="java.io.IOException"/>
  31427. </method>
  31428. <method name="startMap" return="org.apache.hadoop.record.Index"
  31429. abstract="false" native="false" synchronized="false"
  31430. static="false" final="false" visibility="public"
  31431. deprecated="not deprecated">
  31432. <param name="tag" type="java.lang.String"/>
  31433. <exception name="IOException" type="java.io.IOException"/>
  31434. </method>
  31435. <method name="endMap"
  31436. abstract="false" native="false" synchronized="false"
  31437. static="false" final="false" visibility="public"
  31438. deprecated="not deprecated">
  31439. <param name="tag" type="java.lang.String"/>
  31440. <exception name="IOException" type="java.io.IOException"/>
  31441. </method>
  31442. </class>
  31443. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  31444. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  31445. <class name="CsvRecordOutput" extends="java.lang.Object"
  31446. abstract="false"
  31447. static="false" final="false" visibility="public"
  31448. deprecated="not deprecated">
  31449. <implements name="org.apache.hadoop.record.RecordOutput"/>
  31450. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  31451. static="false" final="false" visibility="public"
  31452. deprecated="not deprecated">
  31453. <doc>
  31454. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  31455. </doc>
  31456. </constructor>
  31457. <method name="writeByte"
  31458. abstract="false" native="false" synchronized="false"
  31459. static="false" final="false" visibility="public"
  31460. deprecated="not deprecated">
  31461. <param name="b" type="byte"/>
  31462. <param name="tag" type="java.lang.String"/>
  31463. <exception name="IOException" type="java.io.IOException"/>
  31464. </method>
  31465. <method name="writeBool"
  31466. abstract="false" native="false" synchronized="false"
  31467. static="false" final="false" visibility="public"
  31468. deprecated="not deprecated">
  31469. <param name="b" type="boolean"/>
  31470. <param name="tag" type="java.lang.String"/>
  31471. <exception name="IOException" type="java.io.IOException"/>
  31472. </method>
  31473. <method name="writeInt"
  31474. abstract="false" native="false" synchronized="false"
  31475. static="false" final="false" visibility="public"
  31476. deprecated="not deprecated">
  31477. <param name="i" type="int"/>
  31478. <param name="tag" type="java.lang.String"/>
  31479. <exception name="IOException" type="java.io.IOException"/>
  31480. </method>
  31481. <method name="writeLong"
  31482. abstract="false" native="false" synchronized="false"
  31483. static="false" final="false" visibility="public"
  31484. deprecated="not deprecated">
  31485. <param name="l" type="long"/>
  31486. <param name="tag" type="java.lang.String"/>
  31487. <exception name="IOException" type="java.io.IOException"/>
  31488. </method>
  31489. <method name="writeFloat"
  31490. abstract="false" native="false" synchronized="false"
  31491. static="false" final="false" visibility="public"
  31492. deprecated="not deprecated">
  31493. <param name="f" type="float"/>
  31494. <param name="tag" type="java.lang.String"/>
  31495. <exception name="IOException" type="java.io.IOException"/>
  31496. </method>
  31497. <method name="writeDouble"
  31498. abstract="false" native="false" synchronized="false"
  31499. static="false" final="false" visibility="public"
  31500. deprecated="not deprecated">
  31501. <param name="d" type="double"/>
  31502. <param name="tag" type="java.lang.String"/>
  31503. <exception name="IOException" type="java.io.IOException"/>
  31504. </method>
  31505. <method name="writeString"
  31506. abstract="false" native="false" synchronized="false"
  31507. static="false" final="false" visibility="public"
  31508. deprecated="not deprecated">
  31509. <param name="s" type="java.lang.String"/>
  31510. <param name="tag" type="java.lang.String"/>
  31511. <exception name="IOException" type="java.io.IOException"/>
  31512. </method>
  31513. <method name="writeBuffer"
  31514. abstract="false" native="false" synchronized="false"
  31515. static="false" final="false" visibility="public"
  31516. deprecated="not deprecated">
  31517. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31518. <param name="tag" type="java.lang.String"/>
  31519. <exception name="IOException" type="java.io.IOException"/>
  31520. </method>
  31521. <method name="startRecord"
  31522. abstract="false" native="false" synchronized="false"
  31523. static="false" final="false" visibility="public"
  31524. deprecated="not deprecated">
  31525. <param name="r" type="org.apache.hadoop.record.Record"/>
  31526. <param name="tag" type="java.lang.String"/>
  31527. <exception name="IOException" type="java.io.IOException"/>
  31528. </method>
  31529. <method name="endRecord"
  31530. abstract="false" native="false" synchronized="false"
  31531. static="false" final="false" visibility="public"
  31532. deprecated="not deprecated">
  31533. <param name="r" type="org.apache.hadoop.record.Record"/>
  31534. <param name="tag" type="java.lang.String"/>
  31535. <exception name="IOException" type="java.io.IOException"/>
  31536. </method>
  31537. <method name="startVector"
  31538. abstract="false" native="false" synchronized="false"
  31539. static="false" final="false" visibility="public"
  31540. deprecated="not deprecated">
  31541. <param name="v" type="java.util.ArrayList"/>
  31542. <param name="tag" type="java.lang.String"/>
  31543. <exception name="IOException" type="java.io.IOException"/>
  31544. </method>
  31545. <method name="endVector"
  31546. abstract="false" native="false" synchronized="false"
  31547. static="false" final="false" visibility="public"
  31548. deprecated="not deprecated">
  31549. <param name="v" type="java.util.ArrayList"/>
  31550. <param name="tag" type="java.lang.String"/>
  31551. <exception name="IOException" type="java.io.IOException"/>
  31552. </method>
  31553. <method name="startMap"
  31554. abstract="false" native="false" synchronized="false"
  31555. static="false" final="false" visibility="public"
  31556. deprecated="not deprecated">
  31557. <param name="v" type="java.util.TreeMap"/>
  31558. <param name="tag" type="java.lang.String"/>
  31559. <exception name="IOException" type="java.io.IOException"/>
  31560. </method>
  31561. <method name="endMap"
  31562. abstract="false" native="false" synchronized="false"
  31563. static="false" final="false" visibility="public"
  31564. deprecated="not deprecated">
  31565. <param name="v" type="java.util.TreeMap"/>
  31566. <param name="tag" type="java.lang.String"/>
  31567. <exception name="IOException" type="java.io.IOException"/>
  31568. </method>
  31569. </class>
  31570. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  31571. <!-- start interface org.apache.hadoop.record.Index -->
  31572. <interface name="Index" abstract="true"
  31573. static="false" final="false" visibility="public"
  31574. deprecated="not deprecated">
  31575. <method name="done" return="boolean"
  31576. abstract="false" native="false" synchronized="false"
  31577. static="false" final="false" visibility="public"
  31578. deprecated="not deprecated">
  31579. </method>
  31580. <method name="incr"
  31581. abstract="false" native="false" synchronized="false"
  31582. static="false" final="false" visibility="public"
  31583. deprecated="not deprecated">
  31584. </method>
  31585. <doc>
  31586. <![CDATA[Interface that acts as an iterator for deserializing maps.
  31587. The deserializer returns an instance that the record uses to
  31588. read vectors and maps. An example of usage is as follows:
  31589. <code>
  31590. Index idx = startVector(...);
  31591. while (!idx.done()) {
  31592. .... // read element of a vector
  31593. idx.incr();
  31594. }
  31595. </code>]]>
  31596. </doc>
  31597. </interface>
  31598. <!-- end interface org.apache.hadoop.record.Index -->
  31599. <!-- start class org.apache.hadoop.record.Record -->
  31600. <class name="Record" extends="java.lang.Object"
  31601. abstract="true"
  31602. static="false" final="false" visibility="public"
  31603. deprecated="not deprecated">
  31604. <implements name="org.apache.hadoop.io.WritableComparable"/>
  31605. <implements name="java.lang.Cloneable"/>
  31606. <constructor name="Record"
  31607. static="false" final="false" visibility="public"
  31608. deprecated="not deprecated">
  31609. </constructor>
  31610. <method name="serialize"
  31611. abstract="true" native="false" synchronized="false"
  31612. static="false" final="false" visibility="public"
  31613. deprecated="not deprecated">
  31614. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  31615. <param name="tag" type="java.lang.String"/>
  31616. <exception name="IOException" type="java.io.IOException"/>
  31617. <doc>
  31618. <![CDATA[Serialize a record with tag (ususally field name)
  31619. @param rout Record output destination
  31620. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  31621. </doc>
  31622. </method>
  31623. <method name="deserialize"
  31624. abstract="true" native="false" synchronized="false"
  31625. static="false" final="false" visibility="public"
  31626. deprecated="not deprecated">
  31627. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  31628. <param name="tag" type="java.lang.String"/>
  31629. <exception name="IOException" type="java.io.IOException"/>
  31630. <doc>
  31631. <![CDATA[Deserialize a record with a tag (usually field name)
  31632. @param rin Record input source
  31633. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  31634. </doc>
  31635. </method>
  31636. <method name="compareTo" return="int"
  31637. abstract="true" native="false" synchronized="false"
  31638. static="false" final="false" visibility="public"
  31639. deprecated="not deprecated">
  31640. <param name="peer" type="java.lang.Object"/>
  31641. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  31642. </method>
  31643. <method name="serialize"
  31644. abstract="false" native="false" synchronized="false"
  31645. static="false" final="false" visibility="public"
  31646. deprecated="not deprecated">
  31647. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  31648. <exception name="IOException" type="java.io.IOException"/>
  31649. <doc>
  31650. <![CDATA[Serialize a record without a tag
  31651. @param rout Record output destination]]>
  31652. </doc>
  31653. </method>
  31654. <method name="deserialize"
  31655. abstract="false" native="false" synchronized="false"
  31656. static="false" final="false" visibility="public"
  31657. deprecated="not deprecated">
  31658. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  31659. <exception name="IOException" type="java.io.IOException"/>
  31660. <doc>
  31661. <![CDATA[Deserialize a record without a tag
  31662. @param rin Record input source]]>
  31663. </doc>
  31664. </method>
  31665. <method name="write"
  31666. abstract="false" native="false" synchronized="false"
  31667. static="false" final="false" visibility="public"
  31668. deprecated="not deprecated">
  31669. <param name="out" type="java.io.DataOutput"/>
  31670. <exception name="IOException" type="java.io.IOException"/>
  31671. </method>
  31672. <method name="readFields"
  31673. abstract="false" native="false" synchronized="false"
  31674. static="false" final="false" visibility="public"
  31675. deprecated="not deprecated">
  31676. <param name="din" type="java.io.DataInput"/>
  31677. <exception name="IOException" type="java.io.IOException"/>
  31678. </method>
  31679. <method name="toString" return="java.lang.String"
  31680. abstract="false" native="false" synchronized="false"
  31681. static="false" final="false" visibility="public"
  31682. deprecated="not deprecated">
  31683. </method>
  31684. <doc>
  31685. <![CDATA[Abstract class that is extended by generated classes.]]>
  31686. </doc>
  31687. </class>
  31688. <!-- end class org.apache.hadoop.record.Record -->
  31689. <!-- start class org.apache.hadoop.record.RecordComparator -->
  31690. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  31691. abstract="true"
  31692. static="false" final="false" visibility="public"
  31693. deprecated="not deprecated">
  31694. <constructor name="RecordComparator" type="java.lang.Class"
  31695. static="false" final="false" visibility="protected"
  31696. deprecated="not deprecated">
  31697. <doc>
  31698. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  31699. </doc>
  31700. </constructor>
  31701. <method name="compare" return="int"
  31702. abstract="true" native="false" synchronized="false"
  31703. static="false" final="false" visibility="public"
  31704. deprecated="not deprecated">
  31705. <param name="b1" type="byte[]"/>
  31706. <param name="s1" type="int"/>
  31707. <param name="l1" type="int"/>
  31708. <param name="b2" type="byte[]"/>
  31709. <param name="s2" type="int"/>
  31710. <param name="l2" type="int"/>
  31711. </method>
  31712. <method name="define"
  31713. abstract="false" native="false" synchronized="true"
  31714. static="true" final="false" visibility="public"
  31715. deprecated="not deprecated">
  31716. <param name="c" type="java.lang.Class"/>
  31717. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  31718. <doc>
  31719. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  31720. @param c record classs for which a raw comparator is provided
  31721. @param comparator Raw comparator instance for class c]]>
  31722. </doc>
  31723. </method>
  31724. <doc>
  31725. <![CDATA[A raw record comparator base class]]>
  31726. </doc>
  31727. </class>
  31728. <!-- end class org.apache.hadoop.record.RecordComparator -->
  31729. <!-- start interface org.apache.hadoop.record.RecordInput -->
  31730. <interface name="RecordInput" abstract="true"
  31731. static="false" final="false" visibility="public"
  31732. deprecated="not deprecated">
  31733. <method name="readByte" return="byte"
  31734. abstract="false" native="false" synchronized="false"
  31735. static="false" final="false" visibility="public"
  31736. deprecated="not deprecated">
  31737. <param name="tag" type="java.lang.String"/>
  31738. <exception name="IOException" type="java.io.IOException"/>
  31739. <doc>
  31740. <![CDATA[Read a byte from serialized record.
  31741. @param tag Used by tagged serialization formats (such as XML)
  31742. @return value read from serialized record.]]>
  31743. </doc>
  31744. </method>
  31745. <method name="readBool" return="boolean"
  31746. abstract="false" native="false" synchronized="false"
  31747. static="false" final="false" visibility="public"
  31748. deprecated="not deprecated">
  31749. <param name="tag" type="java.lang.String"/>
  31750. <exception name="IOException" type="java.io.IOException"/>
  31751. <doc>
  31752. <![CDATA[Read a boolean from serialized record.
  31753. @param tag Used by tagged serialization formats (such as XML)
  31754. @return value read from serialized record.]]>
  31755. </doc>
  31756. </method>
  31757. <method name="readInt" return="int"
  31758. abstract="false" native="false" synchronized="false"
  31759. static="false" final="false" visibility="public"
  31760. deprecated="not deprecated">
  31761. <param name="tag" type="java.lang.String"/>
  31762. <exception name="IOException" type="java.io.IOException"/>
  31763. <doc>
  31764. <![CDATA[Read an integer from serialized record.
  31765. @param tag Used by tagged serialization formats (such as XML)
  31766. @return value read from serialized record.]]>
  31767. </doc>
  31768. </method>
  31769. <method name="readLong" return="long"
  31770. abstract="false" native="false" synchronized="false"
  31771. static="false" final="false" visibility="public"
  31772. deprecated="not deprecated">
  31773. <param name="tag" type="java.lang.String"/>
  31774. <exception name="IOException" type="java.io.IOException"/>
  31775. <doc>
  31776. <![CDATA[Read a long integer from serialized record.
  31777. @param tag Used by tagged serialization formats (such as XML)
  31778. @return value read from serialized record.]]>
  31779. </doc>
  31780. </method>
  31781. <method name="readFloat" return="float"
  31782. abstract="false" native="false" synchronized="false"
  31783. static="false" final="false" visibility="public"
  31784. deprecated="not deprecated">
  31785. <param name="tag" type="java.lang.String"/>
  31786. <exception name="IOException" type="java.io.IOException"/>
  31787. <doc>
  31788. <![CDATA[Read a single-precision float from serialized record.
  31789. @param tag Used by tagged serialization formats (such as XML)
  31790. @return value read from serialized record.]]>
  31791. </doc>
  31792. </method>
  31793. <method name="readDouble" return="double"
  31794. abstract="false" native="false" synchronized="false"
  31795. static="false" final="false" visibility="public"
  31796. deprecated="not deprecated">
  31797. <param name="tag" type="java.lang.String"/>
  31798. <exception name="IOException" type="java.io.IOException"/>
  31799. <doc>
  31800. <![CDATA[Read a double-precision number from serialized record.
  31801. @param tag Used by tagged serialization formats (such as XML)
  31802. @return value read from serialized record.]]>
  31803. </doc>
  31804. </method>
  31805. <method name="readString" return="java.lang.String"
  31806. abstract="false" native="false" synchronized="false"
  31807. static="false" final="false" visibility="public"
  31808. deprecated="not deprecated">
  31809. <param name="tag" type="java.lang.String"/>
  31810. <exception name="IOException" type="java.io.IOException"/>
  31811. <doc>
  31812. <![CDATA[Read a UTF-8 encoded string from serialized record.
  31813. @param tag Used by tagged serialization formats (such as XML)
  31814. @return value read from serialized record.]]>
  31815. </doc>
  31816. </method>
  31817. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  31818. abstract="false" native="false" synchronized="false"
  31819. static="false" final="false" visibility="public"
  31820. deprecated="not deprecated">
  31821. <param name="tag" type="java.lang.String"/>
  31822. <exception name="IOException" type="java.io.IOException"/>
  31823. <doc>
  31824. <![CDATA[Read byte array from serialized record.
  31825. @param tag Used by tagged serialization formats (such as XML)
  31826. @return value read from serialized record.]]>
  31827. </doc>
  31828. </method>
  31829. <method name="startRecord"
  31830. abstract="false" native="false" synchronized="false"
  31831. static="false" final="false" visibility="public"
  31832. deprecated="not deprecated">
  31833. <param name="tag" type="java.lang.String"/>
  31834. <exception name="IOException" type="java.io.IOException"/>
  31835. <doc>
  31836. <![CDATA[Check the mark for start of the serialized record.
  31837. @param tag Used by tagged serialization formats (such as XML)]]>
  31838. </doc>
  31839. </method>
  31840. <method name="endRecord"
  31841. abstract="false" native="false" synchronized="false"
  31842. static="false" final="false" visibility="public"
  31843. deprecated="not deprecated">
  31844. <param name="tag" type="java.lang.String"/>
  31845. <exception name="IOException" type="java.io.IOException"/>
  31846. <doc>
  31847. <![CDATA[Check the mark for end of the serialized record.
  31848. @param tag Used by tagged serialization formats (such as XML)]]>
  31849. </doc>
  31850. </method>
  31851. <method name="startVector" return="org.apache.hadoop.record.Index"
  31852. abstract="false" native="false" synchronized="false"
  31853. static="false" final="false" visibility="public"
  31854. deprecated="not deprecated">
  31855. <param name="tag" type="java.lang.String"/>
  31856. <exception name="IOException" type="java.io.IOException"/>
  31857. <doc>
  31858. <![CDATA[Check the mark for start of the serialized vector.
  31859. @param tag Used by tagged serialization formats (such as XML)
  31860. @return Index that is used to count the number of elements.]]>
  31861. </doc>
  31862. </method>
  31863. <method name="endVector"
  31864. abstract="false" native="false" synchronized="false"
  31865. static="false" final="false" visibility="public"
  31866. deprecated="not deprecated">
  31867. <param name="tag" type="java.lang.String"/>
  31868. <exception name="IOException" type="java.io.IOException"/>
  31869. <doc>
  31870. <![CDATA[Check the mark for end of the serialized vector.
  31871. @param tag Used by tagged serialization formats (such as XML)]]>
  31872. </doc>
  31873. </method>
  31874. <method name="startMap" return="org.apache.hadoop.record.Index"
  31875. abstract="false" native="false" synchronized="false"
  31876. static="false" final="false" visibility="public"
  31877. deprecated="not deprecated">
  31878. <param name="tag" type="java.lang.String"/>
  31879. <exception name="IOException" type="java.io.IOException"/>
  31880. <doc>
  31881. <![CDATA[Check the mark for start of the serialized map.
  31882. @param tag Used by tagged serialization formats (such as XML)
  31883. @return Index that is used to count the number of map entries.]]>
  31884. </doc>
  31885. </method>
  31886. <method name="endMap"
  31887. abstract="false" native="false" synchronized="false"
  31888. static="false" final="false" visibility="public"
  31889. deprecated="not deprecated">
  31890. <param name="tag" type="java.lang.String"/>
  31891. <exception name="IOException" type="java.io.IOException"/>
  31892. <doc>
  31893. <![CDATA[Check the mark for end of the serialized map.
  31894. @param tag Used by tagged serialization formats (such as XML)]]>
  31895. </doc>
  31896. </method>
  31897. <doc>
  31898. <![CDATA[Interface that all the Deserializers have to implement.]]>
  31899. </doc>
  31900. </interface>
  31901. <!-- end interface org.apache.hadoop.record.RecordInput -->
  31902. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  31903. <interface name="RecordOutput" abstract="true"
  31904. static="false" final="false" visibility="public"
  31905. deprecated="not deprecated">
  31906. <method name="writeByte"
  31907. abstract="false" native="false" synchronized="false"
  31908. static="false" final="false" visibility="public"
  31909. deprecated="not deprecated">
  31910. <param name="b" type="byte"/>
  31911. <param name="tag" type="java.lang.String"/>
  31912. <exception name="IOException" type="java.io.IOException"/>
  31913. <doc>
  31914. <![CDATA[Write a byte to serialized record.
  31915. @param b Byte to be serialized
  31916. @param tag Used by tagged serialization formats (such as XML)
  31917. @throws IOException Indicates error in serialization]]>
  31918. </doc>
  31919. </method>
  31920. <method name="writeBool"
  31921. abstract="false" native="false" synchronized="false"
  31922. static="false" final="false" visibility="public"
  31923. deprecated="not deprecated">
  31924. <param name="b" type="boolean"/>
  31925. <param name="tag" type="java.lang.String"/>
  31926. <exception name="IOException" type="java.io.IOException"/>
  31927. <doc>
  31928. <![CDATA[Write a boolean to serialized record.
  31929. @param b Boolean to be serialized
  31930. @param tag Used by tagged serialization formats (such as XML)
  31931. @throws IOException Indicates error in serialization]]>
  31932. </doc>
  31933. </method>
  31934. <method name="writeInt"
  31935. abstract="false" native="false" synchronized="false"
  31936. static="false" final="false" visibility="public"
  31937. deprecated="not deprecated">
  31938. <param name="i" type="int"/>
  31939. <param name="tag" type="java.lang.String"/>
  31940. <exception name="IOException" type="java.io.IOException"/>
  31941. <doc>
  31942. <![CDATA[Write an integer to serialized record.
  31943. @param i Integer to be serialized
  31944. @param tag Used by tagged serialization formats (such as XML)
  31945. @throws IOException Indicates error in serialization]]>
  31946. </doc>
  31947. </method>
  31948. <method name="writeLong"
  31949. abstract="false" native="false" synchronized="false"
  31950. static="false" final="false" visibility="public"
  31951. deprecated="not deprecated">
  31952. <param name="l" type="long"/>
  31953. <param name="tag" type="java.lang.String"/>
  31954. <exception name="IOException" type="java.io.IOException"/>
  31955. <doc>
  31956. <![CDATA[Write a long integer to serialized record.
  31957. @param l Long to be serialized
  31958. @param tag Used by tagged serialization formats (such as XML)
  31959. @throws IOException Indicates error in serialization]]>
  31960. </doc>
  31961. </method>
  31962. <method name="writeFloat"
  31963. abstract="false" native="false" synchronized="false"
  31964. static="false" final="false" visibility="public"
  31965. deprecated="not deprecated">
  31966. <param name="f" type="float"/>
  31967. <param name="tag" type="java.lang.String"/>
  31968. <exception name="IOException" type="java.io.IOException"/>
  31969. <doc>
  31970. <![CDATA[Write a single-precision float to serialized record.
  31971. @param f Float to be serialized
  31972. @param tag Used by tagged serialization formats (such as XML)
  31973. @throws IOException Indicates error in serialization]]>
  31974. </doc>
  31975. </method>
  31976. <method name="writeDouble"
  31977. abstract="false" native="false" synchronized="false"
  31978. static="false" final="false" visibility="public"
  31979. deprecated="not deprecated">
  31980. <param name="d" type="double"/>
  31981. <param name="tag" type="java.lang.String"/>
  31982. <exception name="IOException" type="java.io.IOException"/>
  31983. <doc>
  31984. <![CDATA[Write a double precision floating point number to serialized record.
  31985. @param d Double to be serialized
  31986. @param tag Used by tagged serialization formats (such as XML)
  31987. @throws IOException Indicates error in serialization]]>
  31988. </doc>
  31989. </method>
  31990. <method name="writeString"
  31991. abstract="false" native="false" synchronized="false"
  31992. static="false" final="false" visibility="public"
  31993. deprecated="not deprecated">
  31994. <param name="s" type="java.lang.String"/>
  31995. <param name="tag" type="java.lang.String"/>
  31996. <exception name="IOException" type="java.io.IOException"/>
  31997. <doc>
  31998. <![CDATA[Write a unicode string to serialized record.
  31999. @param s String to be serialized
  32000. @param tag Used by tagged serialization formats (such as XML)
  32001. @throws IOException Indicates error in serialization]]>
  32002. </doc>
  32003. </method>
  32004. <method name="writeBuffer"
  32005. abstract="false" native="false" synchronized="false"
  32006. static="false" final="false" visibility="public"
  32007. deprecated="not deprecated">
  32008. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32009. <param name="tag" type="java.lang.String"/>
  32010. <exception name="IOException" type="java.io.IOException"/>
  32011. <doc>
  32012. <![CDATA[Write a buffer to serialized record.
  32013. @param buf Buffer to be serialized
  32014. @param tag Used by tagged serialization formats (such as XML)
  32015. @throws IOException Indicates error in serialization]]>
  32016. </doc>
  32017. </method>
  32018. <method name="startRecord"
  32019. abstract="false" native="false" synchronized="false"
  32020. static="false" final="false" visibility="public"
  32021. deprecated="not deprecated">
  32022. <param name="r" type="org.apache.hadoop.record.Record"/>
  32023. <param name="tag" type="java.lang.String"/>
  32024. <exception name="IOException" type="java.io.IOException"/>
  32025. <doc>
  32026. <![CDATA[Mark the start of a record to be serialized.
  32027. @param r Record to be serialized
  32028. @param tag Used by tagged serialization formats (such as XML)
  32029. @throws IOException Indicates error in serialization]]>
  32030. </doc>
  32031. </method>
  32032. <method name="endRecord"
  32033. abstract="false" native="false" synchronized="false"
  32034. static="false" final="false" visibility="public"
  32035. deprecated="not deprecated">
  32036. <param name="r" type="org.apache.hadoop.record.Record"/>
  32037. <param name="tag" type="java.lang.String"/>
  32038. <exception name="IOException" type="java.io.IOException"/>
  32039. <doc>
  32040. <![CDATA[Mark the end of a serialized record.
  32041. @param r Record to be serialized
  32042. @param tag Used by tagged serialization formats (such as XML)
  32043. @throws IOException Indicates error in serialization]]>
  32044. </doc>
  32045. </method>
  32046. <method name="startVector"
  32047. abstract="false" native="false" synchronized="false"
  32048. static="false" final="false" visibility="public"
  32049. deprecated="not deprecated">
  32050. <param name="v" type="java.util.ArrayList"/>
  32051. <param name="tag" type="java.lang.String"/>
  32052. <exception name="IOException" type="java.io.IOException"/>
  32053. <doc>
  32054. <![CDATA[Mark the start of a vector to be serialized.
  32055. @param v Vector to be serialized
  32056. @param tag Used by tagged serialization formats (such as XML)
  32057. @throws IOException Indicates error in serialization]]>
  32058. </doc>
  32059. </method>
  32060. <method name="endVector"
  32061. abstract="false" native="false" synchronized="false"
  32062. static="false" final="false" visibility="public"
  32063. deprecated="not deprecated">
  32064. <param name="v" type="java.util.ArrayList"/>
  32065. <param name="tag" type="java.lang.String"/>
  32066. <exception name="IOException" type="java.io.IOException"/>
  32067. <doc>
  32068. <![CDATA[Mark the end of a serialized vector.
  32069. @param v Vector to be serialized
  32070. @param tag Used by tagged serialization formats (such as XML)
  32071. @throws IOException Indicates error in serialization]]>
  32072. </doc>
  32073. </method>
  32074. <method name="startMap"
  32075. abstract="false" native="false" synchronized="false"
  32076. static="false" final="false" visibility="public"
  32077. deprecated="not deprecated">
  32078. <param name="m" type="java.util.TreeMap"/>
  32079. <param name="tag" type="java.lang.String"/>
  32080. <exception name="IOException" type="java.io.IOException"/>
  32081. <doc>
  32082. <![CDATA[Mark the start of a map to be serialized.
  32083. @param m Map to be serialized
  32084. @param tag Used by tagged serialization formats (such as XML)
  32085. @throws IOException Indicates error in serialization]]>
  32086. </doc>
  32087. </method>
  32088. <method name="endMap"
  32089. abstract="false" native="false" synchronized="false"
  32090. static="false" final="false" visibility="public"
  32091. deprecated="not deprecated">
  32092. <param name="m" type="java.util.TreeMap"/>
  32093. <param name="tag" type="java.lang.String"/>
  32094. <exception name="IOException" type="java.io.IOException"/>
  32095. <doc>
  32096. <![CDATA[Mark the end of a serialized map.
  32097. @param m Map to be serialized
  32098. @param tag Used by tagged serialization formats (such as XML)
  32099. @throws IOException Indicates error in serialization]]>
  32100. </doc>
  32101. </method>
  32102. <doc>
  32103. <![CDATA[Interface that alll the serializers have to implement.]]>
  32104. </doc>
  32105. </interface>
  32106. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  32107. <!-- start class org.apache.hadoop.record.Utils -->
  32108. <class name="Utils" extends="java.lang.Object"
  32109. abstract="false"
  32110. static="false" final="false" visibility="public"
  32111. deprecated="not deprecated">
  32112. <method name="readFloat" return="float"
  32113. abstract="false" native="false" synchronized="false"
  32114. static="true" final="false" visibility="public"
  32115. deprecated="not deprecated">
  32116. <param name="bytes" type="byte[]"/>
  32117. <param name="start" type="int"/>
  32118. <doc>
  32119. <![CDATA[Parse a float from a byte array.]]>
  32120. </doc>
  32121. </method>
  32122. <method name="readDouble" return="double"
  32123. abstract="false" native="false" synchronized="false"
  32124. static="true" final="false" visibility="public"
  32125. deprecated="not deprecated">
  32126. <param name="bytes" type="byte[]"/>
  32127. <param name="start" type="int"/>
  32128. <doc>
  32129. <![CDATA[Parse a double from a byte array.]]>
  32130. </doc>
  32131. </method>
  32132. <method name="readVLong" return="long"
  32133. abstract="false" native="false" synchronized="false"
  32134. static="true" final="false" visibility="public"
  32135. deprecated="not deprecated">
  32136. <param name="bytes" type="byte[]"/>
  32137. <param name="start" type="int"/>
  32138. <exception name="IOException" type="java.io.IOException"/>
  32139. <doc>
  32140. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  32141. @param bytes byte array with decode long
  32142. @param start starting index
  32143. @throws java.io.IOException
  32144. @return deserialized long]]>
  32145. </doc>
  32146. </method>
  32147. <method name="readVInt" return="int"
  32148. abstract="false" native="false" synchronized="false"
  32149. static="true" final="false" visibility="public"
  32150. deprecated="not deprecated">
  32151. <param name="bytes" type="byte[]"/>
  32152. <param name="start" type="int"/>
  32153. <exception name="IOException" type="java.io.IOException"/>
  32154. <doc>
  32155. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  32156. @param bytes byte array with the encoded integer
  32157. @param start start index
  32158. @throws java.io.IOException
  32159. @return deserialized integer]]>
  32160. </doc>
  32161. </method>
  32162. <method name="readVLong" return="long"
  32163. abstract="false" native="false" synchronized="false"
  32164. static="true" final="false" visibility="public"
  32165. deprecated="not deprecated">
  32166. <param name="in" type="java.io.DataInput"/>
  32167. <exception name="IOException" type="java.io.IOException"/>
  32168. <doc>
  32169. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  32170. @param in input stream
  32171. @throws java.io.IOException
  32172. @return deserialized long]]>
  32173. </doc>
  32174. </method>
  32175. <method name="readVInt" return="int"
  32176. abstract="false" native="false" synchronized="false"
  32177. static="true" final="false" visibility="public"
  32178. deprecated="not deprecated">
  32179. <param name="in" type="java.io.DataInput"/>
  32180. <exception name="IOException" type="java.io.IOException"/>
  32181. <doc>
  32182. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  32183. @param in input stream
  32184. @throws java.io.IOException
  32185. @return deserialized integer]]>
  32186. </doc>
  32187. </method>
  32188. <method name="getVIntSize" return="int"
  32189. abstract="false" native="false" synchronized="false"
  32190. static="true" final="false" visibility="public"
  32191. deprecated="not deprecated">
  32192. <param name="i" type="long"/>
  32193. <doc>
  32194. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  32195. @return the encoded length]]>
  32196. </doc>
  32197. </method>
  32198. <method name="writeVLong"
  32199. abstract="false" native="false" synchronized="false"
  32200. static="true" final="false" visibility="public"
  32201. deprecated="not deprecated">
  32202. <param name="stream" type="java.io.DataOutput"/>
  32203. <param name="i" type="long"/>
  32204. <exception name="IOException" type="java.io.IOException"/>
  32205. <doc>
  32206. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  32207. For -112 <= i <= 127, only one byte is used with the actual value.
  32208. For other values of i, the first byte value indicates whether the
  32209. long is positive or negative, and the number of bytes that follow.
  32210. If the first byte value v is between -113 and -120, the following long
  32211. is positive, with number of bytes that follow are -(v+112).
  32212. If the first byte value v is between -121 and -128, the following long
  32213. is negative, with number of bytes that follow are -(v+120). Bytes are
  32214. stored in the high-non-zero-byte-first order.
  32215. @param stream Binary output stream
  32216. @param i Long to be serialized
  32217. @throws java.io.IOException]]>
  32218. </doc>
  32219. </method>
  32220. <method name="writeVInt"
  32221. abstract="false" native="false" synchronized="false"
  32222. static="true" final="false" visibility="public"
  32223. deprecated="not deprecated">
  32224. <param name="stream" type="java.io.DataOutput"/>
  32225. <param name="i" type="int"/>
  32226. <exception name="IOException" type="java.io.IOException"/>
  32227. <doc>
  32228. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  32229. @param stream Binary output stream
  32230. @param i int to be serialized
  32231. @throws java.io.IOException]]>
  32232. </doc>
  32233. </method>
  32234. <method name="compareBytes" return="int"
  32235. abstract="false" native="false" synchronized="false"
  32236. static="true" final="false" visibility="public"
  32237. deprecated="not deprecated">
  32238. <param name="b1" type="byte[]"/>
  32239. <param name="s1" type="int"/>
  32240. <param name="l1" type="int"/>
  32241. <param name="b2" type="byte[]"/>
  32242. <param name="s2" type="int"/>
  32243. <param name="l2" type="int"/>
  32244. <doc>
  32245. <![CDATA[Lexicographic order of binary data.]]>
  32246. </doc>
  32247. </method>
  32248. <field name="hexchars" type="char[]"
  32249. transient="false" volatile="false"
  32250. static="true" final="true" visibility="public"
  32251. deprecated="not deprecated">
  32252. </field>
  32253. <doc>
  32254. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  32255. </doc>
  32256. </class>
  32257. <!-- end class org.apache.hadoop.record.Utils -->
  32258. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  32259. <class name="XmlRecordInput" extends="java.lang.Object"
  32260. abstract="false"
  32261. static="false" final="false" visibility="public"
  32262. deprecated="not deprecated">
  32263. <implements name="org.apache.hadoop.record.RecordInput"/>
  32264. <constructor name="XmlRecordInput" type="java.io.InputStream"
  32265. static="false" final="false" visibility="public"
  32266. deprecated="not deprecated">
  32267. <doc>
  32268. <![CDATA[Creates a new instance of XmlRecordInput]]>
  32269. </doc>
  32270. </constructor>
  32271. <method name="readByte" return="byte"
  32272. abstract="false" native="false" synchronized="false"
  32273. static="false" final="false" visibility="public"
  32274. deprecated="not deprecated">
  32275. <param name="tag" type="java.lang.String"/>
  32276. <exception name="IOException" type="java.io.IOException"/>
  32277. </method>
  32278. <method name="readBool" return="boolean"
  32279. abstract="false" native="false" synchronized="false"
  32280. static="false" final="false" visibility="public"
  32281. deprecated="not deprecated">
  32282. <param name="tag" type="java.lang.String"/>
  32283. <exception name="IOException" type="java.io.IOException"/>
  32284. </method>
  32285. <method name="readInt" return="int"
  32286. abstract="false" native="false" synchronized="false"
  32287. static="false" final="false" visibility="public"
  32288. deprecated="not deprecated">
  32289. <param name="tag" type="java.lang.String"/>
  32290. <exception name="IOException" type="java.io.IOException"/>
  32291. </method>
  32292. <method name="readLong" return="long"
  32293. abstract="false" native="false" synchronized="false"
  32294. static="false" final="false" visibility="public"
  32295. deprecated="not deprecated">
  32296. <param name="tag" type="java.lang.String"/>
  32297. <exception name="IOException" type="java.io.IOException"/>
  32298. </method>
  32299. <method name="readFloat" return="float"
  32300. abstract="false" native="false" synchronized="false"
  32301. static="false" final="false" visibility="public"
  32302. deprecated="not deprecated">
  32303. <param name="tag" type="java.lang.String"/>
  32304. <exception name="IOException" type="java.io.IOException"/>
  32305. </method>
  32306. <method name="readDouble" return="double"
  32307. abstract="false" native="false" synchronized="false"
  32308. static="false" final="false" visibility="public"
  32309. deprecated="not deprecated">
  32310. <param name="tag" type="java.lang.String"/>
  32311. <exception name="IOException" type="java.io.IOException"/>
  32312. </method>
  32313. <method name="readString" return="java.lang.String"
  32314. abstract="false" native="false" synchronized="false"
  32315. static="false" final="false" visibility="public"
  32316. deprecated="not deprecated">
  32317. <param name="tag" type="java.lang.String"/>
  32318. <exception name="IOException" type="java.io.IOException"/>
  32319. </method>
  32320. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32321. abstract="false" native="false" synchronized="false"
  32322. static="false" final="false" visibility="public"
  32323. deprecated="not deprecated">
  32324. <param name="tag" type="java.lang.String"/>
  32325. <exception name="IOException" type="java.io.IOException"/>
  32326. </method>
  32327. <method name="startRecord"
  32328. abstract="false" native="false" synchronized="false"
  32329. static="false" final="false" visibility="public"
  32330. deprecated="not deprecated">
  32331. <param name="tag" type="java.lang.String"/>
  32332. <exception name="IOException" type="java.io.IOException"/>
  32333. </method>
  32334. <method name="endRecord"
  32335. abstract="false" native="false" synchronized="false"
  32336. static="false" final="false" visibility="public"
  32337. deprecated="not deprecated">
  32338. <param name="tag" type="java.lang.String"/>
  32339. <exception name="IOException" type="java.io.IOException"/>
  32340. </method>
  32341. <method name="startVector" return="org.apache.hadoop.record.Index"
  32342. abstract="false" native="false" synchronized="false"
  32343. static="false" final="false" visibility="public"
  32344. deprecated="not deprecated">
  32345. <param name="tag" type="java.lang.String"/>
  32346. <exception name="IOException" type="java.io.IOException"/>
  32347. </method>
  32348. <method name="endVector"
  32349. abstract="false" native="false" synchronized="false"
  32350. static="false" final="false" visibility="public"
  32351. deprecated="not deprecated">
  32352. <param name="tag" type="java.lang.String"/>
  32353. <exception name="IOException" type="java.io.IOException"/>
  32354. </method>
  32355. <method name="startMap" return="org.apache.hadoop.record.Index"
  32356. abstract="false" native="false" synchronized="false"
  32357. static="false" final="false" visibility="public"
  32358. deprecated="not deprecated">
  32359. <param name="tag" type="java.lang.String"/>
  32360. <exception name="IOException" type="java.io.IOException"/>
  32361. </method>
  32362. <method name="endMap"
  32363. abstract="false" native="false" synchronized="false"
  32364. static="false" final="false" visibility="public"
  32365. deprecated="not deprecated">
  32366. <param name="tag" type="java.lang.String"/>
  32367. <exception name="IOException" type="java.io.IOException"/>
  32368. </method>
  32369. <doc>
  32370. <![CDATA[XML Deserializer.]]>
  32371. </doc>
  32372. </class>
  32373. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  32374. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  32375. <class name="XmlRecordOutput" extends="java.lang.Object"
  32376. abstract="false"
  32377. static="false" final="false" visibility="public"
  32378. deprecated="not deprecated">
  32379. <implements name="org.apache.hadoop.record.RecordOutput"/>
  32380. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  32381. static="false" final="false" visibility="public"
  32382. deprecated="not deprecated">
  32383. <doc>
  32384. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  32385. </doc>
  32386. </constructor>
  32387. <method name="writeByte"
  32388. abstract="false" native="false" synchronized="false"
  32389. static="false" final="false" visibility="public"
  32390. deprecated="not deprecated">
  32391. <param name="b" type="byte"/>
  32392. <param name="tag" type="java.lang.String"/>
  32393. <exception name="IOException" type="java.io.IOException"/>
  32394. </method>
  32395. <method name="writeBool"
  32396. abstract="false" native="false" synchronized="false"
  32397. static="false" final="false" visibility="public"
  32398. deprecated="not deprecated">
  32399. <param name="b" type="boolean"/>
  32400. <param name="tag" type="java.lang.String"/>
  32401. <exception name="IOException" type="java.io.IOException"/>
  32402. </method>
  32403. <method name="writeInt"
  32404. abstract="false" native="false" synchronized="false"
  32405. static="false" final="false" visibility="public"
  32406. deprecated="not deprecated">
  32407. <param name="i" type="int"/>
  32408. <param name="tag" type="java.lang.String"/>
  32409. <exception name="IOException" type="java.io.IOException"/>
  32410. </method>
  32411. <method name="writeLong"
  32412. abstract="false" native="false" synchronized="false"
  32413. static="false" final="false" visibility="public"
  32414. deprecated="not deprecated">
  32415. <param name="l" type="long"/>
  32416. <param name="tag" type="java.lang.String"/>
  32417. <exception name="IOException" type="java.io.IOException"/>
  32418. </method>
  32419. <method name="writeFloat"
  32420. abstract="false" native="false" synchronized="false"
  32421. static="false" final="false" visibility="public"
  32422. deprecated="not deprecated">
  32423. <param name="f" type="float"/>
  32424. <param name="tag" type="java.lang.String"/>
  32425. <exception name="IOException" type="java.io.IOException"/>
  32426. </method>
  32427. <method name="writeDouble"
  32428. abstract="false" native="false" synchronized="false"
  32429. static="false" final="false" visibility="public"
  32430. deprecated="not deprecated">
  32431. <param name="d" type="double"/>
  32432. <param name="tag" type="java.lang.String"/>
  32433. <exception name="IOException" type="java.io.IOException"/>
  32434. </method>
  32435. <method name="writeString"
  32436. abstract="false" native="false" synchronized="false"
  32437. static="false" final="false" visibility="public"
  32438. deprecated="not deprecated">
  32439. <param name="s" type="java.lang.String"/>
  32440. <param name="tag" type="java.lang.String"/>
  32441. <exception name="IOException" type="java.io.IOException"/>
  32442. </method>
  32443. <method name="writeBuffer"
  32444. abstract="false" native="false" synchronized="false"
  32445. static="false" final="false" visibility="public"
  32446. deprecated="not deprecated">
  32447. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32448. <param name="tag" type="java.lang.String"/>
  32449. <exception name="IOException" type="java.io.IOException"/>
  32450. </method>
  32451. <method name="startRecord"
  32452. abstract="false" native="false" synchronized="false"
  32453. static="false" final="false" visibility="public"
  32454. deprecated="not deprecated">
  32455. <param name="r" type="org.apache.hadoop.record.Record"/>
  32456. <param name="tag" type="java.lang.String"/>
  32457. <exception name="IOException" type="java.io.IOException"/>
  32458. </method>
  32459. <method name="endRecord"
  32460. abstract="false" native="false" synchronized="false"
  32461. static="false" final="false" visibility="public"
  32462. deprecated="not deprecated">
  32463. <param name="r" type="org.apache.hadoop.record.Record"/>
  32464. <param name="tag" type="java.lang.String"/>
  32465. <exception name="IOException" type="java.io.IOException"/>
  32466. </method>
  32467. <method name="startVector"
  32468. abstract="false" native="false" synchronized="false"
  32469. static="false" final="false" visibility="public"
  32470. deprecated="not deprecated">
  32471. <param name="v" type="java.util.ArrayList"/>
  32472. <param name="tag" type="java.lang.String"/>
  32473. <exception name="IOException" type="java.io.IOException"/>
  32474. </method>
  32475. <method name="endVector"
  32476. abstract="false" native="false" synchronized="false"
  32477. static="false" final="false" visibility="public"
  32478. deprecated="not deprecated">
  32479. <param name="v" type="java.util.ArrayList"/>
  32480. <param name="tag" type="java.lang.String"/>
  32481. <exception name="IOException" type="java.io.IOException"/>
  32482. </method>
  32483. <method name="startMap"
  32484. abstract="false" native="false" synchronized="false"
  32485. static="false" final="false" visibility="public"
  32486. deprecated="not deprecated">
  32487. <param name="v" type="java.util.TreeMap"/>
  32488. <param name="tag" type="java.lang.String"/>
  32489. <exception name="IOException" type="java.io.IOException"/>
  32490. </method>
  32491. <method name="endMap"
  32492. abstract="false" native="false" synchronized="false"
  32493. static="false" final="false" visibility="public"
  32494. deprecated="not deprecated">
  32495. <param name="v" type="java.util.TreeMap"/>
  32496. <param name="tag" type="java.lang.String"/>
  32497. <exception name="IOException" type="java.io.IOException"/>
  32498. </method>
  32499. <doc>
  32500. <![CDATA[XML Serializer.]]>
  32501. </doc>
  32502. </class>
  32503. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  32504. </package>
  32505. <package name="org.apache.hadoop.record.compiler">
  32506. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  32507. <class name="CodeBuffer" extends="java.lang.Object"
  32508. abstract="false"
  32509. static="false" final="false" visibility="public"
  32510. deprecated="not deprecated">
  32511. <method name="toString" return="java.lang.String"
  32512. abstract="false" native="false" synchronized="false"
  32513. static="false" final="false" visibility="public"
  32514. deprecated="not deprecated">
  32515. </method>
  32516. <doc>
  32517. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  32518. </doc>
  32519. </class>
  32520. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  32521. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  32522. <class name="Consts" extends="java.lang.Object"
  32523. abstract="false"
  32524. static="false" final="false" visibility="public"
  32525. deprecated="not deprecated">
  32526. <field name="RIO_PREFIX" type="java.lang.String"
  32527. transient="false" volatile="false"
  32528. static="true" final="true" visibility="public"
  32529. deprecated="not deprecated">
  32530. </field>
  32531. <field name="RTI_VAR" type="java.lang.String"
  32532. transient="false" volatile="false"
  32533. static="true" final="true" visibility="public"
  32534. deprecated="not deprecated">
  32535. </field>
  32536. <field name="RTI_FILTER" type="java.lang.String"
  32537. transient="false" volatile="false"
  32538. static="true" final="true" visibility="public"
  32539. deprecated="not deprecated">
  32540. </field>
  32541. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  32542. transient="false" volatile="false"
  32543. static="true" final="true" visibility="public"
  32544. deprecated="not deprecated">
  32545. </field>
  32546. <field name="RECORD_OUTPUT" type="java.lang.String"
  32547. transient="false" volatile="false"
  32548. static="true" final="true" visibility="public"
  32549. deprecated="not deprecated">
  32550. </field>
  32551. <field name="RECORD_INPUT" type="java.lang.String"
  32552. transient="false" volatile="false"
  32553. static="true" final="true" visibility="public"
  32554. deprecated="not deprecated">
  32555. </field>
  32556. <field name="TAG" type="java.lang.String"
  32557. transient="false" volatile="false"
  32558. static="true" final="true" visibility="public"
  32559. deprecated="not deprecated">
  32560. </field>
  32561. <doc>
  32562. <![CDATA[const definitions for Record I/O compiler]]>
  32563. </doc>
  32564. </class>
  32565. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  32566. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  32567. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  32568. abstract="false"
  32569. static="false" final="false" visibility="public"
  32570. deprecated="not deprecated">
  32571. <constructor name="JBoolean"
  32572. static="false" final="false" visibility="public"
  32573. deprecated="not deprecated">
  32574. <doc>
  32575. <![CDATA[Creates a new instance of JBoolean]]>
  32576. </doc>
  32577. </constructor>
  32578. </class>
  32579. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  32580. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  32581. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  32582. abstract="false"
  32583. static="false" final="false" visibility="public"
  32584. deprecated="not deprecated">
  32585. <constructor name="JBuffer"
  32586. static="false" final="false" visibility="public"
  32587. deprecated="not deprecated">
  32588. <doc>
  32589. <![CDATA[Creates a new instance of JBuffer]]>
  32590. </doc>
  32591. </constructor>
  32592. <doc>
  32593. <![CDATA[Code generator for "buffer" type.]]>
  32594. </doc>
  32595. </class>
  32596. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  32597. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  32598. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  32599. abstract="false"
  32600. static="false" final="false" visibility="public"
  32601. deprecated="not deprecated">
  32602. <constructor name="JByte"
  32603. static="false" final="false" visibility="public"
  32604. deprecated="not deprecated">
  32605. </constructor>
  32606. <doc>
  32607. <![CDATA[Code generator for "byte" type.]]>
  32608. </doc>
  32609. </class>
  32610. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  32611. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  32612. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  32613. abstract="false"
  32614. static="false" final="false" visibility="public"
  32615. deprecated="not deprecated">
  32616. <constructor name="JDouble"
  32617. static="false" final="false" visibility="public"
  32618. deprecated="not deprecated">
  32619. <doc>
  32620. <![CDATA[Creates a new instance of JDouble]]>
  32621. </doc>
  32622. </constructor>
  32623. </class>
  32624. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  32625. <!-- start class org.apache.hadoop.record.compiler.JField -->
  32626. <class name="JField" extends="java.lang.Object"
  32627. abstract="false"
  32628. static="false" final="false" visibility="public"
  32629. deprecated="not deprecated">
  32630. <constructor name="JField" type="java.lang.String, java.lang.Object"
  32631. static="false" final="false" visibility="public"
  32632. deprecated="not deprecated">
  32633. <doc>
  32634. <![CDATA[Creates a new instance of JField]]>
  32635. </doc>
  32636. </constructor>
  32637. <doc>
  32638. <![CDATA[A thin wrappper around record field.]]>
  32639. </doc>
  32640. </class>
  32641. <!-- end class org.apache.hadoop.record.compiler.JField -->
  32642. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  32643. <class name="JFile" extends="java.lang.Object"
  32644. abstract="false"
  32645. static="false" final="false" visibility="public"
  32646. deprecated="not deprecated">
  32647. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  32648. static="false" final="false" visibility="public"
  32649. deprecated="not deprecated">
  32650. <doc>
  32651. <![CDATA[Creates a new instance of JFile
  32652. @param name possibly full pathname to the file
  32653. @param inclFiles included files (as JFile)
  32654. @param recList List of records defined within this file]]>
  32655. </doc>
  32656. </constructor>
  32657. <method name="genCode" return="int"
  32658. abstract="false" native="false" synchronized="false"
  32659. static="false" final="false" visibility="public"
  32660. deprecated="not deprecated">
  32661. <param name="language" type="java.lang.String"/>
  32662. <param name="destDir" type="java.lang.String"/>
  32663. <param name="options" type="java.util.ArrayList"/>
  32664. <exception name="IOException" type="java.io.IOException"/>
  32665. <doc>
  32666. <![CDATA[Generate record code in given language. Language should be all
  32667. lowercase.]]>
  32668. </doc>
  32669. </method>
  32670. <doc>
  32671. <![CDATA[Container for the Hadoop Record DDL.
  32672. The main components of the file are filename, list of included files,
  32673. and records defined in that file.]]>
  32674. </doc>
  32675. </class>
  32676. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  32677. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  32678. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  32679. abstract="false"
  32680. static="false" final="false" visibility="public"
  32681. deprecated="not deprecated">
  32682. <constructor name="JFloat"
  32683. static="false" final="false" visibility="public"
  32684. deprecated="not deprecated">
  32685. <doc>
  32686. <![CDATA[Creates a new instance of JFloat]]>
  32687. </doc>
  32688. </constructor>
  32689. </class>
  32690. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  32691. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  32692. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  32693. abstract="false"
  32694. static="false" final="false" visibility="public"
  32695. deprecated="not deprecated">
  32696. <constructor name="JInt"
  32697. static="false" final="false" visibility="public"
  32698. deprecated="not deprecated">
  32699. <doc>
  32700. <![CDATA[Creates a new instance of JInt]]>
  32701. </doc>
  32702. </constructor>
  32703. <doc>
  32704. <![CDATA[Code generator for "int" type]]>
  32705. </doc>
  32706. </class>
  32707. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  32708. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  32709. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  32710. abstract="false"
  32711. static="false" final="false" visibility="public"
  32712. deprecated="not deprecated">
  32713. <constructor name="JLong"
  32714. static="false" final="false" visibility="public"
  32715. deprecated="not deprecated">
  32716. <doc>
  32717. <![CDATA[Creates a new instance of JLong]]>
  32718. </doc>
  32719. </constructor>
  32720. <doc>
  32721. <![CDATA[Code generator for "long" type]]>
  32722. </doc>
  32723. </class>
  32724. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  32725. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  32726. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  32727. abstract="false"
  32728. static="false" final="false" visibility="public"
  32729. deprecated="not deprecated">
  32730. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  32731. static="false" final="false" visibility="public"
  32732. deprecated="not deprecated">
  32733. <doc>
  32734. <![CDATA[Creates a new instance of JMap]]>
  32735. </doc>
  32736. </constructor>
  32737. </class>
  32738. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  32739. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  32740. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  32741. abstract="false"
  32742. static="false" final="false" visibility="public"
  32743. deprecated="not deprecated">
  32744. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  32745. static="false" final="false" visibility="public"
  32746. deprecated="not deprecated">
  32747. <doc>
  32748. <![CDATA[Creates a new instance of JRecord]]>
  32749. </doc>
  32750. </constructor>
  32751. </class>
  32752. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  32753. <!-- start class org.apache.hadoop.record.compiler.JString -->
  32754. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  32755. abstract="false"
  32756. static="false" final="false" visibility="public"
  32757. deprecated="not deprecated">
  32758. <constructor name="JString"
  32759. static="false" final="false" visibility="public"
  32760. deprecated="not deprecated">
  32761. <doc>
  32762. <![CDATA[Creates a new instance of JString]]>
  32763. </doc>
  32764. </constructor>
  32765. </class>
  32766. <!-- end class org.apache.hadoop.record.compiler.JString -->
  32767. <!-- start class org.apache.hadoop.record.compiler.JType -->
  32768. <class name="JType" extends="java.lang.Object"
  32769. abstract="true"
  32770. static="false" final="false" visibility="public"
  32771. deprecated="not deprecated">
  32772. <constructor name="JType"
  32773. static="false" final="false" visibility="public"
  32774. deprecated="not deprecated">
  32775. </constructor>
  32776. <doc>
  32777. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  32778. </doc>
  32779. </class>
  32780. <!-- end class org.apache.hadoop.record.compiler.JType -->
  32781. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  32782. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  32783. abstract="false"
  32784. static="false" final="false" visibility="public"
  32785. deprecated="not deprecated">
  32786. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  32787. static="false" final="false" visibility="public"
  32788. deprecated="not deprecated">
  32789. <doc>
  32790. <![CDATA[Creates a new instance of JVector]]>
  32791. </doc>
  32792. </constructor>
  32793. </class>
  32794. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  32795. </package>
  32796. <package name="org.apache.hadoop.record.compiler.ant">
  32797. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  32798. <class name="RccTask" extends="org.apache.tools.ant.Task"
  32799. abstract="false"
  32800. static="false" final="false" visibility="public"
  32801. deprecated="not deprecated">
  32802. <constructor name="RccTask"
  32803. static="false" final="false" visibility="public"
  32804. deprecated="not deprecated">
  32805. <doc>
  32806. <![CDATA[Creates a new instance of RccTask]]>
  32807. </doc>
  32808. </constructor>
  32809. <method name="setLanguage"
  32810. abstract="false" native="false" synchronized="false"
  32811. static="false" final="false" visibility="public"
  32812. deprecated="not deprecated">
  32813. <param name="language" type="java.lang.String"/>
  32814. <doc>
  32815. <![CDATA[Sets the output language option
  32816. @param language "java"/"c++"]]>
  32817. </doc>
  32818. </method>
  32819. <method name="setFile"
  32820. abstract="false" native="false" synchronized="false"
  32821. static="false" final="false" visibility="public"
  32822. deprecated="not deprecated">
  32823. <param name="file" type="java.io.File"/>
  32824. <doc>
  32825. <![CDATA[Sets the record definition file attribute
  32826. @param file record definition file]]>
  32827. </doc>
  32828. </method>
  32829. <method name="setFailonerror"
  32830. abstract="false" native="false" synchronized="false"
  32831. static="false" final="false" visibility="public"
  32832. deprecated="not deprecated">
  32833. <param name="flag" type="boolean"/>
  32834. <doc>
  32835. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  32836. @param flag true will throw build exception in case of failure (default)]]>
  32837. </doc>
  32838. </method>
  32839. <method name="setDestdir"
  32840. abstract="false" native="false" synchronized="false"
  32841. static="false" final="false" visibility="public"
  32842. deprecated="not deprecated">
  32843. <param name="dir" type="java.io.File"/>
  32844. <doc>
  32845. <![CDATA[Sets directory where output files will be generated
  32846. @param dir output directory]]>
  32847. </doc>
  32848. </method>
  32849. <method name="addFileset"
  32850. abstract="false" native="false" synchronized="false"
  32851. static="false" final="false" visibility="public"
  32852. deprecated="not deprecated">
  32853. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  32854. <doc>
  32855. <![CDATA[Adds a fileset that can consist of one or more files
  32856. @param set Set of record definition files]]>
  32857. </doc>
  32858. </method>
  32859. <method name="execute"
  32860. abstract="false" native="false" synchronized="false"
  32861. static="false" final="false" visibility="public"
  32862. deprecated="not deprecated">
  32863. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  32864. <doc>
  32865. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  32866. </doc>
  32867. </method>
  32868. <doc>
  32869. <![CDATA[Hadoop record compiler ant Task
  32870. <p> This task takes the given record definition files and compiles them into
  32871. java or c++
  32872. files. It is then up to the user to compile the generated files.
  32873. <p> The task requires the <code>file</code> or the nested fileset element to be
  32874. specified. Optional attributes are <code>language</code> (set the output
  32875. language, default is "java"),
  32876. <code>destdir</code> (name of the destination directory for generated java/c++
  32877. code, default is ".") and <code>failonerror</code> (specifies error handling
  32878. behavior. default is true).
  32879. <p><h4>Usage</h4>
  32880. <pre>
  32881. &lt;recordcc
  32882. destdir="${basedir}/gensrc"
  32883. language="java"&gt;
  32884. &lt;fileset include="**\/*.jr" /&gt;
  32885. &lt;/recordcc&gt;
  32886. </pre>]]>
  32887. </doc>
  32888. </class>
  32889. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  32890. </package>
  32891. <package name="org.apache.hadoop.record.compiler.generated">
  32892. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  32893. <class name="ParseException" extends="java.lang.Exception"
  32894. abstract="false"
  32895. static="false" final="false" visibility="public"
  32896. deprecated="not deprecated">
  32897. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  32898. static="false" final="false" visibility="public"
  32899. deprecated="not deprecated">
  32900. <doc>
  32901. <![CDATA[This constructor is used by the method "generateParseException"
  32902. in the generated parser. Calling this constructor generates
  32903. a new object of this type with the fields "currentToken",
  32904. "expectedTokenSequences", and "tokenImage" set. The boolean
  32905. flag "specialConstructor" is also set to true to indicate that
  32906. this constructor was used to create this object.
  32907. This constructor calls its super class with the empty string
  32908. to force the "toString" method of parent class "Throwable" to
  32909. print the error message in the form:
  32910. ParseException: <result of getMessage>]]>
  32911. </doc>
  32912. </constructor>
  32913. <constructor name="ParseException"
  32914. static="false" final="false" visibility="public"
  32915. deprecated="not deprecated">
  32916. <doc>
  32917. <![CDATA[The following constructors are for use by you for whatever
  32918. purpose you can think of. Constructing the exception in this
  32919. manner makes the exception behave in the normal way - i.e., as
  32920. documented in the class "Throwable". The fields "errorToken",
  32921. "expectedTokenSequences", and "tokenImage" do not contain
  32922. relevant information. The JavaCC generated code does not use
  32923. these constructors.]]>
  32924. </doc>
  32925. </constructor>
  32926. <constructor name="ParseException" type="java.lang.String"
  32927. static="false" final="false" visibility="public"
  32928. deprecated="not deprecated">
  32929. </constructor>
  32930. <method name="getMessage" return="java.lang.String"
  32931. abstract="false" native="false" synchronized="false"
  32932. static="false" final="false" visibility="public"
  32933. deprecated="not deprecated">
  32934. <doc>
  32935. <![CDATA[This method has the standard behavior when this object has been
  32936. created using the standard constructors. Otherwise, it uses
  32937. "currentToken" and "expectedTokenSequences" to generate a parse
  32938. error message and returns it. If this object has been created
  32939. due to a parse error, and you do not catch it (it gets thrown
  32940. from the parser), then this method is called during the printing
  32941. of the final stack trace, and hence the correct error message
  32942. gets displayed.]]>
  32943. </doc>
  32944. </method>
  32945. <method name="add_escapes" return="java.lang.String"
  32946. abstract="false" native="false" synchronized="false"
  32947. static="false" final="false" visibility="protected"
  32948. deprecated="not deprecated">
  32949. <param name="str" type="java.lang.String"/>
  32950. <doc>
  32951. <![CDATA[Used to convert raw characters to their escaped version
  32952. when these raw version cannot be used as part of an ASCII
  32953. string literal.]]>
  32954. </doc>
  32955. </method>
  32956. <field name="specialConstructor" type="boolean"
  32957. transient="false" volatile="false"
  32958. static="false" final="false" visibility="protected"
  32959. deprecated="not deprecated">
  32960. <doc>
  32961. <![CDATA[This variable determines which constructor was used to create
  32962. this object and thereby affects the semantics of the
  32963. "getMessage" method (see below).]]>
  32964. </doc>
  32965. </field>
  32966. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  32967. transient="false" volatile="false"
  32968. static="false" final="false" visibility="public"
  32969. deprecated="not deprecated">
  32970. <doc>
  32971. <![CDATA[This is the last token that has been consumed successfully. If
  32972. this object has been created due to a parse error, the token
  32973. followng this token will (therefore) be the first error token.]]>
  32974. </doc>
  32975. </field>
  32976. <field name="expectedTokenSequences" type="int[][]"
  32977. transient="false" volatile="false"
  32978. static="false" final="false" visibility="public"
  32979. deprecated="not deprecated">
  32980. <doc>
  32981. <![CDATA[Each entry in this array is an array of integers. Each array
  32982. of integers represents a sequence of tokens (by their ordinal
  32983. values) that is expected at this point of the parse.]]>
  32984. </doc>
  32985. </field>
  32986. <field name="tokenImage" type="java.lang.String[]"
  32987. transient="false" volatile="false"
  32988. static="false" final="false" visibility="public"
  32989. deprecated="not deprecated">
  32990. <doc>
  32991. <![CDATA[This is a reference to the "tokenImage" array of the generated
  32992. parser within which the parse error occurred. This array is
  32993. defined in the generated ...Constants interface.]]>
  32994. </doc>
  32995. </field>
  32996. <field name="eol" type="java.lang.String"
  32997. transient="false" volatile="false"
  32998. static="false" final="false" visibility="protected"
  32999. deprecated="not deprecated">
  33000. <doc>
  33001. <![CDATA[The end of line string for this machine.]]>
  33002. </doc>
  33003. </field>
  33004. <doc>
  33005. <![CDATA[This exception is thrown when parse errors are encountered.
  33006. You can explicitly create objects of this exception type by
  33007. calling the method generateParseException in the generated
  33008. parser.
  33009. You can modify this class to customize your error reporting
  33010. mechanisms so long as you retain the public fields.]]>
  33011. </doc>
  33012. </class>
  33013. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  33014. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  33015. <class name="Rcc" extends="java.lang.Object"
  33016. abstract="false"
  33017. static="false" final="false" visibility="public"
  33018. deprecated="not deprecated">
  33019. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  33020. <constructor name="Rcc" type="java.io.InputStream"
  33021. static="false" final="false" visibility="public"
  33022. deprecated="not deprecated">
  33023. </constructor>
  33024. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  33025. static="false" final="false" visibility="public"
  33026. deprecated="not deprecated">
  33027. </constructor>
  33028. <constructor name="Rcc" type="java.io.Reader"
  33029. static="false" final="false" visibility="public"
  33030. deprecated="not deprecated">
  33031. </constructor>
  33032. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  33033. static="false" final="false" visibility="public"
  33034. deprecated="not deprecated">
  33035. </constructor>
  33036. <method name="main"
  33037. abstract="false" native="false" synchronized="false"
  33038. static="true" final="false" visibility="public"
  33039. deprecated="not deprecated">
  33040. <param name="args" type="java.lang.String[]"/>
  33041. </method>
  33042. <method name="usage"
  33043. abstract="false" native="false" synchronized="false"
  33044. static="true" final="false" visibility="public"
  33045. deprecated="not deprecated">
  33046. </method>
  33047. <method name="driver" return="int"
  33048. abstract="false" native="false" synchronized="false"
  33049. static="true" final="false" visibility="public"
  33050. deprecated="not deprecated">
  33051. <param name="args" type="java.lang.String[]"/>
  33052. </method>
  33053. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  33054. abstract="false" native="false" synchronized="false"
  33055. static="false" final="true" visibility="public"
  33056. deprecated="not deprecated">
  33057. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33058. </method>
  33059. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  33060. abstract="false" native="false" synchronized="false"
  33061. static="false" final="true" visibility="public"
  33062. deprecated="not deprecated">
  33063. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33064. </method>
  33065. <method name="Module" return="java.util.ArrayList"
  33066. abstract="false" native="false" synchronized="false"
  33067. static="false" final="true" visibility="public"
  33068. deprecated="not deprecated">
  33069. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33070. </method>
  33071. <method name="ModuleName" return="java.lang.String"
  33072. abstract="false" native="false" synchronized="false"
  33073. static="false" final="true" visibility="public"
  33074. deprecated="not deprecated">
  33075. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33076. </method>
  33077. <method name="RecordList" return="java.util.ArrayList"
  33078. abstract="false" native="false" synchronized="false"
  33079. static="false" final="true" visibility="public"
  33080. deprecated="not deprecated">
  33081. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33082. </method>
  33083. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  33084. abstract="false" native="false" synchronized="false"
  33085. static="false" final="true" visibility="public"
  33086. deprecated="not deprecated">
  33087. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33088. </method>
  33089. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  33090. abstract="false" native="false" synchronized="false"
  33091. static="false" final="true" visibility="public"
  33092. deprecated="not deprecated">
  33093. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33094. </method>
  33095. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  33096. abstract="false" native="false" synchronized="false"
  33097. static="false" final="true" visibility="public"
  33098. deprecated="not deprecated">
  33099. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33100. </method>
  33101. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  33102. abstract="false" native="false" synchronized="false"
  33103. static="false" final="true" visibility="public"
  33104. deprecated="not deprecated">
  33105. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33106. </method>
  33107. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  33108. abstract="false" native="false" synchronized="false"
  33109. static="false" final="true" visibility="public"
  33110. deprecated="not deprecated">
  33111. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33112. </method>
  33113. <method name="ReInit"
  33114. abstract="false" native="false" synchronized="false"
  33115. static="false" final="false" visibility="public"
  33116. deprecated="not deprecated">
  33117. <param name="stream" type="java.io.InputStream"/>
  33118. </method>
  33119. <method name="ReInit"
  33120. abstract="false" native="false" synchronized="false"
  33121. static="false" final="false" visibility="public"
  33122. deprecated="not deprecated">
  33123. <param name="stream" type="java.io.InputStream"/>
  33124. <param name="encoding" type="java.lang.String"/>
  33125. </method>
  33126. <method name="ReInit"
  33127. abstract="false" native="false" synchronized="false"
  33128. static="false" final="false" visibility="public"
  33129. deprecated="not deprecated">
  33130. <param name="stream" type="java.io.Reader"/>
  33131. </method>
  33132. <method name="ReInit"
  33133. abstract="false" native="false" synchronized="false"
  33134. static="false" final="false" visibility="public"
  33135. deprecated="not deprecated">
  33136. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  33137. </method>
  33138. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33139. abstract="false" native="false" synchronized="false"
  33140. static="false" final="true" visibility="public"
  33141. deprecated="not deprecated">
  33142. </method>
  33143. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33144. abstract="false" native="false" synchronized="false"
  33145. static="false" final="true" visibility="public"
  33146. deprecated="not deprecated">
  33147. <param name="index" type="int"/>
  33148. </method>
  33149. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  33150. abstract="false" native="false" synchronized="false"
  33151. static="false" final="false" visibility="public"
  33152. deprecated="not deprecated">
  33153. </method>
  33154. <method name="enable_tracing"
  33155. abstract="false" native="false" synchronized="false"
  33156. static="false" final="true" visibility="public"
  33157. deprecated="not deprecated">
  33158. </method>
  33159. <method name="disable_tracing"
  33160. abstract="false" native="false" synchronized="false"
  33161. static="false" final="true" visibility="public"
  33162. deprecated="not deprecated">
  33163. </method>
  33164. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  33165. transient="false" volatile="false"
  33166. static="false" final="false" visibility="public"
  33167. deprecated="not deprecated">
  33168. </field>
  33169. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  33170. transient="false" volatile="false"
  33171. static="false" final="false" visibility="public"
  33172. deprecated="not deprecated">
  33173. </field>
  33174. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  33175. transient="false" volatile="false"
  33176. static="false" final="false" visibility="public"
  33177. deprecated="not deprecated">
  33178. </field>
  33179. </class>
  33180. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  33181. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  33182. <interface name="RccConstants" abstract="true"
  33183. static="false" final="false" visibility="public"
  33184. deprecated="not deprecated">
  33185. <field name="EOF" type="int"
  33186. transient="false" volatile="false"
  33187. static="true" final="true" visibility="public"
  33188. deprecated="not deprecated">
  33189. </field>
  33190. <field name="MODULE_TKN" type="int"
  33191. transient="false" volatile="false"
  33192. static="true" final="true" visibility="public"
  33193. deprecated="not deprecated">
  33194. </field>
  33195. <field name="RECORD_TKN" type="int"
  33196. transient="false" volatile="false"
  33197. static="true" final="true" visibility="public"
  33198. deprecated="not deprecated">
  33199. </field>
  33200. <field name="INCLUDE_TKN" type="int"
  33201. transient="false" volatile="false"
  33202. static="true" final="true" visibility="public"
  33203. deprecated="not deprecated">
  33204. </field>
  33205. <field name="BYTE_TKN" type="int"
  33206. transient="false" volatile="false"
  33207. static="true" final="true" visibility="public"
  33208. deprecated="not deprecated">
  33209. </field>
  33210. <field name="BOOLEAN_TKN" type="int"
  33211. transient="false" volatile="false"
  33212. static="true" final="true" visibility="public"
  33213. deprecated="not deprecated">
  33214. </field>
  33215. <field name="INT_TKN" type="int"
  33216. transient="false" volatile="false"
  33217. static="true" final="true" visibility="public"
  33218. deprecated="not deprecated">
  33219. </field>
  33220. <field name="LONG_TKN" type="int"
  33221. transient="false" volatile="false"
  33222. static="true" final="true" visibility="public"
  33223. deprecated="not deprecated">
  33224. </field>
  33225. <field name="FLOAT_TKN" type="int"
  33226. transient="false" volatile="false"
  33227. static="true" final="true" visibility="public"
  33228. deprecated="not deprecated">
  33229. </field>
  33230. <field name="DOUBLE_TKN" type="int"
  33231. transient="false" volatile="false"
  33232. static="true" final="true" visibility="public"
  33233. deprecated="not deprecated">
  33234. </field>
  33235. <field name="USTRING_TKN" type="int"
  33236. transient="false" volatile="false"
  33237. static="true" final="true" visibility="public"
  33238. deprecated="not deprecated">
  33239. </field>
  33240. <field name="BUFFER_TKN" type="int"
  33241. transient="false" volatile="false"
  33242. static="true" final="true" visibility="public"
  33243. deprecated="not deprecated">
  33244. </field>
  33245. <field name="VECTOR_TKN" type="int"
  33246. transient="false" volatile="false"
  33247. static="true" final="true" visibility="public"
  33248. deprecated="not deprecated">
  33249. </field>
  33250. <field name="MAP_TKN" type="int"
  33251. transient="false" volatile="false"
  33252. static="true" final="true" visibility="public"
  33253. deprecated="not deprecated">
  33254. </field>
  33255. <field name="LBRACE_TKN" type="int"
  33256. transient="false" volatile="false"
  33257. static="true" final="true" visibility="public"
  33258. deprecated="not deprecated">
  33259. </field>
  33260. <field name="RBRACE_TKN" type="int"
  33261. transient="false" volatile="false"
  33262. static="true" final="true" visibility="public"
  33263. deprecated="not deprecated">
  33264. </field>
  33265. <field name="LT_TKN" type="int"
  33266. transient="false" volatile="false"
  33267. static="true" final="true" visibility="public"
  33268. deprecated="not deprecated">
  33269. </field>
  33270. <field name="GT_TKN" type="int"
  33271. transient="false" volatile="false"
  33272. static="true" final="true" visibility="public"
  33273. deprecated="not deprecated">
  33274. </field>
  33275. <field name="SEMICOLON_TKN" type="int"
  33276. transient="false" volatile="false"
  33277. static="true" final="true" visibility="public"
  33278. deprecated="not deprecated">
  33279. </field>
  33280. <field name="COMMA_TKN" type="int"
  33281. transient="false" volatile="false"
  33282. static="true" final="true" visibility="public"
  33283. deprecated="not deprecated">
  33284. </field>
  33285. <field name="DOT_TKN" type="int"
  33286. transient="false" volatile="false"
  33287. static="true" final="true" visibility="public"
  33288. deprecated="not deprecated">
  33289. </field>
  33290. <field name="CSTRING_TKN" type="int"
  33291. transient="false" volatile="false"
  33292. static="true" final="true" visibility="public"
  33293. deprecated="not deprecated">
  33294. </field>
  33295. <field name="IDENT_TKN" type="int"
  33296. transient="false" volatile="false"
  33297. static="true" final="true" visibility="public"
  33298. deprecated="not deprecated">
  33299. </field>
  33300. <field name="DEFAULT" type="int"
  33301. transient="false" volatile="false"
  33302. static="true" final="true" visibility="public"
  33303. deprecated="not deprecated">
  33304. </field>
  33305. <field name="WithinOneLineComment" type="int"
  33306. transient="false" volatile="false"
  33307. static="true" final="true" visibility="public"
  33308. deprecated="not deprecated">
  33309. </field>
  33310. <field name="WithinMultiLineComment" type="int"
  33311. transient="false" volatile="false"
  33312. static="true" final="true" visibility="public"
  33313. deprecated="not deprecated">
  33314. </field>
  33315. <field name="tokenImage" type="java.lang.String[]"
  33316. transient="false" volatile="false"
  33317. static="true" final="true" visibility="public"
  33318. deprecated="not deprecated">
  33319. </field>
  33320. </interface>
  33321. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  33322. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  33323. <class name="RccTokenManager" extends="java.lang.Object"
  33324. abstract="false"
  33325. static="false" final="false" visibility="public"
  33326. deprecated="not deprecated">
  33327. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  33328. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  33329. static="false" final="false" visibility="public"
  33330. deprecated="not deprecated">
  33331. </constructor>
  33332. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  33333. static="false" final="false" visibility="public"
  33334. deprecated="not deprecated">
  33335. </constructor>
  33336. <method name="setDebugStream"
  33337. abstract="false" native="false" synchronized="false"
  33338. static="false" final="false" visibility="public"
  33339. deprecated="not deprecated">
  33340. <param name="ds" type="java.io.PrintStream"/>
  33341. </method>
  33342. <method name="ReInit"
  33343. abstract="false" native="false" synchronized="false"
  33344. static="false" final="false" visibility="public"
  33345. deprecated="not deprecated">
  33346. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  33347. </method>
  33348. <method name="ReInit"
  33349. abstract="false" native="false" synchronized="false"
  33350. static="false" final="false" visibility="public"
  33351. deprecated="not deprecated">
  33352. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  33353. <param name="lexState" type="int"/>
  33354. </method>
  33355. <method name="SwitchTo"
  33356. abstract="false" native="false" synchronized="false"
  33357. static="false" final="false" visibility="public"
  33358. deprecated="not deprecated">
  33359. <param name="lexState" type="int"/>
  33360. </method>
  33361. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33362. abstract="false" native="false" synchronized="false"
  33363. static="false" final="false" visibility="protected"
  33364. deprecated="not deprecated">
  33365. </method>
  33366. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33367. abstract="false" native="false" synchronized="false"
  33368. static="false" final="false" visibility="public"
  33369. deprecated="not deprecated">
  33370. </method>
  33371. <field name="debugStream" type="java.io.PrintStream"
  33372. transient="false" volatile="false"
  33373. static="false" final="false" visibility="public"
  33374. deprecated="not deprecated">
  33375. </field>
  33376. <field name="jjstrLiteralImages" type="java.lang.String[]"
  33377. transient="false" volatile="false"
  33378. static="true" final="true" visibility="public"
  33379. deprecated="not deprecated">
  33380. </field>
  33381. <field name="lexStateNames" type="java.lang.String[]"
  33382. transient="false" volatile="false"
  33383. static="true" final="true" visibility="public"
  33384. deprecated="not deprecated">
  33385. </field>
  33386. <field name="jjnewLexState" type="int[]"
  33387. transient="false" volatile="false"
  33388. static="true" final="true" visibility="public"
  33389. deprecated="not deprecated">
  33390. </field>
  33391. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  33392. transient="false" volatile="false"
  33393. static="false" final="false" visibility="protected"
  33394. deprecated="not deprecated">
  33395. </field>
  33396. <field name="curChar" type="char"
  33397. transient="false" volatile="false"
  33398. static="false" final="false" visibility="protected"
  33399. deprecated="not deprecated">
  33400. </field>
  33401. </class>
  33402. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  33403. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  33404. <class name="SimpleCharStream" extends="java.lang.Object"
  33405. abstract="false"
  33406. static="false" final="false" visibility="public"
  33407. deprecated="not deprecated">
  33408. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  33409. static="false" final="false" visibility="public"
  33410. deprecated="not deprecated">
  33411. </constructor>
  33412. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  33413. static="false" final="false" visibility="public"
  33414. deprecated="not deprecated">
  33415. </constructor>
  33416. <constructor name="SimpleCharStream" type="java.io.Reader"
  33417. static="false" final="false" visibility="public"
  33418. deprecated="not deprecated">
  33419. </constructor>
  33420. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  33421. static="false" final="false" visibility="public"
  33422. deprecated="not deprecated">
  33423. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33424. </constructor>
  33425. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  33426. static="false" final="false" visibility="public"
  33427. deprecated="not deprecated">
  33428. </constructor>
  33429. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  33430. static="false" final="false" visibility="public"
  33431. deprecated="not deprecated">
  33432. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33433. </constructor>
  33434. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  33435. static="false" final="false" visibility="public"
  33436. deprecated="not deprecated">
  33437. </constructor>
  33438. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  33439. static="false" final="false" visibility="public"
  33440. deprecated="not deprecated">
  33441. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33442. </constructor>
  33443. <constructor name="SimpleCharStream" type="java.io.InputStream"
  33444. static="false" final="false" visibility="public"
  33445. deprecated="not deprecated">
  33446. </constructor>
  33447. <method name="setTabSize"
  33448. abstract="false" native="false" synchronized="false"
  33449. static="false" final="false" visibility="protected"
  33450. deprecated="not deprecated">
  33451. <param name="i" type="int"/>
  33452. </method>
  33453. <method name="getTabSize" return="int"
  33454. abstract="false" native="false" synchronized="false"
  33455. static="false" final="false" visibility="protected"
  33456. deprecated="not deprecated">
  33457. <param name="i" type="int"/>
  33458. </method>
  33459. <method name="ExpandBuff"
  33460. abstract="false" native="false" synchronized="false"
  33461. static="false" final="false" visibility="protected"
  33462. deprecated="not deprecated">
  33463. <param name="wrapAround" type="boolean"/>
  33464. </method>
  33465. <method name="FillBuff"
  33466. abstract="false" native="false" synchronized="false"
  33467. static="false" final="false" visibility="protected"
  33468. deprecated="not deprecated">
  33469. <exception name="IOException" type="java.io.IOException"/>
  33470. </method>
  33471. <method name="BeginToken" return="char"
  33472. abstract="false" native="false" synchronized="false"
  33473. static="false" final="false" visibility="public"
  33474. deprecated="not deprecated">
  33475. <exception name="IOException" type="java.io.IOException"/>
  33476. </method>
  33477. <method name="UpdateLineColumn"
  33478. abstract="false" native="false" synchronized="false"
  33479. static="false" final="false" visibility="protected"
  33480. deprecated="not deprecated">
  33481. <param name="c" type="char"/>
  33482. </method>
  33483. <method name="readChar" return="char"
  33484. abstract="false" native="false" synchronized="false"
  33485. static="false" final="false" visibility="public"
  33486. deprecated="not deprecated">
  33487. <exception name="IOException" type="java.io.IOException"/>
  33488. </method>
  33489. <method name="getEndColumn" return="int"
  33490. abstract="false" native="false" synchronized="false"
  33491. static="false" final="false" visibility="public"
  33492. deprecated="not deprecated">
  33493. </method>
  33494. <method name="getEndLine" return="int"
  33495. abstract="false" native="false" synchronized="false"
  33496. static="false" final="false" visibility="public"
  33497. deprecated="not deprecated">
  33498. </method>
  33499. <method name="getBeginColumn" return="int"
  33500. abstract="false" native="false" synchronized="false"
  33501. static="false" final="false" visibility="public"
  33502. deprecated="not deprecated">
  33503. </method>
  33504. <method name="getBeginLine" return="int"
  33505. abstract="false" native="false" synchronized="false"
  33506. static="false" final="false" visibility="public"
  33507. deprecated="not deprecated">
  33508. </method>
  33509. <method name="backup"
  33510. abstract="false" native="false" synchronized="false"
  33511. static="false" final="false" visibility="public"
  33512. deprecated="not deprecated">
  33513. <param name="amount" type="int"/>
  33514. </method>
  33515. <method name="ReInit"
  33516. abstract="false" native="false" synchronized="false"
  33517. static="false" final="false" visibility="public"
  33518. deprecated="not deprecated">
  33519. <param name="dstream" type="java.io.Reader"/>
  33520. <param name="startline" type="int"/>
  33521. <param name="startcolumn" type="int"/>
  33522. <param name="buffersize" type="int"/>
  33523. </method>
  33524. <method name="ReInit"
  33525. abstract="false" native="false" synchronized="false"
  33526. static="false" final="false" visibility="public"
  33527. deprecated="not deprecated">
  33528. <param name="dstream" type="java.io.Reader"/>
  33529. <param name="startline" type="int"/>
  33530. <param name="startcolumn" type="int"/>
  33531. </method>
  33532. <method name="ReInit"
  33533. abstract="false" native="false" synchronized="false"
  33534. static="false" final="false" visibility="public"
  33535. deprecated="not deprecated">
  33536. <param name="dstream" type="java.io.Reader"/>
  33537. </method>
  33538. <method name="ReInit"
  33539. abstract="false" native="false" synchronized="false"
  33540. static="false" final="false" visibility="public"
  33541. deprecated="not deprecated">
  33542. <param name="dstream" type="java.io.InputStream"/>
  33543. <param name="encoding" type="java.lang.String"/>
  33544. <param name="startline" type="int"/>
  33545. <param name="startcolumn" type="int"/>
  33546. <param name="buffersize" type="int"/>
  33547. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33548. </method>
  33549. <method name="ReInit"
  33550. abstract="false" native="false" synchronized="false"
  33551. static="false" final="false" visibility="public"
  33552. deprecated="not deprecated">
  33553. <param name="dstream" type="java.io.InputStream"/>
  33554. <param name="startline" type="int"/>
  33555. <param name="startcolumn" type="int"/>
  33556. <param name="buffersize" type="int"/>
  33557. </method>
  33558. <method name="ReInit"
  33559. abstract="false" native="false" synchronized="false"
  33560. static="false" final="false" visibility="public"
  33561. deprecated="not deprecated">
  33562. <param name="dstream" type="java.io.InputStream"/>
  33563. <param name="encoding" type="java.lang.String"/>
  33564. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33565. </method>
  33566. <method name="ReInit"
  33567. abstract="false" native="false" synchronized="false"
  33568. static="false" final="false" visibility="public"
  33569. deprecated="not deprecated">
  33570. <param name="dstream" type="java.io.InputStream"/>
  33571. </method>
  33572. <method name="ReInit"
  33573. abstract="false" native="false" synchronized="false"
  33574. static="false" final="false" visibility="public"
  33575. deprecated="not deprecated">
  33576. <param name="dstream" type="java.io.InputStream"/>
  33577. <param name="encoding" type="java.lang.String"/>
  33578. <param name="startline" type="int"/>
  33579. <param name="startcolumn" type="int"/>
  33580. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  33581. </method>
  33582. <method name="ReInit"
  33583. abstract="false" native="false" synchronized="false"
  33584. static="false" final="false" visibility="public"
  33585. deprecated="not deprecated">
  33586. <param name="dstream" type="java.io.InputStream"/>
  33587. <param name="startline" type="int"/>
  33588. <param name="startcolumn" type="int"/>
  33589. </method>
  33590. <method name="GetImage" return="java.lang.String"
  33591. abstract="false" native="false" synchronized="false"
  33592. static="false" final="false" visibility="public"
  33593. deprecated="not deprecated">
  33594. </method>
  33595. <method name="GetSuffix" return="char[]"
  33596. abstract="false" native="false" synchronized="false"
  33597. static="false" final="false" visibility="public"
  33598. deprecated="not deprecated">
  33599. <param name="len" type="int"/>
  33600. </method>
  33601. <method name="Done"
  33602. abstract="false" native="false" synchronized="false"
  33603. static="false" final="false" visibility="public"
  33604. deprecated="not deprecated">
  33605. </method>
  33606. <method name="adjustBeginLineColumn"
  33607. abstract="false" native="false" synchronized="false"
  33608. static="false" final="false" visibility="public"
  33609. deprecated="not deprecated">
  33610. <param name="newLine" type="int"/>
  33611. <param name="newCol" type="int"/>
  33612. <doc>
  33613. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  33614. </doc>
  33615. </method>
  33616. <field name="staticFlag" type="boolean"
  33617. transient="false" volatile="false"
  33618. static="true" final="true" visibility="public"
  33619. deprecated="not deprecated">
  33620. </field>
  33621. <field name="bufpos" type="int"
  33622. transient="false" volatile="false"
  33623. static="false" final="false" visibility="public"
  33624. deprecated="not deprecated">
  33625. </field>
  33626. <field name="bufline" type="int[]"
  33627. transient="false" volatile="false"
  33628. static="false" final="false" visibility="protected"
  33629. deprecated="not deprecated">
  33630. </field>
  33631. <field name="bufcolumn" type="int[]"
  33632. transient="false" volatile="false"
  33633. static="false" final="false" visibility="protected"
  33634. deprecated="not deprecated">
  33635. </field>
  33636. <field name="column" type="int"
  33637. transient="false" volatile="false"
  33638. static="false" final="false" visibility="protected"
  33639. deprecated="not deprecated">
  33640. </field>
  33641. <field name="line" type="int"
  33642. transient="false" volatile="false"
  33643. static="false" final="false" visibility="protected"
  33644. deprecated="not deprecated">
  33645. </field>
  33646. <field name="prevCharIsCR" type="boolean"
  33647. transient="false" volatile="false"
  33648. static="false" final="false" visibility="protected"
  33649. deprecated="not deprecated">
  33650. </field>
  33651. <field name="prevCharIsLF" type="boolean"
  33652. transient="false" volatile="false"
  33653. static="false" final="false" visibility="protected"
  33654. deprecated="not deprecated">
  33655. </field>
  33656. <field name="inputStream" type="java.io.Reader"
  33657. transient="false" volatile="false"
  33658. static="false" final="false" visibility="protected"
  33659. deprecated="not deprecated">
  33660. </field>
  33661. <field name="buffer" type="char[]"
  33662. transient="false" volatile="false"
  33663. static="false" final="false" visibility="protected"
  33664. deprecated="not deprecated">
  33665. </field>
  33666. <field name="maxNextCharInd" type="int"
  33667. transient="false" volatile="false"
  33668. static="false" final="false" visibility="protected"
  33669. deprecated="not deprecated">
  33670. </field>
  33671. <field name="inBuf" type="int"
  33672. transient="false" volatile="false"
  33673. static="false" final="false" visibility="protected"
  33674. deprecated="not deprecated">
  33675. </field>
  33676. <field name="tabSize" type="int"
  33677. transient="false" volatile="false"
  33678. static="false" final="false" visibility="protected"
  33679. deprecated="not deprecated">
  33680. </field>
  33681. <doc>
  33682. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  33683. contain only ASCII characters (without unicode processing).]]>
  33684. </doc>
  33685. </class>
  33686. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  33687. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  33688. <class name="Token" extends="java.lang.Object"
  33689. abstract="false"
  33690. static="false" final="false" visibility="public"
  33691. deprecated="not deprecated">
  33692. <constructor name="Token"
  33693. static="false" final="false" visibility="public"
  33694. deprecated="not deprecated">
  33695. </constructor>
  33696. <method name="toString" return="java.lang.String"
  33697. abstract="false" native="false" synchronized="false"
  33698. static="false" final="false" visibility="public"
  33699. deprecated="not deprecated">
  33700. <doc>
  33701. <![CDATA[Returns the image.]]>
  33702. </doc>
  33703. </method>
  33704. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33705. abstract="false" native="false" synchronized="false"
  33706. static="true" final="true" visibility="public"
  33707. deprecated="not deprecated">
  33708. <param name="ofKind" type="int"/>
  33709. <doc>
  33710. <![CDATA[Returns a new Token object, by default. However, if you want, you
  33711. can create and return subclass objects based on the value of ofKind.
  33712. Simply add the cases to the switch for all those special cases.
  33713. For example, if you have a subclass of Token called IDToken that
  33714. you want to create if ofKind is ID, simlpy add something like :
  33715. case MyParserConstants.ID : return new IDToken();
  33716. to the following switch statement. Then you can cast matchedToken
  33717. variable to the appropriate type and use it in your lexical actions.]]>
  33718. </doc>
  33719. </method>
  33720. <field name="kind" type="int"
  33721. transient="false" volatile="false"
  33722. static="false" final="false" visibility="public"
  33723. deprecated="not deprecated">
  33724. <doc>
  33725. <![CDATA[An integer that describes the kind of this token. This numbering
  33726. system is determined by JavaCCParser, and a table of these numbers is
  33727. stored in the file ...Constants.java.]]>
  33728. </doc>
  33729. </field>
  33730. <field name="beginLine" type="int"
  33731. transient="false" volatile="false"
  33732. static="false" final="false" visibility="public"
  33733. deprecated="not deprecated">
  33734. <doc>
  33735. <![CDATA[beginLine and beginColumn describe the position of the first character
  33736. of this token; endLine and endColumn describe the position of the
  33737. last character of this token.]]>
  33738. </doc>
  33739. </field>
  33740. <field name="beginColumn" type="int"
  33741. transient="false" volatile="false"
  33742. static="false" final="false" visibility="public"
  33743. deprecated="not deprecated">
  33744. <doc>
  33745. <![CDATA[beginLine and beginColumn describe the position of the first character
  33746. of this token; endLine and endColumn describe the position of the
  33747. last character of this token.]]>
  33748. </doc>
  33749. </field>
  33750. <field name="endLine" type="int"
  33751. transient="false" volatile="false"
  33752. static="false" final="false" visibility="public"
  33753. deprecated="not deprecated">
  33754. <doc>
  33755. <![CDATA[beginLine and beginColumn describe the position of the first character
  33756. of this token; endLine and endColumn describe the position of the
  33757. last character of this token.]]>
  33758. </doc>
  33759. </field>
  33760. <field name="endColumn" type="int"
  33761. transient="false" volatile="false"
  33762. static="false" final="false" visibility="public"
  33763. deprecated="not deprecated">
  33764. <doc>
  33765. <![CDATA[beginLine and beginColumn describe the position of the first character
  33766. of this token; endLine and endColumn describe the position of the
  33767. last character of this token.]]>
  33768. </doc>
  33769. </field>
  33770. <field name="image" type="java.lang.String"
  33771. transient="false" volatile="false"
  33772. static="false" final="false" visibility="public"
  33773. deprecated="not deprecated">
  33774. <doc>
  33775. <![CDATA[The string image of the token.]]>
  33776. </doc>
  33777. </field>
  33778. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  33779. transient="false" volatile="false"
  33780. static="false" final="false" visibility="public"
  33781. deprecated="not deprecated">
  33782. <doc>
  33783. <![CDATA[A reference to the next regular (non-special) token from the input
  33784. stream. If this is the last token from the input stream, or if the
  33785. token manager has not read tokens beyond this one, this field is
  33786. set to null. This is true only if this token is also a regular
  33787. token. Otherwise, see below for a description of the contents of
  33788. this field.]]>
  33789. </doc>
  33790. </field>
  33791. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  33792. transient="false" volatile="false"
  33793. static="false" final="false" visibility="public"
  33794. deprecated="not deprecated">
  33795. <doc>
  33796. <![CDATA[This field is used to access special tokens that occur prior to this
  33797. token, but after the immediately preceding regular (non-special) token.
  33798. If there are no such special tokens, this field is set to null.
  33799. When there are more than one such special token, this field refers
  33800. to the last of these special tokens, which in turn refers to the next
  33801. previous special token through its specialToken field, and so on
  33802. until the first special token (whose specialToken field is null).
  33803. The next fields of special tokens refer to other special tokens that
  33804. immediately follow it (without an intervening regular token). If there
  33805. is no such token, this field is null.]]>
  33806. </doc>
  33807. </field>
  33808. <doc>
  33809. <![CDATA[Describes the input token stream.]]>
  33810. </doc>
  33811. </class>
  33812. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  33813. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  33814. <class name="TokenMgrError" extends="java.lang.Error"
  33815. abstract="false"
  33816. static="false" final="false" visibility="public"
  33817. deprecated="not deprecated">
  33818. <constructor name="TokenMgrError"
  33819. static="false" final="false" visibility="public"
  33820. deprecated="not deprecated">
  33821. </constructor>
  33822. <constructor name="TokenMgrError" type="java.lang.String, int"
  33823. static="false" final="false" visibility="public"
  33824. deprecated="not deprecated">
  33825. </constructor>
  33826. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  33827. static="false" final="false" visibility="public"
  33828. deprecated="not deprecated">
  33829. </constructor>
  33830. <method name="addEscapes" return="java.lang.String"
  33831. abstract="false" native="false" synchronized="false"
  33832. static="true" final="true" visibility="protected"
  33833. deprecated="not deprecated">
  33834. <param name="str" type="java.lang.String"/>
  33835. <doc>
  33836. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  33837. equivalents in the given string]]>
  33838. </doc>
  33839. </method>
  33840. <method name="LexicalError" return="java.lang.String"
  33841. abstract="false" native="false" synchronized="false"
  33842. static="true" final="false" visibility="protected"
  33843. deprecated="not deprecated">
  33844. <param name="EOFSeen" type="boolean"/>
  33845. <param name="lexState" type="int"/>
  33846. <param name="errorLine" type="int"/>
  33847. <param name="errorColumn" type="int"/>
  33848. <param name="errorAfter" type="java.lang.String"/>
  33849. <param name="curChar" type="char"/>
  33850. <doc>
  33851. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  33852. token manager to indicate a lexical error.
  33853. Parameters :
  33854. EOFSeen : indicates if EOF caused the lexicl error
  33855. curLexState : lexical state in which this error occured
  33856. errorLine : line number when the error occured
  33857. errorColumn : column number when the error occured
  33858. errorAfter : prefix that was seen before this error occured
  33859. curchar : the offending character
  33860. Note: You can customize the lexical error message by modifying this method.]]>
  33861. </doc>
  33862. </method>
  33863. <method name="getMessage" 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[You can also modify the body of this method to customize your error messages.
  33869. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  33870. of end-users concern, so you can return something like :
  33871. "Internal Error : Please file a bug report .... "
  33872. from this method for such cases in the release version of your parser.]]>
  33873. </doc>
  33874. </method>
  33875. </class>
  33876. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  33877. </package>
  33878. <package name="org.apache.hadoop.record.meta">
  33879. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  33880. <class name="FieldTypeInfo" extends="java.lang.Object"
  33881. abstract="false"
  33882. static="false" final="false" visibility="public"
  33883. deprecated="not deprecated">
  33884. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  33885. abstract="false" native="false" synchronized="false"
  33886. static="false" final="false" visibility="public"
  33887. deprecated="not deprecated">
  33888. <doc>
  33889. <![CDATA[get the field's TypeID object]]>
  33890. </doc>
  33891. </method>
  33892. <method name="getFieldID" return="java.lang.String"
  33893. abstract="false" native="false" synchronized="false"
  33894. static="false" final="false" visibility="public"
  33895. deprecated="not deprecated">
  33896. <doc>
  33897. <![CDATA[get the field's id (name)]]>
  33898. </doc>
  33899. </method>
  33900. <method name="equals" return="boolean"
  33901. abstract="false" native="false" synchronized="false"
  33902. static="false" final="false" visibility="public"
  33903. deprecated="not deprecated">
  33904. <param name="o" type="java.lang.Object"/>
  33905. <doc>
  33906. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  33907. </doc>
  33908. </method>
  33909. <method name="hashCode" return="int"
  33910. abstract="false" native="false" synchronized="false"
  33911. static="false" final="false" visibility="public"
  33912. deprecated="not deprecated">
  33913. <doc>
  33914. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  33915. be used as a hashmap key]]>
  33916. </doc>
  33917. </method>
  33918. <method name="equals" return="boolean"
  33919. abstract="false" native="false" synchronized="false"
  33920. static="false" final="false" visibility="public"
  33921. deprecated="not deprecated">
  33922. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  33923. </method>
  33924. <doc>
  33925. <![CDATA[Represents a type information for a field, which is made up of its
  33926. ID (name) and its type (a TypeID object).]]>
  33927. </doc>
  33928. </class>
  33929. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  33930. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  33931. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  33932. abstract="false"
  33933. static="false" final="false" visibility="public"
  33934. deprecated="not deprecated">
  33935. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  33936. static="false" final="false" visibility="public"
  33937. deprecated="not deprecated">
  33938. </constructor>
  33939. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  33940. abstract="false" native="false" synchronized="false"
  33941. static="false" final="false" visibility="public"
  33942. deprecated="not deprecated">
  33943. <doc>
  33944. <![CDATA[get the TypeID of the map's key element]]>
  33945. </doc>
  33946. </method>
  33947. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  33948. abstract="false" native="false" synchronized="false"
  33949. static="false" final="false" visibility="public"
  33950. deprecated="not deprecated">
  33951. <doc>
  33952. <![CDATA[get the TypeID of the map's value element]]>
  33953. </doc>
  33954. </method>
  33955. <method name="equals" return="boolean"
  33956. abstract="false" native="false" synchronized="false"
  33957. static="false" final="false" visibility="public"
  33958. deprecated="not deprecated">
  33959. <param name="o" type="java.lang.Object"/>
  33960. <doc>
  33961. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  33962. same type]]>
  33963. </doc>
  33964. </method>
  33965. <method name="hashCode" return="int"
  33966. abstract="false" native="false" synchronized="false"
  33967. static="false" final="false" visibility="public"
  33968. deprecated="not deprecated">
  33969. <doc>
  33970. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  33971. be used as a hashmap key]]>
  33972. </doc>
  33973. </method>
  33974. <doc>
  33975. <![CDATA[Represents typeID for a Map]]>
  33976. </doc>
  33977. </class>
  33978. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  33979. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  33980. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  33981. abstract="false"
  33982. static="false" final="false" visibility="public"
  33983. deprecated="not deprecated">
  33984. <constructor name="RecordTypeInfo"
  33985. static="false" final="false" visibility="public"
  33986. deprecated="not deprecated">
  33987. <doc>
  33988. <![CDATA[Create an empty RecordTypeInfo object.]]>
  33989. </doc>
  33990. </constructor>
  33991. <constructor name="RecordTypeInfo" type="java.lang.String"
  33992. static="false" final="false" visibility="public"
  33993. deprecated="not deprecated">
  33994. <doc>
  33995. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  33996. @param name Name of the record]]>
  33997. </doc>
  33998. </constructor>
  33999. <method name="getName" return="java.lang.String"
  34000. abstract="false" native="false" synchronized="false"
  34001. static="false" final="false" visibility="public"
  34002. deprecated="not deprecated">
  34003. <doc>
  34004. <![CDATA[return the name of the record]]>
  34005. </doc>
  34006. </method>
  34007. <method name="setName"
  34008. abstract="false" native="false" synchronized="false"
  34009. static="false" final="false" visibility="public"
  34010. deprecated="not deprecated">
  34011. <param name="name" type="java.lang.String"/>
  34012. <doc>
  34013. <![CDATA[set the name of the record]]>
  34014. </doc>
  34015. </method>
  34016. <method name="addField"
  34017. abstract="false" native="false" synchronized="false"
  34018. static="false" final="false" visibility="public"
  34019. deprecated="not deprecated">
  34020. <param name="fieldName" type="java.lang.String"/>
  34021. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  34022. <doc>
  34023. <![CDATA[Add a field.
  34024. @param fieldName Name of the field
  34025. @param tid Type ID of the field]]>
  34026. </doc>
  34027. </method>
  34028. <method name="getFieldTypeInfos" return="java.util.Collection"
  34029. abstract="false" native="false" synchronized="false"
  34030. static="false" final="false" visibility="public"
  34031. deprecated="not deprecated">
  34032. <doc>
  34033. <![CDATA[Return a collection of field type infos]]>
  34034. </doc>
  34035. </method>
  34036. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  34037. abstract="false" native="false" synchronized="false"
  34038. static="false" final="false" visibility="public"
  34039. deprecated="not deprecated">
  34040. <param name="name" type="java.lang.String"/>
  34041. <doc>
  34042. <![CDATA[Return the type info of a nested record. We only consider nesting
  34043. to one level.
  34044. @param name Name of the nested record]]>
  34045. </doc>
  34046. </method>
  34047. <method name="serialize"
  34048. abstract="false" native="false" synchronized="false"
  34049. static="false" final="false" visibility="public"
  34050. deprecated="not deprecated">
  34051. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  34052. <param name="tag" type="java.lang.String"/>
  34053. <exception name="IOException" type="java.io.IOException"/>
  34054. <doc>
  34055. <![CDATA[Serialize the type information for a record]]>
  34056. </doc>
  34057. </method>
  34058. <method name="deserialize"
  34059. abstract="false" native="false" synchronized="false"
  34060. static="false" final="false" visibility="public"
  34061. deprecated="not deprecated">
  34062. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  34063. <param name="tag" type="java.lang.String"/>
  34064. <exception name="IOException" type="java.io.IOException"/>
  34065. <doc>
  34066. <![CDATA[Deserialize the type information for a record]]>
  34067. </doc>
  34068. </method>
  34069. <method name="compareTo" return="int"
  34070. abstract="false" native="false" synchronized="false"
  34071. static="false" final="false" visibility="public"
  34072. deprecated="not deprecated">
  34073. <param name="peer_" type="java.lang.Object"/>
  34074. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  34075. <doc>
  34076. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  34077. for anything besides de/serializing.
  34078. So we always throw an exception.
  34079. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  34080. </doc>
  34081. </method>
  34082. <doc>
  34083. <![CDATA[A record's Type Information object which can read/write itself.
  34084. Type information for a record comprises metadata about the record,
  34085. as well as a collection of type information for each field in the record.]]>
  34086. </doc>
  34087. </class>
  34088. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  34089. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  34090. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34091. abstract="false"
  34092. static="false" final="false" visibility="public"
  34093. deprecated="not deprecated">
  34094. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  34095. static="false" final="false" visibility="public"
  34096. deprecated="not deprecated">
  34097. <doc>
  34098. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  34099. </doc>
  34100. </constructor>
  34101. <method name="getFieldTypeInfos" return="java.util.Collection"
  34102. abstract="false" native="false" synchronized="false"
  34103. static="false" final="false" visibility="public"
  34104. deprecated="not deprecated">
  34105. </method>
  34106. <doc>
  34107. <![CDATA[Represents typeID for a struct]]>
  34108. </doc>
  34109. </class>
  34110. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  34111. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  34112. <class name="TypeID" extends="java.lang.Object"
  34113. abstract="false"
  34114. static="false" final="false" visibility="public"
  34115. deprecated="not deprecated">
  34116. <method name="getTypeVal" return="byte"
  34117. abstract="false" native="false" synchronized="false"
  34118. static="false" final="false" visibility="public"
  34119. deprecated="not deprecated">
  34120. <doc>
  34121. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  34122. </doc>
  34123. </method>
  34124. <method name="equals" return="boolean"
  34125. abstract="false" native="false" synchronized="false"
  34126. static="false" final="false" visibility="public"
  34127. deprecated="not deprecated">
  34128. <param name="o" type="java.lang.Object"/>
  34129. <doc>
  34130. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  34131. </doc>
  34132. </method>
  34133. <method name="hashCode" return="int"
  34134. abstract="false" native="false" synchronized="false"
  34135. static="false" final="false" visibility="public"
  34136. deprecated="not deprecated">
  34137. <doc>
  34138. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34139. be used as a hashmap key]]>
  34140. </doc>
  34141. </method>
  34142. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34143. transient="false" volatile="false"
  34144. static="true" final="true" visibility="public"
  34145. deprecated="not deprecated">
  34146. <doc>
  34147. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  34148. </doc>
  34149. </field>
  34150. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34151. transient="false" volatile="false"
  34152. static="true" final="true" visibility="public"
  34153. deprecated="not deprecated">
  34154. </field>
  34155. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34156. transient="false" volatile="false"
  34157. static="true" final="true" visibility="public"
  34158. deprecated="not deprecated">
  34159. </field>
  34160. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34161. transient="false" volatile="false"
  34162. static="true" final="true" visibility="public"
  34163. deprecated="not deprecated">
  34164. </field>
  34165. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34166. transient="false" volatile="false"
  34167. static="true" final="true" visibility="public"
  34168. deprecated="not deprecated">
  34169. </field>
  34170. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34171. transient="false" volatile="false"
  34172. static="true" final="true" visibility="public"
  34173. deprecated="not deprecated">
  34174. </field>
  34175. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34176. transient="false" volatile="false"
  34177. static="true" final="true" visibility="public"
  34178. deprecated="not deprecated">
  34179. </field>
  34180. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34181. transient="false" volatile="false"
  34182. static="true" final="true" visibility="public"
  34183. deprecated="not deprecated">
  34184. </field>
  34185. <field name="typeVal" type="byte"
  34186. transient="false" volatile="false"
  34187. static="false" final="false" visibility="protected"
  34188. deprecated="not deprecated">
  34189. </field>
  34190. <doc>
  34191. <![CDATA[Represents typeID for basic types.]]>
  34192. </doc>
  34193. </class>
  34194. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  34195. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  34196. <class name="TypeID.RIOType" extends="java.lang.Object"
  34197. abstract="false"
  34198. static="true" final="true" visibility="public"
  34199. deprecated="not deprecated">
  34200. <constructor name="TypeID.RIOType"
  34201. static="false" final="false" visibility="public"
  34202. deprecated="not deprecated">
  34203. </constructor>
  34204. <field name="BOOL" type="byte"
  34205. transient="false" volatile="false"
  34206. static="true" final="true" visibility="public"
  34207. deprecated="not deprecated">
  34208. </field>
  34209. <field name="BUFFER" type="byte"
  34210. transient="false" volatile="false"
  34211. static="true" final="true" visibility="public"
  34212. deprecated="not deprecated">
  34213. </field>
  34214. <field name="BYTE" type="byte"
  34215. transient="false" volatile="false"
  34216. static="true" final="true" visibility="public"
  34217. deprecated="not deprecated">
  34218. </field>
  34219. <field name="DOUBLE" type="byte"
  34220. transient="false" volatile="false"
  34221. static="true" final="true" visibility="public"
  34222. deprecated="not deprecated">
  34223. </field>
  34224. <field name="FLOAT" type="byte"
  34225. transient="false" volatile="false"
  34226. static="true" final="true" visibility="public"
  34227. deprecated="not deprecated">
  34228. </field>
  34229. <field name="INT" type="byte"
  34230. transient="false" volatile="false"
  34231. static="true" final="true" visibility="public"
  34232. deprecated="not deprecated">
  34233. </field>
  34234. <field name="LONG" type="byte"
  34235. transient="false" volatile="false"
  34236. static="true" final="true" visibility="public"
  34237. deprecated="not deprecated">
  34238. </field>
  34239. <field name="MAP" type="byte"
  34240. transient="false" volatile="false"
  34241. static="true" final="true" visibility="public"
  34242. deprecated="not deprecated">
  34243. </field>
  34244. <field name="STRING" type="byte"
  34245. transient="false" volatile="false"
  34246. static="true" final="true" visibility="public"
  34247. deprecated="not deprecated">
  34248. </field>
  34249. <field name="STRUCT" type="byte"
  34250. transient="false" volatile="false"
  34251. static="true" final="true" visibility="public"
  34252. deprecated="not deprecated">
  34253. </field>
  34254. <field name="VECTOR" type="byte"
  34255. transient="false" volatile="false"
  34256. static="true" final="true" visibility="public"
  34257. deprecated="not deprecated">
  34258. </field>
  34259. <doc>
  34260. <![CDATA[constants representing the IDL types we support]]>
  34261. </doc>
  34262. </class>
  34263. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  34264. <!-- start class org.apache.hadoop.record.meta.Utils -->
  34265. <class name="Utils" extends="java.lang.Object"
  34266. abstract="false"
  34267. static="false" final="false" visibility="public"
  34268. deprecated="not deprecated">
  34269. <method name="skip"
  34270. abstract="false" native="false" synchronized="false"
  34271. static="true" final="false" visibility="public"
  34272. deprecated="not deprecated">
  34273. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  34274. <param name="tag" type="java.lang.String"/>
  34275. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  34276. <exception name="IOException" type="java.io.IOException"/>
  34277. <doc>
  34278. <![CDATA[read/skip bytes from stream based on a type]]>
  34279. </doc>
  34280. </method>
  34281. <doc>
  34282. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  34283. </doc>
  34284. </class>
  34285. <!-- end class org.apache.hadoop.record.meta.Utils -->
  34286. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  34287. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34288. abstract="false"
  34289. static="false" final="false" visibility="public"
  34290. deprecated="not deprecated">
  34291. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34292. static="false" final="false" visibility="public"
  34293. deprecated="not deprecated">
  34294. </constructor>
  34295. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34296. abstract="false" native="false" synchronized="false"
  34297. static="false" final="false" visibility="public"
  34298. deprecated="not deprecated">
  34299. </method>
  34300. <method name="equals" return="boolean"
  34301. abstract="false" native="false" synchronized="false"
  34302. static="false" final="false" visibility="public"
  34303. deprecated="not deprecated">
  34304. <param name="o" type="java.lang.Object"/>
  34305. <doc>
  34306. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  34307. same type]]>
  34308. </doc>
  34309. </method>
  34310. <method name="hashCode" return="int"
  34311. abstract="false" native="false" synchronized="false"
  34312. static="false" final="false" visibility="public"
  34313. deprecated="not deprecated">
  34314. <doc>
  34315. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34316. be used as a hashmap key]]>
  34317. </doc>
  34318. </method>
  34319. <doc>
  34320. <![CDATA[Represents typeID for vector.]]>
  34321. </doc>
  34322. </class>
  34323. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  34324. </package>
  34325. <package name="org.apache.hadoop.security">
  34326. <!-- start class org.apache.hadoop.security.AccessControlException -->
  34327. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  34328. abstract="false"
  34329. static="false" final="false" visibility="public"
  34330. deprecated="not deprecated">
  34331. <constructor name="AccessControlException"
  34332. static="false" final="false" visibility="public"
  34333. deprecated="not deprecated">
  34334. <doc>
  34335. <![CDATA[Default constructor is needed for unwrapping from
  34336. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  34337. </doc>
  34338. </constructor>
  34339. <constructor name="AccessControlException" type="java.lang.String"
  34340. static="false" final="false" visibility="public"
  34341. deprecated="not deprecated">
  34342. <doc>
  34343. <![CDATA[Constructs an {@link AccessControlException}
  34344. with the specified detail message.
  34345. @param s the detail message.]]>
  34346. </doc>
  34347. </constructor>
  34348. <constructor name="AccessControlException" type="java.lang.Throwable"
  34349. static="false" final="false" visibility="public"
  34350. deprecated="not deprecated">
  34351. <doc>
  34352. <![CDATA[Constructs a new exception with the specified cause and a detail
  34353. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  34354. typically contains the class and detail message of <tt>cause</tt>).
  34355. @param cause the cause (which is saved for later retrieval by the
  34356. {@link #getCause()} method). (A <tt>null</tt> value is
  34357. permitted, and indicates that the cause is nonexistent or
  34358. unknown.)]]>
  34359. </doc>
  34360. </constructor>
  34361. <doc>
  34362. <![CDATA[An exception class for access control related issues.]]>
  34363. </doc>
  34364. </class>
  34365. <!-- end class org.apache.hadoop.security.AccessControlException -->
  34366. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  34367. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  34368. abstract="false"
  34369. static="false" final="false" visibility="public"
  34370. deprecated="not deprecated">
  34371. <constructor name="AuthenticationFilterInitializer"
  34372. static="false" final="false" visibility="public"
  34373. deprecated="not deprecated">
  34374. </constructor>
  34375. <method name="initFilter"
  34376. abstract="false" native="false" synchronized="false"
  34377. static="false" final="false" visibility="public"
  34378. deprecated="not deprecated">
  34379. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  34380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34381. <doc>
  34382. <![CDATA[Initializes Alfredo AuthenticationFilter.
  34383. <p/>
  34384. Propagates to Alfredo AuthenticationFilter configuration all Hadoop
  34385. configuration properties prefixed with "hadoop.http.authentication."
  34386. @param container The filter container
  34387. @param conf Configuration for run-time parameters]]>
  34388. </doc>
  34389. </method>
  34390. <doc>
  34391. <![CDATA[Initializes Alfredo AuthenticationFilter which provides support for
  34392. Kerberos HTTP SPENGO authentication.
  34393. <p/>
  34394. It enables anonymous access, simple/speudo and Kerberos HTTP SPNEGO
  34395. authentication for Hadoop JobTracker, NameNode, DataNodes and
  34396. TaskTrackers.
  34397. <p/>
  34398. Refer to the <code>core-default.xml</code> file, after the comment
  34399. 'HTTP Authentication' for details on the configuration options.
  34400. All related configuration properties have 'hadoop.http.authentication.'
  34401. as prefix.]]>
  34402. </doc>
  34403. </class>
  34404. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  34405. <!-- start class org.apache.hadoop.security.Credentials -->
  34406. <class name="Credentials" extends="java.lang.Object"
  34407. abstract="false"
  34408. static="false" final="false" visibility="public"
  34409. deprecated="not deprecated">
  34410. <implements name="org.apache.hadoop.io.Writable"/>
  34411. <constructor name="Credentials"
  34412. static="false" final="false" visibility="public"
  34413. deprecated="not deprecated">
  34414. </constructor>
  34415. <method name="getSecretKey" return="byte[]"
  34416. abstract="false" native="false" synchronized="false"
  34417. static="false" final="false" visibility="public"
  34418. deprecated="not deprecated">
  34419. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34420. <doc>
  34421. <![CDATA[Returns the key bytes for the alias
  34422. @param alias the alias for the key
  34423. @return key for this alias]]>
  34424. </doc>
  34425. </method>
  34426. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  34427. abstract="false" native="false" synchronized="false"
  34428. static="false" final="false" visibility="public"
  34429. deprecated="not deprecated">
  34430. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34431. <doc>
  34432. <![CDATA[Returns the Token object for the alias
  34433. @param alias the alias for the Token
  34434. @return token for this alias]]>
  34435. </doc>
  34436. </method>
  34437. <method name="addToken"
  34438. abstract="false" native="false" synchronized="false"
  34439. static="false" final="false" visibility="public"
  34440. deprecated="not deprecated">
  34441. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34442. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  34443. <doc>
  34444. <![CDATA[Add a token in the storage (in memory)
  34445. @param alias the alias for the key
  34446. @param t the token object]]>
  34447. </doc>
  34448. </method>
  34449. <method name="getAllTokens" return="java.util.Collection"
  34450. abstract="false" native="false" synchronized="false"
  34451. static="false" final="false" visibility="public"
  34452. deprecated="not deprecated">
  34453. <doc>
  34454. <![CDATA[Return all the tokens in the in-memory map]]>
  34455. </doc>
  34456. </method>
  34457. <method name="numberOfTokens" return="int"
  34458. abstract="false" native="false" synchronized="false"
  34459. static="false" final="false" visibility="public"
  34460. deprecated="not deprecated">
  34461. <doc>
  34462. <![CDATA[@return number of Tokens in the in-memory map]]>
  34463. </doc>
  34464. </method>
  34465. <method name="numberOfSecretKeys" return="int"
  34466. abstract="false" native="false" synchronized="false"
  34467. static="false" final="false" visibility="public"
  34468. deprecated="not deprecated">
  34469. <doc>
  34470. <![CDATA[@return number of keys in the in-memory map]]>
  34471. </doc>
  34472. </method>
  34473. <method name="addSecretKey"
  34474. abstract="false" native="false" synchronized="false"
  34475. static="false" final="false" visibility="public"
  34476. deprecated="not deprecated">
  34477. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34478. <param name="key" type="byte[]"/>
  34479. <doc>
  34480. <![CDATA[Set the key for an alias
  34481. @param alias the alias for the key
  34482. @param key the key bytes]]>
  34483. </doc>
  34484. </method>
  34485. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  34486. abstract="false" native="false" synchronized="false"
  34487. static="true" final="false" visibility="public"
  34488. deprecated="not deprecated">
  34489. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  34490. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34491. <exception name="IOException" type="java.io.IOException"/>
  34492. <doc>
  34493. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  34494. therein in the passed UGI
  34495. @param filename
  34496. @param conf
  34497. @throws IOException]]>
  34498. </doc>
  34499. </method>
  34500. <method name="readTokenStorageStream"
  34501. abstract="false" native="false" synchronized="false"
  34502. static="false" final="false" visibility="public"
  34503. deprecated="not deprecated">
  34504. <param name="in" type="java.io.DataInputStream"/>
  34505. <exception name="IOException" type="java.io.IOException"/>
  34506. <doc>
  34507. <![CDATA[Convenience method for reading a token storage file directly from a
  34508. datainputstream]]>
  34509. </doc>
  34510. </method>
  34511. <method name="writeTokenStorageToStream"
  34512. abstract="false" native="false" synchronized="false"
  34513. static="false" final="false" visibility="public"
  34514. deprecated="not deprecated">
  34515. <param name="os" type="java.io.DataOutputStream"/>
  34516. <exception name="IOException" type="java.io.IOException"/>
  34517. </method>
  34518. <method name="writeTokenStorageFile"
  34519. abstract="false" native="false" synchronized="false"
  34520. static="false" final="false" visibility="public"
  34521. deprecated="not deprecated">
  34522. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  34523. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34524. <exception name="IOException" type="java.io.IOException"/>
  34525. </method>
  34526. <method name="write"
  34527. abstract="false" native="false" synchronized="false"
  34528. static="false" final="false" visibility="public"
  34529. deprecated="not deprecated">
  34530. <param name="out" type="java.io.DataOutput"/>
  34531. <exception name="IOException" type="java.io.IOException"/>
  34532. <doc>
  34533. <![CDATA[Stores all the keys to DataOutput
  34534. @param out
  34535. @throws IOException]]>
  34536. </doc>
  34537. </method>
  34538. <method name="readFields"
  34539. abstract="false" native="false" synchronized="false"
  34540. static="false" final="false" visibility="public"
  34541. deprecated="not deprecated">
  34542. <param name="in" type="java.io.DataInput"/>
  34543. <exception name="IOException" type="java.io.IOException"/>
  34544. <doc>
  34545. <![CDATA[Loads all the keys
  34546. @param in
  34547. @throws IOException]]>
  34548. </doc>
  34549. </method>
  34550. <method name="addAll"
  34551. abstract="false" native="false" synchronized="false"
  34552. static="false" final="false" visibility="public"
  34553. deprecated="not deprecated">
  34554. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  34555. <doc>
  34556. <![CDATA[Copy all of the credentials from one credential object into another.
  34557. @param other the credentials to copy]]>
  34558. </doc>
  34559. </method>
  34560. <doc>
  34561. <![CDATA[A class that provides the facilities of reading and writing
  34562. secret keys and Tokens.]]>
  34563. </doc>
  34564. </class>
  34565. <!-- end class org.apache.hadoop.security.Credentials -->
  34566. <!-- start class org.apache.hadoop.security.Groups -->
  34567. <class name="Groups" extends="java.lang.Object"
  34568. abstract="false"
  34569. static="false" final="false" visibility="public"
  34570. deprecated="not deprecated">
  34571. <constructor name="Groups" type="org.apache.hadoop.conf.Configuration"
  34572. static="false" final="false" visibility="public"
  34573. deprecated="not deprecated">
  34574. </constructor>
  34575. <method name="getGroups" return="java.util.List"
  34576. abstract="false" native="false" synchronized="false"
  34577. static="false" final="false" visibility="public"
  34578. deprecated="not deprecated">
  34579. <param name="user" type="java.lang.String"/>
  34580. <exception name="IOException" type="java.io.IOException"/>
  34581. <doc>
  34582. <![CDATA[Get the group memberships of a given user.
  34583. @param user User's name
  34584. @return the group memberships of the user
  34585. @throws IOException]]>
  34586. </doc>
  34587. </method>
  34588. <method name="refresh"
  34589. abstract="false" native="false" synchronized="false"
  34590. static="false" final="false" visibility="public"
  34591. deprecated="not deprecated">
  34592. <doc>
  34593. <![CDATA[Refresh all user-to-groups mappings.]]>
  34594. </doc>
  34595. </method>
  34596. <method name="cacheGroupsAdd"
  34597. abstract="false" native="false" synchronized="false"
  34598. static="false" final="false" visibility="public"
  34599. deprecated="not deprecated">
  34600. <param name="groups" type="java.util.List"/>
  34601. </method>
  34602. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  34603. abstract="false" native="false" synchronized="false"
  34604. static="true" final="false" visibility="public"
  34605. deprecated="not deprecated">
  34606. <doc>
  34607. <![CDATA[Get the groups being used to map user-to-groups.
  34608. @return the groups being used to map user-to-groups.]]>
  34609. </doc>
  34610. </method>
  34611. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  34612. abstract="false" native="false" synchronized="false"
  34613. static="true" final="false" visibility="public"
  34614. deprecated="not deprecated">
  34615. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34616. </method>
  34617. <doc>
  34618. <![CDATA[A user-to-groups mapping service.
  34619. {@link Groups} allows for server to get the various group memberships
  34620. of a given user via the {@link #getGroups(String)} call, thus ensuring
  34621. a consistent user-to-groups mapping and protects against vagaries of
  34622. different mappings on servers and clients in a Hadoop cluster.]]>
  34623. </doc>
  34624. </class>
  34625. <!-- end class org.apache.hadoop.security.Groups -->
  34626. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  34627. <class name="JniBasedUnixGroupsMapping" extends="java.lang.Object"
  34628. abstract="false"
  34629. static="false" final="false" visibility="public"
  34630. deprecated="not deprecated">
  34631. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  34632. <constructor name="JniBasedUnixGroupsMapping"
  34633. static="false" final="false" visibility="public"
  34634. deprecated="not deprecated">
  34635. </constructor>
  34636. <method name="getGroups" return="java.util.List"
  34637. abstract="false" native="false" synchronized="false"
  34638. static="false" final="false" visibility="public"
  34639. deprecated="not deprecated">
  34640. <param name="user" type="java.lang.String"/>
  34641. <exception name="IOException" type="java.io.IOException"/>
  34642. </method>
  34643. <method name="cacheGroupsRefresh"
  34644. abstract="false" native="false" synchronized="false"
  34645. static="false" final="false" visibility="public"
  34646. deprecated="not deprecated">
  34647. <exception name="IOException" type="java.io.IOException"/>
  34648. </method>
  34649. <method name="cacheGroupsAdd"
  34650. abstract="false" native="false" synchronized="false"
  34651. static="false" final="false" visibility="public"
  34652. deprecated="not deprecated">
  34653. <param name="groups" type="java.util.List"/>
  34654. <exception name="IOException" type="java.io.IOException"/>
  34655. </method>
  34656. <doc>
  34657. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  34658. that invokes libC calls to get the group
  34659. memberships of a given user.]]>
  34660. </doc>
  34661. </class>
  34662. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  34663. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  34664. <class name="JniBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.JniBasedUnixGroupsMapping"
  34665. abstract="false"
  34666. static="false" final="false" visibility="public"
  34667. deprecated="not deprecated">
  34668. <constructor name="JniBasedUnixGroupsNetgroupMapping"
  34669. static="false" final="false" visibility="public"
  34670. deprecated="not deprecated">
  34671. </constructor>
  34672. <method name="getGroups" return="java.util.List"
  34673. abstract="false" native="false" synchronized="false"
  34674. static="false" final="false" visibility="public"
  34675. deprecated="not deprecated">
  34676. <param name="user" type="java.lang.String"/>
  34677. <exception name="IOException" type="java.io.IOException"/>
  34678. <doc>
  34679. <![CDATA[Gets unix groups and netgroups for the user.
  34680. It gets all unix groups as returned by id -Gn but it
  34681. only returns netgroups that are used in ACLs (there is
  34682. no way to get all netgroups for a given user, see
  34683. documentation for getent netgroup)]]>
  34684. </doc>
  34685. </method>
  34686. <method name="cacheGroupsRefresh"
  34687. abstract="false" native="false" synchronized="false"
  34688. static="false" final="false" visibility="public"
  34689. deprecated="not deprecated">
  34690. <exception name="IOException" type="java.io.IOException"/>
  34691. </method>
  34692. <method name="cacheGroupsAdd"
  34693. abstract="false" native="false" synchronized="false"
  34694. static="false" final="false" visibility="public"
  34695. deprecated="not deprecated">
  34696. <param name="groups" type="java.util.List"/>
  34697. <exception name="IOException" type="java.io.IOException"/>
  34698. </method>
  34699. <method name="getUsersForNetgroup" return="java.util.List"
  34700. abstract="false" native="false" synchronized="true"
  34701. static="false" final="false" visibility="protected"
  34702. deprecated="not deprecated">
  34703. <param name="netgroup" type="java.lang.String"/>
  34704. <doc>
  34705. <![CDATA[Calls JNI function to get users for a netgroup, since C functions
  34706. are not reentrant we need to make this synchronized (see
  34707. documentation for setnetgrent, getnetgrent and endnetgrent)]]>
  34708. </doc>
  34709. </method>
  34710. <doc>
  34711. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  34712. that invokes libC calls to get the group
  34713. memberships of a given user.]]>
  34714. </doc>
  34715. </class>
  34716. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  34717. <!-- start interface org.apache.hadoop.security.KerberosInfo -->
  34718. <interface name="KerberosInfo" abstract="true"
  34719. static="false" final="false" visibility="public"
  34720. deprecated="not deprecated">
  34721. <implements name="java.lang.annotation.Annotation"/>
  34722. <method name="serverPrincipal" return="java.lang.String"
  34723. abstract="false" native="false" synchronized="false"
  34724. static="false" final="false" visibility="public"
  34725. deprecated="not deprecated">
  34726. <doc>
  34727. <![CDATA[Key for getting server's Kerberos principal name from Configuration]]>
  34728. </doc>
  34729. </method>
  34730. <method name="clientPrincipal" return="java.lang.String"
  34731. abstract="false" native="false" synchronized="false"
  34732. static="false" final="false" visibility="public"
  34733. deprecated="not deprecated">
  34734. </method>
  34735. <doc>
  34736. <![CDATA[Indicates Kerberos related information to be used]]>
  34737. </doc>
  34738. </interface>
  34739. <!-- end interface org.apache.hadoop.security.KerberosInfo -->
  34740. <!-- start class org.apache.hadoop.security.KerberosName -->
  34741. <class name="KerberosName" extends="java.lang.Object"
  34742. abstract="false"
  34743. static="false" final="false" visibility="public"
  34744. deprecated="not deprecated">
  34745. <constructor name="KerberosName" type="java.lang.String"
  34746. static="false" final="false" visibility="public"
  34747. deprecated="not deprecated">
  34748. <doc>
  34749. <![CDATA[Create a name from the full Kerberos principal name.
  34750. @param name]]>
  34751. </doc>
  34752. </constructor>
  34753. <method name="getDefaultRealm" return="java.lang.String"
  34754. abstract="false" native="false" synchronized="false"
  34755. static="false" final="false" visibility="public"
  34756. deprecated="not deprecated">
  34757. <doc>
  34758. <![CDATA[Get the configured default realm.
  34759. @return the default realm from the krb5.conf]]>
  34760. </doc>
  34761. </method>
  34762. <method name="toString" return="java.lang.String"
  34763. abstract="false" native="false" synchronized="false"
  34764. static="false" final="false" visibility="public"
  34765. deprecated="not deprecated">
  34766. <doc>
  34767. <![CDATA[Put the name back together from the parts.]]>
  34768. </doc>
  34769. </method>
  34770. <method name="getServiceName" return="java.lang.String"
  34771. abstract="false" native="false" synchronized="false"
  34772. static="false" final="false" visibility="public"
  34773. deprecated="not deprecated">
  34774. <doc>
  34775. <![CDATA[Get the first component of the name.
  34776. @return the first section of the Kerberos principal name]]>
  34777. </doc>
  34778. </method>
  34779. <method name="getHostName" return="java.lang.String"
  34780. abstract="false" native="false" synchronized="false"
  34781. static="false" final="false" visibility="public"
  34782. deprecated="not deprecated">
  34783. <doc>
  34784. <![CDATA[Get the second component of the name.
  34785. @return the second section of the Kerberos principal name, and may be null]]>
  34786. </doc>
  34787. </method>
  34788. <method name="getRealm" return="java.lang.String"
  34789. abstract="false" native="false" synchronized="false"
  34790. static="false" final="false" visibility="public"
  34791. deprecated="not deprecated">
  34792. <doc>
  34793. <![CDATA[Get the realm of the name.
  34794. @return the realm of the name, may be null]]>
  34795. </doc>
  34796. </method>
  34797. <method name="setConfiguration"
  34798. abstract="false" native="false" synchronized="false"
  34799. static="true" final="false" visibility="public"
  34800. deprecated="not deprecated">
  34801. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34802. <exception name="IOException" type="java.io.IOException"/>
  34803. <doc>
  34804. <![CDATA[Set the static configuration to get the rules.
  34805. @param conf the new configuration
  34806. @throws IOException]]>
  34807. </doc>
  34808. </method>
  34809. <method name="setRules"
  34810. abstract="false" native="false" synchronized="false"
  34811. static="true" final="false" visibility="public"
  34812. deprecated="not deprecated">
  34813. <param name="ruleString" type="java.lang.String"/>
  34814. <doc>
  34815. <![CDATA[Set the rules.
  34816. @param ruleString the rules string.]]>
  34817. </doc>
  34818. </method>
  34819. <method name="getShortName" return="java.lang.String"
  34820. abstract="false" native="false" synchronized="false"
  34821. static="false" final="false" visibility="public"
  34822. deprecated="not deprecated">
  34823. <exception name="IOException" type="java.io.IOException"/>
  34824. <doc>
  34825. <![CDATA[Get the translation of the principal name into an operating system
  34826. user name.
  34827. @return the short name
  34828. @throws IOException]]>
  34829. </doc>
  34830. </method>
  34831. <method name="printRules"
  34832. abstract="false" native="false" synchronized="false"
  34833. static="true" final="false" visibility="public"
  34834. deprecated="not deprecated">
  34835. <exception name="IOException" type="java.io.IOException"/>
  34836. </method>
  34837. <method name="main"
  34838. abstract="false" native="false" synchronized="false"
  34839. static="true" final="false" visibility="public"
  34840. deprecated="not deprecated">
  34841. <param name="args" type="java.lang.String[]"/>
  34842. <exception name="Exception" type="java.lang.Exception"/>
  34843. </method>
  34844. <doc>
  34845. <![CDATA[This class implements parsing and handling of Kerberos principal names. In
  34846. particular, it splits them apart and translates them down into local
  34847. operating system names.]]>
  34848. </doc>
  34849. </class>
  34850. <!-- end class org.apache.hadoop.security.KerberosName -->
  34851. <!-- start class org.apache.hadoop.security.KerberosName.BadFormatString -->
  34852. <class name="KerberosName.BadFormatString" extends="java.io.IOException"
  34853. abstract="false"
  34854. static="true" final="false" visibility="public"
  34855. deprecated="not deprecated">
  34856. </class>
  34857. <!-- end class org.apache.hadoop.security.KerberosName.BadFormatString -->
  34858. <!-- start class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  34859. <class name="KerberosName.NoMatchingRule" extends="java.io.IOException"
  34860. abstract="false"
  34861. static="true" final="false" visibility="public"
  34862. deprecated="not deprecated">
  34863. </class>
  34864. <!-- end class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  34865. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  34866. <class name="Krb5AndCertsSslSocketConnector" extends="org.mortbay.jetty.security.SslSocketConnector"
  34867. abstract="false"
  34868. static="false" final="false" visibility="public"
  34869. deprecated="not deprecated">
  34870. <constructor name="Krb5AndCertsSslSocketConnector"
  34871. static="false" final="false" visibility="public"
  34872. deprecated="not deprecated">
  34873. </constructor>
  34874. <constructor name="Krb5AndCertsSslSocketConnector" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34875. static="false" final="false" visibility="public"
  34876. deprecated="not deprecated">
  34877. </constructor>
  34878. <method name="createFactory" return="javax.net.ssl.SSLServerSocketFactory"
  34879. abstract="false" native="false" synchronized="false"
  34880. static="false" final="false" visibility="protected"
  34881. deprecated="not deprecated">
  34882. <exception name="Exception" type="java.lang.Exception"/>
  34883. </method>
  34884. <method name="newServerSocket" return="java.net.ServerSocket"
  34885. abstract="false" native="false" synchronized="false"
  34886. static="false" final="false" visibility="protected"
  34887. deprecated="not deprecated">
  34888. <param name="host" type="java.lang.String"/>
  34889. <param name="port" type="int"/>
  34890. <param name="backlog" type="int"/>
  34891. <exception name="IOException" type="java.io.IOException"/>
  34892. </method>
  34893. <method name="customize"
  34894. abstract="false" native="false" synchronized="false"
  34895. static="false" final="false" visibility="public"
  34896. deprecated="not deprecated">
  34897. <param name="endpoint" type="org.mortbay.io.EndPoint"/>
  34898. <param name="request" type="org.mortbay.jetty.Request"/>
  34899. <exception name="IOException" type="java.io.IOException"/>
  34900. </method>
  34901. <field name="KRB5_CIPHER_SUITES" type="java.util.List"
  34902. transient="false" volatile="false"
  34903. static="true" final="true" visibility="public"
  34904. deprecated="not deprecated">
  34905. </field>
  34906. <doc>
  34907. <![CDATA[Extend Jetty's {@link SslSocketConnector} to optionally also provide
  34908. Kerberos5ized SSL sockets. The only change in behavior from superclass
  34909. is that we no longer honor requests to turn off NeedAuthentication when
  34910. running with Kerberos support.]]>
  34911. </doc>
  34912. </class>
  34913. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  34914. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  34915. <class name="Krb5AndCertsSslSocketConnector.Krb5SslFilter" extends="java.lang.Object"
  34916. abstract="false"
  34917. static="true" final="false" visibility="public"
  34918. deprecated="not deprecated">
  34919. <implements name="javax.servlet.Filter"/>
  34920. <constructor name="Krb5AndCertsSslSocketConnector.Krb5SslFilter"
  34921. static="false" final="false" visibility="public"
  34922. deprecated="not deprecated">
  34923. </constructor>
  34924. <method name="doFilter"
  34925. abstract="false" native="false" synchronized="false"
  34926. static="false" final="false" visibility="public"
  34927. deprecated="not deprecated">
  34928. <param name="req" type="javax.servlet.ServletRequest"/>
  34929. <param name="resp" type="javax.servlet.ServletResponse"/>
  34930. <param name="chain" type="javax.servlet.FilterChain"/>
  34931. <exception name="IOException" type="java.io.IOException"/>
  34932. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34933. </method>
  34934. <method name="init"
  34935. abstract="false" native="false" synchronized="false"
  34936. static="false" final="false" visibility="public"
  34937. deprecated="not deprecated">
  34938. <param name="arg0" type="javax.servlet.FilterConfig"/>
  34939. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34940. </method>
  34941. <method name="destroy"
  34942. abstract="false" native="false" synchronized="false"
  34943. static="false" final="false" visibility="public"
  34944. deprecated="not deprecated">
  34945. </method>
  34946. <doc>
  34947. <![CDATA[Filter that takes the Kerberos principal identified in the
  34948. {@link Krb5AndCertsSslSocketConnector} and provides it the to the servlet
  34949. at runtime, setting the principal and short name.]]>
  34950. </doc>
  34951. </class>
  34952. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  34953. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  34954. <class name="Krb5AndCertsSslSocketConnector.MODE" extends="java.lang.Enum"
  34955. abstract="false"
  34956. static="true" final="true" visibility="public"
  34957. deprecated="not deprecated">
  34958. <method name="values" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE[]"
  34959. abstract="false" native="false" synchronized="false"
  34960. static="true" final="false" visibility="public"
  34961. deprecated="not deprecated">
  34962. </method>
  34963. <method name="valueOf" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34964. abstract="false" native="false" synchronized="false"
  34965. static="true" final="false" visibility="public"
  34966. deprecated="not deprecated">
  34967. <param name="name" type="java.lang.String"/>
  34968. </method>
  34969. <field name="KRB" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34970. transient="false" volatile="false"
  34971. static="true" final="true" visibility="public"
  34972. deprecated="not deprecated">
  34973. </field>
  34974. <field name="CERTS" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34975. transient="false" volatile="false"
  34976. static="true" final="true" visibility="public"
  34977. deprecated="not deprecated">
  34978. </field>
  34979. <field name="BOTH" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  34980. transient="false" volatile="false"
  34981. static="true" final="true" visibility="public"
  34982. deprecated="not deprecated">
  34983. </field>
  34984. </class>
  34985. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  34986. <!-- start class org.apache.hadoop.security.NetgroupCache -->
  34987. <class name="NetgroupCache" extends="java.lang.Object"
  34988. abstract="false"
  34989. static="false" final="false" visibility="public"
  34990. deprecated="not deprecated">
  34991. <constructor name="NetgroupCache"
  34992. static="false" final="false" visibility="public"
  34993. deprecated="not deprecated">
  34994. </constructor>
  34995. <method name="getNetgroups"
  34996. abstract="false" native="false" synchronized="false"
  34997. static="false" final="false" visibility="public"
  34998. deprecated="not deprecated">
  34999. <param name="user" type="java.lang.String"/>
  35000. <param name="groups" type="java.util.List"/>
  35001. </method>
  35002. <method name="getNetgroupNames" return="java.util.List"
  35003. abstract="false" native="false" synchronized="false"
  35004. static="false" final="false" visibility="public"
  35005. deprecated="not deprecated">
  35006. </method>
  35007. <method name="isCached" return="boolean"
  35008. abstract="false" native="false" synchronized="false"
  35009. static="false" final="false" visibility="public"
  35010. deprecated="not deprecated">
  35011. <param name="group" type="java.lang.String"/>
  35012. </method>
  35013. <method name="clear"
  35014. abstract="false" native="false" synchronized="false"
  35015. static="false" final="false" visibility="public"
  35016. deprecated="not deprecated">
  35017. </method>
  35018. <method name="add"
  35019. abstract="false" native="false" synchronized="false"
  35020. static="false" final="false" visibility="public"
  35021. deprecated="not deprecated">
  35022. <param name="group" type="java.lang.String"/>
  35023. <param name="users" type="java.util.List"/>
  35024. </method>
  35025. <doc>
  35026. <![CDATA[Class that caches the netgroups and inverts group-to-user map
  35027. to user-to-group map]]>
  35028. </doc>
  35029. </class>
  35030. <!-- end class org.apache.hadoop.security.NetgroupCache -->
  35031. <!-- start interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  35032. <interface name="RefreshUserMappingsProtocol" abstract="true"
  35033. static="false" final="false" visibility="public"
  35034. deprecated="not deprecated">
  35035. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  35036. <method name="refreshUserToGroupsMappings"
  35037. abstract="false" native="false" synchronized="false"
  35038. static="false" final="false" visibility="public"
  35039. deprecated="not deprecated">
  35040. <exception name="IOException" type="java.io.IOException"/>
  35041. <doc>
  35042. <![CDATA[Refresh user to group mappings.
  35043. @throws IOException]]>
  35044. </doc>
  35045. </method>
  35046. <method name="refreshSuperUserGroupsConfiguration"
  35047. abstract="false" native="false" synchronized="false"
  35048. static="false" final="false" visibility="public"
  35049. deprecated="not deprecated">
  35050. <exception name="IOException" type="java.io.IOException"/>
  35051. <doc>
  35052. <![CDATA[Refresh superuser proxy group list
  35053. @throws IOException]]>
  35054. </doc>
  35055. </method>
  35056. <field name="versionID" type="long"
  35057. transient="false" volatile="false"
  35058. static="true" final="true" visibility="public"
  35059. deprecated="not deprecated">
  35060. <doc>
  35061. <![CDATA[Version 1: Initial version.]]>
  35062. </doc>
  35063. </field>
  35064. <doc>
  35065. <![CDATA[Protocol use]]>
  35066. </doc>
  35067. </interface>
  35068. <!-- end interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  35069. <!-- start class org.apache.hadoop.security.SaslInputStream -->
  35070. <class name="SaslInputStream" extends="java.io.InputStream"
  35071. abstract="false"
  35072. static="false" final="false" visibility="public"
  35073. deprecated="not deprecated">
  35074. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslServer"
  35075. static="false" final="false" visibility="public"
  35076. deprecated="not deprecated">
  35077. <doc>
  35078. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslServer <br>
  35079. Note: if the specified InputStream or SaslServer is null, a
  35080. NullPointerException may be thrown later when they are used.
  35081. @param inStream
  35082. the InputStream to be processed
  35083. @param saslServer
  35084. an initialized SaslServer object]]>
  35085. </doc>
  35086. </constructor>
  35087. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslClient"
  35088. static="false" final="false" visibility="public"
  35089. deprecated="not deprecated">
  35090. <doc>
  35091. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslClient <br>
  35092. Note: if the specified InputStream or SaslClient is null, a
  35093. NullPointerException may be thrown later when they are used.
  35094. @param inStream
  35095. the InputStream to be processed
  35096. @param saslClient
  35097. an initialized SaslClient object]]>
  35098. </doc>
  35099. </constructor>
  35100. <method name="read" return="int"
  35101. abstract="false" native="false" synchronized="false"
  35102. static="false" final="false" visibility="public"
  35103. deprecated="not deprecated">
  35104. <exception name="IOException" type="java.io.IOException"/>
  35105. <doc>
  35106. <![CDATA[Reads the next byte of data from this input stream. The value byte is
  35107. returned as an <code>int</code> in the range <code>0</code> to
  35108. <code>255</code>. If no byte is available because the end of the stream has
  35109. been reached, the value <code>-1</code> is returned. This method blocks
  35110. until input data is available, the end of the stream is detected, or an
  35111. exception is thrown.
  35112. <p>
  35113. @return the next byte of data, or <code>-1</code> if the end of the stream
  35114. is reached.
  35115. @exception IOException
  35116. if an I/O error occurs.]]>
  35117. </doc>
  35118. </method>
  35119. <method name="read" return="int"
  35120. abstract="false" native="false" synchronized="false"
  35121. static="false" final="false" visibility="public"
  35122. deprecated="not deprecated">
  35123. <param name="b" type="byte[]"/>
  35124. <exception name="IOException" type="java.io.IOException"/>
  35125. <doc>
  35126. <![CDATA[Reads up to <code>b.length</code> bytes of data from this input stream into
  35127. an array of bytes.
  35128. <p>
  35129. The <code>read</code> method of <code>InputStream</code> calls the
  35130. <code>read</code> method of three arguments with the arguments
  35131. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  35132. @param b
  35133. the buffer into which the data is read.
  35134. @return the total number of bytes read into the buffer, or <code>-1</code>
  35135. is there is no more data because the end of the stream has been
  35136. reached.
  35137. @exception IOException
  35138. if an I/O error occurs.]]>
  35139. </doc>
  35140. </method>
  35141. <method name="read" return="int"
  35142. abstract="false" native="false" synchronized="false"
  35143. static="false" final="false" visibility="public"
  35144. deprecated="not deprecated">
  35145. <param name="b" type="byte[]"/>
  35146. <param name="off" type="int"/>
  35147. <param name="len" type="int"/>
  35148. <exception name="IOException" type="java.io.IOException"/>
  35149. <doc>
  35150. <![CDATA[Reads up to <code>len</code> bytes of data from this input stream into an
  35151. array of bytes. This method blocks until some input is available. If the
  35152. first argument is <code>null,</code> up to <code>len</code> bytes are read
  35153. and discarded.
  35154. @param b
  35155. the buffer into which the data is read.
  35156. @param off
  35157. the start offset of the data.
  35158. @param len
  35159. the maximum number of bytes read.
  35160. @return the total number of bytes read into the buffer, or <code>-1</code>
  35161. if there is no more data because the end of the stream has been
  35162. reached.
  35163. @exception IOException
  35164. if an I/O error occurs.]]>
  35165. </doc>
  35166. </method>
  35167. <method name="skip" return="long"
  35168. abstract="false" native="false" synchronized="false"
  35169. static="false" final="false" visibility="public"
  35170. deprecated="not deprecated">
  35171. <param name="n" type="long"/>
  35172. <exception name="IOException" type="java.io.IOException"/>
  35173. <doc>
  35174. <![CDATA[Skips <code>n</code> bytes of input from the bytes that can be read from
  35175. this input stream without blocking.
  35176. <p>
  35177. Fewer bytes than requested might be skipped. The actual number of bytes
  35178. skipped is equal to <code>n</code> or the result of a call to
  35179. {@link #available() <code>available</code>}, whichever is smaller. If
  35180. <code>n</code> is less than zero, no bytes are skipped.
  35181. <p>
  35182. The actual number of bytes skipped is returned.
  35183. @param n
  35184. the number of bytes to be skipped.
  35185. @return the actual number of bytes skipped.
  35186. @exception IOException
  35187. if an I/O error occurs.]]>
  35188. </doc>
  35189. </method>
  35190. <method name="available" return="int"
  35191. abstract="false" native="false" synchronized="false"
  35192. static="false" final="false" visibility="public"
  35193. deprecated="not deprecated">
  35194. <exception name="IOException" type="java.io.IOException"/>
  35195. <doc>
  35196. <![CDATA[Returns the number of bytes that can be read from this input stream without
  35197. blocking. The <code>available</code> method of <code>InputStream</code>
  35198. returns <code>0</code>. This method <B>should</B> be overridden by
  35199. subclasses.
  35200. @return the number of bytes that can be read from this input stream without
  35201. blocking.
  35202. @exception IOException
  35203. if an I/O error occurs.]]>
  35204. </doc>
  35205. </method>
  35206. <method name="close"
  35207. abstract="false" native="false" synchronized="false"
  35208. static="false" final="false" visibility="public"
  35209. deprecated="not deprecated">
  35210. <exception name="IOException" type="java.io.IOException"/>
  35211. <doc>
  35212. <![CDATA[Closes this input stream and releases any system resources associated with
  35213. the stream.
  35214. <p>
  35215. The <code>close</code> method of <code>SASLInputStream</code> calls the
  35216. <code>close</code> method of its underlying input stream.
  35217. @exception IOException
  35218. if an I/O error occurs.]]>
  35219. </doc>
  35220. </method>
  35221. <method name="markSupported" return="boolean"
  35222. abstract="false" native="false" synchronized="false"
  35223. static="false" final="false" visibility="public"
  35224. deprecated="not deprecated">
  35225. <doc>
  35226. <![CDATA[Tests if this input stream supports the <code>mark</code> and
  35227. <code>reset</code> methods, which it does not.
  35228. @return <code>false</code>, since this class does not support the
  35229. <code>mark</code> and <code>reset</code> methods.]]>
  35230. </doc>
  35231. </method>
  35232. <field name="LOG" type="org.apache.commons.logging.Log"
  35233. transient="false" volatile="false"
  35234. static="true" final="true" visibility="public"
  35235. deprecated="not deprecated">
  35236. </field>
  35237. <doc>
  35238. <![CDATA[A SaslInputStream is composed of an InputStream and a SaslServer (or
  35239. SaslClient) so that read() methods return data that are read in from the
  35240. underlying InputStream but have been additionally processed by the SaslServer
  35241. (or SaslClient) object. The SaslServer (or SaslClient) object must be fully
  35242. initialized before being used by a SaslInputStream.]]>
  35243. </doc>
  35244. </class>
  35245. <!-- end class org.apache.hadoop.security.SaslInputStream -->
  35246. <!-- start class org.apache.hadoop.security.SaslOutputStream -->
  35247. <class name="SaslOutputStream" extends="java.io.OutputStream"
  35248. abstract="false"
  35249. static="false" final="false" visibility="public"
  35250. deprecated="not deprecated">
  35251. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslServer"
  35252. static="false" final="false" visibility="public"
  35253. deprecated="not deprecated">
  35254. <doc>
  35255. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
  35256. Note: if the specified OutputStream or SaslServer is null, a
  35257. NullPointerException may be thrown later when they are used.
  35258. @param outStream
  35259. the OutputStream to be processed
  35260. @param saslServer
  35261. an initialized SaslServer object]]>
  35262. </doc>
  35263. </constructor>
  35264. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslClient"
  35265. static="false" final="false" visibility="public"
  35266. deprecated="not deprecated">
  35267. <doc>
  35268. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslClient <br>
  35269. Note: if the specified OutputStream or SaslClient is null, a
  35270. NullPointerException may be thrown later when they are used.
  35271. @param outStream
  35272. the OutputStream to be processed
  35273. @param saslClient
  35274. an initialized SaslClient object]]>
  35275. </doc>
  35276. </constructor>
  35277. <method name="write"
  35278. abstract="false" native="false" synchronized="false"
  35279. static="false" final="false" visibility="public"
  35280. deprecated="not deprecated">
  35281. <param name="b" type="int"/>
  35282. <exception name="IOException" type="java.io.IOException"/>
  35283. <doc>
  35284. <![CDATA[Writes the specified byte to this output stream.
  35285. @param b
  35286. the <code>byte</code>.
  35287. @exception IOException
  35288. if an I/O error occurs.]]>
  35289. </doc>
  35290. </method>
  35291. <method name="write"
  35292. abstract="false" native="false" synchronized="false"
  35293. static="false" final="false" visibility="public"
  35294. deprecated="not deprecated">
  35295. <param name="b" type="byte[]"/>
  35296. <exception name="IOException" type="java.io.IOException"/>
  35297. <doc>
  35298. <![CDATA[Writes <code>b.length</code> bytes from the specified byte array to this
  35299. output stream.
  35300. <p>
  35301. The <code>write</code> method of <code>SASLOutputStream</code> calls the
  35302. <code>write</code> method of three arguments with the three arguments
  35303. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  35304. @param b
  35305. the data.
  35306. @exception NullPointerException
  35307. if <code>b</code> is null.
  35308. @exception IOException
  35309. if an I/O error occurs.]]>
  35310. </doc>
  35311. </method>
  35312. <method name="write"
  35313. abstract="false" native="false" synchronized="false"
  35314. static="false" final="false" visibility="public"
  35315. deprecated="not deprecated">
  35316. <param name="inBuf" type="byte[]"/>
  35317. <param name="off" type="int"/>
  35318. <param name="len" type="int"/>
  35319. <exception name="IOException" type="java.io.IOException"/>
  35320. <doc>
  35321. <![CDATA[Writes <code>len</code> bytes from the specified byte array starting at
  35322. offset <code>off</code> to this output stream.
  35323. @param inBuf
  35324. the data.
  35325. @param off
  35326. the start offset in the data.
  35327. @param len
  35328. the number of bytes to write.
  35329. @exception IOException
  35330. if an I/O error occurs.]]>
  35331. </doc>
  35332. </method>
  35333. <method name="flush"
  35334. abstract="false" native="false" synchronized="false"
  35335. static="false" final="false" visibility="public"
  35336. deprecated="not deprecated">
  35337. <exception name="IOException" type="java.io.IOException"/>
  35338. <doc>
  35339. <![CDATA[Flushes this output stream
  35340. @exception IOException
  35341. if an I/O error occurs.]]>
  35342. </doc>
  35343. </method>
  35344. <method name="close"
  35345. abstract="false" native="false" synchronized="false"
  35346. static="false" final="false" visibility="public"
  35347. deprecated="not deprecated">
  35348. <exception name="IOException" type="java.io.IOException"/>
  35349. <doc>
  35350. <![CDATA[Closes this output stream and releases any system resources associated with
  35351. this stream.
  35352. @exception IOException
  35353. if an I/O error occurs.]]>
  35354. </doc>
  35355. </method>
  35356. <doc>
  35357. <![CDATA[A SaslOutputStream is composed of an OutputStream and a SaslServer (or
  35358. SaslClient) so that write() methods first process the data before writing
  35359. them out to the underlying OutputStream. The SaslServer (or SaslClient)
  35360. object must be fully initialized before being used by a SaslOutputStream.]]>
  35361. </doc>
  35362. </class>
  35363. <!-- end class org.apache.hadoop.security.SaslOutputStream -->
  35364. <!-- start class org.apache.hadoop.security.SaslRpcClient -->
  35365. <class name="SaslRpcClient" extends="java.lang.Object"
  35366. abstract="false"
  35367. static="false" final="false" visibility="public"
  35368. deprecated="not deprecated">
  35369. <constructor name="SaslRpcClient" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod, org.apache.hadoop.security.token.Token, java.lang.String"
  35370. static="false" final="false" visibility="public"
  35371. deprecated="not deprecated">
  35372. <exception name="IOException" type="java.io.IOException"/>
  35373. <doc>
  35374. <![CDATA[Create a SaslRpcClient for an authentication method
  35375. @param method
  35376. the requested authentication method
  35377. @param token
  35378. token to use if needed by the authentication method]]>
  35379. </doc>
  35380. </constructor>
  35381. <method name="saslConnect" return="boolean"
  35382. abstract="false" native="false" synchronized="false"
  35383. static="false" final="false" visibility="public"
  35384. deprecated="not deprecated">
  35385. <param name="inS" type="java.io.InputStream"/>
  35386. <param name="outS" type="java.io.OutputStream"/>
  35387. <exception name="IOException" type="java.io.IOException"/>
  35388. <doc>
  35389. <![CDATA[Do client side SASL authentication with server via the given InputStream
  35390. and OutputStream
  35391. @param inS
  35392. InputStream to use
  35393. @param outS
  35394. OutputStream to use
  35395. @return true if connection is set up, or false if needs to switch
  35396. to simple Auth.
  35397. @throws IOException]]>
  35398. </doc>
  35399. </method>
  35400. <method name="getInputStream" return="java.io.InputStream"
  35401. abstract="false" native="false" synchronized="false"
  35402. static="false" final="false" visibility="public"
  35403. deprecated="not deprecated">
  35404. <param name="in" type="java.io.InputStream"/>
  35405. <exception name="IOException" type="java.io.IOException"/>
  35406. <doc>
  35407. <![CDATA[Get a SASL wrapped InputStream. Can be called only after saslConnect() has
  35408. been called.
  35409. @param in
  35410. the InputStream to wrap
  35411. @return a SASL wrapped InputStream
  35412. @throws IOException]]>
  35413. </doc>
  35414. </method>
  35415. <method name="getOutputStream" return="java.io.OutputStream"
  35416. abstract="false" native="false" synchronized="false"
  35417. static="false" final="false" visibility="public"
  35418. deprecated="not deprecated">
  35419. <param name="out" type="java.io.OutputStream"/>
  35420. <exception name="IOException" type="java.io.IOException"/>
  35421. <doc>
  35422. <![CDATA[Get a SASL wrapped OutputStream. Can be called only after saslConnect() has
  35423. been called.
  35424. @param out
  35425. the OutputStream to wrap
  35426. @return a SASL wrapped OutputStream
  35427. @throws IOException]]>
  35428. </doc>
  35429. </method>
  35430. <method name="dispose"
  35431. abstract="false" native="false" synchronized="false"
  35432. static="false" final="false" visibility="public"
  35433. deprecated="not deprecated">
  35434. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  35435. <doc>
  35436. <![CDATA[Release resources used by wrapped saslClient]]>
  35437. </doc>
  35438. </method>
  35439. <field name="LOG" type="org.apache.commons.logging.Log"
  35440. transient="false" volatile="false"
  35441. static="true" final="true" visibility="public"
  35442. deprecated="not deprecated">
  35443. </field>
  35444. <doc>
  35445. <![CDATA[A utility class that encapsulates SASL logic for RPC client]]>
  35446. </doc>
  35447. </class>
  35448. <!-- end class org.apache.hadoop.security.SaslRpcClient -->
  35449. <!-- start class org.apache.hadoop.security.SaslRpcServer -->
  35450. <class name="SaslRpcServer" extends="java.lang.Object"
  35451. abstract="false"
  35452. static="false" final="false" visibility="public"
  35453. deprecated="not deprecated">
  35454. <constructor name="SaslRpcServer"
  35455. static="false" final="false" visibility="public"
  35456. deprecated="not deprecated">
  35457. </constructor>
  35458. <method name="init"
  35459. abstract="false" native="false" synchronized="false"
  35460. static="true" final="false" visibility="public"
  35461. deprecated="not deprecated">
  35462. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35463. </method>
  35464. <method name="getIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  35465. abstract="false" native="false" synchronized="false"
  35466. static="true" final="false" visibility="public"
  35467. deprecated="not deprecated">
  35468. <param name="id" type="java.lang.String"/>
  35469. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  35470. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  35471. </method>
  35472. <method name="splitKerberosName" return="java.lang.String[]"
  35473. abstract="false" native="false" synchronized="false"
  35474. static="true" final="false" visibility="public"
  35475. deprecated="not deprecated">
  35476. <param name="fullName" type="java.lang.String"/>
  35477. <doc>
  35478. <![CDATA[Splitting fully qualified Kerberos name into parts]]>
  35479. </doc>
  35480. </method>
  35481. <field name="LOG" type="org.apache.commons.logging.Log"
  35482. transient="false" volatile="false"
  35483. static="true" final="true" visibility="public"
  35484. deprecated="not deprecated">
  35485. </field>
  35486. <field name="SASL_DEFAULT_REALM" type="java.lang.String"
  35487. transient="false" volatile="false"
  35488. static="true" final="true" visibility="public"
  35489. deprecated="not deprecated">
  35490. </field>
  35491. <field name="SASL_PROPS" type="java.util.Map"
  35492. transient="false" volatile="false"
  35493. static="true" final="true" visibility="public"
  35494. deprecated="not deprecated">
  35495. </field>
  35496. <field name="SWITCH_TO_SIMPLE_AUTH" type="int"
  35497. transient="false" volatile="false"
  35498. static="true" final="true" visibility="public"
  35499. deprecated="not deprecated">
  35500. </field>
  35501. <doc>
  35502. <![CDATA[A utility class for dealing with SASL on RPC server]]>
  35503. </doc>
  35504. </class>
  35505. <!-- end class org.apache.hadoop.security.SaslRpcServer -->
  35506. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  35507. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  35508. abstract="false"
  35509. static="true" final="true" visibility="public"
  35510. deprecated="not deprecated">
  35511. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  35512. abstract="false" native="false" synchronized="false"
  35513. static="true" final="false" visibility="public"
  35514. deprecated="not deprecated">
  35515. </method>
  35516. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35517. abstract="false" native="false" synchronized="false"
  35518. static="true" final="false" visibility="public"
  35519. deprecated="not deprecated">
  35520. <param name="name" type="java.lang.String"/>
  35521. </method>
  35522. <method name="getMechanismName" return="java.lang.String"
  35523. abstract="false" native="false" synchronized="false"
  35524. static="false" final="false" visibility="public"
  35525. deprecated="not deprecated">
  35526. <doc>
  35527. <![CDATA[Return the SASL mechanism name]]>
  35528. </doc>
  35529. </method>
  35530. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35531. abstract="false" native="false" synchronized="false"
  35532. static="true" final="false" visibility="public"
  35533. deprecated="not deprecated">
  35534. <param name="in" type="java.io.DataInput"/>
  35535. <exception name="IOException" type="java.io.IOException"/>
  35536. <doc>
  35537. <![CDATA[Read from in]]>
  35538. </doc>
  35539. </method>
  35540. <method name="write"
  35541. abstract="false" native="false" synchronized="false"
  35542. static="false" final="false" visibility="public"
  35543. deprecated="not deprecated">
  35544. <param name="out" type="java.io.DataOutput"/>
  35545. <exception name="IOException" type="java.io.IOException"/>
  35546. <doc>
  35547. <![CDATA[Write to out]]>
  35548. </doc>
  35549. </method>
  35550. <field name="SIMPLE" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35551. transient="false" volatile="false"
  35552. static="true" final="true" visibility="public"
  35553. deprecated="not deprecated">
  35554. </field>
  35555. <field name="KERBEROS" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35556. transient="false" volatile="false"
  35557. static="true" final="true" visibility="public"
  35558. deprecated="not deprecated">
  35559. </field>
  35560. <field name="DIGEST" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  35561. transient="false" volatile="false"
  35562. static="true" final="true" visibility="public"
  35563. deprecated="not deprecated">
  35564. </field>
  35565. <field name="code" type="byte"
  35566. transient="false" volatile="false"
  35567. static="false" final="true" visibility="public"
  35568. deprecated="not deprecated">
  35569. <doc>
  35570. <![CDATA[The code for this method.]]>
  35571. </doc>
  35572. </field>
  35573. <field name="mechanismName" type="java.lang.String"
  35574. transient="false" volatile="false"
  35575. static="false" final="true" visibility="public"
  35576. deprecated="not deprecated">
  35577. </field>
  35578. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35579. transient="false" volatile="false"
  35580. static="false" final="true" visibility="public"
  35581. deprecated="not deprecated">
  35582. </field>
  35583. <doc>
  35584. <![CDATA[Authentication method]]>
  35585. </doc>
  35586. </class>
  35587. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  35588. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  35589. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  35590. abstract="false"
  35591. static="true" final="true" visibility="public"
  35592. deprecated="not deprecated">
  35593. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  35594. abstract="false" native="false" synchronized="false"
  35595. static="true" final="false" visibility="public"
  35596. deprecated="not deprecated">
  35597. </method>
  35598. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35599. abstract="false" native="false" synchronized="false"
  35600. static="true" final="false" visibility="public"
  35601. deprecated="not deprecated">
  35602. <param name="name" type="java.lang.String"/>
  35603. </method>
  35604. <method name="getSaslQop" return="java.lang.String"
  35605. abstract="false" native="false" synchronized="false"
  35606. static="false" final="false" visibility="public"
  35607. deprecated="not deprecated">
  35608. </method>
  35609. <field name="AUTHENTICATION" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35610. transient="false" volatile="false"
  35611. static="true" final="true" visibility="public"
  35612. deprecated="not deprecated">
  35613. </field>
  35614. <field name="INTEGRITY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35615. transient="false" volatile="false"
  35616. static="true" final="true" visibility="public"
  35617. deprecated="not deprecated">
  35618. </field>
  35619. <field name="PRIVACY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  35620. transient="false" volatile="false"
  35621. static="true" final="true" visibility="public"
  35622. deprecated="not deprecated">
  35623. </field>
  35624. <field name="saslQop" type="java.lang.String"
  35625. transient="false" volatile="false"
  35626. static="false" final="true" visibility="public"
  35627. deprecated="not deprecated">
  35628. </field>
  35629. </class>
  35630. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  35631. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  35632. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  35633. abstract="false"
  35634. static="true" final="false" visibility="public"
  35635. deprecated="not deprecated">
  35636. <implements name="javax.security.auth.callback.CallbackHandler"/>
  35637. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  35638. static="false" final="false" visibility="public"
  35639. deprecated="not deprecated">
  35640. </constructor>
  35641. <method name="handle"
  35642. abstract="false" native="false" synchronized="false"
  35643. static="false" final="false" visibility="public"
  35644. deprecated="not deprecated">
  35645. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  35646. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  35647. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  35648. <doc>
  35649. <![CDATA[{@inheritDoc}]]>
  35650. </doc>
  35651. </method>
  35652. <doc>
  35653. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  35654. </doc>
  35655. </class>
  35656. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  35657. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  35658. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  35659. abstract="false"
  35660. static="true" final="false" visibility="public"
  35661. deprecated="not deprecated">
  35662. <implements name="javax.security.auth.callback.CallbackHandler"/>
  35663. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  35664. static="false" final="false" visibility="public"
  35665. deprecated="not deprecated">
  35666. </constructor>
  35667. <method name="handle"
  35668. abstract="false" native="false" synchronized="false"
  35669. static="false" final="false" visibility="public"
  35670. deprecated="not deprecated">
  35671. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  35672. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  35673. <doc>
  35674. <![CDATA[{@inheritDoc}]]>
  35675. </doc>
  35676. </method>
  35677. <doc>
  35678. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  35679. </doc>
  35680. </class>
  35681. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  35682. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  35683. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  35684. abstract="false"
  35685. static="true" final="true" visibility="public"
  35686. deprecated="not deprecated">
  35687. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  35688. abstract="false" native="false" synchronized="false"
  35689. static="true" final="false" visibility="public"
  35690. deprecated="not deprecated">
  35691. </method>
  35692. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  35693. abstract="false" native="false" synchronized="false"
  35694. static="true" final="false" visibility="public"
  35695. deprecated="not deprecated">
  35696. <param name="name" type="java.lang.String"/>
  35697. </method>
  35698. <field name="SUCCESS" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  35699. transient="false" volatile="false"
  35700. static="true" final="true" visibility="public"
  35701. deprecated="not deprecated">
  35702. </field>
  35703. <field name="ERROR" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  35704. transient="false" volatile="false"
  35705. static="true" final="true" visibility="public"
  35706. deprecated="not deprecated">
  35707. </field>
  35708. <field name="state" type="int"
  35709. transient="false" volatile="false"
  35710. static="false" final="true" visibility="public"
  35711. deprecated="not deprecated">
  35712. </field>
  35713. </class>
  35714. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  35715. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  35716. <class name="SecurityUtil" extends="java.lang.Object"
  35717. abstract="false"
  35718. static="false" final="false" visibility="public"
  35719. deprecated="not deprecated">
  35720. <constructor name="SecurityUtil"
  35721. static="false" final="false" visibility="public"
  35722. deprecated="not deprecated">
  35723. </constructor>
  35724. <method name="isOriginalTGT" return="boolean"
  35725. abstract="false" native="false" synchronized="false"
  35726. static="true" final="false" visibility="protected"
  35727. deprecated="not deprecated">
  35728. <param name="name" type="java.lang.String"/>
  35729. </method>
  35730. <method name="fetchServiceTicket"
  35731. abstract="false" native="false" synchronized="false"
  35732. static="true" final="false" visibility="public"
  35733. deprecated="not deprecated">
  35734. <param name="remoteHost" type="java.net.URL"/>
  35735. <exception name="IOException" type="java.io.IOException"/>
  35736. <doc>
  35737. <![CDATA[Explicitly pull the service ticket for the specified host. This solves a
  35738. problem with Java's Kerberos SSL problem where the client cannot
  35739. authenticate against a cross-realm service. It is necessary for clients
  35740. making kerberized https requests to call this method on the target URL
  35741. to ensure that in a cross-realm environment the remote host will be
  35742. successfully authenticated.
  35743. This method is internal to Hadoop and should not be used by other
  35744. applications. This method should not be considered stable or open:
  35745. it will be removed when the Java behavior is changed.
  35746. @param remoteHost Target URL the krb-https client will access
  35747. @throws IOException if a service ticket is not available]]>
  35748. </doc>
  35749. </method>
  35750. <method name="getServerPrincipal" return="java.lang.String"
  35751. abstract="false" native="false" synchronized="false"
  35752. static="true" final="false" visibility="public"
  35753. deprecated="not deprecated">
  35754. <param name="principalConfig" type="java.lang.String"/>
  35755. <param name="hostname" type="java.lang.String"/>
  35756. <exception name="IOException" type="java.io.IOException"/>
  35757. <doc>
  35758. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  35759. names. It replaces hostname pattern with hostname, which should be
  35760. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  35761. dynamically looked-up fqdn of the current host instead.
  35762. @param principalConfig
  35763. the Kerberos principal name conf value to convert
  35764. @param hostname
  35765. the fully-qualified domain name used for substitution
  35766. @return converted Kerberos principal name
  35767. @throws IOException if the service ticket cannot be retrieved]]>
  35768. </doc>
  35769. </method>
  35770. <method name="getServerPrincipal" return="java.lang.String"
  35771. abstract="false" native="false" synchronized="false"
  35772. static="true" final="false" visibility="public"
  35773. deprecated="not deprecated">
  35774. <param name="principalConfig" type="java.lang.String"/>
  35775. <param name="addr" type="java.net.InetAddress"/>
  35776. <exception name="IOException" type="java.io.IOException"/>
  35777. <doc>
  35778. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  35779. This method is similar to {@link #getServerPrincipal(String, String)},
  35780. except 1) the reverse DNS lookup from addr to hostname is done only when
  35781. necessary, 2) param addr can't be null (no default behavior of using local
  35782. hostname when addr is null).
  35783. @param principalConfig
  35784. Kerberos principal name pattern to convert
  35785. @param addr
  35786. InetAddress of the host used for substitution
  35787. @return converted Kerberos principal name
  35788. @throws IOException if the client address cannot be determined]]>
  35789. </doc>
  35790. </method>
  35791. <method name="login"
  35792. abstract="false" native="false" synchronized="false"
  35793. static="true" final="false" visibility="public"
  35794. deprecated="not deprecated">
  35795. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35796. <param name="keytabFileKey" type="java.lang.String"/>
  35797. <param name="userNameKey" type="java.lang.String"/>
  35798. <exception name="IOException" type="java.io.IOException"/>
  35799. <doc>
  35800. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  35801. user's Kerberos principal name with a dynamically looked-up fully-qualified
  35802. domain name of the current host.
  35803. @param conf
  35804. conf to use
  35805. @param keytabFileKey
  35806. the key to look for keytab file in conf
  35807. @param userNameKey
  35808. the key to look for user's Kerberos principal name in conf
  35809. @throws IOException if the client address cannot be determined]]>
  35810. </doc>
  35811. </method>
  35812. <method name="login"
  35813. abstract="false" native="false" synchronized="false"
  35814. static="true" final="false" visibility="public"
  35815. deprecated="not deprecated">
  35816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35817. <param name="keytabFileKey" type="java.lang.String"/>
  35818. <param name="userNameKey" type="java.lang.String"/>
  35819. <param name="hostname" type="java.lang.String"/>
  35820. <exception name="IOException" type="java.io.IOException"/>
  35821. <doc>
  35822. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  35823. user's Kerberos principal name with hostname.
  35824. @param conf
  35825. conf to use
  35826. @param keytabFileKey
  35827. the key to look for keytab file in conf
  35828. @param userNameKey
  35829. the key to look for user's Kerberos principal name in conf
  35830. @param hostname
  35831. hostname to use for substitution
  35832. @throws IOException if login fails]]>
  35833. </doc>
  35834. </method>
  35835. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  35836. abstract="false" native="false" synchronized="false"
  35837. static="true" final="false" visibility="public"
  35838. deprecated="not deprecated">
  35839. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35840. <doc>
  35841. <![CDATA[Decode the given token's service field into an InetAddress
  35842. @param token from which to obtain the service
  35843. @return InetAddress for the service]]>
  35844. </doc>
  35845. </method>
  35846. <method name="setTokenService"
  35847. abstract="false" native="false" synchronized="false"
  35848. static="true" final="false" visibility="public"
  35849. deprecated="not deprecated">
  35850. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35851. <param name="addr" type="java.net.InetSocketAddress"/>
  35852. <doc>
  35853. <![CDATA[Set the given token's service to the format expected by the RPC client
  35854. @param token a delegation token
  35855. @param addr the socket for the rpc connection]]>
  35856. </doc>
  35857. </method>
  35858. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  35859. abstract="false" native="false" synchronized="false"
  35860. static="true" final="false" visibility="public"
  35861. deprecated="not deprecated">
  35862. <param name="addr" type="java.net.InetSocketAddress"/>
  35863. <doc>
  35864. <![CDATA[Construct the service key for a token
  35865. @param addr InetSocketAddress of remote connection with a token
  35866. @return "ip:port" or "host:port" depending on the value of
  35867. hadoop.security.token.service.use_ip]]>
  35868. </doc>
  35869. </method>
  35870. <method name="buildDTServiceName" return="java.lang.String"
  35871. abstract="false" native="false" synchronized="false"
  35872. static="true" final="false" visibility="public"
  35873. deprecated="not deprecated">
  35874. <param name="uri" type="java.net.URI"/>
  35875. <param name="defPort" type="int"/>
  35876. <doc>
  35877. <![CDATA[create the service name for a Delegation token
  35878. @param uri of the service
  35879. @param defPort is used if the uri lacks a port
  35880. @return the token service, or null if no authority
  35881. @see #buildTokenService(InetSocketAddress)]]>
  35882. </doc>
  35883. </method>
  35884. <method name="getAdminAcls" return="org.apache.hadoop.security.authorize.AccessControlList"
  35885. abstract="false" native="false" synchronized="false"
  35886. static="true" final="false" visibility="public"
  35887. deprecated="not deprecated">
  35888. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35889. <param name="configKey" type="java.lang.String"/>
  35890. <doc>
  35891. <![CDATA[Get the ACL object representing the cluster administrators
  35892. The user who starts the daemon is automatically added as an admin
  35893. @param conf
  35894. @param configKey the key that holds the ACL string in its value
  35895. @return AccessControlList instance]]>
  35896. </doc>
  35897. </method>
  35898. <method name="getHostFromPrincipal" return="java.lang.String"
  35899. abstract="false" native="false" synchronized="false"
  35900. static="true" final="false" visibility="public"
  35901. deprecated="not deprecated">
  35902. <param name="principalName" type="java.lang.String"/>
  35903. <doc>
  35904. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  35905. @param principalName principal name of format as described above
  35906. @return host name if the the string conforms to the above format, else null]]>
  35907. </doc>
  35908. </method>
  35909. <method name="useKsslAuth" return="boolean"
  35910. abstract="false" native="false" synchronized="false"
  35911. static="true" final="false" visibility="public"
  35912. deprecated="not deprecated">
  35913. <doc>
  35914. <![CDATA[@return true if we should use KSSL to authenticate NN HTTP endpoints,
  35915. false to use SPNEGO or if security is disabled.]]>
  35916. </doc>
  35917. </method>
  35918. <method name="openSecureHttpConnection" return="java.net.URLConnection"
  35919. abstract="false" native="false" synchronized="false"
  35920. static="true" final="false" visibility="public"
  35921. deprecated="not deprecated">
  35922. <param name="url" type="java.net.URL"/>
  35923. <exception name="IOException" type="java.io.IOException"/>
  35924. <doc>
  35925. <![CDATA[Open a (if need be) secure connection to a URL in a secure environment
  35926. that is using SPNEGO or KSSL to authenticate its URLs. All Namenode and
  35927. Secondary Namenode URLs that are protected via SPNEGO or KSSL should be
  35928. accessed via this method.
  35929. @param url to authenticate via SPNEGO.
  35930. @return A connection that has been authenticated via SPNEGO
  35931. @throws IOException If unable to authenticate via SPNEGO]]>
  35932. </doc>
  35933. </method>
  35934. <method name="getByName" return="java.net.InetAddress"
  35935. abstract="false" native="false" synchronized="false"
  35936. static="true" final="false" visibility="public"
  35937. deprecated="not deprecated">
  35938. <param name="hostname" type="java.lang.String"/>
  35939. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35940. <doc>
  35941. <![CDATA[Resolves a host subject to the security requirements determined by
  35942. hadoop.security.token.service.use_ip.
  35943. @param hostname host or ip to resolve
  35944. @return a resolved host
  35945. @throws UnknownHostException if the host doesn't exist]]>
  35946. </doc>
  35947. </method>
  35948. <field name="LOG" type="org.apache.commons.logging.Log"
  35949. transient="false" volatile="false"
  35950. static="true" final="true" visibility="public"
  35951. deprecated="not deprecated">
  35952. </field>
  35953. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  35954. transient="false" volatile="false"
  35955. static="true" final="true" visibility="public"
  35956. deprecated="not deprecated">
  35957. </field>
  35958. </class>
  35959. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  35960. <!-- start class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  35961. <class name="SecurityUtil.QualifiedHostResolver" extends="java.lang.Object"
  35962. abstract="false"
  35963. static="true" final="false" visibility="protected"
  35964. deprecated="not deprecated">
  35965. <implements name="org.apache.hadoop.security.SecurityUtil.HostResolver"/>
  35966. <constructor name="SecurityUtil.QualifiedHostResolver"
  35967. static="false" final="false" visibility="protected"
  35968. deprecated="not deprecated">
  35969. </constructor>
  35970. <method name="getByName" return="java.net.InetAddress"
  35971. abstract="false" native="false" synchronized="false"
  35972. static="false" final="false" visibility="public"
  35973. deprecated="not deprecated">
  35974. <param name="host" type="java.lang.String"/>
  35975. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35976. <doc>
  35977. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  35978. hostname. InetAddress does not qualify an incomplete hostname that
  35979. is resolved via the domain search list.
  35980. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  35981. hostname, but it always return the A record whereas the given hostname
  35982. may be a CNAME.
  35983. @param host a hostname or ip address
  35984. @return InetAddress with the fully qualified hostname or ip
  35985. @throws UnknownHostException if host does not exist]]>
  35986. </doc>
  35987. </method>
  35988. <doc>
  35989. <![CDATA[This an alternate resolver with important properties that the standard
  35990. java resolver lacks:
  35991. 1) The hostname is fully qualified. This avoids security issues if not
  35992. all hosts in the cluster do not share the same search domains. It
  35993. also prevents other hosts from performing unnecessary dns searches.
  35994. In contrast, InetAddress simply returns the host as given.
  35995. 2) The InetAddress is instantiated with an exact host and IP to prevent
  35996. further unnecessary lookups. InetAddress may perform an unnecessary
  35997. reverse lookup for an IP.
  35998. 3) A call to getHostName() will always return the qualified hostname, or
  35999. more importantly, the IP if instantiated with an IP. This avoids
  36000. unnecessary dns timeouts if the host is not resolvable.
  36001. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  36002. connection re-attempt, that a reverse lookup to host and forward
  36003. lookup to IP is not performed since the reverse/forward mappings may
  36004. not always return the same IP. If the client initiated a connection
  36005. with an IP, then that IP is all that should ever be contacted.
  36006. NOTE: this resolver is only used if:
  36007. hadoop.security.token.service.use_ip=false]]>
  36008. </doc>
  36009. </class>
  36010. <!-- end class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  36011. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  36012. <class name="ShellBasedUnixGroupsMapping" extends="java.lang.Object"
  36013. abstract="false"
  36014. static="false" final="false" visibility="public"
  36015. deprecated="not deprecated">
  36016. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  36017. <constructor name="ShellBasedUnixGroupsMapping"
  36018. static="false" final="false" visibility="public"
  36019. deprecated="not deprecated">
  36020. </constructor>
  36021. <method name="getGroups" return="java.util.List"
  36022. abstract="false" native="false" synchronized="false"
  36023. static="false" final="false" visibility="public"
  36024. deprecated="not deprecated">
  36025. <param name="user" type="java.lang.String"/>
  36026. <exception name="IOException" type="java.io.IOException"/>
  36027. </method>
  36028. <method name="cacheGroupsRefresh"
  36029. abstract="false" native="false" synchronized="false"
  36030. static="false" final="false" visibility="public"
  36031. deprecated="not deprecated">
  36032. <exception name="IOException" type="java.io.IOException"/>
  36033. </method>
  36034. <method name="cacheGroupsAdd"
  36035. abstract="false" native="false" synchronized="false"
  36036. static="false" final="false" visibility="public"
  36037. deprecated="not deprecated">
  36038. <param name="groups" type="java.util.List"/>
  36039. <exception name="IOException" type="java.io.IOException"/>
  36040. </method>
  36041. <doc>
  36042. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  36043. that exec's the <code>groups</code> shell command to fetch the group
  36044. memberships of a given user.]]>
  36045. </doc>
  36046. </class>
  36047. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  36048. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  36049. <class name="ShellBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.ShellBasedUnixGroupsMapping"
  36050. abstract="false"
  36051. static="false" final="false" visibility="public"
  36052. deprecated="not deprecated">
  36053. <constructor name="ShellBasedUnixGroupsNetgroupMapping"
  36054. static="false" final="false" visibility="public"
  36055. deprecated="not deprecated">
  36056. </constructor>
  36057. <method name="getGroups" return="java.util.List"
  36058. abstract="false" native="false" synchronized="false"
  36059. static="false" final="false" visibility="public"
  36060. deprecated="not deprecated">
  36061. <param name="user" type="java.lang.String"/>
  36062. <exception name="IOException" type="java.io.IOException"/>
  36063. </method>
  36064. <method name="cacheGroupsRefresh"
  36065. abstract="false" native="false" synchronized="false"
  36066. static="false" final="false" visibility="public"
  36067. deprecated="not deprecated">
  36068. <exception name="IOException" type="java.io.IOException"/>
  36069. </method>
  36070. <method name="cacheGroupsAdd"
  36071. abstract="false" native="false" synchronized="false"
  36072. static="false" final="false" visibility="public"
  36073. deprecated="not deprecated">
  36074. <param name="groups" type="java.util.List"/>
  36075. <exception name="IOException" type="java.io.IOException"/>
  36076. </method>
  36077. <method name="cacheNetgroup"
  36078. abstract="false" native="false" synchronized="false"
  36079. static="false" final="false" visibility="protected"
  36080. deprecated="not deprecated">
  36081. <param name="group" type="java.lang.String"/>
  36082. <exception name="IOException" type="java.io.IOException"/>
  36083. </method>
  36084. <method name="getNetgroups"
  36085. abstract="false" native="false" synchronized="false"
  36086. static="false" final="false" visibility="protected"
  36087. deprecated="not deprecated">
  36088. <param name="user" type="java.lang.String"/>
  36089. <param name="groups" type="java.util.List"/>
  36090. <exception name="IOException" type="java.io.IOException"/>
  36091. </method>
  36092. <method name="execShellGetUnixGroups" return="java.lang.String"
  36093. abstract="false" native="false" synchronized="false"
  36094. static="false" final="false" visibility="protected"
  36095. deprecated="not deprecated">
  36096. <param name="user" type="java.lang.String"/>
  36097. <exception name="IOException" type="java.io.IOException"/>
  36098. </method>
  36099. <method name="execShellGetUserForNetgroup" return="java.lang.String"
  36100. abstract="false" native="false" synchronized="false"
  36101. static="false" final="false" visibility="protected"
  36102. deprecated="not deprecated">
  36103. <param name="netgroup" type="java.lang.String"/>
  36104. <exception name="IOException" type="java.io.IOException"/>
  36105. </method>
  36106. <field name="netgroupToUsersMapUpdated" type="boolean"
  36107. transient="false" volatile="false"
  36108. static="true" final="false" visibility="protected"
  36109. deprecated="not deprecated">
  36110. </field>
  36111. <field name="netgroupToUsersMap" type="java.util.Map"
  36112. transient="false" volatile="false"
  36113. static="true" final="false" visibility="protected"
  36114. deprecated="not deprecated">
  36115. </field>
  36116. <field name="userToNetgroupsMap" type="java.util.Map"
  36117. transient="false" volatile="false"
  36118. static="true" final="false" visibility="protected"
  36119. deprecated="not deprecated">
  36120. </field>
  36121. <doc>
  36122. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  36123. that exec's the <code>groups</code> shell command to fetch the group
  36124. memberships of a given user.]]>
  36125. </doc>
  36126. </class>
  36127. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  36128. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  36129. <class name="UserGroupInformation" extends="java.lang.Object"
  36130. abstract="false"
  36131. static="false" final="false" visibility="public"
  36132. deprecated="not deprecated">
  36133. <method name="setConfiguration"
  36134. abstract="false" native="false" synchronized="false"
  36135. static="true" final="false" visibility="public"
  36136. deprecated="not deprecated">
  36137. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36138. <doc>
  36139. <![CDATA[Set the static configuration for UGI.
  36140. In particular, set the security authentication mechanism and the
  36141. group look up service.
  36142. @param conf the configuration to use]]>
  36143. </doc>
  36144. </method>
  36145. <method name="isSecurityEnabled" return="boolean"
  36146. abstract="false" native="false" synchronized="false"
  36147. static="true" final="false" visibility="public"
  36148. deprecated="not deprecated">
  36149. <doc>
  36150. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  36151. user identities or is relying on simple authentication
  36152. @return true if UGI is working in a secure environment]]>
  36153. </doc>
  36154. </method>
  36155. <method name="hasKerberosCredentials" return="boolean"
  36156. abstract="false" native="false" synchronized="false"
  36157. static="false" final="false" visibility="public"
  36158. deprecated="not deprecated">
  36159. <doc>
  36160. <![CDATA[checks if logged in using kerberos
  36161. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  36162. </doc>
  36163. </method>
  36164. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  36165. abstract="false" native="false" synchronized="true"
  36166. static="true" final="false" visibility="public"
  36167. deprecated="not deprecated">
  36168. <exception name="IOException" type="java.io.IOException"/>
  36169. <doc>
  36170. <![CDATA[Return the current user, including any doAs in the current stack.
  36171. @return the current user
  36172. @throws IOException if login fails]]>
  36173. </doc>
  36174. </method>
  36175. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  36176. abstract="false" native="false" synchronized="true"
  36177. static="true" final="false" visibility="public"
  36178. deprecated="not deprecated">
  36179. <exception name="IOException" type="java.io.IOException"/>
  36180. <doc>
  36181. <![CDATA[Get the currently logged in user.
  36182. @return the logged in user
  36183. @throws IOException if login fails]]>
  36184. </doc>
  36185. </method>
  36186. <method name="isFromKeytab" return="boolean"
  36187. abstract="false" native="false" synchronized="false"
  36188. static="false" final="false" visibility="public"
  36189. deprecated="not deprecated">
  36190. <doc>
  36191. <![CDATA[Is this user logged in from a keytab file?
  36192. @return true if the credentials are from a keytab file.]]>
  36193. </doc>
  36194. </method>
  36195. <method name="loginUserFromKeytab"
  36196. abstract="false" native="false" synchronized="true"
  36197. static="true" final="false" visibility="public"
  36198. deprecated="not deprecated">
  36199. <param name="user" type="java.lang.String"/>
  36200. <param name="path" type="java.lang.String"/>
  36201. <exception name="IOException" type="java.io.IOException"/>
  36202. <doc>
  36203. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  36204. file and logs them in. They become the currently logged-in user.
  36205. @param user the principal name to load from the keytab
  36206. @param path the path to the keytab file
  36207. @throws IOException if the keytab file can't be read]]>
  36208. </doc>
  36209. </method>
  36210. <method name="reloginFromTicketCache"
  36211. abstract="false" native="false" synchronized="true"
  36212. static="false" final="false" visibility="public"
  36213. deprecated="not deprecated">
  36214. <exception name="IOException" type="java.io.IOException"/>
  36215. <doc>
  36216. <![CDATA[Re-Login a user in from the ticket cache. This
  36217. method assumes that login had happened already.
  36218. The Subject field of this UserGroupInformation object is updated to have
  36219. the new credentials.
  36220. @throws IOException on a failure]]>
  36221. </doc>
  36222. </method>
  36223. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  36224. abstract="false" native="false" synchronized="true"
  36225. static="true" final="false" visibility="public"
  36226. deprecated="not deprecated">
  36227. <param name="user" type="java.lang.String"/>
  36228. <param name="path" type="java.lang.String"/>
  36229. <exception name="IOException" type="java.io.IOException"/>
  36230. <doc>
  36231. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  36232. file and login them in. This new user does not affect the currently
  36233. logged-in user.
  36234. @param user the principal name to load from the keytab
  36235. @param path the path to the keytab file
  36236. @throws IOException if the keytab file can't be read]]>
  36237. </doc>
  36238. </method>
  36239. <method name="checkTGTAndReloginFromKeytab"
  36240. abstract="false" native="false" synchronized="true"
  36241. static="false" final="false" visibility="public"
  36242. deprecated="not deprecated">
  36243. <exception name="IOException" type="java.io.IOException"/>
  36244. <doc>
  36245. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  36246. @throws IOException]]>
  36247. </doc>
  36248. </method>
  36249. <method name="reloginFromKeytab"
  36250. abstract="false" native="false" synchronized="true"
  36251. static="false" final="false" visibility="public"
  36252. deprecated="not deprecated">
  36253. <exception name="IOException" type="java.io.IOException"/>
  36254. <doc>
  36255. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  36256. file and logs them in. They become the currently logged-in user. This
  36257. method assumes that {@link #loginUserFromKeytab(String, String)} had
  36258. happened already.
  36259. The Subject field of this UserGroupInformation object is updated to have
  36260. the new credentials.
  36261. @throws IOException on a failure]]>
  36262. </doc>
  36263. </method>
  36264. <method name="isLoginKeytabBased" return="boolean"
  36265. abstract="false" native="false" synchronized="true"
  36266. static="true" final="false" visibility="public"
  36267. deprecated="not deprecated">
  36268. <exception name="IOException" type="java.io.IOException"/>
  36269. <doc>
  36270. <![CDATA[Did the login happen via keytab
  36271. @return true or false]]>
  36272. </doc>
  36273. </method>
  36274. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  36275. abstract="false" native="false" synchronized="false"
  36276. static="true" final="false" visibility="public"
  36277. deprecated="not deprecated">
  36278. <param name="user" type="java.lang.String"/>
  36279. <doc>
  36280. <![CDATA[Create a user from a login name. It is intended to be used for remote
  36281. users in RPC, since it won't have any credentials.
  36282. @param user the full user principal name, must not be empty or null
  36283. @return the UserGroupInformation for the remote user.]]>
  36284. </doc>
  36285. </method>
  36286. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  36287. abstract="false" native="false" synchronized="false"
  36288. static="true" final="false" visibility="public"
  36289. deprecated="not deprecated">
  36290. <param name="user" type="java.lang.String"/>
  36291. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  36292. <doc>
  36293. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  36294. real user.
  36295. @param user
  36296. @param realUser
  36297. @return proxyUser ugi]]>
  36298. </doc>
  36299. </method>
  36300. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  36301. abstract="false" native="false" synchronized="false"
  36302. static="false" final="false" visibility="public"
  36303. deprecated="not deprecated">
  36304. <doc>
  36305. <![CDATA[get RealUser (vs. EffectiveUser)
  36306. @return realUser running over proxy user]]>
  36307. </doc>
  36308. </method>
  36309. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  36310. abstract="false" native="false" synchronized="false"
  36311. static="true" final="false" visibility="public"
  36312. deprecated="not deprecated">
  36313. <param name="user" type="java.lang.String"/>
  36314. <param name="userGroups" type="java.lang.String[]"/>
  36315. <doc>
  36316. <![CDATA[Create a UGI for testing HDFS and MapReduce
  36317. @param user the full user principal name
  36318. @param userGroups the names of the groups that the user belongs to
  36319. @return a fake user for running unit tests]]>
  36320. </doc>
  36321. </method>
  36322. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  36323. abstract="false" native="false" synchronized="false"
  36324. static="true" final="false" visibility="public"
  36325. deprecated="not deprecated">
  36326. <param name="user" type="java.lang.String"/>
  36327. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  36328. <param name="userGroups" type="java.lang.String[]"/>
  36329. <doc>
  36330. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  36331. @param user
  36332. the full user principal name for effective user
  36333. @param realUser
  36334. UGI of the real user
  36335. @param userGroups
  36336. the names of the groups that the user belongs to
  36337. @return a fake user for running unit tests]]>
  36338. </doc>
  36339. </method>
  36340. <method name="getShortUserName" return="java.lang.String"
  36341. abstract="false" native="false" synchronized="false"
  36342. static="false" final="false" visibility="public"
  36343. deprecated="not deprecated">
  36344. <doc>
  36345. <![CDATA[Get the user's login name.
  36346. @return the user's name up to the first '/' or '@'.]]>
  36347. </doc>
  36348. </method>
  36349. <method name="getUserName" return="java.lang.String"
  36350. abstract="false" native="false" synchronized="false"
  36351. static="false" final="false" visibility="public"
  36352. deprecated="not deprecated">
  36353. <doc>
  36354. <![CDATA[Get the user's full principal name.
  36355. @return the user's full principal name.]]>
  36356. </doc>
  36357. </method>
  36358. <method name="addTokenIdentifier" return="boolean"
  36359. abstract="false" native="false" synchronized="true"
  36360. static="false" final="false" visibility="public"
  36361. deprecated="not deprecated">
  36362. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  36363. <doc>
  36364. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  36365. authenticated by the RPC layer as belonging to the user represented by this
  36366. UGI.
  36367. @param tokenId
  36368. tokenIdentifier to be added
  36369. @return true on successful add of new tokenIdentifier]]>
  36370. </doc>
  36371. </method>
  36372. <method name="getTokenIdentifiers" return="java.util.Set"
  36373. abstract="false" native="false" synchronized="true"
  36374. static="false" final="false" visibility="public"
  36375. deprecated="not deprecated">
  36376. <doc>
  36377. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  36378. @return the set of TokenIdentifiers belonging to this UGI]]>
  36379. </doc>
  36380. </method>
  36381. <method name="addToken" return="boolean"
  36382. abstract="false" native="false" synchronized="true"
  36383. static="false" final="false" visibility="public"
  36384. deprecated="not deprecated">
  36385. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  36386. <doc>
  36387. <![CDATA[Add a token to this UGI
  36388. @param token Token to be added
  36389. @return true on successful add of new token]]>
  36390. </doc>
  36391. </method>
  36392. <method name="getTokens" return="java.util.Collection"
  36393. abstract="false" native="false" synchronized="true"
  36394. static="false" final="false" visibility="public"
  36395. deprecated="not deprecated">
  36396. <doc>
  36397. <![CDATA[Obtain the collection of tokens associated with this user.
  36398. @return an unmodifiable collection of tokens associated with user]]>
  36399. </doc>
  36400. </method>
  36401. <method name="getGroupNames" return="java.lang.String[]"
  36402. abstract="false" native="false" synchronized="true"
  36403. static="false" final="false" visibility="public"
  36404. deprecated="not deprecated">
  36405. <doc>
  36406. <![CDATA[Get the group names for this user.
  36407. @return the list of users with the primary group first. If the command
  36408. fails, it returns an empty list.]]>
  36409. </doc>
  36410. </method>
  36411. <method name="toString" return="java.lang.String"
  36412. abstract="false" native="false" synchronized="false"
  36413. static="false" final="false" visibility="public"
  36414. deprecated="not deprecated">
  36415. <doc>
  36416. <![CDATA[Return the username.]]>
  36417. </doc>
  36418. </method>
  36419. <method name="setAuthenticationMethod"
  36420. abstract="false" native="false" synchronized="true"
  36421. static="false" final="false" visibility="public"
  36422. deprecated="not deprecated">
  36423. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  36424. <doc>
  36425. <![CDATA[Sets the authentication method in the subject
  36426. @param authMethod]]>
  36427. </doc>
  36428. </method>
  36429. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36430. abstract="false" native="false" synchronized="true"
  36431. static="false" final="false" visibility="public"
  36432. deprecated="not deprecated">
  36433. <doc>
  36434. <![CDATA[Get the authentication method from the subject
  36435. @return AuthenticationMethod in the subject, null if not present.]]>
  36436. </doc>
  36437. </method>
  36438. <method name="equals" return="boolean"
  36439. abstract="false" native="false" synchronized="false"
  36440. static="false" final="false" visibility="public"
  36441. deprecated="not deprecated">
  36442. <param name="o" type="java.lang.Object"/>
  36443. <doc>
  36444. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  36445. </doc>
  36446. </method>
  36447. <method name="hashCode" return="int"
  36448. abstract="false" native="false" synchronized="false"
  36449. static="false" final="false" visibility="public"
  36450. deprecated="not deprecated">
  36451. <doc>
  36452. <![CDATA[Return the hash of the subject.]]>
  36453. </doc>
  36454. </method>
  36455. <method name="getSubject" return="javax.security.auth.Subject"
  36456. abstract="false" native="false" synchronized="false"
  36457. static="false" final="false" visibility="protected"
  36458. deprecated="not deprecated">
  36459. <doc>
  36460. <![CDATA[Get the underlying subject from this ugi.
  36461. @return the subject that represents this user.]]>
  36462. </doc>
  36463. </method>
  36464. <method name="doAs" return="java.lang.Object"
  36465. abstract="false" native="false" synchronized="false"
  36466. static="false" final="false" visibility="public"
  36467. deprecated="not deprecated">
  36468. <param name="action" type="java.security.PrivilegedAction"/>
  36469. <doc>
  36470. <![CDATA[Run the given action as the user.
  36471. @param <T> the return type of the run method
  36472. @param action the method to execute
  36473. @return the value from the run method]]>
  36474. </doc>
  36475. </method>
  36476. <method name="doAs" return="java.lang.Object"
  36477. abstract="false" native="false" synchronized="false"
  36478. static="false" final="false" visibility="public"
  36479. deprecated="not deprecated">
  36480. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  36481. <exception name="IOException" type="java.io.IOException"/>
  36482. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  36483. <doc>
  36484. <![CDATA[Run the given action as the user, potentially throwing an exception.
  36485. @param <T> the return type of the run method
  36486. @param action the method to execute
  36487. @return the value from the run method
  36488. @throws IOException if the action throws an IOException
  36489. @throws Error if the action throws an Error
  36490. @throws RuntimeException if the action throws a RuntimeException
  36491. @throws InterruptedException if the action throws an InterruptedException
  36492. @throws UndeclaredThrowableException if the action throws something else]]>
  36493. </doc>
  36494. </method>
  36495. <method name="main"
  36496. abstract="false" native="false" synchronized="false"
  36497. static="true" final="false" visibility="public"
  36498. deprecated="not deprecated">
  36499. <param name="args" type="java.lang.String[]"/>
  36500. <exception name="Exception" type="java.lang.Exception"/>
  36501. <doc>
  36502. <![CDATA[A test method to print out the current user's UGI.
  36503. @param args if there are two arguments, read the user from the keytab
  36504. and print it out.
  36505. @throws Exception]]>
  36506. </doc>
  36507. </method>
  36508. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  36509. transient="false" volatile="false"
  36510. static="true" final="true" visibility="public"
  36511. deprecated="not deprecated">
  36512. <doc>
  36513. <![CDATA[Environment variable pointing to the token cache file]]>
  36514. </doc>
  36515. </field>
  36516. <doc>
  36517. <![CDATA[User and group information for Hadoop.
  36518. This class wraps around a JAAS Subject and provides methods to determine the
  36519. user's username and groups. It supports both the Windows, Unix and Kerberos
  36520. login modules.]]>
  36521. </doc>
  36522. </class>
  36523. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  36524. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  36525. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  36526. abstract="false"
  36527. static="true" final="true" visibility="public"
  36528. deprecated="not deprecated">
  36529. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  36530. abstract="false" native="false" synchronized="false"
  36531. static="true" final="false" visibility="public"
  36532. deprecated="not deprecated">
  36533. </method>
  36534. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36535. abstract="false" native="false" synchronized="false"
  36536. static="true" final="false" visibility="public"
  36537. deprecated="not deprecated">
  36538. <param name="name" type="java.lang.String"/>
  36539. </method>
  36540. <field name="SIMPLE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36541. transient="false" volatile="false"
  36542. static="true" final="true" visibility="public"
  36543. deprecated="not deprecated">
  36544. </field>
  36545. <field name="KERBEROS" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36546. transient="false" volatile="false"
  36547. static="true" final="true" visibility="public"
  36548. deprecated="not deprecated">
  36549. </field>
  36550. <field name="TOKEN" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36551. transient="false" volatile="false"
  36552. static="true" final="true" visibility="public"
  36553. deprecated="not deprecated">
  36554. </field>
  36555. <field name="CERTIFICATE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36556. transient="false" volatile="false"
  36557. static="true" final="true" visibility="public"
  36558. deprecated="not deprecated">
  36559. </field>
  36560. <field name="KERBEROS_SSL" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36561. transient="false" volatile="false"
  36562. static="true" final="true" visibility="public"
  36563. deprecated="not deprecated">
  36564. </field>
  36565. <field name="PROXY" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36566. transient="false" volatile="false"
  36567. static="true" final="true" visibility="public"
  36568. deprecated="not deprecated">
  36569. </field>
  36570. <doc>
  36571. <![CDATA[existing types of authentications' methods]]>
  36572. </doc>
  36573. </class>
  36574. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  36575. <!-- start class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  36576. <class name="UserGroupInformation.HadoopLoginModule" extends="java.lang.Object"
  36577. abstract="false"
  36578. static="true" final="false" visibility="public"
  36579. deprecated="not deprecated">
  36580. <implements name="javax.security.auth.spi.LoginModule"/>
  36581. <constructor name="UserGroupInformation.HadoopLoginModule"
  36582. static="false" final="false" visibility="public"
  36583. deprecated="not deprecated">
  36584. </constructor>
  36585. <method name="abort" return="boolean"
  36586. abstract="false" native="false" synchronized="false"
  36587. static="false" final="false" visibility="public"
  36588. deprecated="not deprecated">
  36589. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36590. </method>
  36591. <method name="commit" return="boolean"
  36592. abstract="false" native="false" synchronized="false"
  36593. static="false" final="false" visibility="public"
  36594. deprecated="not deprecated">
  36595. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36596. </method>
  36597. <method name="initialize"
  36598. abstract="false" native="false" synchronized="false"
  36599. static="false" final="false" visibility="public"
  36600. deprecated="not deprecated">
  36601. <param name="subject" type="javax.security.auth.Subject"/>
  36602. <param name="callbackHandler" type="javax.security.auth.callback.CallbackHandler"/>
  36603. <param name="sharedState" type="java.util.Map"/>
  36604. <param name="options" type="java.util.Map"/>
  36605. </method>
  36606. <method name="login" return="boolean"
  36607. abstract="false" native="false" synchronized="false"
  36608. static="false" final="false" visibility="public"
  36609. deprecated="not deprecated">
  36610. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36611. </method>
  36612. <method name="logout" return="boolean"
  36613. abstract="false" native="false" synchronized="false"
  36614. static="false" final="false" visibility="public"
  36615. deprecated="not deprecated">
  36616. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  36617. </method>
  36618. <doc>
  36619. <![CDATA[A login module that looks at the Kerberos, Unix, or Windows principal and
  36620. adds the corresponding UserName.]]>
  36621. </doc>
  36622. </class>
  36623. <!-- end class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  36624. </package>
  36625. <package name="org.apache.hadoop.security.authentication.client">
  36626. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  36627. <class name="AuthenticatedURL" extends="java.lang.Object"
  36628. abstract="false"
  36629. static="false" final="false" visibility="public"
  36630. deprecated="not deprecated">
  36631. <constructor name="AuthenticatedURL"
  36632. static="false" final="false" visibility="public"
  36633. deprecated="not deprecated">
  36634. <doc>
  36635. <![CDATA[Creates an {@link AuthenticatedURL}.]]>
  36636. </doc>
  36637. </constructor>
  36638. <constructor name="AuthenticatedURL" type="org.apache.hadoop.security.authentication.client.Authenticator"
  36639. static="false" final="false" visibility="public"
  36640. deprecated="not deprecated">
  36641. <doc>
  36642. <![CDATA[Creates an <code>AuthenticatedURL</code>.
  36643. @param authenticator the {@link Authenticator} instance to use, if <code>null</code> a {@link
  36644. KerberosAuthenticator} is used.]]>
  36645. </doc>
  36646. </constructor>
  36647. <method name="setDefaultAuthenticator"
  36648. abstract="false" native="false" synchronized="false"
  36649. static="true" final="false" visibility="public"
  36650. deprecated="not deprecated">
  36651. <param name="authenticator" type="java.lang.Class"/>
  36652. <doc>
  36653. <![CDATA[Sets the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  36654. is created without specifying an authenticator.
  36655. @param authenticator the authenticator class to use as default.]]>
  36656. </doc>
  36657. </method>
  36658. <method name="getDefaultAuthenticator" return="java.lang.Class"
  36659. abstract="false" native="false" synchronized="false"
  36660. static="true" final="false" visibility="public"
  36661. deprecated="not deprecated">
  36662. <doc>
  36663. <![CDATA[Returns the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  36664. is created without specifying an authenticator.
  36665. @return the authenticator class to use as default.]]>
  36666. </doc>
  36667. </method>
  36668. <method name="openConnection" return="java.net.HttpURLConnection"
  36669. abstract="false" native="false" synchronized="false"
  36670. static="false" final="false" visibility="public"
  36671. deprecated="not deprecated">
  36672. <param name="url" type="java.net.URL"/>
  36673. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36674. <exception name="IOException" type="java.io.IOException"/>
  36675. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36676. <doc>
  36677. <![CDATA[Returns an authenticated {@link HttpURLConnection}.
  36678. @param url the URL to connect to. Only HTTP/S URLs are supported.
  36679. @param token the authentication token being used for the user.
  36680. @return an authenticated {@link HttpURLConnection}.
  36681. @throws IOException if an IO error occurred.
  36682. @throws AuthenticationException if an authentication exception occurred.]]>
  36683. </doc>
  36684. </method>
  36685. <method name="injectToken"
  36686. abstract="false" native="false" synchronized="false"
  36687. static="true" final="false" visibility="public"
  36688. deprecated="not deprecated">
  36689. <param name="conn" type="java.net.HttpURLConnection"/>
  36690. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36691. <doc>
  36692. <![CDATA[Helper method that injects an authentication token to send with a connection.
  36693. @param conn connection to inject the authentication token into.
  36694. @param token authentication token to inject.]]>
  36695. </doc>
  36696. </method>
  36697. <method name="extractToken"
  36698. abstract="false" native="false" synchronized="false"
  36699. static="true" final="false" visibility="public"
  36700. deprecated="not deprecated">
  36701. <param name="conn" type="java.net.HttpURLConnection"/>
  36702. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36703. <exception name="IOException" type="java.io.IOException"/>
  36704. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36705. <doc>
  36706. <![CDATA[Helper method that extracts an authentication token received from a connection.
  36707. <p/>
  36708. This method is used by {@link Authenticator} implementations.
  36709. @param conn connection to extract the authentication token from.
  36710. @param token the authentication token.
  36711. @throws IOException if an IO error occurred.
  36712. @throws AuthenticationException if an authentication exception occurred.]]>
  36713. </doc>
  36714. </method>
  36715. <field name="AUTH_COOKIE" type="java.lang.String"
  36716. transient="false" volatile="false"
  36717. static="true" final="true" visibility="public"
  36718. deprecated="not deprecated">
  36719. <doc>
  36720. <![CDATA[Name of the HTTP cookie used for the authentication token between the client and the server.]]>
  36721. </doc>
  36722. </field>
  36723. <doc>
  36724. <![CDATA[The {@link AuthenticatedURL} class enables the use of the JDK {@link URL} class
  36725. against HTTP endpoints protected with the {@link AuthenticationFilter}.
  36726. <p/>
  36727. The authentication mechanisms supported by default are Hadoop Simple authentication
  36728. (also known as pseudo authentication) and Kerberos SPNEGO authentication.
  36729. <p/>
  36730. Additional authentication mechanisms can be supported via {@link Authenticator} implementations.
  36731. <p/>
  36732. The default {@link Authenticator} is the {@link KerberosAuthenticator} class which supports
  36733. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication.
  36734. <p/>
  36735. <code>AuthenticatedURL</code> instances are not thread-safe.
  36736. <p/>
  36737. The usage pattern of the {@link AuthenticatedURL} is:
  36738. <p/>
  36739. <pre>
  36740. // establishing an initial connection
  36741. URL url = new URL("http://foo:8080/bar");
  36742. AuthenticatedURL.Token token = new AuthenticatedURL.Token();
  36743. AuthenticatedURL aUrl = new AuthenticatedURL();
  36744. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  36745. ....
  36746. // use the 'conn' instance
  36747. ....
  36748. // establishing a follow up connection using a token from the previous connection
  36749. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  36750. ....
  36751. // use the 'conn' instance
  36752. ....
  36753. </pre>]]>
  36754. </doc>
  36755. </class>
  36756. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  36757. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  36758. <class name="AuthenticatedURL.Token" extends="java.lang.Object"
  36759. abstract="false"
  36760. static="true" final="false" visibility="public"
  36761. deprecated="not deprecated">
  36762. <constructor name="AuthenticatedURL.Token"
  36763. static="false" final="false" visibility="public"
  36764. deprecated="not deprecated">
  36765. <doc>
  36766. <![CDATA[Creates a token.]]>
  36767. </doc>
  36768. </constructor>
  36769. <constructor name="AuthenticatedURL.Token" type="java.lang.String"
  36770. static="false" final="false" visibility="public"
  36771. deprecated="not deprecated">
  36772. <doc>
  36773. <![CDATA[Creates a token using an existing string representation of the token.
  36774. @param tokenStr string representation of the tokenStr.]]>
  36775. </doc>
  36776. </constructor>
  36777. <method name="isSet" return="boolean"
  36778. abstract="false" native="false" synchronized="false"
  36779. static="false" final="false" visibility="public"
  36780. deprecated="not deprecated">
  36781. <doc>
  36782. <![CDATA[Returns if a token from the server has been set.
  36783. @return if a token from the server has been set.]]>
  36784. </doc>
  36785. </method>
  36786. <method name="toString" return="java.lang.String"
  36787. abstract="false" native="false" synchronized="false"
  36788. static="false" final="false" visibility="public"
  36789. deprecated="not deprecated">
  36790. <doc>
  36791. <![CDATA[Returns the string representation of the token.
  36792. @return the string representation of the token.]]>
  36793. </doc>
  36794. </method>
  36795. <method name="hashCode" return="int"
  36796. abstract="false" native="false" synchronized="false"
  36797. static="false" final="false" visibility="public"
  36798. deprecated="not deprecated">
  36799. <doc>
  36800. <![CDATA[Return the hashcode for the token.
  36801. @return the hashcode for the token.]]>
  36802. </doc>
  36803. </method>
  36804. <method name="equals" return="boolean"
  36805. abstract="false" native="false" synchronized="false"
  36806. static="false" final="false" visibility="public"
  36807. deprecated="not deprecated">
  36808. <param name="o" type="java.lang.Object"/>
  36809. <doc>
  36810. <![CDATA[Return if two token instances are equal.
  36811. @param o the other token instance.
  36812. @return if this instance and the other instance are equal.]]>
  36813. </doc>
  36814. </method>
  36815. <doc>
  36816. <![CDATA[Client side authentication token.]]>
  36817. </doc>
  36818. </class>
  36819. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  36820. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  36821. <class name="AuthenticationException" extends="java.lang.Exception"
  36822. abstract="false"
  36823. static="false" final="false" visibility="public"
  36824. deprecated="not deprecated">
  36825. <constructor name="AuthenticationException" type="java.lang.Throwable"
  36826. static="false" final="false" visibility="public"
  36827. deprecated="not deprecated">
  36828. <doc>
  36829. <![CDATA[Creates an {@link AuthenticationException}.
  36830. @param cause original exception.]]>
  36831. </doc>
  36832. </constructor>
  36833. <constructor name="AuthenticationException" type="java.lang.String"
  36834. static="false" final="false" visibility="public"
  36835. deprecated="not deprecated">
  36836. <doc>
  36837. <![CDATA[Creates an {@link AuthenticationException}.
  36838. @param msg exception message.]]>
  36839. </doc>
  36840. </constructor>
  36841. <constructor name="AuthenticationException" type="java.lang.String, java.lang.Throwable"
  36842. static="false" final="false" visibility="public"
  36843. deprecated="not deprecated">
  36844. <doc>
  36845. <![CDATA[Creates an {@link AuthenticationException}.
  36846. @param msg exception message.
  36847. @param cause original exception.]]>
  36848. </doc>
  36849. </constructor>
  36850. <doc>
  36851. <![CDATA[Exception thrown when an authentication error occurrs.]]>
  36852. </doc>
  36853. </class>
  36854. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  36855. <!-- start interface org.apache.hadoop.security.authentication.client.Authenticator -->
  36856. <interface name="Authenticator" abstract="true"
  36857. static="false" final="false" visibility="public"
  36858. deprecated="not deprecated">
  36859. <method name="authenticate"
  36860. abstract="false" native="false" synchronized="false"
  36861. static="false" final="false" visibility="public"
  36862. deprecated="not deprecated">
  36863. <param name="url" type="java.net.URL"/>
  36864. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36865. <exception name="IOException" type="java.io.IOException"/>
  36866. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36867. <doc>
  36868. <![CDATA[Authenticates against a URL and returns a {@link AuthenticatedURL.Token} to be
  36869. used by subsequent requests.
  36870. @param url the URl to authenticate against.
  36871. @param token the authentication token being used for the user.
  36872. @throws IOException if an IO error occurred.
  36873. @throws AuthenticationException if an authentication error occurred.]]>
  36874. </doc>
  36875. </method>
  36876. <doc>
  36877. <![CDATA[Interface for client authentication mechanisms.
  36878. <p/>
  36879. Implementations are use-once instances, they don't need to be thread safe.]]>
  36880. </doc>
  36881. </interface>
  36882. <!-- end interface org.apache.hadoop.security.authentication.client.Authenticator -->
  36883. <!-- start class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  36884. <class name="KerberosAuthenticator" extends="java.lang.Object"
  36885. abstract="false"
  36886. static="false" final="false" visibility="public"
  36887. deprecated="not deprecated">
  36888. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  36889. <constructor name="KerberosAuthenticator"
  36890. static="false" final="false" visibility="public"
  36891. deprecated="not deprecated">
  36892. </constructor>
  36893. <method name="authenticate"
  36894. abstract="false" native="false" synchronized="false"
  36895. static="false" final="false" visibility="public"
  36896. deprecated="not deprecated">
  36897. <param name="url" type="java.net.URL"/>
  36898. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36899. <exception name="IOException" type="java.io.IOException"/>
  36900. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36901. <doc>
  36902. <![CDATA[Performs SPNEGO authentication against the specified URL.
  36903. <p/>
  36904. If a token is given it does a NOP and returns the given token.
  36905. <p/>
  36906. If no token is given, it will perform the SPNEGO authentication sequence using an
  36907. HTTP <code>OPTIONS</code> request.
  36908. @param url the URl to authenticate against.
  36909. @param token the authentication token being used for the user.
  36910. @throws IOException if an IO error occurred.
  36911. @throws AuthenticationException if an authentication error occurred.]]>
  36912. </doc>
  36913. </method>
  36914. <method name="getFallBackAuthenticator" return="org.apache.hadoop.security.authentication.client.Authenticator"
  36915. abstract="false" native="false" synchronized="false"
  36916. static="false" final="false" visibility="protected"
  36917. deprecated="not deprecated">
  36918. <doc>
  36919. <![CDATA[If the specified URL does not support SPNEGO authentication, a fallback {@link Authenticator} will be used.
  36920. <p/>
  36921. This implementation returns a {@link PseudoAuthenticator}.
  36922. @return the fallback {@link Authenticator}.]]>
  36923. </doc>
  36924. </method>
  36925. <field name="WWW_AUTHENTICATE" type="java.lang.String"
  36926. transient="false" volatile="false"
  36927. static="true" final="true" visibility="public"
  36928. deprecated="not deprecated">
  36929. <doc>
  36930. <![CDATA[HTTP header used by the SPNEGO server endpoint during an authentication sequence.]]>
  36931. </doc>
  36932. </field>
  36933. <field name="AUTHORIZATION" type="java.lang.String"
  36934. transient="false" volatile="false"
  36935. static="true" final="true" visibility="public"
  36936. deprecated="not deprecated">
  36937. <doc>
  36938. <![CDATA[HTTP header used by the SPNEGO client endpoint during an authentication sequence.]]>
  36939. </doc>
  36940. </field>
  36941. <field name="NEGOTIATE" type="java.lang.String"
  36942. transient="false" volatile="false"
  36943. static="true" final="true" visibility="public"
  36944. deprecated="not deprecated">
  36945. <doc>
  36946. <![CDATA[HTTP header prefix used by the SPNEGO client/server endpoints during an authentication sequence.]]>
  36947. </doc>
  36948. </field>
  36949. <doc>
  36950. <![CDATA[The {@link KerberosAuthenticator} implements the Kerberos SPNEGO authentication sequence.
  36951. <p/>
  36952. It uses the default principal for the Kerberos cache (normally set via kinit).
  36953. <p/>
  36954. It falls back to the {@link PseudoAuthenticator} if the HTTP endpoint does not trigger an SPNEGO authentication
  36955. sequence.]]>
  36956. </doc>
  36957. </class>
  36958. <!-- end class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  36959. <!-- start class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  36960. <class name="PseudoAuthenticator" extends="java.lang.Object"
  36961. abstract="false"
  36962. static="false" final="false" visibility="public"
  36963. deprecated="not deprecated">
  36964. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  36965. <constructor name="PseudoAuthenticator"
  36966. static="false" final="false" visibility="public"
  36967. deprecated="not deprecated">
  36968. </constructor>
  36969. <method name="authenticate"
  36970. abstract="false" native="false" synchronized="false"
  36971. static="false" final="false" visibility="public"
  36972. deprecated="not deprecated">
  36973. <param name="url" type="java.net.URL"/>
  36974. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36975. <exception name="IOException" type="java.io.IOException"/>
  36976. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36977. <doc>
  36978. <![CDATA[Performs simple authentication against the specified URL.
  36979. <p/>
  36980. If a token is given it does a NOP and returns the given token.
  36981. <p/>
  36982. If no token is given, it will perform an HTTP <code>OPTIONS</code> request injecting an additional
  36983. parameter {@link #USER_NAME} in the query string with the value returned by the {@link #getUserName()}
  36984. method.
  36985. <p/>
  36986. If the response is successful it will update the authentication token.
  36987. @param url the URl to authenticate against.
  36988. @param token the authencation token being used for the user.
  36989. @throws IOException if an IO error occurred.
  36990. @throws AuthenticationException if an authentication error occurred.]]>
  36991. </doc>
  36992. </method>
  36993. <method name="getUserName" return="java.lang.String"
  36994. abstract="false" native="false" synchronized="false"
  36995. static="false" final="false" visibility="protected"
  36996. deprecated="not deprecated">
  36997. <doc>
  36998. <![CDATA[Returns the current user name.
  36999. <p/>
  37000. This implementation returns the value of the Java system property 'user.name'
  37001. @return the current user name.]]>
  37002. </doc>
  37003. </method>
  37004. <field name="USER_NAME" type="java.lang.String"
  37005. transient="false" volatile="false"
  37006. static="true" final="true" visibility="public"
  37007. deprecated="not deprecated">
  37008. <doc>
  37009. <![CDATA[Name of the additional parameter that carries the 'user.name' value.]]>
  37010. </doc>
  37011. </field>
  37012. <doc>
  37013. <![CDATA[The {@link PseudoAuthenticator} implementation provides an authentication equivalent to Hadoop's
  37014. Simple authentication, it trusts the value of the 'user.name' Java System property.
  37015. <p/>
  37016. The 'user.name' value is propagated using an additional query string parameter {@link #USER_NAME} ('user.name').]]>
  37017. </doc>
  37018. </class>
  37019. <!-- end class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  37020. </package>
  37021. <package name="org.apache.hadoop.security.authentication.server">
  37022. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  37023. <class name="AuthenticationFilter" extends="java.lang.Object"
  37024. abstract="false"
  37025. static="false" final="false" visibility="public"
  37026. deprecated="not deprecated">
  37027. <implements name="javax.servlet.Filter"/>
  37028. <constructor name="AuthenticationFilter"
  37029. static="false" final="false" visibility="public"
  37030. deprecated="not deprecated">
  37031. </constructor>
  37032. <method name="init"
  37033. abstract="false" native="false" synchronized="false"
  37034. static="false" final="false" visibility="public"
  37035. deprecated="not deprecated">
  37036. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  37037. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37038. <doc>
  37039. <![CDATA[Initializes the authentication filter.
  37040. <p/>
  37041. It instantiates and initializes the specified {@link AuthenticationHandler}.
  37042. <p/>
  37043. @param filterConfig filter configuration.
  37044. @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.]]>
  37045. </doc>
  37046. </method>
  37047. <method name="getAuthenticationHandler" return="org.apache.hadoop.security.authentication.server.AuthenticationHandler"
  37048. abstract="false" native="false" synchronized="false"
  37049. static="false" final="false" visibility="protected"
  37050. deprecated="not deprecated">
  37051. <doc>
  37052. <![CDATA[Returns the authentication handler being used.
  37053. @return the authentication handler being used.]]>
  37054. </doc>
  37055. </method>
  37056. <method name="isRandomSecret" return="boolean"
  37057. abstract="false" native="false" synchronized="false"
  37058. static="false" final="false" visibility="protected"
  37059. deprecated="not deprecated">
  37060. <doc>
  37061. <![CDATA[Returns if a random secret is being used.
  37062. @return if a random secret is being used.]]>
  37063. </doc>
  37064. </method>
  37065. <method name="getValidity" return="long"
  37066. abstract="false" native="false" synchronized="false"
  37067. static="false" final="false" visibility="protected"
  37068. deprecated="not deprecated">
  37069. <doc>
  37070. <![CDATA[Returns the validity time of the generated tokens.
  37071. @return the validity time of the generated tokens, in seconds.]]>
  37072. </doc>
  37073. </method>
  37074. <method name="getCookieDomain" return="java.lang.String"
  37075. abstract="false" native="false" synchronized="false"
  37076. static="false" final="false" visibility="protected"
  37077. deprecated="not deprecated">
  37078. <doc>
  37079. <![CDATA[Returns the cookie domain to use for the HTTP cookie.
  37080. @return the cookie domain to use for the HTTP cookie.]]>
  37081. </doc>
  37082. </method>
  37083. <method name="getCookiePath" return="java.lang.String"
  37084. abstract="false" native="false" synchronized="false"
  37085. static="false" final="false" visibility="protected"
  37086. deprecated="not deprecated">
  37087. <doc>
  37088. <![CDATA[Returns the cookie path to use for the HTTP cookie.
  37089. @return the cookie path to use for the HTTP cookie.]]>
  37090. </doc>
  37091. </method>
  37092. <method name="destroy"
  37093. abstract="false" native="false" synchronized="false"
  37094. static="false" final="false" visibility="public"
  37095. deprecated="not deprecated">
  37096. <doc>
  37097. <![CDATA[Destroys the filter.
  37098. <p/>
  37099. It invokes the {@link AuthenticationHandler#destroy()} method to release any resources it may hold.]]>
  37100. </doc>
  37101. </method>
  37102. <method name="getConfiguration" return="java.util.Properties"
  37103. abstract="false" native="false" synchronized="false"
  37104. static="false" final="false" visibility="protected"
  37105. deprecated="not deprecated">
  37106. <param name="configPrefix" type="java.lang.String"/>
  37107. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  37108. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37109. <doc>
  37110. <![CDATA[Returns the filtered configuration (only properties starting with the specified prefix). The property keys
  37111. are also trimmed from the prefix. The returned {@link Properties} object is used to initialized the
  37112. {@link AuthenticationHandler}.
  37113. <p/>
  37114. This method can be overriden by subclasses to obtain the configuration from other configuration source than
  37115. the web.xml file.
  37116. @param configPrefix configuration prefix to use for extracting configuration properties.
  37117. @param filterConfig filter configuration object
  37118. @return the configuration to be used with the {@link AuthenticationHandler} instance.
  37119. @throws ServletException thrown if the configuration could not be created.]]>
  37120. </doc>
  37121. </method>
  37122. <method name="getRequestURL" return="java.lang.String"
  37123. abstract="false" native="false" synchronized="false"
  37124. static="false" final="false" visibility="protected"
  37125. deprecated="not deprecated">
  37126. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37127. <doc>
  37128. <![CDATA[Returns the full URL of the request including the query string.
  37129. <p/>
  37130. Used as a convenience method for logging purposes.
  37131. @param request the request object.
  37132. @return the full URL of the request including the query string.]]>
  37133. </doc>
  37134. </method>
  37135. <method name="getToken" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37136. abstract="false" native="false" synchronized="false"
  37137. static="false" final="false" visibility="protected"
  37138. deprecated="not deprecated">
  37139. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37140. <exception name="IOException" type="java.io.IOException"/>
  37141. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37142. <doc>
  37143. <![CDATA[Returns the {@link AuthenticationToken} for the request.
  37144. <p/>
  37145. It looks at the received HTTP cookies and extracts the value of the {@link AuthenticatedURL#AUTH_COOKIE}
  37146. if present. It verifies the signature and if correct it creates the {@link AuthenticationToken} and returns
  37147. it.
  37148. <p/>
  37149. If this method returns <code>null</code> the filter will invoke the configured {@link AuthenticationHandler}
  37150. to perform user authentication.
  37151. @param request request object.
  37152. @return the Authentication token if the request is authenticated, <code>null</code> otherwise.
  37153. @throws IOException thrown if an IO error occurred.
  37154. @throws AuthenticationException thrown if the token is invalid or if it has expired.]]>
  37155. </doc>
  37156. </method>
  37157. <method name="doFilter"
  37158. abstract="false" native="false" synchronized="false"
  37159. static="false" final="false" visibility="public"
  37160. deprecated="not deprecated">
  37161. <param name="request" type="javax.servlet.ServletRequest"/>
  37162. <param name="response" type="javax.servlet.ServletResponse"/>
  37163. <param name="filterChain" type="javax.servlet.FilterChain"/>
  37164. <exception name="IOException" type="java.io.IOException"/>
  37165. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37166. <doc>
  37167. <![CDATA[If the request has a valid authentication token it allows the request to continue to the target resource,
  37168. otherwise it triggers an authentication sequence using the configured {@link AuthenticationHandler}.
  37169. @param request the request object.
  37170. @param response the response object.
  37171. @param filterChain the filter chain object.
  37172. @throws IOException thrown if an IO error occurred.
  37173. @throws ServletException thrown if a processing error occurred.]]>
  37174. </doc>
  37175. </method>
  37176. <method name="createCookie" return="javax.servlet.http.Cookie"
  37177. abstract="false" native="false" synchronized="false"
  37178. static="false" final="false" visibility="protected"
  37179. deprecated="not deprecated">
  37180. <param name="token" type="java.lang.String"/>
  37181. <doc>
  37182. <![CDATA[Creates the Hadoop authentiation HTTP cookie.
  37183. <p/>
  37184. It sets the domain and path specified in the configuration.
  37185. @param token authentication token for the cookie.
  37186. @return the HTTP cookie.]]>
  37187. </doc>
  37188. </method>
  37189. <field name="CONFIG_PREFIX" type="java.lang.String"
  37190. transient="false" volatile="false"
  37191. static="true" final="true" visibility="public"
  37192. deprecated="not deprecated">
  37193. <doc>
  37194. <![CDATA[Constant for the property that specifies the configuration prefix.]]>
  37195. </doc>
  37196. </field>
  37197. <field name="AUTH_TYPE" type="java.lang.String"
  37198. transient="false" volatile="false"
  37199. static="true" final="true" visibility="public"
  37200. deprecated="not deprecated">
  37201. <doc>
  37202. <![CDATA[Constant for the property that specifies the authentication handler to use.]]>
  37203. </doc>
  37204. </field>
  37205. <field name="SIGNATURE_SECRET" type="java.lang.String"
  37206. transient="false" volatile="false"
  37207. static="true" final="true" visibility="public"
  37208. deprecated="not deprecated">
  37209. <doc>
  37210. <![CDATA[Constant for the property that specifies the secret to use for signing the HTTP Cookies.]]>
  37211. </doc>
  37212. </field>
  37213. <field name="AUTH_TOKEN_VALIDITY" type="java.lang.String"
  37214. transient="false" volatile="false"
  37215. static="true" final="true" visibility="public"
  37216. deprecated="not deprecated">
  37217. <doc>
  37218. <![CDATA[Constant for the configuration property that indicates the validity of the generated token.]]>
  37219. </doc>
  37220. </field>
  37221. <field name="COOKIE_DOMAIN" type="java.lang.String"
  37222. transient="false" volatile="false"
  37223. static="true" final="true" visibility="public"
  37224. deprecated="not deprecated">
  37225. <doc>
  37226. <![CDATA[Constant for the configuration property that indicates the domain to use in the HTTP cookie.]]>
  37227. </doc>
  37228. </field>
  37229. <field name="COOKIE_PATH" type="java.lang.String"
  37230. transient="false" volatile="false"
  37231. static="true" final="true" visibility="public"
  37232. deprecated="not deprecated">
  37233. <doc>
  37234. <![CDATA[Constant for the configuration property that indicates the path to use in the HTTP cookie.]]>
  37235. </doc>
  37236. </field>
  37237. <doc>
  37238. <![CDATA[The {@link AuthenticationFilter} enables protecting web application resources with different (pluggable)
  37239. authentication mechanisms.
  37240. <p/>
  37241. Out of the box it provides 2 authentication mechanisms: Pseudo and Kerberos SPNEGO.
  37242. <p/>
  37243. Additional authentication mechanisms are supported via the {@link AuthenticationHandler} interface.
  37244. <p/>
  37245. This filter delegates to the configured authentication handler for authentication and once it obtains an
  37246. {@link AuthenticationToken} from it, sets a signed HTTP cookie with the token. For client requests
  37247. that provide the signed HTTP cookie, it verifies the validity of the cookie, extracts the user information
  37248. and lets the request proceed to the target resource.
  37249. <p/>
  37250. The supported configuration properties are:
  37251. <ul>
  37252. <li>config.prefix: indicates the prefix to be used by all other configuration properties, the default value
  37253. is no prefix. See below for details on how/why this prefix is used.</li>
  37254. <li>[#PREFIX#.]type: simple|kerberos|#CLASS#, 'simple' is short for the
  37255. {@link PseudoAuthenticationHandler}, 'kerberos' is short for {@link KerberosAuthenticationHandler}, otherwise
  37256. the full class name of the {@link AuthenticationHandler} must be specified.</li>
  37257. <li>[#PREFIX#.]signature.secret: the secret used to sign the HTTP cookie value. The default value is a random
  37258. value. Unless multiple webapp instances need to share the secret the random value is adequate.</li>
  37259. <li>[#PREFIX#.]token.validity: time -in seconds- that the generated token is valid before a
  37260. new authentication is triggered, default value is <code>3600</code> seconds.</li>
  37261. <li>[#PREFIX#.]cookie.domain: domain to use for the HTTP cookie that stores the authentication token.</li>
  37262. <li>[#PREFIX#.]cookie.path: path to use for the HTTP cookie that stores the authentication token.</li>
  37263. </ul>
  37264. <p/>
  37265. The rest of the configuration properties are specific to the {@link AuthenticationHandler} implementation and the
  37266. {@link AuthenticationFilter} will take all the properties that start with the prefix #PREFIX#, it will remove
  37267. the prefix from it and it will pass them to the the authentication handler for initialization. Properties that do
  37268. not start with the prefix will not be passed to the authentication handler initialization.]]>
  37269. </doc>
  37270. </class>
  37271. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  37272. <!-- start interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  37273. <interface name="AuthenticationHandler" abstract="true"
  37274. static="false" final="false" visibility="public"
  37275. deprecated="not deprecated">
  37276. <method name="getType" return="java.lang.String"
  37277. abstract="false" native="false" synchronized="false"
  37278. static="false" final="false" visibility="public"
  37279. deprecated="not deprecated">
  37280. <doc>
  37281. <![CDATA[Returns the authentication type of the authentication handler.
  37282. <p/>
  37283. This should be a name that uniquely identifies the authentication type.
  37284. For example 'simple' or 'kerberos'.
  37285. @return the authentication type of the authentication handler.]]>
  37286. </doc>
  37287. </method>
  37288. <method name="init"
  37289. abstract="false" native="false" synchronized="false"
  37290. static="false" final="false" visibility="public"
  37291. deprecated="not deprecated">
  37292. <param name="config" type="java.util.Properties"/>
  37293. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37294. <doc>
  37295. <![CDATA[Initializes the authentication handler instance.
  37296. <p/>
  37297. This method is invoked by the {@link AuthenticationFilter#init} method.
  37298. @param config configuration properties to initialize the handler.
  37299. @throws ServletException thrown if the handler could not be initialized.]]>
  37300. </doc>
  37301. </method>
  37302. <method name="destroy"
  37303. abstract="false" native="false" synchronized="false"
  37304. static="false" final="false" visibility="public"
  37305. deprecated="not deprecated">
  37306. <doc>
  37307. <![CDATA[Destroys the authentication handler instance.
  37308. <p/>
  37309. This method is invoked by the {@link AuthenticationFilter#destroy} method.]]>
  37310. </doc>
  37311. </method>
  37312. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37313. abstract="false" native="false" synchronized="false"
  37314. static="false" final="false" visibility="public"
  37315. deprecated="not deprecated">
  37316. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37317. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  37318. <exception name="IOException" type="java.io.IOException"/>
  37319. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37320. <doc>
  37321. <![CDATA[Performs an authentication step for the given HTTP client request.
  37322. <p/>
  37323. This method is invoked by the {@link AuthenticationFilter} only if the HTTP client request is
  37324. not yet authenticated.
  37325. <p/>
  37326. Depending upon the authentication mechanism being implemented, a particular HTTP client may
  37327. end up making a sequence of invocations before authentication is successfully established (this is
  37328. the case of Kerberos SPNEGO).
  37329. <p/>
  37330. This method must return an {@link AuthenticationToken} only if the the HTTP client request has
  37331. been successfully and fully authenticated.
  37332. <p/>
  37333. If the HTTP client request has not been completely authenticated, this method must take over
  37334. the corresponding HTTP response and it must return <code>null</code>.
  37335. @param request the HTTP client request.
  37336. @param response the HTTP client response.
  37337. @return an {@link AuthenticationToken} if the HTTP client request has been authenticated,
  37338. <code>null</code> otherwise (in this case it must take care of the response).
  37339. @throws IOException thrown if an IO error occurred.
  37340. @throws AuthenticationException thrown if an Authentication error occurred.]]>
  37341. </doc>
  37342. </method>
  37343. <doc>
  37344. <![CDATA[Interface for server authentication mechanisms.
  37345. <p/>
  37346. The {@link AuthenticationFilter} manages the lifecycle of the authentication handler.
  37347. <p/>
  37348. Implementations must be thread-safe as one instance is initialized and used for all requests.]]>
  37349. </doc>
  37350. </interface>
  37351. <!-- end interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  37352. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  37353. <class name="AuthenticationToken" extends="java.lang.Object"
  37354. abstract="false"
  37355. static="false" final="false" visibility="public"
  37356. deprecated="not deprecated">
  37357. <implements name="java.security.Principal"/>
  37358. <constructor name="AuthenticationToken" type="java.lang.String, java.lang.String, java.lang.String"
  37359. static="false" final="false" visibility="public"
  37360. deprecated="not deprecated">
  37361. <doc>
  37362. <![CDATA[Creates an authentication token.
  37363. @param userName user name.
  37364. @param principal principal (commonly matches the user name, with Kerberos is the full/long principal
  37365. name while the userName is the short name).
  37366. @param type the authentication mechanism name.
  37367. (<code>System.currentTimeMillis() + validityPeriod</code>).]]>
  37368. </doc>
  37369. </constructor>
  37370. <method name="setExpires"
  37371. abstract="false" native="false" synchronized="false"
  37372. static="false" final="false" visibility="public"
  37373. deprecated="not deprecated">
  37374. <param name="expires" type="long"/>
  37375. <doc>
  37376. <![CDATA[Sets the expiration of the token.
  37377. @param expires expiration time of the token in milliseconds since the epoch.]]>
  37378. </doc>
  37379. </method>
  37380. <method name="getUserName" return="java.lang.String"
  37381. abstract="false" native="false" synchronized="false"
  37382. static="false" final="false" visibility="public"
  37383. deprecated="not deprecated">
  37384. <doc>
  37385. <![CDATA[Returns the user name.
  37386. @return the user name.]]>
  37387. </doc>
  37388. </method>
  37389. <method name="getName" return="java.lang.String"
  37390. abstract="false" native="false" synchronized="false"
  37391. static="false" final="false" visibility="public"
  37392. deprecated="not deprecated">
  37393. <doc>
  37394. <![CDATA[Returns the principal name (this method name comes from the JDK {@link Principal} interface).
  37395. @return the principal name.]]>
  37396. </doc>
  37397. </method>
  37398. <method name="getType" return="java.lang.String"
  37399. abstract="false" native="false" synchronized="false"
  37400. static="false" final="false" visibility="public"
  37401. deprecated="not deprecated">
  37402. <doc>
  37403. <![CDATA[Returns the authentication mechanism of the token.
  37404. @return the authentication mechanism of the token.]]>
  37405. </doc>
  37406. </method>
  37407. <method name="getExpires" return="long"
  37408. abstract="false" native="false" synchronized="false"
  37409. static="false" final="false" visibility="public"
  37410. deprecated="not deprecated">
  37411. <doc>
  37412. <![CDATA[Returns the expiration time of the token.
  37413. @return the expiration time of the token, in milliseconds since Epoc.]]>
  37414. </doc>
  37415. </method>
  37416. <method name="isExpired" return="boolean"
  37417. abstract="false" native="false" synchronized="false"
  37418. static="false" final="false" visibility="public"
  37419. deprecated="not deprecated">
  37420. <doc>
  37421. <![CDATA[Returns if the token has expired.
  37422. @return if the token has expired.]]>
  37423. </doc>
  37424. </method>
  37425. <method name="toString" return="java.lang.String"
  37426. abstract="false" native="false" synchronized="false"
  37427. static="false" final="false" visibility="public"
  37428. deprecated="not deprecated">
  37429. <doc>
  37430. <![CDATA[Returns the string representation of the token.
  37431. <p/>
  37432. This string representation is parseable by the {@link #parse} method.
  37433. @return the string representation of the token.]]>
  37434. </doc>
  37435. </method>
  37436. <method name="parse" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37437. abstract="false" native="false" synchronized="false"
  37438. static="true" final="false" visibility="public"
  37439. deprecated="not deprecated">
  37440. <param name="tokenStr" type="java.lang.String"/>
  37441. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37442. <doc>
  37443. <![CDATA[Parses a string into an authentication token.
  37444. @param tokenStr string representation of a token.
  37445. @return the parsed authentication token.
  37446. @throws AuthenticationException thrown if the string representation could not be parsed into
  37447. an authentication token.]]>
  37448. </doc>
  37449. </method>
  37450. <field name="ANONYMOUS" type="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37451. transient="false" volatile="false"
  37452. static="true" final="true" visibility="public"
  37453. deprecated="not deprecated">
  37454. <doc>
  37455. <![CDATA[Constant that identifies an anonymous request.]]>
  37456. </doc>
  37457. </field>
  37458. <doc>
  37459. <![CDATA[The {@link AuthenticationToken} contains information about an authenticated
  37460. HTTP client and doubles as the {@link Principal} to be returned by
  37461. authenticated {@link HttpServletRequest}s
  37462. <p/>
  37463. The token can be serialized/deserialized to and from a string as it is sent
  37464. and received in HTTP client responses and requests as a HTTP cookie (this is
  37465. done by the {@link AuthenticationFilter}).]]>
  37466. </doc>
  37467. </class>
  37468. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  37469. <!-- start class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  37470. <class name="KerberosAuthenticationHandler" extends="java.lang.Object"
  37471. abstract="false"
  37472. static="false" final="false" visibility="public"
  37473. deprecated="not deprecated">
  37474. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  37475. <constructor name="KerberosAuthenticationHandler"
  37476. static="false" final="false" visibility="public"
  37477. deprecated="not deprecated">
  37478. </constructor>
  37479. <method name="init"
  37480. abstract="false" native="false" synchronized="false"
  37481. static="false" final="false" visibility="public"
  37482. deprecated="not deprecated">
  37483. <param name="config" type="java.util.Properties"/>
  37484. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37485. <doc>
  37486. <![CDATA[Initializes the authentication handler instance.
  37487. <p/>
  37488. It creates a Kerberos context using the principal and keytab specified in the configuration.
  37489. <p/>
  37490. This method is invoked by the {@link AuthenticationFilter#init} method.
  37491. @param config configuration properties to initialize the handler.
  37492. @throws ServletException thrown if the handler could not be initialized.]]>
  37493. </doc>
  37494. </method>
  37495. <method name="destroy"
  37496. abstract="false" native="false" synchronized="false"
  37497. static="false" final="false" visibility="public"
  37498. deprecated="not deprecated">
  37499. <doc>
  37500. <![CDATA[Releases any resources initialized by the authentication handler.
  37501. <p/>
  37502. It destroys the Kerberos context.]]>
  37503. </doc>
  37504. </method>
  37505. <method name="getType" return="java.lang.String"
  37506. abstract="false" native="false" synchronized="false"
  37507. static="false" final="false" visibility="public"
  37508. deprecated="not deprecated">
  37509. <doc>
  37510. <![CDATA[Returns the authentication type of the authentication handler, 'kerberos'.
  37511. <p/>
  37512. @return the authentication type of the authentication handler, 'kerberos'.]]>
  37513. </doc>
  37514. </method>
  37515. <method name="getPrincipal" return="java.lang.String"
  37516. abstract="false" native="false" synchronized="false"
  37517. static="false" final="false" visibility="protected"
  37518. deprecated="not deprecated">
  37519. <doc>
  37520. <![CDATA[Returns the Kerberos principal used by the authentication handler.
  37521. @return the Kerberos principal used by the authentication handler.]]>
  37522. </doc>
  37523. </method>
  37524. <method name="getKeytab" return="java.lang.String"
  37525. abstract="false" native="false" synchronized="false"
  37526. static="false" final="false" visibility="protected"
  37527. deprecated="not deprecated">
  37528. <doc>
  37529. <![CDATA[Returns the keytab used by the authentication handler.
  37530. @return the keytab used by the authentication handler.]]>
  37531. </doc>
  37532. </method>
  37533. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37534. abstract="false" native="false" synchronized="false"
  37535. static="false" final="false" visibility="public"
  37536. deprecated="not deprecated">
  37537. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37538. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  37539. <exception name="IOException" type="java.io.IOException"/>
  37540. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37541. <doc>
  37542. <![CDATA[It enforces the the Kerberos SPNEGO authentication sequence returning an {@link AuthenticationToken} only
  37543. after the Kerberos SPNEGO sequence has completed successfully.
  37544. <p/>
  37545. @param request the HTTP client request.
  37546. @param response the HTTP client response.
  37547. @return an authentication token if the Kerberos SPNEGO sequence is complete and valid,
  37548. <code>null</code> if it is in progress (in this case the handler handles the response to the client).
  37549. @throws IOException thrown if an IO error occurred.
  37550. @throws AuthenticationException thrown if Kerberos SPNEGO sequence failed.]]>
  37551. </doc>
  37552. </method>
  37553. <field name="TYPE" type="java.lang.String"
  37554. transient="false" volatile="false"
  37555. static="true" final="true" visibility="public"
  37556. deprecated="not deprecated">
  37557. <doc>
  37558. <![CDATA[Constant that identifies the authentication mechanism.]]>
  37559. </doc>
  37560. </field>
  37561. <field name="PRINCIPAL" type="java.lang.String"
  37562. transient="false" volatile="false"
  37563. static="true" final="true" visibility="public"
  37564. deprecated="not deprecated">
  37565. <doc>
  37566. <![CDATA[Constant for the configuration property that indicates the kerberos principal.]]>
  37567. </doc>
  37568. </field>
  37569. <field name="KEYTAB" type="java.lang.String"
  37570. transient="false" volatile="false"
  37571. static="true" final="true" visibility="public"
  37572. deprecated="not deprecated">
  37573. <doc>
  37574. <![CDATA[Constant for the configuration property that indicates the keytab file path.]]>
  37575. </doc>
  37576. </field>
  37577. <field name="NAME_RULES" type="java.lang.String"
  37578. transient="false" volatile="false"
  37579. static="true" final="true" visibility="public"
  37580. deprecated="not deprecated">
  37581. <doc>
  37582. <![CDATA[Constant for the configuration property that indicates the Kerberos name
  37583. rules for the Kerberos principals.]]>
  37584. </doc>
  37585. </field>
  37586. <doc>
  37587. <![CDATA[The {@link KerberosAuthenticationHandler} implements the Kerberos SPNEGO authentication mechanism for HTTP.
  37588. <p/>
  37589. The supported configuration properties are:
  37590. <ul>
  37591. <li>kerberos.principal: the Kerberos principal to used by the server. As stated by the Kerberos SPNEGO
  37592. specification, it should be <code>HTTP/${HOSTNAME}@{REALM}</code>. The realm can be omitted from the
  37593. principal as the JDK GSS libraries will use the realm name of the configured default realm.
  37594. It does not have a default value.</li>
  37595. <li>kerberos.keytab: the keytab file containing the credentials for the Kerberos principal.
  37596. It does not have a default value.</li>
  37597. </ul>]]>
  37598. </doc>
  37599. </class>
  37600. <!-- end class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  37601. <!-- start class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  37602. <class name="PseudoAuthenticationHandler" extends="java.lang.Object"
  37603. abstract="false"
  37604. static="false" final="false" visibility="public"
  37605. deprecated="not deprecated">
  37606. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  37607. <constructor name="PseudoAuthenticationHandler"
  37608. static="false" final="false" visibility="public"
  37609. deprecated="not deprecated">
  37610. </constructor>
  37611. <method name="init"
  37612. abstract="false" native="false" synchronized="false"
  37613. static="false" final="false" visibility="public"
  37614. deprecated="not deprecated">
  37615. <param name="config" type="java.util.Properties"/>
  37616. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37617. <doc>
  37618. <![CDATA[Initializes the authentication handler instance.
  37619. <p/>
  37620. This method is invoked by the {@link AuthenticationFilter#init} method.
  37621. @param config configuration properties to initialize the handler.
  37622. @throws ServletException thrown if the handler could not be initialized.]]>
  37623. </doc>
  37624. </method>
  37625. <method name="getAcceptAnonymous" return="boolean"
  37626. abstract="false" native="false" synchronized="false"
  37627. static="false" final="false" visibility="protected"
  37628. deprecated="not deprecated">
  37629. <doc>
  37630. <![CDATA[Returns if the handler is configured to support anonymous users.
  37631. @return if the handler is configured to support anonymous users.]]>
  37632. </doc>
  37633. </method>
  37634. <method name="destroy"
  37635. abstract="false" native="false" synchronized="false"
  37636. static="false" final="false" visibility="public"
  37637. deprecated="not deprecated">
  37638. <doc>
  37639. <![CDATA[Releases any resources initialized by the authentication handler.
  37640. <p/>
  37641. This implementation does a NOP.]]>
  37642. </doc>
  37643. </method>
  37644. <method name="getType" return="java.lang.String"
  37645. abstract="false" native="false" synchronized="false"
  37646. static="false" final="false" visibility="public"
  37647. deprecated="not deprecated">
  37648. <doc>
  37649. <![CDATA[Returns the authentication type of the authentication handler, 'simple'.
  37650. <p/>
  37651. @return the authentication type of the authentication handler, 'simple'.]]>
  37652. </doc>
  37653. </method>
  37654. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37655. abstract="false" native="false" synchronized="false"
  37656. static="false" final="false" visibility="public"
  37657. deprecated="not deprecated">
  37658. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37659. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  37660. <exception name="IOException" type="java.io.IOException"/>
  37661. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37662. <doc>
  37663. <![CDATA[Authenticates an HTTP client request.
  37664. <p/>
  37665. It extracts the {@link PseudoAuthenticator#USER_NAME} parameter from the query string and creates
  37666. an {@link AuthenticationToken} with it.
  37667. <p/>
  37668. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  37669. the handler is configured to allow anonymous users it returns the {@link AuthenticationToken#ANONYMOUS}
  37670. token.
  37671. <p/>
  37672. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  37673. the handler is configured to disallow anonymous users it throws an {@link AuthenticationException}.
  37674. @param request the HTTP client request.
  37675. @param response the HTTP client response.
  37676. @return an authentication token if the HTTP client request is accepted and credentials are valid.
  37677. @throws IOException thrown if an IO error occurred.
  37678. @throws AuthenticationException thrown if HTTP client request was not accepted as an authentication request.]]>
  37679. </doc>
  37680. </method>
  37681. <field name="TYPE" type="java.lang.String"
  37682. transient="false" volatile="false"
  37683. static="true" final="true" visibility="public"
  37684. deprecated="not deprecated">
  37685. <doc>
  37686. <![CDATA[Constant that identifies the authentication mechanism.]]>
  37687. </doc>
  37688. </field>
  37689. <field name="ANONYMOUS_ALLOWED" type="java.lang.String"
  37690. transient="false" volatile="false"
  37691. static="true" final="true" visibility="public"
  37692. deprecated="not deprecated">
  37693. <doc>
  37694. <![CDATA[Constant for the configuration property that indicates if anonymous users are allowed.]]>
  37695. </doc>
  37696. </field>
  37697. <doc>
  37698. <![CDATA[The <code>PseudoAuthenticationHandler</code> provides a pseudo authentication mechanism that accepts
  37699. the user name specified as a query string parameter.
  37700. <p/>
  37701. This mimics the model of Hadoop Simple authentication which trust the 'user.name' property provided in
  37702. the configuration object.
  37703. <p/>
  37704. This handler can be configured to support anonymous users.
  37705. <p/>
  37706. The only supported configuration property is:
  37707. <ul>
  37708. <li>simple.anonymous.allowed: <code>true|false</code>, default value is <code>false</code></li>
  37709. </ul>]]>
  37710. </doc>
  37711. </class>
  37712. <!-- end class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  37713. </package>
  37714. <package name="org.apache.hadoop.security.authentication.util">
  37715. <!-- start class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  37716. <class name="KerberosUtil" extends="java.lang.Object"
  37717. abstract="false"
  37718. static="false" final="false" visibility="public"
  37719. deprecated="not deprecated">
  37720. <constructor name="KerberosUtil"
  37721. static="false" final="false" visibility="public"
  37722. deprecated="not deprecated">
  37723. </constructor>
  37724. <method name="getKrb5LoginModuleName" return="java.lang.String"
  37725. abstract="false" native="false" synchronized="false"
  37726. static="true" final="false" visibility="public"
  37727. deprecated="not deprecated">
  37728. </method>
  37729. <method name="getOidInstance" return="org.ietf.jgss.Oid"
  37730. abstract="false" native="false" synchronized="false"
  37731. static="true" final="false" visibility="public"
  37732. deprecated="not deprecated">
  37733. <param name="oidName" type="java.lang.String"/>
  37734. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  37735. <exception name="GSSException" type="org.ietf.jgss.GSSException"/>
  37736. <exception name="NoSuchFieldException" type="java.lang.NoSuchFieldException"/>
  37737. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  37738. </method>
  37739. <method name="getDefaultRealm" return="java.lang.String"
  37740. abstract="false" native="false" synchronized="false"
  37741. static="true" final="false" visibility="public"
  37742. deprecated="not deprecated">
  37743. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  37744. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  37745. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  37746. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  37747. <exception name="InvocationTargetException" type="java.lang.reflect.InvocationTargetException"/>
  37748. </method>
  37749. </class>
  37750. <!-- end class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  37751. <!-- start class org.apache.hadoop.security.authentication.util.Signer -->
  37752. <class name="Signer" extends="java.lang.Object"
  37753. abstract="false"
  37754. static="false" final="false" visibility="public"
  37755. deprecated="not deprecated">
  37756. <constructor name="Signer" type="byte[]"
  37757. static="false" final="false" visibility="public"
  37758. deprecated="not deprecated">
  37759. <doc>
  37760. <![CDATA[Creates a Signer instance using the specified secret.
  37761. @param secret secret to use for creating the digest.]]>
  37762. </doc>
  37763. </constructor>
  37764. <method name="sign" return="java.lang.String"
  37765. abstract="false" native="false" synchronized="false"
  37766. static="false" final="false" visibility="public"
  37767. deprecated="not deprecated">
  37768. <param name="str" type="java.lang.String"/>
  37769. <doc>
  37770. <![CDATA[Returns a signed string.
  37771. <p/>
  37772. The signature '&s=SIGNATURE' is appended at the end of the string.
  37773. @param str string to sign.
  37774. @return the signed string.]]>
  37775. </doc>
  37776. </method>
  37777. <method name="verifyAndExtract" return="java.lang.String"
  37778. abstract="false" native="false" synchronized="false"
  37779. static="false" final="false" visibility="public"
  37780. deprecated="not deprecated">
  37781. <param name="signedStr" type="java.lang.String"/>
  37782. <exception name="SignerException" type="org.apache.hadoop.security.authentication.util.SignerException"/>
  37783. <doc>
  37784. <![CDATA[Verifies a signed string and extracts the original string.
  37785. @param signedStr the signed string to verify and extract.
  37786. @return the extracted original string.
  37787. @throws SignerException thrown if the given string is not a signed string or if the signature is invalid.]]>
  37788. </doc>
  37789. </method>
  37790. <method name="computeSignature" return="java.lang.String"
  37791. abstract="false" native="false" synchronized="false"
  37792. static="false" final="false" visibility="protected"
  37793. deprecated="not deprecated">
  37794. <param name="str" type="java.lang.String"/>
  37795. <doc>
  37796. <![CDATA[Returns then signature of a string.
  37797. @param str string to sign.
  37798. @return the signature for the string.]]>
  37799. </doc>
  37800. </method>
  37801. <doc>
  37802. <![CDATA[Signs strings and verifies signed strings using a SHA digest.]]>
  37803. </doc>
  37804. </class>
  37805. <!-- end class org.apache.hadoop.security.authentication.util.Signer -->
  37806. <!-- start class org.apache.hadoop.security.authentication.util.SignerException -->
  37807. <class name="SignerException" extends="java.lang.Exception"
  37808. abstract="false"
  37809. static="false" final="false" visibility="public"
  37810. deprecated="not deprecated">
  37811. <constructor name="SignerException" type="java.lang.String"
  37812. static="false" final="false" visibility="public"
  37813. deprecated="not deprecated">
  37814. <doc>
  37815. <![CDATA[Creates an exception instance.
  37816. @param msg message for the exception.]]>
  37817. </doc>
  37818. </constructor>
  37819. <doc>
  37820. <![CDATA[Exception thrown by {@link Signer} when a string signature is invalid.]]>
  37821. </doc>
  37822. </class>
  37823. <!-- end class org.apache.hadoop.security.authentication.util.SignerException -->
  37824. </package>
  37825. <package name="org.apache.hadoop.security.authorize">
  37826. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  37827. <class name="AccessControlList" extends="java.lang.Object"
  37828. abstract="false"
  37829. static="false" final="false" visibility="public"
  37830. deprecated="not deprecated">
  37831. <implements name="org.apache.hadoop.io.Writable"/>
  37832. <constructor name="AccessControlList"
  37833. static="false" final="false" visibility="public"
  37834. deprecated="not deprecated">
  37835. <doc>
  37836. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  37837. </doc>
  37838. </constructor>
  37839. <constructor name="AccessControlList" type="java.lang.String"
  37840. static="false" final="false" visibility="public"
  37841. deprecated="not deprecated">
  37842. <doc>
  37843. <![CDATA[Construct a new ACL from a String representation of the same.
  37844. The String is a a comma separated list of users and groups.
  37845. The user list comes first and is separated by a space followed
  37846. by the group list. For e.g. "user1,user2 group1,group2"
  37847. @param aclString String representation of the ACL]]>
  37848. </doc>
  37849. </constructor>
  37850. <method name="isAllAllowed" return="boolean"
  37851. abstract="false" native="false" synchronized="false"
  37852. static="false" final="false" visibility="public"
  37853. deprecated="not deprecated">
  37854. </method>
  37855. <method name="addUser"
  37856. abstract="false" native="false" synchronized="false"
  37857. static="false" final="false" visibility="public"
  37858. deprecated="not deprecated">
  37859. <param name="user" type="java.lang.String"/>
  37860. </method>
  37861. <method name="isUserAllowed" return="boolean"
  37862. abstract="false" native="false" synchronized="false"
  37863. static="false" final="false" visibility="public"
  37864. deprecated="not deprecated">
  37865. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  37866. </method>
  37867. <method name="toString" return="java.lang.String"
  37868. abstract="false" native="false" synchronized="false"
  37869. static="false" final="false" visibility="public"
  37870. deprecated="not deprecated">
  37871. </method>
  37872. <method name="write"
  37873. abstract="false" native="false" synchronized="false"
  37874. static="false" final="false" visibility="public"
  37875. deprecated="not deprecated">
  37876. <param name="out" type="java.io.DataOutput"/>
  37877. <exception name="IOException" type="java.io.IOException"/>
  37878. </method>
  37879. <method name="readFields"
  37880. abstract="false" native="false" synchronized="false"
  37881. static="false" final="false" visibility="public"
  37882. deprecated="not deprecated">
  37883. <param name="in" type="java.io.DataInput"/>
  37884. <exception name="IOException" type="java.io.IOException"/>
  37885. </method>
  37886. <method name="getACLString" return="java.lang.String"
  37887. abstract="false" native="false" synchronized="false"
  37888. static="false" final="false" visibility="public"
  37889. deprecated="not deprecated">
  37890. <doc>
  37891. <![CDATA[Returns the String representation of this ACL. Unlike toString() method's
  37892. return value, this String can be directly given to the constructor of
  37893. AccessControlList to build AccessControlList object.
  37894. This is the method used by the serialization method write().]]>
  37895. </doc>
  37896. </method>
  37897. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  37898. transient="false" volatile="false"
  37899. static="true" final="true" visibility="public"
  37900. deprecated="not deprecated">
  37901. </field>
  37902. <doc>
  37903. <![CDATA[Class representing a configured access control list.]]>
  37904. </doc>
  37905. </class>
  37906. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  37907. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  37908. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  37909. abstract="false"
  37910. static="false" final="false" visibility="public"
  37911. deprecated="not deprecated">
  37912. <constructor name="AuthorizationException"
  37913. static="false" final="false" visibility="public"
  37914. deprecated="not deprecated">
  37915. </constructor>
  37916. <constructor name="AuthorizationException" type="java.lang.String"
  37917. static="false" final="false" visibility="public"
  37918. deprecated="not deprecated">
  37919. </constructor>
  37920. <constructor name="AuthorizationException" type="java.lang.Throwable"
  37921. static="false" final="false" visibility="public"
  37922. deprecated="not deprecated">
  37923. <doc>
  37924. <![CDATA[Constructs a new exception with the specified cause and a detail
  37925. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  37926. typically contains the class and detail message of <tt>cause</tt>).
  37927. @param cause the cause (which is saved for later retrieval by the
  37928. {@link #getCause()} method). (A <tt>null</tt> value is
  37929. permitted, and indicates that the cause is nonexistent or
  37930. unknown.)]]>
  37931. </doc>
  37932. </constructor>
  37933. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  37934. abstract="false" native="false" synchronized="false"
  37935. static="false" final="false" visibility="public"
  37936. deprecated="not deprecated">
  37937. </method>
  37938. <method name="printStackTrace"
  37939. abstract="false" native="false" synchronized="false"
  37940. static="false" final="false" visibility="public"
  37941. deprecated="not deprecated">
  37942. </method>
  37943. <method name="printStackTrace"
  37944. abstract="false" native="false" synchronized="false"
  37945. static="false" final="false" visibility="public"
  37946. deprecated="not deprecated">
  37947. <param name="s" type="java.io.PrintStream"/>
  37948. </method>
  37949. <method name="printStackTrace"
  37950. abstract="false" native="false" synchronized="false"
  37951. static="false" final="false" visibility="public"
  37952. deprecated="not deprecated">
  37953. <param name="s" type="java.io.PrintWriter"/>
  37954. </method>
  37955. <doc>
  37956. <![CDATA[An exception class for authorization-related issues.
  37957. This class <em>does not</em> provide the stack trace for security purposes.]]>
  37958. </doc>
  37959. </class>
  37960. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  37961. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  37962. <class name="PolicyProvider" extends="java.lang.Object"
  37963. abstract="true"
  37964. static="false" final="false" visibility="public"
  37965. deprecated="not deprecated">
  37966. <constructor name="PolicyProvider"
  37967. static="false" final="false" visibility="public"
  37968. deprecated="not deprecated">
  37969. </constructor>
  37970. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  37971. abstract="true" native="false" synchronized="false"
  37972. static="false" final="false" visibility="public"
  37973. deprecated="not deprecated">
  37974. <doc>
  37975. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  37976. @return the {@link Service} definitions]]>
  37977. </doc>
  37978. </method>
  37979. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  37980. transient="false" volatile="false"
  37981. static="true" final="true" visibility="public"
  37982. deprecated="not deprecated">
  37983. <doc>
  37984. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  37985. </doc>
  37986. </field>
  37987. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  37988. transient="false" volatile="false"
  37989. static="true" final="true" visibility="public"
  37990. deprecated="not deprecated">
  37991. <doc>
  37992. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  37993. </doc>
  37994. </field>
  37995. <doc>
  37996. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  37997. security {@link Policy} in effect for Hadoop.]]>
  37998. </doc>
  37999. </class>
  38000. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  38001. <!-- start class org.apache.hadoop.security.authorize.ProxyUsers -->
  38002. <class name="ProxyUsers" extends="java.lang.Object"
  38003. abstract="false"
  38004. static="false" final="false" visibility="public"
  38005. deprecated="not deprecated">
  38006. <constructor name="ProxyUsers"
  38007. static="false" final="false" visibility="public"
  38008. deprecated="not deprecated">
  38009. </constructor>
  38010. <method name="refreshSuperUserGroupsConfiguration"
  38011. abstract="false" native="false" synchronized="false"
  38012. static="true" final="false" visibility="public"
  38013. deprecated="not deprecated">
  38014. <doc>
  38015. <![CDATA[reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"]]>
  38016. </doc>
  38017. </method>
  38018. <method name="refreshSuperUserGroupsConfiguration"
  38019. abstract="false" native="false" synchronized="true"
  38020. static="true" final="false" visibility="public"
  38021. deprecated="not deprecated">
  38022. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38023. <doc>
  38024. <![CDATA[refresh configuration
  38025. @param conf]]>
  38026. </doc>
  38027. </method>
  38028. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  38029. abstract="false" native="false" synchronized="false"
  38030. static="true" final="false" visibility="public"
  38031. deprecated="not deprecated">
  38032. <param name="userName" type="java.lang.String"/>
  38033. <doc>
  38034. <![CDATA[Returns configuration key for effective user groups allowed for a superuser
  38035. @param userName name of the superuser
  38036. @return configuration key for superuser groups]]>
  38037. </doc>
  38038. </method>
  38039. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  38040. abstract="false" native="false" synchronized="false"
  38041. static="true" final="false" visibility="public"
  38042. deprecated="not deprecated">
  38043. <param name="userName" type="java.lang.String"/>
  38044. <doc>
  38045. <![CDATA[Return configuration key for superuser ip addresses
  38046. @param userName name of the superuser
  38047. @return configuration key for superuser ip-addresses]]>
  38048. </doc>
  38049. </method>
  38050. <method name="authorize"
  38051. abstract="false" native="false" synchronized="true"
  38052. static="true" final="false" visibility="public"
  38053. deprecated="not deprecated">
  38054. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  38055. <param name="remoteAddress" type="java.lang.String"/>
  38056. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  38057. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  38058. <doc>
  38059. <![CDATA[Authorize the superuser which is doing doAs
  38060. @param user ugi of the effective or proxy user which contains a real user
  38061. @param remoteAddress the ip address of client
  38062. @param newConf configuration
  38063. @throws AuthorizationException]]>
  38064. </doc>
  38065. </method>
  38066. <field name="CONF_GROUPS" type="java.lang.String"
  38067. transient="false" volatile="false"
  38068. static="true" final="true" visibility="public"
  38069. deprecated="not deprecated">
  38070. </field>
  38071. <field name="CONF_HADOOP_PROXYUSER" type="java.lang.String"
  38072. transient="false" volatile="false"
  38073. static="true" final="true" visibility="public"
  38074. deprecated="not deprecated">
  38075. </field>
  38076. <field name="CONF_HADOOP_PROXYUSER_RE" type="java.lang.String"
  38077. transient="false" volatile="false"
  38078. static="true" final="true" visibility="public"
  38079. deprecated="not deprecated">
  38080. </field>
  38081. </class>
  38082. <!-- end class org.apache.hadoop.security.authorize.ProxyUsers -->
  38083. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  38084. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  38085. static="false" final="false" visibility="public"
  38086. deprecated="not deprecated">
  38087. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  38088. <method name="refreshServiceAcl"
  38089. abstract="false" native="false" synchronized="false"
  38090. static="false" final="false" visibility="public"
  38091. deprecated="not deprecated">
  38092. <exception name="IOException" type="java.io.IOException"/>
  38093. <doc>
  38094. <![CDATA[Refresh the service-level authorization policy in-effect.
  38095. @throws IOException]]>
  38096. </doc>
  38097. </method>
  38098. <field name="versionID" type="long"
  38099. transient="false" volatile="false"
  38100. static="true" final="true" visibility="public"
  38101. deprecated="not deprecated">
  38102. <doc>
  38103. <![CDATA[Version 1: Initial version]]>
  38104. </doc>
  38105. </field>
  38106. <doc>
  38107. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  38108. </doc>
  38109. </interface>
  38110. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  38111. <!-- start class org.apache.hadoop.security.authorize.Service -->
  38112. <class name="Service" extends="java.lang.Object"
  38113. abstract="false"
  38114. static="false" final="false" visibility="public"
  38115. deprecated="not deprecated">
  38116. <constructor name="Service" type="java.lang.String, java.lang.Class"
  38117. static="false" final="false" visibility="public"
  38118. deprecated="not deprecated">
  38119. </constructor>
  38120. <method name="getServiceKey" return="java.lang.String"
  38121. abstract="false" native="false" synchronized="false"
  38122. static="false" final="false" visibility="public"
  38123. deprecated="not deprecated">
  38124. <doc>
  38125. <![CDATA[Get the configuration key for the service.
  38126. @return the configuration key for the service]]>
  38127. </doc>
  38128. </method>
  38129. <method name="getProtocol" return="java.lang.Class"
  38130. abstract="false" native="false" synchronized="false"
  38131. static="false" final="false" visibility="public"
  38132. deprecated="not deprecated">
  38133. <doc>
  38134. <![CDATA[Get the protocol for the service
  38135. @return the {@link Class} for the protocol]]>
  38136. </doc>
  38137. </method>
  38138. <doc>
  38139. <![CDATA[An abstract definition of <em>service</em> as related to
  38140. Service Level Authorization for Hadoop.
  38141. Each service defines it's configuration key and also the necessary
  38142. {@link Permission} required to access the service.]]>
  38143. </doc>
  38144. </class>
  38145. <!-- end class org.apache.hadoop.security.authorize.Service -->
  38146. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  38147. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  38148. abstract="false"
  38149. static="false" final="false" visibility="public"
  38150. deprecated="not deprecated">
  38151. <constructor name="ServiceAuthorizationManager"
  38152. static="false" final="false" visibility="public"
  38153. deprecated="not deprecated">
  38154. </constructor>
  38155. <method name="authorize"
  38156. abstract="false" native="false" synchronized="false"
  38157. static="true" final="false" visibility="public"
  38158. deprecated="not deprecated">
  38159. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  38160. <param name="protocol" type="java.lang.Class"/>
  38161. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38162. <param name="addr" type="java.net.InetAddress"/>
  38163. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  38164. <doc>
  38165. <![CDATA[Authorize the user to access the protocol being used.
  38166. @param user user accessing the service
  38167. @param protocol service being accessed
  38168. @param conf configuration to use
  38169. @param addr InetAddress of the client
  38170. @throws AuthorizationException on authorization failure]]>
  38171. </doc>
  38172. </method>
  38173. <method name="refresh"
  38174. abstract="false" native="false" synchronized="true"
  38175. static="true" final="false" visibility="public"
  38176. deprecated="not deprecated">
  38177. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38178. <param name="provider" type="org.apache.hadoop.security.authorize.PolicyProvider"/>
  38179. </method>
  38180. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  38181. transient="false" volatile="false"
  38182. static="true" final="true" visibility="public"
  38183. deprecated="Use
  38184. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  38185. instead.">
  38186. <doc>
  38187. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.
  38188. @deprecated Use
  38189. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  38190. instead.]]>
  38191. </doc>
  38192. </field>
  38193. <doc>
  38194. <![CDATA[An authorization manager which handles service-level authorization
  38195. for incoming service requests.]]>
  38196. </doc>
  38197. </class>
  38198. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  38199. </package>
  38200. <package name="org.apache.hadoop.security.token">
  38201. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  38202. <class name="SecretManager" extends="java.lang.Object"
  38203. abstract="true"
  38204. static="false" final="false" visibility="public"
  38205. deprecated="not deprecated">
  38206. <constructor name="SecretManager"
  38207. static="false" final="false" visibility="public"
  38208. deprecated="not deprecated">
  38209. </constructor>
  38210. <method name="createPassword" return="byte[]"
  38211. abstract="true" native="false" synchronized="false"
  38212. static="false" final="false" visibility="protected"
  38213. deprecated="not deprecated">
  38214. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  38215. <doc>
  38216. <![CDATA[Create the password for the given identifier.
  38217. identifier may be modified inside this method.
  38218. @param identifier the identifier to use
  38219. @return the new password]]>
  38220. </doc>
  38221. </method>
  38222. <method name="retrievePassword" return="byte[]"
  38223. abstract="true" native="false" synchronized="false"
  38224. static="false" final="false" visibility="public"
  38225. deprecated="not deprecated">
  38226. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  38227. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38228. <doc>
  38229. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  38230. or registry to make sure the token hasn't expired or been revoked. Returns
  38231. the relevant password.
  38232. @param identifier the identifier to validate
  38233. @return the password to use
  38234. @throws InvalidToken the token was invalid]]>
  38235. </doc>
  38236. </method>
  38237. <method name="createIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  38238. abstract="true" native="false" synchronized="false"
  38239. static="false" final="false" visibility="public"
  38240. deprecated="not deprecated">
  38241. <doc>
  38242. <![CDATA[Create an empty token identifier.
  38243. @return the newly created empty token identifier]]>
  38244. </doc>
  38245. </method>
  38246. <method name="generateSecret" return="javax.crypto.SecretKey"
  38247. abstract="false" native="false" synchronized="false"
  38248. static="false" final="false" visibility="protected"
  38249. deprecated="not deprecated">
  38250. <doc>
  38251. <![CDATA[Generate a new random secret key.
  38252. @return the new key]]>
  38253. </doc>
  38254. </method>
  38255. <method name="createPassword" return="byte[]"
  38256. abstract="false" native="false" synchronized="false"
  38257. static="true" final="false" visibility="protected"
  38258. deprecated="not deprecated">
  38259. <param name="identifier" type="byte[]"/>
  38260. <param name="key" type="javax.crypto.SecretKey"/>
  38261. <doc>
  38262. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  38263. output as password
  38264. @param identifier the bytes of the identifier
  38265. @param key the secret key
  38266. @return the bytes of the generated password]]>
  38267. </doc>
  38268. </method>
  38269. <method name="createSecretKey" return="javax.crypto.SecretKey"
  38270. abstract="false" native="false" synchronized="false"
  38271. static="true" final="false" visibility="protected"
  38272. deprecated="not deprecated">
  38273. <param name="key" type="byte[]"/>
  38274. <doc>
  38275. <![CDATA[Convert the byte[] to a secret key
  38276. @param key the byte[] to create a secret key from
  38277. @return the secret key]]>
  38278. </doc>
  38279. </method>
  38280. <doc>
  38281. <![CDATA[The server-side secret manager for each token type.
  38282. @param <T> The type of the token identifier]]>
  38283. </doc>
  38284. </class>
  38285. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  38286. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  38287. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  38288. abstract="false"
  38289. static="true" final="false" visibility="public"
  38290. deprecated="not deprecated">
  38291. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  38292. static="false" final="false" visibility="public"
  38293. deprecated="not deprecated">
  38294. </constructor>
  38295. <doc>
  38296. <![CDATA[The token was invalid and the message explains why.]]>
  38297. </doc>
  38298. </class>
  38299. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  38300. <!-- start class org.apache.hadoop.security.token.Token -->
  38301. <class name="Token" extends="java.lang.Object"
  38302. abstract="false"
  38303. static="false" final="false" visibility="public"
  38304. deprecated="not deprecated">
  38305. <implements name="org.apache.hadoop.io.Writable"/>
  38306. <constructor name="Token" type="org.apache.hadoop.security.token.TokenIdentifier, org.apache.hadoop.security.token.SecretManager"
  38307. static="false" final="false" visibility="public"
  38308. deprecated="not deprecated">
  38309. <doc>
  38310. <![CDATA[Construct a token given a token identifier and a secret manager for the
  38311. type of the token identifier.
  38312. @param id the token identifier
  38313. @param mgr the secret manager]]>
  38314. </doc>
  38315. </constructor>
  38316. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  38317. static="false" final="false" visibility="public"
  38318. deprecated="not deprecated">
  38319. <doc>
  38320. <![CDATA[Construct a token from the components.
  38321. @param identifier the token identifier
  38322. @param password the token's password
  38323. @param kind the kind of token
  38324. @param service the service for this token]]>
  38325. </doc>
  38326. </constructor>
  38327. <constructor name="Token"
  38328. static="false" final="false" visibility="public"
  38329. deprecated="not deprecated">
  38330. <doc>
  38331. <![CDATA[Default constructor]]>
  38332. </doc>
  38333. </constructor>
  38334. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  38335. static="false" final="false" visibility="public"
  38336. deprecated="not deprecated">
  38337. <doc>
  38338. <![CDATA[Clone a token.
  38339. @param other the token to clone]]>
  38340. </doc>
  38341. </constructor>
  38342. <method name="getIdentifier" return="byte[]"
  38343. abstract="false" native="false" synchronized="false"
  38344. static="false" final="false" visibility="public"
  38345. deprecated="not deprecated">
  38346. <doc>
  38347. <![CDATA[Get the token identifier
  38348. @return the token identifier]]>
  38349. </doc>
  38350. </method>
  38351. <method name="getPassword" return="byte[]"
  38352. abstract="false" native="false" synchronized="false"
  38353. static="false" final="false" visibility="public"
  38354. deprecated="not deprecated">
  38355. <doc>
  38356. <![CDATA[Get the token password/secret
  38357. @return the token password/secret]]>
  38358. </doc>
  38359. </method>
  38360. <method name="getKind" return="org.apache.hadoop.io.Text"
  38361. abstract="false" native="false" synchronized="false"
  38362. static="false" final="false" visibility="public"
  38363. deprecated="not deprecated">
  38364. <doc>
  38365. <![CDATA[Get the token kind
  38366. @return the kind of the token]]>
  38367. </doc>
  38368. </method>
  38369. <method name="setKind"
  38370. abstract="false" native="false" synchronized="true"
  38371. static="false" final="false" visibility="public"
  38372. deprecated="not deprecated">
  38373. <param name="newKind" type="org.apache.hadoop.io.Text"/>
  38374. <doc>
  38375. <![CDATA[Set the token kind. This is only intended to be used by services that
  38376. wrap another service's token, such as HFTP wrapping HDFS.
  38377. @param newKind]]>
  38378. </doc>
  38379. </method>
  38380. <method name="getService" return="org.apache.hadoop.io.Text"
  38381. abstract="false" native="false" synchronized="false"
  38382. static="false" final="false" visibility="public"
  38383. deprecated="not deprecated">
  38384. <doc>
  38385. <![CDATA[Get the service on which the token is supposed to be used
  38386. @return the service name]]>
  38387. </doc>
  38388. </method>
  38389. <method name="setService"
  38390. abstract="false" native="false" synchronized="false"
  38391. static="false" final="false" visibility="public"
  38392. deprecated="not deprecated">
  38393. <param name="newService" type="org.apache.hadoop.io.Text"/>
  38394. <doc>
  38395. <![CDATA[Set the service on which the token is supposed to be used
  38396. @param newService the service name]]>
  38397. </doc>
  38398. </method>
  38399. <method name="readFields"
  38400. abstract="false" native="false" synchronized="false"
  38401. static="false" final="false" visibility="public"
  38402. deprecated="not deprecated">
  38403. <param name="in" type="java.io.DataInput"/>
  38404. <exception name="IOException" type="java.io.IOException"/>
  38405. <doc>
  38406. <![CDATA[{@inheritDoc}]]>
  38407. </doc>
  38408. </method>
  38409. <method name="write"
  38410. abstract="false" native="false" synchronized="false"
  38411. static="false" final="false" visibility="public"
  38412. deprecated="not deprecated">
  38413. <param name="out" type="java.io.DataOutput"/>
  38414. <exception name="IOException" type="java.io.IOException"/>
  38415. <doc>
  38416. <![CDATA[{@inheritDoc}]]>
  38417. </doc>
  38418. </method>
  38419. <method name="encodeToUrlString" return="java.lang.String"
  38420. abstract="false" native="false" synchronized="false"
  38421. static="false" final="false" visibility="public"
  38422. deprecated="not deprecated">
  38423. <exception name="IOException" type="java.io.IOException"/>
  38424. <doc>
  38425. <![CDATA[Encode this token as a url safe string
  38426. @return the encoded string
  38427. @throws IOException]]>
  38428. </doc>
  38429. </method>
  38430. <method name="decodeFromUrlString"
  38431. abstract="false" native="false" synchronized="false"
  38432. static="false" final="false" visibility="public"
  38433. deprecated="not deprecated">
  38434. <param name="newValue" type="java.lang.String"/>
  38435. <exception name="IOException" type="java.io.IOException"/>
  38436. <doc>
  38437. <![CDATA[Decode the given url safe string into this token.
  38438. @param newValue the encoded string
  38439. @throws IOException]]>
  38440. </doc>
  38441. </method>
  38442. <method name="equals" return="boolean"
  38443. abstract="false" native="false" synchronized="false"
  38444. static="false" final="false" visibility="public"
  38445. deprecated="not deprecated">
  38446. <param name="right" type="java.lang.Object"/>
  38447. </method>
  38448. <method name="hashCode" return="int"
  38449. abstract="false" native="false" synchronized="false"
  38450. static="false" final="false" visibility="public"
  38451. deprecated="not deprecated">
  38452. </method>
  38453. <method name="toString" return="java.lang.String"
  38454. abstract="false" native="false" synchronized="false"
  38455. static="false" final="false" visibility="public"
  38456. deprecated="not deprecated">
  38457. </method>
  38458. <method name="isManaged" return="boolean"
  38459. abstract="false" native="false" synchronized="false"
  38460. static="false" final="false" visibility="public"
  38461. deprecated="not deprecated">
  38462. <exception name="IOException" type="java.io.IOException"/>
  38463. <doc>
  38464. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  38465. @return true, if it can be renewed and cancelled.]]>
  38466. </doc>
  38467. </method>
  38468. <method name="renew" return="long"
  38469. abstract="false" native="false" synchronized="false"
  38470. static="false" final="false" visibility="public"
  38471. deprecated="not deprecated">
  38472. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38473. <exception name="IOException" type="java.io.IOException"/>
  38474. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38475. <doc>
  38476. <![CDATA[Renew this delegation token
  38477. @return the new expiration time
  38478. @throws IOException
  38479. @throws InterruptedException]]>
  38480. </doc>
  38481. </method>
  38482. <method name="cancel"
  38483. abstract="false" native="false" synchronized="false"
  38484. static="false" final="false" visibility="public"
  38485. deprecated="not deprecated">
  38486. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38487. <exception name="IOException" type="java.io.IOException"/>
  38488. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38489. <doc>
  38490. <![CDATA[Cancel this delegation token
  38491. @throws IOException
  38492. @throws InterruptedException]]>
  38493. </doc>
  38494. </method>
  38495. <field name="LOG" type="org.apache.commons.logging.Log"
  38496. transient="false" volatile="false"
  38497. static="true" final="true" visibility="public"
  38498. deprecated="not deprecated">
  38499. </field>
  38500. <doc>
  38501. <![CDATA[The client-side form of the token.]]>
  38502. </doc>
  38503. </class>
  38504. <!-- end class org.apache.hadoop.security.token.Token -->
  38505. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  38506. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  38507. abstract="false"
  38508. static="true" final="false" visibility="public"
  38509. deprecated="not deprecated">
  38510. <constructor name="Token.TrivialRenewer"
  38511. static="false" final="false" visibility="public"
  38512. deprecated="not deprecated">
  38513. </constructor>
  38514. <method name="getKind" return="org.apache.hadoop.io.Text"
  38515. abstract="false" native="false" synchronized="false"
  38516. static="false" final="false" visibility="protected"
  38517. deprecated="not deprecated">
  38518. </method>
  38519. <method name="handleKind" return="boolean"
  38520. abstract="false" native="false" synchronized="false"
  38521. static="false" final="false" visibility="public"
  38522. deprecated="not deprecated">
  38523. <param name="kind" type="org.apache.hadoop.io.Text"/>
  38524. </method>
  38525. <method name="isManaged" return="boolean"
  38526. abstract="false" native="false" synchronized="false"
  38527. static="false" final="false" visibility="public"
  38528. deprecated="not deprecated">
  38529. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38530. </method>
  38531. <method name="renew" return="long"
  38532. abstract="false" native="false" synchronized="false"
  38533. static="false" final="false" visibility="public"
  38534. deprecated="not deprecated">
  38535. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38536. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38537. </method>
  38538. <method name="cancel"
  38539. abstract="false" native="false" synchronized="false"
  38540. static="false" final="false" visibility="public"
  38541. deprecated="not deprecated">
  38542. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38543. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38544. <exception name="IOException" type="java.io.IOException"/>
  38545. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38546. </method>
  38547. <doc>
  38548. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  38549. to implement getKind for their token kind.]]>
  38550. </doc>
  38551. </class>
  38552. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  38553. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  38554. <class name="TokenIdentifier" extends="java.lang.Object"
  38555. abstract="true"
  38556. static="false" final="false" visibility="public"
  38557. deprecated="not deprecated">
  38558. <implements name="org.apache.hadoop.io.Writable"/>
  38559. <constructor name="TokenIdentifier"
  38560. static="false" final="false" visibility="public"
  38561. deprecated="not deprecated">
  38562. </constructor>
  38563. <method name="getKind" return="org.apache.hadoop.io.Text"
  38564. abstract="true" native="false" synchronized="false"
  38565. static="false" final="false" visibility="public"
  38566. deprecated="not deprecated">
  38567. <doc>
  38568. <![CDATA[Get the token kind
  38569. @return the kind of the token]]>
  38570. </doc>
  38571. </method>
  38572. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  38573. abstract="true" native="false" synchronized="false"
  38574. static="false" final="false" visibility="public"
  38575. deprecated="not deprecated">
  38576. <doc>
  38577. <![CDATA[Get the Ugi with the username encoded in the token identifier
  38578. @return the username. null is returned if username in the identifier is
  38579. empty or null.]]>
  38580. </doc>
  38581. </method>
  38582. <method name="getBytes" return="byte[]"
  38583. abstract="false" native="false" synchronized="false"
  38584. static="false" final="false" visibility="public"
  38585. deprecated="not deprecated">
  38586. <doc>
  38587. <![CDATA[Get the bytes for the token identifier
  38588. @return the bytes of the identifier]]>
  38589. </doc>
  38590. </method>
  38591. <doc>
  38592. <![CDATA[An identifier that identifies a token, may contain public information
  38593. about a token, including its kind (or type).]]>
  38594. </doc>
  38595. </class>
  38596. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  38597. <!-- start interface org.apache.hadoop.security.token.TokenInfo -->
  38598. <interface name="TokenInfo" abstract="true"
  38599. static="false" final="false" visibility="public"
  38600. deprecated="not deprecated">
  38601. <implements name="java.lang.annotation.Annotation"/>
  38602. <method name="value" return="java.lang.Class"
  38603. abstract="false" native="false" synchronized="false"
  38604. static="false" final="false" visibility="public"
  38605. deprecated="not deprecated">
  38606. <doc>
  38607. <![CDATA[The type of TokenSelector to be used]]>
  38608. </doc>
  38609. </method>
  38610. <doc>
  38611. <![CDATA[Indicates Token related information to be used]]>
  38612. </doc>
  38613. </interface>
  38614. <!-- end interface org.apache.hadoop.security.token.TokenInfo -->
  38615. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  38616. <class name="TokenRenewer" extends="java.lang.Object"
  38617. abstract="true"
  38618. static="false" final="false" visibility="public"
  38619. deprecated="not deprecated">
  38620. <constructor name="TokenRenewer"
  38621. static="false" final="false" visibility="public"
  38622. deprecated="not deprecated">
  38623. </constructor>
  38624. <method name="handleKind" return="boolean"
  38625. abstract="true" native="false" synchronized="false"
  38626. static="false" final="false" visibility="public"
  38627. deprecated="not deprecated">
  38628. <param name="kind" type="org.apache.hadoop.io.Text"/>
  38629. <doc>
  38630. <![CDATA[Does this renewer handle this kind of token?
  38631. @param kind the kind of the token
  38632. @return true if this renewer can renew it]]>
  38633. </doc>
  38634. </method>
  38635. <method name="isManaged" return="boolean"
  38636. abstract="true" native="false" synchronized="false"
  38637. static="false" final="false" visibility="public"
  38638. deprecated="not deprecated">
  38639. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38640. <exception name="IOException" type="java.io.IOException"/>
  38641. <doc>
  38642. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  38643. cancelled.
  38644. @param token the token being checked
  38645. @return true if the token may be renewed or cancelled
  38646. @throws IOException]]>
  38647. </doc>
  38648. </method>
  38649. <method name="renew" return="long"
  38650. abstract="true" native="false" synchronized="false"
  38651. static="false" final="false" visibility="public"
  38652. deprecated="not deprecated">
  38653. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38654. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38655. <exception name="IOException" type="java.io.IOException"/>
  38656. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38657. <doc>
  38658. <![CDATA[Renew the given token.
  38659. @return the new expiration time
  38660. @throws IOException
  38661. @throws InterruptedException]]>
  38662. </doc>
  38663. </method>
  38664. <method name="cancel"
  38665. abstract="true" native="false" synchronized="false"
  38666. static="false" final="false" visibility="public"
  38667. deprecated="not deprecated">
  38668. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38669. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38670. <exception name="IOException" type="java.io.IOException"/>
  38671. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  38672. <doc>
  38673. <![CDATA[Cancel the given token
  38674. @throws IOException
  38675. @throws InterruptedException]]>
  38676. </doc>
  38677. </method>
  38678. <doc>
  38679. <![CDATA[This is the interface for plugins that handle tokens.]]>
  38680. </doc>
  38681. </class>
  38682. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  38683. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  38684. <interface name="TokenSelector" abstract="true"
  38685. static="false" final="false" visibility="public"
  38686. deprecated="not deprecated">
  38687. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  38688. abstract="false" native="false" synchronized="false"
  38689. static="false" final="false" visibility="public"
  38690. deprecated="not deprecated">
  38691. <param name="service" type="org.apache.hadoop.io.Text"/>
  38692. <param name="tokens" type="java.util.Collection"/>
  38693. </method>
  38694. <doc>
  38695. <![CDATA[Select token of type T from tokens for use with named service
  38696. @param <T>
  38697. T extends TokenIdentifier]]>
  38698. </doc>
  38699. </interface>
  38700. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  38701. </package>
  38702. <package name="org.apache.hadoop.security.token.delegation">
  38703. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  38704. <class name="AbstractDelegationTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  38705. abstract="true"
  38706. static="false" final="false" visibility="public"
  38707. deprecated="not deprecated">
  38708. <constructor name="AbstractDelegationTokenIdentifier"
  38709. static="false" final="false" visibility="public"
  38710. deprecated="not deprecated">
  38711. </constructor>
  38712. <constructor name="AbstractDelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  38713. static="false" final="false" visibility="public"
  38714. deprecated="not deprecated">
  38715. </constructor>
  38716. <method name="getKind" return="org.apache.hadoop.io.Text"
  38717. abstract="true" native="false" synchronized="false"
  38718. static="false" final="false" visibility="public"
  38719. deprecated="not deprecated">
  38720. </method>
  38721. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  38722. abstract="false" native="false" synchronized="false"
  38723. static="false" final="false" visibility="public"
  38724. deprecated="not deprecated">
  38725. <doc>
  38726. <![CDATA[Get the username encoded in the token identifier
  38727. @return the username or owner]]>
  38728. </doc>
  38729. </method>
  38730. <method name="getRenewer" return="org.apache.hadoop.io.Text"
  38731. abstract="false" native="false" synchronized="false"
  38732. static="false" final="false" visibility="public"
  38733. deprecated="not deprecated">
  38734. </method>
  38735. <method name="setIssueDate"
  38736. abstract="false" native="false" synchronized="false"
  38737. static="false" final="false" visibility="public"
  38738. deprecated="not deprecated">
  38739. <param name="issueDate" type="long"/>
  38740. </method>
  38741. <method name="getIssueDate" return="long"
  38742. abstract="false" native="false" synchronized="false"
  38743. static="false" final="false" visibility="public"
  38744. deprecated="not deprecated">
  38745. </method>
  38746. <method name="setMaxDate"
  38747. abstract="false" native="false" synchronized="false"
  38748. static="false" final="false" visibility="public"
  38749. deprecated="not deprecated">
  38750. <param name="maxDate" type="long"/>
  38751. </method>
  38752. <method name="getMaxDate" return="long"
  38753. abstract="false" native="false" synchronized="false"
  38754. static="false" final="false" visibility="public"
  38755. deprecated="not deprecated">
  38756. </method>
  38757. <method name="setSequenceNumber"
  38758. abstract="false" native="false" synchronized="false"
  38759. static="false" final="false" visibility="public"
  38760. deprecated="not deprecated">
  38761. <param name="seqNum" type="int"/>
  38762. </method>
  38763. <method name="getSequenceNumber" return="int"
  38764. abstract="false" native="false" synchronized="false"
  38765. static="false" final="false" visibility="public"
  38766. deprecated="not deprecated">
  38767. </method>
  38768. <method name="setMasterKeyId"
  38769. abstract="false" native="false" synchronized="false"
  38770. static="false" final="false" visibility="public"
  38771. deprecated="not deprecated">
  38772. <param name="newId" type="int"/>
  38773. </method>
  38774. <method name="getMasterKeyId" return="int"
  38775. abstract="false" native="false" synchronized="false"
  38776. static="false" final="false" visibility="public"
  38777. deprecated="not deprecated">
  38778. </method>
  38779. <method name="equals" return="boolean"
  38780. abstract="false" native="false" synchronized="false"
  38781. static="false" final="false" visibility="public"
  38782. deprecated="not deprecated">
  38783. <param name="obj" type="java.lang.Object"/>
  38784. <doc>
  38785. <![CDATA[{@inheritDoc}]]>
  38786. </doc>
  38787. </method>
  38788. <method name="hashCode" return="int"
  38789. abstract="false" native="false" synchronized="false"
  38790. static="false" final="false" visibility="public"
  38791. deprecated="not deprecated">
  38792. <doc>
  38793. <![CDATA[{@inheritDoc}]]>
  38794. </doc>
  38795. </method>
  38796. <method name="readFields"
  38797. abstract="false" native="false" synchronized="false"
  38798. static="false" final="false" visibility="public"
  38799. deprecated="not deprecated">
  38800. <param name="in" type="java.io.DataInput"/>
  38801. <exception name="IOException" type="java.io.IOException"/>
  38802. </method>
  38803. <method name="write"
  38804. abstract="false" native="false" synchronized="false"
  38805. static="false" final="false" visibility="public"
  38806. deprecated="not deprecated">
  38807. <param name="out" type="java.io.DataOutput"/>
  38808. <exception name="IOException" type="java.io.IOException"/>
  38809. </method>
  38810. <method name="toString" return="java.lang.String"
  38811. abstract="false" native="false" synchronized="false"
  38812. static="false" final="false" visibility="public"
  38813. deprecated="not deprecated">
  38814. </method>
  38815. </class>
  38816. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  38817. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  38818. <class name="AbstractDelegationTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  38819. abstract="true"
  38820. static="false" final="false" visibility="public"
  38821. deprecated="not deprecated">
  38822. <constructor name="AbstractDelegationTokenSecretManager" type="long, long, long, long"
  38823. static="false" final="false" visibility="public"
  38824. deprecated="not deprecated">
  38825. </constructor>
  38826. <method name="startThreads"
  38827. abstract="false" native="false" synchronized="true"
  38828. static="false" final="false" visibility="public"
  38829. deprecated="not deprecated">
  38830. <exception name="IOException" type="java.io.IOException"/>
  38831. <doc>
  38832. <![CDATA[should be called before this object is used]]>
  38833. </doc>
  38834. </method>
  38835. <method name="isRunning" return="boolean"
  38836. abstract="false" native="false" synchronized="true"
  38837. static="false" final="false" visibility="public"
  38838. deprecated="not deprecated">
  38839. <doc>
  38840. <![CDATA[is secretMgr running
  38841. @return true if secret mgr is running]]>
  38842. </doc>
  38843. </method>
  38844. <method name="addKey"
  38845. abstract="false" native="false" synchronized="true"
  38846. static="false" final="false" visibility="public"
  38847. deprecated="not deprecated">
  38848. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  38849. <exception name="IOException" type="java.io.IOException"/>
  38850. <doc>
  38851. <![CDATA[Add a previously used master key to cache (when NN restarts),
  38852. should be called before activate().]]>
  38853. </doc>
  38854. </method>
  38855. <method name="getAllKeys" return="org.apache.hadoop.security.token.delegation.DelegationKey[]"
  38856. abstract="false" native="false" synchronized="true"
  38857. static="false" final="false" visibility="public"
  38858. deprecated="not deprecated">
  38859. </method>
  38860. <method name="logUpdateMasterKey"
  38861. abstract="false" native="false" synchronized="false"
  38862. static="false" final="false" visibility="protected"
  38863. deprecated="not deprecated">
  38864. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  38865. <exception name="IOException" type="java.io.IOException"/>
  38866. </method>
  38867. <method name="createPassword" return="byte[]"
  38868. abstract="false" native="false" synchronized="true"
  38869. static="false" final="false" visibility="protected"
  38870. deprecated="not deprecated">
  38871. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  38872. </method>
  38873. <method name="retrievePassword" return="byte[]"
  38874. abstract="false" native="false" synchronized="true"
  38875. static="false" final="false" visibility="public"
  38876. deprecated="not deprecated">
  38877. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  38878. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38879. </method>
  38880. <method name="verifyToken"
  38881. abstract="false" native="false" synchronized="true"
  38882. static="false" final="false" visibility="public"
  38883. deprecated="not deprecated">
  38884. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  38885. <param name="password" type="byte[]"/>
  38886. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38887. <doc>
  38888. <![CDATA[Verifies that the given identifier and password are valid and match.
  38889. @param identifier Token identifier.
  38890. @param password Password in the token.
  38891. @throws InvalidToken]]>
  38892. </doc>
  38893. </method>
  38894. <method name="renewToken" return="long"
  38895. abstract="false" native="false" synchronized="true"
  38896. static="false" final="false" visibility="public"
  38897. deprecated="not deprecated">
  38898. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38899. <param name="renewer" type="java.lang.String"/>
  38900. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38901. <exception name="IOException" type="java.io.IOException"/>
  38902. <doc>
  38903. <![CDATA[Renew a delegation token.
  38904. @param token the token to renew
  38905. @param renewer the full principal name of the user doing the renewal
  38906. @return the new expiration time
  38907. @throws InvalidToken if the token is invalid
  38908. @throws AccessControlException if the user can't renew token]]>
  38909. </doc>
  38910. </method>
  38911. <method name="cancelToken" return="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  38912. abstract="false" native="false" synchronized="true"
  38913. static="false" final="false" visibility="public"
  38914. deprecated="not deprecated">
  38915. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  38916. <param name="canceller" type="java.lang.String"/>
  38917. <exception name="IOException" type="java.io.IOException"/>
  38918. <doc>
  38919. <![CDATA[Cancel a token by removing it from cache.
  38920. @return Identifier of the canceled token
  38921. @throws InvalidToken for invalid token
  38922. @throws AccessControlException if the user isn't allowed to cancel]]>
  38923. </doc>
  38924. </method>
  38925. <method name="createSecretKey" return="javax.crypto.SecretKey"
  38926. abstract="false" native="false" synchronized="false"
  38927. static="true" final="false" visibility="public"
  38928. deprecated="not deprecated">
  38929. <param name="key" type="byte[]"/>
  38930. <doc>
  38931. <![CDATA[Convert the byte[] to a secret key
  38932. @param key the byte[] to create the secret key from
  38933. @return the secret key]]>
  38934. </doc>
  38935. </method>
  38936. <method name="stopThreads"
  38937. abstract="false" native="false" synchronized="true"
  38938. static="false" final="false" visibility="public"
  38939. deprecated="not deprecated">
  38940. </method>
  38941. <field name="currentTokens" type="java.util.Map"
  38942. transient="false" volatile="false"
  38943. static="false" final="true" visibility="protected"
  38944. deprecated="not deprecated">
  38945. <doc>
  38946. <![CDATA[Cache of currently valid tokens, mapping from DelegationTokenIdentifier
  38947. to DelegationTokenInformation. Protected by this object lock.]]>
  38948. </doc>
  38949. </field>
  38950. <field name="delegationTokenSequenceNumber" type="int"
  38951. transient="false" volatile="false"
  38952. static="false" final="false" visibility="protected"
  38953. deprecated="not deprecated">
  38954. <doc>
  38955. <![CDATA[Sequence number to create DelegationTokenIdentifier.
  38956. Protected by this object lock.]]>
  38957. </doc>
  38958. </field>
  38959. <field name="allKeys" type="java.util.Map"
  38960. transient="false" volatile="false"
  38961. static="false" final="true" visibility="protected"
  38962. deprecated="not deprecated">
  38963. <doc>
  38964. <![CDATA[Access to allKeys is protected by this object lock]]>
  38965. </doc>
  38966. </field>
  38967. <field name="currentId" type="int"
  38968. transient="false" volatile="false"
  38969. static="false" final="false" visibility="protected"
  38970. deprecated="not deprecated">
  38971. <doc>
  38972. <![CDATA[Access to currentId is protected by this object lock.]]>
  38973. </doc>
  38974. </field>
  38975. <field name="running" type="boolean"
  38976. transient="false" volatile="true"
  38977. static="false" final="false" visibility="protected"
  38978. deprecated="not deprecated">
  38979. </field>
  38980. </class>
  38981. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  38982. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  38983. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  38984. abstract="false"
  38985. static="true" final="false" visibility="public"
  38986. deprecated="not deprecated">
  38987. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  38988. static="false" final="false" visibility="public"
  38989. deprecated="not deprecated">
  38990. </constructor>
  38991. <method name="getRenewDate" return="long"
  38992. abstract="false" native="false" synchronized="false"
  38993. static="false" final="false" visibility="public"
  38994. deprecated="not deprecated">
  38995. <doc>
  38996. <![CDATA[returns renew date]]>
  38997. </doc>
  38998. </method>
  38999. <doc>
  39000. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  39001. </doc>
  39002. </class>
  39003. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  39004. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  39005. <class name="AbstractDelegationTokenSelector" extends="java.lang.Object"
  39006. abstract="false"
  39007. static="false" final="false" visibility="public"
  39008. deprecated="not deprecated">
  39009. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  39010. <constructor name="AbstractDelegationTokenSelector" type="org.apache.hadoop.io.Text"
  39011. static="false" final="false" visibility="protected"
  39012. deprecated="not deprecated">
  39013. </constructor>
  39014. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  39015. abstract="false" native="false" synchronized="false"
  39016. static="false" final="false" visibility="public"
  39017. deprecated="not deprecated">
  39018. <param name="service" type="org.apache.hadoop.io.Text"/>
  39019. <param name="tokens" type="java.util.Collection"/>
  39020. </method>
  39021. <doc>
  39022. <![CDATA[Look through tokens to find the first delegation token that matches the
  39023. service and return it.]]>
  39024. </doc>
  39025. </class>
  39026. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  39027. <!-- start class org.apache.hadoop.security.token.delegation.DelegationKey -->
  39028. <class name="DelegationKey" extends="java.lang.Object"
  39029. abstract="false"
  39030. static="false" final="false" visibility="public"
  39031. deprecated="not deprecated">
  39032. <implements name="org.apache.hadoop.io.Writable"/>
  39033. <constructor name="DelegationKey"
  39034. static="false" final="false" visibility="public"
  39035. deprecated="not deprecated">
  39036. </constructor>
  39037. <constructor name="DelegationKey" type="int, long, javax.crypto.SecretKey"
  39038. static="false" final="false" visibility="public"
  39039. deprecated="not deprecated">
  39040. </constructor>
  39041. <method name="getKeyId" return="int"
  39042. abstract="false" native="false" synchronized="false"
  39043. static="false" final="false" visibility="public"
  39044. deprecated="not deprecated">
  39045. </method>
  39046. <method name="getExpiryDate" return="long"
  39047. abstract="false" native="false" synchronized="false"
  39048. static="false" final="false" visibility="public"
  39049. deprecated="not deprecated">
  39050. </method>
  39051. <method name="getKey" return="javax.crypto.SecretKey"
  39052. abstract="false" native="false" synchronized="false"
  39053. static="false" final="false" visibility="public"
  39054. deprecated="not deprecated">
  39055. </method>
  39056. <method name="setExpiryDate"
  39057. abstract="false" native="false" synchronized="false"
  39058. static="false" final="false" visibility="public"
  39059. deprecated="not deprecated">
  39060. <param name="expiryDate" type="long"/>
  39061. </method>
  39062. <method name="write"
  39063. abstract="false" native="false" synchronized="false"
  39064. static="false" final="false" visibility="public"
  39065. deprecated="not deprecated">
  39066. <param name="out" type="java.io.DataOutput"/>
  39067. <exception name="IOException" type="java.io.IOException"/>
  39068. </method>
  39069. <method name="readFields"
  39070. abstract="false" native="false" synchronized="false"
  39071. static="false" final="false" visibility="public"
  39072. deprecated="not deprecated">
  39073. <param name="in" type="java.io.DataInput"/>
  39074. <exception name="IOException" type="java.io.IOException"/>
  39075. </method>
  39076. <doc>
  39077. <![CDATA[Key used for generating and verifying delegation tokens]]>
  39078. </doc>
  39079. </class>
  39080. <!-- end class org.apache.hadoop.security.token.delegation.DelegationKey -->
  39081. </package>
  39082. <package name="org.apache.hadoop.util">
  39083. <!-- start class org.apache.hadoop.util.ChecksumUtil -->
  39084. <class name="ChecksumUtil" extends="java.lang.Object"
  39085. abstract="false"
  39086. static="false" final="false" visibility="public"
  39087. deprecated="not deprecated">
  39088. <constructor name="ChecksumUtil"
  39089. static="false" final="false" visibility="public"
  39090. deprecated="not deprecated">
  39091. </constructor>
  39092. <method name="updateChunkChecksum"
  39093. abstract="false" native="false" synchronized="false"
  39094. static="true" final="false" visibility="public"
  39095. deprecated="not deprecated">
  39096. <param name="buf" type="byte[]"/>
  39097. <param name="checksumOff" type="int"/>
  39098. <param name="dataOff" type="int"/>
  39099. <param name="dataLen" type="int"/>
  39100. <param name="checksum" type="org.apache.hadoop.util.DataChecksum"/>
  39101. <exception name="IOException" type="java.io.IOException"/>
  39102. <doc>
  39103. <![CDATA[updates the checksum for a buffer
  39104. @param buf - buffer to update the checksum in
  39105. @param checksumOff - offset in the buffer where the checksum is to update
  39106. @param dataOff - offset in the buffer of the data
  39107. @param dataLen - length of data to compute checksum on]]>
  39108. </doc>
  39109. </method>
  39110. </class>
  39111. <!-- end class org.apache.hadoop.util.ChecksumUtil -->
  39112. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  39113. <class name="CyclicIteration" extends="java.lang.Object"
  39114. abstract="false"
  39115. static="false" final="false" visibility="public"
  39116. deprecated="not deprecated">
  39117. <implements name="java.lang.Iterable"/>
  39118. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  39119. static="false" final="false" visibility="public"
  39120. deprecated="not deprecated">
  39121. <doc>
  39122. <![CDATA[Construct an {@link Iterable} object,
  39123. so that an {@link Iterator} can be created
  39124. for iterating the given {@link NavigableMap}.
  39125. The iteration begins from the starting key exclusively.]]>
  39126. </doc>
  39127. </constructor>
  39128. <method name="iterator" return="java.util.Iterator"
  39129. abstract="false" native="false" synchronized="false"
  39130. static="false" final="false" visibility="public"
  39131. deprecated="not deprecated">
  39132. <doc>
  39133. <![CDATA[{@inheritDoc}]]>
  39134. </doc>
  39135. </method>
  39136. <doc>
  39137. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  39138. The {@link Iterator} navigates the entries of the map
  39139. according to the map's ordering.
  39140. If the {@link Iterator} hits the last entry of the map,
  39141. it will then continue from the first entry.]]>
  39142. </doc>
  39143. </class>
  39144. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  39145. <!-- start class org.apache.hadoop.util.Daemon -->
  39146. <class name="Daemon" extends="java.lang.Thread"
  39147. abstract="false"
  39148. static="false" final="false" visibility="public"
  39149. deprecated="not deprecated">
  39150. <constructor name="Daemon"
  39151. static="false" final="false" visibility="public"
  39152. deprecated="not deprecated">
  39153. <doc>
  39154. <![CDATA[Construct a daemon thread.]]>
  39155. </doc>
  39156. </constructor>
  39157. <constructor name="Daemon" type="java.lang.Runnable"
  39158. static="false" final="false" visibility="public"
  39159. deprecated="not deprecated">
  39160. <doc>
  39161. <![CDATA[Construct a daemon thread.]]>
  39162. </doc>
  39163. </constructor>
  39164. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  39165. static="false" final="false" visibility="public"
  39166. deprecated="not deprecated">
  39167. <doc>
  39168. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  39169. </doc>
  39170. </constructor>
  39171. <method name="getRunnable" return="java.lang.Runnable"
  39172. abstract="false" native="false" synchronized="false"
  39173. static="false" final="false" visibility="public"
  39174. deprecated="not deprecated">
  39175. </method>
  39176. <doc>
  39177. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  39178. </doc>
  39179. </class>
  39180. <!-- end class org.apache.hadoop.util.Daemon -->
  39181. <!-- start class org.apache.hadoop.util.DataChecksum -->
  39182. <class name="DataChecksum" extends="java.lang.Object"
  39183. abstract="false"
  39184. static="false" final="false" visibility="public"
  39185. deprecated="not deprecated">
  39186. <implements name="java.util.zip.Checksum"/>
  39187. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39188. abstract="false" native="false" synchronized="false"
  39189. static="true" final="false" visibility="public"
  39190. deprecated="not deprecated">
  39191. <param name="type" type="int"/>
  39192. <param name="bytesPerChecksum" type="int"/>
  39193. </method>
  39194. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39195. abstract="false" native="false" synchronized="false"
  39196. static="true" final="false" visibility="public"
  39197. deprecated="not deprecated">
  39198. <param name="bytes" type="byte[]"/>
  39199. <param name="offset" type="int"/>
  39200. <doc>
  39201. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  39202. @return DataChecksum of the type in the array or null in case of an error.]]>
  39203. </doc>
  39204. </method>
  39205. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39206. abstract="false" native="false" synchronized="false"
  39207. static="true" final="false" visibility="public"
  39208. deprecated="not deprecated">
  39209. <param name="in" type="java.io.DataInputStream"/>
  39210. <exception name="IOException" type="java.io.IOException"/>
  39211. <doc>
  39212. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  39213. input stream <i>in</i>]]>
  39214. </doc>
  39215. </method>
  39216. <method name="writeHeader"
  39217. abstract="false" native="false" synchronized="false"
  39218. static="false" final="false" visibility="public"
  39219. deprecated="not deprecated">
  39220. <param name="out" type="java.io.DataOutputStream"/>
  39221. <exception name="IOException" type="java.io.IOException"/>
  39222. <doc>
  39223. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  39224. </doc>
  39225. </method>
  39226. <method name="getHeader" return="byte[]"
  39227. abstract="false" native="false" synchronized="false"
  39228. static="false" final="false" visibility="public"
  39229. deprecated="not deprecated">
  39230. </method>
  39231. <method name="writeValue" return="int"
  39232. abstract="false" native="false" synchronized="false"
  39233. static="false" final="false" visibility="public"
  39234. deprecated="not deprecated">
  39235. <param name="out" type="java.io.DataOutputStream"/>
  39236. <param name="reset" type="boolean"/>
  39237. <exception name="IOException" type="java.io.IOException"/>
  39238. <doc>
  39239. <![CDATA[Writes the current checksum to the stream.
  39240. If <i>reset</i> is true, then resets the checksum.
  39241. @return number of bytes written. Will be equal to getChecksumSize();]]>
  39242. </doc>
  39243. </method>
  39244. <method name="writeValue" return="int"
  39245. abstract="false" native="false" synchronized="false"
  39246. static="false" final="false" visibility="public"
  39247. deprecated="not deprecated">
  39248. <param name="buf" type="byte[]"/>
  39249. <param name="offset" type="int"/>
  39250. <param name="reset" type="boolean"/>
  39251. <exception name="IOException" type="java.io.IOException"/>
  39252. <doc>
  39253. <![CDATA[Writes the current checksum to a buffer.
  39254. If <i>reset</i> is true, then resets the checksum.
  39255. @return number of bytes written. Will be equal to getChecksumSize();]]>
  39256. </doc>
  39257. </method>
  39258. <method name="compare" return="boolean"
  39259. abstract="false" native="false" synchronized="false"
  39260. static="false" final="false" visibility="public"
  39261. deprecated="not deprecated">
  39262. <param name="buf" type="byte[]"/>
  39263. <param name="offset" type="int"/>
  39264. <doc>
  39265. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  39266. @return true if the checksum matches and false otherwise.]]>
  39267. </doc>
  39268. </method>
  39269. <method name="getChecksumType" return="int"
  39270. abstract="false" native="false" synchronized="false"
  39271. static="false" final="false" visibility="public"
  39272. deprecated="not deprecated">
  39273. </method>
  39274. <method name="getChecksumSize" return="int"
  39275. abstract="false" native="false" synchronized="false"
  39276. static="false" final="false" visibility="public"
  39277. deprecated="not deprecated">
  39278. </method>
  39279. <method name="getBytesPerChecksum" return="int"
  39280. abstract="false" native="false" synchronized="false"
  39281. static="false" final="false" visibility="public"
  39282. deprecated="not deprecated">
  39283. </method>
  39284. <method name="getNumBytesInSum" return="int"
  39285. abstract="false" native="false" synchronized="false"
  39286. static="false" final="false" visibility="public"
  39287. deprecated="not deprecated">
  39288. </method>
  39289. <method name="getChecksumHeaderSize" return="int"
  39290. abstract="false" native="false" synchronized="false"
  39291. static="true" final="false" visibility="public"
  39292. deprecated="not deprecated">
  39293. </method>
  39294. <method name="getValue" return="long"
  39295. abstract="false" native="false" synchronized="false"
  39296. static="false" final="false" visibility="public"
  39297. deprecated="not deprecated">
  39298. </method>
  39299. <method name="reset"
  39300. abstract="false" native="false" synchronized="false"
  39301. static="false" final="false" visibility="public"
  39302. deprecated="not deprecated">
  39303. </method>
  39304. <method name="update"
  39305. abstract="false" native="false" synchronized="false"
  39306. static="false" final="false" visibility="public"
  39307. deprecated="not deprecated">
  39308. <param name="b" type="byte[]"/>
  39309. <param name="off" type="int"/>
  39310. <param name="len" type="int"/>
  39311. </method>
  39312. <method name="update"
  39313. abstract="false" native="false" synchronized="false"
  39314. static="false" final="false" visibility="public"
  39315. deprecated="not deprecated">
  39316. <param name="b" type="int"/>
  39317. </method>
  39318. <field name="HEADER_LEN" type="int"
  39319. transient="false" volatile="false"
  39320. static="true" final="true" visibility="public"
  39321. deprecated="not deprecated">
  39322. </field>
  39323. <field name="CHECKSUM_NULL" type="int"
  39324. transient="false" volatile="false"
  39325. static="true" final="true" visibility="public"
  39326. deprecated="not deprecated">
  39327. </field>
  39328. <field name="CHECKSUM_CRC32" type="int"
  39329. transient="false" volatile="false"
  39330. static="true" final="true" visibility="public"
  39331. deprecated="not deprecated">
  39332. </field>
  39333. <field name="SIZE_OF_INTEGER" type="int"
  39334. transient="false" volatile="false"
  39335. static="true" final="true" visibility="public"
  39336. deprecated="not deprecated">
  39337. </field>
  39338. <doc>
  39339. <![CDATA[This class provides inteface and utilities for processing checksums for
  39340. DFS data transfers.]]>
  39341. </doc>
  39342. </class>
  39343. <!-- end class org.apache.hadoop.util.DataChecksum -->
  39344. <!-- start class org.apache.hadoop.util.DiskChecker -->
  39345. <class name="DiskChecker" extends="java.lang.Object"
  39346. abstract="false"
  39347. static="false" final="false" visibility="public"
  39348. deprecated="not deprecated">
  39349. <constructor name="DiskChecker"
  39350. static="false" final="false" visibility="public"
  39351. deprecated="not deprecated">
  39352. </constructor>
  39353. <method name="mkdirsWithExistsCheck" return="boolean"
  39354. abstract="false" native="false" synchronized="false"
  39355. static="true" final="false" visibility="public"
  39356. deprecated="not deprecated">
  39357. <param name="dir" type="java.io.File"/>
  39358. <doc>
  39359. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  39360. method provided in the Sun's java.io.File class in the following way:
  39361. While creating the non-existent parent directories, this method checks for
  39362. the existence of those directories if the mkdir fails at any point (since
  39363. that directory might have just been created by some other process).
  39364. If both mkdir() and the exists() check fails for any seemingly
  39365. non-existent directory, then we signal an error; Sun's mkdir would signal
  39366. an error (return false) if a directory it is attempting to create already
  39367. exists or the mkdir fails.
  39368. @param dir
  39369. @return true on success, false on failure]]>
  39370. </doc>
  39371. </method>
  39372. <method name="checkDir"
  39373. abstract="false" native="false" synchronized="false"
  39374. static="true" final="false" visibility="public"
  39375. deprecated="not deprecated">
  39376. <param name="dir" type="java.io.File"/>
  39377. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  39378. <doc>
  39379. <![CDATA[Create the directory if it doesn't exist and
  39380. @param dir
  39381. @throws DiskErrorException]]>
  39382. </doc>
  39383. </method>
  39384. <method name="mkdirsWithExistsAndPermissionCheck" return="boolean"
  39385. abstract="false" native="false" synchronized="false"
  39386. static="true" final="false" visibility="public"
  39387. deprecated="not deprecated">
  39388. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  39389. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  39390. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  39391. <exception name="IOException" type="java.io.IOException"/>
  39392. <doc>
  39393. <![CDATA[Create the directory or check permissions if it already exists.
  39394. The semantics of mkdirsWithExistsAndPermissionCheck method is different
  39395. from the mkdirs method provided in the Sun's java.io.File class in the
  39396. following way:
  39397. While creating the non-existent parent directories, this method checks for
  39398. the existence of those directories if the mkdir fails at any point (since
  39399. that directory might have just been created by some other process).
  39400. If both mkdir() and the exists() check fails for any seemingly
  39401. non-existent directory, then we signal an error; Sun's mkdir would signal
  39402. an error (return false) if a directory it is attempting to create already
  39403. exists or the mkdir fails.
  39404. @param localFS local filesystem
  39405. @param dir directory to be created or checked
  39406. @param expected expected permission
  39407. @return true on success, false on failure]]>
  39408. </doc>
  39409. </method>
  39410. <method name="checkDir"
  39411. abstract="false" native="false" synchronized="false"
  39412. static="true" final="false" visibility="public"
  39413. deprecated="not deprecated">
  39414. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  39415. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  39416. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  39417. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  39418. <exception name="IOException" type="java.io.IOException"/>
  39419. <doc>
  39420. <![CDATA[Create the local directory if necessary, check permissions and also ensure
  39421. it can be read from and written into.
  39422. @param localFS local filesystem
  39423. @param dir directory
  39424. @param expected permission
  39425. @throws DiskErrorException
  39426. @throws IOException]]>
  39427. </doc>
  39428. </method>
  39429. <doc>
  39430. <![CDATA[Class that provides utility functions for checking disk problem]]>
  39431. </doc>
  39432. </class>
  39433. <!-- end class org.apache.hadoop.util.DiskChecker -->
  39434. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  39435. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  39436. abstract="false"
  39437. static="true" final="false" visibility="public"
  39438. deprecated="not deprecated">
  39439. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  39440. static="false" final="false" visibility="public"
  39441. deprecated="not deprecated">
  39442. </constructor>
  39443. </class>
  39444. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  39445. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  39446. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  39447. abstract="false"
  39448. static="true" final="false" visibility="public"
  39449. deprecated="not deprecated">
  39450. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  39451. static="false" final="false" visibility="public"
  39452. deprecated="not deprecated">
  39453. </constructor>
  39454. </class>
  39455. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  39456. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  39457. <class name="GenericOptionsParser" extends="java.lang.Object"
  39458. abstract="false"
  39459. static="false" final="false" visibility="public"
  39460. deprecated="not deprecated">
  39461. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  39462. static="false" final="false" visibility="public"
  39463. deprecated="not deprecated">
  39464. <exception name="IOException" type="java.io.IOException"/>
  39465. <doc>
  39466. <![CDATA[Create an options parser with the given options to parse the args.
  39467. @param opts the options
  39468. @param args the command line arguments
  39469. @throws IOException]]>
  39470. </doc>
  39471. </constructor>
  39472. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  39473. static="false" final="false" visibility="public"
  39474. deprecated="not deprecated">
  39475. <exception name="IOException" type="java.io.IOException"/>
  39476. <doc>
  39477. <![CDATA[Create an options parser to parse the args.
  39478. @param args the command line arguments
  39479. @throws IOException]]>
  39480. </doc>
  39481. </constructor>
  39482. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  39483. static="false" final="false" visibility="public"
  39484. deprecated="not deprecated">
  39485. <exception name="IOException" type="java.io.IOException"/>
  39486. <doc>
  39487. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  39488. arguments.
  39489. The array of string arguments other than the generic arguments can be
  39490. obtained by {@link #getRemainingArgs()}.
  39491. @param conf the <code>Configuration</code> to modify.
  39492. @param args command-line arguments.
  39493. @throws IOException]]>
  39494. </doc>
  39495. </constructor>
  39496. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  39497. static="false" final="false" visibility="public"
  39498. deprecated="not deprecated">
  39499. <exception name="IOException" type="java.io.IOException"/>
  39500. <doc>
  39501. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  39502. as generic Hadoop options.
  39503. The resulting <code>CommandLine</code> object can be obtained by
  39504. {@link #getCommandLine()}.
  39505. @param conf the configuration to modify
  39506. @param options options built by the caller
  39507. @param args User-specified arguments
  39508. @throws IOException]]>
  39509. </doc>
  39510. </constructor>
  39511. <method name="getRemainingArgs" return="java.lang.String[]"
  39512. abstract="false" native="false" synchronized="false"
  39513. static="false" final="false" visibility="public"
  39514. deprecated="not deprecated">
  39515. <doc>
  39516. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  39517. @return array of <code>String</code>s containing the un-parsed arguments
  39518. or <strong>empty array</strong> if commandLine was not defined.]]>
  39519. </doc>
  39520. </method>
  39521. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  39522. abstract="false" native="false" synchronized="false"
  39523. static="false" final="false" visibility="public"
  39524. deprecated="not deprecated">
  39525. <doc>
  39526. <![CDATA[Get the modified configuration
  39527. @return the configuration that has the modified parameters.]]>
  39528. </doc>
  39529. </method>
  39530. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  39531. abstract="false" native="false" synchronized="false"
  39532. static="false" final="false" visibility="public"
  39533. deprecated="not deprecated">
  39534. <doc>
  39535. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  39536. to process the parsed arguments.
  39537. Note: If the object is created with
  39538. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  39539. object will only contain parsed generic options.
  39540. @return <code>CommandLine</code> representing list of arguments
  39541. parsed against Options descriptor.]]>
  39542. </doc>
  39543. </method>
  39544. <method name="getLibJars" return="java.net.URL[]"
  39545. abstract="false" native="false" synchronized="false"
  39546. static="true" final="false" visibility="public"
  39547. deprecated="not deprecated">
  39548. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39549. <exception name="IOException" type="java.io.IOException"/>
  39550. <doc>
  39551. <![CDATA[If libjars are set in the conf, parse the libjars.
  39552. @param conf
  39553. @return libjar urls
  39554. @throws IOException]]>
  39555. </doc>
  39556. </method>
  39557. <method name="printGenericCommandUsage"
  39558. abstract="false" native="false" synchronized="false"
  39559. static="true" final="false" visibility="public"
  39560. deprecated="not deprecated">
  39561. <param name="out" type="java.io.PrintStream"/>
  39562. <doc>
  39563. <![CDATA[Print the usage message for generic command-line options supported.
  39564. @param out stream to print the usage message to.]]>
  39565. </doc>
  39566. </method>
  39567. <doc>
  39568. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  39569. arguments generic to the Hadoop framework.
  39570. <code>GenericOptionsParser</code> recognizes several standarad command
  39571. line arguments, enabling applications to easily specify a namenode, a
  39572. jobtracker, additional configuration resources etc.
  39573. <h4 id="GenericOptions">Generic Options</h4>
  39574. <p>The supported generic options are:</p>
  39575. <p><blockquote><pre>
  39576. -conf &lt;configuration file&gt; specify a configuration file
  39577. -D &lt;property=value&gt; use value for given property
  39578. -fs &lt;local|namenode:port&gt; specify a namenode
  39579. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  39580. -files &lt;comma separated list of files&gt; specify comma separated
  39581. files to be copied to the map reduce cluster
  39582. -libjars &lt;comma separated list of jars&gt; specify comma separated
  39583. jar files to include in the classpath.
  39584. -archives &lt;comma separated list of archives&gt; specify comma
  39585. separated archives to be unarchived on the compute machines.
  39586. </pre></blockquote></p>
  39587. <p>The general command line syntax is:</p>
  39588. <p><tt><pre>
  39589. bin/hadoop command [genericOptions] [commandOptions]
  39590. </pre></tt></p>
  39591. <p>Generic command line arguments <strong>might</strong> modify
  39592. <code>Configuration </code> objects, given to constructors.</p>
  39593. <p>The functionality is implemented using Commons CLI.</p>
  39594. <p>Examples:</p>
  39595. <p><blockquote><pre>
  39596. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  39597. list /data directory in dfs with namenode darwin:8020
  39598. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  39599. list /data directory in dfs with namenode darwin:8020
  39600. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  39601. list /data directory in dfs with conf specified in hadoop-site.xml
  39602. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  39603. submit a job to job tracker darwin:50020
  39604. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  39605. submit a job to job tracker darwin:50020
  39606. $ bin/hadoop job -jt local -submit job.xml
  39607. submit a job to local runner
  39608. $ bin/hadoop jar -libjars testlib.jar
  39609. -archives test.tgz -files file.txt inputjar args
  39610. job submission with libjars, files and archives
  39611. </pre></blockquote></p>
  39612. @see Tool
  39613. @see ToolRunner]]>
  39614. </doc>
  39615. </class>
  39616. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  39617. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  39618. <class name="GenericsUtil" extends="java.lang.Object"
  39619. abstract="false"
  39620. static="false" final="false" visibility="public"
  39621. deprecated="not deprecated">
  39622. <constructor name="GenericsUtil"
  39623. static="false" final="false" visibility="public"
  39624. deprecated="not deprecated">
  39625. </constructor>
  39626. <method name="getClass" return="java.lang.Class"
  39627. abstract="false" native="false" synchronized="false"
  39628. static="true" final="false" visibility="public"
  39629. deprecated="not deprecated">
  39630. <param name="t" type="java.lang.Object"/>
  39631. <doc>
  39632. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  39633. argument of type <code>T</code>.
  39634. @param <T> The type of the argument
  39635. @param t the object to get it class
  39636. @return <code>Class&lt;T&gt;</code>]]>
  39637. </doc>
  39638. </method>
  39639. <method name="toArray" return="java.lang.Object[]"
  39640. abstract="false" native="false" synchronized="false"
  39641. static="true" final="false" visibility="public"
  39642. deprecated="not deprecated">
  39643. <param name="c" type="java.lang.Class"/>
  39644. <param name="list" type="java.util.List"/>
  39645. <doc>
  39646. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  39647. <code>T[]</code>.
  39648. @param c the Class object of the items in the list
  39649. @param list the list to convert]]>
  39650. </doc>
  39651. </method>
  39652. <method name="toArray" return="java.lang.Object[]"
  39653. abstract="false" native="false" synchronized="false"
  39654. static="true" final="false" visibility="public"
  39655. deprecated="not deprecated">
  39656. <param name="list" type="java.util.List"/>
  39657. <doc>
  39658. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  39659. <code>T[]</code>.
  39660. @param list the list to convert
  39661. @throws ArrayIndexOutOfBoundsException if the list is empty.
  39662. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  39663. </doc>
  39664. </method>
  39665. <doc>
  39666. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  39667. </doc>
  39668. </class>
  39669. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  39670. <!-- start class org.apache.hadoop.util.HeapSort -->
  39671. <class name="HeapSort" extends="java.lang.Object"
  39672. abstract="false"
  39673. static="false" final="true" visibility="public"
  39674. deprecated="not deprecated">
  39675. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  39676. <constructor name="HeapSort"
  39677. static="false" final="false" visibility="public"
  39678. deprecated="not deprecated">
  39679. </constructor>
  39680. <method name="sort"
  39681. abstract="false" native="false" synchronized="false"
  39682. static="false" final="false" visibility="public"
  39683. deprecated="not deprecated">
  39684. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39685. <param name="p" type="int"/>
  39686. <param name="r" type="int"/>
  39687. <doc>
  39688. <![CDATA[Sort the given range of items using heap sort.
  39689. {@inheritDoc}]]>
  39690. </doc>
  39691. </method>
  39692. <method name="sort"
  39693. abstract="false" native="false" synchronized="false"
  39694. static="false" final="false" visibility="public"
  39695. deprecated="not deprecated">
  39696. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39697. <param name="p" type="int"/>
  39698. <param name="r" type="int"/>
  39699. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  39700. <doc>
  39701. <![CDATA[{@inheritDoc}]]>
  39702. </doc>
  39703. </method>
  39704. <doc>
  39705. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  39706. </doc>
  39707. </class>
  39708. <!-- end class org.apache.hadoop.util.HeapSort -->
  39709. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  39710. <class name="HostsFileReader" extends="java.lang.Object"
  39711. abstract="false"
  39712. static="false" final="false" visibility="public"
  39713. deprecated="not deprecated">
  39714. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  39715. static="false" final="false" visibility="public"
  39716. deprecated="not deprecated">
  39717. <exception name="IOException" type="java.io.IOException"/>
  39718. </constructor>
  39719. <method name="refresh"
  39720. abstract="false" native="false" synchronized="true"
  39721. static="false" final="false" visibility="public"
  39722. deprecated="not deprecated">
  39723. <exception name="IOException" type="java.io.IOException"/>
  39724. </method>
  39725. <method name="getHosts" return="java.util.Set"
  39726. abstract="false" native="false" synchronized="true"
  39727. static="false" final="false" visibility="public"
  39728. deprecated="not deprecated">
  39729. </method>
  39730. <method name="getExcludedHosts" return="java.util.Set"
  39731. abstract="false" native="false" synchronized="true"
  39732. static="false" final="false" visibility="public"
  39733. deprecated="not deprecated">
  39734. </method>
  39735. <method name="setIncludesFile"
  39736. abstract="false" native="false" synchronized="true"
  39737. static="false" final="false" visibility="public"
  39738. deprecated="not deprecated">
  39739. <param name="includesFile" type="java.lang.String"/>
  39740. </method>
  39741. <method name="setExcludesFile"
  39742. abstract="false" native="false" synchronized="true"
  39743. static="false" final="false" visibility="public"
  39744. deprecated="not deprecated">
  39745. <param name="excludesFile" type="java.lang.String"/>
  39746. </method>
  39747. <method name="updateFileNames"
  39748. abstract="false" native="false" synchronized="true"
  39749. static="false" final="false" visibility="public"
  39750. deprecated="not deprecated">
  39751. <param name="includesFile" type="java.lang.String"/>
  39752. <param name="excludesFile" type="java.lang.String"/>
  39753. <exception name="IOException" type="java.io.IOException"/>
  39754. </method>
  39755. </class>
  39756. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  39757. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  39758. <interface name="IndexedSortable" abstract="true"
  39759. static="false" final="false" visibility="public"
  39760. deprecated="not deprecated">
  39761. <method name="compare" return="int"
  39762. abstract="false" native="false" synchronized="false"
  39763. static="false" final="false" visibility="public"
  39764. deprecated="not deprecated">
  39765. <param name="i" type="int"/>
  39766. <param name="j" type="int"/>
  39767. <doc>
  39768. <![CDATA[Compare items at the given addresses consistent with the semantics of
  39769. {@link java.util.Comparator#compare(Object, Object)}.]]>
  39770. </doc>
  39771. </method>
  39772. <method name="swap"
  39773. abstract="false" native="false" synchronized="false"
  39774. static="false" final="false" visibility="public"
  39775. deprecated="not deprecated">
  39776. <param name="i" type="int"/>
  39777. <param name="j" type="int"/>
  39778. <doc>
  39779. <![CDATA[Swap items at the given addresses.]]>
  39780. </doc>
  39781. </method>
  39782. <doc>
  39783. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  39784. algorithms.]]>
  39785. </doc>
  39786. </interface>
  39787. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  39788. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  39789. <interface name="IndexedSorter" abstract="true"
  39790. static="false" final="false" visibility="public"
  39791. deprecated="not deprecated">
  39792. <method name="sort"
  39793. abstract="false" native="false" synchronized="false"
  39794. static="false" final="false" visibility="public"
  39795. deprecated="not deprecated">
  39796. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39797. <param name="l" type="int"/>
  39798. <param name="r" type="int"/>
  39799. <doc>
  39800. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  39801. range of logical indices. From the perspective of the sort algorithm,
  39802. each index between l (inclusive) and r (exclusive) is an addressable
  39803. entry.
  39804. @see IndexedSortable#compare
  39805. @see IndexedSortable#swap]]>
  39806. </doc>
  39807. </method>
  39808. <method name="sort"
  39809. abstract="false" native="false" synchronized="false"
  39810. static="false" final="false" visibility="public"
  39811. deprecated="not deprecated">
  39812. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39813. <param name="l" type="int"/>
  39814. <param name="r" type="int"/>
  39815. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  39816. <doc>
  39817. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  39818. periodically.
  39819. @see #sort(IndexedSortable,int,int)]]>
  39820. </doc>
  39821. </method>
  39822. <doc>
  39823. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  39824. A sort algorithm implementing this interface may only
  39825. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  39826. for a range of indices to effect a sort across that range.]]>
  39827. </doc>
  39828. </interface>
  39829. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  39830. <!-- start class org.apache.hadoop.util.LineReader -->
  39831. <class name="LineReader" extends="java.lang.Object"
  39832. abstract="false"
  39833. static="false" final="false" visibility="public"
  39834. deprecated="not deprecated">
  39835. <constructor name="LineReader" type="java.io.InputStream"
  39836. static="false" final="false" visibility="public"
  39837. deprecated="not deprecated">
  39838. <doc>
  39839. <![CDATA[Create a line reader that reads from the given stream using the
  39840. default buffer-size (64k).
  39841. @param in The input stream
  39842. @throws IOException]]>
  39843. </doc>
  39844. </constructor>
  39845. <constructor name="LineReader" type="java.io.InputStream, int"
  39846. static="false" final="false" visibility="public"
  39847. deprecated="not deprecated">
  39848. <doc>
  39849. <![CDATA[Create a line reader that reads from the given stream using the
  39850. given buffer-size.
  39851. @param in The input stream
  39852. @param bufferSize Size of the read buffer
  39853. @throws IOException]]>
  39854. </doc>
  39855. </constructor>
  39856. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  39857. static="false" final="false" visibility="public"
  39858. deprecated="not deprecated">
  39859. <exception name="IOException" type="java.io.IOException"/>
  39860. <doc>
  39861. <![CDATA[Create a line reader that reads from the given stream using the
  39862. <code>io.file.buffer.size</code> specified in the given
  39863. <code>Configuration</code>.
  39864. @param in input stream
  39865. @param conf configuration
  39866. @throws IOException]]>
  39867. </doc>
  39868. </constructor>
  39869. <method name="close"
  39870. abstract="false" native="false" synchronized="false"
  39871. static="false" final="false" visibility="public"
  39872. deprecated="not deprecated">
  39873. <exception name="IOException" type="java.io.IOException"/>
  39874. <doc>
  39875. <![CDATA[Close the underlying stream.
  39876. @throws IOException]]>
  39877. </doc>
  39878. </method>
  39879. <method name="readLine" return="int"
  39880. abstract="false" native="false" synchronized="false"
  39881. static="false" final="false" visibility="public"
  39882. deprecated="not deprecated">
  39883. <param name="str" type="org.apache.hadoop.io.Text"/>
  39884. <param name="maxLineLength" type="int"/>
  39885. <param name="maxBytesToConsume" type="int"/>
  39886. <exception name="IOException" type="java.io.IOException"/>
  39887. <doc>
  39888. <![CDATA[Read one line from the InputStream into the given Text. A line
  39889. can be terminated by one of the following: '\n' (LF) , '\r' (CR),
  39890. or '\r\n' (CR+LF). EOF also terminates an otherwise unterminated
  39891. line.
  39892. @param str the object to store the given line (without newline)
  39893. @param maxLineLength the maximum number of bytes to store into str;
  39894. the rest of the line is silently discarded.
  39895. @param maxBytesToConsume the maximum number of bytes to consume
  39896. in this call. This is only a hint, because if the line cross
  39897. this threshold, we allow it to happen. It can overshoot
  39898. potentially by as much as one buffer length.
  39899. @return the number of bytes read including the (longest) newline
  39900. found.
  39901. @throws IOException if the underlying stream throws]]>
  39902. </doc>
  39903. </method>
  39904. <method name="readLine" return="int"
  39905. abstract="false" native="false" synchronized="false"
  39906. static="false" final="false" visibility="public"
  39907. deprecated="not deprecated">
  39908. <param name="str" type="org.apache.hadoop.io.Text"/>
  39909. <param name="maxLineLength" type="int"/>
  39910. <exception name="IOException" type="java.io.IOException"/>
  39911. <doc>
  39912. <![CDATA[Read from the InputStream into the given Text.
  39913. @param str the object to store the given line
  39914. @param maxLineLength the maximum number of bytes to store into str.
  39915. @return the number of bytes read including the newline
  39916. @throws IOException if the underlying stream throws]]>
  39917. </doc>
  39918. </method>
  39919. <method name="readLine" return="int"
  39920. abstract="false" native="false" synchronized="false"
  39921. static="false" final="false" visibility="public"
  39922. deprecated="not deprecated">
  39923. <param name="str" type="org.apache.hadoop.io.Text"/>
  39924. <exception name="IOException" type="java.io.IOException"/>
  39925. <doc>
  39926. <![CDATA[Read from the InputStream into the given Text.
  39927. @param str the object to store the given line
  39928. @return the number of bytes read including the newline
  39929. @throws IOException if the underlying stream throws]]>
  39930. </doc>
  39931. </method>
  39932. <doc>
  39933. <![CDATA[A class that provides a line reader from an input stream.]]>
  39934. </doc>
  39935. </class>
  39936. <!-- end class org.apache.hadoop.util.LineReader -->
  39937. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  39938. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  39939. abstract="false"
  39940. static="false" final="false" visibility="public"
  39941. deprecated="Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  39942. instead">
  39943. <constructor name="LinuxMemoryCalculatorPlugin"
  39944. static="false" final="false" visibility="public"
  39945. deprecated="not deprecated">
  39946. </constructor>
  39947. <method name="getPhysicalMemorySize" return="long"
  39948. abstract="false" native="false" synchronized="false"
  39949. static="false" final="false" visibility="public"
  39950. deprecated="not deprecated">
  39951. <doc>
  39952. <![CDATA[{@inheritDoc}]]>
  39953. </doc>
  39954. </method>
  39955. <method name="getVirtualMemorySize" return="long"
  39956. abstract="false" native="false" synchronized="false"
  39957. static="false" final="false" visibility="public"
  39958. deprecated="not deprecated">
  39959. <doc>
  39960. <![CDATA[{@inheritDoc}]]>
  39961. </doc>
  39962. </method>
  39963. <doc>
  39964. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.
  39965. @deprecated Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  39966. instead]]>
  39967. </doc>
  39968. </class>
  39969. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  39970. <!-- start class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  39971. <class name="LinuxResourceCalculatorPlugin" extends="org.apache.hadoop.util.ResourceCalculatorPlugin"
  39972. abstract="false"
  39973. static="false" final="false" visibility="public"
  39974. deprecated="not deprecated">
  39975. <constructor name="LinuxResourceCalculatorPlugin"
  39976. static="false" final="false" visibility="public"
  39977. deprecated="not deprecated">
  39978. </constructor>
  39979. <constructor name="LinuxResourceCalculatorPlugin" type="java.lang.String, java.lang.String, java.lang.String, long"
  39980. static="false" final="false" visibility="public"
  39981. deprecated="not deprecated">
  39982. <doc>
  39983. <![CDATA[Constructor which allows assigning the /proc/ directories. This will be
  39984. used only in unit tests
  39985. @param procfsMemFile fake file for /proc/meminfo
  39986. @param procfsCpuFile fake file for /proc/cpuinfo
  39987. @param procfsStatFile fake file for /proc/stat
  39988. @param jiffyLengthInMillis fake jiffy length value]]>
  39989. </doc>
  39990. </constructor>
  39991. <method name="getPhysicalMemorySize" return="long"
  39992. abstract="false" native="false" synchronized="false"
  39993. static="false" final="false" visibility="public"
  39994. deprecated="not deprecated">
  39995. <doc>
  39996. <![CDATA[{@inheritDoc}]]>
  39997. </doc>
  39998. </method>
  39999. <method name="getVirtualMemorySize" return="long"
  40000. abstract="false" native="false" synchronized="false"
  40001. static="false" final="false" visibility="public"
  40002. deprecated="not deprecated">
  40003. <doc>
  40004. <![CDATA[{@inheritDoc}]]>
  40005. </doc>
  40006. </method>
  40007. <method name="getAvailablePhysicalMemorySize" return="long"
  40008. abstract="false" native="false" synchronized="false"
  40009. static="false" final="false" visibility="public"
  40010. deprecated="not deprecated">
  40011. <doc>
  40012. <![CDATA[{@inheritDoc}]]>
  40013. </doc>
  40014. </method>
  40015. <method name="getAvailableVirtualMemorySize" return="long"
  40016. abstract="false" native="false" synchronized="false"
  40017. static="false" final="false" visibility="public"
  40018. deprecated="not deprecated">
  40019. <doc>
  40020. <![CDATA[{@inheritDoc}]]>
  40021. </doc>
  40022. </method>
  40023. <method name="getNumProcessors" return="int"
  40024. abstract="false" native="false" synchronized="false"
  40025. static="false" final="false" visibility="public"
  40026. deprecated="not deprecated">
  40027. <doc>
  40028. <![CDATA[{@inheritDoc}]]>
  40029. </doc>
  40030. </method>
  40031. <method name="getCpuFrequency" return="long"
  40032. abstract="false" native="false" synchronized="false"
  40033. static="false" final="false" visibility="public"
  40034. deprecated="not deprecated">
  40035. <doc>
  40036. <![CDATA[{@inheritDoc}]]>
  40037. </doc>
  40038. </method>
  40039. <method name="getCumulativeCpuTime" return="long"
  40040. abstract="false" native="false" synchronized="false"
  40041. static="false" final="false" visibility="public"
  40042. deprecated="not deprecated">
  40043. <doc>
  40044. <![CDATA[{@inheritDoc}]]>
  40045. </doc>
  40046. </method>
  40047. <method name="getCpuUsage" return="float"
  40048. abstract="false" native="false" synchronized="false"
  40049. static="false" final="false" visibility="public"
  40050. deprecated="not deprecated">
  40051. <doc>
  40052. <![CDATA[{@inheritDoc}]]>
  40053. </doc>
  40054. </method>
  40055. <method name="main"
  40056. abstract="false" native="false" synchronized="false"
  40057. static="true" final="false" visibility="public"
  40058. deprecated="not deprecated">
  40059. <param name="args" type="java.lang.String[]"/>
  40060. <doc>
  40061. <![CDATA[Test the {@link LinuxResourceCalculatorPlugin}
  40062. @param args]]>
  40063. </doc>
  40064. </method>
  40065. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  40066. abstract="false" native="false" synchronized="false"
  40067. static="false" final="false" visibility="public"
  40068. deprecated="not deprecated">
  40069. </method>
  40070. <doc>
  40071. <![CDATA[Plugin to calculate resource information on Linux systems.]]>
  40072. </doc>
  40073. </class>
  40074. <!-- end class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  40075. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  40076. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  40077. abstract="true"
  40078. static="false" final="false" visibility="public"
  40079. deprecated="Use
  40080. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  40081. instead">
  40082. <constructor name="MemoryCalculatorPlugin"
  40083. static="false" final="false" visibility="public"
  40084. deprecated="not deprecated">
  40085. </constructor>
  40086. <method name="getVirtualMemorySize" return="long"
  40087. abstract="true" native="false" synchronized="false"
  40088. static="false" final="false" visibility="public"
  40089. deprecated="not deprecated">
  40090. <doc>
  40091. <![CDATA[Obtain the total size of the virtual memory present in the system.
  40092. @return virtual memory size in bytes.]]>
  40093. </doc>
  40094. </method>
  40095. <method name="getPhysicalMemorySize" return="long"
  40096. abstract="true" native="false" synchronized="false"
  40097. static="false" final="false" visibility="public"
  40098. deprecated="not deprecated">
  40099. <doc>
  40100. <![CDATA[Obtain the total size of the physical memory present in the system.
  40101. @return physical memory size bytes.]]>
  40102. </doc>
  40103. </method>
  40104. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  40105. abstract="false" native="false" synchronized="false"
  40106. static="true" final="false" visibility="public"
  40107. deprecated="not deprecated">
  40108. <param name="clazz" type="java.lang.Class"/>
  40109. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40110. <doc>
  40111. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  40112. class name is null, this method will try and return a memory calculator
  40113. plugin available for this system.
  40114. @param clazz class-name
  40115. @param conf configure the plugin with this.
  40116. @return MemoryCalculatorPlugin]]>
  40117. </doc>
  40118. </method>
  40119. <doc>
  40120. <![CDATA[Plugin to calculate virtual and physical memories on the system.
  40121. @deprecated Use
  40122. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  40123. instead]]>
  40124. </doc>
  40125. </class>
  40126. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  40127. <!-- start class org.apache.hadoop.util.MergeSort -->
  40128. <class name="MergeSort" extends="java.lang.Object"
  40129. abstract="false"
  40130. static="false" final="false" visibility="public"
  40131. deprecated="not deprecated">
  40132. <constructor name="MergeSort" type="java.util.Comparator"
  40133. static="false" final="false" visibility="public"
  40134. deprecated="not deprecated">
  40135. </constructor>
  40136. <method name="mergeSort"
  40137. abstract="false" native="false" synchronized="false"
  40138. static="false" final="false" visibility="public"
  40139. deprecated="not deprecated">
  40140. <param name="src" type="int[]"/>
  40141. <param name="dest" type="int[]"/>
  40142. <param name="low" type="int"/>
  40143. <param name="high" type="int"/>
  40144. </method>
  40145. <doc>
  40146. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  40147. </doc>
  40148. </class>
  40149. <!-- end class org.apache.hadoop.util.MergeSort -->
  40150. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  40151. <class name="NativeCodeLoader" extends="java.lang.Object"
  40152. abstract="false"
  40153. static="false" final="false" visibility="public"
  40154. deprecated="not deprecated">
  40155. <constructor name="NativeCodeLoader"
  40156. static="false" final="false" visibility="public"
  40157. deprecated="not deprecated">
  40158. </constructor>
  40159. <method name="isNativeCodeLoaded" return="boolean"
  40160. abstract="false" native="false" synchronized="false"
  40161. static="true" final="false" visibility="public"
  40162. deprecated="not deprecated">
  40163. <doc>
  40164. <![CDATA[Check if native-hadoop code is loaded for this platform.
  40165. @return <code>true</code> if native-hadoop is loaded,
  40166. else <code>false</code>]]>
  40167. </doc>
  40168. </method>
  40169. <method name="getLoadNativeLibraries" return="boolean"
  40170. abstract="false" native="false" synchronized="false"
  40171. static="false" final="false" visibility="public"
  40172. deprecated="not deprecated">
  40173. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40174. <doc>
  40175. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  40176. @param conf configuration
  40177. @return <code>true</code> if native hadoop libraries, if present, can be
  40178. used for this job; <code>false</code> otherwise.]]>
  40179. </doc>
  40180. </method>
  40181. <method name="setLoadNativeLibraries"
  40182. abstract="false" native="false" synchronized="false"
  40183. static="false" final="false" visibility="public"
  40184. deprecated="not deprecated">
  40185. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40186. <param name="loadNativeLibraries" type="boolean"/>
  40187. <doc>
  40188. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  40189. @param conf configuration
  40190. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  40191. </doc>
  40192. </method>
  40193. <doc>
  40194. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  40195. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  40196. or the default java implementations where appropriate.]]>
  40197. </doc>
  40198. </class>
  40199. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  40200. <!-- start class org.apache.hadoop.util.PlatformName -->
  40201. <class name="PlatformName" extends="java.lang.Object"
  40202. abstract="false"
  40203. static="false" final="false" visibility="public"
  40204. deprecated="not deprecated">
  40205. <constructor name="PlatformName"
  40206. static="false" final="false" visibility="public"
  40207. deprecated="not deprecated">
  40208. </constructor>
  40209. <method name="getPlatformName" return="java.lang.String"
  40210. abstract="false" native="false" synchronized="false"
  40211. static="true" final="false" visibility="public"
  40212. deprecated="not deprecated">
  40213. <doc>
  40214. <![CDATA[Get the complete platform as per the java-vm.
  40215. @return returns the complete platform as per the java-vm.]]>
  40216. </doc>
  40217. </method>
  40218. <method name="main"
  40219. abstract="false" native="false" synchronized="false"
  40220. static="true" final="false" visibility="public"
  40221. deprecated="not deprecated">
  40222. <param name="args" type="java.lang.String[]"/>
  40223. </method>
  40224. <doc>
  40225. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  40226. </doc>
  40227. </class>
  40228. <!-- end class org.apache.hadoop.util.PlatformName -->
  40229. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  40230. <class name="PrintJarMainClass" extends="java.lang.Object"
  40231. abstract="false"
  40232. static="false" final="false" visibility="public"
  40233. deprecated="not deprecated">
  40234. <constructor name="PrintJarMainClass"
  40235. static="false" final="false" visibility="public"
  40236. deprecated="not deprecated">
  40237. </constructor>
  40238. <method name="main"
  40239. abstract="false" native="false" synchronized="false"
  40240. static="true" final="false" visibility="public"
  40241. deprecated="not deprecated">
  40242. <param name="args" type="java.lang.String[]"/>
  40243. <doc>
  40244. <![CDATA[@param args]]>
  40245. </doc>
  40246. </method>
  40247. <doc>
  40248. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  40249. </doc>
  40250. </class>
  40251. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  40252. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  40253. <class name="PriorityQueue" extends="java.lang.Object"
  40254. abstract="true"
  40255. static="false" final="false" visibility="public"
  40256. deprecated="not deprecated">
  40257. <constructor name="PriorityQueue"
  40258. static="false" final="false" visibility="public"
  40259. deprecated="not deprecated">
  40260. </constructor>
  40261. <method name="lessThan" return="boolean"
  40262. abstract="true" native="false" synchronized="false"
  40263. static="false" final="false" visibility="protected"
  40264. deprecated="not deprecated">
  40265. <param name="a" type="java.lang.Object"/>
  40266. <param name="b" type="java.lang.Object"/>
  40267. <doc>
  40268. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  40269. must define this one method.]]>
  40270. </doc>
  40271. </method>
  40272. <method name="initialize"
  40273. abstract="false" native="false" synchronized="false"
  40274. static="false" final="true" visibility="protected"
  40275. deprecated="not deprecated">
  40276. <param name="maxSize" type="int"/>
  40277. <doc>
  40278. <![CDATA[Subclass constructors must call this.]]>
  40279. </doc>
  40280. </method>
  40281. <method name="put"
  40282. abstract="false" native="false" synchronized="false"
  40283. static="false" final="true" visibility="public"
  40284. deprecated="not deprecated">
  40285. <param name="element" type="java.lang.Object"/>
  40286. <doc>
  40287. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  40288. If one tries to add more objects than maxSize from initialize
  40289. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  40290. </doc>
  40291. </method>
  40292. <method name="insert" return="boolean"
  40293. abstract="false" native="false" synchronized="false"
  40294. static="false" final="false" visibility="public"
  40295. deprecated="not deprecated">
  40296. <param name="element" type="java.lang.Object"/>
  40297. <doc>
  40298. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  40299. the PriorityQueue is not full, or not lessThan(element, top()).
  40300. @param element
  40301. @return true if element is added, false otherwise.]]>
  40302. </doc>
  40303. </method>
  40304. <method name="top" return="java.lang.Object"
  40305. abstract="false" native="false" synchronized="false"
  40306. static="false" final="true" visibility="public"
  40307. deprecated="not deprecated">
  40308. <doc>
  40309. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  40310. </doc>
  40311. </method>
  40312. <method name="pop" return="java.lang.Object"
  40313. abstract="false" native="false" synchronized="false"
  40314. static="false" final="true" visibility="public"
  40315. deprecated="not deprecated">
  40316. <doc>
  40317. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  40318. time.]]>
  40319. </doc>
  40320. </method>
  40321. <method name="adjustTop"
  40322. abstract="false" native="false" synchronized="false"
  40323. static="false" final="true" visibility="public"
  40324. deprecated="not deprecated">
  40325. <doc>
  40326. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  40327. worst case, but it's at least twice as fast to <pre>
  40328. { pq.top().change(); pq.adjustTop(); }
  40329. </pre> instead of <pre>
  40330. { o = pq.pop(); o.change(); pq.push(o); }
  40331. </pre>]]>
  40332. </doc>
  40333. </method>
  40334. <method name="size" return="int"
  40335. abstract="false" native="false" synchronized="false"
  40336. static="false" final="true" visibility="public"
  40337. deprecated="not deprecated">
  40338. <doc>
  40339. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  40340. </doc>
  40341. </method>
  40342. <method name="clear"
  40343. abstract="false" native="false" synchronized="false"
  40344. static="false" final="true" visibility="public"
  40345. deprecated="not deprecated">
  40346. <doc>
  40347. <![CDATA[Removes all entries from the PriorityQueue.]]>
  40348. </doc>
  40349. </method>
  40350. <doc>
  40351. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  40352. least element can always be found in constant time. Put()'s and pop()'s
  40353. require log(size) time.]]>
  40354. </doc>
  40355. </class>
  40356. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  40357. <!-- start class org.apache.hadoop.util.ProcessTree -->
  40358. <class name="ProcessTree" extends="java.lang.Object"
  40359. abstract="false"
  40360. static="false" final="false" visibility="public"
  40361. deprecated="not deprecated">
  40362. <constructor name="ProcessTree"
  40363. static="false" final="false" visibility="public"
  40364. deprecated="not deprecated">
  40365. </constructor>
  40366. <method name="killProcess"
  40367. abstract="false" native="false" synchronized="false"
  40368. static="true" final="false" visibility="public"
  40369. deprecated="not deprecated">
  40370. <param name="pid" type="java.lang.String"/>
  40371. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  40372. <doc>
  40373. <![CDATA[Sends signal to process, forcefully terminating the process.
  40374. @param pid process id
  40375. @param signal the signal number to send]]>
  40376. </doc>
  40377. </method>
  40378. <method name="killProcessGroup"
  40379. abstract="false" native="false" synchronized="false"
  40380. static="true" final="false" visibility="public"
  40381. deprecated="not deprecated">
  40382. <param name="pgrpId" type="java.lang.String"/>
  40383. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  40384. <doc>
  40385. <![CDATA[Sends signal to all process belonging to same process group,
  40386. forcefully terminating the process group.
  40387. @param pgrpId process group id
  40388. @param signal the signal number to send]]>
  40389. </doc>
  40390. </method>
  40391. <method name="isAlive" return="boolean"
  40392. abstract="false" native="false" synchronized="false"
  40393. static="true" final="false" visibility="public"
  40394. deprecated="not deprecated">
  40395. <param name="pid" type="java.lang.String"/>
  40396. <doc>
  40397. <![CDATA[Is the process with PID pid still alive?
  40398. This method assumes that isAlive is called on a pid that was alive not
  40399. too long ago, and hence assumes no chance of pid-wrapping-around.
  40400. @param pid pid of the process to check.
  40401. @return true if process is alive.]]>
  40402. </doc>
  40403. </method>
  40404. <method name="isProcessGroupAlive" return="boolean"
  40405. abstract="false" native="false" synchronized="false"
  40406. static="true" final="false" visibility="public"
  40407. deprecated="not deprecated">
  40408. <param name="pgrpId" type="java.lang.String"/>
  40409. <doc>
  40410. <![CDATA[Is the process group with still alive?
  40411. This method assumes that isAlive is called on a pid that was alive not
  40412. too long ago, and hence assumes no chance of pid-wrapping-around.
  40413. @param pgrpId process group id
  40414. @return true if any of process in group is alive.]]>
  40415. </doc>
  40416. </method>
  40417. <field name="isSetsidAvailable" type="boolean"
  40418. transient="false" volatile="false"
  40419. static="true" final="true" visibility="public"
  40420. deprecated="not deprecated">
  40421. </field>
  40422. <doc>
  40423. <![CDATA[Process tree related operations]]>
  40424. </doc>
  40425. </class>
  40426. <!-- end class org.apache.hadoop.util.ProcessTree -->
  40427. <!-- start class org.apache.hadoop.util.ProcessTree.Signal -->
  40428. <class name="ProcessTree.Signal" extends="java.lang.Enum"
  40429. abstract="false"
  40430. static="true" final="true" visibility="public"
  40431. deprecated="not deprecated">
  40432. <method name="values" return="org.apache.hadoop.util.ProcessTree.Signal[]"
  40433. abstract="false" native="false" synchronized="false"
  40434. static="true" final="false" visibility="public"
  40435. deprecated="not deprecated">
  40436. </method>
  40437. <method name="valueOf" return="org.apache.hadoop.util.ProcessTree.Signal"
  40438. abstract="false" native="false" synchronized="false"
  40439. static="true" final="false" visibility="public"
  40440. deprecated="not deprecated">
  40441. <param name="name" type="java.lang.String"/>
  40442. </method>
  40443. <method name="getValue" return="int"
  40444. abstract="false" native="false" synchronized="false"
  40445. static="false" final="false" visibility="public"
  40446. deprecated="not deprecated">
  40447. </method>
  40448. <field name="QUIT" type="org.apache.hadoop.util.ProcessTree.Signal"
  40449. transient="false" volatile="false"
  40450. static="true" final="true" visibility="public"
  40451. deprecated="not deprecated">
  40452. </field>
  40453. <field name="KILL" type="org.apache.hadoop.util.ProcessTree.Signal"
  40454. transient="false" volatile="false"
  40455. static="true" final="true" visibility="public"
  40456. deprecated="not deprecated">
  40457. </field>
  40458. <field name="TERM" type="org.apache.hadoop.util.ProcessTree.Signal"
  40459. transient="false" volatile="false"
  40460. static="true" final="true" visibility="public"
  40461. deprecated="not deprecated">
  40462. </field>
  40463. <doc>
  40464. <![CDATA[The constants for the signals.]]>
  40465. </doc>
  40466. </class>
  40467. <!-- end class org.apache.hadoop.util.ProcessTree.Signal -->
  40468. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  40469. <class name="ProcfsBasedProcessTree" extends="org.apache.hadoop.util.ProcessTree"
  40470. abstract="false"
  40471. static="false" final="false" visibility="public"
  40472. deprecated="not deprecated">
  40473. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  40474. static="false" final="false" visibility="public"
  40475. deprecated="not deprecated">
  40476. </constructor>
  40477. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, boolean"
  40478. static="false" final="false" visibility="public"
  40479. deprecated="not deprecated">
  40480. </constructor>
  40481. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, java.lang.String"
  40482. static="false" final="false" visibility="public"
  40483. deprecated="not deprecated">
  40484. </constructor>
  40485. <method name="isAvailable" return="boolean"
  40486. abstract="false" native="false" synchronized="false"
  40487. static="true" final="false" visibility="public"
  40488. deprecated="not deprecated">
  40489. <doc>
  40490. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  40491. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  40492. </doc>
  40493. </method>
  40494. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  40495. abstract="false" native="false" synchronized="false"
  40496. static="false" final="false" visibility="public"
  40497. deprecated="not deprecated">
  40498. <doc>
  40499. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  40500. an empty tree will be returned.
  40501. @return the process-tree with latest state.]]>
  40502. </doc>
  40503. </method>
  40504. <method name="isAlive" return="boolean"
  40505. abstract="false" native="false" synchronized="false"
  40506. static="false" final="false" visibility="public"
  40507. deprecated="not deprecated">
  40508. <doc>
  40509. <![CDATA[Is the root-process alive?
  40510. @return true if the root-process is alive, false otherwise.]]>
  40511. </doc>
  40512. </method>
  40513. <method name="isAnyProcessInTreeAlive" return="boolean"
  40514. abstract="false" native="false" synchronized="false"
  40515. static="false" final="false" visibility="public"
  40516. deprecated="not deprecated">
  40517. <doc>
  40518. <![CDATA[Is any of the subprocesses in the process-tree alive?
  40519. @return true if any of the processes in the process-tree is
  40520. alive, false otherwise.]]>
  40521. </doc>
  40522. </method>
  40523. <method name="getProcessTreeDump" return="java.lang.String"
  40524. abstract="false" native="false" synchronized="false"
  40525. static="false" final="false" visibility="public"
  40526. deprecated="not deprecated">
  40527. <doc>
  40528. <![CDATA[Get a dump of the process-tree.
  40529. @return a string concatenating the dump of information of all the processes
  40530. in the process-tree]]>
  40531. </doc>
  40532. </method>
  40533. <method name="getCumulativeVmem" return="long"
  40534. abstract="false" native="false" synchronized="false"
  40535. static="false" final="false" visibility="public"
  40536. deprecated="not deprecated">
  40537. <doc>
  40538. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  40539. process-tree.
  40540. @return cumulative virtual memory used by the process-tree in bytes.]]>
  40541. </doc>
  40542. </method>
  40543. <method name="getCumulativeRssmem" return="long"
  40544. abstract="false" native="false" synchronized="false"
  40545. static="false" final="false" visibility="public"
  40546. deprecated="not deprecated">
  40547. <doc>
  40548. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  40549. in the process-tree.
  40550. @return cumulative rss memory used by the process-tree in bytes. return 0
  40551. if it cannot be calculated]]>
  40552. </doc>
  40553. </method>
  40554. <method name="getCumulativeVmem" return="long"
  40555. abstract="false" native="false" synchronized="false"
  40556. static="false" final="false" visibility="public"
  40557. deprecated="not deprecated">
  40558. <param name="olderThanAge" type="int"/>
  40559. <doc>
  40560. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  40561. process-tree that are older than the passed in age.
  40562. @param olderThanAge processes above this age are included in the
  40563. memory addition
  40564. @return cumulative virtual memory used by the process-tree in bytes,
  40565. for processes older than this age.]]>
  40566. </doc>
  40567. </method>
  40568. <method name="getCumulativeRssmem" return="long"
  40569. abstract="false" native="false" synchronized="false"
  40570. static="false" final="false" visibility="public"
  40571. deprecated="not deprecated">
  40572. <param name="olderThanAge" type="int"/>
  40573. <doc>
  40574. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  40575. in the process-tree that are older than the passed in age.
  40576. @param olderThanAge processes above this age are included in the
  40577. memory addition
  40578. @return cumulative rss memory used by the process-tree in bytes,
  40579. for processes older than this age. return 0 if it cannot be
  40580. calculated]]>
  40581. </doc>
  40582. </method>
  40583. <method name="getCumulativeCpuTime" return="long"
  40584. abstract="false" native="false" synchronized="false"
  40585. static="false" final="false" visibility="public"
  40586. deprecated="not deprecated">
  40587. <doc>
  40588. <![CDATA[Get the CPU time in millisecond used by all the processes in the
  40589. process-tree since the process-tree created
  40590. @return cumulative CPU time in millisecond since the process-tree created
  40591. return 0 if it cannot be calculated]]>
  40592. </doc>
  40593. </method>
  40594. <method name="toString" return="java.lang.String"
  40595. abstract="false" native="false" synchronized="false"
  40596. static="false" final="false" visibility="public"
  40597. deprecated="not deprecated">
  40598. <doc>
  40599. <![CDATA[Returns a string printing PIDs of process present in the
  40600. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  40601. </doc>
  40602. </method>
  40603. <field name="PAGE_SIZE" type="long"
  40604. transient="false" volatile="false"
  40605. static="true" final="true" visibility="public"
  40606. deprecated="not deprecated">
  40607. </field>
  40608. <field name="JIFFY_LENGTH_IN_MILLIS" type="long"
  40609. transient="false" volatile="false"
  40610. static="true" final="true" visibility="public"
  40611. deprecated="not deprecated">
  40612. </field>
  40613. <doc>
  40614. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  40615. </doc>
  40616. </class>
  40617. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  40618. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  40619. <class name="ProgramDriver" extends="java.lang.Object"
  40620. abstract="false"
  40621. static="false" final="false" visibility="public"
  40622. deprecated="not deprecated">
  40623. <constructor name="ProgramDriver"
  40624. static="false" final="false" visibility="public"
  40625. deprecated="not deprecated">
  40626. </constructor>
  40627. <method name="addClass"
  40628. abstract="false" native="false" synchronized="false"
  40629. static="false" final="false" visibility="public"
  40630. deprecated="not deprecated">
  40631. <param name="name" type="java.lang.String"/>
  40632. <param name="mainClass" type="java.lang.Class"/>
  40633. <param name="description" type="java.lang.String"/>
  40634. <exception name="Throwable" type="java.lang.Throwable"/>
  40635. <doc>
  40636. <![CDATA[This is the method that adds the classed to the repository
  40637. @param name The name of the string you want the class instance to be called with
  40638. @param mainClass The class that you want to add to the repository
  40639. @param description The description of the class
  40640. @throws NoSuchMethodException
  40641. @throws SecurityException]]>
  40642. </doc>
  40643. </method>
  40644. <method name="driver"
  40645. abstract="false" native="false" synchronized="false"
  40646. static="false" final="false" visibility="public"
  40647. deprecated="not deprecated">
  40648. <param name="args" type="java.lang.String[]"/>
  40649. <exception name="Throwable" type="java.lang.Throwable"/>
  40650. <doc>
  40651. <![CDATA[This is a driver for the example programs.
  40652. It looks at the first command line argument and tries to find an
  40653. example program with that name.
  40654. If it is found, it calls the main method in that class with the rest
  40655. of the command line arguments.
  40656. @param args The argument from the user. args[0] is the command to run.
  40657. @throws NoSuchMethodException
  40658. @throws SecurityException
  40659. @throws IllegalAccessException
  40660. @throws IllegalArgumentException
  40661. @throws Throwable Anything thrown by the example program's main]]>
  40662. </doc>
  40663. </method>
  40664. <doc>
  40665. <![CDATA[A driver that is used to run programs added to it]]>
  40666. </doc>
  40667. </class>
  40668. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  40669. <!-- start class org.apache.hadoop.util.Progress -->
  40670. <class name="Progress" extends="java.lang.Object"
  40671. abstract="false"
  40672. static="false" final="false" visibility="public"
  40673. deprecated="not deprecated">
  40674. <constructor name="Progress"
  40675. static="false" final="false" visibility="public"
  40676. deprecated="not deprecated">
  40677. <doc>
  40678. <![CDATA[Creates a new root node.]]>
  40679. </doc>
  40680. </constructor>
  40681. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  40682. abstract="false" native="false" synchronized="false"
  40683. static="false" final="false" visibility="public"
  40684. deprecated="not deprecated">
  40685. <param name="status" type="java.lang.String"/>
  40686. <doc>
  40687. <![CDATA[Adds a named node to the tree.]]>
  40688. </doc>
  40689. </method>
  40690. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  40691. abstract="false" native="false" synchronized="true"
  40692. static="false" final="false" visibility="public"
  40693. deprecated="not deprecated">
  40694. <doc>
  40695. <![CDATA[Adds a node to the tree.]]>
  40696. </doc>
  40697. </method>
  40698. <method name="startNextPhase"
  40699. abstract="false" native="false" synchronized="true"
  40700. static="false" final="false" visibility="public"
  40701. deprecated="not deprecated">
  40702. <doc>
  40703. <![CDATA[Called during execution to move to the next phase at this level in the
  40704. tree.]]>
  40705. </doc>
  40706. </method>
  40707. <method name="phase" return="org.apache.hadoop.util.Progress"
  40708. abstract="false" native="false" synchronized="true"
  40709. static="false" final="false" visibility="public"
  40710. deprecated="not deprecated">
  40711. <doc>
  40712. <![CDATA[Returns the current sub-node executing.]]>
  40713. </doc>
  40714. </method>
  40715. <method name="complete"
  40716. abstract="false" native="false" synchronized="false"
  40717. static="false" final="false" visibility="public"
  40718. deprecated="not deprecated">
  40719. <doc>
  40720. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  40721. </doc>
  40722. </method>
  40723. <method name="set"
  40724. abstract="false" native="false" synchronized="true"
  40725. static="false" final="false" visibility="public"
  40726. deprecated="not deprecated">
  40727. <param name="progress" type="float"/>
  40728. <doc>
  40729. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  40730. </doc>
  40731. </method>
  40732. <method name="get" return="float"
  40733. abstract="false" native="false" synchronized="true"
  40734. static="false" final="false" visibility="public"
  40735. deprecated="not deprecated">
  40736. <doc>
  40737. <![CDATA[Returns the overall progress of the root.]]>
  40738. </doc>
  40739. </method>
  40740. <method name="getProgress" return="float"
  40741. abstract="false" native="false" synchronized="true"
  40742. static="false" final="false" visibility="public"
  40743. deprecated="not deprecated">
  40744. <doc>
  40745. <![CDATA[Returns progress in this node. get() would give overall progress of the
  40746. root node(not just given current node).]]>
  40747. </doc>
  40748. </method>
  40749. <method name="setStatus"
  40750. abstract="false" native="false" synchronized="true"
  40751. static="false" final="false" visibility="public"
  40752. deprecated="not deprecated">
  40753. <param name="status" type="java.lang.String"/>
  40754. </method>
  40755. <method name="toString" return="java.lang.String"
  40756. abstract="false" native="false" synchronized="false"
  40757. static="false" final="false" visibility="public"
  40758. deprecated="not deprecated">
  40759. </method>
  40760. <doc>
  40761. <![CDATA[Utility to assist with generation of progress reports. Applications build
  40762. a hierarchy of {@link Progress} instances, each modelling a phase of
  40763. execution. The root is constructed with {@link #Progress()}. Nodes for
  40764. sub-phases are created by calling {@link #addPhase()}.]]>
  40765. </doc>
  40766. </class>
  40767. <!-- end class org.apache.hadoop.util.Progress -->
  40768. <!-- start interface org.apache.hadoop.util.Progressable -->
  40769. <interface name="Progressable" abstract="true"
  40770. static="false" final="false" visibility="public"
  40771. deprecated="not deprecated">
  40772. <method name="progress"
  40773. abstract="false" native="false" synchronized="false"
  40774. static="false" final="false" visibility="public"
  40775. deprecated="not deprecated">
  40776. <doc>
  40777. <![CDATA[Report progress to the Hadoop framework.]]>
  40778. </doc>
  40779. </method>
  40780. <doc>
  40781. <![CDATA[A facility for reporting progress.
  40782. <p>Clients and/or applications can use the provided <code>Progressable</code>
  40783. to explicitly report progress to the Hadoop framework. This is especially
  40784. important for operations which take an insignificant amount of time since,
  40785. in-lieu of the reported progress, the framework has to assume that an error
  40786. has occured and time-out the operation.</p>]]>
  40787. </doc>
  40788. </interface>
  40789. <!-- end interface org.apache.hadoop.util.Progressable -->
  40790. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  40791. <class name="PureJavaCrc32" extends="java.lang.Object"
  40792. abstract="false"
  40793. static="false" final="false" visibility="public"
  40794. deprecated="not deprecated">
  40795. <implements name="java.util.zip.Checksum"/>
  40796. <constructor name="PureJavaCrc32"
  40797. static="false" final="false" visibility="public"
  40798. deprecated="not deprecated">
  40799. </constructor>
  40800. <method name="getValue" return="long"
  40801. abstract="false" native="false" synchronized="false"
  40802. static="false" final="false" visibility="public"
  40803. deprecated="not deprecated">
  40804. <doc>
  40805. <![CDATA[{@inheritDoc}]]>
  40806. </doc>
  40807. </method>
  40808. <method name="reset"
  40809. abstract="false" native="false" synchronized="false"
  40810. static="false" final="false" visibility="public"
  40811. deprecated="not deprecated">
  40812. <doc>
  40813. <![CDATA[{@inheritDoc}]]>
  40814. </doc>
  40815. </method>
  40816. <method name="update"
  40817. abstract="false" native="false" synchronized="false"
  40818. static="false" final="false" visibility="public"
  40819. deprecated="not deprecated">
  40820. <param name="b" type="byte[]"/>
  40821. <param name="off" type="int"/>
  40822. <param name="len" type="int"/>
  40823. <doc>
  40824. <![CDATA[{@inheritDoc}]]>
  40825. </doc>
  40826. </method>
  40827. <method name="update"
  40828. abstract="false" native="false" synchronized="false"
  40829. static="false" final="true" visibility="public"
  40830. deprecated="not deprecated">
  40831. <param name="b" type="int"/>
  40832. <doc>
  40833. <![CDATA[{@inheritDoc}]]>
  40834. </doc>
  40835. </method>
  40836. <doc>
  40837. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  40838. the same polynomial as the built-in native CRC32.
  40839. This is to avoid the JNI overhead for certain uses of Checksumming
  40840. where many small pieces of data are checksummed in succession.
  40841. The current version is ~10x to 1.8x as fast as Sun's native
  40842. java.util.zip.CRC32 in Java 1.6
  40843. @see java.util.zip.CRC32]]>
  40844. </doc>
  40845. </class>
  40846. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  40847. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics -->
  40848. <class name="QueueProcessingStatistics" extends="java.lang.Object"
  40849. abstract="true"
  40850. static="false" final="false" visibility="public"
  40851. deprecated="not deprecated">
  40852. <constructor name="QueueProcessingStatistics" type="java.lang.String, java.lang.String, org.apache.commons.logging.Log"
  40853. static="false" final="false" visibility="public"
  40854. deprecated="not deprecated">
  40855. <doc>
  40856. <![CDATA[@param queueName - Human-readable name of the queue being monitored,
  40857. used as first word in the log messages.
  40858. @param workItemsName - what kind of work items are being managed
  40859. on the queue? A plural word is best here, for logging.
  40860. @param logObject - What log do you want the log messages to be sent to?]]>
  40861. </doc>
  40862. </constructor>
  40863. <method name="startCycle"
  40864. abstract="false" native="false" synchronized="false"
  40865. static="false" final="false" visibility="public"
  40866. deprecated="not deprecated">
  40867. <param name="maxWorkToProcess" type="int"/>
  40868. </method>
  40869. <method name="endCycle"
  40870. abstract="false" native="false" synchronized="false"
  40871. static="false" final="false" visibility="public"
  40872. deprecated="not deprecated">
  40873. <param name="workFound" type="int"/>
  40874. </method>
  40875. <method name="checkRestart"
  40876. abstract="false" native="false" synchronized="false"
  40877. static="false" final="false" visibility="public"
  40878. deprecated="not deprecated">
  40879. </method>
  40880. <method name="preCheckIsLastCycle" return="boolean"
  40881. abstract="true" native="false" synchronized="false"
  40882. static="false" final="false" visibility="public"
  40883. deprecated="not deprecated">
  40884. <param name="maxWorkToProcess" type="int"/>
  40885. <doc>
  40886. <![CDATA[The termination condition is to identify the last cycle that will
  40887. empty the queue. Two abstract APIs are called: {@code preCheckIsLastCycle}
  40888. is called at the beginning of each cycle, and
  40889. {@link #postCheckIsLastCycle} is called at the end of each cycle.
  40890. At least one of them must correctly provide the termination
  40891. condition. The other may always return 'false'. If either of them
  40892. returns 'true' in a given cycle, then at the end of that cycle the
  40893. stats will be output to log, and stats collection will end.
  40894. @param maxWorkToProcess - if this number is greater than the amount
  40895. of work remaining at the start of a cycle, then it will
  40896. be the last cycle.
  40897. @return - true if last cycle detected, else false]]>
  40898. </doc>
  40899. </method>
  40900. <method name="postCheckIsLastCycle" return="boolean"
  40901. abstract="true" native="false" synchronized="false"
  40902. static="false" final="false" visibility="public"
  40903. deprecated="not deprecated">
  40904. <param name="workFound" type="int"/>
  40905. <doc>
  40906. <![CDATA[See {@link #preCheckIsLastCycle}.
  40907. @param workFound - may not be useful
  40908. @return - true if remaining work is zero at end of cycle,
  40909. else false]]>
  40910. </doc>
  40911. </method>
  40912. <doc>
  40913. <![CDATA[Hadoop has several work queues, such as
  40914. {@link org.apache.hadoop.hdfs.server.namenode.FSNamesystem#neededReplications}
  40915. With a properly throttled queue, a worker thread cycles repeatedly,
  40916. doing a chunk of work each cycle then resting a bit, until the queue is
  40917. empty. This class is intended to collect statistics about the behavior of
  40918. such queues and consumers. It reports the amount of work done and
  40919. how long it took, for the first cycle after collection starts, and for
  40920. the total number of cycles needed to flush the queue. We use a state
  40921. machine to detect when the queue has been flushed and then we log the
  40922. stats; see {@link State} for enumeration of the states and their meanings.]]>
  40923. </doc>
  40924. </class>
  40925. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics -->
  40926. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  40927. <class name="QueueProcessingStatistics.State" extends="java.lang.Enum"
  40928. abstract="false"
  40929. static="true" final="true" visibility="public"
  40930. deprecated="not deprecated">
  40931. <method name="values" return="org.apache.hadoop.util.QueueProcessingStatistics.State[]"
  40932. abstract="false" native="false" synchronized="false"
  40933. static="true" final="false" visibility="public"
  40934. deprecated="not deprecated">
  40935. </method>
  40936. <method name="valueOf" return="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40937. abstract="false" native="false" synchronized="false"
  40938. static="true" final="false" visibility="public"
  40939. deprecated="not deprecated">
  40940. <param name="name" type="java.lang.String"/>
  40941. </method>
  40942. <field name="BEGIN_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40943. transient="false" volatile="false"
  40944. static="true" final="true" visibility="public"
  40945. deprecated="not deprecated">
  40946. </field>
  40947. <field name="IN_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40948. transient="false" volatile="false"
  40949. static="true" final="true" visibility="public"
  40950. deprecated="not deprecated">
  40951. </field>
  40952. <field name="IN_SOLE_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40953. transient="false" volatile="false"
  40954. static="true" final="true" visibility="public"
  40955. deprecated="not deprecated">
  40956. </field>
  40957. <field name="DONE_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40958. transient="false" volatile="false"
  40959. static="true" final="true" visibility="public"
  40960. deprecated="not deprecated">
  40961. </field>
  40962. <field name="IN_LAST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40963. transient="false" volatile="false"
  40964. static="true" final="true" visibility="public"
  40965. deprecated="not deprecated">
  40966. </field>
  40967. <field name="DONE_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  40968. transient="false" volatile="false"
  40969. static="true" final="true" visibility="public"
  40970. deprecated="not deprecated">
  40971. </field>
  40972. <doc>
  40973. <![CDATA[This enum provides the "states" of a state machine for
  40974. {@link QueueProcessingStatistics}.
  40975. The meanings of the states are: <ul>
  40976. <li> BEGIN_COLLECTING - Ready to begin.
  40977. <li> IN_FIRST_CYCLE - Started the first cycle.
  40978. <li> IN_SOLE_CYCLE - Still in first cycle, but already know there will be
  40979. no further cycles because this one will complete all
  40980. needed work. When done, will go straight to
  40981. "DONE_COLLECTING".
  40982. <li> DONE_FIRST_CYCLE - Done first cycle, doing subsequent cycles.
  40983. <li> IN_LAST_CYCLE - Started the last cycle.
  40984. <li> DONE_COLLECTING - Done with last cycle, finishing up.
  40985. </ul>]]>
  40986. </doc>
  40987. </class>
  40988. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  40989. <!-- start class org.apache.hadoop.util.QuickSort -->
  40990. <class name="QuickSort" extends="java.lang.Object"
  40991. abstract="false"
  40992. static="false" final="true" visibility="public"
  40993. deprecated="not deprecated">
  40994. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  40995. <constructor name="QuickSort"
  40996. static="false" final="false" visibility="public"
  40997. deprecated="not deprecated">
  40998. </constructor>
  40999. <method name="getMaxDepth" return="int"
  41000. abstract="false" native="false" synchronized="false"
  41001. static="true" final="false" visibility="protected"
  41002. deprecated="not deprecated">
  41003. <param name="x" type="int"/>
  41004. <doc>
  41005. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  41006. Returns 2 * ceil(log(n)).]]>
  41007. </doc>
  41008. </method>
  41009. <method name="sort"
  41010. abstract="false" native="false" synchronized="false"
  41011. static="false" final="false" visibility="public"
  41012. deprecated="not deprecated">
  41013. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41014. <param name="p" type="int"/>
  41015. <param name="r" type="int"/>
  41016. <doc>
  41017. <![CDATA[Sort the given range of items using quick sort.
  41018. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  41019. then switch to {@link HeapSort}.]]>
  41020. </doc>
  41021. </method>
  41022. <method name="sort"
  41023. abstract="false" native="false" synchronized="false"
  41024. static="false" final="false" visibility="public"
  41025. deprecated="not deprecated">
  41026. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41027. <param name="p" type="int"/>
  41028. <param name="r" type="int"/>
  41029. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  41030. <doc>
  41031. <![CDATA[{@inheritDoc}]]>
  41032. </doc>
  41033. </method>
  41034. <doc>
  41035. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  41036. </doc>
  41037. </class>
  41038. <!-- end class org.apache.hadoop.util.QuickSort -->
  41039. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  41040. <class name="ReflectionUtils" extends="java.lang.Object"
  41041. abstract="false"
  41042. static="false" final="false" visibility="public"
  41043. deprecated="not deprecated">
  41044. <constructor name="ReflectionUtils"
  41045. static="false" final="false" visibility="public"
  41046. deprecated="not deprecated">
  41047. </constructor>
  41048. <method name="setConf"
  41049. abstract="false" native="false" synchronized="false"
  41050. static="true" final="false" visibility="public"
  41051. deprecated="not deprecated">
  41052. <param name="theObject" type="java.lang.Object"/>
  41053. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41054. <doc>
  41055. <![CDATA[Check and set 'configuration' if necessary.
  41056. @param theObject object for which to set configuration
  41057. @param conf Configuration]]>
  41058. </doc>
  41059. </method>
  41060. <method name="newInstance" return="java.lang.Object"
  41061. abstract="false" native="false" synchronized="false"
  41062. static="true" final="false" visibility="public"
  41063. deprecated="not deprecated">
  41064. <param name="theClass" type="java.lang.Class"/>
  41065. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41066. <doc>
  41067. <![CDATA[Create an object for the given class and initialize it from conf
  41068. @param theClass class of which an object is created
  41069. @param conf Configuration
  41070. @return a new object]]>
  41071. </doc>
  41072. </method>
  41073. <method name="setContentionTracing"
  41074. abstract="false" native="false" synchronized="false"
  41075. static="true" final="false" visibility="public"
  41076. deprecated="not deprecated">
  41077. <param name="val" type="boolean"/>
  41078. </method>
  41079. <method name="printThreadInfo"
  41080. abstract="false" native="false" synchronized="false"
  41081. static="true" final="false" visibility="public"
  41082. deprecated="not deprecated">
  41083. <param name="stream" type="java.io.PrintWriter"/>
  41084. <param name="title" type="java.lang.String"/>
  41085. <doc>
  41086. <![CDATA[Print all of the thread's information and stack traces.
  41087. @param stream the stream to
  41088. @param title a string title for the stack trace]]>
  41089. </doc>
  41090. </method>
  41091. <method name="logThreadInfo"
  41092. abstract="false" native="false" synchronized="false"
  41093. static="true" final="false" visibility="public"
  41094. deprecated="not deprecated">
  41095. <param name="log" type="org.apache.commons.logging.Log"/>
  41096. <param name="title" type="java.lang.String"/>
  41097. <param name="minInterval" type="long"/>
  41098. <doc>
  41099. <![CDATA[Log the current thread stacks at INFO level.
  41100. @param log the logger that logs the stack trace
  41101. @param title a descriptive title for the call stacks
  41102. @param minInterval the minimum time from the last]]>
  41103. </doc>
  41104. </method>
  41105. <method name="getClass" return="java.lang.Class"
  41106. abstract="false" native="false" synchronized="false"
  41107. static="true" final="false" visibility="public"
  41108. deprecated="not deprecated">
  41109. <param name="o" type="java.lang.Object"/>
  41110. <doc>
  41111. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  41112. @param o object whose correctly-typed <code>Class</code> is to be obtained
  41113. @return the correctly typed <code>Class</code> of the given object.]]>
  41114. </doc>
  41115. </method>
  41116. <method name="copy" return="java.lang.Object"
  41117. abstract="false" native="false" synchronized="false"
  41118. static="true" final="false" visibility="public"
  41119. deprecated="not deprecated">
  41120. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41121. <param name="src" type="java.lang.Object"/>
  41122. <param name="dst" type="java.lang.Object"/>
  41123. <exception name="IOException" type="java.io.IOException"/>
  41124. <doc>
  41125. <![CDATA[Make a copy of the writable object using serialization to a buffer
  41126. @param dst the object to copy from
  41127. @param src the object to copy into, which is destroyed
  41128. @throws IOException]]>
  41129. </doc>
  41130. </method>
  41131. <method name="cloneWritableInto"
  41132. abstract="false" native="false" synchronized="false"
  41133. static="true" final="false" visibility="public"
  41134. deprecated="not deprecated">
  41135. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  41136. <param name="src" type="org.apache.hadoop.io.Writable"/>
  41137. <exception name="IOException" type="java.io.IOException"/>
  41138. </method>
  41139. <doc>
  41140. <![CDATA[General reflection utils]]>
  41141. </doc>
  41142. </class>
  41143. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  41144. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  41145. <class name="ResourceCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  41146. abstract="true"
  41147. static="false" final="false" visibility="public"
  41148. deprecated="not deprecated">
  41149. <constructor name="ResourceCalculatorPlugin"
  41150. static="false" final="false" visibility="public"
  41151. deprecated="not deprecated">
  41152. </constructor>
  41153. <method name="getVirtualMemorySize" return="long"
  41154. abstract="true" native="false" synchronized="false"
  41155. static="false" final="false" visibility="public"
  41156. deprecated="not deprecated">
  41157. <doc>
  41158. <![CDATA[Obtain the total size of the virtual memory present in the system.
  41159. @return virtual memory size in bytes.]]>
  41160. </doc>
  41161. </method>
  41162. <method name="getPhysicalMemorySize" return="long"
  41163. abstract="true" native="false" synchronized="false"
  41164. static="false" final="false" visibility="public"
  41165. deprecated="not deprecated">
  41166. <doc>
  41167. <![CDATA[Obtain the total size of the physical memory present in the system.
  41168. @return physical memory size bytes.]]>
  41169. </doc>
  41170. </method>
  41171. <method name="getAvailableVirtualMemorySize" return="long"
  41172. abstract="true" native="false" synchronized="false"
  41173. static="false" final="false" visibility="public"
  41174. deprecated="not deprecated">
  41175. <doc>
  41176. <![CDATA[Obtain the total size of the available virtual memory present
  41177. in the system.
  41178. @return available virtual memory size in bytes.]]>
  41179. </doc>
  41180. </method>
  41181. <method name="getAvailablePhysicalMemorySize" return="long"
  41182. abstract="true" native="false" synchronized="false"
  41183. static="false" final="false" visibility="public"
  41184. deprecated="not deprecated">
  41185. <doc>
  41186. <![CDATA[Obtain the total size of the available physical memory present
  41187. in the system.
  41188. @return available physical memory size bytes.]]>
  41189. </doc>
  41190. </method>
  41191. <method name="getNumProcessors" return="int"
  41192. abstract="true" native="false" synchronized="false"
  41193. static="false" final="false" visibility="public"
  41194. deprecated="not deprecated">
  41195. <doc>
  41196. <![CDATA[Obtain the total number of processors present on the system.
  41197. @return number of processors]]>
  41198. </doc>
  41199. </method>
  41200. <method name="getCpuFrequency" return="long"
  41201. abstract="true" native="false" synchronized="false"
  41202. static="false" final="false" visibility="public"
  41203. deprecated="not deprecated">
  41204. <doc>
  41205. <![CDATA[Obtain the CPU frequency of on the system.
  41206. @return CPU frequency in kHz]]>
  41207. </doc>
  41208. </method>
  41209. <method name="getCumulativeCpuTime" return="long"
  41210. abstract="true" native="false" synchronized="false"
  41211. static="false" final="false" visibility="public"
  41212. deprecated="not deprecated">
  41213. <doc>
  41214. <![CDATA[Obtain the cumulative CPU time since the system is on.
  41215. @return cumulative CPU time in milliseconds]]>
  41216. </doc>
  41217. </method>
  41218. <method name="getCpuUsage" return="float"
  41219. abstract="true" native="false" synchronized="false"
  41220. static="false" final="false" visibility="public"
  41221. deprecated="not deprecated">
  41222. <doc>
  41223. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  41224. @return CPU usage in %]]>
  41225. </doc>
  41226. </method>
  41227. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  41228. abstract="true" native="false" synchronized="false"
  41229. static="false" final="false" visibility="public"
  41230. deprecated="not deprecated">
  41231. <doc>
  41232. <![CDATA[Obtain resource status used by current process tree.]]>
  41233. </doc>
  41234. </method>
  41235. <method name="getResourceCalculatorPlugin" return="org.apache.hadoop.util.ResourceCalculatorPlugin"
  41236. abstract="false" native="false" synchronized="false"
  41237. static="true" final="false" visibility="public"
  41238. deprecated="not deprecated">
  41239. <param name="clazz" type="java.lang.Class"/>
  41240. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41241. <doc>
  41242. <![CDATA[Get the ResourceCalculatorPlugin from the class name and configure it. If
  41243. class name is null, this method will try and return a memory calculator
  41244. plugin available for this system.
  41245. @param clazz class-name
  41246. @param conf configure the plugin with this.
  41247. @return ResourceCalculatorPlugin]]>
  41248. </doc>
  41249. </method>
  41250. <doc>
  41251. <![CDATA[Plugin to calculate resource information on the system.]]>
  41252. </doc>
  41253. </class>
  41254. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  41255. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  41256. <class name="ResourceCalculatorPlugin.ProcResourceValues" extends="java.lang.Object"
  41257. abstract="false"
  41258. static="true" final="false" visibility="public"
  41259. deprecated="not deprecated">
  41260. <constructor name="ResourceCalculatorPlugin.ProcResourceValues" type="long, long, long"
  41261. static="false" final="false" visibility="public"
  41262. deprecated="not deprecated">
  41263. </constructor>
  41264. <method name="getPhysicalMemorySize" return="long"
  41265. abstract="false" native="false" synchronized="false"
  41266. static="false" final="false" visibility="public"
  41267. deprecated="not deprecated">
  41268. <doc>
  41269. <![CDATA[Obtain the physical memory size used by current process tree.
  41270. @return physical memory size in bytes.]]>
  41271. </doc>
  41272. </method>
  41273. <method name="getVirtualMemorySize" return="long"
  41274. abstract="false" native="false" synchronized="false"
  41275. static="false" final="false" visibility="public"
  41276. deprecated="not deprecated">
  41277. <doc>
  41278. <![CDATA[Obtain the virtual memory size used by a current process tree.
  41279. @return virtual memory size in bytes.]]>
  41280. </doc>
  41281. </method>
  41282. <method name="getCumulativeCpuTime" return="long"
  41283. abstract="false" native="false" synchronized="false"
  41284. static="false" final="false" visibility="public"
  41285. deprecated="not deprecated">
  41286. <doc>
  41287. <![CDATA[Obtain the cumulative CPU time used by a current process tree.
  41288. @return cumulative CPU time in milliseconds]]>
  41289. </doc>
  41290. </method>
  41291. </class>
  41292. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  41293. <!-- start class org.apache.hadoop.util.RunJar -->
  41294. <class name="RunJar" extends="java.lang.Object"
  41295. abstract="false"
  41296. static="false" final="false" visibility="public"
  41297. deprecated="not deprecated">
  41298. <constructor name="RunJar"
  41299. static="false" final="false" visibility="public"
  41300. deprecated="not deprecated">
  41301. </constructor>
  41302. <method name="unJar"
  41303. abstract="false" native="false" synchronized="false"
  41304. static="true" final="false" visibility="public"
  41305. deprecated="not deprecated">
  41306. <param name="jarFile" type="java.io.File"/>
  41307. <param name="toDir" type="java.io.File"/>
  41308. <exception name="IOException" type="java.io.IOException"/>
  41309. <doc>
  41310. <![CDATA[Unpack a jar file into a directory.]]>
  41311. </doc>
  41312. </method>
  41313. <method name="main"
  41314. abstract="false" native="false" synchronized="false"
  41315. static="true" final="false" visibility="public"
  41316. deprecated="not deprecated">
  41317. <param name="args" type="java.lang.String[]"/>
  41318. <exception name="Throwable" type="java.lang.Throwable"/>
  41319. <doc>
  41320. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  41321. then it must be provided on the command line.]]>
  41322. </doc>
  41323. </method>
  41324. <doc>
  41325. <![CDATA[Run a Hadoop job jar.]]>
  41326. </doc>
  41327. </class>
  41328. <!-- end class org.apache.hadoop.util.RunJar -->
  41329. <!-- start class org.apache.hadoop.util.ServletUtil -->
  41330. <class name="ServletUtil" extends="java.lang.Object"
  41331. abstract="false"
  41332. static="false" final="false" visibility="public"
  41333. deprecated="not deprecated">
  41334. <constructor name="ServletUtil"
  41335. static="false" final="false" visibility="public"
  41336. deprecated="not deprecated">
  41337. </constructor>
  41338. <method name="initHTML" return="java.io.PrintWriter"
  41339. abstract="false" native="false" synchronized="false"
  41340. static="true" final="false" visibility="public"
  41341. deprecated="not deprecated">
  41342. <param name="response" type="javax.servlet.ServletResponse"/>
  41343. <param name="title" type="java.lang.String"/>
  41344. <exception name="IOException" type="java.io.IOException"/>
  41345. <doc>
  41346. <![CDATA[Initial HTML header]]>
  41347. </doc>
  41348. </method>
  41349. <method name="getParameter" return="java.lang.String"
  41350. abstract="false" native="false" synchronized="false"
  41351. static="true" final="false" visibility="public"
  41352. deprecated="not deprecated">
  41353. <param name="request" type="javax.servlet.ServletRequest"/>
  41354. <param name="name" type="java.lang.String"/>
  41355. <doc>
  41356. <![CDATA[Get a parameter from a ServletRequest.
  41357. Return null if the parameter contains only white spaces.]]>
  41358. </doc>
  41359. </method>
  41360. <method name="htmlFooter" return="java.lang.String"
  41361. abstract="false" native="false" synchronized="false"
  41362. static="true" final="false" visibility="public"
  41363. deprecated="not deprecated">
  41364. <doc>
  41365. <![CDATA[HTML footer to be added in the jsps.
  41366. @return the HTML footer.]]>
  41367. </doc>
  41368. </method>
  41369. <method name="percentageGraph" return="java.lang.String"
  41370. abstract="false" native="false" synchronized="false"
  41371. static="true" final="false" visibility="public"
  41372. deprecated="not deprecated">
  41373. <param name="perc" type="int"/>
  41374. <param name="width" type="int"/>
  41375. <exception name="IOException" type="java.io.IOException"/>
  41376. <doc>
  41377. <![CDATA[Generate the percentage graph and returns HTML representation string
  41378. of the same.
  41379. @param perc The percentage value for which graph is to be generated
  41380. @param width The width of the display table
  41381. @return HTML String representation of the percentage graph
  41382. @throws IOException]]>
  41383. </doc>
  41384. </method>
  41385. <method name="percentageGraph" return="java.lang.String"
  41386. abstract="false" native="false" synchronized="false"
  41387. static="true" final="false" visibility="public"
  41388. deprecated="not deprecated">
  41389. <param name="perc" type="float"/>
  41390. <param name="width" type="int"/>
  41391. <exception name="IOException" type="java.io.IOException"/>
  41392. <doc>
  41393. <![CDATA[Generate the percentage graph and returns HTML representation string
  41394. of the same.
  41395. @param perc The percentage value for which graph is to be generated
  41396. @param width The width of the display table
  41397. @return HTML String representation of the percentage graph
  41398. @throws IOException]]>
  41399. </doc>
  41400. </method>
  41401. <field name="HTML_TAIL" type="java.lang.String"
  41402. transient="false" volatile="false"
  41403. static="true" final="true" visibility="public"
  41404. deprecated="not deprecated">
  41405. </field>
  41406. </class>
  41407. <!-- end class org.apache.hadoop.util.ServletUtil -->
  41408. <!-- start class org.apache.hadoop.util.Shell -->
  41409. <class name="Shell" extends="java.lang.Object"
  41410. abstract="true"
  41411. static="false" final="false" visibility="public"
  41412. deprecated="not deprecated">
  41413. <constructor name="Shell"
  41414. static="false" final="false" visibility="public"
  41415. deprecated="not deprecated">
  41416. </constructor>
  41417. <constructor name="Shell" type="long"
  41418. static="false" final="false" visibility="public"
  41419. deprecated="not deprecated">
  41420. <doc>
  41421. <![CDATA[@param interval the minimum duration to wait before re-executing the
  41422. command.]]>
  41423. </doc>
  41424. </constructor>
  41425. <method name="getGroupsCommand" return="java.lang.String[]"
  41426. abstract="false" native="false" synchronized="false"
  41427. static="true" final="false" visibility="public"
  41428. deprecated="not deprecated">
  41429. <doc>
  41430. <![CDATA[a Unix command to get the current user's groups list]]>
  41431. </doc>
  41432. </method>
  41433. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  41434. abstract="false" native="false" synchronized="false"
  41435. static="true" final="false" visibility="public"
  41436. deprecated="not deprecated">
  41437. <param name="user" type="java.lang.String"/>
  41438. <doc>
  41439. <![CDATA[a Unix command to get a given user's groups list]]>
  41440. </doc>
  41441. </method>
  41442. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  41443. abstract="false" native="false" synchronized="false"
  41444. static="true" final="false" visibility="public"
  41445. deprecated="not deprecated">
  41446. <param name="netgroup" type="java.lang.String"/>
  41447. <doc>
  41448. <![CDATA[a Unix command to get a given netgroup's user list]]>
  41449. </doc>
  41450. </method>
  41451. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  41452. abstract="false" native="false" synchronized="false"
  41453. static="true" final="false" visibility="public"
  41454. deprecated="not deprecated">
  41455. <doc>
  41456. <![CDATA[Return a Unix command to get permission information.]]>
  41457. </doc>
  41458. </method>
  41459. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  41460. abstract="false" native="false" synchronized="false"
  41461. static="true" final="false" visibility="public"
  41462. deprecated="not deprecated">
  41463. <param name="memoryLimit" type="int"/>
  41464. <doc>
  41465. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  41466. to a given child process. This is only relevant when we are forking a
  41467. process from within the Mapper or the Reducer implementations.
  41468. Also see Hadoop Pipes and Hadoop Streaming.
  41469. It also checks to ensure that we are running on a *nix platform else
  41470. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  41471. @param memoryLimit virtual memory limit
  41472. @return a <code>String[]</code> with the ulimit command arguments or
  41473. <code>null</code> if we are running on a non *nix platform or
  41474. if the limit is unspecified.]]>
  41475. </doc>
  41476. </method>
  41477. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  41478. abstract="false" native="false" synchronized="false"
  41479. static="true" final="false" visibility="public"
  41480. deprecated="Use {@link #getUlimitMemoryCommand(int)}">
  41481. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41482. <doc>
  41483. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  41484. to a given child process. This is only relevant when we are forking a
  41485. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  41486. {@link org.apache.hadoop.mapred.Reducer} implementations
  41487. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  41488. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  41489. It also checks to ensure that we are running on a *nix platform else
  41490. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  41491. @param conf configuration
  41492. @return a <code>String[]</code> with the ulimit command arguments or
  41493. <code>null</code> if we are running on a non *nix platform or
  41494. if the limit is unspecified.
  41495. @deprecated Use {@link #getUlimitMemoryCommand(int)}]]>
  41496. </doc>
  41497. </method>
  41498. <method name="setEnvironment"
  41499. abstract="false" native="false" synchronized="false"
  41500. static="false" final="false" visibility="protected"
  41501. deprecated="not deprecated">
  41502. <param name="env" type="java.util.Map"/>
  41503. <doc>
  41504. <![CDATA[set the environment for the command
  41505. @param env Mapping of environment variables]]>
  41506. </doc>
  41507. </method>
  41508. <method name="setWorkingDirectory"
  41509. abstract="false" native="false" synchronized="false"
  41510. static="false" final="false" visibility="protected"
  41511. deprecated="not deprecated">
  41512. <param name="dir" type="java.io.File"/>
  41513. <doc>
  41514. <![CDATA[set the working directory
  41515. @param dir The directory where the command would be executed]]>
  41516. </doc>
  41517. </method>
  41518. <method name="run"
  41519. abstract="false" native="false" synchronized="false"
  41520. static="false" final="false" visibility="protected"
  41521. deprecated="not deprecated">
  41522. <exception name="IOException" type="java.io.IOException"/>
  41523. <doc>
  41524. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  41525. </doc>
  41526. </method>
  41527. <method name="getExecString" return="java.lang.String[]"
  41528. abstract="true" native="false" synchronized="false"
  41529. static="false" final="false" visibility="protected"
  41530. deprecated="not deprecated">
  41531. <doc>
  41532. <![CDATA[return an array containing the command name & its parameters]]>
  41533. </doc>
  41534. </method>
  41535. <method name="parseExecResult"
  41536. abstract="true" native="false" synchronized="false"
  41537. static="false" final="false" visibility="protected"
  41538. deprecated="not deprecated">
  41539. <param name="lines" type="java.io.BufferedReader"/>
  41540. <exception name="IOException" type="java.io.IOException"/>
  41541. <doc>
  41542. <![CDATA[Parse the execution result]]>
  41543. </doc>
  41544. </method>
  41545. <method name="getProcess" return="java.lang.Process"
  41546. abstract="false" native="false" synchronized="false"
  41547. static="false" final="false" visibility="public"
  41548. deprecated="not deprecated">
  41549. <doc>
  41550. <![CDATA[get the current sub-process executing the given command
  41551. @return process executing the command]]>
  41552. </doc>
  41553. </method>
  41554. <method name="getExitCode" return="int"
  41555. abstract="false" native="false" synchronized="false"
  41556. static="false" final="false" visibility="public"
  41557. deprecated="not deprecated">
  41558. <doc>
  41559. <![CDATA[get the exit code
  41560. @return the exit code of the process]]>
  41561. </doc>
  41562. </method>
  41563. <method name="isTimedOut" return="boolean"
  41564. abstract="false" native="false" synchronized="false"
  41565. static="false" final="false" visibility="public"
  41566. deprecated="not deprecated">
  41567. <doc>
  41568. <![CDATA[To check if the passed script to shell command executor timed out or
  41569. not.
  41570. @return if the script timed out.]]>
  41571. </doc>
  41572. </method>
  41573. <method name="execCommand" return="java.lang.String"
  41574. abstract="false" native="false" synchronized="false"
  41575. static="true" final="false" visibility="public"
  41576. deprecated="not deprecated">
  41577. <param name="cmd" type="java.lang.String[]"/>
  41578. <exception name="IOException" type="java.io.IOException"/>
  41579. <doc>
  41580. <![CDATA[Static method to execute a shell command.
  41581. Covers most of the simple cases without requiring the user to implement
  41582. the <code>Shell</code> interface.
  41583. @param cmd shell command to execute.
  41584. @return the output of the executed command.]]>
  41585. </doc>
  41586. </method>
  41587. <method name="execCommand" return="java.lang.String"
  41588. abstract="false" native="false" synchronized="false"
  41589. static="true" final="false" visibility="public"
  41590. deprecated="not deprecated">
  41591. <param name="env" type="java.util.Map"/>
  41592. <param name="cmd" type="java.lang.String[]"/>
  41593. <param name="timeout" type="long"/>
  41594. <exception name="IOException" type="java.io.IOException"/>
  41595. <doc>
  41596. <![CDATA[Static method to execute a shell command.
  41597. Covers most of the simple cases without requiring the user to implement
  41598. the <code>Shell</code> interface.
  41599. @param env the map of environment key=value
  41600. @param cmd shell command to execute.
  41601. @param timeout time in milliseconds after which script should be marked timeout
  41602. @return the output of the executed command.o]]>
  41603. </doc>
  41604. </method>
  41605. <method name="execCommand" return="java.lang.String"
  41606. abstract="false" native="false" synchronized="false"
  41607. static="true" final="false" visibility="public"
  41608. deprecated="not deprecated">
  41609. <param name="env" type="java.util.Map"/>
  41610. <param name="cmd" type="java.lang.String[]"/>
  41611. <exception name="IOException" type="java.io.IOException"/>
  41612. <doc>
  41613. <![CDATA[Static method to execute a shell command.
  41614. Covers most of the simple cases without requiring the user to implement
  41615. the <code>Shell</code> interface.
  41616. @param env the map of environment key=value
  41617. @param cmd shell command to execute.
  41618. @return the output of the executed command.]]>
  41619. </doc>
  41620. </method>
  41621. <field name="LOG" type="org.apache.commons.logging.Log"
  41622. transient="false" volatile="false"
  41623. static="true" final="true" visibility="public"
  41624. deprecated="not deprecated">
  41625. </field>
  41626. <field name="USER_NAME_COMMAND" type="java.lang.String"
  41627. transient="false" volatile="false"
  41628. static="true" final="true" visibility="public"
  41629. deprecated="not deprecated">
  41630. <doc>
  41631. <![CDATA[a Unix command to get the current user's name]]>
  41632. </doc>
  41633. </field>
  41634. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  41635. transient="false" volatile="false"
  41636. static="true" final="true" visibility="public"
  41637. deprecated="not deprecated">
  41638. <doc>
  41639. <![CDATA[a Unix command to set permission]]>
  41640. </doc>
  41641. </field>
  41642. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  41643. transient="false" volatile="false"
  41644. static="true" final="true" visibility="public"
  41645. deprecated="not deprecated">
  41646. <doc>
  41647. <![CDATA[a Unix command to set owner]]>
  41648. </doc>
  41649. </field>
  41650. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  41651. transient="false" volatile="false"
  41652. static="true" final="true" visibility="public"
  41653. deprecated="not deprecated">
  41654. </field>
  41655. <field name="timeOutInterval" type="long"
  41656. transient="false" volatile="false"
  41657. static="false" final="false" visibility="protected"
  41658. deprecated="not deprecated">
  41659. <doc>
  41660. <![CDATA[Time after which the executing script would be timedout]]>
  41661. </doc>
  41662. </field>
  41663. <field name="ULIMIT_COMMAND" type="java.lang.String"
  41664. transient="false" volatile="false"
  41665. static="true" final="true" visibility="public"
  41666. deprecated="not deprecated">
  41667. <doc>
  41668. <![CDATA[a Unix command to get ulimit of a process.]]>
  41669. </doc>
  41670. </field>
  41671. <field name="WINDOWS" type="boolean"
  41672. transient="false" volatile="false"
  41673. static="true" final="true" visibility="public"
  41674. deprecated="not deprecated">
  41675. <doc>
  41676. <![CDATA[Set to true on Windows platforms]]>
  41677. </doc>
  41678. </field>
  41679. <doc>
  41680. <![CDATA[A base class for running a Unix command.
  41681. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  41682. <code>df</code>. It also offers facilities to gate commands by
  41683. time-intervals.]]>
  41684. </doc>
  41685. </class>
  41686. <!-- end class org.apache.hadoop.util.Shell -->
  41687. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  41688. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  41689. abstract="false"
  41690. static="true" final="false" visibility="public"
  41691. deprecated="not deprecated">
  41692. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  41693. static="false" final="false" visibility="public"
  41694. deprecated="not deprecated">
  41695. </constructor>
  41696. <method name="getExitCode" return="int"
  41697. abstract="false" native="false" synchronized="false"
  41698. static="false" final="false" visibility="public"
  41699. deprecated="not deprecated">
  41700. </method>
  41701. <doc>
  41702. <![CDATA[This is an IOException with exit code added.]]>
  41703. </doc>
  41704. </class>
  41705. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  41706. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  41707. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  41708. abstract="false"
  41709. static="true" final="false" visibility="public"
  41710. deprecated="not deprecated">
  41711. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  41712. static="false" final="false" visibility="public"
  41713. deprecated="not deprecated">
  41714. </constructor>
  41715. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  41716. static="false" final="false" visibility="public"
  41717. deprecated="not deprecated">
  41718. </constructor>
  41719. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  41720. static="false" final="false" visibility="public"
  41721. deprecated="not deprecated">
  41722. </constructor>
  41723. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  41724. static="false" final="false" visibility="public"
  41725. deprecated="not deprecated">
  41726. <doc>
  41727. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  41728. @param execString The command to execute with arguments
  41729. @param dir If not-null, specifies the directory which should be set
  41730. as the current working directory for the command.
  41731. If null, the current working directory is not modified.
  41732. @param env If not-null, environment of the command will include the
  41733. key-value pairs specified in the map. If null, the current
  41734. environment is not modified.
  41735. @param timeout Specifies the time in milliseconds, after which the
  41736. command will be killed and the status marked as timedout.
  41737. If 0, the command will not be timed out.]]>
  41738. </doc>
  41739. </constructor>
  41740. <method name="execute"
  41741. abstract="false" native="false" synchronized="false"
  41742. static="false" final="false" visibility="public"
  41743. deprecated="not deprecated">
  41744. <exception name="IOException" type="java.io.IOException"/>
  41745. <doc>
  41746. <![CDATA[Execute the shell command.]]>
  41747. </doc>
  41748. </method>
  41749. <method name="getExecString" return="java.lang.String[]"
  41750. abstract="false" native="false" synchronized="false"
  41751. static="false" final="false" visibility="protected"
  41752. deprecated="not deprecated">
  41753. </method>
  41754. <method name="parseExecResult"
  41755. abstract="false" native="false" synchronized="false"
  41756. static="false" final="false" visibility="protected"
  41757. deprecated="not deprecated">
  41758. <param name="lines" type="java.io.BufferedReader"/>
  41759. <exception name="IOException" type="java.io.IOException"/>
  41760. </method>
  41761. <method name="getOutput" return="java.lang.String"
  41762. abstract="false" native="false" synchronized="false"
  41763. static="false" final="false" visibility="public"
  41764. deprecated="not deprecated">
  41765. <doc>
  41766. <![CDATA[Get the output of the shell command.]]>
  41767. </doc>
  41768. </method>
  41769. <method name="toString" return="java.lang.String"
  41770. abstract="false" native="false" synchronized="false"
  41771. static="false" final="false" visibility="public"
  41772. deprecated="not deprecated">
  41773. <doc>
  41774. <![CDATA[Returns the commands of this instance.
  41775. Arguments with spaces in are presented with quotes round; other
  41776. arguments are presented raw
  41777. @return a string representation of the object.]]>
  41778. </doc>
  41779. </method>
  41780. <doc>
  41781. <![CDATA[A simple shell command executor.
  41782. <code>ShellCommandExecutor</code>should be used in cases where the output
  41783. of the command needs no explicit parsing and where the command, working
  41784. directory and the environment remains unchanged. The output of the command
  41785. is stored as-is and is expected to be small.]]>
  41786. </doc>
  41787. </class>
  41788. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  41789. <!-- start class org.apache.hadoop.util.StringUtils -->
  41790. <class name="StringUtils" extends="java.lang.Object"
  41791. abstract="false"
  41792. static="false" final="false" visibility="public"
  41793. deprecated="not deprecated">
  41794. <constructor name="StringUtils"
  41795. static="false" final="false" visibility="public"
  41796. deprecated="not deprecated">
  41797. </constructor>
  41798. <method name="stringifyException" return="java.lang.String"
  41799. abstract="false" native="false" synchronized="false"
  41800. static="true" final="false" visibility="public"
  41801. deprecated="not deprecated">
  41802. <param name="e" type="java.lang.Throwable"/>
  41803. <doc>
  41804. <![CDATA[Make a string representation of the exception.
  41805. @param e The exception to stringify
  41806. @return A string with exception name and call stack.]]>
  41807. </doc>
  41808. </method>
  41809. <method name="simpleHostname" return="java.lang.String"
  41810. abstract="false" native="false" synchronized="false"
  41811. static="true" final="false" visibility="public"
  41812. deprecated="not deprecated">
  41813. <param name="fullHostname" type="java.lang.String"/>
  41814. <doc>
  41815. <![CDATA[Given a full hostname, return the word upto the first dot.
  41816. @param fullHostname the full hostname
  41817. @return the hostname to the first dot]]>
  41818. </doc>
  41819. </method>
  41820. <method name="humanReadableInt" return="java.lang.String"
  41821. abstract="false" native="false" synchronized="false"
  41822. static="true" final="false" visibility="public"
  41823. deprecated="not deprecated">
  41824. <param name="number" type="long"/>
  41825. <doc>
  41826. <![CDATA[Given an integer, return a string that is in an approximate, but human
  41827. readable format.
  41828. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  41829. @param number the number to format
  41830. @return a human readable form of the integer]]>
  41831. </doc>
  41832. </method>
  41833. <method name="formatPercent" return="java.lang.String"
  41834. abstract="false" native="false" synchronized="false"
  41835. static="true" final="false" visibility="public"
  41836. deprecated="not deprecated">
  41837. <param name="done" type="double"/>
  41838. <param name="digits" type="int"/>
  41839. <doc>
  41840. <![CDATA[Format a percentage for presentation to the user.
  41841. @param done the percentage to format (0.0 to 1.0)
  41842. @param digits the number of digits past the decimal point
  41843. @return a string representation of the percentage]]>
  41844. </doc>
  41845. </method>
  41846. <method name="arrayToString" return="java.lang.String"
  41847. abstract="false" native="false" synchronized="false"
  41848. static="true" final="false" visibility="public"
  41849. deprecated="not deprecated">
  41850. <param name="strs" type="java.lang.String[]"/>
  41851. <doc>
  41852. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  41853. @param strs Array of strings
  41854. @return Empty string if strs.length is 0, comma separated list of strings
  41855. otherwise]]>
  41856. </doc>
  41857. </method>
  41858. <method name="byteToHexString" return="java.lang.String"
  41859. abstract="false" native="false" synchronized="false"
  41860. static="true" final="false" visibility="public"
  41861. deprecated="not deprecated">
  41862. <param name="bytes" type="byte[]"/>
  41863. <param name="start" type="int"/>
  41864. <param name="end" type="int"/>
  41865. <doc>
  41866. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  41867. representation of the bytes
  41868. @param bytes
  41869. @param start start index, inclusively
  41870. @param end end index, exclusively
  41871. @return hex string representation of the byte array]]>
  41872. </doc>
  41873. </method>
  41874. <method name="byteToHexString" return="java.lang.String"
  41875. abstract="false" native="false" synchronized="false"
  41876. static="true" final="false" visibility="public"
  41877. deprecated="not deprecated">
  41878. <param name="bytes" type="byte[]"/>
  41879. <doc>
  41880. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  41881. </doc>
  41882. </method>
  41883. <method name="hexStringToByte" return="byte[]"
  41884. abstract="false" native="false" synchronized="false"
  41885. static="true" final="false" visibility="public"
  41886. deprecated="not deprecated">
  41887. <param name="hex" type="java.lang.String"/>
  41888. <doc>
  41889. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  41890. string
  41891. @param hex the hex String array
  41892. @return a byte array that is a hex string representation of the given
  41893. string. The size of the byte array is therefore hex.length/2]]>
  41894. </doc>
  41895. </method>
  41896. <method name="uriToString" return="java.lang.String"
  41897. abstract="false" native="false" synchronized="false"
  41898. static="true" final="false" visibility="public"
  41899. deprecated="not deprecated">
  41900. <param name="uris" type="java.net.URI[]"/>
  41901. <doc>
  41902. <![CDATA[@param uris]]>
  41903. </doc>
  41904. </method>
  41905. <method name="stringToURI" return="java.net.URI[]"
  41906. abstract="false" native="false" synchronized="false"
  41907. static="true" final="false" visibility="public"
  41908. deprecated="not deprecated">
  41909. <param name="str" type="java.lang.String[]"/>
  41910. <doc>
  41911. <![CDATA[@param str]]>
  41912. </doc>
  41913. </method>
  41914. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  41915. abstract="false" native="false" synchronized="false"
  41916. static="true" final="false" visibility="public"
  41917. deprecated="not deprecated">
  41918. <param name="str" type="java.lang.String[]"/>
  41919. <doc>
  41920. <![CDATA[@param str]]>
  41921. </doc>
  41922. </method>
  41923. <method name="formatTimeDiff" return="java.lang.String"
  41924. abstract="false" native="false" synchronized="false"
  41925. static="true" final="false" visibility="public"
  41926. deprecated="not deprecated">
  41927. <param name="finishTime" type="long"/>
  41928. <param name="startTime" type="long"/>
  41929. <doc>
  41930. <![CDATA[Given a finish and start time in long milliseconds, returns a
  41931. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  41932. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  41933. @param finishTime finish time
  41934. @param startTime start time]]>
  41935. </doc>
  41936. </method>
  41937. <method name="formatTime" return="java.lang.String"
  41938. abstract="false" native="false" synchronized="false"
  41939. static="true" final="false" visibility="public"
  41940. deprecated="not deprecated">
  41941. <param name="timeDiff" type="long"/>
  41942. <doc>
  41943. <![CDATA[Given the time in long milliseconds, returns a
  41944. String in the format Xhrs, Ymins, Z sec.
  41945. @param timeDiff The time difference to format]]>
  41946. </doc>
  41947. </method>
  41948. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  41949. abstract="false" native="false" synchronized="false"
  41950. static="true" final="false" visibility="public"
  41951. deprecated="not deprecated">
  41952. <param name="dateFormat" type="java.text.DateFormat"/>
  41953. <param name="finishTime" type="long"/>
  41954. <param name="startTime" type="long"/>
  41955. <doc>
  41956. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  41957. as returned by formatTimeDiff().
  41958. If finish time is 0, empty string is returned, if start time is 0
  41959. then difference is not appended to return value.
  41960. @param dateFormat date format to use
  41961. @param finishTime fnish time
  41962. @param startTime start time
  41963. @return formatted value.]]>
  41964. </doc>
  41965. </method>
  41966. <method name="getStrings" return="java.lang.String[]"
  41967. abstract="false" native="false" synchronized="false"
  41968. static="true" final="false" visibility="public"
  41969. deprecated="not deprecated">
  41970. <param name="str" type="java.lang.String"/>
  41971. <doc>
  41972. <![CDATA[Returns an arraylist of strings.
  41973. @param str the comma seperated string values
  41974. @return the arraylist of the comma seperated string values]]>
  41975. </doc>
  41976. </method>
  41977. <method name="getStringCollection" return="java.util.Collection"
  41978. abstract="false" native="false" synchronized="false"
  41979. static="true" final="false" visibility="public"
  41980. deprecated="not deprecated">
  41981. <param name="str" type="java.lang.String"/>
  41982. <doc>
  41983. <![CDATA[Returns a collection of strings.
  41984. @param str comma seperated string values
  41985. @return an <code>ArrayList</code> of string values]]>
  41986. </doc>
  41987. </method>
  41988. <method name="split" return="java.lang.String[]"
  41989. abstract="false" native="false" synchronized="false"
  41990. static="true" final="false" visibility="public"
  41991. deprecated="not deprecated">
  41992. <param name="str" type="java.lang.String"/>
  41993. <doc>
  41994. <![CDATA[Split a string using the default separator
  41995. @param str a string that may have escaped separator
  41996. @return an array of strings]]>
  41997. </doc>
  41998. </method>
  41999. <method name="split" return="java.lang.String[]"
  42000. abstract="false" native="false" synchronized="false"
  42001. static="true" final="false" visibility="public"
  42002. deprecated="not deprecated">
  42003. <param name="str" type="java.lang.String"/>
  42004. <param name="escapeChar" type="char"/>
  42005. <param name="separator" type="char"/>
  42006. <doc>
  42007. <![CDATA[Split a string using the given separator
  42008. @param str a string that may have escaped separator
  42009. @param escapeChar a char that be used to escape the separator
  42010. @param separator a separator char
  42011. @return an array of strings]]>
  42012. </doc>
  42013. </method>
  42014. <method name="findNext" return="int"
  42015. abstract="false" native="false" synchronized="false"
  42016. static="true" final="false" visibility="public"
  42017. deprecated="not deprecated">
  42018. <param name="str" type="java.lang.String"/>
  42019. <param name="separator" type="char"/>
  42020. <param name="escapeChar" type="char"/>
  42021. <param name="start" type="int"/>
  42022. <param name="split" type="java.lang.StringBuilder"/>
  42023. <doc>
  42024. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  42025. separators starting from the index. Note the substring between the index
  42026. and the position of the separator is passed.
  42027. @param str the source string
  42028. @param separator the character to find
  42029. @param escapeChar character used to escape
  42030. @param start from where to search
  42031. @param split used to pass back the extracted string]]>
  42032. </doc>
  42033. </method>
  42034. <method name="escapeString" return="java.lang.String"
  42035. abstract="false" native="false" synchronized="false"
  42036. static="true" final="false" visibility="public"
  42037. deprecated="not deprecated">
  42038. <param name="str" type="java.lang.String"/>
  42039. <doc>
  42040. <![CDATA[Escape commas in the string using the default escape char
  42041. @param str a string
  42042. @return an escaped string]]>
  42043. </doc>
  42044. </method>
  42045. <method name="escapeString" return="java.lang.String"
  42046. abstract="false" native="false" synchronized="false"
  42047. static="true" final="false" visibility="public"
  42048. deprecated="not deprecated">
  42049. <param name="str" type="java.lang.String"/>
  42050. <param name="escapeChar" type="char"/>
  42051. <param name="charToEscape" type="char"/>
  42052. <doc>
  42053. <![CDATA[Escape <code>charToEscape</code> in the string
  42054. with the escape char <code>escapeChar</code>
  42055. @param str string
  42056. @param escapeChar escape char
  42057. @param charToEscape the char to be escaped
  42058. @return an escaped string]]>
  42059. </doc>
  42060. </method>
  42061. <method name="escapeString" return="java.lang.String"
  42062. abstract="false" native="false" synchronized="false"
  42063. static="true" final="false" visibility="public"
  42064. deprecated="not deprecated">
  42065. <param name="str" type="java.lang.String"/>
  42066. <param name="escapeChar" type="char"/>
  42067. <param name="charsToEscape" type="char[]"/>
  42068. <doc>
  42069. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  42070. </doc>
  42071. </method>
  42072. <method name="unEscapeString" return="java.lang.String"
  42073. abstract="false" native="false" synchronized="false"
  42074. static="true" final="false" visibility="public"
  42075. deprecated="not deprecated">
  42076. <param name="str" type="java.lang.String"/>
  42077. <doc>
  42078. <![CDATA[Unescape commas in the string using the default escape char
  42079. @param str a string
  42080. @return an unescaped string]]>
  42081. </doc>
  42082. </method>
  42083. <method name="unEscapeString" return="java.lang.String"
  42084. abstract="false" native="false" synchronized="false"
  42085. static="true" final="false" visibility="public"
  42086. deprecated="not deprecated">
  42087. <param name="str" type="java.lang.String"/>
  42088. <param name="escapeChar" type="char"/>
  42089. <param name="charToEscape" type="char"/>
  42090. <doc>
  42091. <![CDATA[Unescape <code>charToEscape</code> in the string
  42092. with the escape char <code>escapeChar</code>
  42093. @param str string
  42094. @param escapeChar escape char
  42095. @param charToEscape the escaped char
  42096. @return an unescaped string]]>
  42097. </doc>
  42098. </method>
  42099. <method name="unEscapeString" return="java.lang.String"
  42100. abstract="false" native="false" synchronized="false"
  42101. static="true" final="false" visibility="public"
  42102. deprecated="not deprecated">
  42103. <param name="str" type="java.lang.String"/>
  42104. <param name="escapeChar" type="char"/>
  42105. <param name="charsToEscape" type="char[]"/>
  42106. <doc>
  42107. <![CDATA[@param charsToEscape array of characters to unescape]]>
  42108. </doc>
  42109. </method>
  42110. <method name="getHostname" return="java.lang.String"
  42111. abstract="false" native="false" synchronized="false"
  42112. static="true" final="false" visibility="public"
  42113. deprecated="not deprecated">
  42114. <doc>
  42115. <![CDATA[Return hostname without throwing exception.
  42116. @return hostname]]>
  42117. </doc>
  42118. </method>
  42119. <method name="startupShutdownMessage"
  42120. abstract="false" native="false" synchronized="false"
  42121. static="true" final="false" visibility="public"
  42122. deprecated="not deprecated">
  42123. <param name="clazz" type="java.lang.Class"/>
  42124. <param name="args" type="java.lang.String[]"/>
  42125. <param name="LOG" type="org.apache.commons.logging.Log"/>
  42126. <doc>
  42127. <![CDATA[Print a log message for starting up and shutting down
  42128. @param clazz the class of the server
  42129. @param args arguments
  42130. @param LOG the target log object]]>
  42131. </doc>
  42132. </method>
  42133. <method name="escapeHTML" return="java.lang.String"
  42134. abstract="false" native="false" synchronized="false"
  42135. static="true" final="false" visibility="public"
  42136. deprecated="not deprecated">
  42137. <param name="string" type="java.lang.String"/>
  42138. <doc>
  42139. <![CDATA[Escapes HTML Special characters present in the string.
  42140. @param string
  42141. @return HTML Escaped String representation]]>
  42142. </doc>
  42143. </method>
  42144. <method name="byteDesc" return="java.lang.String"
  42145. abstract="false" native="false" synchronized="false"
  42146. static="true" final="false" visibility="public"
  42147. deprecated="not deprecated">
  42148. <param name="len" type="long"/>
  42149. <doc>
  42150. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  42151. </doc>
  42152. </method>
  42153. <method name="limitDecimalTo2" return="java.lang.String"
  42154. abstract="false" native="false" synchronized="true"
  42155. static="true" final="false" visibility="public"
  42156. deprecated="not deprecated">
  42157. <param name="d" type="double"/>
  42158. </method>
  42159. <method name="join" return="java.lang.String"
  42160. abstract="false" native="false" synchronized="false"
  42161. static="true" final="false" visibility="public"
  42162. deprecated="not deprecated">
  42163. <param name="separator" type="java.lang.CharSequence"/>
  42164. <param name="strings" type="java.lang.Iterable"/>
  42165. <doc>
  42166. <![CDATA[Concatenates strings, using a separator.
  42167. @param separator Separator to join with.
  42168. @param strings Strings to join.
  42169. @return the joined string]]>
  42170. </doc>
  42171. </method>
  42172. <method name="join" return="java.lang.String"
  42173. abstract="false" native="false" synchronized="false"
  42174. static="true" final="false" visibility="public"
  42175. deprecated="not deprecated">
  42176. <param name="separator" type="java.lang.CharSequence"/>
  42177. <param name="strings" type="java.lang.String[]"/>
  42178. <doc>
  42179. <![CDATA[Concatenates strings, using a separator.
  42180. @param separator to join with
  42181. @param strings to join
  42182. @return the joined string]]>
  42183. </doc>
  42184. </method>
  42185. <method name="join" return="java.lang.String"
  42186. abstract="false" native="false" synchronized="false"
  42187. static="true" final="false" visibility="public"
  42188. deprecated="not deprecated">
  42189. <param name="separator" type="java.lang.CharSequence"/>
  42190. <param name="objects" type="java.lang.Object[]"/>
  42191. <doc>
  42192. <![CDATA[Concatenates objects, using a separator.
  42193. @param separator to join with
  42194. @param objects to join
  42195. @return the joined string]]>
  42196. </doc>
  42197. </method>
  42198. <method name="capitalize" return="java.lang.String"
  42199. abstract="false" native="false" synchronized="false"
  42200. static="true" final="false" visibility="public"
  42201. deprecated="not deprecated">
  42202. <param name="s" type="java.lang.String"/>
  42203. <doc>
  42204. <![CDATA[Capitalize a word
  42205. @param s the input string
  42206. @return capitalized string]]>
  42207. </doc>
  42208. </method>
  42209. <method name="camelize" return="java.lang.String"
  42210. abstract="false" native="false" synchronized="false"
  42211. static="true" final="false" visibility="public"
  42212. deprecated="not deprecated">
  42213. <param name="s" type="java.lang.String"/>
  42214. <doc>
  42215. <![CDATA[Convert SOME_STUFF to SomeStuff
  42216. @param s input string
  42217. @return camelized string]]>
  42218. </doc>
  42219. </method>
  42220. <field name="COMMA" type="char"
  42221. transient="false" volatile="false"
  42222. static="true" final="true" visibility="public"
  42223. deprecated="not deprecated">
  42224. </field>
  42225. <field name="COMMA_STR" type="java.lang.String"
  42226. transient="false" volatile="false"
  42227. static="true" final="true" visibility="public"
  42228. deprecated="not deprecated">
  42229. </field>
  42230. <field name="ESCAPE_CHAR" type="char"
  42231. transient="false" volatile="false"
  42232. static="true" final="true" visibility="public"
  42233. deprecated="not deprecated">
  42234. </field>
  42235. <doc>
  42236. <![CDATA[General string utils]]>
  42237. </doc>
  42238. </class>
  42239. <!-- end class org.apache.hadoop.util.StringUtils -->
  42240. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  42241. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  42242. abstract="false"
  42243. static="true" final="true" visibility="public"
  42244. deprecated="not deprecated">
  42245. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  42246. abstract="false" native="false" synchronized="false"
  42247. static="true" final="false" visibility="public"
  42248. deprecated="not deprecated">
  42249. </method>
  42250. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42251. abstract="false" native="false" synchronized="false"
  42252. static="true" final="false" visibility="public"
  42253. deprecated="not deprecated">
  42254. <param name="name" type="java.lang.String"/>
  42255. </method>
  42256. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42257. abstract="false" native="false" synchronized="false"
  42258. static="true" final="false" visibility="public"
  42259. deprecated="not deprecated">
  42260. <param name="symbol" type="char"/>
  42261. <doc>
  42262. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  42263. </doc>
  42264. </method>
  42265. <method name="string2long" return="long"
  42266. abstract="false" native="false" synchronized="false"
  42267. static="true" final="false" visibility="public"
  42268. deprecated="not deprecated">
  42269. <param name="s" type="java.lang.String"/>
  42270. <doc>
  42271. <![CDATA[Convert a string to long.
  42272. The input string is first be trimmed
  42273. and then it is parsed with traditional binary prefix.
  42274. For example,
  42275. "-1230k" will be converted to -1230 * 1024 = -1259520;
  42276. "891g" will be converted to 891 * 1024^3 = 956703965184;
  42277. @param s input string
  42278. @return a long value represented by the input string.]]>
  42279. </doc>
  42280. </method>
  42281. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42282. transient="false" volatile="false"
  42283. static="true" final="true" visibility="public"
  42284. deprecated="not deprecated">
  42285. </field>
  42286. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42287. transient="false" volatile="false"
  42288. static="true" final="true" visibility="public"
  42289. deprecated="not deprecated">
  42290. </field>
  42291. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42292. transient="false" volatile="false"
  42293. static="true" final="true" visibility="public"
  42294. deprecated="not deprecated">
  42295. </field>
  42296. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42297. transient="false" volatile="false"
  42298. static="true" final="true" visibility="public"
  42299. deprecated="not deprecated">
  42300. </field>
  42301. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42302. transient="false" volatile="false"
  42303. static="true" final="true" visibility="public"
  42304. deprecated="not deprecated">
  42305. </field>
  42306. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42307. transient="false" volatile="false"
  42308. static="true" final="true" visibility="public"
  42309. deprecated="not deprecated">
  42310. </field>
  42311. <field name="value" type="long"
  42312. transient="false" volatile="false"
  42313. static="false" final="true" visibility="public"
  42314. deprecated="not deprecated">
  42315. </field>
  42316. <field name="symbol" type="char"
  42317. transient="false" volatile="false"
  42318. static="false" final="true" visibility="public"
  42319. deprecated="not deprecated">
  42320. </field>
  42321. <doc>
  42322. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  42323. which can be represented by a 64-bit integer.
  42324. TraditionalBinaryPrefix symbol are case insensitive.]]>
  42325. </doc>
  42326. </class>
  42327. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  42328. <!-- start interface org.apache.hadoop.util.Tool -->
  42329. <interface name="Tool" abstract="true"
  42330. static="false" final="false" visibility="public"
  42331. deprecated="not deprecated">
  42332. <implements name="org.apache.hadoop.conf.Configurable"/>
  42333. <method name="run" return="int"
  42334. abstract="false" native="false" synchronized="false"
  42335. static="false" final="false" visibility="public"
  42336. deprecated="not deprecated">
  42337. <param name="args" type="java.lang.String[]"/>
  42338. <exception name="Exception" type="java.lang.Exception"/>
  42339. <doc>
  42340. <![CDATA[Execute the command with the given arguments.
  42341. @param args command specific arguments.
  42342. @return exit code.
  42343. @throws Exception]]>
  42344. </doc>
  42345. </method>
  42346. <doc>
  42347. <![CDATA[A tool interface that supports handling of generic command-line options.
  42348. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  42349. The tool/application should delegate the handling of
  42350. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  42351. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  42352. and only handle its custom arguments.</p>
  42353. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  42354. <p><blockquote><pre>
  42355. public class MyApp extends Configured implements Tool {
  42356. public int run(String[] args) throws Exception {
  42357. // <code>Configuration</code> processed by <code>ToolRunner</code>
  42358. Configuration conf = getConf();
  42359. // Create a JobConf using the processed <code>conf</code>
  42360. JobConf job = new JobConf(conf, MyApp.class);
  42361. // Process custom command-line options
  42362. Path in = new Path(args[1]);
  42363. Path out = new Path(args[2]);
  42364. // Specify various job-specific parameters
  42365. job.setJobName("my-app");
  42366. job.setInputPath(in);
  42367. job.setOutputPath(out);
  42368. job.setMapperClass(MyApp.MyMapper.class);
  42369. job.setReducerClass(MyApp.MyReducer.class);
  42370. // Submit the job, then poll for progress until the job is complete
  42371. JobClient.runJob(job);
  42372. }
  42373. public static void main(String[] args) throws Exception {
  42374. // Let <code>ToolRunner</code> handle generic command-line options
  42375. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  42376. System.exit(res);
  42377. }
  42378. }
  42379. </pre></blockquote></p>
  42380. @see GenericOptionsParser
  42381. @see ToolRunner]]>
  42382. </doc>
  42383. </interface>
  42384. <!-- end interface org.apache.hadoop.util.Tool -->
  42385. <!-- start class org.apache.hadoop.util.ToolRunner -->
  42386. <class name="ToolRunner" extends="java.lang.Object"
  42387. abstract="false"
  42388. static="false" final="false" visibility="public"
  42389. deprecated="not deprecated">
  42390. <constructor name="ToolRunner"
  42391. static="false" final="false" visibility="public"
  42392. deprecated="not deprecated">
  42393. </constructor>
  42394. <method name="run" return="int"
  42395. abstract="false" native="false" synchronized="false"
  42396. static="true" final="false" visibility="public"
  42397. deprecated="not deprecated">
  42398. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42399. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  42400. <param name="args" type="java.lang.String[]"/>
  42401. <exception name="Exception" type="java.lang.Exception"/>
  42402. <doc>
  42403. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  42404. parsing with the given generic arguments. Uses the given
  42405. <code>Configuration</code>, or builds one if null.
  42406. Sets the <code>Tool</code>'s configuration with the possibly modified
  42407. version of the <code>conf</code>.
  42408. @param conf <code>Configuration</code> for the <code>Tool</code>.
  42409. @param tool <code>Tool</code> to run.
  42410. @param args command-line arguments to the tool.
  42411. @return exit code of the {@link Tool#run(String[])} method.]]>
  42412. </doc>
  42413. </method>
  42414. <method name="run" return="int"
  42415. abstract="false" native="false" synchronized="false"
  42416. static="true" final="false" visibility="public"
  42417. deprecated="not deprecated">
  42418. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  42419. <param name="args" type="java.lang.String[]"/>
  42420. <exception name="Exception" type="java.lang.Exception"/>
  42421. <doc>
  42422. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  42423. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  42424. @param tool <code>Tool</code> to run.
  42425. @param args command-line arguments to the tool.
  42426. @return exit code of the {@link Tool#run(String[])} method.]]>
  42427. </doc>
  42428. </method>
  42429. <method name="printGenericCommandUsage"
  42430. abstract="false" native="false" synchronized="false"
  42431. static="true" final="false" visibility="public"
  42432. deprecated="not deprecated">
  42433. <param name="out" type="java.io.PrintStream"/>
  42434. <doc>
  42435. <![CDATA[Prints generic command-line argurments and usage information.
  42436. @param out stream to write usage information to.]]>
  42437. </doc>
  42438. </method>
  42439. <doc>
  42440. <![CDATA[A utility to help run {@link Tool}s.
  42441. <p><code>ToolRunner</code> can be used to run classes implementing
  42442. <code>Tool</code> interface. It works in conjunction with
  42443. {@link GenericOptionsParser} to parse the
  42444. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  42445. generic hadoop command line arguments</a> and modifies the
  42446. <code>Configuration</code> of the <code>Tool</code>. The
  42447. application-specific options are passed along without being modified.
  42448. </p>
  42449. @see Tool
  42450. @see GenericOptionsParser]]>
  42451. </doc>
  42452. </class>
  42453. <!-- end class org.apache.hadoop.util.ToolRunner -->
  42454. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  42455. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  42456. abstract="false"
  42457. static="false" final="false" visibility="public"
  42458. deprecated="not deprecated">
  42459. <constructor name="UTF8ByteArrayUtils"
  42460. static="false" final="false" visibility="public"
  42461. deprecated="not deprecated">
  42462. </constructor>
  42463. <method name="findByte" return="int"
  42464. abstract="false" native="false" synchronized="false"
  42465. static="true" final="false" visibility="public"
  42466. deprecated="not deprecated">
  42467. <param name="utf" type="byte[]"/>
  42468. <param name="start" type="int"/>
  42469. <param name="end" type="int"/>
  42470. <param name="b" type="byte"/>
  42471. <doc>
  42472. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  42473. @param utf a byte array containing a UTF-8 encoded string
  42474. @param start starting offset
  42475. @param end ending position
  42476. @param b the byte to find
  42477. @return position that first byte occures otherwise -1]]>
  42478. </doc>
  42479. </method>
  42480. <method name="findBytes" return="int"
  42481. abstract="false" native="false" synchronized="false"
  42482. static="true" final="false" visibility="public"
  42483. deprecated="not deprecated">
  42484. <param name="utf" type="byte[]"/>
  42485. <param name="start" type="int"/>
  42486. <param name="end" type="int"/>
  42487. <param name="b" type="byte[]"/>
  42488. <doc>
  42489. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  42490. @param utf a byte array containing a UTF-8 encoded string
  42491. @param start starting offset
  42492. @param end ending position
  42493. @param b the bytes to find
  42494. @return position that first byte occures otherwise -1]]>
  42495. </doc>
  42496. </method>
  42497. <method name="findNthByte" return="int"
  42498. abstract="false" native="false" synchronized="false"
  42499. static="true" final="false" visibility="public"
  42500. deprecated="not deprecated">
  42501. <param name="utf" type="byte[]"/>
  42502. <param name="start" type="int"/>
  42503. <param name="length" type="int"/>
  42504. <param name="b" type="byte"/>
  42505. <param name="n" type="int"/>
  42506. <doc>
  42507. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  42508. @param utf a byte array containing a UTF-8 encoded string
  42509. @param start starting offset
  42510. @param length the length of byte array
  42511. @param b the byte to find
  42512. @param n the desired occurrence of the given byte
  42513. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  42514. </doc>
  42515. </method>
  42516. <method name="findNthByte" return="int"
  42517. abstract="false" native="false" synchronized="false"
  42518. static="true" final="false" visibility="public"
  42519. deprecated="not deprecated">
  42520. <param name="utf" type="byte[]"/>
  42521. <param name="b" type="byte"/>
  42522. <param name="n" type="int"/>
  42523. <doc>
  42524. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  42525. @param utf a byte array containing a UTF-8 encoded string
  42526. @param b the byte to find
  42527. @param n the desired occurrence of the given byte
  42528. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  42529. </doc>
  42530. </method>
  42531. </class>
  42532. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  42533. <!-- start class org.apache.hadoop.util.VersionInfo -->
  42534. <class name="VersionInfo" extends="java.lang.Object"
  42535. abstract="false"
  42536. static="false" final="false" visibility="public"
  42537. deprecated="not deprecated">
  42538. <constructor name="VersionInfo"
  42539. static="false" final="false" visibility="public"
  42540. deprecated="not deprecated">
  42541. </constructor>
  42542. <method name="getVersion" return="java.lang.String"
  42543. abstract="false" native="false" synchronized="false"
  42544. static="true" final="false" visibility="public"
  42545. deprecated="not deprecated">
  42546. <doc>
  42547. <![CDATA[Get the Hadoop version.
  42548. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  42549. </doc>
  42550. </method>
  42551. <method name="getRevision" return="java.lang.String"
  42552. abstract="false" native="false" synchronized="false"
  42553. static="true" final="false" visibility="public"
  42554. deprecated="not deprecated">
  42555. <doc>
  42556. <![CDATA[Get the subversion revision number for the root directory
  42557. @return the revision number, eg. "451451"]]>
  42558. </doc>
  42559. </method>
  42560. <method name="getDate" return="java.lang.String"
  42561. abstract="false" native="false" synchronized="false"
  42562. static="true" final="false" visibility="public"
  42563. deprecated="not deprecated">
  42564. <doc>
  42565. <![CDATA[The date that Hadoop was compiled.
  42566. @return the compilation date in unix date format]]>
  42567. </doc>
  42568. </method>
  42569. <method name="getUser" return="java.lang.String"
  42570. abstract="false" native="false" synchronized="false"
  42571. static="true" final="false" visibility="public"
  42572. deprecated="not deprecated">
  42573. <doc>
  42574. <![CDATA[The user that compiled Hadoop.
  42575. @return the username of the user]]>
  42576. </doc>
  42577. </method>
  42578. <method name="getUrl" return="java.lang.String"
  42579. abstract="false" native="false" synchronized="false"
  42580. static="true" final="false" visibility="public"
  42581. deprecated="not deprecated">
  42582. <doc>
  42583. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  42584. </doc>
  42585. </method>
  42586. <method name="getSrcChecksum" return="java.lang.String"
  42587. abstract="false" native="false" synchronized="false"
  42588. static="true" final="false" visibility="public"
  42589. deprecated="not deprecated">
  42590. <doc>
  42591. <![CDATA[Get the checksum of the source files from which Hadoop was
  42592. built.]]>
  42593. </doc>
  42594. </method>
  42595. <method name="getBuildVersion" return="java.lang.String"
  42596. abstract="false" native="false" synchronized="false"
  42597. static="true" final="false" visibility="public"
  42598. deprecated="not deprecated">
  42599. <doc>
  42600. <![CDATA[Returns the full version string containing version,
  42601. revision, user and source checksum.]]>
  42602. </doc>
  42603. </method>
  42604. <method name="main"
  42605. abstract="false" native="false" synchronized="false"
  42606. static="true" final="false" visibility="public"
  42607. deprecated="not deprecated">
  42608. <param name="args" type="java.lang.String[]"/>
  42609. </method>
  42610. <doc>
  42611. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  42612. information.]]>
  42613. </doc>
  42614. </class>
  42615. <!-- end class org.apache.hadoop.util.VersionInfo -->
  42616. <!-- start class org.apache.hadoop.util.XMLUtils -->
  42617. <class name="XMLUtils" extends="java.lang.Object"
  42618. abstract="false"
  42619. static="false" final="false" visibility="public"
  42620. deprecated="not deprecated">
  42621. <constructor name="XMLUtils"
  42622. static="false" final="false" visibility="public"
  42623. deprecated="not deprecated">
  42624. </constructor>
  42625. <method name="transform"
  42626. abstract="false" native="false" synchronized="false"
  42627. static="true" final="false" visibility="public"
  42628. deprecated="not deprecated">
  42629. <param name="styleSheet" type="java.io.InputStream"/>
  42630. <param name="xml" type="java.io.InputStream"/>
  42631. <param name="out" type="java.io.Writer"/>
  42632. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  42633. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  42634. <doc>
  42635. <![CDATA[Transform input xml given a stylesheet.
  42636. @param styleSheet the style-sheet
  42637. @param xml input xml data
  42638. @param out output
  42639. @throws TransformerConfigurationException
  42640. @throws TransformerException]]>
  42641. </doc>
  42642. </method>
  42643. <doc>
  42644. <![CDATA[General xml utilities.]]>
  42645. </doc>
  42646. </class>
  42647. <!-- end class org.apache.hadoop.util.XMLUtils -->
  42648. </package>
  42649. <package name="org.apache.hadoop.util.bloom">
  42650. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  42651. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  42652. abstract="false"
  42653. static="false" final="false" visibility="public"
  42654. deprecated="not deprecated">
  42655. <constructor name="BloomFilter"
  42656. static="false" final="false" visibility="public"
  42657. deprecated="not deprecated">
  42658. <doc>
  42659. <![CDATA[Default constructor - use with readFields]]>
  42660. </doc>
  42661. </constructor>
  42662. <constructor name="BloomFilter" type="int, int, int"
  42663. static="false" final="false" visibility="public"
  42664. deprecated="not deprecated">
  42665. <doc>
  42666. <![CDATA[Constructor
  42667. @param vectorSize The vector size of <i>this</i> filter.
  42668. @param nbHash The number of hash function to consider.
  42669. @param hashType type of the hashing function (see
  42670. {@link org.apache.hadoop.util.hash.Hash}).]]>
  42671. </doc>
  42672. </constructor>
  42673. <method name="add"
  42674. abstract="false" native="false" synchronized="false"
  42675. static="false" final="false" visibility="public"
  42676. deprecated="not deprecated">
  42677. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42678. </method>
  42679. <method name="and"
  42680. abstract="false" native="false" synchronized="false"
  42681. static="false" final="false" visibility="public"
  42682. deprecated="not deprecated">
  42683. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42684. </method>
  42685. <method name="membershipTest" return="boolean"
  42686. abstract="false" native="false" synchronized="false"
  42687. static="false" final="false" visibility="public"
  42688. deprecated="not deprecated">
  42689. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42690. </method>
  42691. <method name="not"
  42692. abstract="false" native="false" synchronized="false"
  42693. static="false" final="false" visibility="public"
  42694. deprecated="not deprecated">
  42695. </method>
  42696. <method name="or"
  42697. abstract="false" native="false" synchronized="false"
  42698. static="false" final="false" visibility="public"
  42699. deprecated="not deprecated">
  42700. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42701. </method>
  42702. <method name="xor"
  42703. abstract="false" native="false" synchronized="false"
  42704. static="false" final="false" visibility="public"
  42705. deprecated="not deprecated">
  42706. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42707. </method>
  42708. <method name="toString" return="java.lang.String"
  42709. abstract="false" native="false" synchronized="false"
  42710. static="false" final="false" visibility="public"
  42711. deprecated="not deprecated">
  42712. </method>
  42713. <method name="getVectorSize" return="int"
  42714. abstract="false" native="false" synchronized="false"
  42715. static="false" final="false" visibility="public"
  42716. deprecated="not deprecated">
  42717. <doc>
  42718. <![CDATA[@return size of the the bloomfilter]]>
  42719. </doc>
  42720. </method>
  42721. <method name="write"
  42722. abstract="false" native="false" synchronized="false"
  42723. static="false" final="false" visibility="public"
  42724. deprecated="not deprecated">
  42725. <param name="out" type="java.io.DataOutput"/>
  42726. <exception name="IOException" type="java.io.IOException"/>
  42727. </method>
  42728. <method name="readFields"
  42729. abstract="false" native="false" synchronized="false"
  42730. static="false" final="false" visibility="public"
  42731. deprecated="not deprecated">
  42732. <param name="in" type="java.io.DataInput"/>
  42733. <exception name="IOException" type="java.io.IOException"/>
  42734. </method>
  42735. <doc>
  42736. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  42737. <p>
  42738. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  42739. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  42740. offers for the transmission of set membership information between networked hosts. A sender encodes
  42741. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  42742. representation. Computation and space costs for construction are linear in the number of elements.
  42743. The receiver uses the filter to test whether various elements are members of the set. Though the
  42744. filter will occasionally return a false positive, it will never return a false negative. When creating
  42745. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  42746. <p>
  42747. Originally created by
  42748. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  42749. @see Filter The general behavior of a filter
  42750. @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>]]>
  42751. </doc>
  42752. </class>
  42753. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  42754. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  42755. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  42756. abstract="false"
  42757. static="false" final="true" visibility="public"
  42758. deprecated="not deprecated">
  42759. <constructor name="CountingBloomFilter"
  42760. static="false" final="false" visibility="public"
  42761. deprecated="not deprecated">
  42762. <doc>
  42763. <![CDATA[Default constructor - use with readFields]]>
  42764. </doc>
  42765. </constructor>
  42766. <constructor name="CountingBloomFilter" type="int, int, int"
  42767. static="false" final="false" visibility="public"
  42768. deprecated="not deprecated">
  42769. <doc>
  42770. <![CDATA[Constructor
  42771. @param vectorSize The vector size of <i>this</i> filter.
  42772. @param nbHash The number of hash function to consider.
  42773. @param hashType type of the hashing function (see
  42774. {@link org.apache.hadoop.util.hash.Hash}).]]>
  42775. </doc>
  42776. </constructor>
  42777. <method name="add"
  42778. abstract="false" native="false" synchronized="false"
  42779. static="false" final="false" visibility="public"
  42780. deprecated="not deprecated">
  42781. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42782. </method>
  42783. <method name="delete"
  42784. abstract="false" native="false" synchronized="false"
  42785. static="false" final="false" visibility="public"
  42786. deprecated="not deprecated">
  42787. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42788. <doc>
  42789. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  42790. <p>
  42791. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  42792. @param key The key to remove.]]>
  42793. </doc>
  42794. </method>
  42795. <method name="and"
  42796. abstract="false" native="false" synchronized="false"
  42797. static="false" final="false" visibility="public"
  42798. deprecated="not deprecated">
  42799. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42800. </method>
  42801. <method name="membershipTest" return="boolean"
  42802. abstract="false" native="false" synchronized="false"
  42803. static="false" final="false" visibility="public"
  42804. deprecated="not deprecated">
  42805. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42806. </method>
  42807. <method name="approximateCount" return="int"
  42808. abstract="false" native="false" synchronized="false"
  42809. static="false" final="false" visibility="public"
  42810. deprecated="not deprecated">
  42811. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42812. <doc>
  42813. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  42814. times the key was added to the filter. This allows the filter to be
  42815. used as an approximate <code>key -&gt; count</code> map.
  42816. <p>NOTE: due to the bucket size of this filter, inserting the same
  42817. key more than 15 times will cause an overflow at all filter positions
  42818. associated with this key, and it will significantly increase the error
  42819. rate for this and other keys. For this reason the filter can only be
  42820. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  42821. @param key key to be tested
  42822. @return 0 if the key is not present. Otherwise, a positive value v will
  42823. be returned such that <code>v == count</code> with probability equal to the
  42824. error rate of this filter, and <code>v &gt; count</code> otherwise.
  42825. Additionally, if the filter experienced an underflow as a result of
  42826. {@link #delete(Key)} operation, the return value may be lower than the
  42827. <code>count</code> with the probability of the false negative rate of such
  42828. filter.]]>
  42829. </doc>
  42830. </method>
  42831. <method name="not"
  42832. abstract="false" native="false" synchronized="false"
  42833. static="false" final="false" visibility="public"
  42834. deprecated="not deprecated">
  42835. </method>
  42836. <method name="or"
  42837. abstract="false" native="false" synchronized="false"
  42838. static="false" final="false" visibility="public"
  42839. deprecated="not deprecated">
  42840. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42841. </method>
  42842. <method name="xor"
  42843. abstract="false" native="false" synchronized="false"
  42844. static="false" final="false" visibility="public"
  42845. deprecated="not deprecated">
  42846. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42847. </method>
  42848. <method name="toString" return="java.lang.String"
  42849. abstract="false" native="false" synchronized="false"
  42850. static="false" final="false" visibility="public"
  42851. deprecated="not deprecated">
  42852. </method>
  42853. <method name="write"
  42854. abstract="false" native="false" synchronized="false"
  42855. static="false" final="false" visibility="public"
  42856. deprecated="not deprecated">
  42857. <param name="out" type="java.io.DataOutput"/>
  42858. <exception name="IOException" type="java.io.IOException"/>
  42859. </method>
  42860. <method name="readFields"
  42861. abstract="false" native="false" synchronized="false"
  42862. static="false" final="false" visibility="public"
  42863. deprecated="not deprecated">
  42864. <param name="in" type="java.io.DataInput"/>
  42865. <exception name="IOException" type="java.io.IOException"/>
  42866. </method>
  42867. <doc>
  42868. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  42869. 2000 paper.
  42870. <p>
  42871. A counting Bloom filter is an improvement to standard a Bloom filter as it
  42872. allows dynamic additions and deletions of set membership information. This
  42873. is achieved through the use of a counting vector instead of a bit vector.
  42874. <p>
  42875. Originally created by
  42876. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  42877. @see Filter The general behavior of a filter
  42878. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  42879. </doc>
  42880. </class>
  42881. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  42882. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  42883. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  42884. abstract="false"
  42885. static="false" final="false" visibility="public"
  42886. deprecated="not deprecated">
  42887. <constructor name="DynamicBloomFilter"
  42888. static="false" final="false" visibility="public"
  42889. deprecated="not deprecated">
  42890. <doc>
  42891. <![CDATA[Zero-args constructor for the serialization.]]>
  42892. </doc>
  42893. </constructor>
  42894. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  42895. static="false" final="false" visibility="public"
  42896. deprecated="not deprecated">
  42897. <doc>
  42898. <![CDATA[Constructor.
  42899. <p>
  42900. Builds an empty Dynamic Bloom filter.
  42901. @param vectorSize The number of bits in the vector.
  42902. @param nbHash The number of hash function to consider.
  42903. @param hashType type of the hashing function (see
  42904. {@link org.apache.hadoop.util.hash.Hash}).
  42905. @param nr The threshold for the maximum number of keys to record in a
  42906. dynamic Bloom filter row.]]>
  42907. </doc>
  42908. </constructor>
  42909. <method name="add"
  42910. abstract="false" native="false" synchronized="false"
  42911. static="false" final="false" visibility="public"
  42912. deprecated="not deprecated">
  42913. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42914. </method>
  42915. <method name="and"
  42916. abstract="false" native="false" synchronized="false"
  42917. static="false" final="false" visibility="public"
  42918. deprecated="not deprecated">
  42919. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42920. </method>
  42921. <method name="membershipTest" return="boolean"
  42922. abstract="false" native="false" synchronized="false"
  42923. static="false" final="false" visibility="public"
  42924. deprecated="not deprecated">
  42925. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  42926. </method>
  42927. <method name="not"
  42928. abstract="false" native="false" synchronized="false"
  42929. static="false" final="false" visibility="public"
  42930. deprecated="not deprecated">
  42931. </method>
  42932. <method name="or"
  42933. abstract="false" native="false" synchronized="false"
  42934. static="false" final="false" visibility="public"
  42935. deprecated="not deprecated">
  42936. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42937. </method>
  42938. <method name="xor"
  42939. abstract="false" native="false" synchronized="false"
  42940. static="false" final="false" visibility="public"
  42941. deprecated="not deprecated">
  42942. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  42943. </method>
  42944. <method name="toString" return="java.lang.String"
  42945. abstract="false" native="false" synchronized="false"
  42946. static="false" final="false" visibility="public"
  42947. deprecated="not deprecated">
  42948. </method>
  42949. <method name="write"
  42950. abstract="false" native="false" synchronized="false"
  42951. static="false" final="false" visibility="public"
  42952. deprecated="not deprecated">
  42953. <param name="out" type="java.io.DataOutput"/>
  42954. <exception name="IOException" type="java.io.IOException"/>
  42955. </method>
  42956. <method name="readFields"
  42957. abstract="false" native="false" synchronized="false"
  42958. static="false" final="false" visibility="public"
  42959. deprecated="not deprecated">
  42960. <param name="in" type="java.io.DataInput"/>
  42961. <exception name="IOException" type="java.io.IOException"/>
  42962. </method>
  42963. <doc>
  42964. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  42965. <p>
  42966. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  42967. each of the <code>s</code> rows is a standard Bloom filter. The creation
  42968. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  42969. bit matrix, i.e., it is composed of a single standard Bloom filter.
  42970. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  42971. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  42972. the cardinality of the set <code>A</code> to record in the filter).
  42973. <p>
  42974. As the size of <code>A</code> grows during the execution of the application,
  42975. several keys must be inserted in the DBF. When inserting a key into the DBF,
  42976. one must first get an active Bloom filter in the matrix. A Bloom filter is
  42977. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  42978. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  42979. If an active Bloom filter is found, the key is inserted and
  42980. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  42981. is no active Bloom filter, a new one is created (i.e., a new row is added to
  42982. the matrix) according to the current size of <code>A</code> and the element
  42983. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  42984. this new Bloom filter is set to one. A given key is said to belong to the
  42985. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  42986. <p>
  42987. Originally created by
  42988. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  42989. @see Filter The general behavior of a filter
  42990. @see BloomFilter A Bloom filter
  42991. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  42992. </doc>
  42993. </class>
  42994. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  42995. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  42996. <class name="Filter" extends="java.lang.Object"
  42997. abstract="true"
  42998. static="false" final="false" visibility="public"
  42999. deprecated="not deprecated">
  43000. <implements name="org.apache.hadoop.io.Writable"/>
  43001. <constructor name="Filter"
  43002. static="false" final="false" visibility="protected"
  43003. deprecated="not deprecated">
  43004. </constructor>
  43005. <constructor name="Filter" type="int, int, int"
  43006. static="false" final="false" visibility="protected"
  43007. deprecated="not deprecated">
  43008. <doc>
  43009. <![CDATA[Constructor.
  43010. @param vectorSize The vector size of <i>this</i> filter.
  43011. @param nbHash The number of hash functions to consider.
  43012. @param hashType type of the hashing function (see {@link Hash}).]]>
  43013. </doc>
  43014. </constructor>
  43015. <method name="add"
  43016. abstract="true" native="false" synchronized="false"
  43017. static="false" final="false" visibility="public"
  43018. deprecated="not deprecated">
  43019. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43020. <doc>
  43021. <![CDATA[Adds a key to <i>this</i> filter.
  43022. @param key The key to add.]]>
  43023. </doc>
  43024. </method>
  43025. <method name="membershipTest" return="boolean"
  43026. abstract="true" native="false" synchronized="false"
  43027. static="false" final="false" visibility="public"
  43028. deprecated="not deprecated">
  43029. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43030. <doc>
  43031. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  43032. @param key The key to test.
  43033. @return boolean True if the specified key belongs to <i>this</i> filter.
  43034. False otherwise.]]>
  43035. </doc>
  43036. </method>
  43037. <method name="and"
  43038. abstract="true" native="false" synchronized="false"
  43039. static="false" final="false" visibility="public"
  43040. deprecated="not deprecated">
  43041. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43042. <doc>
  43043. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  43044. <p>
  43045. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43046. @param filter The filter to AND with.]]>
  43047. </doc>
  43048. </method>
  43049. <method name="or"
  43050. abstract="true" native="false" synchronized="false"
  43051. static="false" final="false" visibility="public"
  43052. deprecated="not deprecated">
  43053. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43054. <doc>
  43055. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  43056. <p>
  43057. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43058. @param filter The filter to OR with.]]>
  43059. </doc>
  43060. </method>
  43061. <method name="xor"
  43062. abstract="true" native="false" synchronized="false"
  43063. static="false" final="false" visibility="public"
  43064. deprecated="not deprecated">
  43065. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43066. <doc>
  43067. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  43068. <p>
  43069. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43070. @param filter The filter to XOR with.]]>
  43071. </doc>
  43072. </method>
  43073. <method name="not"
  43074. abstract="true" native="false" synchronized="false"
  43075. static="false" final="false" visibility="public"
  43076. deprecated="not deprecated">
  43077. <doc>
  43078. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  43079. <p>
  43080. The result is assigned to <i>this</i> filter.]]>
  43081. </doc>
  43082. </method>
  43083. <method name="add"
  43084. abstract="false" native="false" synchronized="false"
  43085. static="false" final="false" visibility="public"
  43086. deprecated="not deprecated">
  43087. <param name="keys" type="java.util.List"/>
  43088. <doc>
  43089. <![CDATA[Adds a list of keys to <i>this</i> filter.
  43090. @param keys The list of keys.]]>
  43091. </doc>
  43092. </method>
  43093. <method name="add"
  43094. abstract="false" native="false" synchronized="false"
  43095. static="false" final="false" visibility="public"
  43096. deprecated="not deprecated">
  43097. <param name="keys" type="java.util.Collection"/>
  43098. <doc>
  43099. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  43100. @param keys The collection of keys.]]>
  43101. </doc>
  43102. </method>
  43103. <method name="add"
  43104. abstract="false" native="false" synchronized="false"
  43105. static="false" final="false" visibility="public"
  43106. deprecated="not deprecated">
  43107. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  43108. <doc>
  43109. <![CDATA[Adds an array of keys to <i>this</i> filter.
  43110. @param keys The array of keys.]]>
  43111. </doc>
  43112. </method>
  43113. <method name="write"
  43114. abstract="false" native="false" synchronized="false"
  43115. static="false" final="false" visibility="public"
  43116. deprecated="not deprecated">
  43117. <param name="out" type="java.io.DataOutput"/>
  43118. <exception name="IOException" type="java.io.IOException"/>
  43119. </method>
  43120. <method name="readFields"
  43121. abstract="false" native="false" synchronized="false"
  43122. static="false" final="false" visibility="public"
  43123. deprecated="not deprecated">
  43124. <param name="in" type="java.io.DataInput"/>
  43125. <exception name="IOException" type="java.io.IOException"/>
  43126. </method>
  43127. <field name="vectorSize" type="int"
  43128. transient="false" volatile="false"
  43129. static="false" final="false" visibility="protected"
  43130. deprecated="not deprecated">
  43131. <doc>
  43132. <![CDATA[The vector size of <i>this</i> filter.]]>
  43133. </doc>
  43134. </field>
  43135. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  43136. transient="false" volatile="false"
  43137. static="false" final="false" visibility="protected"
  43138. deprecated="not deprecated">
  43139. <doc>
  43140. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  43141. </doc>
  43142. </field>
  43143. <field name="nbHash" type="int"
  43144. transient="false" volatile="false"
  43145. static="false" final="false" visibility="protected"
  43146. deprecated="not deprecated">
  43147. <doc>
  43148. <![CDATA[The number of hash function to consider.]]>
  43149. </doc>
  43150. </field>
  43151. <field name="hashType" type="int"
  43152. transient="false" volatile="false"
  43153. static="false" final="false" visibility="protected"
  43154. deprecated="not deprecated">
  43155. <doc>
  43156. <![CDATA[Type of hashing function to use.]]>
  43157. </doc>
  43158. </field>
  43159. <doc>
  43160. <![CDATA[Defines the general behavior of a filter.
  43161. <p>
  43162. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  43163. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  43164. in a vector through the use of several hash functions.
  43165. <p>
  43166. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  43167. <p>
  43168. It must be extended in order to define the real behavior.
  43169. @see Key The general behavior of a key
  43170. @see HashFunction A hash function]]>
  43171. </doc>
  43172. </class>
  43173. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  43174. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  43175. <class name="HashFunction" extends="java.lang.Object"
  43176. abstract="false"
  43177. static="false" final="true" visibility="public"
  43178. deprecated="not deprecated">
  43179. <constructor name="HashFunction" type="int, int, int"
  43180. static="false" final="false" visibility="public"
  43181. deprecated="not deprecated">
  43182. <doc>
  43183. <![CDATA[Constructor.
  43184. <p>
  43185. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  43186. @param maxValue The maximum highest returned value.
  43187. @param nbHash The number of resulting hashed values.
  43188. @param hashType type of the hashing function (see {@link Hash}).]]>
  43189. </doc>
  43190. </constructor>
  43191. <method name="clear"
  43192. abstract="false" native="false" synchronized="false"
  43193. static="false" final="false" visibility="public"
  43194. deprecated="not deprecated">
  43195. <doc>
  43196. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  43197. </doc>
  43198. </method>
  43199. <method name="hash" return="int[]"
  43200. abstract="false" native="false" synchronized="false"
  43201. static="false" final="false" visibility="public"
  43202. deprecated="not deprecated">
  43203. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  43204. <doc>
  43205. <![CDATA[Hashes a specified key into several integers.
  43206. @param k The specified key.
  43207. @return The array of hashed values.]]>
  43208. </doc>
  43209. </method>
  43210. <doc>
  43211. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  43212. @see Key The general behavior of a key being stored in a filter
  43213. @see Filter The general behavior of a filter]]>
  43214. </doc>
  43215. </class>
  43216. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  43217. <!-- start class org.apache.hadoop.util.bloom.Key -->
  43218. <class name="Key" extends="java.lang.Object"
  43219. abstract="false"
  43220. static="false" final="false" visibility="public"
  43221. deprecated="not deprecated">
  43222. <implements name="org.apache.hadoop.io.WritableComparable"/>
  43223. <constructor name="Key"
  43224. static="false" final="false" visibility="public"
  43225. deprecated="not deprecated">
  43226. <doc>
  43227. <![CDATA[default constructor - use with readFields]]>
  43228. </doc>
  43229. </constructor>
  43230. <constructor name="Key" type="byte[]"
  43231. static="false" final="false" visibility="public"
  43232. deprecated="not deprecated">
  43233. <doc>
  43234. <![CDATA[Constructor.
  43235. <p>
  43236. Builds a key with a default weight.
  43237. @param value The byte value of <i>this</i> key.]]>
  43238. </doc>
  43239. </constructor>
  43240. <constructor name="Key" type="byte[], double"
  43241. static="false" final="false" visibility="public"
  43242. deprecated="not deprecated">
  43243. <doc>
  43244. <![CDATA[Constructor.
  43245. <p>
  43246. Builds a key with a specified weight.
  43247. @param value The value of <i>this</i> key.
  43248. @param weight The weight associated to <i>this</i> key.]]>
  43249. </doc>
  43250. </constructor>
  43251. <method name="set"
  43252. abstract="false" native="false" synchronized="false"
  43253. static="false" final="false" visibility="public"
  43254. deprecated="not deprecated">
  43255. <param name="value" type="byte[]"/>
  43256. <param name="weight" type="double"/>
  43257. <doc>
  43258. <![CDATA[@param value
  43259. @param weight]]>
  43260. </doc>
  43261. </method>
  43262. <method name="getBytes" return="byte[]"
  43263. abstract="false" native="false" synchronized="false"
  43264. static="false" final="false" visibility="public"
  43265. deprecated="not deprecated">
  43266. <doc>
  43267. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  43268. </doc>
  43269. </method>
  43270. <method name="getWeight" return="double"
  43271. abstract="false" native="false" synchronized="false"
  43272. static="false" final="false" visibility="public"
  43273. deprecated="not deprecated">
  43274. <doc>
  43275. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  43276. </doc>
  43277. </method>
  43278. <method name="incrementWeight"
  43279. abstract="false" native="false" synchronized="false"
  43280. static="false" final="false" visibility="public"
  43281. deprecated="not deprecated">
  43282. <param name="weight" type="double"/>
  43283. <doc>
  43284. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  43285. @param weight The increment.]]>
  43286. </doc>
  43287. </method>
  43288. <method name="incrementWeight"
  43289. abstract="false" native="false" synchronized="false"
  43290. static="false" final="false" visibility="public"
  43291. deprecated="not deprecated">
  43292. <doc>
  43293. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  43294. </doc>
  43295. </method>
  43296. <method name="equals" return="boolean"
  43297. abstract="false" native="false" synchronized="false"
  43298. static="false" final="false" visibility="public"
  43299. deprecated="not deprecated">
  43300. <param name="o" type="java.lang.Object"/>
  43301. </method>
  43302. <method name="hashCode" return="int"
  43303. abstract="false" native="false" synchronized="false"
  43304. static="false" final="false" visibility="public"
  43305. deprecated="not deprecated">
  43306. </method>
  43307. <method name="write"
  43308. abstract="false" native="false" synchronized="false"
  43309. static="false" final="false" visibility="public"
  43310. deprecated="not deprecated">
  43311. <param name="out" type="java.io.DataOutput"/>
  43312. <exception name="IOException" type="java.io.IOException"/>
  43313. </method>
  43314. <method name="readFields"
  43315. abstract="false" native="false" synchronized="false"
  43316. static="false" final="false" visibility="public"
  43317. deprecated="not deprecated">
  43318. <param name="in" type="java.io.DataInput"/>
  43319. <exception name="IOException" type="java.io.IOException"/>
  43320. </method>
  43321. <method name="compareTo" return="int"
  43322. abstract="false" native="false" synchronized="false"
  43323. static="false" final="false" visibility="public"
  43324. deprecated="not deprecated">
  43325. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  43326. </method>
  43327. <doc>
  43328. <![CDATA[The general behavior of a key that must be stored in a filter.
  43329. @see Filter The general behavior of a filter]]>
  43330. </doc>
  43331. </class>
  43332. <!-- end class org.apache.hadoop.util.bloom.Key -->
  43333. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  43334. <interface name="RemoveScheme" abstract="true"
  43335. static="false" final="false" visibility="public"
  43336. deprecated="not deprecated">
  43337. <field name="RANDOM" type="short"
  43338. transient="false" volatile="false"
  43339. static="true" final="true" visibility="public"
  43340. deprecated="not deprecated">
  43341. <doc>
  43342. <![CDATA[Random selection.
  43343. <p>
  43344. The idea is to randomly select a bit to reset.]]>
  43345. </doc>
  43346. </field>
  43347. <field name="MINIMUM_FN" type="short"
  43348. transient="false" volatile="false"
  43349. static="true" final="true" visibility="public"
  43350. deprecated="not deprecated">
  43351. <doc>
  43352. <![CDATA[MinimumFN Selection.
  43353. <p>
  43354. The idea is to select the bit to reset that will generate the minimum
  43355. number of false negative.]]>
  43356. </doc>
  43357. </field>
  43358. <field name="MAXIMUM_FP" type="short"
  43359. transient="false" volatile="false"
  43360. static="true" final="true" visibility="public"
  43361. deprecated="not deprecated">
  43362. <doc>
  43363. <![CDATA[MaximumFP Selection.
  43364. <p>
  43365. The idea is to select the bit to reset that will remove the maximum number
  43366. of false positive.]]>
  43367. </doc>
  43368. </field>
  43369. <field name="RATIO" type="short"
  43370. transient="false" volatile="false"
  43371. static="true" final="true" visibility="public"
  43372. deprecated="not deprecated">
  43373. <doc>
  43374. <![CDATA[Ratio Selection.
  43375. <p>
  43376. The idea is to select the bit to reset that will, at the same time, remove
  43377. the maximum number of false positve while minimizing the amount of false
  43378. negative generated.]]>
  43379. </doc>
  43380. </field>
  43381. <doc>
  43382. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  43383. <p>
  43384. Originally created by
  43385. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  43386. </doc>
  43387. </interface>
  43388. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  43389. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  43390. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  43391. abstract="false"
  43392. static="false" final="true" visibility="public"
  43393. deprecated="not deprecated">
  43394. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  43395. <constructor name="RetouchedBloomFilter"
  43396. static="false" final="false" visibility="public"
  43397. deprecated="not deprecated">
  43398. <doc>
  43399. <![CDATA[Default constructor - use with readFields]]>
  43400. </doc>
  43401. </constructor>
  43402. <constructor name="RetouchedBloomFilter" type="int, int, int"
  43403. static="false" final="false" visibility="public"
  43404. deprecated="not deprecated">
  43405. <doc>
  43406. <![CDATA[Constructor
  43407. @param vectorSize The vector size of <i>this</i> filter.
  43408. @param nbHash The number of hash function to consider.
  43409. @param hashType type of the hashing function (see
  43410. {@link org.apache.hadoop.util.hash.Hash}).]]>
  43411. </doc>
  43412. </constructor>
  43413. <method name="add"
  43414. abstract="false" native="false" synchronized="false"
  43415. static="false" final="false" visibility="public"
  43416. deprecated="not deprecated">
  43417. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43418. </method>
  43419. <method name="addFalsePositive"
  43420. abstract="false" native="false" synchronized="false"
  43421. static="false" final="false" visibility="public"
  43422. deprecated="not deprecated">
  43423. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43424. <doc>
  43425. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  43426. <p>
  43427. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  43428. @param key The false positive key to add.]]>
  43429. </doc>
  43430. </method>
  43431. <method name="addFalsePositive"
  43432. abstract="false" native="false" synchronized="false"
  43433. static="false" final="false" visibility="public"
  43434. deprecated="not deprecated">
  43435. <param name="coll" type="java.util.Collection"/>
  43436. <doc>
  43437. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  43438. @param coll The collection of false positive.]]>
  43439. </doc>
  43440. </method>
  43441. <method name="addFalsePositive"
  43442. abstract="false" native="false" synchronized="false"
  43443. static="false" final="false" visibility="public"
  43444. deprecated="not deprecated">
  43445. <param name="keys" type="java.util.List"/>
  43446. <doc>
  43447. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  43448. @param keys The list of false positive.]]>
  43449. </doc>
  43450. </method>
  43451. <method name="addFalsePositive"
  43452. abstract="false" native="false" synchronized="false"
  43453. static="false" final="false" visibility="public"
  43454. deprecated="not deprecated">
  43455. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  43456. <doc>
  43457. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  43458. @param keys The array of false positive.]]>
  43459. </doc>
  43460. </method>
  43461. <method name="selectiveClearing"
  43462. abstract="false" native="false" synchronized="false"
  43463. static="false" final="false" visibility="public"
  43464. deprecated="not deprecated">
  43465. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  43466. <param name="scheme" type="short"/>
  43467. <doc>
  43468. <![CDATA[Performs the selective clearing for a given key.
  43469. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  43470. @param scheme The selective clearing scheme to apply.]]>
  43471. </doc>
  43472. </method>
  43473. <method name="write"
  43474. abstract="false" native="false" synchronized="false"
  43475. static="false" final="false" visibility="public"
  43476. deprecated="not deprecated">
  43477. <param name="out" type="java.io.DataOutput"/>
  43478. <exception name="IOException" type="java.io.IOException"/>
  43479. </method>
  43480. <method name="readFields"
  43481. abstract="false" native="false" synchronized="false"
  43482. static="false" final="false" visibility="public"
  43483. deprecated="not deprecated">
  43484. <param name="in" type="java.io.DataInput"/>
  43485. <exception name="IOException" type="java.io.IOException"/>
  43486. </method>
  43487. <doc>
  43488. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  43489. <p>
  43490. It allows the removal of selected false positives at the cost of introducing
  43491. random false negatives, and with the benefit of eliminating some random false
  43492. positives at the same time.
  43493. <p>
  43494. Originally created by
  43495. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43496. @see Filter The general behavior of a filter
  43497. @see BloomFilter A Bloom filter
  43498. @see RemoveScheme The different selective clearing algorithms
  43499. @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>]]>
  43500. </doc>
  43501. </class>
  43502. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  43503. </package>
  43504. <package name="org.apache.hadoop.util.hash">
  43505. <!-- start class org.apache.hadoop.util.hash.Hash -->
  43506. <class name="Hash" extends="java.lang.Object"
  43507. abstract="true"
  43508. static="false" final="false" visibility="public"
  43509. deprecated="not deprecated">
  43510. <constructor name="Hash"
  43511. static="false" final="false" visibility="public"
  43512. deprecated="not deprecated">
  43513. </constructor>
  43514. <method name="parseHashType" return="int"
  43515. abstract="false" native="false" synchronized="false"
  43516. static="true" final="false" visibility="public"
  43517. deprecated="not deprecated">
  43518. <param name="name" type="java.lang.String"/>
  43519. <doc>
  43520. <![CDATA[This utility method converts String representation of hash function name
  43521. to a symbolic constant. Currently two function types are supported,
  43522. "jenkins" and "murmur".
  43523. @param name hash function name
  43524. @return one of the predefined constants]]>
  43525. </doc>
  43526. </method>
  43527. <method name="getHashType" return="int"
  43528. abstract="false" native="false" synchronized="false"
  43529. static="true" final="false" visibility="public"
  43530. deprecated="not deprecated">
  43531. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43532. <doc>
  43533. <![CDATA[This utility method converts the name of the configured
  43534. hash type to a symbolic constant.
  43535. @param conf configuration
  43536. @return one of the predefined constants]]>
  43537. </doc>
  43538. </method>
  43539. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43540. abstract="false" native="false" synchronized="false"
  43541. static="true" final="false" visibility="public"
  43542. deprecated="not deprecated">
  43543. <param name="type" type="int"/>
  43544. <doc>
  43545. <![CDATA[Get a singleton instance of hash function of a given type.
  43546. @param type predefined hash type
  43547. @return hash function instance, or null if type is invalid]]>
  43548. </doc>
  43549. </method>
  43550. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43551. abstract="false" native="false" synchronized="false"
  43552. static="true" final="false" visibility="public"
  43553. deprecated="not deprecated">
  43554. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43555. <doc>
  43556. <![CDATA[Get a singleton instance of hash function of a type
  43557. defined in the configuration.
  43558. @param conf current configuration
  43559. @return defined hash type, or null if type is invalid]]>
  43560. </doc>
  43561. </method>
  43562. <method name="hash" return="int"
  43563. abstract="false" native="false" synchronized="false"
  43564. static="false" final="false" visibility="public"
  43565. deprecated="not deprecated">
  43566. <param name="bytes" type="byte[]"/>
  43567. <doc>
  43568. <![CDATA[Calculate a hash using all bytes from the input argument, and
  43569. a seed of -1.
  43570. @param bytes input bytes
  43571. @return hash value]]>
  43572. </doc>
  43573. </method>
  43574. <method name="hash" return="int"
  43575. abstract="false" native="false" synchronized="false"
  43576. static="false" final="false" visibility="public"
  43577. deprecated="not deprecated">
  43578. <param name="bytes" type="byte[]"/>
  43579. <param name="initval" type="int"/>
  43580. <doc>
  43581. <![CDATA[Calculate a hash using all bytes from the input argument,
  43582. and a provided seed value.
  43583. @param bytes input bytes
  43584. @param initval seed value
  43585. @return hash value]]>
  43586. </doc>
  43587. </method>
  43588. <method name="hash" return="int"
  43589. abstract="true" native="false" synchronized="false"
  43590. static="false" final="false" visibility="public"
  43591. deprecated="not deprecated">
  43592. <param name="bytes" type="byte[]"/>
  43593. <param name="length" type="int"/>
  43594. <param name="initval" type="int"/>
  43595. <doc>
  43596. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  43597. the provided seed value
  43598. @param bytes input bytes
  43599. @param length length of the valid bytes to consider
  43600. @param initval seed value
  43601. @return hash value]]>
  43602. </doc>
  43603. </method>
  43604. <field name="INVALID_HASH" type="int"
  43605. transient="false" volatile="false"
  43606. static="true" final="true" visibility="public"
  43607. deprecated="not deprecated">
  43608. <doc>
  43609. <![CDATA[Constant to denote invalid hash type.]]>
  43610. </doc>
  43611. </field>
  43612. <field name="JENKINS_HASH" type="int"
  43613. transient="false" volatile="false"
  43614. static="true" final="true" visibility="public"
  43615. deprecated="not deprecated">
  43616. <doc>
  43617. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  43618. </doc>
  43619. </field>
  43620. <field name="MURMUR_HASH" type="int"
  43621. transient="false" volatile="false"
  43622. static="true" final="true" visibility="public"
  43623. deprecated="not deprecated">
  43624. <doc>
  43625. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  43626. </doc>
  43627. </field>
  43628. <doc>
  43629. <![CDATA[This class represents a common API for hashing functions.]]>
  43630. </doc>
  43631. </class>
  43632. <!-- end class org.apache.hadoop.util.hash.Hash -->
  43633. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  43634. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  43635. abstract="false"
  43636. static="false" final="false" visibility="public"
  43637. deprecated="not deprecated">
  43638. <constructor name="JenkinsHash"
  43639. static="false" final="false" visibility="public"
  43640. deprecated="not deprecated">
  43641. </constructor>
  43642. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43643. abstract="false" native="false" synchronized="false"
  43644. static="true" final="false" visibility="public"
  43645. deprecated="not deprecated">
  43646. </method>
  43647. <method name="hash" return="int"
  43648. abstract="false" native="false" synchronized="false"
  43649. static="false" final="false" visibility="public"
  43650. deprecated="not deprecated">
  43651. <param name="key" type="byte[]"/>
  43652. <param name="nbytes" type="int"/>
  43653. <param name="initval" type="int"/>
  43654. <doc>
  43655. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  43656. @param key the key (the unaligned variable-length array of bytes)
  43657. @param nbytes number of bytes to include in hash
  43658. @param initval can be any integer value
  43659. @return a 32-bit value. Every bit of the key affects every bit of the
  43660. return value. Two keys differing by one or two bits will have totally
  43661. different hash values.
  43662. <p>The best hash table sizes are powers of 2. There is no need to do mod
  43663. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  43664. For example, if you need only 10 bits, do
  43665. <code>h = (h & hashmask(10));</code>
  43666. In which case, the hash table should have hashsize(10) elements.
  43667. <p>If you are hashing n strings byte[][] k, do it like this:
  43668. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  43669. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  43670. code any way you wish, private, educational, or commercial. It's free.
  43671. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  43672. acceptable. Do NOT use for cryptographic purposes.]]>
  43673. </doc>
  43674. </method>
  43675. <method name="main"
  43676. abstract="false" native="false" synchronized="false"
  43677. static="true" final="false" visibility="public"
  43678. deprecated="not deprecated">
  43679. <param name="args" type="java.lang.String[]"/>
  43680. <exception name="IOException" type="java.io.IOException"/>
  43681. <doc>
  43682. <![CDATA[Compute the hash of the specified file
  43683. @param args name of file to compute hash of.
  43684. @throws IOException]]>
  43685. </doc>
  43686. </method>
  43687. <doc>
  43688. <![CDATA[Produces 32-bit hash for hash table lookup.
  43689. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  43690. You can use this free for any purpose. It's in the public domain.
  43691. It has no warranty.
  43692. </pre>
  43693. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  43694. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  43695. function compares to others such as CRC, MD?, etc</a>
  43696. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  43697. Dr. Dobbs Article</a>]]>
  43698. </doc>
  43699. </class>
  43700. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  43701. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  43702. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  43703. abstract="false"
  43704. static="false" final="false" visibility="public"
  43705. deprecated="not deprecated">
  43706. <constructor name="MurmurHash"
  43707. static="false" final="false" visibility="public"
  43708. deprecated="not deprecated">
  43709. </constructor>
  43710. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  43711. abstract="false" native="false" synchronized="false"
  43712. static="true" final="false" visibility="public"
  43713. deprecated="not deprecated">
  43714. </method>
  43715. <method name="hash" return="int"
  43716. abstract="false" native="false" synchronized="false"
  43717. static="false" final="false" visibility="public"
  43718. deprecated="not deprecated">
  43719. <param name="data" type="byte[]"/>
  43720. <param name="length" type="int"/>
  43721. <param name="seed" type="int"/>
  43722. </method>
  43723. <doc>
  43724. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  43725. lookup. See http://murmurhash.googlepages.com/ for more details.
  43726. <p>The C version of MurmurHash 2.0 found at that site was ported
  43727. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  43728. </doc>
  43729. </class>
  43730. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  43731. </package>
  43732. <package name="org.apache.hadoop.filecache">
  43733. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  43734. <class name="DistributedCache" extends="java.lang.Object"
  43735. abstract="false"
  43736. static="false" final="false" visibility="public"
  43737. deprecated="not deprecated">
  43738. <constructor name="DistributedCache"
  43739. static="false" final="false" visibility="public"
  43740. deprecated="not deprecated">
  43741. </constructor>
  43742. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  43743. abstract="false" native="false" synchronized="false"
  43744. static="true" final="false" visibility="public"
  43745. deprecated="not deprecated">
  43746. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43747. <param name="cache" type="java.net.URI"/>
  43748. <exception name="IOException" type="java.io.IOException"/>
  43749. <doc>
  43750. <![CDATA[Returns {@link FileStatus} of a given cache file on hdfs. Internal to
  43751. MapReduce.
  43752. @param conf configuration
  43753. @param cache cache file
  43754. @return <code>FileStatus</code> of a given cache file on hdfs
  43755. @throws IOException]]>
  43756. </doc>
  43757. </method>
  43758. <method name="getTimestamp" return="long"
  43759. abstract="false" native="false" synchronized="false"
  43760. static="true" final="false" visibility="public"
  43761. deprecated="not deprecated">
  43762. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43763. <param name="cache" type="java.net.URI"/>
  43764. <exception name="IOException" type="java.io.IOException"/>
  43765. <doc>
  43766. <![CDATA[Returns mtime of a given cache file on hdfs. Internal to MapReduce.
  43767. @param conf configuration
  43768. @param cache cache file
  43769. @return mtime of a given cache file on hdfs
  43770. @throws IOException]]>
  43771. </doc>
  43772. </method>
  43773. <method name="createAllSymlink"
  43774. abstract="false" native="false" synchronized="false"
  43775. static="true" final="false" visibility="public"
  43776. deprecated="Internal to MapReduce framework. Use DistributedCacheManager
  43777. instead.">
  43778. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43779. <param name="jobCacheDir" type="java.io.File"/>
  43780. <param name="workDir" type="java.io.File"/>
  43781. <exception name="IOException" type="java.io.IOException"/>
  43782. <doc>
  43783. <![CDATA[This method create symlinks for all files in a given dir in another directory
  43784. @param conf the configuration
  43785. @param jobCacheDir the target directory for creating symlinks
  43786. @param workDir the directory in which the symlinks are created
  43787. @throws IOException
  43788. @deprecated Internal to MapReduce framework. Use DistributedCacheManager
  43789. instead.]]>
  43790. </doc>
  43791. </method>
  43792. <method name="setCacheArchives"
  43793. abstract="false" native="false" synchronized="false"
  43794. static="true" final="false" visibility="public"
  43795. deprecated="not deprecated">
  43796. <param name="archives" type="java.net.URI[]"/>
  43797. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43798. <doc>
  43799. <![CDATA[Set the configuration with the given set of archives. Intended
  43800. to be used by user code.
  43801. @param archives The list of archives that need to be localized
  43802. @param conf Configuration which will be changed]]>
  43803. </doc>
  43804. </method>
  43805. <method name="setCacheFiles"
  43806. abstract="false" native="false" synchronized="false"
  43807. static="true" final="false" visibility="public"
  43808. deprecated="not deprecated">
  43809. <param name="files" type="java.net.URI[]"/>
  43810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43811. <doc>
  43812. <![CDATA[Set the configuration with the given set of files. Intended to be
  43813. used by user code.
  43814. @param files The list of files that need to be localized
  43815. @param conf Configuration which will be changed]]>
  43816. </doc>
  43817. </method>
  43818. <method name="getCacheArchives" return="java.net.URI[]"
  43819. abstract="false" native="false" synchronized="false"
  43820. static="true" final="false" visibility="public"
  43821. deprecated="not deprecated">
  43822. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43823. <exception name="IOException" type="java.io.IOException"/>
  43824. <doc>
  43825. <![CDATA[Get cache archives set in the Configuration. Used by
  43826. internal DistributedCache and MapReduce code.
  43827. @param conf The configuration which contains the archives
  43828. @return An array of the caches set in the Configuration
  43829. @throws IOException]]>
  43830. </doc>
  43831. </method>
  43832. <method name="getCacheFiles" return="java.net.URI[]"
  43833. abstract="false" native="false" synchronized="false"
  43834. static="true" final="false" visibility="public"
  43835. deprecated="not deprecated">
  43836. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43837. <exception name="IOException" type="java.io.IOException"/>
  43838. <doc>
  43839. <![CDATA[Get cache files set in the Configuration. Used by internal
  43840. DistributedCache and MapReduce code.
  43841. @param conf The configuration which contains the files
  43842. @return Am array of the files set in the Configuration
  43843. @throws IOException]]>
  43844. </doc>
  43845. </method>
  43846. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  43847. abstract="false" native="false" synchronized="false"
  43848. static="true" final="false" visibility="public"
  43849. deprecated="not deprecated">
  43850. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43851. <exception name="IOException" type="java.io.IOException"/>
  43852. <doc>
  43853. <![CDATA[Return the path array of the localized caches. Intended to be used
  43854. by user code.
  43855. @param conf Configuration that contains the localized archives
  43856. @return A path array of localized caches
  43857. @throws IOException]]>
  43858. </doc>
  43859. </method>
  43860. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  43861. abstract="false" native="false" synchronized="false"
  43862. static="true" final="false" visibility="public"
  43863. deprecated="not deprecated">
  43864. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43865. <exception name="IOException" type="java.io.IOException"/>
  43866. <doc>
  43867. <![CDATA[Return the path array of the localized files. Intended to be used
  43868. by user code.
  43869. @param conf Configuration that contains the localized files
  43870. @return A path array of localized files
  43871. @throws IOException]]>
  43872. </doc>
  43873. </method>
  43874. <method name="getArchiveTimestamps" return="long[]"
  43875. abstract="false" native="false" synchronized="false"
  43876. static="true" final="false" visibility="public"
  43877. deprecated="not deprecated">
  43878. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43879. <doc>
  43880. <![CDATA[Get the timestamps of the archives. Used by internal
  43881. DistributedCache and MapReduce code.
  43882. @param conf The configuration which stored the timestamps
  43883. @return a long array of timestamps
  43884. @throws IOException]]>
  43885. </doc>
  43886. </method>
  43887. <method name="getFileTimestamps" return="long[]"
  43888. abstract="false" native="false" synchronized="false"
  43889. static="true" final="false" visibility="public"
  43890. deprecated="not deprecated">
  43891. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43892. <doc>
  43893. <![CDATA[Get the timestamps of the files. Used by internal
  43894. DistributedCache and MapReduce code.
  43895. @param conf The configuration which stored the timestamps
  43896. @return a long array of timestamps
  43897. @throws IOException]]>
  43898. </doc>
  43899. </method>
  43900. <method name="setArchiveTimestamps"
  43901. abstract="false" native="false" synchronized="false"
  43902. static="true" final="false" visibility="public"
  43903. deprecated="not deprecated">
  43904. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43905. <param name="timestamps" type="java.lang.String"/>
  43906. <doc>
  43907. <![CDATA[This is to check the timestamp of the archives to be localized.
  43908. Used by internal MapReduce code.
  43909. @param conf Configuration which stores the timestamp's
  43910. @param timestamps comma separated list of timestamps of archives.
  43911. The order should be the same as the order in which the archives are added.]]>
  43912. </doc>
  43913. </method>
  43914. <method name="setFileTimestamps"
  43915. abstract="false" native="false" synchronized="false"
  43916. static="true" final="false" visibility="public"
  43917. deprecated="not deprecated">
  43918. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43919. <param name="timestamps" type="java.lang.String"/>
  43920. <doc>
  43921. <![CDATA[This is to check the timestamp of the files to be localized.
  43922. Used by internal MapReduce code.
  43923. @param conf Configuration which stores the timestamp's
  43924. @param timestamps comma separated list of timestamps of files.
  43925. The order should be the same as the order in which the files are added.]]>
  43926. </doc>
  43927. </method>
  43928. <method name="setLocalArchives"
  43929. abstract="false" native="false" synchronized="false"
  43930. static="true" final="false" visibility="public"
  43931. deprecated="not deprecated">
  43932. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43933. <param name="str" type="java.lang.String"/>
  43934. <doc>
  43935. <![CDATA[Set the conf to contain the location for localized archives. Used
  43936. by internal DistributedCache code.
  43937. @param conf The conf to modify to contain the localized caches
  43938. @param str a comma separated list of local archives]]>
  43939. </doc>
  43940. </method>
  43941. <method name="setLocalFiles"
  43942. abstract="false" native="false" synchronized="false"
  43943. static="true" final="false" visibility="public"
  43944. deprecated="not deprecated">
  43945. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43946. <param name="str" type="java.lang.String"/>
  43947. <doc>
  43948. <![CDATA[Set the conf to contain the location for localized files. Used
  43949. by internal DistributedCache code.
  43950. @param conf The conf to modify to contain the localized caches
  43951. @param str a comma separated list of local files]]>
  43952. </doc>
  43953. </method>
  43954. <method name="addLocalArchives"
  43955. abstract="false" native="false" synchronized="false"
  43956. static="true" final="false" visibility="public"
  43957. deprecated="not deprecated">
  43958. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43959. <param name="str" type="java.lang.String"/>
  43960. <doc>
  43961. <![CDATA[Add a archive that has been localized to the conf. Used
  43962. by internal DistributedCache code.
  43963. @param conf The conf to modify to contain the localized caches
  43964. @param str a comma separated list of local archives]]>
  43965. </doc>
  43966. </method>
  43967. <method name="addLocalFiles"
  43968. abstract="false" native="false" synchronized="false"
  43969. static="true" final="false" visibility="public"
  43970. deprecated="not deprecated">
  43971. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43972. <param name="str" type="java.lang.String"/>
  43973. <doc>
  43974. <![CDATA[Add a file that has been localized to the conf.. Used
  43975. by internal DistributedCache code.
  43976. @param conf The conf to modify to contain the localized caches
  43977. @param str a comma separated list of local files]]>
  43978. </doc>
  43979. </method>
  43980. <method name="addCacheArchive"
  43981. abstract="false" native="false" synchronized="false"
  43982. static="true" final="false" visibility="public"
  43983. deprecated="not deprecated">
  43984. <param name="uri" type="java.net.URI"/>
  43985. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43986. <doc>
  43987. <![CDATA[Add a archives to be localized to the conf. Intended to
  43988. be used by user code.
  43989. @param uri The uri of the cache to be localized
  43990. @param conf Configuration to add the cache to]]>
  43991. </doc>
  43992. </method>
  43993. <method name="addCacheFile"
  43994. abstract="false" native="false" synchronized="false"
  43995. static="true" final="false" visibility="public"
  43996. deprecated="not deprecated">
  43997. <param name="uri" type="java.net.URI"/>
  43998. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43999. <doc>
  44000. <![CDATA[Add a file to be localized to the conf. Intended
  44001. to be used by user code.
  44002. @param uri The uri of the cache to be localized
  44003. @param conf Configuration to add the cache to]]>
  44004. </doc>
  44005. </method>
  44006. <method name="addFileToClassPath"
  44007. abstract="false" native="false" synchronized="false"
  44008. static="true" final="false" visibility="public"
  44009. deprecated="Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  44010. instead. The {@code FileSystem} should be obtained within an
  44011. appropriate {@code doAs}.">
  44012. <param name="file" type="org.apache.hadoop.fs.Path"/>
  44013. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44014. <exception name="IOException" type="java.io.IOException"/>
  44015. <doc>
  44016. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  44017. to cache as well. Intended to be used by user code.
  44018. @deprecated
  44019. Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  44020. instead. The {@code FileSystem} should be obtained within an
  44021. appropriate {@code doAs}.
  44022. @param file Path of the file to be added
  44023. @param conf Configuration that contains the classpath setting]]>
  44024. </doc>
  44025. </method>
  44026. <method name="addFileToClassPath"
  44027. abstract="false" native="false" synchronized="false"
  44028. static="true" final="false" visibility="public"
  44029. deprecated="not deprecated">
  44030. <param name="file" type="org.apache.hadoop.fs.Path"/>
  44031. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44032. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44033. <exception name="IOException" type="java.io.IOException"/>
  44034. <doc>
  44035. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  44036. to cache as well. Intended to be used by user code.
  44037. @param file Path of the file to be added
  44038. @param conf Configuration that contains the classpath setting
  44039. @param fs FileSystem with respect to which {@code archivefile} should
  44040. be interpreted.]]>
  44041. </doc>
  44042. </method>
  44043. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  44044. abstract="false" native="false" synchronized="false"
  44045. static="true" final="false" visibility="public"
  44046. deprecated="not deprecated">
  44047. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44048. <doc>
  44049. <![CDATA[Get the file entries in classpath as an array of Path.
  44050. Used by internal DistributedCache code.
  44051. @param conf Configuration that contains the classpath setting]]>
  44052. </doc>
  44053. </method>
  44054. <method name="addArchiveToClassPath"
  44055. abstract="false" native="false" synchronized="false"
  44056. static="true" final="false" visibility="public"
  44057. deprecated="Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  44058. instead. The {@code FileSystem} should be obtained within an
  44059. appropriate {@code doAs}.">
  44060. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  44061. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44062. <exception name="IOException" type="java.io.IOException"/>
  44063. <doc>
  44064. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  44065. archive to cache as well. Intended to be used by user code.
  44066. @deprecated
  44067. Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  44068. instead. The {@code FileSystem} should be obtained within an
  44069. appropriate {@code doAs}.
  44070. @param archive Path of the archive to be added
  44071. @param conf Configuration that contains the classpath setting]]>
  44072. </doc>
  44073. </method>
  44074. <method name="addArchiveToClassPath"
  44075. abstract="false" native="false" synchronized="false"
  44076. static="true" final="false" visibility="public"
  44077. deprecated="not deprecated">
  44078. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  44079. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44080. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44081. <exception name="IOException" type="java.io.IOException"/>
  44082. <doc>
  44083. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  44084. archive to cache as well. Intended to be used by user code.
  44085. @param archive Path of the archive to be added
  44086. @param conf Configuration that contains the classpath setting
  44087. @param fs FileSystem with respect to which {@code archive} should be interpreted.]]>
  44088. </doc>
  44089. </method>
  44090. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  44091. abstract="false" native="false" synchronized="false"
  44092. static="true" final="false" visibility="public"
  44093. deprecated="not deprecated">
  44094. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44095. <doc>
  44096. <![CDATA[Get the archive entries in classpath as an array of Path.
  44097. Used by internal DistributedCache code.
  44098. @param conf Configuration that contains the classpath setting]]>
  44099. </doc>
  44100. </method>
  44101. <method name="createSymlink"
  44102. abstract="false" native="false" synchronized="false"
  44103. static="true" final="false" visibility="public"
  44104. deprecated="not deprecated">
  44105. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44106. <doc>
  44107. <![CDATA[This method allows you to create symlinks in the current working directory
  44108. of the task to all the cache files/archives.
  44109. Intended to be used by user code.
  44110. @param conf the jobconf]]>
  44111. </doc>
  44112. </method>
  44113. <method name="getSymlink" return="boolean"
  44114. abstract="false" native="false" synchronized="false"
  44115. static="true" final="false" visibility="public"
  44116. deprecated="not deprecated">
  44117. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44118. <doc>
  44119. <![CDATA[This method checks to see if symlinks are to be create for the
  44120. localized cache files in the current working directory
  44121. Used by internal DistributedCache code.
  44122. @param conf the jobconf
  44123. @return true if symlinks are to be created- else return false]]>
  44124. </doc>
  44125. </method>
  44126. <method name="checkURIs" return="boolean"
  44127. abstract="false" native="false" synchronized="false"
  44128. static="true" final="false" visibility="public"
  44129. deprecated="not deprecated">
  44130. <param name="uriFiles" type="java.net.URI[]"/>
  44131. <param name="uriArchives" type="java.net.URI[]"/>
  44132. <doc>
  44133. <![CDATA[This method checks if there is a conflict in the fragment names
  44134. of the uris. Also makes sure that each uri has a fragment. It
  44135. is only to be called if you want to create symlinks for
  44136. the various archives and files. May be used by user code.
  44137. @param uriFiles The uri array of urifiles
  44138. @param uriArchives the uri array of uri archives]]>
  44139. </doc>
  44140. </method>
  44141. <field name="CACHE_FILES_SIZES" type="java.lang.String"
  44142. transient="false" volatile="false"
  44143. static="true" final="true" visibility="public"
  44144. deprecated="not deprecated">
  44145. <doc>
  44146. <![CDATA[Warning: {@link #CACHE_FILES_SIZES} is not a *public* constant.]]>
  44147. </doc>
  44148. </field>
  44149. <field name="CACHE_ARCHIVES_SIZES" type="java.lang.String"
  44150. transient="false" volatile="false"
  44151. static="true" final="true" visibility="public"
  44152. deprecated="not deprecated">
  44153. <doc>
  44154. <![CDATA[Warning: {@link #CACHE_ARCHIVES_SIZES} is not a *public* constant.]]>
  44155. </doc>
  44156. </field>
  44157. <field name="CACHE_ARCHIVES_TIMESTAMPS" type="java.lang.String"
  44158. transient="false" volatile="false"
  44159. static="true" final="true" visibility="public"
  44160. deprecated="not deprecated">
  44161. <doc>
  44162. <![CDATA[Warning: {@link #CACHE_ARCHIVES_TIMESTAMPS} is not a *public* constant.]]>
  44163. </doc>
  44164. </field>
  44165. <field name="CACHE_FILES_TIMESTAMPS" type="java.lang.String"
  44166. transient="false" volatile="false"
  44167. static="true" final="true" visibility="public"
  44168. deprecated="not deprecated">
  44169. <doc>
  44170. <![CDATA[Warning: {@link #CACHE_FILES_TIMESTAMPS} is not a *public* constant.]]>
  44171. </doc>
  44172. </field>
  44173. <field name="CACHE_ARCHIVES" type="java.lang.String"
  44174. transient="false" volatile="false"
  44175. static="true" final="true" visibility="public"
  44176. deprecated="not deprecated">
  44177. <doc>
  44178. <![CDATA[Warning: {@link #CACHE_ARCHIVES} is not a *public* constant.]]>
  44179. </doc>
  44180. </field>
  44181. <field name="CACHE_FILES" type="java.lang.String"
  44182. transient="false" volatile="false"
  44183. static="true" final="true" visibility="public"
  44184. deprecated="not deprecated">
  44185. <doc>
  44186. <![CDATA[Warning: {@link #CACHE_FILES} is not a *public* constant.]]>
  44187. </doc>
  44188. </field>
  44189. <field name="CACHE_LOCALARCHIVES" type="java.lang.String"
  44190. transient="false" volatile="false"
  44191. static="true" final="true" visibility="public"
  44192. deprecated="not deprecated">
  44193. <doc>
  44194. <![CDATA[Warning: {@link #CACHE_LOCALARCHIVES} is not a *public* constant.]]>
  44195. </doc>
  44196. </field>
  44197. <field name="CACHE_LOCALFILES" type="java.lang.String"
  44198. transient="false" volatile="false"
  44199. static="true" final="true" visibility="public"
  44200. deprecated="not deprecated">
  44201. <doc>
  44202. <![CDATA[Warning: {@link #CACHE_LOCALFILES} is not a *public* constant.]]>
  44203. </doc>
  44204. </field>
  44205. <field name="CACHE_SYMLINK" type="java.lang.String"
  44206. transient="false" volatile="false"
  44207. static="true" final="true" visibility="public"
  44208. deprecated="not deprecated">
  44209. <doc>
  44210. <![CDATA[Warning: {@link #CACHE_SYMLINK} is not a *public* constant.]]>
  44211. </doc>
  44212. </field>
  44213. <doc>
  44214. <![CDATA[Distribute application-specific large, read-only files efficiently.
  44215. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  44216. framework to cache files (text, archives, jars etc.) needed by applications.
  44217. </p>
  44218. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  44219. via the {@link org.apache.hadoop.mapred.JobConf}.
  44220. The <code>DistributedCache</code> assumes that the
  44221. files specified via hdfs:// urls are already present on the
  44222. {@link FileSystem} at the path specified by the url.</p>
  44223. <p>The framework will copy the necessary files on to the slave node before
  44224. any tasks for the job are executed on that node. Its efficiency stems from
  44225. the fact that the files are only copied once per job and the ability to
  44226. cache archives which are un-archived on the slaves.</p>
  44227. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  44228. data/text files and/or more complex types such as archives, jars etc.
  44229. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  44230. Jars may be optionally added to the classpath of the tasks, a rudimentary
  44231. software distribution mechanism. Files have execution permissions.
  44232. Optionally users can also direct it to symlink the distributed cache file(s)
  44233. into the working directory of the task.</p>
  44234. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  44235. files. Clearly the cache files should not be modified by the application
  44236. or externally while the job is executing.</p>
  44237. <p>Here is an illustrative example on how to use the
  44238. <code>DistributedCache</code>:</p>
  44239. <p><blockquote><pre>
  44240. // Setting up the cache for the application
  44241. 1. Copy the requisite files to the <code>FileSystem</code>:
  44242. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  44243. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  44244. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  44245. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  44246. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  44247. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  44248. 2. Setup the application's <code>JobConf</code>:
  44249. JobConf job = new JobConf();
  44250. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  44251. job);
  44252. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  44253. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  44254. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  44255. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  44256. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  44257. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  44258. or {@link org.apache.hadoop.mapred.Reducer}:
  44259. public static class MapClass extends MapReduceBase
  44260. implements Mapper&lt;K, V, K, V&gt; {
  44261. private Path[] localArchives;
  44262. private Path[] localFiles;
  44263. public void configure(JobConf job) {
  44264. // Get the cached archives/files
  44265. localArchives = DistributedCache.getLocalCacheArchives(job);
  44266. localFiles = DistributedCache.getLocalCacheFiles(job);
  44267. }
  44268. public void map(K key, V value,
  44269. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  44270. throws IOException {
  44271. // Use data from the cached archives/files here
  44272. // ...
  44273. // ...
  44274. output.collect(k, v);
  44275. }
  44276. }
  44277. </pre></blockquote></p>
  44278. It is also very common to use the DistributedCache by using
  44279. {@link org.apache.hadoop.util.GenericOptionsParser}.
  44280. This class includes methods that should be used by users
  44281. (specifically those mentioned in the example above, as well
  44282. as {@link DistributedCache#addArchiveToClassPath(Path, Configuration)}),
  44283. as well as methods intended for use by the MapReduce framework
  44284. (e.g., {@link org.apache.hadoop.mapred.JobClient}). For implementation
  44285. details, see {@link TrackerDistributedCacheManager} and
  44286. {@link TaskDistributedCacheManager}.
  44287. @see TrackerDistributedCacheManager
  44288. @see TaskDistributedCacheManager
  44289. @see org.apache.hadoop.mapred.JobConf
  44290. @see org.apache.hadoop.mapred.JobClient]]>
  44291. </doc>
  44292. </class>
  44293. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  44294. <!-- start class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  44295. <class name="TaskDistributedCacheManager" extends="java.lang.Object"
  44296. abstract="false"
  44297. static="false" final="false" visibility="public"
  44298. deprecated="not deprecated">
  44299. <method name="setupCache"
  44300. abstract="false" native="false" synchronized="false"
  44301. static="false" final="false" visibility="public"
  44302. deprecated="not deprecated">
  44303. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  44304. <param name="publicCacheSubdir" type="java.lang.String"/>
  44305. <param name="privateCacheSubdir" type="java.lang.String"/>
  44306. <exception name="IOException" type="java.io.IOException"/>
  44307. <doc>
  44308. <![CDATA[Retrieve public distributed cache files into the local cache and updates
  44309. the task configuration (which has been passed in via the constructor).
  44310. The private distributed cache is just looked at and the paths where the
  44311. files/archives should go to is decided here. The actual localization is
  44312. done by {@link JobLocalizer}.
  44313. It is the caller's responsibility to re-write the task configuration XML
  44314. file, if necessary.]]>
  44315. </doc>
  44316. </method>
  44317. <method name="getClassPaths" return="java.util.List"
  44318. abstract="false" native="false" synchronized="false"
  44319. static="false" final="false" visibility="public"
  44320. deprecated="not deprecated">
  44321. <exception name="IOException" type="java.io.IOException"/>
  44322. <doc>
  44323. <![CDATA[Retrieves class paths (as local references) to add.
  44324. Should be called after setup().]]>
  44325. </doc>
  44326. </method>
  44327. <method name="release"
  44328. abstract="false" native="false" synchronized="false"
  44329. static="false" final="false" visibility="public"
  44330. deprecated="not deprecated">
  44331. <exception name="IOException" type="java.io.IOException"/>
  44332. <doc>
  44333. <![CDATA[Releases the cached files/archives, so that space
  44334. can be reclaimed by the {@link TrackerDistributedCacheManager}.]]>
  44335. </doc>
  44336. </method>
  44337. <method name="setSizes"
  44338. abstract="false" native="false" synchronized="false"
  44339. static="false" final="false" visibility="public"
  44340. deprecated="not deprecated">
  44341. <param name="sizes" type="long[]"/>
  44342. <exception name="IOException" type="java.io.IOException"/>
  44343. </method>
  44344. <method name="makeClassLoader" return="java.lang.ClassLoader"
  44345. abstract="false" native="false" synchronized="false"
  44346. static="false" final="false" visibility="public"
  44347. deprecated="not deprecated">
  44348. <param name="parent" type="java.lang.ClassLoader"/>
  44349. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  44350. <doc>
  44351. <![CDATA[Creates a class loader that includes the designated
  44352. files and archives.]]>
  44353. </doc>
  44354. </method>
  44355. <doc>
  44356. <![CDATA[Helper class of {@link TrackerDistributedCacheManager} that represents
  44357. the cached files of a single job.
  44358. <b>This class is internal to Hadoop, and should not be treated as a public
  44359. interface.</b>]]>
  44360. </doc>
  44361. </class>
  44362. <!-- end class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  44363. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  44364. <class name="TrackerDistributedCacheManager" extends="java.lang.Object"
  44365. abstract="false"
  44366. static="false" final="false" visibility="public"
  44367. deprecated="not deprecated">
  44368. <constructor name="TrackerDistributedCacheManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  44369. static="false" final="false" visibility="public"
  44370. deprecated="not deprecated">
  44371. <exception name="IOException" type="java.io.IOException"/>
  44372. </constructor>
  44373. <method name="downloadCacheObject" return="long"
  44374. abstract="false" native="false" synchronized="false"
  44375. static="true" final="false" visibility="public"
  44376. deprecated="not deprecated">
  44377. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44378. <param name="source" type="java.net.URI"/>
  44379. <param name="destination" type="org.apache.hadoop.fs.Path"/>
  44380. <param name="desiredTimestamp" type="long"/>
  44381. <param name="isArchive" type="boolean"/>
  44382. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  44383. <exception name="IOException" type="java.io.IOException"/>
  44384. <doc>
  44385. <![CDATA[Download a given path to the local file system.
  44386. @param conf the job's configuration
  44387. @param source the source to copy from
  44388. @param destination where to copy the file. must be local fs
  44389. @param desiredTimestamp the required modification timestamp of the source
  44390. @param isArchive is this an archive that should be expanded
  44391. @param permission the desired permissions of the file.
  44392. @return for archives, the number of bytes in the unpacked directory
  44393. @throws IOException]]>
  44394. </doc>
  44395. </method>
  44396. <method name="createAllSymlink"
  44397. abstract="false" native="false" synchronized="false"
  44398. static="true" final="false" visibility="public"
  44399. deprecated="not deprecated">
  44400. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44401. <param name="jobCacheDir" type="java.io.File"/>
  44402. <param name="workDir" type="java.io.File"/>
  44403. <exception name="IOException" type="java.io.IOException"/>
  44404. <doc>
  44405. <![CDATA[This method create symlinks for all files in a given dir in another
  44406. directory.
  44407. Should not be used outside of DistributedCache code.
  44408. @param conf the configuration
  44409. @param jobCacheDir the target directory for creating symlinks
  44410. @param workDir the directory in which the symlinks are created
  44411. @throws IOException]]>
  44412. </doc>
  44413. </method>
  44414. <method name="purgeCache"
  44415. abstract="false" native="false" synchronized="false"
  44416. static="false" final="false" visibility="public"
  44417. deprecated="not deprecated">
  44418. <doc>
  44419. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  44420. should only be used when the server is reinitializing, because the users
  44421. are going to lose their files.]]>
  44422. </doc>
  44423. </method>
  44424. <method name="newTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  44425. abstract="false" native="false" synchronized="false"
  44426. static="false" final="false" visibility="public"
  44427. deprecated="not deprecated">
  44428. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44429. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  44430. <exception name="IOException" type="java.io.IOException"/>
  44431. </method>
  44432. <method name="setArchiveSizes"
  44433. abstract="false" native="false" synchronized="false"
  44434. static="false" final="false" visibility="public"
  44435. deprecated="not deprecated">
  44436. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44437. <param name="sizes" type="long[]"/>
  44438. <exception name="IOException" type="java.io.IOException"/>
  44439. <doc>
  44440. <![CDATA[Set the sizes for any archives, files, or directories in the private
  44441. distributed cache.]]>
  44442. </doc>
  44443. </method>
  44444. <method name="removeTaskDistributedCacheManager"
  44445. abstract="false" native="false" synchronized="false"
  44446. static="false" final="false" visibility="public"
  44447. deprecated="not deprecated">
  44448. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44449. </method>
  44450. <method name="getTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  44451. abstract="false" native="false" synchronized="false"
  44452. static="false" final="false" visibility="protected"
  44453. deprecated="not deprecated">
  44454. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  44455. </method>
  44456. <method name="determineTimestamps"
  44457. abstract="false" native="false" synchronized="false"
  44458. static="true" final="false" visibility="public"
  44459. deprecated="not deprecated">
  44460. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  44461. <exception name="IOException" type="java.io.IOException"/>
  44462. <doc>
  44463. <![CDATA[Determines timestamps of files to be cached, and stores those
  44464. in the configuration. This is intended to be used internally by JobClient
  44465. after all cache files have been added.
  44466. This is an internal method!
  44467. @param job Configuration of a job.
  44468. @throws IOException]]>
  44469. </doc>
  44470. </method>
  44471. <method name="determineCacheVisibilities"
  44472. abstract="false" native="false" synchronized="false"
  44473. static="true" final="false" visibility="public"
  44474. deprecated="not deprecated">
  44475. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  44476. <exception name="IOException" type="java.io.IOException"/>
  44477. <doc>
  44478. <![CDATA[Determines the visibilities of the distributed cache files and
  44479. archives. The visibility of a cache path is "public" if the leaf component
  44480. has READ permissions for others, and the parent subdirs have
  44481. EXECUTE permissions for others
  44482. @param job
  44483. @throws IOException]]>
  44484. </doc>
  44485. </method>
  44486. <method name="getFileVisibilities" return="boolean[]"
  44487. abstract="false" native="false" synchronized="false"
  44488. static="true" final="false" visibility="public"
  44489. deprecated="not deprecated">
  44490. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44491. <doc>
  44492. <![CDATA[Get the booleans on whether the files are public or not. Used by
  44493. internal DistributedCache and MapReduce code.
  44494. @param conf The configuration which stored the timestamps
  44495. @return array of booleans
  44496. @throws IOException]]>
  44497. </doc>
  44498. </method>
  44499. <method name="getArchiveVisibilities" return="boolean[]"
  44500. abstract="false" native="false" synchronized="false"
  44501. static="true" final="false" visibility="public"
  44502. deprecated="not deprecated">
  44503. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44504. <doc>
  44505. <![CDATA[Get the booleans on whether the archives are public or not. Used by
  44506. internal DistributedCache and MapReduce code.
  44507. @param conf The configuration which stored the timestamps
  44508. @return array of booleans]]>
  44509. </doc>
  44510. </method>
  44511. <method name="getDelegationTokens"
  44512. abstract="false" native="false" synchronized="false"
  44513. static="true" final="false" visibility="public"
  44514. deprecated="not deprecated">
  44515. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  44516. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  44517. <exception name="IOException" type="java.io.IOException"/>
  44518. <doc>
  44519. <![CDATA[For each archive or cache file - get the corresponding delegation token
  44520. @param job
  44521. @param credentials
  44522. @throws IOException]]>
  44523. </doc>
  44524. </method>
  44525. <method name="validate"
  44526. abstract="false" native="false" synchronized="false"
  44527. static="true" final="false" visibility="public"
  44528. deprecated="not deprecated">
  44529. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44530. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  44531. <doc>
  44532. <![CDATA[This is part of the framework API. It's called within the job
  44533. submission code only, not by users. In the non-error case it has
  44534. no side effects and returns normally. If there's a URI in both
  44535. mapred.cache.files and mapred.cache.archives, it throws its
  44536. exception.
  44537. @param conf a {@link Configuration} to be cheked for duplication
  44538. in cached URIs
  44539. @throws InvalidJobConfException]]>
  44540. </doc>
  44541. </method>
  44542. <method name="startCleanupThread"
  44543. abstract="false" native="false" synchronized="false"
  44544. static="false" final="false" visibility="public"
  44545. deprecated="not deprecated">
  44546. <doc>
  44547. <![CDATA[Start the background thread]]>
  44548. </doc>
  44549. </method>
  44550. <method name="stopCleanupThread"
  44551. abstract="false" native="false" synchronized="false"
  44552. static="false" final="false" visibility="public"
  44553. deprecated="not deprecated">
  44554. <doc>
  44555. <![CDATA[Stop the background thread]]>
  44556. </doc>
  44557. </method>
  44558. <field name="baseDirManager" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager"
  44559. transient="false" volatile="false"
  44560. static="false" final="false" visibility="protected"
  44561. deprecated="not deprecated">
  44562. </field>
  44563. <field name="cleanupThread" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread"
  44564. transient="false" volatile="false"
  44565. static="false" final="false" visibility="protected"
  44566. deprecated="not deprecated">
  44567. </field>
  44568. <doc>
  44569. <![CDATA[Manages a single machine's instance of a cross-job
  44570. cache. This class would typically be instantiated
  44571. by a TaskTracker (or something that emulates it,
  44572. like LocalJobRunner).
  44573. <b>This class is internal to Hadoop, and should not be treated as a public
  44574. interface.</b>]]>
  44575. </doc>
  44576. </class>
  44577. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  44578. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  44579. <class name="TrackerDistributedCacheManager.BaseDirManager" extends="java.lang.Object"
  44580. abstract="false"
  44581. static="false" final="false" visibility="protected"
  44582. deprecated="not deprecated">
  44583. <constructor name="TrackerDistributedCacheManager.BaseDirManager"
  44584. static="false" final="false" visibility="protected"
  44585. deprecated="not deprecated">
  44586. </constructor>
  44587. <method name="deleteCacheInfoUpdate"
  44588. abstract="false" native="false" synchronized="false"
  44589. static="false" final="false" visibility="public"
  44590. deprecated="not deprecated">
  44591. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  44592. <doc>
  44593. <![CDATA[Decrement the size and sub directory count of the cache from baseDirSize
  44594. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  44595. @param cacheStatus cache status of the cache is deleted]]>
  44596. </doc>
  44597. </method>
  44598. <method name="addCacheInfoUpdate"
  44599. abstract="false" native="false" synchronized="false"
  44600. static="false" final="false" visibility="public"
  44601. deprecated="not deprecated">
  44602. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  44603. <doc>
  44604. <![CDATA[Update the maps baseDirSize and baseDirNumberSubDir when adding cache.
  44605. Increase the size and sub directory count of the cache from baseDirSize
  44606. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  44607. @param cacheStatus cache status of the cache is added]]>
  44608. </doc>
  44609. </method>
  44610. <doc>
  44611. <![CDATA[This class holds properties of each base directories and is responsible
  44612. for clean up unused cache files in base directories.]]>
  44613. </doc>
  44614. </class>
  44615. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  44616. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  44617. <class name="TrackerDistributedCacheManager.CleanupThread" extends="java.lang.Thread"
  44618. abstract="false"
  44619. static="false" final="false" visibility="protected"
  44620. deprecated="not deprecated">
  44621. <constructor name="TrackerDistributedCacheManager.CleanupThread" type="org.apache.hadoop.conf.Configuration"
  44622. static="false" final="false" visibility="public"
  44623. deprecated="not deprecated">
  44624. </constructor>
  44625. <method name="stopRunning"
  44626. abstract="false" native="false" synchronized="false"
  44627. static="false" final="false" visibility="public"
  44628. deprecated="not deprecated">
  44629. </method>
  44630. <method name="run"
  44631. abstract="false" native="false" synchronized="false"
  44632. static="false" final="false" visibility="public"
  44633. deprecated="not deprecated">
  44634. </method>
  44635. <method name="exitTaskTracker"
  44636. abstract="false" native="false" synchronized="false"
  44637. static="false" final="false" visibility="protected"
  44638. deprecated="not deprecated">
  44639. <param name="t" type="java.lang.Throwable"/>
  44640. <doc>
  44641. <![CDATA[Exit the task tracker because of a fatal error.]]>
  44642. </doc>
  44643. </method>
  44644. <doc>
  44645. <![CDATA[A thread to check and cleanup the unused files periodically]]>
  44646. </doc>
  44647. </class>
  44648. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  44649. </package>
  44650. <package name="org.apache.hadoop.mapred">
  44651. <!-- start interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  44652. <interface name="AdminOperationsProtocol" abstract="true"
  44653. static="false" final="false" visibility="public"
  44654. deprecated="not deprecated">
  44655. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  44656. <method name="refreshQueues"
  44657. abstract="false" native="false" synchronized="false"
  44658. static="false" final="false" visibility="public"
  44659. deprecated="not deprecated">
  44660. <exception name="IOException" type="java.io.IOException"/>
  44661. <doc>
  44662. <![CDATA[Refresh the queue acls in use currently.
  44663. Refresh the queues used by the jobtracker and scheduler.
  44664. Access control lists and queue states are refreshed.]]>
  44665. </doc>
  44666. </method>
  44667. <method name="refreshNodes"
  44668. abstract="false" native="false" synchronized="false"
  44669. static="false" final="false" visibility="public"
  44670. deprecated="not deprecated">
  44671. <exception name="IOException" type="java.io.IOException"/>
  44672. <doc>
  44673. <![CDATA[Refresh the node list at the {@link JobTracker}]]>
  44674. </doc>
  44675. </method>
  44676. <method name="setSafeMode" return="boolean"
  44677. abstract="false" native="false" synchronized="false"
  44678. static="false" final="false" visibility="public"
  44679. deprecated="not deprecated">
  44680. <param name="safeModeAction" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"/>
  44681. <exception name="IOException" type="java.io.IOException"/>
  44682. <doc>
  44683. <![CDATA[Set safe mode for the JobTracker.
  44684. @param safeModeAction safe mode action
  44685. @return current safemode
  44686. @throws IOException]]>
  44687. </doc>
  44688. </method>
  44689. <field name="versionID" type="long"
  44690. transient="false" volatile="false"
  44691. static="true" final="true" visibility="public"
  44692. deprecated="not deprecated">
  44693. <doc>
  44694. <![CDATA[Version 1: Initial version. Added refreshQueueAcls.
  44695. Version 2: Added node refresh facility
  44696. Version 3: Changed refreshQueueAcls to refreshQueues]]>
  44697. </doc>
  44698. </field>
  44699. <doc>
  44700. <![CDATA[Protocol for admin operations. This is a framework-public interface and is
  44701. NOT_TO_BE_USED_BY_USERS_DIRECTLY.]]>
  44702. </doc>
  44703. </interface>
  44704. <!-- end interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  44705. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  44706. <class name="ClusterStatus" extends="java.lang.Object"
  44707. abstract="false"
  44708. static="false" final="false" visibility="public"
  44709. deprecated="not deprecated">
  44710. <implements name="org.apache.hadoop.io.Writable"/>
  44711. <method name="getTaskTrackers" return="int"
  44712. abstract="false" native="false" synchronized="false"
  44713. static="false" final="false" visibility="public"
  44714. deprecated="not deprecated">
  44715. <doc>
  44716. <![CDATA[Get the number of active task trackers in the cluster. Includes
  44717. graylisted but not blacklisted trackers.
  44718. @return the number of active task trackers in the cluster.]]>
  44719. </doc>
  44720. </method>
  44721. <method name="getActiveTrackerNames" return="java.util.Collection"
  44722. abstract="false" native="false" synchronized="false"
  44723. static="false" final="false" visibility="public"
  44724. deprecated="not deprecated">
  44725. <doc>
  44726. <![CDATA[Get the names of active task trackers in the cluster. Includes
  44727. graylisted but not blacklisted trackers.
  44728. @return the active task trackers in the cluster.]]>
  44729. </doc>
  44730. </method>
  44731. <method name="getBlacklistedTrackerNames" return="java.util.Collection"
  44732. abstract="false" native="false" synchronized="false"
  44733. static="false" final="false" visibility="public"
  44734. deprecated="not deprecated">
  44735. <doc>
  44736. <![CDATA[Get the names of blacklisted task trackers in the cluster.
  44737. @return the blacklisted task trackers in the cluster.]]>
  44738. </doc>
  44739. </method>
  44740. <method name="getBlacklistedTrackers" return="int"
  44741. abstract="false" native="false" synchronized="false"
  44742. static="false" final="false" visibility="public"
  44743. deprecated="not deprecated">
  44744. <doc>
  44745. <![CDATA[Get the number of blacklisted task trackers in the cluster.
  44746. @return the number of blacklisted task trackers in the cluster.]]>
  44747. </doc>
  44748. </method>
  44749. <method name="getGraylistedTrackerNames" return="java.util.Collection"
  44750. abstract="false" native="false" synchronized="false"
  44751. static="false" final="false" visibility="public"
  44752. deprecated="not deprecated">
  44753. <doc>
  44754. <![CDATA[Get the names of graylisted task trackers in the cluster.
  44755. @return the graylisted task trackers in the cluster.]]>
  44756. </doc>
  44757. </method>
  44758. <method name="getGraylistedTrackers" return="int"
  44759. abstract="false" native="false" synchronized="false"
  44760. static="false" final="false" visibility="public"
  44761. deprecated="not deprecated">
  44762. <doc>
  44763. <![CDATA[Get the number of graylisted task trackers in the cluster.
  44764. @return the number of graylisted task trackers in the cluster.]]>
  44765. </doc>
  44766. </method>
  44767. <method name="getNumExcludedNodes" return="int"
  44768. abstract="false" native="false" synchronized="false"
  44769. static="false" final="false" visibility="public"
  44770. deprecated="not deprecated">
  44771. <doc>
  44772. <![CDATA[Get the number of excluded hosts in the cluster.
  44773. @return the number of excluded hosts in the cluster.]]>
  44774. </doc>
  44775. </method>
  44776. <method name="getTTExpiryInterval" return="long"
  44777. abstract="false" native="false" synchronized="false"
  44778. static="false" final="false" visibility="public"
  44779. deprecated="not deprecated">
  44780. <doc>
  44781. <![CDATA[Get the tasktracker expiry interval for the cluster
  44782. @return the expiry interval in msec]]>
  44783. </doc>
  44784. </method>
  44785. <method name="getMapTasks" return="int"
  44786. abstract="false" native="false" synchronized="false"
  44787. static="false" final="false" visibility="public"
  44788. deprecated="not deprecated">
  44789. <doc>
  44790. <![CDATA[Get the number of currently running map tasks in the cluster.
  44791. @return the number of currently running map tasks in the cluster.]]>
  44792. </doc>
  44793. </method>
  44794. <method name="getReduceTasks" return="int"
  44795. abstract="false" native="false" synchronized="false"
  44796. static="false" final="false" visibility="public"
  44797. deprecated="not deprecated">
  44798. <doc>
  44799. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  44800. @return the number of currently running reduce tasks in the cluster.]]>
  44801. </doc>
  44802. </method>
  44803. <method name="getMaxMapTasks" return="int"
  44804. abstract="false" native="false" synchronized="false"
  44805. static="false" final="false" visibility="public"
  44806. deprecated="not deprecated">
  44807. <doc>
  44808. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  44809. @return the maximum capacity for running map tasks in the cluster.]]>
  44810. </doc>
  44811. </method>
  44812. <method name="getMaxReduceTasks" return="int"
  44813. abstract="false" native="false" synchronized="false"
  44814. static="false" final="false" visibility="public"
  44815. deprecated="not deprecated">
  44816. <doc>
  44817. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  44818. @return the maximum capacity for running reduce tasks in the cluster.]]>
  44819. </doc>
  44820. </method>
  44821. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  44822. abstract="false" native="false" synchronized="false"
  44823. static="false" final="false" visibility="public"
  44824. deprecated="not deprecated">
  44825. <doc>
  44826. <![CDATA[Get the current state of the <code>JobTracker</code>,
  44827. as {@link JobTracker.State}
  44828. @return the current state of the <code>JobTracker</code>.]]>
  44829. </doc>
  44830. </method>
  44831. <method name="getUsedMemory" return="long"
  44832. abstract="false" native="false" synchronized="false"
  44833. static="false" final="false" visibility="public"
  44834. deprecated="not deprecated">
  44835. <doc>
  44836. <![CDATA[Get the total heap memory used by the <code>JobTracker</code>
  44837. @return the size of heap memory used by the <code>JobTracker</code>]]>
  44838. </doc>
  44839. </method>
  44840. <method name="getMaxMemory" return="long"
  44841. abstract="false" native="false" synchronized="false"
  44842. static="false" final="false" visibility="public"
  44843. deprecated="not deprecated">
  44844. <doc>
  44845. <![CDATA[Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
  44846. @return the configured size of max heap memory that can be used by the <code>JobTracker</code>]]>
  44847. </doc>
  44848. </method>
  44849. <method name="write"
  44850. abstract="false" native="false" synchronized="false"
  44851. static="false" final="false" visibility="public"
  44852. deprecated="not deprecated">
  44853. <param name="out" type="java.io.DataOutput"/>
  44854. <exception name="IOException" type="java.io.IOException"/>
  44855. </method>
  44856. <method name="readFields"
  44857. abstract="false" native="false" synchronized="false"
  44858. static="false" final="false" visibility="public"
  44859. deprecated="not deprecated">
  44860. <param name="in" type="java.io.DataInput"/>
  44861. <exception name="IOException" type="java.io.IOException"/>
  44862. </method>
  44863. <field name="UNINITIALIZED_MEMORY_VALUE" type="long"
  44864. transient="false" volatile="false"
  44865. static="true" final="true" visibility="public"
  44866. deprecated="not deprecated">
  44867. </field>
  44868. <doc>
  44869. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  44870. <p><code>ClusterStatus</code> provides clients with information such as:
  44871. <ol>
  44872. <li>
  44873. Size of the cluster.
  44874. </li>
  44875. <li>
  44876. Name of the trackers.
  44877. </li>
  44878. <li>
  44879. Task capacity of the cluster.
  44880. </li>
  44881. <li>
  44882. The number of currently running map & reduce tasks.
  44883. </li>
  44884. <li>
  44885. State of the <code>JobTracker</code>.
  44886. </li>
  44887. </ol></p>
  44888. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  44889. {@link JobClient#getClusterStatus()}.</p>
  44890. @see JobClient]]>
  44891. </doc>
  44892. </class>
  44893. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  44894. <!-- start class org.apache.hadoop.mapred.Counters -->
  44895. <class name="Counters" extends="java.lang.Object"
  44896. abstract="false"
  44897. static="false" final="false" visibility="public"
  44898. deprecated="not deprecated">
  44899. <implements name="org.apache.hadoop.io.Writable"/>
  44900. <implements name="java.lang.Iterable"/>
  44901. <constructor name="Counters"
  44902. static="false" final="false" visibility="public"
  44903. deprecated="not deprecated">
  44904. </constructor>
  44905. <method name="getGroupNames" return="java.util.Collection"
  44906. abstract="false" native="false" synchronized="true"
  44907. static="false" final="false" visibility="public"
  44908. deprecated="not deprecated">
  44909. <doc>
  44910. <![CDATA[Returns the names of all counter classes.
  44911. @return Set of counter names.]]>
  44912. </doc>
  44913. </method>
  44914. <method name="iterator" return="java.util.Iterator"
  44915. abstract="false" native="false" synchronized="true"
  44916. static="false" final="false" visibility="public"
  44917. deprecated="not deprecated">
  44918. </method>
  44919. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  44920. abstract="false" native="false" synchronized="true"
  44921. static="false" final="false" visibility="public"
  44922. deprecated="not deprecated">
  44923. <param name="groupName" type="java.lang.String"/>
  44924. <doc>
  44925. <![CDATA[Returns the named counter group, or an empty group if there is none
  44926. with the specified name.]]>
  44927. </doc>
  44928. </method>
  44929. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  44930. abstract="false" native="false" synchronized="true"
  44931. static="false" final="false" visibility="public"
  44932. deprecated="not deprecated">
  44933. <param name="key" type="java.lang.Enum"/>
  44934. <doc>
  44935. <![CDATA[Find the counter for the given enum. The same enum will always return the
  44936. same counter.
  44937. @param key the counter key
  44938. @return the matching counter object]]>
  44939. </doc>
  44940. </method>
  44941. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  44942. abstract="false" native="false" synchronized="true"
  44943. static="false" final="false" visibility="public"
  44944. deprecated="not deprecated">
  44945. <param name="group" type="java.lang.String"/>
  44946. <param name="name" type="java.lang.String"/>
  44947. <doc>
  44948. <![CDATA[Find a counter given the group and the name.
  44949. @param group the name of the group
  44950. @param name the internal name of the counter
  44951. @return the counter for that name]]>
  44952. </doc>
  44953. </method>
  44954. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  44955. abstract="false" native="false" synchronized="true"
  44956. static="false" final="false" visibility="public"
  44957. deprecated="deprecated, no comment">
  44958. <param name="group" type="java.lang.String"/>
  44959. <param name="id" type="int"/>
  44960. <param name="name" type="java.lang.String"/>
  44961. <doc>
  44962. <![CDATA[Find a counter by using strings
  44963. @param group the name of the group
  44964. @param id the id of the counter within the group (0 to N-1)
  44965. @param name the internal name of the counter
  44966. @return the counter for that name
  44967. @deprecated]]>
  44968. </doc>
  44969. </method>
  44970. <method name="incrCounter"
  44971. abstract="false" native="false" synchronized="true"
  44972. static="false" final="false" visibility="public"
  44973. deprecated="not deprecated">
  44974. <param name="key" type="java.lang.Enum"/>
  44975. <param name="amount" type="long"/>
  44976. <doc>
  44977. <![CDATA[Increments the specified counter by the specified amount, creating it if
  44978. it didn't already exist.
  44979. @param key identifies a counter
  44980. @param amount amount by which counter is to be incremented]]>
  44981. </doc>
  44982. </method>
  44983. <method name="incrCounter"
  44984. abstract="false" native="false" synchronized="true"
  44985. static="false" final="false" visibility="public"
  44986. deprecated="not deprecated">
  44987. <param name="group" type="java.lang.String"/>
  44988. <param name="counter" type="java.lang.String"/>
  44989. <param name="amount" type="long"/>
  44990. <doc>
  44991. <![CDATA[Increments the specified counter by the specified amount, creating it if
  44992. it didn't already exist.
  44993. @param group the name of the group
  44994. @param counter the internal name of the counter
  44995. @param amount amount by which counter is to be incremented]]>
  44996. </doc>
  44997. </method>
  44998. <method name="getCounter" return="long"
  44999. abstract="false" native="false" synchronized="true"
  45000. static="false" final="false" visibility="public"
  45001. deprecated="not deprecated">
  45002. <param name="key" type="java.lang.Enum"/>
  45003. <doc>
  45004. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  45005. does not exist.]]>
  45006. </doc>
  45007. </method>
  45008. <method name="incrAllCounters"
  45009. abstract="false" native="false" synchronized="true"
  45010. static="false" final="false" visibility="public"
  45011. deprecated="not deprecated">
  45012. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  45013. <doc>
  45014. <![CDATA[Increments multiple counters by their amounts in another Counters
  45015. instance.
  45016. @param other the other Counters instance]]>
  45017. </doc>
  45018. </method>
  45019. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  45020. abstract="false" native="false" synchronized="false"
  45021. static="true" final="false" visibility="public"
  45022. deprecated="not deprecated">
  45023. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  45024. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  45025. <doc>
  45026. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  45027. </doc>
  45028. </method>
  45029. <method name="size" return="int"
  45030. abstract="false" native="false" synchronized="true"
  45031. static="false" final="false" visibility="public"
  45032. deprecated="not deprecated">
  45033. <doc>
  45034. <![CDATA[Returns the total number of counters, by summing the number of counters
  45035. in each group.]]>
  45036. </doc>
  45037. </method>
  45038. <method name="write"
  45039. abstract="false" native="false" synchronized="true"
  45040. static="false" final="false" visibility="public"
  45041. deprecated="not deprecated">
  45042. <param name="out" type="java.io.DataOutput"/>
  45043. <exception name="IOException" type="java.io.IOException"/>
  45044. <doc>
  45045. <![CDATA[Write the set of groups.
  45046. The external format is:
  45047. #groups (groupName group)*
  45048. i.e. the number of groups followed by 0 or more groups, where each
  45049. group is of the form:
  45050. groupDisplayName #counters (false | true counter)*
  45051. where each counter is of the form:
  45052. name (false | true displayName) value]]>
  45053. </doc>
  45054. </method>
  45055. <method name="readFields"
  45056. abstract="false" native="false" synchronized="true"
  45057. static="false" final="false" visibility="public"
  45058. deprecated="not deprecated">
  45059. <param name="in" type="java.io.DataInput"/>
  45060. <exception name="IOException" type="java.io.IOException"/>
  45061. <doc>
  45062. <![CDATA[Read a set of groups.]]>
  45063. </doc>
  45064. </method>
  45065. <method name="log"
  45066. abstract="false" native="false" synchronized="false"
  45067. static="false" final="false" visibility="public"
  45068. deprecated="not deprecated">
  45069. <param name="log" type="org.apache.commons.logging.Log"/>
  45070. <doc>
  45071. <![CDATA[Logs the current counter values.
  45072. @param log The log to use.]]>
  45073. </doc>
  45074. </method>
  45075. <method name="toString" return="java.lang.String"
  45076. abstract="false" native="false" synchronized="true"
  45077. static="false" final="false" visibility="public"
  45078. deprecated="not deprecated">
  45079. <doc>
  45080. <![CDATA[Return textual representation of the counter values.]]>
  45081. </doc>
  45082. </method>
  45083. <method name="makeCompactString" return="java.lang.String"
  45084. abstract="false" native="false" synchronized="true"
  45085. static="false" final="false" visibility="public"
  45086. deprecated="not deprecated">
  45087. <doc>
  45088. <![CDATA[Convert a counters object into a single line that is easy to parse.
  45089. @return the string with "name=value" for each counter and separated by ","]]>
  45090. </doc>
  45091. </method>
  45092. <method name="makeEscapedCompactString" return="java.lang.String"
  45093. abstract="false" native="false" synchronized="true"
  45094. static="false" final="false" visibility="public"
  45095. deprecated="not deprecated">
  45096. <doc>
  45097. <![CDATA[Represent the counter in a textual format that can be converted back to
  45098. its object form
  45099. @return the string in the following format
  45100. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  45101. </doc>
  45102. </method>
  45103. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  45104. abstract="false" native="false" synchronized="false"
  45105. static="true" final="false" visibility="public"
  45106. deprecated="not deprecated">
  45107. <param name="compactString" type="java.lang.String"/>
  45108. <exception name="ParseException" type="java.text.ParseException"/>
  45109. <doc>
  45110. <![CDATA[Convert a stringified counter representation into a counter object. Note
  45111. that the counter can be recovered if its stringified using
  45112. {@link #makeEscapedCompactString()}.
  45113. @return a Counter]]>
  45114. </doc>
  45115. </method>
  45116. <method name="hashCode" return="int"
  45117. abstract="false" native="false" synchronized="true"
  45118. static="false" final="false" visibility="public"
  45119. deprecated="not deprecated">
  45120. </method>
  45121. <method name="equals" return="boolean"
  45122. abstract="false" native="false" synchronized="true"
  45123. static="false" final="false" visibility="public"
  45124. deprecated="not deprecated">
  45125. <param name="obj" type="java.lang.Object"/>
  45126. </method>
  45127. <field name="MAX_COUNTER_LIMIT" type="int"
  45128. transient="false" volatile="false"
  45129. static="true" final="false" visibility="public"
  45130. deprecated="not deprecated">
  45131. <doc>
  45132. <![CDATA[limit on counters]]>
  45133. </doc>
  45134. </field>
  45135. <field name="MAX_GROUP_LIMIT" type="int"
  45136. transient="false" volatile="false"
  45137. static="true" final="true" visibility="public"
  45138. deprecated="not deprecated">
  45139. <doc>
  45140. <![CDATA[the max groups allowed]]>
  45141. </doc>
  45142. </field>
  45143. <doc>
  45144. <![CDATA[A set of named counters.
  45145. <p><code>Counters</code> represent global counters, defined either by the
  45146. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  45147. any {@link Enum} type.</p>
  45148. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  45149. counters from a particular <code>Enum</code> class.]]>
  45150. </doc>
  45151. </class>
  45152. <!-- end class org.apache.hadoop.mapred.Counters -->
  45153. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  45154. <class name="Counters.Counter" extends="org.apache.hadoop.mapreduce.Counter"
  45155. abstract="false"
  45156. static="true" final="false" visibility="public"
  45157. deprecated="not deprecated">
  45158. <method name="setDisplayName"
  45159. abstract="false" native="false" synchronized="false"
  45160. static="false" final="false" visibility="public"
  45161. deprecated="not deprecated">
  45162. <param name="newName" type="java.lang.String"/>
  45163. </method>
  45164. <method name="makeEscapedCompactString" return="java.lang.String"
  45165. abstract="false" native="false" synchronized="true"
  45166. static="false" final="false" visibility="public"
  45167. deprecated="not deprecated">
  45168. <doc>
  45169. <![CDATA[Returns the compact stringified version of the counter in the format
  45170. [(actual-name)(display-name)(value)]]]>
  45171. </doc>
  45172. </method>
  45173. <method name="getCounter" return="long"
  45174. abstract="false" native="false" synchronized="true"
  45175. static="false" final="false" visibility="public"
  45176. deprecated="not deprecated">
  45177. <doc>
  45178. <![CDATA[What is the current value of this counter?
  45179. @return the current value]]>
  45180. </doc>
  45181. </method>
  45182. <doc>
  45183. <![CDATA[A counter record, comprising its name and value.]]>
  45184. </doc>
  45185. </class>
  45186. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  45187. <!-- start class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  45188. <class name="Counters.CountersExceededException" extends="java.lang.RuntimeException"
  45189. abstract="false"
  45190. static="true" final="false" visibility="public"
  45191. deprecated="not deprecated">
  45192. <constructor name="Counters.CountersExceededException" type="java.lang.String"
  45193. static="false" final="false" visibility="public"
  45194. deprecated="not deprecated">
  45195. </constructor>
  45196. <doc>
  45197. <![CDATA[Counter exception thrown when the number of counters exceed
  45198. the limit]]>
  45199. </doc>
  45200. </class>
  45201. <!-- end class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  45202. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  45203. <class name="Counters.Group" extends="java.lang.Object"
  45204. abstract="false"
  45205. static="false" final="false" visibility="public"
  45206. deprecated="not deprecated">
  45207. <implements name="org.apache.hadoop.io.Writable"/>
  45208. <implements name="java.lang.Iterable"/>
  45209. <method name="getName" return="java.lang.String"
  45210. abstract="false" native="false" synchronized="false"
  45211. static="false" final="false" visibility="public"
  45212. deprecated="not deprecated">
  45213. <doc>
  45214. <![CDATA[Returns raw name of the group. This is the name of the enum class
  45215. for this group of counters.]]>
  45216. </doc>
  45217. </method>
  45218. <method name="getDisplayName" return="java.lang.String"
  45219. abstract="false" native="false" synchronized="false"
  45220. static="false" final="false" visibility="public"
  45221. deprecated="not deprecated">
  45222. <doc>
  45223. <![CDATA[Returns localized name of the group. This is the same as getName() by
  45224. default, but different if an appropriate ResourceBundle is found.]]>
  45225. </doc>
  45226. </method>
  45227. <method name="setDisplayName"
  45228. abstract="false" native="false" synchronized="false"
  45229. static="false" final="false" visibility="public"
  45230. deprecated="not deprecated">
  45231. <param name="displayName" type="java.lang.String"/>
  45232. <doc>
  45233. <![CDATA[Set the display name]]>
  45234. </doc>
  45235. </method>
  45236. <method name="makeEscapedCompactString" return="java.lang.String"
  45237. abstract="false" native="false" synchronized="false"
  45238. static="false" final="false" visibility="public"
  45239. deprecated="not deprecated">
  45240. <doc>
  45241. <![CDATA[Returns the compact stringified version of the group in the format
  45242. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  45243. counters within.]]>
  45244. </doc>
  45245. </method>
  45246. <method name="hashCode" return="int"
  45247. abstract="false" native="false" synchronized="false"
  45248. static="false" final="false" visibility="public"
  45249. deprecated="not deprecated">
  45250. </method>
  45251. <method name="equals" return="boolean"
  45252. abstract="false" native="false" synchronized="true"
  45253. static="false" final="false" visibility="public"
  45254. deprecated="not deprecated">
  45255. <param name="obj" type="java.lang.Object"/>
  45256. <doc>
  45257. <![CDATA[Checks for (content) equality of Groups]]>
  45258. </doc>
  45259. </method>
  45260. <method name="getCounter" return="long"
  45261. abstract="false" native="false" synchronized="true"
  45262. static="false" final="false" visibility="public"
  45263. deprecated="not deprecated">
  45264. <param name="counterName" type="java.lang.String"/>
  45265. <doc>
  45266. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  45267. not exist.]]>
  45268. </doc>
  45269. </method>
  45270. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45271. abstract="false" native="false" synchronized="true"
  45272. static="false" final="false" visibility="public"
  45273. deprecated="use {@link #getCounter(String)} instead">
  45274. <param name="id" type="int"/>
  45275. <param name="name" type="java.lang.String"/>
  45276. <doc>
  45277. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  45278. @param id the numeric id of the counter within the group
  45279. @param name the internal counter name
  45280. @return the counter
  45281. @deprecated use {@link #getCounter(String)} instead]]>
  45282. </doc>
  45283. </method>
  45284. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  45285. abstract="false" native="false" synchronized="true"
  45286. static="false" final="false" visibility="public"
  45287. deprecated="not deprecated">
  45288. <param name="name" type="java.lang.String"/>
  45289. <doc>
  45290. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  45291. @param name the internal counter name
  45292. @return the counter]]>
  45293. </doc>
  45294. </method>
  45295. <method name="size" return="int"
  45296. abstract="false" native="false" synchronized="true"
  45297. static="false" final="false" visibility="public"
  45298. deprecated="not deprecated">
  45299. <doc>
  45300. <![CDATA[Returns the number of counters in this group.]]>
  45301. </doc>
  45302. </method>
  45303. <method name="write"
  45304. abstract="false" native="false" synchronized="true"
  45305. static="false" final="false" visibility="public"
  45306. deprecated="not deprecated">
  45307. <param name="out" type="java.io.DataOutput"/>
  45308. <exception name="IOException" type="java.io.IOException"/>
  45309. </method>
  45310. <method name="readFields"
  45311. abstract="false" native="false" synchronized="true"
  45312. static="false" final="false" visibility="public"
  45313. deprecated="not deprecated">
  45314. <param name="in" type="java.io.DataInput"/>
  45315. <exception name="IOException" type="java.io.IOException"/>
  45316. </method>
  45317. <method name="iterator" return="java.util.Iterator"
  45318. abstract="false" native="false" synchronized="true"
  45319. static="false" final="false" visibility="public"
  45320. deprecated="not deprecated">
  45321. </method>
  45322. <doc>
  45323. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  45324. counter {@link Enum} class.
  45325. <p><code>Group</code>handles localization of the class name and the
  45326. counter names.</p>]]>
  45327. </doc>
  45328. </class>
  45329. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  45330. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  45331. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  45332. abstract="false"
  45333. static="false" final="false" visibility="public"
  45334. deprecated="not deprecated">
  45335. <constructor name="DefaultJobHistoryParser"
  45336. static="false" final="false" visibility="public"
  45337. deprecated="not deprecated">
  45338. </constructor>
  45339. <method name="parseJobTasks"
  45340. abstract="false" native="false" synchronized="false"
  45341. static="true" final="false" visibility="public"
  45342. deprecated="not deprecated">
  45343. <param name="jobHistoryFile" type="java.lang.String"/>
  45344. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  45345. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  45346. <exception name="IOException" type="java.io.IOException"/>
  45347. <doc>
  45348. <![CDATA[Populates a JobInfo object from the job's history log file.
  45349. @param jobHistoryFile history file for this job.
  45350. @param job a precreated JobInfo object, should be non-null.
  45351. @param fs FileSystem where historyFile is present.
  45352. @throws IOException]]>
  45353. </doc>
  45354. </method>
  45355. <doc>
  45356. <![CDATA[Default parser for job history files. It creates object model from
  45357. job history file.]]>
  45358. </doc>
  45359. </class>
  45360. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  45361. <!-- start class org.apache.hadoop.mapred.DefaultTaskController -->
  45362. <class name="DefaultTaskController" extends="org.apache.hadoop.mapred.TaskController"
  45363. abstract="false"
  45364. static="false" final="false" visibility="public"
  45365. deprecated="not deprecated">
  45366. <constructor name="DefaultTaskController"
  45367. static="false" final="false" visibility="public"
  45368. deprecated="not deprecated">
  45369. </constructor>
  45370. <method name="setConf"
  45371. abstract="false" native="false" synchronized="false"
  45372. static="false" final="false" visibility="public"
  45373. deprecated="not deprecated">
  45374. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45375. </method>
  45376. <method name="createLogDir"
  45377. abstract="false" native="false" synchronized="false"
  45378. static="false" final="false" visibility="public"
  45379. deprecated="not deprecated">
  45380. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  45381. <param name="isCleanup" type="boolean"/>
  45382. <exception name="IOException" type="java.io.IOException"/>
  45383. </method>
  45384. <method name="launchTask" return="int"
  45385. abstract="false" native="false" synchronized="false"
  45386. static="false" final="false" visibility="public"
  45387. deprecated="not deprecated">
  45388. <param name="user" type="java.lang.String"/>
  45389. <param name="jobId" type="java.lang.String"/>
  45390. <param name="attemptId" type="java.lang.String"/>
  45391. <param name="setup" type="java.util.List"/>
  45392. <param name="jvmArguments" type="java.util.List"/>
  45393. <param name="currentWorkDirectory" type="java.io.File"/>
  45394. <param name="stdout" type="java.lang.String"/>
  45395. <param name="stderr" type="java.lang.String"/>
  45396. <exception name="IOException" type="java.io.IOException"/>
  45397. <doc>
  45398. <![CDATA[Create all of the directories for the task and launches the child jvm.
  45399. @param user the user name
  45400. @param attemptId the attempt id
  45401. @throws IOException]]>
  45402. </doc>
  45403. </method>
  45404. <method name="initializeJob"
  45405. abstract="false" native="false" synchronized="false"
  45406. static="false" final="false" visibility="public"
  45407. deprecated="not deprecated">
  45408. <param name="user" type="java.lang.String"/>
  45409. <param name="jobid" type="java.lang.String"/>
  45410. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  45411. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  45412. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  45413. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  45414. <exception name="IOException" type="java.io.IOException"/>
  45415. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45416. <doc>
  45417. <![CDATA[This routine initializes the local file system for running a job.
  45418. Details:
  45419. <ul>
  45420. <li>Copies the credentials file from the TaskTracker's private space to
  45421. the job's private space </li>
  45422. <li>Creates the job work directory and set
  45423. {@link TaskTracker#JOB_LOCAL_DIR} in the configuration</li>
  45424. <li>Downloads the job.jar, unjars it, and updates the configuration to
  45425. reflect the localized path of the job.jar</li>
  45426. <li>Creates a base JobConf in the job's private space</li>
  45427. <li>Sets up the distributed cache</li>
  45428. <li>Sets up the user logs directory for the job</li>
  45429. </ul>
  45430. This method must be invoked in the access control context of the job owner
  45431. user. This is because the distributed cache is also setup here and the
  45432. access to the hdfs files requires authentication tokens in case where
  45433. security is enabled.
  45434. @param user the user in question (the job owner)
  45435. @param jobid the ID of the job in question
  45436. @param credentials the path to the credentials file that the TaskTracker
  45437. downloaded
  45438. @param jobConf the path to the job configuration file that the TaskTracker
  45439. downloaded
  45440. @param taskTracker the connection to the task tracker
  45441. @throws IOException
  45442. @throws InterruptedException]]>
  45443. </doc>
  45444. </method>
  45445. <method name="signalTask"
  45446. abstract="false" native="false" synchronized="false"
  45447. static="false" final="false" visibility="public"
  45448. deprecated="not deprecated">
  45449. <param name="user" type="java.lang.String"/>
  45450. <param name="taskPid" type="int"/>
  45451. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  45452. </method>
  45453. <method name="deleteAsUser"
  45454. abstract="false" native="false" synchronized="false"
  45455. static="false" final="false" visibility="public"
  45456. deprecated="not deprecated">
  45457. <param name="user" type="java.lang.String"/>
  45458. <param name="subDir" type="java.lang.String"/>
  45459. <exception name="IOException" type="java.io.IOException"/>
  45460. <doc>
  45461. <![CDATA[Delete the user's files under all of the task tracker root directories.
  45462. @param user the user name
  45463. @param subDir the path relative to the user's subdirectory under
  45464. the task tracker root directories.
  45465. @throws IOException]]>
  45466. </doc>
  45467. </method>
  45468. <method name="deleteLogAsUser"
  45469. abstract="false" native="false" synchronized="false"
  45470. static="false" final="false" visibility="public"
  45471. deprecated="not deprecated">
  45472. <param name="user" type="java.lang.String"/>
  45473. <param name="subDir" type="java.lang.String"/>
  45474. <exception name="IOException" type="java.io.IOException"/>
  45475. <doc>
  45476. <![CDATA[Delete the user's files under the userlogs directory.
  45477. @param user the user to work as
  45478. @param subDir the path under the userlogs directory.
  45479. @throws IOException]]>
  45480. </doc>
  45481. </method>
  45482. <method name="truncateLogsAsUser"
  45483. abstract="false" native="false" synchronized="false"
  45484. static="false" final="false" visibility="public"
  45485. deprecated="not deprecated">
  45486. <param name="user" type="java.lang.String"/>
  45487. <param name="allAttempts" type="java.util.List"/>
  45488. <exception name="IOException" type="java.io.IOException"/>
  45489. </method>
  45490. <method name="setup"
  45491. abstract="false" native="false" synchronized="false"
  45492. static="false" final="false" visibility="public"
  45493. deprecated="not deprecated">
  45494. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  45495. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  45496. </method>
  45497. <doc>
  45498. <![CDATA[The default implementation for controlling tasks.
  45499. This class provides an implementation for launching and killing
  45500. tasks that need to be run as the tasktracker itself. Hence,
  45501. many of the initializing or cleanup methods are not required here.
  45502. <br/>
  45503. NOTE: This class is internal only class and not intended for users!!]]>
  45504. </doc>
  45505. </class>
  45506. <!-- end class org.apache.hadoop.mapred.DefaultTaskController -->
  45507. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  45508. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  45509. abstract="false"
  45510. static="false" final="false" visibility="public"
  45511. deprecated="not deprecated">
  45512. <constructor name="FileAlreadyExistsException"
  45513. static="false" final="false" visibility="public"
  45514. deprecated="not deprecated">
  45515. </constructor>
  45516. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  45517. static="false" final="false" visibility="public"
  45518. deprecated="not deprecated">
  45519. </constructor>
  45520. <doc>
  45521. <![CDATA[Used when target file already exists for any operation and
  45522. is not configured to be overwritten.]]>
  45523. </doc>
  45524. </class>
  45525. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  45526. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  45527. <class name="FileInputFormat" extends="java.lang.Object"
  45528. abstract="true"
  45529. static="false" final="false" visibility="public"
  45530. deprecated="not deprecated">
  45531. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  45532. <constructor name="FileInputFormat"
  45533. static="false" final="false" visibility="public"
  45534. deprecated="not deprecated">
  45535. </constructor>
  45536. <method name="setMinSplitSize"
  45537. abstract="false" native="false" synchronized="false"
  45538. static="false" final="false" visibility="protected"
  45539. deprecated="not deprecated">
  45540. <param name="minSplitSize" type="long"/>
  45541. </method>
  45542. <method name="isSplitable" return="boolean"
  45543. abstract="false" native="false" synchronized="false"
  45544. static="false" final="false" visibility="protected"
  45545. deprecated="not deprecated">
  45546. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  45547. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  45548. <doc>
  45549. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  45550. stream compressed, it will not be.
  45551. <code>FileInputFormat</code> implementations can override this and return
  45552. <code>false</code> to ensure that individual input files are never split-up
  45553. so that {@link Mapper}s process entire files.
  45554. @param fs the file system that the file is on
  45555. @param filename the file name to check
  45556. @return is this file splitable?]]>
  45557. </doc>
  45558. </method>
  45559. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  45560. abstract="true" native="false" synchronized="false"
  45561. static="false" final="false" visibility="public"
  45562. deprecated="not deprecated">
  45563. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  45564. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45565. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  45566. <exception name="IOException" type="java.io.IOException"/>
  45567. </method>
  45568. <method name="setInputPathFilter"
  45569. abstract="false" native="false" synchronized="false"
  45570. static="true" final="false" visibility="public"
  45571. deprecated="not deprecated">
  45572. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45573. <param name="filter" type="java.lang.Class"/>
  45574. <doc>
  45575. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  45576. @param filter the PathFilter class use for filtering the input paths.]]>
  45577. </doc>
  45578. </method>
  45579. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  45580. abstract="false" native="false" synchronized="false"
  45581. static="true" final="false" visibility="public"
  45582. deprecated="not deprecated">
  45583. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45584. <doc>
  45585. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  45586. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  45587. </doc>
  45588. </method>
  45589. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  45590. abstract="false" native="false" synchronized="false"
  45591. static="false" final="false" visibility="protected"
  45592. deprecated="not deprecated">
  45593. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45594. <exception name="IOException" type="java.io.IOException"/>
  45595. <doc>
  45596. <![CDATA[List input directories.
  45597. Subclasses may override to, e.g., select only files matching a regular
  45598. expression.
  45599. @param job the job to list input paths for
  45600. @return array of FileStatus objects
  45601. @throws IOException if zero items.]]>
  45602. </doc>
  45603. </method>
  45604. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  45605. abstract="false" native="false" synchronized="false"
  45606. static="false" final="false" visibility="public"
  45607. deprecated="not deprecated">
  45608. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45609. <param name="numSplits" type="int"/>
  45610. <exception name="IOException" type="java.io.IOException"/>
  45611. <doc>
  45612. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  45613. they're too big.]]>
  45614. </doc>
  45615. </method>
  45616. <method name="computeSplitSize" return="long"
  45617. abstract="false" native="false" synchronized="false"
  45618. static="false" final="false" visibility="protected"
  45619. deprecated="not deprecated">
  45620. <param name="goalSize" type="long"/>
  45621. <param name="minSize" type="long"/>
  45622. <param name="blockSize" type="long"/>
  45623. </method>
  45624. <method name="getBlockIndex" return="int"
  45625. abstract="false" native="false" synchronized="false"
  45626. static="false" final="false" visibility="protected"
  45627. deprecated="not deprecated">
  45628. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  45629. <param name="offset" type="long"/>
  45630. </method>
  45631. <method name="setInputPaths"
  45632. abstract="false" native="false" synchronized="false"
  45633. static="true" final="false" visibility="public"
  45634. deprecated="not deprecated">
  45635. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45636. <param name="commaSeparatedPaths" type="java.lang.String"/>
  45637. <doc>
  45638. <![CDATA[Sets the given comma separated paths as the list of inputs
  45639. for the map-reduce job.
  45640. @param conf Configuration of the job
  45641. @param commaSeparatedPaths Comma separated paths to be set as
  45642. the list of inputs for the map-reduce job.]]>
  45643. </doc>
  45644. </method>
  45645. <method name="addInputPaths"
  45646. abstract="false" native="false" synchronized="false"
  45647. static="true" final="false" visibility="public"
  45648. deprecated="not deprecated">
  45649. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45650. <param name="commaSeparatedPaths" type="java.lang.String"/>
  45651. <doc>
  45652. <![CDATA[Add the given comma separated paths to the list of inputs for
  45653. the map-reduce job.
  45654. @param conf The configuration of the job
  45655. @param commaSeparatedPaths Comma separated paths to be added to
  45656. the list of inputs for the map-reduce job.]]>
  45657. </doc>
  45658. </method>
  45659. <method name="setInputPaths"
  45660. abstract="false" native="false" synchronized="false"
  45661. static="true" final="false" visibility="public"
  45662. deprecated="not deprecated">
  45663. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45664. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  45665. <doc>
  45666. <![CDATA[Set the array of {@link Path}s as the list of inputs
  45667. for the map-reduce job.
  45668. @param conf Configuration of the job.
  45669. @param inputPaths the {@link Path}s of the input directories/files
  45670. for the map-reduce job.]]>
  45671. </doc>
  45672. </method>
  45673. <method name="addInputPath"
  45674. abstract="false" native="false" synchronized="false"
  45675. static="true" final="false" visibility="public"
  45676. deprecated="not deprecated">
  45677. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45678. <param name="path" type="org.apache.hadoop.fs.Path"/>
  45679. <doc>
  45680. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  45681. @param conf The configuration of the job
  45682. @param path {@link Path} to be added to the list of inputs for
  45683. the map-reduce job.]]>
  45684. </doc>
  45685. </method>
  45686. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  45687. abstract="false" native="false" synchronized="false"
  45688. static="true" final="false" visibility="public"
  45689. deprecated="not deprecated">
  45690. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45691. <doc>
  45692. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  45693. @param conf The configuration of the job
  45694. @return the list of input {@link Path}s for the map-reduce job.]]>
  45695. </doc>
  45696. </method>
  45697. <method name="getSplitHosts" return="java.lang.String[]"
  45698. abstract="false" native="false" synchronized="false"
  45699. static="false" final="false" visibility="protected"
  45700. deprecated="not deprecated">
  45701. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  45702. <param name="offset" type="long"/>
  45703. <param name="splitSize" type="long"/>
  45704. <param name="clusterMap" type="org.apache.hadoop.net.NetworkTopology"/>
  45705. <exception name="IOException" type="java.io.IOException"/>
  45706. <doc>
  45707. <![CDATA[This function identifies and returns the hosts that contribute
  45708. most for a given split. For calculating the contribution, rack
  45709. locality is treated on par with host locality, so hosts from racks
  45710. that contribute the most are preferred over hosts on racks that
  45711. contribute less
  45712. @param blkLocations The list of block locations
  45713. @param offset
  45714. @param splitSize
  45715. @return array of hosts that contribute most to this split
  45716. @throws IOException]]>
  45717. </doc>
  45718. </method>
  45719. <field name="LOG" type="org.apache.commons.logging.Log"
  45720. transient="false" volatile="false"
  45721. static="true" final="true" visibility="public"
  45722. deprecated="not deprecated">
  45723. </field>
  45724. <doc>
  45725. <![CDATA[A base class for file-based {@link InputFormat}.
  45726. <p><code>FileInputFormat</code> is the base class for all file-based
  45727. <code>InputFormat</code>s. This provides a generic implementation of
  45728. {@link #getSplits(JobConf, int)}.
  45729. Subclasses of <code>FileInputFormat</code> can also override the
  45730. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  45731. not split-up and are processed as a whole by {@link Mapper}s.]]>
  45732. </doc>
  45733. </class>
  45734. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  45735. <!-- start class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  45736. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  45737. abstract="false"
  45738. static="true" final="true" visibility="public"
  45739. deprecated="not deprecated">
  45740. <method name="values" return="org.apache.hadoop.mapred.FileInputFormat.Counter[]"
  45741. abstract="false" native="false" synchronized="false"
  45742. static="true" final="false" visibility="public"
  45743. deprecated="not deprecated">
  45744. </method>
  45745. <method name="valueOf" return="org.apache.hadoop.mapred.FileInputFormat.Counter"
  45746. abstract="false" native="false" synchronized="false"
  45747. static="true" final="false" visibility="public"
  45748. deprecated="not deprecated">
  45749. <param name="name" type="java.lang.String"/>
  45750. </method>
  45751. <field name="BYTES_READ" type="org.apache.hadoop.mapred.FileInputFormat.Counter"
  45752. transient="false" volatile="false"
  45753. static="true" final="true" visibility="public"
  45754. deprecated="not deprecated">
  45755. </field>
  45756. </class>
  45757. <!-- end class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  45758. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  45759. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  45760. abstract="false"
  45761. static="false" final="false" visibility="public"
  45762. deprecated="not deprecated">
  45763. <constructor name="FileOutputCommitter"
  45764. static="false" final="false" visibility="public"
  45765. deprecated="not deprecated">
  45766. </constructor>
  45767. <method name="setupJob"
  45768. abstract="false" native="false" synchronized="false"
  45769. static="false" final="false" visibility="public"
  45770. deprecated="not deprecated">
  45771. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45772. <exception name="IOException" type="java.io.IOException"/>
  45773. </method>
  45774. <method name="commitJob"
  45775. abstract="false" native="false" synchronized="false"
  45776. static="false" final="false" visibility="public"
  45777. deprecated="not deprecated">
  45778. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45779. <exception name="IOException" type="java.io.IOException"/>
  45780. </method>
  45781. <method name="cleanupJob"
  45782. abstract="false" native="false" synchronized="false"
  45783. static="false" final="false" visibility="public"
  45784. deprecated="not deprecated">
  45785. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45786. <exception name="IOException" type="java.io.IOException"/>
  45787. </method>
  45788. <method name="abortJob"
  45789. abstract="false" native="false" synchronized="false"
  45790. static="false" final="false" visibility="public"
  45791. deprecated="not deprecated">
  45792. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  45793. <param name="runState" type="int"/>
  45794. <exception name="IOException" type="java.io.IOException"/>
  45795. <doc>
  45796. <![CDATA[Delete the temporary directory, including all of the work directories.
  45797. @param context the job's context
  45798. @param runState final run state of the job, should be
  45799. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}]]>
  45800. </doc>
  45801. </method>
  45802. <method name="setupTask"
  45803. abstract="false" native="false" synchronized="false"
  45804. static="false" final="false" visibility="public"
  45805. deprecated="not deprecated">
  45806. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45807. <exception name="IOException" type="java.io.IOException"/>
  45808. </method>
  45809. <method name="commitTask"
  45810. abstract="false" native="false" synchronized="false"
  45811. static="false" final="false" visibility="public"
  45812. deprecated="not deprecated">
  45813. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45814. <exception name="IOException" type="java.io.IOException"/>
  45815. </method>
  45816. <method name="abortTask"
  45817. abstract="false" native="false" synchronized="false"
  45818. static="false" final="false" visibility="public"
  45819. deprecated="not deprecated">
  45820. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45821. <exception name="IOException" type="java.io.IOException"/>
  45822. </method>
  45823. <method name="needsTaskCommit" return="boolean"
  45824. abstract="false" native="false" synchronized="false"
  45825. static="false" final="false" visibility="public"
  45826. deprecated="not deprecated">
  45827. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  45828. <exception name="IOException" type="java.io.IOException"/>
  45829. </method>
  45830. <field name="LOG" type="org.apache.commons.logging.Log"
  45831. transient="false" volatile="false"
  45832. static="true" final="true" visibility="public"
  45833. deprecated="not deprecated">
  45834. </field>
  45835. <field name="TEMP_DIR_NAME" type="java.lang.String"
  45836. transient="false" volatile="false"
  45837. static="true" final="true" visibility="public"
  45838. deprecated="not deprecated">
  45839. <doc>
  45840. <![CDATA[Temporary directory name]]>
  45841. </doc>
  45842. </field>
  45843. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  45844. transient="false" volatile="false"
  45845. static="true" final="true" visibility="public"
  45846. deprecated="not deprecated">
  45847. </field>
  45848. <doc>
  45849. <![CDATA[An {@link OutputCommitter} that commits files specified
  45850. in job output directory i.e. ${mapred.output.dir}.]]>
  45851. </doc>
  45852. </class>
  45853. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  45854. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  45855. <class name="FileOutputFormat" extends="java.lang.Object"
  45856. abstract="true"
  45857. static="false" final="false" visibility="public"
  45858. deprecated="not deprecated">
  45859. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  45860. <constructor name="FileOutputFormat"
  45861. static="false" final="false" visibility="public"
  45862. deprecated="not deprecated">
  45863. </constructor>
  45864. <method name="setCompressOutput"
  45865. abstract="false" native="false" synchronized="false"
  45866. static="true" final="false" visibility="public"
  45867. deprecated="not deprecated">
  45868. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45869. <param name="compress" type="boolean"/>
  45870. <doc>
  45871. <![CDATA[Set whether the output of the job is compressed.
  45872. @param conf the {@link JobConf} to modify
  45873. @param compress should the output of the job be compressed?]]>
  45874. </doc>
  45875. </method>
  45876. <method name="getCompressOutput" return="boolean"
  45877. abstract="false" native="false" synchronized="false"
  45878. static="true" final="false" visibility="public"
  45879. deprecated="not deprecated">
  45880. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45881. <doc>
  45882. <![CDATA[Is the job output compressed?
  45883. @param conf the {@link JobConf} to look in
  45884. @return <code>true</code> if the job output should be compressed,
  45885. <code>false</code> otherwise]]>
  45886. </doc>
  45887. </method>
  45888. <method name="setOutputCompressorClass"
  45889. abstract="false" native="false" synchronized="false"
  45890. static="true" final="false" visibility="public"
  45891. deprecated="not deprecated">
  45892. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45893. <param name="codecClass" type="java.lang.Class"/>
  45894. <doc>
  45895. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  45896. @param conf the {@link JobConf} to modify
  45897. @param codecClass the {@link CompressionCodec} to be used to
  45898. compress the job outputs]]>
  45899. </doc>
  45900. </method>
  45901. <method name="getOutputCompressorClass" return="java.lang.Class"
  45902. abstract="false" native="false" synchronized="false"
  45903. static="true" final="false" visibility="public"
  45904. deprecated="not deprecated">
  45905. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45906. <param name="defaultValue" type="java.lang.Class"/>
  45907. <doc>
  45908. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  45909. @param conf the {@link JobConf} to look in
  45910. @param defaultValue the {@link CompressionCodec} to return if not set
  45911. @return the {@link CompressionCodec} to be used to compress the
  45912. job outputs
  45913. @throws IllegalArgumentException if the class was specified, but not found]]>
  45914. </doc>
  45915. </method>
  45916. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  45917. abstract="true" native="false" synchronized="false"
  45918. static="false" final="false" visibility="public"
  45919. deprecated="not deprecated">
  45920. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  45921. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45922. <param name="name" type="java.lang.String"/>
  45923. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  45924. <exception name="IOException" type="java.io.IOException"/>
  45925. </method>
  45926. <method name="checkOutputSpecs"
  45927. abstract="false" native="false" synchronized="false"
  45928. static="false" final="false" visibility="public"
  45929. deprecated="not deprecated">
  45930. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  45931. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45932. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  45933. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  45934. <exception name="IOException" type="java.io.IOException"/>
  45935. </method>
  45936. <method name="setOutputPath"
  45937. abstract="false" native="false" synchronized="false"
  45938. static="true" final="false" visibility="public"
  45939. deprecated="not deprecated">
  45940. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45941. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  45942. <doc>
  45943. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  45944. @param conf The configuration of the job.
  45945. @param outputDir the {@link Path} of the output directory for
  45946. the map-reduce job.]]>
  45947. </doc>
  45948. </method>
  45949. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  45950. abstract="false" native="false" synchronized="false"
  45951. static="true" final="false" visibility="public"
  45952. deprecated="not deprecated">
  45953. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45954. <doc>
  45955. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  45956. @return the {@link Path} to the output directory for the map-reduce job.
  45957. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  45958. </doc>
  45959. </method>
  45960. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  45961. abstract="false" native="false" synchronized="false"
  45962. static="true" final="false" visibility="public"
  45963. deprecated="not deprecated">
  45964. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45965. <doc>
  45966. <![CDATA[Get the {@link Path} to the task's temporary output directory
  45967. for the map-reduce job
  45968. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  45969. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  45970. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  45971. a <code>FileOutputCommitter</code>, the task's temporary output
  45972. directory is same as {@link #getOutputPath(JobConf)} i.e.
  45973. <tt>${mapred.output.dir}$</tt></p>
  45974. <p>Some applications need to create/write-to side-files, which differ from
  45975. the actual job-outputs.
  45976. <p>In such cases there could be issues with 2 instances of the same TIP
  45977. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  45978. same file (path) on HDFS. Hence the application-writer will have to pick
  45979. unique names per task-attempt (e.g. using the attemptid, say
  45980. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  45981. <p>To get around this the Map-Reduce framework helps the application-writer
  45982. out by maintaining a special
  45983. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  45984. sub-directory for each task-attempt on HDFS where the output of the
  45985. task-attempt goes. On successful completion of the task-attempt the files
  45986. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  45987. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  45988. framework discards the sub-directory of unsuccessful task-attempts. This
  45989. is completely transparent to the application.</p>
  45990. <p>The application-writer can take advantage of this by creating any
  45991. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  45992. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  45993. framework will move them out similarly - thus she doesn't have to pick
  45994. unique paths per task-attempt.</p>
  45995. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  45996. execution of a particular task-attempt is actually
  45997. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  45998. set by the map-reduce framework. So, just create any side-files in the
  45999. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  46000. task to take advantage of this feature.</p>
  46001. <p>The entire discussion holds true for maps of jobs with
  46002. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  46003. goes directly to HDFS.</p>
  46004. @return the {@link Path} to the task's temporary output directory
  46005. for the map-reduce job.]]>
  46006. </doc>
  46007. </method>
  46008. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  46009. abstract="false" native="false" synchronized="false"
  46010. static="true" final="false" visibility="public"
  46011. deprecated="not deprecated">
  46012. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46013. <param name="name" type="java.lang.String"/>
  46014. <exception name="IOException" type="java.io.IOException"/>
  46015. <doc>
  46016. <![CDATA[Helper function to create the task's temporary output directory and
  46017. return the path to the task's output file.
  46018. @param conf job-configuration
  46019. @param name temporary task-output filename
  46020. @return path to the task's temporary output file
  46021. @throws IOException]]>
  46022. </doc>
  46023. </method>
  46024. <method name="getUniqueName" return="java.lang.String"
  46025. abstract="false" native="false" synchronized="false"
  46026. static="true" final="false" visibility="public"
  46027. deprecated="not deprecated">
  46028. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46029. <param name="name" type="java.lang.String"/>
  46030. <doc>
  46031. <![CDATA[Helper function to generate a name that is unique for the task.
  46032. <p>The generated name can be used to create custom files from within the
  46033. different tasks for the job, the names for different tasks will not collide
  46034. with each other.</p>
  46035. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  46036. reduces and the task partition number. For example, give a name 'test'
  46037. running on the first map o the job the generated name will be
  46038. 'test-m-00000'.</p>
  46039. @param conf the configuration for the job.
  46040. @param name the name to make unique.
  46041. @return a unique name accross all tasks of the job.]]>
  46042. </doc>
  46043. </method>
  46044. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  46045. abstract="false" native="false" synchronized="false"
  46046. static="true" final="false" visibility="public"
  46047. deprecated="not deprecated">
  46048. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46049. <param name="name" type="java.lang.String"/>
  46050. <doc>
  46051. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  46052. the task within the job output directory.
  46053. <p>The path can be used to create custom files from within the map and
  46054. reduce tasks. The path name will be unique for each task. The path parent
  46055. will be the job output directory.</p>ls
  46056. <p>This method uses the {@link #getUniqueName} method to make the file name
  46057. unique for the task.</p>
  46058. @param conf the configuration for the job.
  46059. @param name the name for the file.
  46060. @return a unique path accross all tasks of the job.]]>
  46061. </doc>
  46062. </method>
  46063. <doc>
  46064. <![CDATA[A base class for {@link OutputFormat}.]]>
  46065. </doc>
  46066. </class>
  46067. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  46068. <!-- start class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  46069. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  46070. abstract="false"
  46071. static="true" final="true" visibility="public"
  46072. deprecated="not deprecated">
  46073. <method name="values" return="org.apache.hadoop.mapred.FileOutputFormat.Counter[]"
  46074. abstract="false" native="false" synchronized="false"
  46075. static="true" final="false" visibility="public"
  46076. deprecated="not deprecated">
  46077. </method>
  46078. <method name="valueOf" return="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  46079. abstract="false" native="false" synchronized="false"
  46080. static="true" final="false" visibility="public"
  46081. deprecated="not deprecated">
  46082. <param name="name" type="java.lang.String"/>
  46083. </method>
  46084. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  46085. transient="false" volatile="false"
  46086. static="true" final="true" visibility="public"
  46087. deprecated="not deprecated">
  46088. </field>
  46089. </class>
  46090. <!-- end class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  46091. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  46092. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  46093. abstract="false"
  46094. static="false" final="false" visibility="public"
  46095. deprecated="not deprecated">
  46096. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  46097. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  46098. static="false" final="false" visibility="public"
  46099. deprecated="deprecated, no comment">
  46100. <doc>
  46101. <![CDATA[Constructs a split.
  46102. @deprecated
  46103. @param file the file name
  46104. @param start the position of the first byte in the file to process
  46105. @param length the number of bytes in the file to process]]>
  46106. </doc>
  46107. </constructor>
  46108. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  46109. static="false" final="false" visibility="public"
  46110. deprecated="not deprecated">
  46111. <doc>
  46112. <![CDATA[Constructs a split with host information
  46113. @param file the file name
  46114. @param start the position of the first byte in the file to process
  46115. @param length the number of bytes in the file to process
  46116. @param hosts the list of hosts containing the block, possibly null]]>
  46117. </doc>
  46118. </constructor>
  46119. <method name="getPath" return="org.apache.hadoop.fs.Path"
  46120. abstract="false" native="false" synchronized="false"
  46121. static="false" final="false" visibility="public"
  46122. deprecated="not deprecated">
  46123. <doc>
  46124. <![CDATA[The file containing this split's data.]]>
  46125. </doc>
  46126. </method>
  46127. <method name="getStart" return="long"
  46128. abstract="false" native="false" synchronized="false"
  46129. static="false" final="false" visibility="public"
  46130. deprecated="not deprecated">
  46131. <doc>
  46132. <![CDATA[The position of the first byte in the file to process.]]>
  46133. </doc>
  46134. </method>
  46135. <method name="getLength" return="long"
  46136. abstract="false" native="false" synchronized="false"
  46137. static="false" final="false" visibility="public"
  46138. deprecated="not deprecated">
  46139. <doc>
  46140. <![CDATA[The number of bytes in the file to process.]]>
  46141. </doc>
  46142. </method>
  46143. <method name="toString" return="java.lang.String"
  46144. abstract="false" native="false" synchronized="false"
  46145. static="false" final="false" visibility="public"
  46146. deprecated="not deprecated">
  46147. </method>
  46148. <method name="write"
  46149. abstract="false" native="false" synchronized="false"
  46150. static="false" final="false" visibility="public"
  46151. deprecated="not deprecated">
  46152. <param name="out" type="java.io.DataOutput"/>
  46153. <exception name="IOException" type="java.io.IOException"/>
  46154. </method>
  46155. <method name="readFields"
  46156. abstract="false" native="false" synchronized="false"
  46157. static="false" final="false" visibility="public"
  46158. deprecated="not deprecated">
  46159. <param name="in" type="java.io.DataInput"/>
  46160. <exception name="IOException" type="java.io.IOException"/>
  46161. </method>
  46162. <method name="getLocations" return="java.lang.String[]"
  46163. abstract="false" native="false" synchronized="false"
  46164. static="false" final="false" visibility="public"
  46165. deprecated="not deprecated">
  46166. <exception name="IOException" type="java.io.IOException"/>
  46167. </method>
  46168. <doc>
  46169. <![CDATA[A section of an input file. Returned by {@link
  46170. InputFormat#getSplits(JobConf, int)} and passed to
  46171. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  46172. </doc>
  46173. </class>
  46174. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  46175. <!-- start class org.apache.hadoop.mapred.HDFSMonitorThread -->
  46176. <class name="HDFSMonitorThread" extends="java.lang.Thread"
  46177. abstract="false"
  46178. static="false" final="false" visibility="public"
  46179. deprecated="not deprecated">
  46180. <constructor name="HDFSMonitorThread" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.JobTracker, org.apache.hadoop.fs.FileSystem"
  46181. static="false" final="false" visibility="public"
  46182. deprecated="not deprecated">
  46183. </constructor>
  46184. <method name="run"
  46185. abstract="false" native="false" synchronized="false"
  46186. static="false" final="false" visibility="public"
  46187. deprecated="not deprecated">
  46188. </method>
  46189. <field name="LOG" type="org.apache.commons.logging.Log"
  46190. transient="false" volatile="false"
  46191. static="true" final="true" visibility="public"
  46192. deprecated="not deprecated">
  46193. </field>
  46194. </class>
  46195. <!-- end class org.apache.hadoop.mapred.HDFSMonitorThread -->
  46196. <!-- start class org.apache.hadoop.mapred.ID -->
  46197. <class name="ID" extends="org.apache.hadoop.mapreduce.ID"
  46198. abstract="true"
  46199. static="false" final="false" visibility="public"
  46200. deprecated="not deprecated">
  46201. <constructor name="ID" type="int"
  46202. static="false" final="false" visibility="public"
  46203. deprecated="not deprecated">
  46204. <doc>
  46205. <![CDATA[constructs an ID object from the given int]]>
  46206. </doc>
  46207. </constructor>
  46208. <constructor name="ID"
  46209. static="false" final="false" visibility="protected"
  46210. deprecated="not deprecated">
  46211. </constructor>
  46212. <doc>
  46213. <![CDATA[A general identifier, which internally stores the id
  46214. as an integer. This is the super class of {@link JobID},
  46215. {@link TaskID} and {@link TaskAttemptID}.
  46216. @see JobID
  46217. @see TaskID
  46218. @see TaskAttemptID]]>
  46219. </doc>
  46220. </class>
  46221. <!-- end class org.apache.hadoop.mapred.ID -->
  46222. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  46223. <interface name="InputFormat" abstract="true"
  46224. static="false" final="false" visibility="public"
  46225. deprecated="not deprecated">
  46226. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  46227. abstract="false" native="false" synchronized="false"
  46228. static="false" final="false" visibility="public"
  46229. deprecated="not deprecated">
  46230. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46231. <param name="numSplits" type="int"/>
  46232. <exception name="IOException" type="java.io.IOException"/>
  46233. <doc>
  46234. <![CDATA[Logically split the set of input files for the job.
  46235. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  46236. for processing.</p>
  46237. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  46238. input files are not physically split into chunks. For e.g. a split could
  46239. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  46240. @param job job configuration.
  46241. @param numSplits the desired number of splits, a hint.
  46242. @return an array of {@link InputSplit}s for the job.]]>
  46243. </doc>
  46244. </method>
  46245. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  46246. abstract="false" native="false" synchronized="false"
  46247. static="false" final="false" visibility="public"
  46248. deprecated="not deprecated">
  46249. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  46250. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46251. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  46252. <exception name="IOException" type="java.io.IOException"/>
  46253. <doc>
  46254. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  46255. <p>It is the responsibility of the <code>RecordReader</code> to respect
  46256. record boundaries while processing the logical split to present a
  46257. record-oriented view to the individual task.</p>
  46258. @param split the {@link InputSplit}
  46259. @param job the job that this split belongs to
  46260. @return a {@link RecordReader}]]>
  46261. </doc>
  46262. </method>
  46263. <doc>
  46264. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  46265. Map-Reduce job.
  46266. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  46267. job to:<p>
  46268. <ol>
  46269. <li>
  46270. Validate the input-specification of the job.
  46271. <li>
  46272. Split-up the input file(s) into logical {@link InputSplit}s, each of
  46273. which is then assigned to an individual {@link Mapper}.
  46274. </li>
  46275. <li>
  46276. Provide the {@link RecordReader} implementation to be used to glean
  46277. input records from the logical <code>InputSplit</code> for processing by
  46278. the {@link Mapper}.
  46279. </li>
  46280. </ol>
  46281. <p>The default behavior of file-based {@link InputFormat}s, typically
  46282. sub-classes of {@link FileInputFormat}, is to split the
  46283. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  46284. bytes, of the input files. However, the {@link FileSystem} blocksize of
  46285. the input files is treated as an upper bound for input splits. A lower bound
  46286. on the split size can be set via
  46287. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  46288. mapred.min.split.size</a>.</p>
  46289. <p>Clearly, logical splits based on input-size is insufficient for many
  46290. applications since record boundaries are to respected. In such cases, the
  46291. application has to also implement a {@link RecordReader} on whom lies the
  46292. responsibilty to respect record-boundaries and present a record-oriented
  46293. view of the logical <code>InputSplit</code> to the individual task.
  46294. @see InputSplit
  46295. @see RecordReader
  46296. @see JobClient
  46297. @see FileInputFormat]]>
  46298. </doc>
  46299. </interface>
  46300. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  46301. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  46302. <interface name="InputSplit" abstract="true"
  46303. static="false" final="false" visibility="public"
  46304. deprecated="not deprecated">
  46305. <implements name="org.apache.hadoop.io.Writable"/>
  46306. <method name="getLength" return="long"
  46307. abstract="false" native="false" synchronized="false"
  46308. static="false" final="false" visibility="public"
  46309. deprecated="not deprecated">
  46310. <exception name="IOException" type="java.io.IOException"/>
  46311. <doc>
  46312. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  46313. @return the number of bytes in the input split.
  46314. @throws IOException]]>
  46315. </doc>
  46316. </method>
  46317. <method name="getLocations" return="java.lang.String[]"
  46318. abstract="false" native="false" synchronized="false"
  46319. static="false" final="false" visibility="public"
  46320. deprecated="not deprecated">
  46321. <exception name="IOException" type="java.io.IOException"/>
  46322. <doc>
  46323. <![CDATA[Get the list of hostnames where the input split is located.
  46324. @return list of hostnames where data of the <code>InputSplit</code> is
  46325. located as an array of <code>String</code>s.
  46326. @throws IOException]]>
  46327. </doc>
  46328. </method>
  46329. <doc>
  46330. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  46331. individual {@link Mapper}.
  46332. <p>Typically, it presents a byte-oriented view on the input and is the
  46333. responsibility of {@link RecordReader} of the job to process this and present
  46334. a record-oriented view.
  46335. @see InputFormat
  46336. @see RecordReader]]>
  46337. </doc>
  46338. </interface>
  46339. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  46340. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  46341. <class name="InvalidFileTypeException" extends="java.io.IOException"
  46342. abstract="false"
  46343. static="false" final="false" visibility="public"
  46344. deprecated="not deprecated">
  46345. <constructor name="InvalidFileTypeException"
  46346. static="false" final="false" visibility="public"
  46347. deprecated="not deprecated">
  46348. </constructor>
  46349. <constructor name="InvalidFileTypeException" type="java.lang.String"
  46350. static="false" final="false" visibility="public"
  46351. deprecated="not deprecated">
  46352. </constructor>
  46353. <doc>
  46354. <![CDATA[Used when file type differs from the desired file type. like
  46355. getting a file when a directory is expected. Or a wrong file type.]]>
  46356. </doc>
  46357. </class>
  46358. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  46359. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  46360. <class name="InvalidInputException" extends="java.io.IOException"
  46361. abstract="false"
  46362. static="false" final="false" visibility="public"
  46363. deprecated="not deprecated">
  46364. <constructor name="InvalidInputException" type="java.util.List"
  46365. static="false" final="false" visibility="public"
  46366. deprecated="not deprecated">
  46367. <doc>
  46368. <![CDATA[Create the exception with the given list.
  46369. @param probs the list of problems to report. this list is not copied.]]>
  46370. </doc>
  46371. </constructor>
  46372. <method name="getProblems" return="java.util.List"
  46373. abstract="false" native="false" synchronized="false"
  46374. static="false" final="false" visibility="public"
  46375. deprecated="not deprecated">
  46376. <doc>
  46377. <![CDATA[Get the complete list of the problems reported.
  46378. @return the list of problems, which must not be modified]]>
  46379. </doc>
  46380. </method>
  46381. <method name="getMessage" return="java.lang.String"
  46382. abstract="false" native="false" synchronized="false"
  46383. static="false" final="false" visibility="public"
  46384. deprecated="not deprecated">
  46385. <doc>
  46386. <![CDATA[Get a summary message of the problems found.
  46387. @return the concatenated messages from all of the problems.]]>
  46388. </doc>
  46389. </method>
  46390. <doc>
  46391. <![CDATA[This class wraps a list of problems with the input, so that the user
  46392. can get a list of problems together instead of finding and fixing them one
  46393. by one.]]>
  46394. </doc>
  46395. </class>
  46396. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  46397. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  46398. <class name="InvalidJobConfException" extends="java.io.IOException"
  46399. abstract="false"
  46400. static="false" final="false" visibility="public"
  46401. deprecated="not deprecated">
  46402. <constructor name="InvalidJobConfException"
  46403. static="false" final="false" visibility="public"
  46404. deprecated="not deprecated">
  46405. </constructor>
  46406. <constructor name="InvalidJobConfException" type="java.lang.String"
  46407. static="false" final="false" visibility="public"
  46408. deprecated="not deprecated">
  46409. </constructor>
  46410. <constructor name="InvalidJobConfException" type="java.lang.String, java.lang.Throwable"
  46411. static="false" final="false" visibility="public"
  46412. deprecated="not deprecated">
  46413. </constructor>
  46414. <constructor name="InvalidJobConfException" type="java.lang.Throwable"
  46415. static="false" final="false" visibility="public"
  46416. deprecated="not deprecated">
  46417. </constructor>
  46418. <doc>
  46419. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  46420. or value of some attributes is invalid.]]>
  46421. </doc>
  46422. </class>
  46423. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  46424. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  46425. <class name="IsolationRunner" extends="java.lang.Object"
  46426. abstract="false"
  46427. static="false" final="false" visibility="public"
  46428. deprecated="not deprecated">
  46429. <constructor name="IsolationRunner"
  46430. static="false" final="false" visibility="public"
  46431. deprecated="not deprecated">
  46432. </constructor>
  46433. <method name="main"
  46434. abstract="false" native="false" synchronized="false"
  46435. static="true" final="false" visibility="public"
  46436. deprecated="not deprecated">
  46437. <param name="args" type="java.lang.String[]"/>
  46438. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  46439. <exception name="IOException" type="java.io.IOException"/>
  46440. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46441. <doc>
  46442. <![CDATA[Run a single task.
  46443. @param args the first argument is the task directory]]>
  46444. </doc>
  46445. </method>
  46446. <doc>
  46447. <![CDATA[IsolationRunner is intended to facilitate debugging by re-running a specific
  46448. task, given left-over task files for a (typically failed) past job.
  46449. Currently, it is limited to re-running map tasks.
  46450. Users may coerce MapReduce to keep task files around by setting
  46451. keep.failed.task.files. See mapred_tutorial.xml for more documentation.]]>
  46452. </doc>
  46453. </class>
  46454. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  46455. <!-- start class org.apache.hadoop.mapred.JobClient -->
  46456. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  46457. abstract="false"
  46458. static="false" final="false" visibility="public"
  46459. deprecated="not deprecated">
  46460. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  46461. <implements name="org.apache.hadoop.util.Tool"/>
  46462. <constructor name="JobClient"
  46463. static="false" final="false" visibility="public"
  46464. deprecated="not deprecated">
  46465. <doc>
  46466. <![CDATA[Create a job client.]]>
  46467. </doc>
  46468. </constructor>
  46469. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  46470. static="false" final="false" visibility="public"
  46471. deprecated="not deprecated">
  46472. <exception name="IOException" type="java.io.IOException"/>
  46473. <doc>
  46474. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  46475. default {@link JobTracker}.
  46476. @param conf the job configuration.
  46477. @throws IOException]]>
  46478. </doc>
  46479. </constructor>
  46480. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  46481. static="false" final="false" visibility="public"
  46482. deprecated="not deprecated">
  46483. <exception name="IOException" type="java.io.IOException"/>
  46484. <doc>
  46485. <![CDATA[Build a job client, connect to the indicated job tracker.
  46486. @param jobTrackAddr the job tracker to connect to.
  46487. @param conf configuration.]]>
  46488. </doc>
  46489. </constructor>
  46490. <method name="init"
  46491. abstract="false" native="false" synchronized="false"
  46492. static="false" final="false" visibility="public"
  46493. deprecated="not deprecated">
  46494. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46495. <exception name="IOException" type="java.io.IOException"/>
  46496. <doc>
  46497. <![CDATA[Connect to the default {@link JobTracker}.
  46498. @param conf the job configuration.
  46499. @throws IOException]]>
  46500. </doc>
  46501. </method>
  46502. <method name="close"
  46503. abstract="false" native="false" synchronized="true"
  46504. static="false" final="false" visibility="public"
  46505. deprecated="not deprecated">
  46506. <exception name="IOException" type="java.io.IOException"/>
  46507. <doc>
  46508. <![CDATA[Close the <code>JobClient</code>.]]>
  46509. </doc>
  46510. </method>
  46511. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  46512. abstract="false" native="false" synchronized="true"
  46513. static="false" final="false" visibility="public"
  46514. deprecated="not deprecated">
  46515. <exception name="IOException" type="java.io.IOException"/>
  46516. <doc>
  46517. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  46518. for submission to the MapReduce system.
  46519. @return the filesystem handle.
  46520. @throws IOException]]>
  46521. </doc>
  46522. </method>
  46523. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  46524. abstract="false" native="false" synchronized="false"
  46525. static="false" final="false" visibility="public"
  46526. deprecated="not deprecated">
  46527. <param name="jobFile" type="java.lang.String"/>
  46528. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  46529. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  46530. <exception name="IOException" type="java.io.IOException"/>
  46531. <doc>
  46532. <![CDATA[Submit a job to the MR system.
  46533. This returns a handle to the {@link RunningJob} which can be used to track
  46534. the running-job.
  46535. @param jobFile the job configuration.
  46536. @return a handle to the {@link RunningJob} which can be used to track the
  46537. running-job.
  46538. @throws FileNotFoundException
  46539. @throws InvalidJobConfException
  46540. @throws IOException]]>
  46541. </doc>
  46542. </method>
  46543. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  46544. abstract="false" native="false" synchronized="false"
  46545. static="false" final="false" visibility="public"
  46546. deprecated="not deprecated">
  46547. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46548. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  46549. <exception name="IOException" type="java.io.IOException"/>
  46550. <doc>
  46551. <![CDATA[Submit a job to the MR system.
  46552. This returns a handle to the {@link RunningJob} which can be used to track
  46553. the running-job.
  46554. @param job the job configuration.
  46555. @return a handle to the {@link RunningJob} which can be used to track the
  46556. running-job.
  46557. @throws FileNotFoundException
  46558. @throws IOException]]>
  46559. </doc>
  46560. </method>
  46561. <method name="submitJobInternal" return="org.apache.hadoop.mapred.RunningJob"
  46562. abstract="false" native="false" synchronized="false"
  46563. static="false" final="false" visibility="public"
  46564. deprecated="not deprecated">
  46565. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46566. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  46567. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  46568. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46569. <exception name="IOException" type="java.io.IOException"/>
  46570. <doc>
  46571. <![CDATA[Internal method for submitting jobs to the system.
  46572. @param job the configuration to submit
  46573. @return a proxy object for the running job
  46574. @throws FileNotFoundException
  46575. @throws ClassNotFoundException
  46576. @throws InterruptedException
  46577. @throws IOException]]>
  46578. </doc>
  46579. </method>
  46580. <method name="isJobDirValid" return="boolean"
  46581. abstract="false" native="false" synchronized="false"
  46582. static="true" final="false" visibility="public"
  46583. deprecated="not deprecated">
  46584. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  46585. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  46586. <exception name="IOException" type="java.io.IOException"/>
  46587. <doc>
  46588. <![CDATA[Checks if the job directory is clean and has all the required components
  46589. for (re) starting the job]]>
  46590. </doc>
  46591. </method>
  46592. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  46593. abstract="false" native="false" synchronized="false"
  46594. static="false" final="false" visibility="public"
  46595. deprecated="not deprecated">
  46596. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  46597. <exception name="IOException" type="java.io.IOException"/>
  46598. <doc>
  46599. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  46600. null if the id does not correspond to any known job.
  46601. @param jobid the jobid of the job.
  46602. @return the {@link RunningJob} handle to track the job, null if the
  46603. <code>jobid</code> doesn't correspond to any known job.
  46604. @throws IOException]]>
  46605. </doc>
  46606. </method>
  46607. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  46608. abstract="false" native="false" synchronized="false"
  46609. static="false" final="false" visibility="public"
  46610. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  46611. <param name="jobid" type="java.lang.String"/>
  46612. <exception name="IOException" type="java.io.IOException"/>
  46613. <doc>
  46614. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  46615. </doc>
  46616. </method>
  46617. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46618. abstract="false" native="false" synchronized="false"
  46619. static="false" final="false" visibility="public"
  46620. deprecated="not deprecated">
  46621. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46622. <exception name="IOException" type="java.io.IOException"/>
  46623. <doc>
  46624. <![CDATA[Get the information of the current state of the map tasks of a job.
  46625. @param jobId the job to query.
  46626. @return the list of all of the map tips.
  46627. @throws IOException]]>
  46628. </doc>
  46629. </method>
  46630. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46631. abstract="false" native="false" synchronized="false"
  46632. static="false" final="false" visibility="public"
  46633. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  46634. <param name="jobId" type="java.lang.String"/>
  46635. <exception name="IOException" type="java.io.IOException"/>
  46636. <doc>
  46637. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  46638. </doc>
  46639. </method>
  46640. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46641. abstract="false" native="false" synchronized="false"
  46642. static="false" final="false" visibility="public"
  46643. deprecated="not deprecated">
  46644. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46645. <exception name="IOException" type="java.io.IOException"/>
  46646. <doc>
  46647. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  46648. @param jobId the job to query.
  46649. @return the list of all of the reduce tips.
  46650. @throws IOException]]>
  46651. </doc>
  46652. </method>
  46653. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46654. abstract="false" native="false" synchronized="false"
  46655. static="false" final="false" visibility="public"
  46656. deprecated="not deprecated">
  46657. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46658. <exception name="IOException" type="java.io.IOException"/>
  46659. <doc>
  46660. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  46661. @param jobId the job to query.
  46662. @return the list of all of the cleanup tips.
  46663. @throws IOException]]>
  46664. </doc>
  46665. </method>
  46666. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46667. abstract="false" native="false" synchronized="false"
  46668. static="false" final="false" visibility="public"
  46669. deprecated="not deprecated">
  46670. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46671. <exception name="IOException" type="java.io.IOException"/>
  46672. <doc>
  46673. <![CDATA[Get the information of the current state of the setup tasks of a job.
  46674. @param jobId the job to query.
  46675. @return the list of all of the setup tips.
  46676. @throws IOException]]>
  46677. </doc>
  46678. </method>
  46679. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  46680. abstract="false" native="false" synchronized="false"
  46681. static="false" final="false" visibility="public"
  46682. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  46683. <param name="jobId" type="java.lang.String"/>
  46684. <exception name="IOException" type="java.io.IOException"/>
  46685. <doc>
  46686. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  46687. </doc>
  46688. </method>
  46689. <method name="displayTasks"
  46690. abstract="false" native="false" synchronized="false"
  46691. static="false" final="false" visibility="public"
  46692. deprecated="not deprecated">
  46693. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  46694. <param name="type" type="java.lang.String"/>
  46695. <param name="state" type="java.lang.String"/>
  46696. <exception name="IOException" type="java.io.IOException"/>
  46697. <doc>
  46698. <![CDATA[Display the information about a job's tasks, of a particular type and
  46699. in a particular state
  46700. @param jobId the ID of the job
  46701. @param type the type of the task (map/reduce/setup/cleanup)
  46702. @param state the state of the task
  46703. (pending/running/completed/failed/killed)]]>
  46704. </doc>
  46705. </method>
  46706. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  46707. abstract="false" native="false" synchronized="false"
  46708. static="false" final="false" visibility="public"
  46709. deprecated="not deprecated">
  46710. <exception name="IOException" type="java.io.IOException"/>
  46711. <doc>
  46712. <![CDATA[Get status information about the Map-Reduce cluster.
  46713. @return the status information about the Map-Reduce cluster as an object
  46714. of {@link ClusterStatus}.
  46715. @throws IOException]]>
  46716. </doc>
  46717. </method>
  46718. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  46719. abstract="false" native="false" synchronized="false"
  46720. static="false" final="false" visibility="public"
  46721. deprecated="not deprecated">
  46722. <param name="detailed" type="boolean"/>
  46723. <exception name="IOException" type="java.io.IOException"/>
  46724. <doc>
  46725. <![CDATA[Get status information about the Map-Reduce cluster.
  46726. @param detailed if true then get a detailed status including the
  46727. tracker names and memory usage of the JobTracker
  46728. @return the status information about the Map-Reduce cluster as an object
  46729. of {@link ClusterStatus}.
  46730. @throws IOException]]>
  46731. </doc>
  46732. </method>
  46733. <method name="getStagingAreaDir" return="org.apache.hadoop.fs.Path"
  46734. abstract="false" native="false" synchronized="false"
  46735. static="false" final="false" visibility="public"
  46736. deprecated="not deprecated">
  46737. <exception name="IOException" type="java.io.IOException"/>
  46738. <doc>
  46739. <![CDATA[Grab the jobtracker's view of the staging directory path where
  46740. job-specific files will be placed.
  46741. @return the staging directory where job-specific files are to be placed.]]>
  46742. </doc>
  46743. </method>
  46744. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  46745. abstract="false" native="false" synchronized="false"
  46746. static="false" final="false" visibility="public"
  46747. deprecated="not deprecated">
  46748. <exception name="IOException" type="java.io.IOException"/>
  46749. <doc>
  46750. <![CDATA[Get the jobs that are not completed and not failed.
  46751. @return array of {@link JobStatus} for the running/to-be-run jobs.
  46752. @throws IOException]]>
  46753. </doc>
  46754. </method>
  46755. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  46756. abstract="false" native="false" synchronized="false"
  46757. static="false" final="false" visibility="public"
  46758. deprecated="not deprecated">
  46759. <exception name="IOException" type="java.io.IOException"/>
  46760. <doc>
  46761. <![CDATA[Get the jobs that are submitted.
  46762. @return array of {@link JobStatus} for the submitted jobs.
  46763. @throws IOException]]>
  46764. </doc>
  46765. </method>
  46766. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  46767. abstract="false" native="false" synchronized="false"
  46768. static="true" final="false" visibility="public"
  46769. deprecated="not deprecated">
  46770. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46771. <exception name="IOException" type="java.io.IOException"/>
  46772. <doc>
  46773. <![CDATA[Utility that submits a job, then polls for progress until the job is
  46774. complete.
  46775. @param job the job configuration.
  46776. @throws IOException if the job fails]]>
  46777. </doc>
  46778. </method>
  46779. <method name="monitorAndPrintJob" return="boolean"
  46780. abstract="false" native="false" synchronized="false"
  46781. static="false" final="false" visibility="public"
  46782. deprecated="not deprecated">
  46783. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46784. <param name="job" type="org.apache.hadoop.mapred.RunningJob"/>
  46785. <exception name="IOException" type="java.io.IOException"/>
  46786. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46787. <doc>
  46788. <![CDATA[Monitor a job and print status in real-time as progress is made and tasks
  46789. fail.
  46790. @param conf the job's configuration
  46791. @param job the job to track
  46792. @return true if the job succeeded
  46793. @throws IOException if communication to the JobTracker fails]]>
  46794. </doc>
  46795. </method>
  46796. <method name="setTaskOutputFilter"
  46797. abstract="false" native="false" synchronized="false"
  46798. static="false" final="false" visibility="public"
  46799. deprecated="not deprecated">
  46800. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  46801. <doc>
  46802. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  46803. output matches the filter.
  46804. @param newValue task filter.]]>
  46805. </doc>
  46806. </method>
  46807. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46808. abstract="false" native="false" synchronized="false"
  46809. static="true" final="false" visibility="public"
  46810. deprecated="not deprecated">
  46811. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46812. <doc>
  46813. <![CDATA[Get the task output filter out of the JobConf.
  46814. @param job the JobConf to examine.
  46815. @return the filter level.]]>
  46816. </doc>
  46817. </method>
  46818. <method name="setTaskOutputFilter"
  46819. abstract="false" native="false" synchronized="false"
  46820. static="true" final="false" visibility="public"
  46821. deprecated="not deprecated">
  46822. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46823. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  46824. <doc>
  46825. <![CDATA[Modify the JobConf to set the task output filter.
  46826. @param job the JobConf to modify.
  46827. @param newValue the value to set.]]>
  46828. </doc>
  46829. </method>
  46830. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  46831. abstract="false" native="false" synchronized="false"
  46832. static="false" final="false" visibility="public"
  46833. deprecated="not deprecated">
  46834. <doc>
  46835. <![CDATA[Returns task output filter.
  46836. @return task filter.]]>
  46837. </doc>
  46838. </method>
  46839. <method name="run" return="int"
  46840. abstract="false" native="false" synchronized="false"
  46841. static="false" final="false" visibility="public"
  46842. deprecated="not deprecated">
  46843. <param name="argv" type="java.lang.String[]"/>
  46844. <exception name="Exception" type="java.lang.Exception"/>
  46845. </method>
  46846. <method name="getDefaultMaps" return="int"
  46847. abstract="false" native="false" synchronized="false"
  46848. static="false" final="false" visibility="public"
  46849. deprecated="not deprecated">
  46850. <exception name="IOException" type="java.io.IOException"/>
  46851. <doc>
  46852. <![CDATA[Get status information about the max available Maps in the cluster.
  46853. @return the max available Maps in the cluster
  46854. @throws IOException]]>
  46855. </doc>
  46856. </method>
  46857. <method name="getDefaultReduces" return="int"
  46858. abstract="false" native="false" synchronized="false"
  46859. static="false" final="false" visibility="public"
  46860. deprecated="not deprecated">
  46861. <exception name="IOException" type="java.io.IOException"/>
  46862. <doc>
  46863. <![CDATA[Get status information about the max available Reduces in the cluster.
  46864. @return the max available Reduces in the cluster
  46865. @throws IOException]]>
  46866. </doc>
  46867. </method>
  46868. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  46869. abstract="false" native="false" synchronized="false"
  46870. static="false" final="false" visibility="public"
  46871. deprecated="not deprecated">
  46872. <doc>
  46873. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  46874. @return the system directory where job-specific files are to be placed.]]>
  46875. </doc>
  46876. </method>
  46877. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  46878. abstract="false" native="false" synchronized="false"
  46879. static="false" final="false" visibility="public"
  46880. deprecated="not deprecated">
  46881. <exception name="IOException" type="java.io.IOException"/>
  46882. <doc>
  46883. <![CDATA[Return an array of queue information objects about all the Job Queues
  46884. configured.
  46885. @return Array of JobQueueInfo objects
  46886. @throws IOException]]>
  46887. </doc>
  46888. </method>
  46889. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  46890. abstract="false" native="false" synchronized="false"
  46891. static="false" final="false" visibility="public"
  46892. deprecated="not deprecated">
  46893. <param name="queueName" type="java.lang.String"/>
  46894. <exception name="IOException" type="java.io.IOException"/>
  46895. <doc>
  46896. <![CDATA[Gets all the jobs which were added to particular Job Queue
  46897. @param queueName name of the Job Queue
  46898. @return Array of jobs present in the job queue
  46899. @throws IOException]]>
  46900. </doc>
  46901. </method>
  46902. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  46903. abstract="false" native="false" synchronized="false"
  46904. static="false" final="false" visibility="public"
  46905. deprecated="not deprecated">
  46906. <param name="queueName" type="java.lang.String"/>
  46907. <exception name="IOException" type="java.io.IOException"/>
  46908. <doc>
  46909. <![CDATA[Gets the queue information associated to a particular Job Queue
  46910. @param queueName name of the job queue.
  46911. @return Queue information associated to particular queue.
  46912. @throws IOException]]>
  46913. </doc>
  46914. </method>
  46915. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  46916. abstract="false" native="false" synchronized="false"
  46917. static="false" final="false" visibility="public"
  46918. deprecated="not deprecated">
  46919. <exception name="IOException" type="java.io.IOException"/>
  46920. <doc>
  46921. <![CDATA[Gets the Queue ACLs for current user
  46922. @return array of QueueAclsInfo object for current user.
  46923. @throws IOException]]>
  46924. </doc>
  46925. </method>
  46926. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  46927. abstract="false" native="false" synchronized="false"
  46928. static="false" final="false" visibility="public"
  46929. deprecated="not deprecated">
  46930. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  46931. <exception name="IOException" type="java.io.IOException"/>
  46932. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46933. </method>
  46934. <method name="renewDelegationToken" return="long"
  46935. abstract="false" native="false" synchronized="false"
  46936. static="false" final="false" visibility="public"
  46937. deprecated="not deprecated">
  46938. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  46939. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  46940. <exception name="IOException" type="java.io.IOException"/>
  46941. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46942. <doc>
  46943. <![CDATA[Renew a delegation token
  46944. @param token the token to renew
  46945. @return the new expiration time
  46946. @throws InvalidToken
  46947. @throws IOException]]>
  46948. </doc>
  46949. </method>
  46950. <method name="cancelDelegationToken"
  46951. abstract="false" native="false" synchronized="false"
  46952. static="false" final="false" visibility="public"
  46953. deprecated="not deprecated">
  46954. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  46955. <exception name="IOException" type="java.io.IOException"/>
  46956. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46957. <doc>
  46958. <![CDATA[Cancel a delegation token from the JobTracker
  46959. @param token the token to cancel
  46960. @throws IOException]]>
  46961. </doc>
  46962. </method>
  46963. <method name="main"
  46964. abstract="false" native="false" synchronized="false"
  46965. static="true" final="false" visibility="public"
  46966. deprecated="not deprecated">
  46967. <param name="argv" type="java.lang.String[]"/>
  46968. <exception name="Exception" type="java.lang.Exception"/>
  46969. </method>
  46970. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_ENABLED_KEY" type="java.lang.String"
  46971. transient="false" volatile="false"
  46972. static="true" final="true" visibility="public"
  46973. deprecated="not deprecated">
  46974. </field>
  46975. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_ENABLED_DEFAULT" type="boolean"
  46976. transient="false" volatile="false"
  46977. static="true" final="true" visibility="public"
  46978. deprecated="not deprecated">
  46979. </field>
  46980. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_SPEC_KEY" type="java.lang.String"
  46981. transient="false" volatile="false"
  46982. static="true" final="true" visibility="public"
  46983. deprecated="not deprecated">
  46984. </field>
  46985. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_SPEC_DEFAULT" type="java.lang.String"
  46986. transient="false" volatile="false"
  46987. static="true" final="true" visibility="public"
  46988. deprecated="not deprecated">
  46989. </field>
  46990. <doc>
  46991. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  46992. with the {@link JobTracker}.
  46993. <code>JobClient</code> provides facilities to submit jobs, track their
  46994. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  46995. status information etc.
  46996. <p>The job submission process involves:
  46997. <ol>
  46998. <li>
  46999. Checking the input and output specifications of the job.
  47000. </li>
  47001. <li>
  47002. Computing the {@link InputSplit}s for the job.
  47003. </li>
  47004. <li>
  47005. Setup the requisite accounting information for the {@link DistributedCache}
  47006. of the job, if necessary.
  47007. </li>
  47008. <li>
  47009. Copying the job's jar and configuration to the map-reduce system directory
  47010. on the distributed file-system.
  47011. </li>
  47012. <li>
  47013. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  47014. it's status.
  47015. </li>
  47016. </ol></p>
  47017. Normally the user creates the application, describes various facets of the
  47018. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  47019. the job and monitor its progress.
  47020. <p>Here is an example on how to use <code>JobClient</code>:</p>
  47021. <p><blockquote><pre>
  47022. // Create a new JobConf
  47023. JobConf job = new JobConf(new Configuration(), MyJob.class);
  47024. // Specify various job-specific parameters
  47025. job.setJobName("myjob");
  47026. job.setInputPath(new Path("in"));
  47027. job.setOutputPath(new Path("out"));
  47028. job.setMapperClass(MyJob.MyMapper.class);
  47029. job.setReducerClass(MyJob.MyReducer.class);
  47030. // Submit the job, then poll for progress until the job is complete
  47031. JobClient.runJob(job);
  47032. </pre></blockquote></p>
  47033. <h4 id="JobControl">Job Control</h4>
  47034. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  47035. which cannot be done via a single map-reduce job. This is fairly easy since
  47036. the output of the job, typically, goes to distributed file-system and that
  47037. can be used as the input for the next job.</p>
  47038. <p>However, this also means that the onus on ensuring jobs are complete
  47039. (success/failure) lies squarely on the clients. In such situations the
  47040. various job-control options are:
  47041. <ol>
  47042. <li>
  47043. {@link #runJob(JobConf)} : submits the job and returns only after
  47044. the job has completed.
  47045. </li>
  47046. <li>
  47047. {@link #submitJob(JobConf)} : only submits the job, then poll the
  47048. returned handle to the {@link RunningJob} to query status and make
  47049. scheduling decisions.
  47050. </li>
  47051. <li>
  47052. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  47053. on job-completion, thus avoiding polling.
  47054. </li>
  47055. </ol></p>
  47056. @see JobConf
  47057. @see ClusterStatus
  47058. @see Tool
  47059. @see DistributedCache]]>
  47060. </doc>
  47061. </class>
  47062. <!-- end class org.apache.hadoop.mapred.JobClient -->
  47063. <!-- start class org.apache.hadoop.mapred.JobClient.Renewer -->
  47064. <class name="JobClient.Renewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  47065. abstract="false"
  47066. static="true" final="false" visibility="public"
  47067. deprecated="not deprecated">
  47068. <constructor name="JobClient.Renewer"
  47069. static="false" final="false" visibility="public"
  47070. deprecated="not deprecated">
  47071. </constructor>
  47072. <method name="handleKind" return="boolean"
  47073. abstract="false" native="false" synchronized="false"
  47074. static="false" final="false" visibility="public"
  47075. deprecated="not deprecated">
  47076. <param name="kind" type="org.apache.hadoop.io.Text"/>
  47077. </method>
  47078. <method name="renew" return="long"
  47079. abstract="false" native="false" synchronized="false"
  47080. static="false" final="false" visibility="public"
  47081. deprecated="not deprecated">
  47082. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47083. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  47084. <exception name="IOException" type="java.io.IOException"/>
  47085. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47086. </method>
  47087. <method name="cancel"
  47088. abstract="false" native="false" synchronized="false"
  47089. static="false" final="false" visibility="public"
  47090. deprecated="not deprecated">
  47091. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47092. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  47093. <exception name="IOException" type="java.io.IOException"/>
  47094. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47095. </method>
  47096. <method name="isManaged" return="boolean"
  47097. abstract="false" native="false" synchronized="false"
  47098. static="false" final="false" visibility="public"
  47099. deprecated="not deprecated">
  47100. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47101. <exception name="IOException" type="java.io.IOException"/>
  47102. </method>
  47103. </class>
  47104. <!-- end class org.apache.hadoop.mapred.JobClient.Renewer -->
  47105. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  47106. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum"
  47107. abstract="false"
  47108. static="true" final="true" visibility="public"
  47109. deprecated="not deprecated">
  47110. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  47111. abstract="false" native="false" synchronized="false"
  47112. static="true" final="false" visibility="public"
  47113. deprecated="not deprecated">
  47114. </method>
  47115. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47116. abstract="false" native="false" synchronized="false"
  47117. static="true" final="false" visibility="public"
  47118. deprecated="not deprecated">
  47119. <param name="name" type="java.lang.String"/>
  47120. </method>
  47121. <field name="NONE" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47122. transient="false" volatile="false"
  47123. static="true" final="true" visibility="public"
  47124. deprecated="not deprecated">
  47125. </field>
  47126. <field name="KILLED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47127. transient="false" volatile="false"
  47128. static="true" final="true" visibility="public"
  47129. deprecated="not deprecated">
  47130. </field>
  47131. <field name="FAILED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47132. transient="false" volatile="false"
  47133. static="true" final="true" visibility="public"
  47134. deprecated="not deprecated">
  47135. </field>
  47136. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47137. transient="false" volatile="false"
  47138. static="true" final="true" visibility="public"
  47139. deprecated="not deprecated">
  47140. </field>
  47141. <field name="ALL" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47142. transient="false" volatile="false"
  47143. static="true" final="true" visibility="public"
  47144. deprecated="not deprecated">
  47145. </field>
  47146. </class>
  47147. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  47148. <!-- start class org.apache.hadoop.mapred.JobConf -->
  47149. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  47150. abstract="false"
  47151. static="false" final="false" visibility="public"
  47152. deprecated="not deprecated">
  47153. <constructor name="JobConf"
  47154. static="false" final="false" visibility="public"
  47155. deprecated="not deprecated">
  47156. <doc>
  47157. <![CDATA[Construct a map/reduce job configuration.]]>
  47158. </doc>
  47159. </constructor>
  47160. <constructor name="JobConf" type="java.lang.Class"
  47161. static="false" final="false" visibility="public"
  47162. deprecated="not deprecated">
  47163. <doc>
  47164. <![CDATA[Construct a map/reduce job configuration.
  47165. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  47166. </doc>
  47167. </constructor>
  47168. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  47169. static="false" final="false" visibility="public"
  47170. deprecated="not deprecated">
  47171. <doc>
  47172. <![CDATA[Construct a map/reduce job configuration.
  47173. @param conf a Configuration whose settings will be inherited.]]>
  47174. </doc>
  47175. </constructor>
  47176. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  47177. static="false" final="false" visibility="public"
  47178. deprecated="not deprecated">
  47179. <doc>
  47180. <![CDATA[Construct a map/reduce job configuration.
  47181. @param conf a Configuration whose settings will be inherited.
  47182. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  47183. </doc>
  47184. </constructor>
  47185. <constructor name="JobConf" type="java.lang.String"
  47186. static="false" final="false" visibility="public"
  47187. deprecated="not deprecated">
  47188. <doc>
  47189. <![CDATA[Construct a map/reduce configuration.
  47190. @param config a Configuration-format XML job description file.]]>
  47191. </doc>
  47192. </constructor>
  47193. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  47194. static="false" final="false" visibility="public"
  47195. deprecated="not deprecated">
  47196. <doc>
  47197. <![CDATA[Construct a map/reduce configuration.
  47198. @param config a Configuration-format XML job description file.]]>
  47199. </doc>
  47200. </constructor>
  47201. <constructor name="JobConf" type="boolean"
  47202. static="false" final="false" visibility="public"
  47203. deprecated="not deprecated">
  47204. <doc>
  47205. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  47206. default resources can be turned off.
  47207. <p/>
  47208. If the parameter {@code loadDefaults} is false, the new instance
  47209. will not load resources from the default files.
  47210. @param loadDefaults specifies whether to load from the default files]]>
  47211. </doc>
  47212. </constructor>
  47213. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  47214. abstract="false" native="false" synchronized="false"
  47215. static="false" final="false" visibility="public"
  47216. deprecated="not deprecated">
  47217. <doc>
  47218. <![CDATA[Get credentials for the job.
  47219. @return credentials for the job]]>
  47220. </doc>
  47221. </method>
  47222. <method name="getJar" return="java.lang.String"
  47223. abstract="false" native="false" synchronized="false"
  47224. static="false" final="false" visibility="public"
  47225. deprecated="not deprecated">
  47226. <doc>
  47227. <![CDATA[Get the user jar for the map-reduce job.
  47228. @return the user jar for the map-reduce job.]]>
  47229. </doc>
  47230. </method>
  47231. <method name="setJar"
  47232. abstract="false" native="false" synchronized="false"
  47233. static="false" final="false" visibility="public"
  47234. deprecated="not deprecated">
  47235. <param name="jar" type="java.lang.String"/>
  47236. <doc>
  47237. <![CDATA[Set the user jar for the map-reduce job.
  47238. @param jar the user jar for the map-reduce job.]]>
  47239. </doc>
  47240. </method>
  47241. <method name="setJarByClass"
  47242. abstract="false" native="false" synchronized="false"
  47243. static="false" final="false" visibility="public"
  47244. deprecated="not deprecated">
  47245. <param name="cls" type="java.lang.Class"/>
  47246. <doc>
  47247. <![CDATA[Set the job's jar file by finding an example class location.
  47248. @param cls the example class.]]>
  47249. </doc>
  47250. </method>
  47251. <method name="getLocalDirs" return="java.lang.String[]"
  47252. abstract="false" native="false" synchronized="false"
  47253. static="false" final="false" visibility="public"
  47254. deprecated="not deprecated">
  47255. <exception name="IOException" type="java.io.IOException"/>
  47256. </method>
  47257. <method name="deleteLocalFiles"
  47258. abstract="false" native="false" synchronized="false"
  47259. static="false" final="false" visibility="public"
  47260. deprecated="not deprecated">
  47261. <exception name="IOException" type="java.io.IOException"/>
  47262. </method>
  47263. <method name="deleteLocalFiles"
  47264. abstract="false" native="false" synchronized="false"
  47265. static="false" final="false" visibility="public"
  47266. deprecated="not deprecated">
  47267. <param name="subdir" type="java.lang.String"/>
  47268. <exception name="IOException" type="java.io.IOException"/>
  47269. </method>
  47270. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  47271. abstract="false" native="false" synchronized="false"
  47272. static="false" final="false" visibility="public"
  47273. deprecated="not deprecated">
  47274. <param name="pathString" type="java.lang.String"/>
  47275. <exception name="IOException" type="java.io.IOException"/>
  47276. <doc>
  47277. <![CDATA[Constructs a local file name. Files are distributed among configured
  47278. local directories.]]>
  47279. </doc>
  47280. </method>
  47281. <method name="getUser" return="java.lang.String"
  47282. abstract="false" native="false" synchronized="false"
  47283. static="false" final="false" visibility="public"
  47284. deprecated="not deprecated">
  47285. <doc>
  47286. <![CDATA[Get the reported username for this job.
  47287. @return the username]]>
  47288. </doc>
  47289. </method>
  47290. <method name="setUser"
  47291. abstract="false" native="false" synchronized="false"
  47292. static="false" final="false" visibility="public"
  47293. deprecated="not deprecated">
  47294. <param name="user" type="java.lang.String"/>
  47295. <doc>
  47296. <![CDATA[Set the reported username for this job.
  47297. @param user the username for this job.]]>
  47298. </doc>
  47299. </method>
  47300. <method name="setKeepFailedTaskFiles"
  47301. abstract="false" native="false" synchronized="false"
  47302. static="false" final="false" visibility="public"
  47303. deprecated="not deprecated">
  47304. <param name="keep" type="boolean"/>
  47305. <doc>
  47306. <![CDATA[Set whether the framework should keep the intermediate files for
  47307. failed tasks.
  47308. @param keep <code>true</code> if framework should keep the intermediate files
  47309. for failed tasks, <code>false</code> otherwise.]]>
  47310. </doc>
  47311. </method>
  47312. <method name="getKeepFailedTaskFiles" return="boolean"
  47313. abstract="false" native="false" synchronized="false"
  47314. static="false" final="false" visibility="public"
  47315. deprecated="not deprecated">
  47316. <doc>
  47317. <![CDATA[Should the temporary files for failed tasks be kept?
  47318. @return should the files be kept?]]>
  47319. </doc>
  47320. </method>
  47321. <method name="setKeepTaskFilesPattern"
  47322. abstract="false" native="false" synchronized="false"
  47323. static="false" final="false" visibility="public"
  47324. deprecated="not deprecated">
  47325. <param name="pattern" type="java.lang.String"/>
  47326. <doc>
  47327. <![CDATA[Set a regular expression for task names that should be kept.
  47328. The regular expression ".*_m_000123_0" would keep the files
  47329. for the first instance of map 123 that ran.
  47330. @param pattern the java.util.regex.Pattern to match against the
  47331. task names.]]>
  47332. </doc>
  47333. </method>
  47334. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  47335. abstract="false" native="false" synchronized="false"
  47336. static="false" final="false" visibility="public"
  47337. deprecated="not deprecated">
  47338. <doc>
  47339. <![CDATA[Get the regular expression that is matched against the task names
  47340. to see if we need to keep the files.
  47341. @return the pattern as a string, if it was set, othewise null.]]>
  47342. </doc>
  47343. </method>
  47344. <method name="setWorkingDirectory"
  47345. abstract="false" native="false" synchronized="false"
  47346. static="false" final="false" visibility="public"
  47347. deprecated="not deprecated">
  47348. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  47349. <doc>
  47350. <![CDATA[Set the current working directory for the default file system.
  47351. @param dir the new current working directory.]]>
  47352. </doc>
  47353. </method>
  47354. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  47355. abstract="false" native="false" synchronized="false"
  47356. static="false" final="false" visibility="public"
  47357. deprecated="not deprecated">
  47358. <doc>
  47359. <![CDATA[Get the current working directory for the default file system.
  47360. @return the directory name.]]>
  47361. </doc>
  47362. </method>
  47363. <method name="setNumTasksToExecutePerJvm"
  47364. abstract="false" native="false" synchronized="false"
  47365. static="false" final="false" visibility="public"
  47366. deprecated="not deprecated">
  47367. <param name="numTasks" type="int"/>
  47368. <doc>
  47369. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  47370. before it exits
  47371. @param numTasks the number of tasks to execute; defaults to 1;
  47372. -1 signifies no limit]]>
  47373. </doc>
  47374. </method>
  47375. <method name="getNumTasksToExecutePerJvm" return="int"
  47376. abstract="false" native="false" synchronized="false"
  47377. static="false" final="false" visibility="public"
  47378. deprecated="not deprecated">
  47379. <doc>
  47380. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  47381. </doc>
  47382. </method>
  47383. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  47384. abstract="false" native="false" synchronized="false"
  47385. static="false" final="false" visibility="public"
  47386. deprecated="not deprecated">
  47387. <doc>
  47388. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  47389. defaults to {@link TextInputFormat} if not specified explicity.
  47390. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  47391. </doc>
  47392. </method>
  47393. <method name="setInputFormat"
  47394. abstract="false" native="false" synchronized="false"
  47395. static="false" final="false" visibility="public"
  47396. deprecated="not deprecated">
  47397. <param name="theClass" type="java.lang.Class"/>
  47398. <doc>
  47399. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  47400. @param theClass the {@link InputFormat} implementation for the map-reduce
  47401. job.]]>
  47402. </doc>
  47403. </method>
  47404. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  47405. abstract="false" native="false" synchronized="false"
  47406. static="false" final="false" visibility="public"
  47407. deprecated="not deprecated">
  47408. <doc>
  47409. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  47410. defaults to {@link TextOutputFormat} if not specified explicity.
  47411. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  47412. </doc>
  47413. </method>
  47414. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  47415. abstract="false" native="false" synchronized="false"
  47416. static="false" final="false" visibility="public"
  47417. deprecated="not deprecated">
  47418. <doc>
  47419. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  47420. defaults to {@link FileOutputCommitter} if not specified explicitly.
  47421. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  47422. </doc>
  47423. </method>
  47424. <method name="setOutputCommitter"
  47425. abstract="false" native="false" synchronized="false"
  47426. static="false" final="false" visibility="public"
  47427. deprecated="not deprecated">
  47428. <param name="theClass" type="java.lang.Class"/>
  47429. <doc>
  47430. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  47431. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  47432. job.]]>
  47433. </doc>
  47434. </method>
  47435. <method name="setOutputFormat"
  47436. abstract="false" native="false" synchronized="false"
  47437. static="false" final="false" visibility="public"
  47438. deprecated="not deprecated">
  47439. <param name="theClass" type="java.lang.Class"/>
  47440. <doc>
  47441. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  47442. @param theClass the {@link OutputFormat} implementation for the map-reduce
  47443. job.]]>
  47444. </doc>
  47445. </method>
  47446. <method name="setCompressMapOutput"
  47447. abstract="false" native="false" synchronized="false"
  47448. static="false" final="false" visibility="public"
  47449. deprecated="not deprecated">
  47450. <param name="compress" type="boolean"/>
  47451. <doc>
  47452. <![CDATA[Should the map outputs be compressed before transfer?
  47453. Uses the SequenceFile compression.
  47454. @param compress should the map outputs be compressed?]]>
  47455. </doc>
  47456. </method>
  47457. <method name="getCompressMapOutput" return="boolean"
  47458. abstract="false" native="false" synchronized="false"
  47459. static="false" final="false" visibility="public"
  47460. deprecated="not deprecated">
  47461. <doc>
  47462. <![CDATA[Are the outputs of the maps be compressed?
  47463. @return <code>true</code> if the outputs of the maps are to be compressed,
  47464. <code>false</code> otherwise.]]>
  47465. </doc>
  47466. </method>
  47467. <method name="setMapOutputCompressorClass"
  47468. abstract="false" native="false" synchronized="false"
  47469. static="false" final="false" visibility="public"
  47470. deprecated="not deprecated">
  47471. <param name="codecClass" type="java.lang.Class"/>
  47472. <doc>
  47473. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  47474. @param codecClass the {@link CompressionCodec} class that will compress
  47475. the map outputs.]]>
  47476. </doc>
  47477. </method>
  47478. <method name="getMapOutputCompressorClass" return="java.lang.Class"
  47479. abstract="false" native="false" synchronized="false"
  47480. static="false" final="false" visibility="public"
  47481. deprecated="not deprecated">
  47482. <param name="defaultValue" type="java.lang.Class"/>
  47483. <doc>
  47484. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  47485. @param defaultValue the {@link CompressionCodec} to return if not set
  47486. @return the {@link CompressionCodec} class that should be used to compress the
  47487. map outputs.
  47488. @throws IllegalArgumentException if the class was specified, but not found]]>
  47489. </doc>
  47490. </method>
  47491. <method name="getMapOutputKeyClass" return="java.lang.Class"
  47492. abstract="false" native="false" synchronized="false"
  47493. static="false" final="false" visibility="public"
  47494. deprecated="not deprecated">
  47495. <doc>
  47496. <![CDATA[Get the key class for the map output data. If it is not set, use the
  47497. (final) output key class. This allows the map output key class to be
  47498. different than the final output key class.
  47499. @return the map output key class.]]>
  47500. </doc>
  47501. </method>
  47502. <method name="setMapOutputKeyClass"
  47503. abstract="false" native="false" synchronized="false"
  47504. static="false" final="false" visibility="public"
  47505. deprecated="not deprecated">
  47506. <param name="theClass" type="java.lang.Class"/>
  47507. <doc>
  47508. <![CDATA[Set the key class for the map output data. This allows the user to
  47509. specify the map output key class to be different than the final output
  47510. value class.
  47511. @param theClass the map output key class.]]>
  47512. </doc>
  47513. </method>
  47514. <method name="getMapOutputValueClass" return="java.lang.Class"
  47515. abstract="false" native="false" synchronized="false"
  47516. static="false" final="false" visibility="public"
  47517. deprecated="not deprecated">
  47518. <doc>
  47519. <![CDATA[Get the value class for the map output data. If it is not set, use the
  47520. (final) output value class This allows the map output value class to be
  47521. different than the final output value class.
  47522. @return the map output value class.]]>
  47523. </doc>
  47524. </method>
  47525. <method name="setMapOutputValueClass"
  47526. abstract="false" native="false" synchronized="false"
  47527. static="false" final="false" visibility="public"
  47528. deprecated="not deprecated">
  47529. <param name="theClass" type="java.lang.Class"/>
  47530. <doc>
  47531. <![CDATA[Set the value class for the map output data. This allows the user to
  47532. specify the map output value class to be different than the final output
  47533. value class.
  47534. @param theClass the map output value class.]]>
  47535. </doc>
  47536. </method>
  47537. <method name="getOutputKeyClass" return="java.lang.Class"
  47538. abstract="false" native="false" synchronized="false"
  47539. static="false" final="false" visibility="public"
  47540. deprecated="not deprecated">
  47541. <doc>
  47542. <![CDATA[Get the key class for the job output data.
  47543. @return the key class for the job output data.]]>
  47544. </doc>
  47545. </method>
  47546. <method name="setOutputKeyClass"
  47547. abstract="false" native="false" synchronized="false"
  47548. static="false" final="false" visibility="public"
  47549. deprecated="not deprecated">
  47550. <param name="theClass" type="java.lang.Class"/>
  47551. <doc>
  47552. <![CDATA[Set the key class for the job output data.
  47553. @param theClass the key class for the job output data.]]>
  47554. </doc>
  47555. </method>
  47556. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  47557. abstract="false" native="false" synchronized="false"
  47558. static="false" final="false" visibility="public"
  47559. deprecated="not deprecated">
  47560. <doc>
  47561. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  47562. @return the {@link RawComparator} comparator used to compare keys.]]>
  47563. </doc>
  47564. </method>
  47565. <method name="setOutputKeyComparatorClass"
  47566. abstract="false" native="false" synchronized="false"
  47567. static="false" final="false" visibility="public"
  47568. deprecated="not deprecated">
  47569. <param name="theClass" type="java.lang.Class"/>
  47570. <doc>
  47571. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  47572. @param theClass the {@link RawComparator} comparator used to
  47573. compare keys.
  47574. @see #setOutputValueGroupingComparator(Class)]]>
  47575. </doc>
  47576. </method>
  47577. <method name="setKeyFieldComparatorOptions"
  47578. abstract="false" native="false" synchronized="false"
  47579. static="false" final="false" visibility="public"
  47580. deprecated="not deprecated">
  47581. <param name="keySpec" type="java.lang.String"/>
  47582. <doc>
  47583. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  47584. @param keySpec the key specification of the form -k pos1[,pos2], where,
  47585. pos is of the form f[.c][opts], where f is the number
  47586. of the key field to use, and c is the number of the first character from
  47587. the beginning of the field. Fields and character posns are numbered
  47588. starting with 1; a character position of zero in pos2 indicates the
  47589. field's last character. If '.c' is omitted from pos1, it defaults to 1
  47590. (the beginning of the field); if omitted from pos2, it defaults to 0
  47591. (the end of the field). opts are ordering options. The supported options
  47592. are:
  47593. -n, (Sort numerically)
  47594. -r, (Reverse the result of comparison)]]>
  47595. </doc>
  47596. </method>
  47597. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  47598. abstract="false" native="false" synchronized="false"
  47599. static="false" final="false" visibility="public"
  47600. deprecated="not deprecated">
  47601. <doc>
  47602. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  47603. </doc>
  47604. </method>
  47605. <method name="setKeyFieldPartitionerOptions"
  47606. abstract="false" native="false" synchronized="false"
  47607. static="false" final="false" visibility="public"
  47608. deprecated="not deprecated">
  47609. <param name="keySpec" type="java.lang.String"/>
  47610. <doc>
  47611. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  47612. {@link Partitioner}
  47613. @param keySpec the key specification of the form -k pos1[,pos2], where,
  47614. pos is of the form f[.c][opts], where f is the number
  47615. of the key field to use, and c is the number of the first character from
  47616. the beginning of the field. Fields and character posns are numbered
  47617. starting with 1; a character position of zero in pos2 indicates the
  47618. field's last character. If '.c' is omitted from pos1, it defaults to 1
  47619. (the beginning of the field); if omitted from pos2, it defaults to 0
  47620. (the end of the field).]]>
  47621. </doc>
  47622. </method>
  47623. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  47624. abstract="false" native="false" synchronized="false"
  47625. static="false" final="false" visibility="public"
  47626. deprecated="not deprecated">
  47627. <doc>
  47628. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  47629. </doc>
  47630. </method>
  47631. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  47632. abstract="false" native="false" synchronized="false"
  47633. static="false" final="false" visibility="public"
  47634. deprecated="not deprecated">
  47635. <doc>
  47636. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  47637. grouping keys of inputs to the reduce.
  47638. @return comparator set by the user for grouping values.
  47639. @see #setOutputValueGroupingComparator(Class) for details.]]>
  47640. </doc>
  47641. </method>
  47642. <method name="setOutputValueGroupingComparator"
  47643. abstract="false" native="false" synchronized="false"
  47644. static="false" final="false" visibility="public"
  47645. deprecated="not deprecated">
  47646. <param name="theClass" type="java.lang.Class"/>
  47647. <doc>
  47648. <![CDATA[Set the user defined {@link RawComparator} comparator for
  47649. grouping keys in the input to the reduce.
  47650. <p>This comparator should be provided if the equivalence rules for keys
  47651. for sorting the intermediates are different from those for grouping keys
  47652. before each call to
  47653. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  47654. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  47655. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  47656. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  47657. how keys are sorted, this can be used in conjunction to simulate
  47658. <i>secondary sort on values</i>.</p>
  47659. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  47660. <i>stable</i> in any sense. (In any case, with the order of available
  47661. map-outputs to the reduce being non-deterministic, it wouldn't make
  47662. that much sense.)</p>
  47663. @param theClass the comparator class to be used for grouping keys.
  47664. It should implement <code>RawComparator</code>.
  47665. @see #setOutputKeyComparatorClass(Class)]]>
  47666. </doc>
  47667. </method>
  47668. <method name="getUseNewMapper" return="boolean"
  47669. abstract="false" native="false" synchronized="false"
  47670. static="false" final="false" visibility="public"
  47671. deprecated="not deprecated">
  47672. <doc>
  47673. <![CDATA[Should the framework use the new context-object code for running
  47674. the mapper?
  47675. @return true, if the new api should be used]]>
  47676. </doc>
  47677. </method>
  47678. <method name="setUseNewMapper"
  47679. abstract="false" native="false" synchronized="false"
  47680. static="false" final="false" visibility="public"
  47681. deprecated="not deprecated">
  47682. <param name="flag" type="boolean"/>
  47683. <doc>
  47684. <![CDATA[Set whether the framework should use the new api for the mapper.
  47685. This is the default for jobs submitted with the new Job api.
  47686. @param flag true, if the new api should be used]]>
  47687. </doc>
  47688. </method>
  47689. <method name="getUseNewReducer" return="boolean"
  47690. abstract="false" native="false" synchronized="false"
  47691. static="false" final="false" visibility="public"
  47692. deprecated="not deprecated">
  47693. <doc>
  47694. <![CDATA[Should the framework use the new context-object code for running
  47695. the reducer?
  47696. @return true, if the new api should be used]]>
  47697. </doc>
  47698. </method>
  47699. <method name="setUseNewReducer"
  47700. abstract="false" native="false" synchronized="false"
  47701. static="false" final="false" visibility="public"
  47702. deprecated="not deprecated">
  47703. <param name="flag" type="boolean"/>
  47704. <doc>
  47705. <![CDATA[Set whether the framework should use the new api for the reducer.
  47706. This is the default for jobs submitted with the new Job api.
  47707. @param flag true, if the new api should be used]]>
  47708. </doc>
  47709. </method>
  47710. <method name="getOutputValueClass" return="java.lang.Class"
  47711. abstract="false" native="false" synchronized="false"
  47712. static="false" final="false" visibility="public"
  47713. deprecated="not deprecated">
  47714. <doc>
  47715. <![CDATA[Get the value class for job outputs.
  47716. @return the value class for job outputs.]]>
  47717. </doc>
  47718. </method>
  47719. <method name="setOutputValueClass"
  47720. abstract="false" native="false" synchronized="false"
  47721. static="false" final="false" visibility="public"
  47722. deprecated="not deprecated">
  47723. <param name="theClass" type="java.lang.Class"/>
  47724. <doc>
  47725. <![CDATA[Set the value class for job outputs.
  47726. @param theClass the value class for job outputs.]]>
  47727. </doc>
  47728. </method>
  47729. <method name="getMapperClass" return="java.lang.Class"
  47730. abstract="false" native="false" synchronized="false"
  47731. static="false" final="false" visibility="public"
  47732. deprecated="not deprecated">
  47733. <doc>
  47734. <![CDATA[Get the {@link Mapper} class for the job.
  47735. @return the {@link Mapper} class for the job.]]>
  47736. </doc>
  47737. </method>
  47738. <method name="setMapperClass"
  47739. abstract="false" native="false" synchronized="false"
  47740. static="false" final="false" visibility="public"
  47741. deprecated="not deprecated">
  47742. <param name="theClass" type="java.lang.Class"/>
  47743. <doc>
  47744. <![CDATA[Set the {@link Mapper} class for the job.
  47745. @param theClass the {@link Mapper} class for the job.]]>
  47746. </doc>
  47747. </method>
  47748. <method name="getMapRunnerClass" return="java.lang.Class"
  47749. abstract="false" native="false" synchronized="false"
  47750. static="false" final="false" visibility="public"
  47751. deprecated="not deprecated">
  47752. <doc>
  47753. <![CDATA[Get the {@link MapRunnable} class for the job.
  47754. @return the {@link MapRunnable} class for the job.]]>
  47755. </doc>
  47756. </method>
  47757. <method name="setMapRunnerClass"
  47758. abstract="false" native="false" synchronized="false"
  47759. static="false" final="false" visibility="public"
  47760. deprecated="not deprecated">
  47761. <param name="theClass" type="java.lang.Class"/>
  47762. <doc>
  47763. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  47764. Typically used to exert greater control on {@link Mapper}s.
  47765. @param theClass the {@link MapRunnable} class for the job.]]>
  47766. </doc>
  47767. </method>
  47768. <method name="getPartitionerClass" return="java.lang.Class"
  47769. abstract="false" native="false" synchronized="false"
  47770. static="false" final="false" visibility="public"
  47771. deprecated="not deprecated">
  47772. <doc>
  47773. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  47774. to be sent to the {@link Reducer}s.
  47775. @return the {@link Partitioner} used to partition map-outputs.]]>
  47776. </doc>
  47777. </method>
  47778. <method name="setPartitionerClass"
  47779. abstract="false" native="false" synchronized="false"
  47780. static="false" final="false" visibility="public"
  47781. deprecated="not deprecated">
  47782. <param name="theClass" type="java.lang.Class"/>
  47783. <doc>
  47784. <![CDATA[Set the {@link Partitioner} class used to partition
  47785. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  47786. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  47787. </doc>
  47788. </method>
  47789. <method name="getReducerClass" return="java.lang.Class"
  47790. abstract="false" native="false" synchronized="false"
  47791. static="false" final="false" visibility="public"
  47792. deprecated="not deprecated">
  47793. <doc>
  47794. <![CDATA[Get the {@link Reducer} class for the job.
  47795. @return the {@link Reducer} class for the job.]]>
  47796. </doc>
  47797. </method>
  47798. <method name="setReducerClass"
  47799. abstract="false" native="false" synchronized="false"
  47800. static="false" final="false" visibility="public"
  47801. deprecated="not deprecated">
  47802. <param name="theClass" type="java.lang.Class"/>
  47803. <doc>
  47804. <![CDATA[Set the {@link Reducer} class for the job.
  47805. @param theClass the {@link Reducer} class for the job.]]>
  47806. </doc>
  47807. </method>
  47808. <method name="getCombinerClass" return="java.lang.Class"
  47809. abstract="false" native="false" synchronized="false"
  47810. static="false" final="false" visibility="public"
  47811. deprecated="not deprecated">
  47812. <doc>
  47813. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  47814. before being sent to the reducers. Typically the combiner is same as the
  47815. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  47816. @return the user-defined combiner class used to combine map-outputs.]]>
  47817. </doc>
  47818. </method>
  47819. <method name="setCombinerClass"
  47820. abstract="false" native="false" synchronized="false"
  47821. static="false" final="false" visibility="public"
  47822. deprecated="not deprecated">
  47823. <param name="theClass" type="java.lang.Class"/>
  47824. <doc>
  47825. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  47826. before being sent to the reducers.
  47827. <p>The combiner is an application-specified aggregation operation, which
  47828. can help cut down the amount of data transferred between the
  47829. {@link Mapper} and the {@link Reducer}, leading to better performance.</p>
  47830. <p>The framework may invoke the combiner 0, 1, or multiple times, in both
  47831. the mapper and reducer tasks. In general, the combiner is called as the
  47832. sort/merge result is written to disk. The combiner must:
  47833. <ul>
  47834. <li> be side-effect free</li>
  47835. <li> have the same input and output key types and the same input and
  47836. output value types</li>
  47837. </ul></p>
  47838. <p>Typically the combiner is same as the <code>Reducer</code> for the
  47839. job i.e. {@link #setReducerClass(Class)}.</p>
  47840. @param theClass the user-defined combiner class used to combine
  47841. map-outputs.]]>
  47842. </doc>
  47843. </method>
  47844. <method name="getSpeculativeExecution" return="boolean"
  47845. abstract="false" native="false" synchronized="false"
  47846. static="false" final="false" visibility="public"
  47847. deprecated="not deprecated">
  47848. <doc>
  47849. <![CDATA[Should speculative execution be used for this job?
  47850. Defaults to <code>true</code>.
  47851. @return <code>true</code> if speculative execution be used for this job,
  47852. <code>false</code> otherwise.]]>
  47853. </doc>
  47854. </method>
  47855. <method name="setSpeculativeExecution"
  47856. abstract="false" native="false" synchronized="false"
  47857. static="false" final="false" visibility="public"
  47858. deprecated="not deprecated">
  47859. <param name="speculativeExecution" type="boolean"/>
  47860. <doc>
  47861. <![CDATA[Turn speculative execution on or off for this job.
  47862. @param speculativeExecution <code>true</code> if speculative execution
  47863. should be turned on, else <code>false</code>.]]>
  47864. </doc>
  47865. </method>
  47866. <method name="getMapSpeculativeExecution" return="boolean"
  47867. abstract="false" native="false" synchronized="false"
  47868. static="false" final="false" visibility="public"
  47869. deprecated="not deprecated">
  47870. <doc>
  47871. <![CDATA[Should speculative execution be used for this job for map tasks?
  47872. Defaults to <code>true</code>.
  47873. @return <code>true</code> if speculative execution be
  47874. used for this job for map tasks,
  47875. <code>false</code> otherwise.]]>
  47876. </doc>
  47877. </method>
  47878. <method name="setMapSpeculativeExecution"
  47879. abstract="false" native="false" synchronized="false"
  47880. static="false" final="false" visibility="public"
  47881. deprecated="not deprecated">
  47882. <param name="speculativeExecution" type="boolean"/>
  47883. <doc>
  47884. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  47885. @param speculativeExecution <code>true</code> if speculative execution
  47886. should be turned on for map tasks,
  47887. else <code>false</code>.]]>
  47888. </doc>
  47889. </method>
  47890. <method name="getReduceSpeculativeExecution" return="boolean"
  47891. abstract="false" native="false" synchronized="false"
  47892. static="false" final="false" visibility="public"
  47893. deprecated="not deprecated">
  47894. <doc>
  47895. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  47896. Defaults to <code>true</code>.
  47897. @return <code>true</code> if speculative execution be used
  47898. for reduce tasks for this job,
  47899. <code>false</code> otherwise.]]>
  47900. </doc>
  47901. </method>
  47902. <method name="setReduceSpeculativeExecution"
  47903. abstract="false" native="false" synchronized="false"
  47904. static="false" final="false" visibility="public"
  47905. deprecated="not deprecated">
  47906. <param name="speculativeExecution" type="boolean"/>
  47907. <doc>
  47908. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  47909. @param speculativeExecution <code>true</code> if speculative execution
  47910. should be turned on for reduce tasks,
  47911. else <code>false</code>.]]>
  47912. </doc>
  47913. </method>
  47914. <method name="getNumMapTasks" return="int"
  47915. abstract="false" native="false" synchronized="false"
  47916. static="false" final="false" visibility="public"
  47917. deprecated="not deprecated">
  47918. <doc>
  47919. <![CDATA[Get configured the number of reduce tasks for this job.
  47920. Defaults to <code>1</code>.
  47921. @return the number of reduce tasks for this job.]]>
  47922. </doc>
  47923. </method>
  47924. <method name="setNumMapTasks"
  47925. abstract="false" native="false" synchronized="false"
  47926. static="false" final="false" visibility="public"
  47927. deprecated="not deprecated">
  47928. <param name="n" type="int"/>
  47929. <doc>
  47930. <![CDATA[Set the number of map tasks for this job.
  47931. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  47932. number of spawned map tasks depends on the number of {@link InputSplit}s
  47933. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  47934. A custom {@link InputFormat} is typically used to accurately control
  47935. the number of map tasks for the job.</p>
  47936. <h4 id="NoOfMaps">How many maps?</h4>
  47937. <p>The number of maps is usually driven by the total size of the inputs
  47938. i.e. total number of blocks of the input files.</p>
  47939. <p>The right level of parallelism for maps seems to be around 10-100 maps
  47940. per-node, although it has been set up to 300 or so for very cpu-light map
  47941. tasks. Task setup takes awhile, so it is best if the maps take at least a
  47942. minute to execute.</p>
  47943. <p>The default behavior of file-based {@link InputFormat}s is to split the
  47944. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  47945. bytes, of input files. However, the {@link FileSystem} blocksize of the
  47946. input files is treated as an upper bound for input splits. A lower bound
  47947. on the split size can be set via
  47948. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  47949. mapred.min.split.size</a>.</p>
  47950. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  47951. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  47952. used to set it even higher.</p>
  47953. @param n the number of map tasks for this job.
  47954. @see InputFormat#getSplits(JobConf, int)
  47955. @see FileInputFormat
  47956. @see FileSystem#getDefaultBlockSize()
  47957. @see FileStatus#getBlockSize()]]>
  47958. </doc>
  47959. </method>
  47960. <method name="getNumReduceTasks" return="int"
  47961. abstract="false" native="false" synchronized="false"
  47962. static="false" final="false" visibility="public"
  47963. deprecated="not deprecated">
  47964. <doc>
  47965. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  47966. <code>1</code>.
  47967. @return the number of reduce tasks for this job.]]>
  47968. </doc>
  47969. </method>
  47970. <method name="setNumReduceTasks"
  47971. abstract="false" native="false" synchronized="false"
  47972. static="false" final="false" visibility="public"
  47973. deprecated="not deprecated">
  47974. <param name="n" type="int"/>
  47975. <doc>
  47976. <![CDATA[Set the requisite number of reduce tasks for this job.
  47977. <h4 id="NoOfReduces">How many reduces?</h4>
  47978. <p>The right number of reduces seems to be <code>0.95</code> or
  47979. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  47980. <a href="{@docRoot}/../mapred-default.html#mapred.tasktracker.reduce.tasks.maximum">
  47981. mapred.tasktracker.reduce.tasks.maximum</a>).
  47982. </p>
  47983. <p>With <code>0.95</code> all of the reduces can launch immediately and
  47984. start transfering map outputs as the maps finish. With <code>1.75</code>
  47985. the faster nodes will finish their first round of reduces and launch a
  47986. second wave of reduces doing a much better job of load balancing.</p>
  47987. <p>Increasing the number of reduces increases the framework overhead, but
  47988. increases load balancing and lowers the cost of failures.</p>
  47989. <p>The scaling factors above are slightly less than whole numbers to
  47990. reserve a few reduce slots in the framework for speculative-tasks, failures
  47991. etc.</p>
  47992. <h4 id="ReducerNone">Reducer NONE</h4>
  47993. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  47994. <p>In this case the output of the map-tasks directly go to distributed
  47995. file-system, to the path set by
  47996. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  47997. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  47998. @param n the number of reduce tasks for this job.]]>
  47999. </doc>
  48000. </method>
  48001. <method name="getMaxMapAttempts" return="int"
  48002. abstract="false" native="false" synchronized="false"
  48003. static="false" final="false" visibility="public"
  48004. deprecated="not deprecated">
  48005. <doc>
  48006. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  48007. map task, as specified by the <code>mapred.map.max.attempts</code>
  48008. property. If this property is not already set, the default is 4 attempts.
  48009. @return the max number of attempts per map task.]]>
  48010. </doc>
  48011. </method>
  48012. <method name="setMaxMapAttempts"
  48013. abstract="false" native="false" synchronized="false"
  48014. static="false" final="false" visibility="public"
  48015. deprecated="not deprecated">
  48016. <param name="n" type="int"/>
  48017. <doc>
  48018. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  48019. map task.
  48020. @param n the number of attempts per map task.]]>
  48021. </doc>
  48022. </method>
  48023. <method name="getMaxReduceAttempts" return="int"
  48024. abstract="false" native="false" synchronized="false"
  48025. static="false" final="false" visibility="public"
  48026. deprecated="not deprecated">
  48027. <doc>
  48028. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  48029. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  48030. property. If this property is not already set, the default is 4 attempts.
  48031. @return the max number of attempts per reduce task.]]>
  48032. </doc>
  48033. </method>
  48034. <method name="setMaxReduceAttempts"
  48035. abstract="false" native="false" synchronized="false"
  48036. static="false" final="false" visibility="public"
  48037. deprecated="not deprecated">
  48038. <param name="n" type="int"/>
  48039. <doc>
  48040. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  48041. reduce task.
  48042. @param n the number of attempts per reduce task.]]>
  48043. </doc>
  48044. </method>
  48045. <method name="getJobName" return="java.lang.String"
  48046. abstract="false" native="false" synchronized="false"
  48047. static="false" final="false" visibility="public"
  48048. deprecated="not deprecated">
  48049. <doc>
  48050. <![CDATA[Get the user-specified job name. This is only used to identify the
  48051. job to the user.
  48052. @return the job's name, defaulting to "".]]>
  48053. </doc>
  48054. </method>
  48055. <method name="setJobName"
  48056. abstract="false" native="false" synchronized="false"
  48057. static="false" final="false" visibility="public"
  48058. deprecated="not deprecated">
  48059. <param name="name" type="java.lang.String"/>
  48060. <doc>
  48061. <![CDATA[Set the user-specified job name.
  48062. @param name the job's new name.]]>
  48063. </doc>
  48064. </method>
  48065. <method name="getSessionId" return="java.lang.String"
  48066. abstract="false" native="false" synchronized="false"
  48067. static="false" final="false" visibility="public"
  48068. deprecated="not deprecated">
  48069. <doc>
  48070. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  48071. The session identifier is used to tag metric data that is reported to some
  48072. performance metrics system via the org.apache.hadoop.metrics API. The
  48073. session identifier is intended, in particular, for use by Hadoop-On-Demand
  48074. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  48075. HOD will set the session identifier by modifying the mapred-site.xml file
  48076. before starting the cluster.
  48077. When not running under HOD, this identifer is expected to remain set to
  48078. the empty string.
  48079. @return the session identifier, defaulting to "".]]>
  48080. </doc>
  48081. </method>
  48082. <method name="setSessionId"
  48083. abstract="false" native="false" synchronized="false"
  48084. static="false" final="false" visibility="public"
  48085. deprecated="not deprecated">
  48086. <param name="sessionId" type="java.lang.String"/>
  48087. <doc>
  48088. <![CDATA[Set the user-specified session identifier.
  48089. @param sessionId the new session id.]]>
  48090. </doc>
  48091. </method>
  48092. <method name="setMaxTaskFailuresPerTracker"
  48093. abstract="false" native="false" synchronized="false"
  48094. static="false" final="false" visibility="public"
  48095. deprecated="not deprecated">
  48096. <param name="noFailures" type="int"/>
  48097. <doc>
  48098. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  48099. If the no. of task failures exceeds <code>noFailures</code>, the
  48100. tasktracker is <i>blacklisted</i> for this job.
  48101. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  48102. </doc>
  48103. </method>
  48104. <method name="getMaxTaskFailuresPerTracker" return="int"
  48105. abstract="false" native="false" synchronized="false"
  48106. static="false" final="false" visibility="public"
  48107. deprecated="not deprecated">
  48108. <doc>
  48109. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  48110. If the no. of task failures exceeds this, the tasktracker is
  48111. <i>blacklisted</i> for this job.
  48112. @return the maximum no. of failures of a given job per tasktracker.]]>
  48113. </doc>
  48114. </method>
  48115. <method name="getMaxMapTaskFailuresPercent" return="int"
  48116. abstract="false" native="false" synchronized="false"
  48117. static="false" final="false" visibility="public"
  48118. deprecated="not deprecated">
  48119. <doc>
  48120. <![CDATA[Get the maximum percentage of map tasks that can fail without
  48121. the job being aborted.
  48122. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  48123. attempts before being declared as <i>failed</i>.
  48124. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  48125. the job being declared as {@link JobStatus#FAILED}.
  48126. @return the maximum percentage of map tasks that can fail without
  48127. the job being aborted.]]>
  48128. </doc>
  48129. </method>
  48130. <method name="setMaxMapTaskFailuresPercent"
  48131. abstract="false" native="false" synchronized="false"
  48132. static="false" final="false" visibility="public"
  48133. deprecated="not deprecated">
  48134. <param name="percent" type="int"/>
  48135. <doc>
  48136. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  48137. job being aborted.
  48138. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  48139. before being declared as <i>failed</i>.
  48140. @param percent the maximum percentage of map tasks that can fail without
  48141. the job being aborted.]]>
  48142. </doc>
  48143. </method>
  48144. <method name="getMaxReduceTaskFailuresPercent" return="int"
  48145. abstract="false" native="false" synchronized="false"
  48146. static="false" final="false" visibility="public"
  48147. deprecated="not deprecated">
  48148. <doc>
  48149. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  48150. the job being aborted.
  48151. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  48152. attempts before being declared as <i>failed</i>.
  48153. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  48154. in the job being declared as {@link JobStatus#FAILED}.
  48155. @return the maximum percentage of reduce tasks that can fail without
  48156. the job being aborted.]]>
  48157. </doc>
  48158. </method>
  48159. <method name="setMaxReduceTaskFailuresPercent"
  48160. abstract="false" native="false" synchronized="false"
  48161. static="false" final="false" visibility="public"
  48162. deprecated="not deprecated">
  48163. <param name="percent" type="int"/>
  48164. <doc>
  48165. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  48166. being aborted.
  48167. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  48168. attempts before being declared as <i>failed</i>.
  48169. @param percent the maximum percentage of reduce tasks that can fail without
  48170. the job being aborted.]]>
  48171. </doc>
  48172. </method>
  48173. <method name="setJobPriority"
  48174. abstract="false" native="false" synchronized="false"
  48175. static="false" final="false" visibility="public"
  48176. deprecated="not deprecated">
  48177. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  48178. <doc>
  48179. <![CDATA[Set {@link JobPriority} for this job.
  48180. @param prio the {@link JobPriority} for this job.]]>
  48181. </doc>
  48182. </method>
  48183. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  48184. abstract="false" native="false" synchronized="false"
  48185. static="false" final="false" visibility="public"
  48186. deprecated="not deprecated">
  48187. <doc>
  48188. <![CDATA[Get the {@link JobPriority} for this job.
  48189. @return the {@link JobPriority} for this job.]]>
  48190. </doc>
  48191. </method>
  48192. <method name="getProfileEnabled" return="boolean"
  48193. abstract="false" native="false" synchronized="false"
  48194. static="false" final="false" visibility="public"
  48195. deprecated="not deprecated">
  48196. <doc>
  48197. <![CDATA[Get whether the task profiling is enabled.
  48198. @return true if some tasks will be profiled]]>
  48199. </doc>
  48200. </method>
  48201. <method name="setProfileEnabled"
  48202. abstract="false" native="false" synchronized="false"
  48203. static="false" final="false" visibility="public"
  48204. deprecated="not deprecated">
  48205. <param name="newValue" type="boolean"/>
  48206. <doc>
  48207. <![CDATA[Set whether the system should collect profiler information for some of
  48208. the tasks in this job? The information is stored in the user log
  48209. directory.
  48210. @param newValue true means it should be gathered]]>
  48211. </doc>
  48212. </method>
  48213. <method name="getProfileParams" return="java.lang.String"
  48214. abstract="false" native="false" synchronized="false"
  48215. static="false" final="false" visibility="public"
  48216. deprecated="not deprecated">
  48217. <doc>
  48218. <![CDATA[Get the profiler configuration arguments.
  48219. The default value for this property is
  48220. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  48221. @return the parameters to pass to the task child to configure profiling]]>
  48222. </doc>
  48223. </method>
  48224. <method name="setProfileParams"
  48225. abstract="false" native="false" synchronized="false"
  48226. static="false" final="false" visibility="public"
  48227. deprecated="not deprecated">
  48228. <param name="value" type="java.lang.String"/>
  48229. <doc>
  48230. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  48231. will be replaced with the name of the profiling output file when the task
  48232. runs.
  48233. This value is passed to the task child JVM on the command line.
  48234. @param value the configuration string]]>
  48235. </doc>
  48236. </method>
  48237. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  48238. abstract="false" native="false" synchronized="false"
  48239. static="false" final="false" visibility="public"
  48240. deprecated="not deprecated">
  48241. <param name="isMap" type="boolean"/>
  48242. <doc>
  48243. <![CDATA[Get the range of maps or reduces to profile.
  48244. @param isMap is the task a map?
  48245. @return the task ranges]]>
  48246. </doc>
  48247. </method>
  48248. <method name="setProfileTaskRange"
  48249. abstract="false" native="false" synchronized="false"
  48250. static="false" final="false" visibility="public"
  48251. deprecated="not deprecated">
  48252. <param name="isMap" type="boolean"/>
  48253. <param name="newValue" type="java.lang.String"/>
  48254. <doc>
  48255. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  48256. must also be called.
  48257. @param newValue a set of integer ranges of the map ids]]>
  48258. </doc>
  48259. </method>
  48260. <method name="setMapDebugScript"
  48261. abstract="false" native="false" synchronized="false"
  48262. static="false" final="false" visibility="public"
  48263. deprecated="not deprecated">
  48264. <param name="mDbgScript" type="java.lang.String"/>
  48265. <doc>
  48266. <![CDATA[Set the debug script to run when the map tasks fail.
  48267. <p>The debug script can aid debugging of failed map tasks. The script is
  48268. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  48269. <p>The debug command, run on the node where the map failed, is:</p>
  48270. <p><pre><blockquote>
  48271. $script $stdout $stderr $syslog $jobconf.
  48272. </blockquote></pre></p>
  48273. <p> The script file is distributed through {@link DistributedCache}
  48274. APIs. The script needs to be symlinked. </p>
  48275. <p>Here is an example on how to submit a script
  48276. <p><blockquote><pre>
  48277. job.setMapDebugScript("./myscript");
  48278. DistributedCache.createSymlink(job);
  48279. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  48280. </pre></blockquote></p>
  48281. @param mDbgScript the script name]]>
  48282. </doc>
  48283. </method>
  48284. <method name="getMapDebugScript" return="java.lang.String"
  48285. abstract="false" native="false" synchronized="false"
  48286. static="false" final="false" visibility="public"
  48287. deprecated="not deprecated">
  48288. <doc>
  48289. <![CDATA[Get the map task's debug script.
  48290. @return the debug Script for the mapred job for failed map tasks.
  48291. @see #setMapDebugScript(String)]]>
  48292. </doc>
  48293. </method>
  48294. <method name="setReduceDebugScript"
  48295. abstract="false" native="false" synchronized="false"
  48296. static="false" final="false" visibility="public"
  48297. deprecated="not deprecated">
  48298. <param name="rDbgScript" type="java.lang.String"/>
  48299. <doc>
  48300. <![CDATA[Set the debug script to run when the reduce tasks fail.
  48301. <p>The debug script can aid debugging of failed reduce tasks. The script
  48302. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  48303. <p>The debug command, run on the node where the map failed, is:</p>
  48304. <p><pre><blockquote>
  48305. $script $stdout $stderr $syslog $jobconf.
  48306. </blockquote></pre></p>
  48307. <p> The script file is distributed through {@link DistributedCache}
  48308. APIs. The script file needs to be symlinked </p>
  48309. <p>Here is an example on how to submit a script
  48310. <p><blockquote><pre>
  48311. job.setReduceDebugScript("./myscript");
  48312. DistributedCache.createSymlink(job);
  48313. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  48314. </pre></blockquote></p>
  48315. @param rDbgScript the script name]]>
  48316. </doc>
  48317. </method>
  48318. <method name="getReduceDebugScript" return="java.lang.String"
  48319. abstract="false" native="false" synchronized="false"
  48320. static="false" final="false" visibility="public"
  48321. deprecated="not deprecated">
  48322. <doc>
  48323. <![CDATA[Get the reduce task's debug Script
  48324. @return the debug script for the mapred job for failed reduce tasks.
  48325. @see #setReduceDebugScript(String)]]>
  48326. </doc>
  48327. </method>
  48328. <method name="getJobEndNotificationURI" return="java.lang.String"
  48329. abstract="false" native="false" synchronized="false"
  48330. static="false" final="false" visibility="public"
  48331. deprecated="not deprecated">
  48332. <doc>
  48333. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  48334. has completed (success/failure).
  48335. @return the job end notification uri, <code>null</code> if it hasn't
  48336. been set.
  48337. @see #setJobEndNotificationURI(String)]]>
  48338. </doc>
  48339. </method>
  48340. <method name="setJobEndNotificationURI"
  48341. abstract="false" native="false" synchronized="false"
  48342. static="false" final="false" visibility="public"
  48343. deprecated="not deprecated">
  48344. <param name="uri" type="java.lang.String"/>
  48345. <doc>
  48346. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  48347. has completed (success/failure).
  48348. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  48349. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  48350. identifier and completion-status respectively.</p>
  48351. <p>This is typically used by application-writers to implement chaining of
  48352. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  48353. @param uri the job end notification uri
  48354. @see JobStatus
  48355. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#
  48356. JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  48357. </doc>
  48358. </method>
  48359. <method name="getJobLocalDir" return="java.lang.String"
  48360. abstract="false" native="false" synchronized="false"
  48361. static="false" final="false" visibility="public"
  48362. deprecated="not deprecated">
  48363. <doc>
  48364. <![CDATA[Get job-specific shared directory for use as scratch space
  48365. <p>
  48366. When a job starts, a shared directory is created at location
  48367. <code>
  48368. ${mapred.local.dir}/taskTracker/$user/jobcache/$jobid/work/ </code>.
  48369. This directory is exposed to the users through
  48370. <code>job.local.dir </code>.
  48371. So, the tasks can use this space
  48372. as scratch space and share files among them. </p>
  48373. This value is available as System property also.
  48374. @return The localized job specific shared directory]]>
  48375. </doc>
  48376. </method>
  48377. <method name="getMemoryForMapTask" return="long"
  48378. abstract="false" native="false" synchronized="false"
  48379. static="false" final="false" visibility="public"
  48380. deprecated="not deprecated">
  48381. <doc>
  48382. <![CDATA[Get memory required to run a map task of the job, in MB.
  48383. If a value is specified in the configuration, it is returned.
  48384. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  48385. <p/>
  48386. For backward compatibility, if the job configuration sets the
  48387. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  48388. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  48389. after converting it from bytes to MB.
  48390. @return memory required to run a map task of the job, in MB,
  48391. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  48392. </doc>
  48393. </method>
  48394. <method name="setMemoryForMapTask"
  48395. abstract="false" native="false" synchronized="false"
  48396. static="false" final="false" visibility="public"
  48397. deprecated="not deprecated">
  48398. <param name="mem" type="long"/>
  48399. </method>
  48400. <method name="getMemoryForReduceTask" return="long"
  48401. abstract="false" native="false" synchronized="false"
  48402. static="false" final="false" visibility="public"
  48403. deprecated="not deprecated">
  48404. <doc>
  48405. <![CDATA[Get memory required to run a reduce task of the job, in MB.
  48406. If a value is specified in the configuration, it is returned.
  48407. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  48408. <p/>
  48409. For backward compatibility, if the job configuration sets the
  48410. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  48411. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  48412. after converting it from bytes to MB.
  48413. @return memory required to run a reduce task of the job, in MB,
  48414. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  48415. </doc>
  48416. </method>
  48417. <method name="setMemoryForReduceTask"
  48418. abstract="false" native="false" synchronized="false"
  48419. static="false" final="false" visibility="public"
  48420. deprecated="not deprecated">
  48421. <param name="mem" type="long"/>
  48422. </method>
  48423. <method name="getQueueName" return="java.lang.String"
  48424. abstract="false" native="false" synchronized="false"
  48425. static="false" final="false" visibility="public"
  48426. deprecated="not deprecated">
  48427. <doc>
  48428. <![CDATA[Return the name of the queue to which this job is submitted.
  48429. Defaults to 'default'.
  48430. @return name of the queue]]>
  48431. </doc>
  48432. </method>
  48433. <method name="setQueueName"
  48434. abstract="false" native="false" synchronized="false"
  48435. static="false" final="false" visibility="public"
  48436. deprecated="not deprecated">
  48437. <param name="queueName" type="java.lang.String"/>
  48438. <doc>
  48439. <![CDATA[Set the name of the queue to which this job should be submitted.
  48440. @param queueName Name of the queue]]>
  48441. </doc>
  48442. </method>
  48443. <method name="normalizeMemoryConfigValue" return="long"
  48444. abstract="false" native="false" synchronized="false"
  48445. static="true" final="false" visibility="public"
  48446. deprecated="not deprecated">
  48447. <param name="val" type="long"/>
  48448. <doc>
  48449. <![CDATA[Normalize the negative values in configuration
  48450. @param val
  48451. @return normalized value]]>
  48452. </doc>
  48453. </method>
  48454. <method name="getMaxVirtualMemoryForTask" return="long"
  48455. abstract="false" native="false" synchronized="false"
  48456. static="false" final="false" visibility="public"
  48457. deprecated="Use {@link #getMemoryForMapTask()} and
  48458. {@link #getMemoryForReduceTask()}">
  48459. <doc>
  48460. <![CDATA[Get the memory required to run a task of this job, in bytes. See
  48461. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  48462. <p/>
  48463. This method is deprecated. Now, different memory limits can be
  48464. set for map and reduce tasks of a job, in MB.
  48465. <p/>
  48466. For backward compatibility, if the job configuration sets the
  48467. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  48468. from {@link #DISABLED_MEMORY_LIMIT}, that value is returned.
  48469. Otherwise, this method will return the larger of the values returned by
  48470. {@link #getMemoryForMapTask()} and {@link #getMemoryForReduceTask()}
  48471. after converting them into bytes.
  48472. @return Memory required to run a task of this job, in bytes,
  48473. or {@link #DISABLED_MEMORY_LIMIT}, if unset.
  48474. @see #setMaxVirtualMemoryForTask(long)
  48475. @deprecated Use {@link #getMemoryForMapTask()} and
  48476. {@link #getMemoryForReduceTask()}]]>
  48477. </doc>
  48478. </method>
  48479. <method name="setMaxVirtualMemoryForTask"
  48480. abstract="false" native="false" synchronized="false"
  48481. static="false" final="false" visibility="public"
  48482. deprecated="Use {@link #setMemoryForMapTask(long mem)} and
  48483. Use {@link #setMemoryForReduceTask(long mem)}">
  48484. <param name="vmem" type="long"/>
  48485. <doc>
  48486. <![CDATA[Set the maximum amount of memory any task of this job can use. See
  48487. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  48488. <p/>
  48489. mapred.task.maxvmem is split into
  48490. mapred.job.map.memory.mb
  48491. and mapred.job.map.memory.mb,mapred
  48492. each of the new key are set
  48493. as mapred.task.maxvmem / 1024
  48494. as new values are in MB
  48495. @param vmem Maximum amount of virtual memory in bytes any task of this job
  48496. can use.
  48497. @see #getMaxVirtualMemoryForTask()
  48498. @deprecated
  48499. Use {@link #setMemoryForMapTask(long mem)} and
  48500. Use {@link #setMemoryForReduceTask(long mem)}]]>
  48501. </doc>
  48502. </method>
  48503. <method name="getMaxPhysicalMemoryForTask" return="long"
  48504. abstract="false" native="false" synchronized="false"
  48505. static="false" final="false" visibility="public"
  48506. deprecated="this variable is deprecated and nolonger in use.">
  48507. <doc>
  48508. <![CDATA[@deprecated this variable is deprecated and nolonger in use.]]>
  48509. </doc>
  48510. </method>
  48511. <method name="setMaxPhysicalMemoryForTask"
  48512. abstract="false" native="false" synchronized="false"
  48513. static="false" final="false" visibility="public"
  48514. deprecated="not deprecated">
  48515. <param name="mem" type="long"/>
  48516. </method>
  48517. <field name="MAPRED_TASK_MAXVMEM_PROPERTY" type="java.lang.String"
  48518. transient="false" volatile="false"
  48519. static="true" final="true" visibility="public"
  48520. deprecated="Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  48521. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}">
  48522. <doc>
  48523. <![CDATA[@deprecated Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  48524. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}]]>
  48525. </doc>
  48526. </field>
  48527. <field name="UPPER_LIMIT_ON_TASK_VMEM_PROPERTY" type="java.lang.String"
  48528. transient="false" volatile="false"
  48529. static="true" final="true" visibility="public"
  48530. deprecated="deprecated, no comment">
  48531. <doc>
  48532. <![CDATA[@deprecated]]>
  48533. </doc>
  48534. </field>
  48535. <field name="MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY" type="java.lang.String"
  48536. transient="false" volatile="false"
  48537. static="true" final="true" visibility="public"
  48538. deprecated="deprecated, no comment">
  48539. <doc>
  48540. <![CDATA[@deprecated]]>
  48541. </doc>
  48542. </field>
  48543. <field name="MAPRED_TASK_MAXPMEM_PROPERTY" type="java.lang.String"
  48544. transient="false" volatile="false"
  48545. static="true" final="true" visibility="public"
  48546. deprecated="deprecated, no comment">
  48547. <doc>
  48548. <![CDATA[@deprecated]]>
  48549. </doc>
  48550. </field>
  48551. <field name="DISABLED_MEMORY_LIMIT" type="long"
  48552. transient="false" volatile="false"
  48553. static="true" final="true" visibility="public"
  48554. deprecated="not deprecated">
  48555. <doc>
  48556. <![CDATA[A value which if set for memory related configuration options,
  48557. indicates that the options are turned off.]]>
  48558. </doc>
  48559. </field>
  48560. <field name="MAPRED_LOCAL_DIR_PROPERTY" type="java.lang.String"
  48561. transient="false" volatile="false"
  48562. static="true" final="true" visibility="public"
  48563. deprecated="not deprecated">
  48564. <doc>
  48565. <![CDATA[Property name for the configuration property mapred.local.dir]]>
  48566. </doc>
  48567. </field>
  48568. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  48569. transient="false" volatile="false"
  48570. static="true" final="true" visibility="public"
  48571. deprecated="not deprecated">
  48572. <doc>
  48573. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  48574. name is mentioned.]]>
  48575. </doc>
  48576. </field>
  48577. <field name="MAPRED_JOB_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  48578. transient="false" volatile="false"
  48579. static="true" final="true" visibility="public"
  48580. deprecated="not deprecated">
  48581. </field>
  48582. <field name="MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  48583. transient="false" volatile="false"
  48584. static="true" final="true" visibility="public"
  48585. deprecated="not deprecated">
  48586. </field>
  48587. <field name="MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  48588. transient="false" volatile="false"
  48589. static="true" final="true" visibility="public"
  48590. deprecated="Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  48591. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}">
  48592. <doc>
  48593. <![CDATA[Configuration key to set the java command line options for the child
  48594. map and reduce tasks.
  48595. Java opts for the task tracker child processes.
  48596. The following symbol, if present, will be interpolated: @taskid@.
  48597. It is replaced by current TaskID. Any other occurrences of '@' will go
  48598. unchanged.
  48599. For example, to enable verbose gc logging to a file named for the taskid in
  48600. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  48601. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  48602. The configuration variable {@link #MAPRED_TASK_ULIMIT} can be used to
  48603. control the maximum virtual memory of the child processes.
  48604. The configuration variable {@link #MAPRED_TASK_ENV} can be used to pass
  48605. other environment variables to the child processes.
  48606. @deprecated Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  48607. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}]]>
  48608. </doc>
  48609. </field>
  48610. <field name="MAPRED_MAP_TASK_JAVA_OPTS" type="java.lang.String"
  48611. transient="false" volatile="false"
  48612. static="true" final="true" visibility="public"
  48613. deprecated="not deprecated">
  48614. <doc>
  48615. <![CDATA[Configuration key to set the java command line options for the map tasks.
  48616. Java opts for the task tracker child map processes.
  48617. The following symbol, if present, will be interpolated: @taskid@.
  48618. It is replaced by current TaskID. Any other occurrences of '@' will go
  48619. unchanged.
  48620. For example, to enable verbose gc logging to a file named for the taskid in
  48621. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  48622. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  48623. The configuration variable {@link #MAPRED_MAP_TASK_ULIMIT} can be used to
  48624. control the maximum virtual memory of the map processes.
  48625. The configuration variable {@link #MAPRED_MAP_TASK_ENV} can be used to pass
  48626. other environment variables to the map processes.]]>
  48627. </doc>
  48628. </field>
  48629. <field name="MAPRED_REDUCE_TASK_JAVA_OPTS" type="java.lang.String"
  48630. transient="false" volatile="false"
  48631. static="true" final="true" visibility="public"
  48632. deprecated="not deprecated">
  48633. <doc>
  48634. <![CDATA[Configuration key to set the java command line options for the reduce tasks.
  48635. Java opts for the task tracker child reduce processes.
  48636. The following symbol, if present, will be interpolated: @taskid@.
  48637. It is replaced by current TaskID. Any other occurrences of '@' will go
  48638. unchanged.
  48639. For example, to enable verbose gc logging to a file named for the taskid in
  48640. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  48641. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  48642. The configuration variable {@link #MAPRED_REDUCE_TASK_ULIMIT} can be used
  48643. to control the maximum virtual memory of the reduce processes.
  48644. The configuration variable {@link #MAPRED_REDUCE_TASK_ENV} can be used to
  48645. pass process environment variables to the reduce processes.]]>
  48646. </doc>
  48647. </field>
  48648. <field name="DEFAULT_MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  48649. transient="false" volatile="false"
  48650. static="true" final="true" visibility="public"
  48651. deprecated="not deprecated">
  48652. </field>
  48653. <field name="MAPRED_TASK_ULIMIT" type="java.lang.String"
  48654. transient="false" volatile="false"
  48655. static="true" final="true" visibility="public"
  48656. deprecated="Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  48657. {@link #MAPRED_REDUCE_TASK_ULIMIT}">
  48658. <doc>
  48659. <![CDATA[Configuration key to set the maximum virutal memory available to the child
  48660. map and reduce tasks (in kilo-bytes).
  48661. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  48662. via {@link #MAPRED_TASK_JAVA_OPTS}, else the VM might not start.
  48663. @deprecated Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  48664. {@link #MAPRED_REDUCE_TASK_ULIMIT}]]>
  48665. </doc>
  48666. </field>
  48667. <field name="MAPRED_MAP_TASK_ULIMIT" type="java.lang.String"
  48668. transient="false" volatile="false"
  48669. static="true" final="true" visibility="public"
  48670. deprecated="not deprecated">
  48671. <doc>
  48672. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48673. map tasks (in kilo-bytes).
  48674. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  48675. via {@link #MAPRED_MAP_TASK_JAVA_OPTS}, else the VM might not start.]]>
  48676. </doc>
  48677. </field>
  48678. <field name="MAPRED_REDUCE_TASK_ULIMIT" type="java.lang.String"
  48679. transient="false" volatile="false"
  48680. static="true" final="true" visibility="public"
  48681. deprecated="not deprecated">
  48682. <doc>
  48683. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48684. reduce tasks (in kilo-bytes).
  48685. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  48686. via {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}, else the VM might not start.]]>
  48687. </doc>
  48688. </field>
  48689. <field name="MAPRED_TASK_ENV" type="java.lang.String"
  48690. transient="false" volatile="false"
  48691. static="true" final="true" visibility="public"
  48692. deprecated="Use {@link #MAPRED_MAP_TASK_ENV} or
  48693. {@link #MAPRED_REDUCE_TASK_ENV}">
  48694. <doc>
  48695. <![CDATA[Configuration key to set the environment of the child map/reduce tasks.
  48696. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  48697. reference existing environment variables via <code>$key</code>.
  48698. Example:
  48699. <ul>
  48700. <li> A=foo - This will set the env variable A to foo. </li>
  48701. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  48702. </ul>
  48703. @deprecated Use {@link #MAPRED_MAP_TASK_ENV} or
  48704. {@link #MAPRED_REDUCE_TASK_ENV}]]>
  48705. </doc>
  48706. </field>
  48707. <field name="MAPRED_MAP_TASK_ENV" type="java.lang.String"
  48708. transient="false" volatile="false"
  48709. static="true" final="true" visibility="public"
  48710. deprecated="not deprecated">
  48711. <doc>
  48712. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48713. map tasks.
  48714. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  48715. reference existing environment variables via <code>$key</code>.
  48716. Example:
  48717. <ul>
  48718. <li> A=foo - This will set the env variable A to foo. </li>
  48719. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  48720. </ul>]]>
  48721. </doc>
  48722. </field>
  48723. <field name="MAPRED_REDUCE_TASK_ENV" type="java.lang.String"
  48724. transient="false" volatile="false"
  48725. static="true" final="true" visibility="public"
  48726. deprecated="not deprecated">
  48727. <doc>
  48728. <![CDATA[Configuration key to set the maximum virutal memory available to the
  48729. reduce tasks.
  48730. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  48731. reference existing environment variables via <code>$key</code>.
  48732. Example:
  48733. <ul>
  48734. <li> A=foo - This will set the env variable A to foo. </li>
  48735. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  48736. </ul>]]>
  48737. </doc>
  48738. </field>
  48739. <doc>
  48740. <![CDATA[A map/reduce job configuration.
  48741. <p><code>JobConf</code> is the primary interface for a user to describe a
  48742. map-reduce job to the Hadoop framework for execution. The framework tries to
  48743. faithfully execute the job as-is described by <code>JobConf</code>, however:
  48744. <ol>
  48745. <li>
  48746. Some configuration parameters might have been marked as
  48747. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  48748. final</a> by administrators and hence cannot be altered.
  48749. </li>
  48750. <li>
  48751. While some job parameters are straight-forward to set
  48752. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  48753. rest of the framework and/or job-configuration and is relatively more
  48754. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  48755. </li>
  48756. </ol></p>
  48757. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  48758. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  48759. {@link OutputFormat} implementations to be used etc.
  48760. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  48761. of the job such as <code>Comparator</code>s to be used, files to be put in
  48762. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  48763. are to be compressed (and how), debugability via user-provided scripts
  48764. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  48765. for doing post-processing on task logs, task's stdout, stderr, syslog.
  48766. and etc.</p>
  48767. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  48768. <p><blockquote><pre>
  48769. // Create a new JobConf
  48770. JobConf job = new JobConf(new Configuration(), MyJob.class);
  48771. // Specify various job-specific parameters
  48772. job.setJobName("myjob");
  48773. FileInputFormat.setInputPaths(job, new Path("in"));
  48774. FileOutputFormat.setOutputPath(job, new Path("out"));
  48775. job.setMapperClass(MyJob.MyMapper.class);
  48776. job.setCombinerClass(MyJob.MyReducer.class);
  48777. job.setReducerClass(MyJob.MyReducer.class);
  48778. job.setInputFormat(SequenceFileInputFormat.class);
  48779. job.setOutputFormat(SequenceFileOutputFormat.class);
  48780. </pre></blockquote></p>
  48781. @see JobClient
  48782. @see ClusterStatus
  48783. @see Tool
  48784. @see DistributedCache]]>
  48785. </doc>
  48786. </class>
  48787. <!-- end class org.apache.hadoop.mapred.JobConf -->
  48788. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  48789. <interface name="JobConfigurable" abstract="true"
  48790. static="false" final="false" visibility="public"
  48791. deprecated="not deprecated">
  48792. <method name="configure"
  48793. abstract="false" native="false" synchronized="false"
  48794. static="false" final="false" visibility="public"
  48795. deprecated="not deprecated">
  48796. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  48797. <doc>
  48798. <![CDATA[Initializes a new instance from a {@link JobConf}.
  48799. @param job the configuration]]>
  48800. </doc>
  48801. </method>
  48802. <doc>
  48803. <![CDATA[That what may be configured.]]>
  48804. </doc>
  48805. </interface>
  48806. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  48807. <!-- start class org.apache.hadoop.mapred.JobContext -->
  48808. <class name="JobContext" extends="org.apache.hadoop.mapreduce.JobContext"
  48809. abstract="false"
  48810. static="false" final="false" visibility="public"
  48811. deprecated="not deprecated">
  48812. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  48813. abstract="false" native="false" synchronized="false"
  48814. static="false" final="false" visibility="public"
  48815. deprecated="not deprecated">
  48816. <doc>
  48817. <![CDATA[Get the job Configuration
  48818. @return JobConf]]>
  48819. </doc>
  48820. </method>
  48821. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  48822. abstract="false" native="false" synchronized="false"
  48823. static="false" final="false" visibility="public"
  48824. deprecated="not deprecated">
  48825. <doc>
  48826. <![CDATA[Get the progress mechanism for reporting progress.
  48827. @return progress mechanism]]>
  48828. </doc>
  48829. </method>
  48830. </class>
  48831. <!-- end class org.apache.hadoop.mapred.JobContext -->
  48832. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  48833. <class name="JobEndNotifier" extends="java.lang.Object"
  48834. abstract="false"
  48835. static="false" final="false" visibility="public"
  48836. deprecated="not deprecated">
  48837. <constructor name="JobEndNotifier"
  48838. static="false" final="false" visibility="public"
  48839. deprecated="not deprecated">
  48840. </constructor>
  48841. <method name="startNotifier"
  48842. abstract="false" native="false" synchronized="false"
  48843. static="true" final="false" visibility="public"
  48844. deprecated="not deprecated">
  48845. </method>
  48846. <method name="stopNotifier"
  48847. abstract="false" native="false" synchronized="false"
  48848. static="true" final="false" visibility="public"
  48849. deprecated="not deprecated">
  48850. </method>
  48851. <method name="registerNotification"
  48852. abstract="false" native="false" synchronized="false"
  48853. static="true" final="false" visibility="public"
  48854. deprecated="not deprecated">
  48855. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  48856. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  48857. </method>
  48858. <method name="localRunnerNotification"
  48859. abstract="false" native="false" synchronized="false"
  48860. static="true" final="false" visibility="public"
  48861. deprecated="not deprecated">
  48862. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  48863. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  48864. </method>
  48865. </class>
  48866. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  48867. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  48868. <class name="JobHistory" extends="java.lang.Object"
  48869. abstract="false"
  48870. static="false" final="false" visibility="public"
  48871. deprecated="not deprecated">
  48872. <constructor name="JobHistory"
  48873. static="false" final="false" visibility="public"
  48874. deprecated="not deprecated">
  48875. </constructor>
  48876. <method name="getHistoryFilePath" return="java.lang.String"
  48877. abstract="false" native="false" synchronized="false"
  48878. static="true" final="false" visibility="public"
  48879. deprecated="not deprecated">
  48880. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  48881. <doc>
  48882. <![CDATA[Given the job id, return the history file path from the cache]]>
  48883. </doc>
  48884. </method>
  48885. <method name="init"
  48886. abstract="false" native="false" synchronized="false"
  48887. static="true" final="false" visibility="public"
  48888. deprecated="not deprecated">
  48889. <param name="jobTracker" type="org.apache.hadoop.mapred.JobTracker"/>
  48890. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  48891. <param name="hostname" type="java.lang.String"/>
  48892. <param name="jobTrackerStartTime" type="long"/>
  48893. <exception name="IOException" type="java.io.IOException"/>
  48894. <doc>
  48895. <![CDATA[Initialize JobHistory files.
  48896. @param conf Jobconf of the job tracker.
  48897. @param hostname jobtracker's hostname
  48898. @param jobTrackerStartTime jobtracker's start time]]>
  48899. </doc>
  48900. </method>
  48901. <method name="parseHistoryFromFS"
  48902. abstract="false" native="false" synchronized="false"
  48903. static="true" final="false" visibility="public"
  48904. deprecated="not deprecated">
  48905. <param name="path" type="java.lang.String"/>
  48906. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  48907. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  48908. <exception name="IOException" type="java.io.IOException"/>
  48909. <doc>
  48910. <![CDATA[Parses history file and invokes Listener.handle() for
  48911. each line of history. It can be used for looking through history
  48912. files for specific items without having to keep whole history in memory.
  48913. @param path path to history file
  48914. @param l Listener for history events
  48915. @param fs FileSystem where history file is present
  48916. @throws IOException]]>
  48917. </doc>
  48918. </method>
  48919. <method name="getTaskLogsUrl" return="java.lang.String"
  48920. abstract="false" native="false" synchronized="false"
  48921. static="true" final="false" visibility="public"
  48922. deprecated="not deprecated">
  48923. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  48924. <doc>
  48925. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  48926. @param attempt
  48927. @return the taskLogsUrl. null if http-port or tracker-name or
  48928. task-attempt-id are unavailable.]]>
  48929. </doc>
  48930. </method>
  48931. <field name="LOG" type="org.apache.commons.logging.Log"
  48932. transient="false" volatile="false"
  48933. static="true" final="true" visibility="public"
  48934. deprecated="not deprecated">
  48935. </field>
  48936. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  48937. transient="false" volatile="false"
  48938. static="true" final="true" visibility="public"
  48939. deprecated="not deprecated">
  48940. </field>
  48941. <field name="JOBHISTORY_FILENAME_REGEX" type="java.util.regex.Pattern"
  48942. transient="false" volatile="false"
  48943. static="true" final="true" visibility="public"
  48944. deprecated="not deprecated">
  48945. </field>
  48946. <field name="CONF_FILENAME_REGEX" type="java.util.regex.Pattern"
  48947. transient="false" volatile="false"
  48948. static="true" final="true" visibility="public"
  48949. deprecated="not deprecated">
  48950. </field>
  48951. <doc>
  48952. <![CDATA[Provides methods for writing to and reading from job history.
  48953. Job History works in an append mode, JobHistory and its inner classes provide methods
  48954. to log job events.
  48955. JobHistory is split into multiple files, format of each file is plain text where each line
  48956. is of the format [type (key=value)*], where type identifies the type of the record.
  48957. Type maps to UID of one of the inner classes of this class.
  48958. Job history is maintained in a master index which contains star/stop times of all jobs with
  48959. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  48960. file. name of job history files follows the format jobtrackerId_jobid
  48961. For parsing the job history it supports a listener based interface where each line is parsed
  48962. and passed to listener. The listener can create an object model of history or look for specific
  48963. events and discard rest of the history.
  48964. CHANGE LOG :
  48965. Version 0 : The history has the following format :
  48966. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  48967. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  48968. Note that a '"' is the line delimiter.
  48969. Version 1 : Changes the line delimiter to '.'
  48970. Values are now escaped for unambiguous parsing.
  48971. Added the Meta tag to store version info.]]>
  48972. </doc>
  48973. </class>
  48974. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  48975. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  48976. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  48977. abstract="false"
  48978. static="true" final="false" visibility="public"
  48979. deprecated="not deprecated">
  48980. <implements name="java.lang.Runnable"/>
  48981. <constructor name="JobHistory.HistoryCleaner"
  48982. static="false" final="false" visibility="public"
  48983. deprecated="not deprecated">
  48984. </constructor>
  48985. <method name="run"
  48986. abstract="false" native="false" synchronized="false"
  48987. static="false" final="false" visibility="public"
  48988. deprecated="not deprecated">
  48989. <doc>
  48990. <![CDATA[Cleans up history data.]]>
  48991. </doc>
  48992. </method>
  48993. <doc>
  48994. <![CDATA[Delete history files older than one month. Update master index and remove all
  48995. jobs older than one month. Also if a job tracker has no jobs in last one month
  48996. remove reference to the job tracker.]]>
  48997. </doc>
  48998. </class>
  48999. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  49000. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  49001. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  49002. abstract="false"
  49003. static="true" final="false" visibility="public"
  49004. deprecated="not deprecated">
  49005. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  49006. static="false" final="false" visibility="public"
  49007. deprecated="not deprecated">
  49008. <doc>
  49009. <![CDATA[Create new JobInfo]]>
  49010. </doc>
  49011. </constructor>
  49012. <method name="getAllTasks" return="java.util.Map"
  49013. abstract="false" native="false" synchronized="false"
  49014. static="false" final="false" visibility="public"
  49015. deprecated="not deprecated">
  49016. <doc>
  49017. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  49018. </doc>
  49019. </method>
  49020. <method name="getJobACLs" return="java.util.Map"
  49021. abstract="false" native="false" synchronized="false"
  49022. static="false" final="false" visibility="public"
  49023. deprecated="not deprecated">
  49024. <doc>
  49025. <![CDATA[Get the job acls.
  49026. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49027. </doc>
  49028. </method>
  49029. <method name="handle"
  49030. abstract="false" native="false" synchronized="true"
  49031. static="false" final="false" visibility="public"
  49032. deprecated="not deprecated">
  49033. <param name="values" type="java.util.Map"/>
  49034. </method>
  49035. <method name="getLocalJobFilePath" return="java.lang.String"
  49036. abstract="false" native="false" synchronized="false"
  49037. static="true" final="false" visibility="public"
  49038. deprecated="not deprecated">
  49039. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49040. <doc>
  49041. <![CDATA[Get the path of the locally stored job file
  49042. @param jobId id of the job
  49043. @return the path of the job file on the local file system]]>
  49044. </doc>
  49045. </method>
  49046. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  49047. abstract="false" native="false" synchronized="false"
  49048. static="true" final="false" visibility="public"
  49049. deprecated="not deprecated">
  49050. <param name="logFile" type="java.lang.String"/>
  49051. <exception name="IOException" type="java.io.IOException"/>
  49052. <doc>
  49053. <![CDATA[Helper function to encode the URL of the path of the job-history
  49054. log file.
  49055. @param logFile path of the job-history file
  49056. @return URL encoded path
  49057. @throws IOException]]>
  49058. </doc>
  49059. </method>
  49060. <method name="encodeJobHistoryFileName" return="java.lang.String"
  49061. abstract="false" native="false" synchronized="false"
  49062. static="true" final="false" visibility="public"
  49063. deprecated="not deprecated">
  49064. <param name="logFileName" type="java.lang.String"/>
  49065. <exception name="IOException" type="java.io.IOException"/>
  49066. <doc>
  49067. <![CDATA[Helper function to encode the URL of the filename of the job-history
  49068. log file.
  49069. @param logFileName file name of the job-history file
  49070. @return URL encoded filename
  49071. @throws IOException]]>
  49072. </doc>
  49073. </method>
  49074. <method name="decodeJobHistoryFileName" return="java.lang.String"
  49075. abstract="false" native="false" synchronized="false"
  49076. static="true" final="false" visibility="public"
  49077. deprecated="not deprecated">
  49078. <param name="logFileName" type="java.lang.String"/>
  49079. <exception name="IOException" type="java.io.IOException"/>
  49080. <doc>
  49081. <![CDATA[Helper function to decode the URL of the filename of the job-history
  49082. log file.
  49083. @param logFileName file name of the job-history file
  49084. @return URL decoded filename
  49085. @throws IOException]]>
  49086. </doc>
  49087. </method>
  49088. <method name="getUserName" return="java.lang.String"
  49089. abstract="false" native="false" synchronized="false"
  49090. static="true" final="false" visibility="public"
  49091. deprecated="not deprecated">
  49092. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49093. <doc>
  49094. <![CDATA[Get the user name from the job conf]]>
  49095. </doc>
  49096. </method>
  49097. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  49098. abstract="false" native="false" synchronized="false"
  49099. static="true" final="false" visibility="public"
  49100. deprecated="not deprecated">
  49101. <param name="logFileName" type="java.lang.String"/>
  49102. <doc>
  49103. <![CDATA[Get the job history file path given the history filename]]>
  49104. </doc>
  49105. </method>
  49106. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  49107. abstract="false" native="false" synchronized="false"
  49108. static="true" final="false" visibility="public"
  49109. deprecated="not deprecated">
  49110. <param name="logFileName" type="java.lang.String"/>
  49111. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49112. <doc>
  49113. <![CDATA[Get the user job history file path]]>
  49114. </doc>
  49115. </method>
  49116. <method name="getJobHistoryFileName" return="java.lang.String"
  49117. abstract="false" native="false" synchronized="true"
  49118. static="true" final="false" visibility="public"
  49119. deprecated="not deprecated">
  49120. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49121. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  49122. <exception name="IOException" type="java.io.IOException"/>
  49123. <doc>
  49124. <![CDATA[Recover the job history filename from the history folder.
  49125. Uses the following pattern
  49126. $jt-hostname_[0-9]*_$job-id_$user_$job-name*
  49127. @param jobConf the job conf
  49128. @param id job id]]>
  49129. </doc>
  49130. </method>
  49131. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  49132. abstract="false" native="false" synchronized="true"
  49133. static="true" final="false" visibility="public"
  49134. deprecated="not deprecated">
  49135. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49136. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  49137. <exception name="IOException" type="java.io.IOException"/>
  49138. <doc>
  49139. <![CDATA[Selects one of the two files generated as a part of recovery.
  49140. The thumb rule is that always select the oldest file.
  49141. This call makes sure that only one file is left in the end.
  49142. @param conf job conf
  49143. @param logFilePath Path of the log file
  49144. @throws IOException]]>
  49145. </doc>
  49146. </method>
  49147. <method name="logSubmitted"
  49148. abstract="false" native="false" synchronized="false"
  49149. static="true" final="false" visibility="public"
  49150. deprecated="Use
  49151. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.">
  49152. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49153. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49154. <param name="jobConfPath" type="java.lang.String"/>
  49155. <param name="submitTime" type="long"/>
  49156. <exception name="IOException" type="java.io.IOException"/>
  49157. <doc>
  49158. <![CDATA[Log job submitted event to history. Creates a new file in history
  49159. for the job. if history file creation fails, it disables history
  49160. for all other events.
  49161. @param jobId job id assigned by job tracker.
  49162. @param jobConf job conf of the job
  49163. @param jobConfPath path to job conf xml file in HDFS.
  49164. @param submitTime time when job tracker received the job
  49165. @throws IOException
  49166. @deprecated Use
  49167. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.]]>
  49168. </doc>
  49169. </method>
  49170. <method name="logSubmitted"
  49171. abstract="false" native="false" synchronized="false"
  49172. static="true" final="false" visibility="public"
  49173. deprecated="not deprecated">
  49174. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49175. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49176. <param name="jobConfPath" type="java.lang.String"/>
  49177. <param name="submitTime" type="long"/>
  49178. <param name="restarted" type="boolean"/>
  49179. <exception name="IOException" type="java.io.IOException"/>
  49180. </method>
  49181. <method name="logInited"
  49182. abstract="false" native="false" synchronized="false"
  49183. static="true" final="false" visibility="public"
  49184. deprecated="not deprecated">
  49185. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49186. <param name="startTime" type="long"/>
  49187. <param name="totalMaps" type="int"/>
  49188. <param name="totalReduces" type="int"/>
  49189. <doc>
  49190. <![CDATA[Logs launch time of job.
  49191. @param jobId job id, assigned by jobtracker.
  49192. @param startTime start time of job.
  49193. @param totalMaps total maps assigned by jobtracker.
  49194. @param totalReduces total reduces.]]>
  49195. </doc>
  49196. </method>
  49197. <method name="logStarted"
  49198. abstract="false" native="false" synchronized="false"
  49199. static="true" final="false" visibility="public"
  49200. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  49201. {@link #logStarted(JobID)}">
  49202. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49203. <param name="startTime" type="long"/>
  49204. <param name="totalMaps" type="int"/>
  49205. <param name="totalReduces" type="int"/>
  49206. <doc>
  49207. <![CDATA[Logs the job as RUNNING.
  49208. @param jobId job id, assigned by jobtracker.
  49209. @param startTime start time of job.
  49210. @param totalMaps total maps assigned by jobtracker.
  49211. @param totalReduces total reduces.
  49212. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  49213. {@link #logStarted(JobID)}]]>
  49214. </doc>
  49215. </method>
  49216. <method name="logStarted"
  49217. abstract="false" native="false" synchronized="false"
  49218. static="true" final="false" visibility="public"
  49219. deprecated="not deprecated">
  49220. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49221. <doc>
  49222. <![CDATA[Logs job as running
  49223. @param jobId job id, assigned by jobtracker.]]>
  49224. </doc>
  49225. </method>
  49226. <method name="logFinished"
  49227. abstract="false" native="false" synchronized="false"
  49228. static="true" final="false" visibility="public"
  49229. deprecated="not deprecated">
  49230. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49231. <param name="finishTime" type="long"/>
  49232. <param name="finishedMaps" type="int"/>
  49233. <param name="finishedReduces" type="int"/>
  49234. <param name="failedMaps" type="int"/>
  49235. <param name="failedReduces" type="int"/>
  49236. <param name="mapCounters" type="org.apache.hadoop.mapred.Counters"/>
  49237. <param name="reduceCounters" type="org.apache.hadoop.mapred.Counters"/>
  49238. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  49239. <doc>
  49240. <![CDATA[Log job finished. closes the job file in history.
  49241. @param jobId job id, assigned by jobtracker.
  49242. @param finishTime finish time of job in ms.
  49243. @param finishedMaps no of maps successfully finished.
  49244. @param finishedReduces no of reduces finished sucessfully.
  49245. @param failedMaps no of failed map tasks.
  49246. @param failedReduces no of failed reduce tasks.
  49247. @param counters the counters from the job]]>
  49248. </doc>
  49249. </method>
  49250. <method name="logFailed"
  49251. abstract="false" native="false" synchronized="false"
  49252. static="true" final="false" visibility="public"
  49253. deprecated="not deprecated">
  49254. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49255. <param name="timestamp" type="long"/>
  49256. <param name="finishedMaps" type="int"/>
  49257. <param name="finishedReduces" type="int"/>
  49258. <param name="failReason" type="java.lang.String"/>
  49259. <doc>
  49260. <![CDATA[Logs job failed event. Closes the job history log file.
  49261. @param jobid job id
  49262. @param timestamp time when job failure was detected in ms.
  49263. @param finishedMaps no finished map tasks.
  49264. @param finishedReduces no of finished reduce tasks.]]>
  49265. </doc>
  49266. </method>
  49267. <method name="logKilled"
  49268. abstract="false" native="false" synchronized="false"
  49269. static="true" final="false" visibility="public"
  49270. deprecated="not deprecated">
  49271. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49272. <param name="timestamp" type="long"/>
  49273. <param name="finishedMaps" type="int"/>
  49274. <param name="finishedReduces" type="int"/>
  49275. <doc>
  49276. <![CDATA[Logs job killed event. Closes the job history log file.
  49277. @param jobid
  49278. job id
  49279. @param timestamp
  49280. time when job killed was issued in ms.
  49281. @param finishedMaps
  49282. no finished map tasks.
  49283. @param finishedReduces
  49284. no of finished reduce tasks.]]>
  49285. </doc>
  49286. </method>
  49287. <method name="logJobPriority"
  49288. abstract="false" native="false" synchronized="false"
  49289. static="true" final="false" visibility="public"
  49290. deprecated="not deprecated">
  49291. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49292. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  49293. <doc>
  49294. <![CDATA[Log job's priority.
  49295. @param jobid job id
  49296. @param priority Jobs priority]]>
  49297. </doc>
  49298. </method>
  49299. <method name="logJobInfo"
  49300. abstract="false" native="false" synchronized="false"
  49301. static="true" final="false" visibility="public"
  49302. deprecated="Use {@link #logJobInfo(JobID, long, long)} instead.">
  49303. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49304. <param name="submitTime" type="long"/>
  49305. <param name="launchTime" type="long"/>
  49306. <param name="restartCount" type="int"/>
  49307. <doc>
  49308. <![CDATA[Log job's submit-time/launch-time
  49309. @param jobid job id
  49310. @param submitTime job's submit time
  49311. @param launchTime job's launch time
  49312. @param restartCount number of times the job got restarted
  49313. @deprecated Use {@link #logJobInfo(JobID, long, long)} instead.]]>
  49314. </doc>
  49315. </method>
  49316. <method name="logJobInfo"
  49317. abstract="false" native="false" synchronized="false"
  49318. static="true" final="false" visibility="public"
  49319. deprecated="not deprecated">
  49320. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  49321. <param name="submitTime" type="long"/>
  49322. <param name="launchTime" type="long"/>
  49323. </method>
  49324. <doc>
  49325. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  49326. </doc>
  49327. </class>
  49328. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  49329. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  49330. <class name="JobHistory.Keys" extends="java.lang.Enum"
  49331. abstract="false"
  49332. static="true" final="true" visibility="public"
  49333. deprecated="not deprecated">
  49334. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  49335. abstract="false" native="false" synchronized="false"
  49336. static="true" final="false" visibility="public"
  49337. deprecated="not deprecated">
  49338. </method>
  49339. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  49340. abstract="false" native="false" synchronized="false"
  49341. static="true" final="false" visibility="public"
  49342. deprecated="not deprecated">
  49343. <param name="name" type="java.lang.String"/>
  49344. </method>
  49345. <field name="JOBTRACKERID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49346. transient="false" volatile="false"
  49347. static="true" final="true" visibility="public"
  49348. deprecated="not deprecated">
  49349. </field>
  49350. <field name="START_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49351. transient="false" volatile="false"
  49352. static="true" final="true" visibility="public"
  49353. deprecated="not deprecated">
  49354. </field>
  49355. <field name="FINISH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49356. transient="false" volatile="false"
  49357. static="true" final="true" visibility="public"
  49358. deprecated="not deprecated">
  49359. </field>
  49360. <field name="JOBID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49361. transient="false" volatile="false"
  49362. static="true" final="true" visibility="public"
  49363. deprecated="not deprecated">
  49364. </field>
  49365. <field name="JOBNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49366. transient="false" volatile="false"
  49367. static="true" final="true" visibility="public"
  49368. deprecated="not deprecated">
  49369. </field>
  49370. <field name="USER" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49371. transient="false" volatile="false"
  49372. static="true" final="true" visibility="public"
  49373. deprecated="not deprecated">
  49374. </field>
  49375. <field name="JOBCONF" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49376. transient="false" volatile="false"
  49377. static="true" final="true" visibility="public"
  49378. deprecated="not deprecated">
  49379. </field>
  49380. <field name="SUBMIT_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49381. transient="false" volatile="false"
  49382. static="true" final="true" visibility="public"
  49383. deprecated="not deprecated">
  49384. </field>
  49385. <field name="LAUNCH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49386. transient="false" volatile="false"
  49387. static="true" final="true" visibility="public"
  49388. deprecated="not deprecated">
  49389. </field>
  49390. <field name="TOTAL_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49391. transient="false" volatile="false"
  49392. static="true" final="true" visibility="public"
  49393. deprecated="not deprecated">
  49394. </field>
  49395. <field name="TOTAL_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49396. transient="false" volatile="false"
  49397. static="true" final="true" visibility="public"
  49398. deprecated="not deprecated">
  49399. </field>
  49400. <field name="FAILED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49401. transient="false" volatile="false"
  49402. static="true" final="true" visibility="public"
  49403. deprecated="not deprecated">
  49404. </field>
  49405. <field name="FAILED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49406. transient="false" volatile="false"
  49407. static="true" final="true" visibility="public"
  49408. deprecated="not deprecated">
  49409. </field>
  49410. <field name="FINISHED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49411. transient="false" volatile="false"
  49412. static="true" final="true" visibility="public"
  49413. deprecated="not deprecated">
  49414. </field>
  49415. <field name="FINISHED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49416. transient="false" volatile="false"
  49417. static="true" final="true" visibility="public"
  49418. deprecated="not deprecated">
  49419. </field>
  49420. <field name="JOB_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49421. transient="false" volatile="false"
  49422. static="true" final="true" visibility="public"
  49423. deprecated="not deprecated">
  49424. </field>
  49425. <field name="TASKID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49426. transient="false" volatile="false"
  49427. static="true" final="true" visibility="public"
  49428. deprecated="not deprecated">
  49429. </field>
  49430. <field name="HOSTNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49431. transient="false" volatile="false"
  49432. static="true" final="true" visibility="public"
  49433. deprecated="not deprecated">
  49434. </field>
  49435. <field name="TASK_TYPE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49436. transient="false" volatile="false"
  49437. static="true" final="true" visibility="public"
  49438. deprecated="not deprecated">
  49439. </field>
  49440. <field name="ERROR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49441. transient="false" volatile="false"
  49442. static="true" final="true" visibility="public"
  49443. deprecated="not deprecated">
  49444. </field>
  49445. <field name="TASK_ATTEMPT_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49446. transient="false" volatile="false"
  49447. static="true" final="true" visibility="public"
  49448. deprecated="not deprecated">
  49449. </field>
  49450. <field name="TASK_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49451. transient="false" volatile="false"
  49452. static="true" final="true" visibility="public"
  49453. deprecated="not deprecated">
  49454. </field>
  49455. <field name="COPY_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49456. transient="false" volatile="false"
  49457. static="true" final="true" visibility="public"
  49458. deprecated="not deprecated">
  49459. </field>
  49460. <field name="SORT_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49461. transient="false" volatile="false"
  49462. static="true" final="true" visibility="public"
  49463. deprecated="not deprecated">
  49464. </field>
  49465. <field name="REDUCE_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49466. transient="false" volatile="false"
  49467. static="true" final="true" visibility="public"
  49468. deprecated="not deprecated">
  49469. </field>
  49470. <field name="SHUFFLE_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49471. transient="false" volatile="false"
  49472. static="true" final="true" visibility="public"
  49473. deprecated="not deprecated">
  49474. </field>
  49475. <field name="SORT_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49476. transient="false" volatile="false"
  49477. static="true" final="true" visibility="public"
  49478. deprecated="not deprecated">
  49479. </field>
  49480. <field name="COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49481. transient="false" volatile="false"
  49482. static="true" final="true" visibility="public"
  49483. deprecated="not deprecated">
  49484. </field>
  49485. <field name="SPLITS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49486. transient="false" volatile="false"
  49487. static="true" final="true" visibility="public"
  49488. deprecated="not deprecated">
  49489. </field>
  49490. <field name="JOB_PRIORITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49491. transient="false" volatile="false"
  49492. static="true" final="true" visibility="public"
  49493. deprecated="not deprecated">
  49494. </field>
  49495. <field name="HTTP_PORT" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49496. transient="false" volatile="false"
  49497. static="true" final="true" visibility="public"
  49498. deprecated="not deprecated">
  49499. </field>
  49500. <field name="TRACKER_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49501. transient="false" volatile="false"
  49502. static="true" final="true" visibility="public"
  49503. deprecated="not deprecated">
  49504. </field>
  49505. <field name="STATE_STRING" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49506. transient="false" volatile="false"
  49507. static="true" final="true" visibility="public"
  49508. deprecated="not deprecated">
  49509. </field>
  49510. <field name="VERSION" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49511. transient="false" volatile="false"
  49512. static="true" final="true" visibility="public"
  49513. deprecated="not deprecated">
  49514. </field>
  49515. <field name="MAP_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49516. transient="false" volatile="false"
  49517. static="true" final="true" visibility="public"
  49518. deprecated="not deprecated">
  49519. </field>
  49520. <field name="REDUCE_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49521. transient="false" volatile="false"
  49522. static="true" final="true" visibility="public"
  49523. deprecated="not deprecated">
  49524. </field>
  49525. <field name="VIEW_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49526. transient="false" volatile="false"
  49527. static="true" final="true" visibility="public"
  49528. deprecated="not deprecated">
  49529. </field>
  49530. <field name="MODIFY_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49531. transient="false" volatile="false"
  49532. static="true" final="true" visibility="public"
  49533. deprecated="not deprecated">
  49534. </field>
  49535. <field name="JOB_QUEUE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49536. transient="false" volatile="false"
  49537. static="true" final="true" visibility="public"
  49538. deprecated="not deprecated">
  49539. </field>
  49540. <field name="FAIL_REASON" type="org.apache.hadoop.mapred.JobHistory.Keys"
  49541. transient="false" volatile="false"
  49542. static="true" final="true" visibility="public"
  49543. deprecated="not deprecated">
  49544. </field>
  49545. <doc>
  49546. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  49547. It acts as a global namespace for all keys.]]>
  49548. </doc>
  49549. </class>
  49550. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  49551. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  49552. <interface name="JobHistory.Listener" abstract="true"
  49553. static="true" final="false" visibility="public"
  49554. deprecated="not deprecated">
  49555. <method name="handle"
  49556. abstract="false" native="false" synchronized="false"
  49557. static="false" final="false" visibility="public"
  49558. deprecated="not deprecated">
  49559. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  49560. <param name="values" type="java.util.Map"/>
  49561. <exception name="IOException" type="java.io.IOException"/>
  49562. <doc>
  49563. <![CDATA[Callback method for history parser.
  49564. @param recType type of record, which is the first entry in the line.
  49565. @param values a map of key-value pairs as thry appear in history.
  49566. @throws IOException]]>
  49567. </doc>
  49568. </method>
  49569. <doc>
  49570. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  49571. should be implemented and passed to JobHistory.parseHistory()]]>
  49572. </doc>
  49573. </interface>
  49574. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  49575. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  49576. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  49577. abstract="false"
  49578. static="true" final="false" visibility="public"
  49579. deprecated="not deprecated">
  49580. <constructor name="JobHistory.MapAttempt"
  49581. static="false" final="false" visibility="public"
  49582. deprecated="not deprecated">
  49583. </constructor>
  49584. <method name="logStarted"
  49585. abstract="false" native="false" synchronized="false"
  49586. static="true" final="false" visibility="public"
  49587. deprecated="Use
  49588. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  49589. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49590. <param name="startTime" type="long"/>
  49591. <param name="hostName" type="java.lang.String"/>
  49592. <doc>
  49593. <![CDATA[Log start time of this map task attempt.
  49594. @param taskAttemptId task attempt id
  49595. @param startTime start time of task attempt as reported by task tracker.
  49596. @param hostName host name of the task attempt.
  49597. @deprecated Use
  49598. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  49599. </doc>
  49600. </method>
  49601. <method name="logStarted"
  49602. abstract="false" native="false" synchronized="false"
  49603. static="true" final="false" visibility="public"
  49604. deprecated="not deprecated">
  49605. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49606. <param name="startTime" type="long"/>
  49607. <param name="trackerName" type="java.lang.String"/>
  49608. <param name="httpPort" type="int"/>
  49609. <param name="taskType" type="java.lang.String"/>
  49610. <doc>
  49611. <![CDATA[Log start time of this map task attempt.
  49612. @param taskAttemptId task attempt id
  49613. @param startTime start time of task attempt as reported by task tracker.
  49614. @param trackerName name of the tracker executing the task attempt.
  49615. @param httpPort http port of the task tracker executing the task attempt
  49616. @param taskType Whether the attempt is cleanup or setup or map]]>
  49617. </doc>
  49618. </method>
  49619. <method name="logFinished"
  49620. abstract="false" native="false" synchronized="false"
  49621. static="true" final="false" visibility="public"
  49622. deprecated="Use
  49623. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  49624. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49625. <param name="finishTime" type="long"/>
  49626. <param name="hostName" type="java.lang.String"/>
  49627. <doc>
  49628. <![CDATA[Log finish time of map task attempt.
  49629. @param taskAttemptId task attempt id
  49630. @param finishTime finish time
  49631. @param hostName host name
  49632. @deprecated Use
  49633. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  49634. </doc>
  49635. </method>
  49636. <method name="logFinished"
  49637. abstract="false" native="false" synchronized="false"
  49638. static="true" final="false" visibility="public"
  49639. deprecated="not deprecated">
  49640. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49641. <param name="finishTime" type="long"/>
  49642. <param name="hostName" type="java.lang.String"/>
  49643. <param name="taskType" type="java.lang.String"/>
  49644. <param name="stateString" type="java.lang.String"/>
  49645. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  49646. <doc>
  49647. <![CDATA[Log finish time of map task attempt.
  49648. @param taskAttemptId task attempt id
  49649. @param finishTime finish time
  49650. @param hostName host name
  49651. @param taskType Whether the attempt is cleanup or setup or map
  49652. @param stateString state string of the task attempt
  49653. @param counter counters of the task attempt]]>
  49654. </doc>
  49655. </method>
  49656. <method name="logFailed"
  49657. abstract="false" native="false" synchronized="false"
  49658. static="true" final="false" visibility="public"
  49659. deprecated="Use
  49660. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  49661. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49662. <param name="timestamp" type="long"/>
  49663. <param name="hostName" type="java.lang.String"/>
  49664. <param name="error" type="java.lang.String"/>
  49665. <doc>
  49666. <![CDATA[Log task attempt failed event.
  49667. @param taskAttemptId task attempt id
  49668. @param timestamp timestamp
  49669. @param hostName hostname of this task attempt.
  49670. @param error error message if any for this task attempt.
  49671. @deprecated Use
  49672. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  49673. </doc>
  49674. </method>
  49675. <method name="logFailed"
  49676. abstract="false" native="false" synchronized="false"
  49677. static="true" final="false" visibility="public"
  49678. deprecated="not deprecated">
  49679. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49680. <param name="timestamp" type="long"/>
  49681. <param name="hostName" type="java.lang.String"/>
  49682. <param name="error" type="java.lang.String"/>
  49683. <param name="taskType" type="java.lang.String"/>
  49684. <doc>
  49685. <![CDATA[Log task attempt failed event.
  49686. @param taskAttemptId task attempt id
  49687. @param timestamp timestamp
  49688. @param hostName hostname of this task attempt.
  49689. @param error error message if any for this task attempt.
  49690. @param taskType Whether the attempt is cleanup or setup or map]]>
  49691. </doc>
  49692. </method>
  49693. <method name="logKilled"
  49694. abstract="false" native="false" synchronized="false"
  49695. static="true" final="false" visibility="public"
  49696. deprecated="Use
  49697. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  49698. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49699. <param name="timestamp" type="long"/>
  49700. <param name="hostName" type="java.lang.String"/>
  49701. <param name="error" type="java.lang.String"/>
  49702. <doc>
  49703. <![CDATA[Log task attempt killed event.
  49704. @param taskAttemptId task attempt id
  49705. @param timestamp timestamp
  49706. @param hostName hostname of this task attempt.
  49707. @param error error message if any for this task attempt.
  49708. @deprecated Use
  49709. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  49710. </doc>
  49711. </method>
  49712. <method name="logKilled"
  49713. abstract="false" native="false" synchronized="false"
  49714. static="true" final="false" visibility="public"
  49715. deprecated="not deprecated">
  49716. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49717. <param name="timestamp" type="long"/>
  49718. <param name="hostName" type="java.lang.String"/>
  49719. <param name="error" type="java.lang.String"/>
  49720. <param name="taskType" type="java.lang.String"/>
  49721. <doc>
  49722. <![CDATA[Log task attempt killed event.
  49723. @param taskAttemptId task attempt id
  49724. @param timestamp timestamp
  49725. @param hostName hostname of this task attempt.
  49726. @param error error message if any for this task attempt.
  49727. @param taskType Whether the attempt is cleanup or setup or map]]>
  49728. </doc>
  49729. </method>
  49730. <doc>
  49731. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  49732. a Map Attempt on a node.]]>
  49733. </doc>
  49734. </class>
  49735. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  49736. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  49737. <class name="JobHistory.RecordTypes" extends="java.lang.Enum"
  49738. abstract="false"
  49739. static="true" final="true" visibility="public"
  49740. deprecated="not deprecated">
  49741. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  49742. abstract="false" native="false" synchronized="false"
  49743. static="true" final="false" visibility="public"
  49744. deprecated="not deprecated">
  49745. </method>
  49746. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49747. abstract="false" native="false" synchronized="false"
  49748. static="true" final="false" visibility="public"
  49749. deprecated="not deprecated">
  49750. <param name="name" type="java.lang.String"/>
  49751. </method>
  49752. <field name="Jobtracker" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49753. transient="false" volatile="false"
  49754. static="true" final="true" visibility="public"
  49755. deprecated="not deprecated">
  49756. </field>
  49757. <field name="Job" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49758. transient="false" volatile="false"
  49759. static="true" final="true" visibility="public"
  49760. deprecated="not deprecated">
  49761. </field>
  49762. <field name="Task" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49763. transient="false" volatile="false"
  49764. static="true" final="true" visibility="public"
  49765. deprecated="not deprecated">
  49766. </field>
  49767. <field name="MapAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49768. transient="false" volatile="false"
  49769. static="true" final="true" visibility="public"
  49770. deprecated="not deprecated">
  49771. </field>
  49772. <field name="ReduceAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49773. transient="false" volatile="false"
  49774. static="true" final="true" visibility="public"
  49775. deprecated="not deprecated">
  49776. </field>
  49777. <field name="Meta" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  49778. transient="false" volatile="false"
  49779. static="true" final="true" visibility="public"
  49780. deprecated="not deprecated">
  49781. </field>
  49782. <doc>
  49783. <![CDATA[Record types are identifiers for each line of log in history files.
  49784. A record type appears as the first token in a single line of log.]]>
  49785. </doc>
  49786. </class>
  49787. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  49788. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  49789. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  49790. abstract="false"
  49791. static="true" final="false" visibility="public"
  49792. deprecated="not deprecated">
  49793. <constructor name="JobHistory.ReduceAttempt"
  49794. static="false" final="false" visibility="public"
  49795. deprecated="not deprecated">
  49796. </constructor>
  49797. <method name="logStarted"
  49798. abstract="false" native="false" synchronized="false"
  49799. static="true" final="false" visibility="public"
  49800. deprecated="Use
  49801. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  49802. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49803. <param name="startTime" type="long"/>
  49804. <param name="hostName" type="java.lang.String"/>
  49805. <doc>
  49806. <![CDATA[Log start time of Reduce task attempt.
  49807. @param taskAttemptId task attempt id
  49808. @param startTime start time
  49809. @param hostName host name
  49810. @deprecated Use
  49811. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  49812. </doc>
  49813. </method>
  49814. <method name="logStarted"
  49815. abstract="false" native="false" synchronized="false"
  49816. static="true" final="false" visibility="public"
  49817. deprecated="not deprecated">
  49818. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49819. <param name="startTime" type="long"/>
  49820. <param name="trackerName" type="java.lang.String"/>
  49821. <param name="httpPort" type="int"/>
  49822. <param name="taskType" type="java.lang.String"/>
  49823. <doc>
  49824. <![CDATA[Log start time of Reduce task attempt.
  49825. @param taskAttemptId task attempt id
  49826. @param startTime start time
  49827. @param trackerName tracker name
  49828. @param httpPort the http port of the tracker executing the task attempt
  49829. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  49830. </doc>
  49831. </method>
  49832. <method name="logFinished"
  49833. abstract="false" native="false" synchronized="false"
  49834. static="true" final="false" visibility="public"
  49835. deprecated="Use
  49836. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  49837. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49838. <param name="shuffleFinished" type="long"/>
  49839. <param name="sortFinished" type="long"/>
  49840. <param name="finishTime" type="long"/>
  49841. <param name="hostName" type="java.lang.String"/>
  49842. <doc>
  49843. <![CDATA[Log finished event of this task.
  49844. @param taskAttemptId task attempt id
  49845. @param shuffleFinished shuffle finish time
  49846. @param sortFinished sort finish time
  49847. @param finishTime finish time of task
  49848. @param hostName host name where task attempt executed
  49849. @deprecated Use
  49850. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  49851. </doc>
  49852. </method>
  49853. <method name="logFinished"
  49854. abstract="false" native="false" synchronized="false"
  49855. static="true" final="false" visibility="public"
  49856. deprecated="not deprecated">
  49857. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49858. <param name="shuffleFinished" type="long"/>
  49859. <param name="sortFinished" type="long"/>
  49860. <param name="finishTime" type="long"/>
  49861. <param name="hostName" type="java.lang.String"/>
  49862. <param name="taskType" type="java.lang.String"/>
  49863. <param name="stateString" type="java.lang.String"/>
  49864. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  49865. <doc>
  49866. <![CDATA[Log finished event of this task.
  49867. @param taskAttemptId task attempt id
  49868. @param shuffleFinished shuffle finish time
  49869. @param sortFinished sort finish time
  49870. @param finishTime finish time of task
  49871. @param hostName host name where task attempt executed
  49872. @param taskType Whether the attempt is cleanup or setup or reduce
  49873. @param stateString the state string of the attempt
  49874. @param counter counters of the attempt]]>
  49875. </doc>
  49876. </method>
  49877. <method name="logFailed"
  49878. abstract="false" native="false" synchronized="false"
  49879. static="true" final="false" visibility="public"
  49880. deprecated="Use
  49881. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  49882. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49883. <param name="timestamp" type="long"/>
  49884. <param name="hostName" type="java.lang.String"/>
  49885. <param name="error" type="java.lang.String"/>
  49886. <doc>
  49887. <![CDATA[Log failed reduce task attempt.
  49888. @param taskAttemptId task attempt id
  49889. @param timestamp time stamp when task failed
  49890. @param hostName host name of the task attempt.
  49891. @param error error message of the task.
  49892. @deprecated Use
  49893. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  49894. </doc>
  49895. </method>
  49896. <method name="logFailed"
  49897. abstract="false" native="false" synchronized="false"
  49898. static="true" final="false" visibility="public"
  49899. deprecated="not deprecated">
  49900. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49901. <param name="timestamp" type="long"/>
  49902. <param name="hostName" type="java.lang.String"/>
  49903. <param name="error" type="java.lang.String"/>
  49904. <param name="taskType" type="java.lang.String"/>
  49905. <doc>
  49906. <![CDATA[Log failed reduce task attempt.
  49907. @param taskAttemptId task attempt id
  49908. @param timestamp time stamp when task failed
  49909. @param hostName host name of the task attempt.
  49910. @param error error message of the task.
  49911. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  49912. </doc>
  49913. </method>
  49914. <method name="logKilled"
  49915. abstract="false" native="false" synchronized="false"
  49916. static="true" final="false" visibility="public"
  49917. deprecated="Use
  49918. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  49919. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49920. <param name="timestamp" type="long"/>
  49921. <param name="hostName" type="java.lang.String"/>
  49922. <param name="error" type="java.lang.String"/>
  49923. <doc>
  49924. <![CDATA[Log killed reduce task attempt.
  49925. @param taskAttemptId task attempt id
  49926. @param timestamp time stamp when task failed
  49927. @param hostName host name of the task attempt.
  49928. @param error error message of the task.
  49929. @deprecated Use
  49930. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  49931. </doc>
  49932. </method>
  49933. <method name="logKilled"
  49934. abstract="false" native="false" synchronized="false"
  49935. static="true" final="false" visibility="public"
  49936. deprecated="not deprecated">
  49937. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49938. <param name="timestamp" type="long"/>
  49939. <param name="hostName" type="java.lang.String"/>
  49940. <param name="error" type="java.lang.String"/>
  49941. <param name="taskType" type="java.lang.String"/>
  49942. <doc>
  49943. <![CDATA[Log killed reduce task attempt.
  49944. @param taskAttemptId task attempt id
  49945. @param timestamp time stamp when task failed
  49946. @param hostName host name of the task attempt.
  49947. @param error error message of the task.
  49948. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  49949. </doc>
  49950. </method>
  49951. <doc>
  49952. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  49953. a Map Attempt on a node.]]>
  49954. </doc>
  49955. </class>
  49956. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  49957. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  49958. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  49959. abstract="false"
  49960. static="true" final="false" visibility="public"
  49961. deprecated="not deprecated">
  49962. <constructor name="JobHistory.Task"
  49963. static="false" final="false" visibility="public"
  49964. deprecated="not deprecated">
  49965. </constructor>
  49966. <method name="logStarted"
  49967. abstract="false" native="false" synchronized="false"
  49968. static="true" final="false" visibility="public"
  49969. deprecated="not deprecated">
  49970. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  49971. <param name="taskType" type="java.lang.String"/>
  49972. <param name="startTime" type="long"/>
  49973. <param name="splitLocations" type="java.lang.String"/>
  49974. <doc>
  49975. <![CDATA[Log start time of task (TIP).
  49976. @param taskId task id
  49977. @param taskType MAP or REDUCE
  49978. @param startTime startTime of tip.]]>
  49979. </doc>
  49980. </method>
  49981. <method name="logFinished"
  49982. abstract="false" native="false" synchronized="false"
  49983. static="true" final="false" visibility="public"
  49984. deprecated="not deprecated">
  49985. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  49986. <param name="taskType" type="java.lang.String"/>
  49987. <param name="finishTime" type="long"/>
  49988. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  49989. <doc>
  49990. <![CDATA[Log finish time of task.
  49991. @param taskId task id
  49992. @param taskType MAP or REDUCE
  49993. @param finishTime finish timeof task in ms]]>
  49994. </doc>
  49995. </method>
  49996. <method name="logUpdates"
  49997. abstract="false" native="false" synchronized="false"
  49998. static="true" final="false" visibility="public"
  49999. deprecated="not deprecated">
  50000. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50001. <param name="finishTime" type="long"/>
  50002. <doc>
  50003. <![CDATA[Update the finish time of task.
  50004. @param taskId task id
  50005. @param finishTime finish time of task in ms]]>
  50006. </doc>
  50007. </method>
  50008. <method name="logFailed"
  50009. abstract="false" native="false" synchronized="false"
  50010. static="true" final="false" visibility="public"
  50011. deprecated="not deprecated">
  50012. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50013. <param name="taskType" type="java.lang.String"/>
  50014. <param name="time" type="long"/>
  50015. <param name="error" type="java.lang.String"/>
  50016. <doc>
  50017. <![CDATA[Log job failed event.
  50018. @param taskId task id
  50019. @param taskType MAP or REDUCE.
  50020. @param time timestamp when job failed detected.
  50021. @param error error message for failure.]]>
  50022. </doc>
  50023. </method>
  50024. <method name="logFailed"
  50025. abstract="false" native="false" synchronized="false"
  50026. static="true" final="false" visibility="public"
  50027. deprecated="not deprecated">
  50028. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50029. <param name="taskType" type="java.lang.String"/>
  50030. <param name="time" type="long"/>
  50031. <param name="error" type="java.lang.String"/>
  50032. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50033. <doc>
  50034. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  50035. </doc>
  50036. </method>
  50037. <method name="getTaskAttempts" return="java.util.Map"
  50038. abstract="false" native="false" synchronized="false"
  50039. static="false" final="false" visibility="public"
  50040. deprecated="not deprecated">
  50041. <doc>
  50042. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  50043. </doc>
  50044. </method>
  50045. <doc>
  50046. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  50047. All events logged by this class are logged in a separate file per job in
  50048. job tracker history. These events map to TIPs in jobtracker.]]>
  50049. </doc>
  50050. </class>
  50051. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  50052. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  50053. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  50054. abstract="false"
  50055. static="true" final="false" visibility="public"
  50056. deprecated="not deprecated">
  50057. <constructor name="JobHistory.TaskAttempt"
  50058. static="false" final="false" visibility="public"
  50059. deprecated="not deprecated">
  50060. </constructor>
  50061. <doc>
  50062. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  50063. </doc>
  50064. </class>
  50065. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  50066. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  50067. <class name="JobHistory.Values" extends="java.lang.Enum"
  50068. abstract="false"
  50069. static="true" final="true" visibility="public"
  50070. deprecated="not deprecated">
  50071. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  50072. abstract="false" native="false" synchronized="false"
  50073. static="true" final="false" visibility="public"
  50074. deprecated="not deprecated">
  50075. </method>
  50076. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  50077. abstract="false" native="false" synchronized="false"
  50078. static="true" final="false" visibility="public"
  50079. deprecated="not deprecated">
  50080. <param name="name" type="java.lang.String"/>
  50081. </method>
  50082. <field name="SUCCESS" type="org.apache.hadoop.mapred.JobHistory.Values"
  50083. transient="false" volatile="false"
  50084. static="true" final="true" visibility="public"
  50085. deprecated="not deprecated">
  50086. </field>
  50087. <field name="FAILED" type="org.apache.hadoop.mapred.JobHistory.Values"
  50088. transient="false" volatile="false"
  50089. static="true" final="true" visibility="public"
  50090. deprecated="not deprecated">
  50091. </field>
  50092. <field name="KILLED" type="org.apache.hadoop.mapred.JobHistory.Values"
  50093. transient="false" volatile="false"
  50094. static="true" final="true" visibility="public"
  50095. deprecated="not deprecated">
  50096. </field>
  50097. <field name="MAP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50098. transient="false" volatile="false"
  50099. static="true" final="true" visibility="public"
  50100. deprecated="not deprecated">
  50101. </field>
  50102. <field name="REDUCE" type="org.apache.hadoop.mapred.JobHistory.Values"
  50103. transient="false" volatile="false"
  50104. static="true" final="true" visibility="public"
  50105. deprecated="not deprecated">
  50106. </field>
  50107. <field name="CLEANUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50108. transient="false" volatile="false"
  50109. static="true" final="true" visibility="public"
  50110. deprecated="not deprecated">
  50111. </field>
  50112. <field name="RUNNING" type="org.apache.hadoop.mapred.JobHistory.Values"
  50113. transient="false" volatile="false"
  50114. static="true" final="true" visibility="public"
  50115. deprecated="not deprecated">
  50116. </field>
  50117. <field name="PREP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50118. transient="false" volatile="false"
  50119. static="true" final="true" visibility="public"
  50120. deprecated="not deprecated">
  50121. </field>
  50122. <field name="SETUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  50123. transient="false" volatile="false"
  50124. static="true" final="true" visibility="public"
  50125. deprecated="not deprecated">
  50126. </field>
  50127. <doc>
  50128. <![CDATA[This enum contains some of the values commonly used by history log events.
  50129. since values in history can only be strings - Values.name() is used in
  50130. most places in history file.]]>
  50131. </doc>
  50132. </class>
  50133. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  50134. <!-- start class org.apache.hadoop.mapred.JobHistoryServer -->
  50135. <class name="JobHistoryServer" extends="java.lang.Object"
  50136. abstract="false"
  50137. static="false" final="false" visibility="public"
  50138. deprecated="not deprecated">
  50139. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf"
  50140. static="false" final="false" visibility="public"
  50141. deprecated="not deprecated">
  50142. <exception name="IOException" type="java.io.IOException"/>
  50143. <doc>
  50144. <![CDATA[Starts job history server as a independent process
  50145. * Initializes ACL Manager
  50146. * Starts a webapp to service history requests
  50147. @param conf - Mr Cluster configuration
  50148. @throws IOException - any exception starting history server]]>
  50149. </doc>
  50150. </constructor>
  50151. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.ACLsManager, org.apache.hadoop.http.HttpServer"
  50152. static="false" final="false" visibility="public"
  50153. deprecated="not deprecated">
  50154. <exception name="IOException" type="java.io.IOException"/>
  50155. <doc>
  50156. <![CDATA[Starts job history server as a embedded server within job tracker
  50157. * Starts a webapp to service history requests
  50158. @param conf - MR Cluster configuration
  50159. @param aclsManager - ACLs Manager for user authentication
  50160. @param httpServer - Http Server instance
  50161. @throws IOException - any exception starting history server]]>
  50162. </doc>
  50163. </constructor>
  50164. <method name="start"
  50165. abstract="false" native="false" synchronized="false"
  50166. static="false" final="false" visibility="public"
  50167. deprecated="not deprecated">
  50168. <exception name="IOException" type="java.io.IOException"/>
  50169. </method>
  50170. <method name="join"
  50171. abstract="false" native="false" synchronized="false"
  50172. static="false" final="false" visibility="public"
  50173. deprecated="not deprecated">
  50174. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50175. </method>
  50176. <method name="shutdown"
  50177. abstract="false" native="false" synchronized="false"
  50178. static="false" final="false" visibility="public"
  50179. deprecated="not deprecated">
  50180. <exception name="Exception" type="java.lang.Exception"/>
  50181. <doc>
  50182. <![CDATA[Shutsdown the history server if already initialized
  50183. @throws Exception - Any exception during shutdown]]>
  50184. </doc>
  50185. </method>
  50186. <method name="main"
  50187. abstract="false" native="false" synchronized="false"
  50188. static="true" final="false" visibility="public"
  50189. deprecated="not deprecated">
  50190. <param name="args" type="java.lang.String[]"/>
  50191. <doc>
  50192. <![CDATA[Start job history server as an independent process
  50193. @param args - Command line arguments]]>
  50194. </doc>
  50195. </method>
  50196. <field name="MAPRED_HISTORY_SERVER_HTTP_ADDRESS" type="java.lang.String"
  50197. transient="false" volatile="false"
  50198. static="true" final="true" visibility="public"
  50199. deprecated="not deprecated">
  50200. </field>
  50201. <field name="MAPRED_HISTORY_SERVER_EMBEDDED" type="java.lang.String"
  50202. transient="false" volatile="false"
  50203. static="true" final="true" visibility="public"
  50204. deprecated="not deprecated">
  50205. </field>
  50206. <doc>
  50207. <![CDATA[{@link JobHistoryServer} is responsible for servicing all job history
  50208. related requests from client.
  50209. History Server can be initialized in one of two modes
  50210. * Emdedded within {@link JobTracker}
  50211. * External daemon, can either be run on the job tracker node or outside
  50212. Two {@link Configuration} entries in mapred-site.xml govern the functioning
  50213. of the history server
  50214. mapred.job.history.server.http.address is address to which history web
  50215. server is bound to. If operating in embedded mode, the hostname on
  50216. history address has to be same as the job tracker host name
  50217. mapred.job.history.server.embedded (default is true) will cause job tracker
  50218. to init history server, else the server need to be started as a
  50219. separate daemon process]]>
  50220. </doc>
  50221. </class>
  50222. <!-- end class org.apache.hadoop.mapred.JobHistoryServer -->
  50223. <!-- start class org.apache.hadoop.mapred.JobID -->
  50224. <class name="JobID" extends="org.apache.hadoop.mapreduce.JobID"
  50225. abstract="false"
  50226. static="false" final="false" visibility="public"
  50227. deprecated="not deprecated">
  50228. <constructor name="JobID" type="java.lang.String, int"
  50229. static="false" final="false" visibility="public"
  50230. deprecated="not deprecated">
  50231. <doc>
  50232. <![CDATA[Constructs a JobID object
  50233. @param jtIdentifier jobTracker identifier
  50234. @param id job number]]>
  50235. </doc>
  50236. </constructor>
  50237. <constructor name="JobID"
  50238. static="false" final="false" visibility="public"
  50239. deprecated="not deprecated">
  50240. </constructor>
  50241. <method name="downgrade" return="org.apache.hadoop.mapred.JobID"
  50242. abstract="false" native="false" synchronized="false"
  50243. static="true" final="false" visibility="public"
  50244. deprecated="not deprecated">
  50245. <param name="old" type="org.apache.hadoop.mapreduce.JobID"/>
  50246. <doc>
  50247. <![CDATA[Downgrade a new JobID to an old one
  50248. @param old a new or old JobID
  50249. @return either old or a new JobID build to match old]]>
  50250. </doc>
  50251. </method>
  50252. <method name="read" return="org.apache.hadoop.mapred.JobID"
  50253. abstract="false" native="false" synchronized="false"
  50254. static="true" final="false" visibility="public"
  50255. deprecated="not deprecated">
  50256. <param name="in" type="java.io.DataInput"/>
  50257. <exception name="IOException" type="java.io.IOException"/>
  50258. </method>
  50259. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  50260. abstract="false" native="false" synchronized="false"
  50261. static="true" final="false" visibility="public"
  50262. deprecated="not deprecated">
  50263. <param name="str" type="java.lang.String"/>
  50264. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  50265. <doc>
  50266. <![CDATA[Construct a JobId object from given string
  50267. @return constructed JobId object or null if the given String is null
  50268. @throws IllegalArgumentException if the given string is malformed]]>
  50269. </doc>
  50270. </method>
  50271. <method name="getJobIDsPattern" return="java.lang.String"
  50272. abstract="false" native="false" synchronized="false"
  50273. static="true" final="false" visibility="public"
  50274. deprecated="not deprecated">
  50275. <param name="jtIdentifier" type="java.lang.String"/>
  50276. <param name="jobId" type="java.lang.Integer"/>
  50277. <doc>
  50278. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  50279. be given null, in which case that part of the regex will be generic.
  50280. For example to obtain a regex matching <i>any job</i>
  50281. run on the jobtracker started at <i>200707121733</i>, we would use :
  50282. <pre>
  50283. JobID.getTaskIDsPattern("200707121733", null);
  50284. </pre>
  50285. which will return :
  50286. <pre> "job_200707121733_[0-9]*" </pre>
  50287. @param jtIdentifier jobTracker identifier, or null
  50288. @param jobId job number, or null
  50289. @return a regex pattern matching JobIDs]]>
  50290. </doc>
  50291. </method>
  50292. <doc>
  50293. <![CDATA[JobID represents the immutable and unique identifier for
  50294. the job. JobID consists of two parts. First part
  50295. represents the jobtracker identifier, so that jobID to jobtracker map
  50296. is defined. For cluster setup this string is the jobtracker
  50297. start time, for local setting, it is "local".
  50298. Second part of the JobID is the job number. <br>
  50299. An example JobID is :
  50300. <code>job_200707121733_0003</code> , which represents the third job
  50301. running at the jobtracker started at <code>200707121733</code>.
  50302. <p>
  50303. Applications should never construct or parse JobID strings, but rather
  50304. use appropriate constructors or {@link #forName(String)} method.
  50305. @see TaskID
  50306. @see TaskAttemptID]]>
  50307. </doc>
  50308. </class>
  50309. <!-- end class org.apache.hadoop.mapred.JobID -->
  50310. <!-- start class org.apache.hadoop.mapred.JobInProgress -->
  50311. <class name="JobInProgress" extends="java.lang.Object"
  50312. abstract="false"
  50313. static="false" final="false" visibility="public"
  50314. deprecated="not deprecated">
  50315. <constructor name="JobInProgress" type="org.apache.hadoop.mapred.JobID, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.JobTracker"
  50316. static="false" final="false" visibility="protected"
  50317. deprecated="not deprecated">
  50318. <exception name="IOException" type="java.io.IOException"/>
  50319. <doc>
  50320. <![CDATA[Create an almost empty JobInProgress, which can be used only for tests]]>
  50321. </doc>
  50322. </constructor>
  50323. <method name="getQueueMetrics" return="org.apache.hadoop.mapred.QueueMetrics"
  50324. abstract="false" native="false" synchronized="false"
  50325. static="false" final="false" visibility="public"
  50326. deprecated="not deprecated">
  50327. <doc>
  50328. <![CDATA[Get the QueueMetrics object associated with this job
  50329. @return QueueMetrics]]>
  50330. </doc>
  50331. </method>
  50332. <method name="cleanUpMetrics"
  50333. abstract="false" native="false" synchronized="false"
  50334. static="false" final="false" visibility="public"
  50335. deprecated="not deprecated">
  50336. <doc>
  50337. <![CDATA[Called when the job is complete]]>
  50338. </doc>
  50339. </method>
  50340. <method name="inited" return="boolean"
  50341. abstract="false" native="false" synchronized="false"
  50342. static="false" final="false" visibility="public"
  50343. deprecated="not deprecated">
  50344. <doc>
  50345. <![CDATA[Check if the job has been initialized.
  50346. @return <code>true</code> if the job has been initialized,
  50347. <code>false</code> otherwise]]>
  50348. </doc>
  50349. </method>
  50350. <method name="getUser" return="java.lang.String"
  50351. abstract="false" native="false" synchronized="false"
  50352. static="false" final="false" visibility="public"
  50353. deprecated="not deprecated">
  50354. <doc>
  50355. <![CDATA[Get the user for the job]]>
  50356. </doc>
  50357. </method>
  50358. <method name="initTasks"
  50359. abstract="false" native="false" synchronized="true"
  50360. static="false" final="false" visibility="public"
  50361. deprecated="not deprecated">
  50362. <exception name="IOException" type="java.io.IOException"/>
  50363. <exception name="JobInProgress.KillInterruptedException" type="org.apache.hadoop.mapred.JobInProgress.KillInterruptedException"/>
  50364. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  50365. <doc>
  50366. <![CDATA[Construct the splits, etc. This is invoked from an async
  50367. thread so that split-computation doesn't block anyone.]]>
  50368. </doc>
  50369. </method>
  50370. <method name="getProfile" return="org.apache.hadoop.mapred.JobProfile"
  50371. abstract="false" native="false" synchronized="false"
  50372. static="false" final="false" visibility="public"
  50373. deprecated="not deprecated">
  50374. </method>
  50375. <method name="getStatus" return="org.apache.hadoop.mapred.JobStatus"
  50376. abstract="false" native="false" synchronized="false"
  50377. static="false" final="false" visibility="public"
  50378. deprecated="not deprecated">
  50379. </method>
  50380. <method name="getLaunchTime" return="long"
  50381. abstract="false" native="false" synchronized="true"
  50382. static="false" final="false" visibility="public"
  50383. deprecated="not deprecated">
  50384. </method>
  50385. <method name="getStartTime" return="long"
  50386. abstract="false" native="false" synchronized="false"
  50387. static="false" final="false" visibility="public"
  50388. deprecated="not deprecated">
  50389. </method>
  50390. <method name="getFinishTime" return="long"
  50391. abstract="false" native="false" synchronized="false"
  50392. static="false" final="false" visibility="public"
  50393. deprecated="not deprecated">
  50394. </method>
  50395. <method name="desiredMaps" return="int"
  50396. abstract="false" native="false" synchronized="false"
  50397. static="false" final="false" visibility="public"
  50398. deprecated="not deprecated">
  50399. </method>
  50400. <method name="finishedMaps" return="int"
  50401. abstract="false" native="false" synchronized="true"
  50402. static="false" final="false" visibility="public"
  50403. deprecated="not deprecated">
  50404. </method>
  50405. <method name="desiredReduces" return="int"
  50406. abstract="false" native="false" synchronized="false"
  50407. static="false" final="false" visibility="public"
  50408. deprecated="not deprecated">
  50409. </method>
  50410. <method name="runningMaps" return="int"
  50411. abstract="false" native="false" synchronized="true"
  50412. static="false" final="false" visibility="public"
  50413. deprecated="not deprecated">
  50414. </method>
  50415. <method name="runningReduces" return="int"
  50416. abstract="false" native="false" synchronized="true"
  50417. static="false" final="false" visibility="public"
  50418. deprecated="not deprecated">
  50419. </method>
  50420. <method name="finishedReduces" return="int"
  50421. abstract="false" native="false" synchronized="true"
  50422. static="false" final="false" visibility="public"
  50423. deprecated="not deprecated">
  50424. </method>
  50425. <method name="pendingMaps" return="int"
  50426. abstract="false" native="false" synchronized="true"
  50427. static="false" final="false" visibility="public"
  50428. deprecated="not deprecated">
  50429. </method>
  50430. <method name="pendingReduces" return="int"
  50431. abstract="false" native="false" synchronized="true"
  50432. static="false" final="false" visibility="public"
  50433. deprecated="not deprecated">
  50434. </method>
  50435. <method name="desiredTasks" return="int"
  50436. abstract="false" native="false" synchronized="false"
  50437. static="false" final="false" visibility="public"
  50438. deprecated="not deprecated">
  50439. <doc>
  50440. <![CDATA[Return total number of map and reduce tasks desired by the job.
  50441. @return total number of map and reduce tasks desired by the job]]>
  50442. </doc>
  50443. </method>
  50444. <method name="getNumSlotsPerTask" return="int"
  50445. abstract="false" native="false" synchronized="false"
  50446. static="false" final="false" visibility="public"
  50447. deprecated="not deprecated">
  50448. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  50449. </method>
  50450. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  50451. abstract="false" native="false" synchronized="false"
  50452. static="false" final="false" visibility="public"
  50453. deprecated="not deprecated">
  50454. </method>
  50455. <method name="setPriority"
  50456. abstract="false" native="false" synchronized="false"
  50457. static="false" final="false" visibility="public"
  50458. deprecated="not deprecated">
  50459. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  50460. </method>
  50461. <method name="reportTasksInProgress" return="java.util.Vector"
  50462. abstract="false" native="false" synchronized="true"
  50463. static="false" final="false" visibility="public"
  50464. deprecated="not deprecated">
  50465. <param name="shouldBeMap" type="boolean"/>
  50466. <param name="shouldBeComplete" type="boolean"/>
  50467. <doc>
  50468. <![CDATA[Return a vector of completed TaskInProgress objects]]>
  50469. </doc>
  50470. </method>
  50471. <method name="reportCleanupTIPs" return="java.util.Vector"
  50472. abstract="false" native="false" synchronized="true"
  50473. static="false" final="false" visibility="public"
  50474. deprecated="not deprecated">
  50475. <param name="shouldBeComplete" type="boolean"/>
  50476. <doc>
  50477. <![CDATA[Return a vector of cleanup TaskInProgress objects]]>
  50478. </doc>
  50479. </method>
  50480. <method name="reportSetupTIPs" return="java.util.Vector"
  50481. abstract="false" native="false" synchronized="true"
  50482. static="false" final="false" visibility="public"
  50483. deprecated="not deprecated">
  50484. <param name="shouldBeComplete" type="boolean"/>
  50485. <doc>
  50486. <![CDATA[Return a vector of setup TaskInProgress objects]]>
  50487. </doc>
  50488. </method>
  50489. <method name="updateTaskStatus"
  50490. abstract="false" native="false" synchronized="true"
  50491. static="false" final="false" visibility="public"
  50492. deprecated="not deprecated">
  50493. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50494. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  50495. <doc>
  50496. <![CDATA[Assuming {@link JobTracker} is locked on entry.]]>
  50497. </doc>
  50498. </method>
  50499. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  50500. abstract="false" native="false" synchronized="true"
  50501. static="false" final="false" visibility="public"
  50502. deprecated="not deprecated">
  50503. <doc>
  50504. <![CDATA[Returns the job-level counters.
  50505. @return the job-level counters.]]>
  50506. </doc>
  50507. </method>
  50508. <method name="getMapCounters" return="boolean"
  50509. abstract="false" native="false" synchronized="true"
  50510. static="false" final="false" visibility="public"
  50511. deprecated="not deprecated">
  50512. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50513. <doc>
  50514. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  50515. This method returns true if counters are within limit or false.]]>
  50516. </doc>
  50517. </method>
  50518. <method name="getReduceCounters" return="boolean"
  50519. abstract="false" native="false" synchronized="true"
  50520. static="false" final="false" visibility="public"
  50521. deprecated="not deprecated">
  50522. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50523. <doc>
  50524. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  50525. This method returns true if counters are within limits and false otherwise.]]>
  50526. </doc>
  50527. </method>
  50528. <method name="getCounters" return="boolean"
  50529. abstract="false" native="false" synchronized="true"
  50530. static="false" final="false" visibility="public"
  50531. deprecated="not deprecated">
  50532. <param name="result" type="org.apache.hadoop.mapred.Counters"/>
  50533. <doc>
  50534. <![CDATA[Returns the total job counters, by adding together the job,
  50535. the map and the reduce counters. This method returns true if
  50536. counters are within limits and false otherwise.]]>
  50537. </doc>
  50538. </method>
  50539. <method name="obtainNewMapTask" return="org.apache.hadoop.mapred.Task"
  50540. abstract="false" native="false" synchronized="true"
  50541. static="false" final="false" visibility="public"
  50542. deprecated="not deprecated">
  50543. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50544. <param name="clusterSize" type="int"/>
  50545. <param name="numUniqueHosts" type="int"/>
  50546. <exception name="IOException" type="java.io.IOException"/>
  50547. <doc>
  50548. <![CDATA[Return a MapTask, if appropriate, to run on the given tasktracker]]>
  50549. </doc>
  50550. </method>
  50551. <method name="obtainTaskCleanupTask" return="org.apache.hadoop.mapred.Task"
  50552. abstract="false" native="false" synchronized="false"
  50553. static="false" final="false" visibility="public"
  50554. deprecated="not deprecated">
  50555. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50556. <param name="isMapSlot" type="boolean"/>
  50557. <exception name="IOException" type="java.io.IOException"/>
  50558. </method>
  50559. <method name="obtainNewNodeLocalMapTask" return="org.apache.hadoop.mapred.Task"
  50560. abstract="false" native="false" synchronized="true"
  50561. static="false" final="false" visibility="public"
  50562. deprecated="not deprecated">
  50563. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50564. <param name="clusterSize" type="int"/>
  50565. <param name="numUniqueHosts" type="int"/>
  50566. <exception name="IOException" type="java.io.IOException"/>
  50567. </method>
  50568. <method name="obtainNewNodeOrRackLocalMapTask" return="org.apache.hadoop.mapred.Task"
  50569. abstract="false" native="false" synchronized="true"
  50570. static="false" final="false" visibility="public"
  50571. deprecated="not deprecated">
  50572. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50573. <param name="clusterSize" type="int"/>
  50574. <param name="numUniqueHosts" type="int"/>
  50575. <exception name="IOException" type="java.io.IOException"/>
  50576. </method>
  50577. <method name="obtainNewNonLocalMapTask" return="org.apache.hadoop.mapred.Task"
  50578. abstract="false" native="false" synchronized="true"
  50579. static="false" final="false" visibility="public"
  50580. deprecated="not deprecated">
  50581. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50582. <param name="clusterSize" type="int"/>
  50583. <param name="numUniqueHosts" type="int"/>
  50584. <exception name="IOException" type="java.io.IOException"/>
  50585. </method>
  50586. <method name="schedulingOpportunity"
  50587. abstract="false" native="false" synchronized="false"
  50588. static="false" final="false" visibility="public"
  50589. deprecated="not deprecated">
  50590. </method>
  50591. <method name="resetSchedulingOpportunities"
  50592. abstract="false" native="false" synchronized="false"
  50593. static="false" final="false" visibility="public"
  50594. deprecated="not deprecated">
  50595. </method>
  50596. <method name="getNumSchedulingOpportunities" return="long"
  50597. abstract="false" native="false" synchronized="false"
  50598. static="false" final="false" visibility="public"
  50599. deprecated="not deprecated">
  50600. </method>
  50601. <method name="overrideSchedulingOpportunities"
  50602. abstract="false" native="false" synchronized="false"
  50603. static="false" final="false" visibility="public"
  50604. deprecated="not deprecated">
  50605. </method>
  50606. <method name="scheduleOffSwitch" return="boolean"
  50607. abstract="false" native="false" synchronized="false"
  50608. static="false" final="false" visibility="public"
  50609. deprecated="not deprecated">
  50610. <param name="numTaskTrackers" type="int"/>
  50611. <doc>
  50612. <![CDATA[Check if we can schedule an off-switch task for this job.
  50613. @param numTaskTrackers number of tasktrackers
  50614. @return <code>true</code> if we can schedule off-switch,
  50615. <code>false</code> otherwise
  50616. We check the number of missed opportunities for the job.
  50617. If it has 'waited' long enough we go ahead and schedule.]]>
  50618. </doc>
  50619. </method>
  50620. <method name="obtainJobCleanupTask" return="org.apache.hadoop.mapred.Task"
  50621. abstract="false" native="false" synchronized="false"
  50622. static="false" final="false" visibility="public"
  50623. deprecated="not deprecated">
  50624. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50625. <param name="clusterSize" type="int"/>
  50626. <param name="numUniqueHosts" type="int"/>
  50627. <param name="isMapSlot" type="boolean"/>
  50628. <exception name="IOException" type="java.io.IOException"/>
  50629. <doc>
  50630. <![CDATA[Return a CleanupTask, if appropriate, to run on the given tasktracker]]>
  50631. </doc>
  50632. </method>
  50633. <method name="obtainJobSetupTask" return="org.apache.hadoop.mapred.Task"
  50634. abstract="false" native="false" synchronized="false"
  50635. static="false" final="false" visibility="public"
  50636. deprecated="not deprecated">
  50637. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50638. <param name="clusterSize" type="int"/>
  50639. <param name="numUniqueHosts" type="int"/>
  50640. <param name="isMapSlot" type="boolean"/>
  50641. <exception name="IOException" type="java.io.IOException"/>
  50642. <doc>
  50643. <![CDATA[Return a SetupTask, if appropriate, to run on the given tasktracker]]>
  50644. </doc>
  50645. </method>
  50646. <method name="scheduleReduces" return="boolean"
  50647. abstract="false" native="false" synchronized="true"
  50648. static="false" final="false" visibility="public"
  50649. deprecated="not deprecated">
  50650. </method>
  50651. <method name="obtainNewReduceTask" return="org.apache.hadoop.mapred.Task"
  50652. abstract="false" native="false" synchronized="true"
  50653. static="false" final="false" visibility="public"
  50654. deprecated="not deprecated">
  50655. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50656. <param name="clusterSize" type="int"/>
  50657. <param name="numUniqueHosts" type="int"/>
  50658. <exception name="IOException" type="java.io.IOException"/>
  50659. <doc>
  50660. <![CDATA[Return a ReduceTask, if appropriate, to run on the given tasktracker.
  50661. We don't have cache-sensitivity for reduce tasks, as they
  50662. work on temporary MapRed files.]]>
  50663. </doc>
  50664. </method>
  50665. <method name="reserveTaskTracker"
  50666. abstract="false" native="false" synchronized="true"
  50667. static="false" final="false" visibility="public"
  50668. deprecated="not deprecated">
  50669. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  50670. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  50671. <param name="numSlots" type="int"/>
  50672. </method>
  50673. <method name="unreserveTaskTracker"
  50674. abstract="false" native="false" synchronized="true"
  50675. static="false" final="false" visibility="public"
  50676. deprecated="not deprecated">
  50677. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  50678. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  50679. </method>
  50680. <method name="getNumReservedTaskTrackersForMaps" return="int"
  50681. abstract="false" native="false" synchronized="false"
  50682. static="false" final="false" visibility="public"
  50683. deprecated="not deprecated">
  50684. </method>
  50685. <method name="getNumReservedTaskTrackersForReduces" return="int"
  50686. abstract="false" native="false" synchronized="false"
  50687. static="false" final="false" visibility="public"
  50688. deprecated="not deprecated">
  50689. </method>
  50690. <method name="scheduleMap"
  50691. abstract="false" native="false" synchronized="true"
  50692. static="false" final="false" visibility="protected"
  50693. deprecated="not deprecated">
  50694. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50695. <doc>
  50696. <![CDATA[Adds a map tip to the list of running maps.
  50697. @param tip the tip that needs to be scheduled as running]]>
  50698. </doc>
  50699. </method>
  50700. <method name="scheduleReduce"
  50701. abstract="false" native="false" synchronized="true"
  50702. static="false" final="false" visibility="protected"
  50703. deprecated="not deprecated">
  50704. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50705. <doc>
  50706. <![CDATA[Adds a reduce tip to the list of running reduces
  50707. @param tip the tip that needs to be scheduled as running]]>
  50708. </doc>
  50709. </method>
  50710. <method name="findSpeculativeTask" return="org.apache.hadoop.mapred.TaskInProgress"
  50711. abstract="false" native="false" synchronized="true"
  50712. static="false" final="false" visibility="protected"
  50713. deprecated="not deprecated">
  50714. <param name="list" type="java.util.Collection"/>
  50715. <param name="ttStatus" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50716. <param name="avgProgress" type="double"/>
  50717. <param name="currentTime" type="long"/>
  50718. <param name="shouldRemove" type="boolean"/>
  50719. <doc>
  50720. <![CDATA[Find a speculative task
  50721. @param list a list of tips
  50722. @param ttStatus status of the tracker that has requested a tip
  50723. @param avgProgress the average progress for speculation
  50724. @param currentTime current time in milliseconds
  50725. @param shouldRemove whether to remove the tips
  50726. @return a tip that can be speculated on the tracker]]>
  50727. </doc>
  50728. </method>
  50729. <method name="completedTask" return="boolean"
  50730. abstract="false" native="false" synchronized="true"
  50731. static="false" final="false" visibility="public"
  50732. deprecated="not deprecated">
  50733. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50734. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  50735. <doc>
  50736. <![CDATA[A taskid assigned to this JobInProgress has reported in successfully.]]>
  50737. </doc>
  50738. </method>
  50739. <method name="kill"
  50740. abstract="false" native="false" synchronized="false"
  50741. static="false" final="false" visibility="public"
  50742. deprecated="not deprecated">
  50743. <doc>
  50744. <![CDATA[Kill the job and all its component tasks. This method should be called from
  50745. jobtracker and should return fast as it locks the jobtracker.]]>
  50746. </doc>
  50747. </method>
  50748. <method name="failedTask"
  50749. abstract="false" native="false" synchronized="false"
  50750. static="false" final="false" visibility="public"
  50751. deprecated="not deprecated">
  50752. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  50753. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50754. <param name="reason" type="java.lang.String"/>
  50755. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  50756. <param name="state" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  50757. <param name="trackerName" type="java.lang.String"/>
  50758. <doc>
  50759. <![CDATA[Fail a task with a given reason, but without a status object.
  50760. Assuming {@link JobTracker} is locked on entry.
  50761. @param tip The task's tip
  50762. @param taskid The task id
  50763. @param reason The reason that the task failed
  50764. @param trackerName The task tracker the task failed on]]>
  50765. </doc>
  50766. </method>
  50767. <method name="getTaskInProgress" return="org.apache.hadoop.mapred.TaskInProgress"
  50768. abstract="false" native="false" synchronized="true"
  50769. static="false" final="false" visibility="public"
  50770. deprecated="not deprecated">
  50771. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  50772. <doc>
  50773. <![CDATA[Return the TaskInProgress that matches the tipid.]]>
  50774. </doc>
  50775. </method>
  50776. <method name="findFinishedMap" return="org.apache.hadoop.mapred.TaskStatus"
  50777. abstract="false" native="false" synchronized="true"
  50778. static="false" final="false" visibility="public"
  50779. deprecated="not deprecated">
  50780. <param name="mapId" type="int"/>
  50781. <doc>
  50782. <![CDATA[Find the details of someplace where a map has finished
  50783. @param mapId the id of the map
  50784. @return the task status of the completed task]]>
  50785. </doc>
  50786. </method>
  50787. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  50788. abstract="false" native="false" synchronized="true"
  50789. static="false" final="false" visibility="public"
  50790. deprecated="not deprecated">
  50791. <param name="fromEventId" type="int"/>
  50792. <param name="maxEvents" type="int"/>
  50793. </method>
  50794. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  50795. abstract="false" native="false" synchronized="false"
  50796. static="false" final="false" visibility="public"
  50797. deprecated="not deprecated">
  50798. <doc>
  50799. <![CDATA[@return The JobID of this JobInProgress.]]>
  50800. </doc>
  50801. </method>
  50802. <method name="getJobSubmitHostName" return="java.lang.String"
  50803. abstract="false" native="false" synchronized="false"
  50804. static="false" final="false" visibility="public"
  50805. deprecated="not deprecated">
  50806. <doc>
  50807. <![CDATA[@return submitHostName of this JobInProgress.]]>
  50808. </doc>
  50809. </method>
  50810. <method name="getJobSubmitHostAddress" return="java.lang.String"
  50811. abstract="false" native="false" synchronized="false"
  50812. static="false" final="false" visibility="public"
  50813. deprecated="not deprecated">
  50814. <doc>
  50815. <![CDATA[@return submitHostAddress of this JobInProgress.]]>
  50816. </doc>
  50817. </method>
  50818. <method name="getSchedulingInfo" return="java.lang.Object"
  50819. abstract="false" native="false" synchronized="true"
  50820. static="false" final="false" visibility="public"
  50821. deprecated="not deprecated">
  50822. </method>
  50823. <method name="setSchedulingInfo"
  50824. abstract="false" native="false" synchronized="true"
  50825. static="false" final="false" visibility="public"
  50826. deprecated="not deprecated">
  50827. <param name="schedulingInfo" type="java.lang.Object"/>
  50828. </method>
  50829. <field name="tokenStorage" type="org.apache.hadoop.security.Credentials"
  50830. transient="false" volatile="false"
  50831. static="false" final="false" visibility="protected"
  50832. deprecated="not deprecated">
  50833. </field>
  50834. <doc>
  50835. <![CDATA[JobInProgress maintains all the info for keeping
  50836. a Job on the straight and narrow. It keeps its JobProfile
  50837. and its latest JobStatus, plus a set of tables for
  50838. doing bookkeeping of its Tasks.
  50839. ***********************************************************]]>
  50840. </doc>
  50841. </class>
  50842. <!-- end class org.apache.hadoop.mapred.JobInProgress -->
  50843. <!-- start class org.apache.hadoop.mapred.JobInProgress.Counter -->
  50844. <class name="JobInProgress.Counter" extends="java.lang.Enum"
  50845. abstract="false"
  50846. static="true" final="true" visibility="public"
  50847. deprecated="not deprecated">
  50848. <method name="values" return="org.apache.hadoop.mapred.JobInProgress.Counter[]"
  50849. abstract="false" native="false" synchronized="false"
  50850. static="true" final="false" visibility="public"
  50851. deprecated="not deprecated">
  50852. </method>
  50853. <method name="valueOf" return="org.apache.hadoop.mapred.JobInProgress.Counter"
  50854. abstract="false" native="false" synchronized="false"
  50855. static="true" final="false" visibility="public"
  50856. deprecated="not deprecated">
  50857. <param name="name" type="java.lang.String"/>
  50858. </method>
  50859. <field name="NUM_FAILED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50860. transient="false" volatile="false"
  50861. static="true" final="true" visibility="public"
  50862. deprecated="not deprecated">
  50863. </field>
  50864. <field name="NUM_FAILED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50865. transient="false" volatile="false"
  50866. static="true" final="true" visibility="public"
  50867. deprecated="not deprecated">
  50868. </field>
  50869. <field name="TOTAL_LAUNCHED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50870. transient="false" volatile="false"
  50871. static="true" final="true" visibility="public"
  50872. deprecated="not deprecated">
  50873. </field>
  50874. <field name="TOTAL_LAUNCHED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50875. transient="false" volatile="false"
  50876. static="true" final="true" visibility="public"
  50877. deprecated="not deprecated">
  50878. </field>
  50879. <field name="OTHER_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50880. transient="false" volatile="false"
  50881. static="true" final="true" visibility="public"
  50882. deprecated="not deprecated">
  50883. </field>
  50884. <field name="DATA_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50885. transient="false" volatile="false"
  50886. static="true" final="true" visibility="public"
  50887. deprecated="not deprecated">
  50888. </field>
  50889. <field name="RACK_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50890. transient="false" volatile="false"
  50891. static="true" final="true" visibility="public"
  50892. deprecated="not deprecated">
  50893. </field>
  50894. <field name="SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50895. transient="false" volatile="false"
  50896. static="true" final="true" visibility="public"
  50897. deprecated="not deprecated">
  50898. </field>
  50899. <field name="SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50900. transient="false" volatile="false"
  50901. static="true" final="true" visibility="public"
  50902. deprecated="not deprecated">
  50903. </field>
  50904. <field name="FALLOW_SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50905. transient="false" volatile="false"
  50906. static="true" final="true" visibility="public"
  50907. deprecated="not deprecated">
  50908. </field>
  50909. <field name="FALLOW_SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  50910. transient="false" volatile="false"
  50911. static="true" final="true" visibility="public"
  50912. deprecated="not deprecated">
  50913. </field>
  50914. </class>
  50915. <!-- end class org.apache.hadoop.mapred.JobInProgress.Counter -->
  50916. <!-- start class org.apache.hadoop.mapred.JobLocalizer -->
  50917. <class name="JobLocalizer" extends="java.lang.Object"
  50918. abstract="false"
  50919. static="false" final="false" visibility="public"
  50920. deprecated="not deprecated">
  50921. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String"
  50922. static="false" final="false" visibility="public"
  50923. deprecated="not deprecated">
  50924. <exception name="IOException" type="java.io.IOException"/>
  50925. </constructor>
  50926. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String, java.lang.String[]"
  50927. static="false" final="false" visibility="public"
  50928. deprecated="not deprecated">
  50929. <exception name="IOException" type="java.io.IOException"/>
  50930. </constructor>
  50931. <method name="createLocalDirs"
  50932. abstract="false" native="false" synchronized="false"
  50933. static="false" final="false" visibility="public"
  50934. deprecated="not deprecated">
  50935. <exception name="IOException" type="java.io.IOException"/>
  50936. </method>
  50937. <method name="createUserDirs"
  50938. abstract="false" native="false" synchronized="false"
  50939. static="false" final="false" visibility="public"
  50940. deprecated="not deprecated">
  50941. <exception name="IOException" type="java.io.IOException"/>
  50942. <doc>
  50943. <![CDATA[Initialize the local directories for a particular user on this TT. This
  50944. involves creation and setting permissions of the following directories
  50945. <ul>
  50946. <li>$mapred.local.dir/taskTracker/$user</li>
  50947. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  50948. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  50949. </ul>]]>
  50950. </doc>
  50951. </method>
  50952. <method name="createJobDirs"
  50953. abstract="false" native="false" synchronized="false"
  50954. static="false" final="false" visibility="public"
  50955. deprecated="not deprecated">
  50956. <exception name="IOException" type="java.io.IOException"/>
  50957. <doc>
  50958. <![CDATA[Prepare the job directories for a given job. To be called by the job
  50959. localization code, only if the job is not already localized.
  50960. <br>
  50961. Here, we set 700 permissions on the job directories created on all disks.
  50962. This we do so as to avoid any misuse by other users till the time
  50963. {@link TaskController#initializeJob} is run at a
  50964. later time to set proper private permissions on the job directories. <br>]]>
  50965. </doc>
  50966. </method>
  50967. <method name="initializeJobLogDir"
  50968. abstract="false" native="false" synchronized="false"
  50969. static="false" final="false" visibility="public"
  50970. deprecated="not deprecated">
  50971. <exception name="IOException" type="java.io.IOException"/>
  50972. <doc>
  50973. <![CDATA[Create job log directory and set appropriate permissions for the directory.]]>
  50974. </doc>
  50975. </method>
  50976. <method name="downloadPrivateCache" return="long[]"
  50977. abstract="false" native="false" synchronized="false"
  50978. static="true" final="false" visibility="public"
  50979. deprecated="not deprecated">
  50980. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  50981. <exception name="IOException" type="java.io.IOException"/>
  50982. <doc>
  50983. <![CDATA[Download the parts of the distributed cache that are private.
  50984. @param conf the job's configuration
  50985. @throws IOException
  50986. @return the size of the archive objects]]>
  50987. </doc>
  50988. </method>
  50989. <method name="localizeJobFiles"
  50990. abstract="false" native="false" synchronized="false"
  50991. static="false" final="false" visibility="public"
  50992. deprecated="not deprecated">
  50993. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  50994. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  50995. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  50996. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  50997. <exception name="IOException" type="java.io.IOException"/>
  50998. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50999. </method>
  51000. <method name="localizeJobFiles"
  51001. abstract="false" native="false" synchronized="false"
  51002. static="false" final="false" visibility="public"
  51003. deprecated="not deprecated">
  51004. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  51005. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  51006. <param name="localJobFile" type="org.apache.hadoop.fs.Path"/>
  51007. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  51008. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  51009. <exception name="IOException" type="java.io.IOException"/>
  51010. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51011. </method>
  51012. <method name="createWorkDir"
  51013. abstract="false" native="false" synchronized="false"
  51014. static="false" final="false" visibility="public"
  51015. deprecated="not deprecated">
  51016. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  51017. <exception name="IOException" type="java.io.IOException"/>
  51018. </method>
  51019. <method name="findCredentials" return="org.apache.hadoop.fs.Path"
  51020. abstract="false" native="false" synchronized="false"
  51021. static="false" final="false" visibility="public"
  51022. deprecated="not deprecated">
  51023. <exception name="IOException" type="java.io.IOException"/>
  51024. </method>
  51025. <method name="runSetup" return="int"
  51026. abstract="false" native="false" synchronized="false"
  51027. static="false" final="false" visibility="public"
  51028. deprecated="not deprecated">
  51029. <param name="user" type="java.lang.String"/>
  51030. <param name="jobid" type="java.lang.String"/>
  51031. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  51032. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  51033. <exception name="IOException" type="java.io.IOException"/>
  51034. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51035. </method>
  51036. <method name="main"
  51037. abstract="false" native="false" synchronized="false"
  51038. static="true" final="false" visibility="public"
  51039. deprecated="not deprecated">
  51040. <param name="argv" type="java.lang.String[]"/>
  51041. <exception name="IOException" type="java.io.IOException"/>
  51042. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51043. </method>
  51044. <method name="writeLocalJobFile"
  51045. abstract="false" native="false" synchronized="false"
  51046. static="true" final="false" visibility="public"
  51047. deprecated="not deprecated">
  51048. <param name="jobFile" type="org.apache.hadoop.fs.Path"/>
  51049. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51050. <exception name="IOException" type="java.io.IOException"/>
  51051. <doc>
  51052. <![CDATA[Write the task specific job-configuration file.
  51053. @throws IOException]]>
  51054. </doc>
  51055. </method>
  51056. <doc>
  51057. <![CDATA[Internal class responsible for initializing the job, not intended for users.
  51058. Creates the following hierarchy:
  51059. <li>$mapred.local.dir/taskTracker/$user</li>
  51060. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  51061. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/work</li>
  51062. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars</li>
  51063. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars/job.jar</li>
  51064. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/job.xml</li>
  51065. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jobToken</li>
  51066. <li>$mapred.local.dir/taskTracker/$user/distcache</li>]]>
  51067. </doc>
  51068. </class>
  51069. <!-- end class org.apache.hadoop.mapred.JobLocalizer -->
  51070. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  51071. <class name="JobPriority" extends="java.lang.Enum"
  51072. abstract="false"
  51073. static="false" final="true" visibility="public"
  51074. deprecated="not deprecated">
  51075. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  51076. abstract="false" native="false" synchronized="false"
  51077. static="true" final="false" visibility="public"
  51078. deprecated="not deprecated">
  51079. </method>
  51080. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  51081. abstract="false" native="false" synchronized="false"
  51082. static="true" final="false" visibility="public"
  51083. deprecated="not deprecated">
  51084. <param name="name" type="java.lang.String"/>
  51085. </method>
  51086. <field name="VERY_HIGH" type="org.apache.hadoop.mapred.JobPriority"
  51087. transient="false" volatile="false"
  51088. static="true" final="true" visibility="public"
  51089. deprecated="not deprecated">
  51090. </field>
  51091. <field name="HIGH" type="org.apache.hadoop.mapred.JobPriority"
  51092. transient="false" volatile="false"
  51093. static="true" final="true" visibility="public"
  51094. deprecated="not deprecated">
  51095. </field>
  51096. <field name="NORMAL" type="org.apache.hadoop.mapred.JobPriority"
  51097. transient="false" volatile="false"
  51098. static="true" final="true" visibility="public"
  51099. deprecated="not deprecated">
  51100. </field>
  51101. <field name="LOW" type="org.apache.hadoop.mapred.JobPriority"
  51102. transient="false" volatile="false"
  51103. static="true" final="true" visibility="public"
  51104. deprecated="not deprecated">
  51105. </field>
  51106. <field name="VERY_LOW" type="org.apache.hadoop.mapred.JobPriority"
  51107. transient="false" volatile="false"
  51108. static="true" final="true" visibility="public"
  51109. deprecated="not deprecated">
  51110. </field>
  51111. <doc>
  51112. <![CDATA[Used to describe the priority of the running job.]]>
  51113. </doc>
  51114. </class>
  51115. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  51116. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  51117. <class name="JobProfile" extends="java.lang.Object"
  51118. abstract="false"
  51119. static="false" final="false" visibility="public"
  51120. deprecated="not deprecated">
  51121. <implements name="org.apache.hadoop.io.Writable"/>
  51122. <constructor name="JobProfile"
  51123. static="false" final="false" visibility="public"
  51124. deprecated="not deprecated">
  51125. <doc>
  51126. <![CDATA[Construct an empty {@link JobProfile}.]]>
  51127. </doc>
  51128. </constructor>
  51129. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String"
  51130. static="false" final="false" visibility="public"
  51131. deprecated="not deprecated">
  51132. <doc>
  51133. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  51134. job config-file, job-details url and job name.
  51135. @param user userid of the person who submitted the job.
  51136. @param jobid id of the job.
  51137. @param jobFile job configuration file.
  51138. @param url link to the web-ui for details of the job.
  51139. @param name user-specified job name.]]>
  51140. </doc>
  51141. </constructor>
  51142. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  51143. static="false" final="false" visibility="public"
  51144. deprecated="not deprecated">
  51145. <doc>
  51146. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  51147. job config-file, job-details url and job name.
  51148. @param user userid of the person who submitted the job.
  51149. @param jobid id of the job.
  51150. @param jobFile job configuration file.
  51151. @param url link to the web-ui for details of the job.
  51152. @param name user-specified job name.
  51153. @param queueName name of the queue to which the job is submitted]]>
  51154. </doc>
  51155. </constructor>
  51156. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  51157. static="false" final="false" visibility="public"
  51158. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  51159. <doc>
  51160. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  51161. </doc>
  51162. </constructor>
  51163. <method name="getUser" return="java.lang.String"
  51164. abstract="false" native="false" synchronized="false"
  51165. static="false" final="false" visibility="public"
  51166. deprecated="not deprecated">
  51167. <doc>
  51168. <![CDATA[Get the user id.]]>
  51169. </doc>
  51170. </method>
  51171. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  51172. abstract="false" native="false" synchronized="false"
  51173. static="false" final="false" visibility="public"
  51174. deprecated="not deprecated">
  51175. <doc>
  51176. <![CDATA[Get the job id.]]>
  51177. </doc>
  51178. </method>
  51179. <method name="getJobId" return="java.lang.String"
  51180. abstract="false" native="false" synchronized="false"
  51181. static="false" final="false" visibility="public"
  51182. deprecated="use getJobID() instead">
  51183. <doc>
  51184. <![CDATA[@deprecated use getJobID() instead]]>
  51185. </doc>
  51186. </method>
  51187. <method name="getJobFile" return="java.lang.String"
  51188. abstract="false" native="false" synchronized="false"
  51189. static="false" final="false" visibility="public"
  51190. deprecated="not deprecated">
  51191. <doc>
  51192. <![CDATA[Get the configuration file for the job.]]>
  51193. </doc>
  51194. </method>
  51195. <method name="getURL" return="java.net.URL"
  51196. abstract="false" native="false" synchronized="false"
  51197. static="false" final="false" visibility="public"
  51198. deprecated="not deprecated">
  51199. <doc>
  51200. <![CDATA[Get the link to the web-ui for details of the job.]]>
  51201. </doc>
  51202. </method>
  51203. <method name="getJobName" return="java.lang.String"
  51204. abstract="false" native="false" synchronized="false"
  51205. static="false" final="false" visibility="public"
  51206. deprecated="not deprecated">
  51207. <doc>
  51208. <![CDATA[Get the user-specified job name.]]>
  51209. </doc>
  51210. </method>
  51211. <method name="getQueueName" return="java.lang.String"
  51212. abstract="false" native="false" synchronized="false"
  51213. static="false" final="false" visibility="public"
  51214. deprecated="not deprecated">
  51215. <doc>
  51216. <![CDATA[Get the name of the queue to which the job is submitted.
  51217. @return name of the queue.]]>
  51218. </doc>
  51219. </method>
  51220. <method name="write"
  51221. abstract="false" native="false" synchronized="false"
  51222. static="false" final="false" visibility="public"
  51223. deprecated="not deprecated">
  51224. <param name="out" type="java.io.DataOutput"/>
  51225. <exception name="IOException" type="java.io.IOException"/>
  51226. </method>
  51227. <method name="readFields"
  51228. abstract="false" native="false" synchronized="false"
  51229. static="false" final="false" visibility="public"
  51230. deprecated="not deprecated">
  51231. <param name="in" type="java.io.DataInput"/>
  51232. <exception name="IOException" type="java.io.IOException"/>
  51233. </method>
  51234. <doc>
  51235. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  51236. whether living or dead.]]>
  51237. </doc>
  51238. </class>
  51239. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  51240. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  51241. <class name="JobQueueInfo" extends="java.lang.Object"
  51242. abstract="false"
  51243. static="false" final="false" visibility="public"
  51244. deprecated="not deprecated">
  51245. <implements name="org.apache.hadoop.io.Writable"/>
  51246. <constructor name="JobQueueInfo"
  51247. static="false" final="false" visibility="public"
  51248. deprecated="not deprecated">
  51249. </constructor>
  51250. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  51251. static="false" final="false" visibility="public"
  51252. deprecated="not deprecated">
  51253. <doc>
  51254. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  51255. scheduling information passed.
  51256. @param queueName Name of the job queue
  51257. @param schedulingInfo Scheduling Information associated with the job
  51258. queue]]>
  51259. </doc>
  51260. </constructor>
  51261. <method name="setQueueName"
  51262. abstract="false" native="false" synchronized="false"
  51263. static="false" final="false" visibility="public"
  51264. deprecated="not deprecated">
  51265. <param name="queueName" type="java.lang.String"/>
  51266. <doc>
  51267. <![CDATA[Set the queue name of the JobQueueInfo
  51268. @param queueName Name of the job queue.]]>
  51269. </doc>
  51270. </method>
  51271. <method name="getQueueName" return="java.lang.String"
  51272. abstract="false" native="false" synchronized="false"
  51273. static="false" final="false" visibility="public"
  51274. deprecated="not deprecated">
  51275. <doc>
  51276. <![CDATA[Get the queue name from JobQueueInfo
  51277. @return queue name]]>
  51278. </doc>
  51279. </method>
  51280. <method name="setSchedulingInfo"
  51281. abstract="false" native="false" synchronized="false"
  51282. static="false" final="false" visibility="public"
  51283. deprecated="not deprecated">
  51284. <param name="schedulingInfo" type="java.lang.String"/>
  51285. <doc>
  51286. <![CDATA[Set the scheduling information associated to particular job queue
  51287. @param schedulingInfo]]>
  51288. </doc>
  51289. </method>
  51290. <method name="getSchedulingInfo" return="java.lang.String"
  51291. abstract="false" native="false" synchronized="false"
  51292. static="false" final="false" visibility="public"
  51293. deprecated="not deprecated">
  51294. <doc>
  51295. <![CDATA[Gets the scheduling information associated to particular job queue.
  51296. If nothing is set would return <b>"N/A"</b>
  51297. @return Scheduling information associated to particular Job Queue]]>
  51298. </doc>
  51299. </method>
  51300. <method name="setQueueState"
  51301. abstract="false" native="false" synchronized="false"
  51302. static="false" final="false" visibility="public"
  51303. deprecated="not deprecated">
  51304. <param name="state" type="java.lang.String"/>
  51305. <doc>
  51306. <![CDATA[Set the state of the queue
  51307. @param state state of the queue.]]>
  51308. </doc>
  51309. </method>
  51310. <method name="getQueueState" return="java.lang.String"
  51311. abstract="false" native="false" synchronized="false"
  51312. static="false" final="false" visibility="public"
  51313. deprecated="not deprecated">
  51314. <doc>
  51315. <![CDATA[Return the queue state
  51316. @return the queue state.]]>
  51317. </doc>
  51318. </method>
  51319. <method name="readFields"
  51320. abstract="false" native="false" synchronized="false"
  51321. static="false" final="false" visibility="public"
  51322. deprecated="not deprecated">
  51323. <param name="in" type="java.io.DataInput"/>
  51324. <exception name="IOException" type="java.io.IOException"/>
  51325. </method>
  51326. <method name="write"
  51327. abstract="false" native="false" synchronized="false"
  51328. static="false" final="false" visibility="public"
  51329. deprecated="not deprecated">
  51330. <param name="out" type="java.io.DataOutput"/>
  51331. <exception name="IOException" type="java.io.IOException"/>
  51332. </method>
  51333. <doc>
  51334. <![CDATA[Class that contains the information regarding the Job Queues which are
  51335. maintained by the Hadoop Map/Reduce framework.]]>
  51336. </doc>
  51337. </class>
  51338. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  51339. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  51340. <class name="JobStatus" extends="java.lang.Object"
  51341. abstract="false"
  51342. static="false" final="false" visibility="public"
  51343. deprecated="not deprecated">
  51344. <implements name="org.apache.hadoop.io.Writable"/>
  51345. <implements name="java.lang.Cloneable"/>
  51346. <constructor name="JobStatus"
  51347. static="false" final="false" visibility="public"
  51348. deprecated="not deprecated">
  51349. </constructor>
  51350. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  51351. static="false" final="false" visibility="public"
  51352. deprecated="not deprecated">
  51353. <doc>
  51354. <![CDATA[Create a job status object for a given jobid.
  51355. @param jobid The jobid of the job
  51356. @param mapProgress The progress made on the maps
  51357. @param reduceProgress The progress made on the reduces
  51358. @param cleanupProgress The progress made on cleanup
  51359. @param runState The current state of the job]]>
  51360. </doc>
  51361. </constructor>
  51362. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  51363. static="false" final="false" visibility="public"
  51364. deprecated="not deprecated">
  51365. <doc>
  51366. <![CDATA[Create a job status object for a given jobid.
  51367. @param jobid The jobid of the job
  51368. @param mapProgress The progress made on the maps
  51369. @param reduceProgress The progress made on the reduces
  51370. @param runState The current state of the job]]>
  51371. </doc>
  51372. </constructor>
  51373. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  51374. static="false" final="false" visibility="public"
  51375. deprecated="not deprecated">
  51376. <doc>
  51377. <![CDATA[Create a job status object for a given jobid.
  51378. @param jobid The jobid of the job
  51379. @param mapProgress The progress made on the maps
  51380. @param reduceProgress The progress made on the reduces
  51381. @param runState The current state of the job
  51382. @param jp Priority of the job.]]>
  51383. </doc>
  51384. </constructor>
  51385. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  51386. static="false" final="false" visibility="public"
  51387. deprecated="not deprecated">
  51388. <doc>
  51389. <![CDATA[Create a job status object for a given jobid.
  51390. @param jobid The jobid of the job
  51391. @param setupProgress The progress made on the setup
  51392. @param mapProgress The progress made on the maps
  51393. @param reduceProgress The progress made on the reduces
  51394. @param cleanupProgress The progress made on the cleanup
  51395. @param runState The current state of the job
  51396. @param jp Priority of the job.]]>
  51397. </doc>
  51398. </constructor>
  51399. <method name="getJobRunState" return="java.lang.String"
  51400. abstract="false" native="false" synchronized="false"
  51401. static="true" final="false" visibility="public"
  51402. deprecated="not deprecated">
  51403. <param name="state" type="int"/>
  51404. <doc>
  51405. <![CDATA[Helper method to get human-readable state of the job.
  51406. @param state job state
  51407. @return human-readable state of the job]]>
  51408. </doc>
  51409. </method>
  51410. <method name="getJobId" return="java.lang.String"
  51411. abstract="false" native="false" synchronized="false"
  51412. static="false" final="false" visibility="public"
  51413. deprecated="use getJobID instead">
  51414. <doc>
  51415. <![CDATA[@deprecated use getJobID instead]]>
  51416. </doc>
  51417. </method>
  51418. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  51419. abstract="false" native="false" synchronized="false"
  51420. static="false" final="false" visibility="public"
  51421. deprecated="not deprecated">
  51422. <doc>
  51423. <![CDATA[@return The jobid of the Job]]>
  51424. </doc>
  51425. </method>
  51426. <method name="mapProgress" return="float"
  51427. abstract="false" native="false" synchronized="true"
  51428. static="false" final="false" visibility="public"
  51429. deprecated="not deprecated">
  51430. <doc>
  51431. <![CDATA[@return Percentage of progress in maps]]>
  51432. </doc>
  51433. </method>
  51434. <method name="setJobACLs"
  51435. abstract="false" native="false" synchronized="true"
  51436. static="false" final="false" visibility="protected"
  51437. deprecated="not deprecated">
  51438. <param name="acls" type="java.util.Map"/>
  51439. <doc>
  51440. <![CDATA[Set the job acls
  51441. @param acls {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  51442. </doc>
  51443. </method>
  51444. <method name="cleanupProgress" return="float"
  51445. abstract="false" native="false" synchronized="true"
  51446. static="false" final="false" visibility="public"
  51447. deprecated="not deprecated">
  51448. <doc>
  51449. <![CDATA[@return Percentage of progress in cleanup]]>
  51450. </doc>
  51451. </method>
  51452. <method name="setupProgress" return="float"
  51453. abstract="false" native="false" synchronized="true"
  51454. static="false" final="false" visibility="public"
  51455. deprecated="not deprecated">
  51456. <doc>
  51457. <![CDATA[@return Percentage of progress in setup]]>
  51458. </doc>
  51459. </method>
  51460. <method name="reduceProgress" return="float"
  51461. abstract="false" native="false" synchronized="true"
  51462. static="false" final="false" visibility="public"
  51463. deprecated="not deprecated">
  51464. <doc>
  51465. <![CDATA[@return Percentage of progress in reduce]]>
  51466. </doc>
  51467. </method>
  51468. <method name="getRunState" return="int"
  51469. abstract="false" native="false" synchronized="true"
  51470. static="false" final="false" visibility="public"
  51471. deprecated="not deprecated">
  51472. <doc>
  51473. <![CDATA[@return running state of the job]]>
  51474. </doc>
  51475. </method>
  51476. <method name="setRunState"
  51477. abstract="false" native="false" synchronized="true"
  51478. static="false" final="false" visibility="public"
  51479. deprecated="not deprecated">
  51480. <param name="state" type="int"/>
  51481. <doc>
  51482. <![CDATA[Change the current run state of the job.]]>
  51483. </doc>
  51484. </method>
  51485. <method name="getStartTime" return="long"
  51486. abstract="false" native="false" synchronized="true"
  51487. static="false" final="false" visibility="public"
  51488. deprecated="not deprecated">
  51489. <doc>
  51490. <![CDATA[@return start time of the job]]>
  51491. </doc>
  51492. </method>
  51493. <method name="clone" return="java.lang.Object"
  51494. abstract="false" native="false" synchronized="false"
  51495. static="false" final="false" visibility="public"
  51496. deprecated="not deprecated">
  51497. </method>
  51498. <method name="getUsername" return="java.lang.String"
  51499. abstract="false" native="false" synchronized="true"
  51500. static="false" final="false" visibility="public"
  51501. deprecated="not deprecated">
  51502. <doc>
  51503. <![CDATA[@return the username of the job]]>
  51504. </doc>
  51505. </method>
  51506. <method name="getSchedulingInfo" return="java.lang.String"
  51507. abstract="false" native="false" synchronized="true"
  51508. static="false" final="false" visibility="public"
  51509. deprecated="not deprecated">
  51510. <doc>
  51511. <![CDATA[Gets the Scheduling information associated to a particular Job.
  51512. @return the scheduling information of the job]]>
  51513. </doc>
  51514. </method>
  51515. <method name="getFailureInfo" return="java.lang.String"
  51516. abstract="false" native="false" synchronized="true"
  51517. static="false" final="false" visibility="public"
  51518. deprecated="not deprecated">
  51519. <doc>
  51520. <![CDATA[gets any available info on the reason of failure of the job.
  51521. @return diagnostic information on why a job might have failed.]]>
  51522. </doc>
  51523. </method>
  51524. <method name="setFailureInfo"
  51525. abstract="false" native="false" synchronized="true"
  51526. static="false" final="false" visibility="public"
  51527. deprecated="not deprecated">
  51528. <param name="failureInfo" type="java.lang.String"/>
  51529. <doc>
  51530. <![CDATA[set the reason for failuire of this job
  51531. @param failureInfo the reason for failure of this job.]]>
  51532. </doc>
  51533. </method>
  51534. <method name="setSchedulingInfo"
  51535. abstract="false" native="false" synchronized="true"
  51536. static="false" final="false" visibility="public"
  51537. deprecated="not deprecated">
  51538. <param name="schedulingInfo" type="java.lang.String"/>
  51539. <doc>
  51540. <![CDATA[Used to set the scheduling information associated to a particular Job.
  51541. @param schedulingInfo Scheduling information of the job]]>
  51542. </doc>
  51543. </method>
  51544. <method name="getJobACLs" return="java.util.Map"
  51545. abstract="false" native="false" synchronized="true"
  51546. static="false" final="false" visibility="public"
  51547. deprecated="not deprecated">
  51548. <doc>
  51549. <![CDATA[Get the acls for Job.
  51550. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  51551. </doc>
  51552. </method>
  51553. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  51554. abstract="false" native="false" synchronized="true"
  51555. static="false" final="false" visibility="public"
  51556. deprecated="not deprecated">
  51557. <doc>
  51558. <![CDATA[Return the priority of the job
  51559. @return job priority]]>
  51560. </doc>
  51561. </method>
  51562. <method name="setJobPriority"
  51563. abstract="false" native="false" synchronized="true"
  51564. static="false" final="false" visibility="public"
  51565. deprecated="not deprecated">
  51566. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  51567. <doc>
  51568. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  51569. @param jp new job priority]]>
  51570. </doc>
  51571. </method>
  51572. <method name="isJobComplete" return="boolean"
  51573. abstract="false" native="false" synchronized="true"
  51574. static="false" final="false" visibility="public"
  51575. deprecated="not deprecated">
  51576. <doc>
  51577. <![CDATA[Returns true if the status is for a completed job.]]>
  51578. </doc>
  51579. </method>
  51580. <method name="write"
  51581. abstract="false" native="false" synchronized="true"
  51582. static="false" final="false" visibility="public"
  51583. deprecated="not deprecated">
  51584. <param name="out" type="java.io.DataOutput"/>
  51585. <exception name="IOException" type="java.io.IOException"/>
  51586. </method>
  51587. <method name="readFields"
  51588. abstract="false" native="false" synchronized="true"
  51589. static="false" final="false" visibility="public"
  51590. deprecated="not deprecated">
  51591. <param name="in" type="java.io.DataInput"/>
  51592. <exception name="IOException" type="java.io.IOException"/>
  51593. </method>
  51594. <field name="RUNNING" type="int"
  51595. transient="false" volatile="false"
  51596. static="true" final="true" visibility="public"
  51597. deprecated="not deprecated">
  51598. </field>
  51599. <field name="SUCCEEDED" type="int"
  51600. transient="false" volatile="false"
  51601. static="true" final="true" visibility="public"
  51602. deprecated="not deprecated">
  51603. </field>
  51604. <field name="FAILED" type="int"
  51605. transient="false" volatile="false"
  51606. static="true" final="true" visibility="public"
  51607. deprecated="not deprecated">
  51608. </field>
  51609. <field name="PREP" type="int"
  51610. transient="false" volatile="false"
  51611. static="true" final="true" visibility="public"
  51612. deprecated="not deprecated">
  51613. </field>
  51614. <field name="KILLED" type="int"
  51615. transient="false" volatile="false"
  51616. static="true" final="true" visibility="public"
  51617. deprecated="not deprecated">
  51618. </field>
  51619. <doc>
  51620. <![CDATA[Describes the current status of a job.
  51621. @see JobProfile for some more information.]]>
  51622. </doc>
  51623. </class>
  51624. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  51625. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  51626. <class name="JobTracker" extends="java.lang.Object"
  51627. abstract="false"
  51628. static="false" final="false" visibility="public"
  51629. deprecated="not deprecated">
  51630. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  51631. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  51632. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  51633. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  51634. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  51635. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  51636. <implements name="org.apache.hadoop.mapred.AdminOperationsProtocol"/>
  51637. <implements name="org.apache.hadoop.mapred.JobTrackerMXBean"/>
  51638. <method name="getClock" return="org.apache.hadoop.mapred.Clock"
  51639. abstract="false" native="false" synchronized="false"
  51640. static="false" final="false" visibility="public"
  51641. deprecated="not deprecated">
  51642. </method>
  51643. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  51644. abstract="false" native="false" synchronized="false"
  51645. static="true" final="false" visibility="public"
  51646. deprecated="not deprecated">
  51647. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51648. <exception name="IOException" type="java.io.IOException"/>
  51649. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51650. <doc>
  51651. <![CDATA[Start the JobTracker with given configuration.
  51652. The conf will be modified to reflect the actual ports on which
  51653. the JobTracker is up and running if the user passes the port as
  51654. <code>zero</code>.
  51655. @param conf configuration for the JobTracker.
  51656. @throws IOException]]>
  51657. </doc>
  51658. </method>
  51659. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  51660. abstract="false" native="false" synchronized="false"
  51661. static="true" final="false" visibility="public"
  51662. deprecated="not deprecated">
  51663. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51664. <param name="identifier" type="java.lang.String"/>
  51665. <exception name="IOException" type="java.io.IOException"/>
  51666. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51667. </method>
  51668. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  51669. abstract="false" native="false" synchronized="false"
  51670. static="true" final="false" visibility="public"
  51671. deprecated="not deprecated">
  51672. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51673. <param name="identifier" type="java.lang.String"/>
  51674. <param name="initialize" type="boolean"/>
  51675. <exception name="IOException" type="java.io.IOException"/>
  51676. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51677. </method>
  51678. <method name="stopTracker"
  51679. abstract="false" native="false" synchronized="false"
  51680. static="false" final="false" visibility="public"
  51681. deprecated="not deprecated">
  51682. <exception name="IOException" type="java.io.IOException"/>
  51683. </method>
  51684. <method name="getProtocolVersion" return="long"
  51685. abstract="false" native="false" synchronized="false"
  51686. static="false" final="false" visibility="public"
  51687. deprecated="not deprecated">
  51688. <param name="protocol" type="java.lang.String"/>
  51689. <param name="clientVersion" type="long"/>
  51690. <exception name="IOException" type="java.io.IOException"/>
  51691. </method>
  51692. <method name="getDelegationTokenSecretManager" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager"
  51693. abstract="false" native="false" synchronized="false"
  51694. static="false" final="false" visibility="public"
  51695. deprecated="not deprecated">
  51696. </method>
  51697. <method name="hasRestarted" return="boolean"
  51698. abstract="false" native="false" synchronized="false"
  51699. static="false" final="false" visibility="public"
  51700. deprecated="not deprecated">
  51701. <doc>
  51702. <![CDATA[Whether the JT has restarted]]>
  51703. </doc>
  51704. </method>
  51705. <method name="hasRecovered" return="boolean"
  51706. abstract="false" native="false" synchronized="false"
  51707. static="false" final="false" visibility="public"
  51708. deprecated="not deprecated">
  51709. <doc>
  51710. <![CDATA[Whether the JT has recovered upon restart]]>
  51711. </doc>
  51712. </method>
  51713. <method name="getRecoveryDuration" return="long"
  51714. abstract="false" native="false" synchronized="false"
  51715. static="false" final="false" visibility="public"
  51716. deprecated="not deprecated">
  51717. <doc>
  51718. <![CDATA[How long the jobtracker took to recover from restart.]]>
  51719. </doc>
  51720. </method>
  51721. <method name="getAddress" return="java.net.InetSocketAddress"
  51722. abstract="false" native="false" synchronized="false"
  51723. static="true" final="false" visibility="public"
  51724. deprecated="not deprecated">
  51725. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  51726. </method>
  51727. <method name="offerService"
  51728. abstract="false" native="false" synchronized="false"
  51729. static="false" final="false" visibility="public"
  51730. deprecated="not deprecated">
  51731. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51732. <exception name="IOException" type="java.io.IOException"/>
  51733. <doc>
  51734. <![CDATA[Run forever]]>
  51735. </doc>
  51736. </method>
  51737. <method name="getTotalSubmissions" return="int"
  51738. abstract="false" native="false" synchronized="false"
  51739. static="false" final="false" visibility="public"
  51740. deprecated="not deprecated">
  51741. </method>
  51742. <method name="getJobTrackerMachine" return="java.lang.String"
  51743. abstract="false" native="false" synchronized="false"
  51744. static="false" final="false" visibility="public"
  51745. deprecated="not deprecated">
  51746. </method>
  51747. <method name="getTrackerIdentifier" return="java.lang.String"
  51748. abstract="false" native="false" synchronized="false"
  51749. static="false" final="false" visibility="public"
  51750. deprecated="not deprecated">
  51751. <doc>
  51752. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  51753. @return a string with a unique identifier]]>
  51754. </doc>
  51755. </method>
  51756. <method name="getTrackerPort" return="int"
  51757. abstract="false" native="false" synchronized="false"
  51758. static="false" final="false" visibility="public"
  51759. deprecated="not deprecated">
  51760. </method>
  51761. <method name="getInfoPort" return="int"
  51762. abstract="false" native="false" synchronized="false"
  51763. static="false" final="false" visibility="public"
  51764. deprecated="not deprecated">
  51765. </method>
  51766. <method name="getStartTime" return="long"
  51767. abstract="false" native="false" synchronized="false"
  51768. static="false" final="false" visibility="public"
  51769. deprecated="not deprecated">
  51770. </method>
  51771. <method name="runningJobs" return="java.util.Vector"
  51772. abstract="false" native="false" synchronized="false"
  51773. static="false" final="false" visibility="public"
  51774. deprecated="not deprecated">
  51775. </method>
  51776. <method name="getRunningJobs" return="java.util.List"
  51777. abstract="false" native="false" synchronized="true"
  51778. static="false" final="false" visibility="public"
  51779. deprecated="not deprecated">
  51780. <doc>
  51781. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  51782. careful to synchronize.]]>
  51783. </doc>
  51784. </method>
  51785. <method name="failedJobs" return="java.util.Vector"
  51786. abstract="false" native="false" synchronized="false"
  51787. static="false" final="false" visibility="public"
  51788. deprecated="not deprecated">
  51789. </method>
  51790. <method name="completedJobs" return="java.util.Vector"
  51791. abstract="false" native="false" synchronized="false"
  51792. static="false" final="false" visibility="public"
  51793. deprecated="not deprecated">
  51794. </method>
  51795. <method name="taskTrackers" return="java.util.Collection"
  51796. abstract="false" native="false" synchronized="true"
  51797. static="false" final="false" visibility="public"
  51798. deprecated="not deprecated">
  51799. <doc>
  51800. <![CDATA[Get all the task trackers in the cluster
  51801. @return {@link Collection} of {@link TaskTrackerStatus}]]>
  51802. </doc>
  51803. </method>
  51804. <method name="activeTaskTrackers" return="java.util.Collection"
  51805. abstract="false" native="false" synchronized="true"
  51806. static="false" final="false" visibility="public"
  51807. deprecated="not deprecated">
  51808. <doc>
  51809. <![CDATA[Get the active task tracker statuses in the cluster
  51810. @return {@link Collection} of active {@link TaskTrackerStatus}]]>
  51811. </doc>
  51812. </method>
  51813. <method name="taskTrackerNames" return="java.util.List"
  51814. abstract="false" native="false" synchronized="true"
  51815. static="false" final="false" visibility="public"
  51816. deprecated="not deprecated">
  51817. <doc>
  51818. <![CDATA[Get the active, blacklisted, and graylisted task tracker names in the
  51819. cluster. The first element in the returned list contains the list of
  51820. active tracker names; the second element in the returned list contains
  51821. the list of blacklisted tracker names; and the third contains the list
  51822. of graylisted tracker names. Note that the blacklist is disjoint
  51823. from the active list, but the graylist is not: initially, graylisted
  51824. trackers are still active and therefore will appear in both lists.
  51825. (Graylisted trackers can later be blacklisted, in which case they'll
  51826. be removed from the active list and added to the blacklist, but they
  51827. remain on the graylist in this case. Blacklisting comes about via the
  51828. health-check script, while graylisting is heuristically based on the
  51829. number of per-job blacklistings in a specified time interval.)]]>
  51830. </doc>
  51831. </method>
  51832. <method name="blacklistedTaskTrackers" return="java.util.Collection"
  51833. abstract="false" native="false" synchronized="false"
  51834. static="false" final="false" visibility="public"
  51835. deprecated="not deprecated">
  51836. <doc>
  51837. <![CDATA[Get the statuses of the blacklisted task trackers in the cluster.
  51838. @return {@link Collection} of blacklisted {@link TaskTrackerStatus}]]>
  51839. </doc>
  51840. </method>
  51841. <method name="graylistedTaskTrackers" return="java.util.Collection"
  51842. abstract="false" native="false" synchronized="false"
  51843. static="false" final="false" visibility="public"
  51844. deprecated="not deprecated">
  51845. <doc>
  51846. <![CDATA[Get the statuses of the graylisted task trackers in the cluster.
  51847. @return {@link Collection} of graylisted {@link TaskTrackerStatus}]]>
  51848. </doc>
  51849. </method>
  51850. <method name="isBlacklisted" return="boolean"
  51851. abstract="false" native="false" synchronized="true"
  51852. static="false" final="false" visibility="public"
  51853. deprecated="not deprecated">
  51854. <param name="trackerID" type="java.lang.String"/>
  51855. <doc>
  51856. <![CDATA[Whether the tracker is blacklisted or not
  51857. @param trackerID
  51858. @return true if blacklisted, false otherwise]]>
  51859. </doc>
  51860. </method>
  51861. <method name="isGraylisted" return="boolean"
  51862. abstract="false" native="false" synchronized="true"
  51863. static="false" final="false" visibility="public"
  51864. deprecated="not deprecated">
  51865. <param name="trackerID" type="java.lang.String"/>
  51866. <doc>
  51867. <![CDATA[Whether the tracker is graylisted or not
  51868. @param trackerID
  51869. @return true if graylisted, false otherwise]]>
  51870. </doc>
  51871. </method>
  51872. <method name="getTaskTrackerStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  51873. abstract="false" native="false" synchronized="true"
  51874. static="false" final="false" visibility="public"
  51875. deprecated="not deprecated">
  51876. <param name="trackerID" type="java.lang.String"/>
  51877. </method>
  51878. <method name="getTaskTracker" return="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"
  51879. abstract="false" native="false" synchronized="true"
  51880. static="false" final="false" visibility="public"
  51881. deprecated="not deprecated">
  51882. <param name="trackerID" type="java.lang.String"/>
  51883. </method>
  51884. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  51885. abstract="false" native="false" synchronized="false"
  51886. static="false" final="false" visibility="public"
  51887. deprecated="not deprecated">
  51888. <param name="name" type="java.lang.String"/>
  51889. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  51890. </method>
  51891. <method name="getNodesAtMaxLevel" return="java.util.Collection"
  51892. abstract="false" native="false" synchronized="false"
  51893. static="false" final="false" visibility="public"
  51894. deprecated="not deprecated">
  51895. <doc>
  51896. <![CDATA[Returns a collection of nodes at the max level]]>
  51897. </doc>
  51898. </method>
  51899. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  51900. abstract="false" native="false" synchronized="false"
  51901. static="true" final="false" visibility="public"
  51902. deprecated="not deprecated">
  51903. <param name="node" type="org.apache.hadoop.net.Node"/>
  51904. <param name="level" type="int"/>
  51905. </method>
  51906. <method name="getNode" return="org.apache.hadoop.net.Node"
  51907. abstract="false" native="false" synchronized="false"
  51908. static="false" final="false" visibility="public"
  51909. deprecated="not deprecated">
  51910. <param name="name" type="java.lang.String"/>
  51911. <doc>
  51912. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  51913. </doc>
  51914. </method>
  51915. <method name="getNumTaskCacheLevels" return="int"
  51916. abstract="false" native="false" synchronized="false"
  51917. static="false" final="false" visibility="public"
  51918. deprecated="not deprecated">
  51919. </method>
  51920. <method name="getNumResolvedTaskTrackers" return="int"
  51921. abstract="false" native="false" synchronized="false"
  51922. static="false" final="false" visibility="public"
  51923. deprecated="not deprecated">
  51924. </method>
  51925. <method name="getNumberOfUniqueHosts" return="int"
  51926. abstract="false" native="false" synchronized="false"
  51927. static="false" final="false" visibility="public"
  51928. deprecated="not deprecated">
  51929. </method>
  51930. <method name="addJobInProgressListener"
  51931. abstract="false" native="false" synchronized="false"
  51932. static="false" final="false" visibility="public"
  51933. deprecated="not deprecated">
  51934. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  51935. </method>
  51936. <method name="removeJobInProgressListener"
  51937. abstract="false" native="false" synchronized="false"
  51938. static="false" final="false" visibility="public"
  51939. deprecated="not deprecated">
  51940. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  51941. </method>
  51942. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  51943. abstract="false" native="false" synchronized="false"
  51944. static="false" final="false" visibility="public"
  51945. deprecated="not deprecated">
  51946. <doc>
  51947. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  51948. </doc>
  51949. </method>
  51950. <method name="getVIVersion" return="java.lang.String"
  51951. abstract="false" native="false" synchronized="false"
  51952. static="false" final="false" visibility="public"
  51953. deprecated="not deprecated">
  51954. <exception name="IOException" type="java.io.IOException"/>
  51955. </method>
  51956. <method name="getBuildVersion" return="java.lang.String"
  51957. abstract="false" native="false" synchronized="false"
  51958. static="false" final="false" visibility="public"
  51959. deprecated="not deprecated">
  51960. <exception name="IOException" type="java.io.IOException"/>
  51961. </method>
  51962. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  51963. abstract="false" native="false" synchronized="true"
  51964. static="false" final="false" visibility="public"
  51965. deprecated="not deprecated">
  51966. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51967. <param name="restarted" type="boolean"/>
  51968. <param name="initialContact" type="boolean"/>
  51969. <param name="acceptNewTasks" type="boolean"/>
  51970. <param name="responseId" type="short"/>
  51971. <exception name="IOException" type="java.io.IOException"/>
  51972. <doc>
  51973. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  51974. the {@link JobTracker}.
  51975. The {@link JobTracker} processes the status information sent by the
  51976. {@link TaskTracker} and responds with instructions to start/stop
  51977. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  51978. </doc>
  51979. </method>
  51980. <method name="getNextHeartbeatInterval" return="int"
  51981. abstract="false" native="false" synchronized="false"
  51982. static="false" final="false" visibility="public"
  51983. deprecated="not deprecated">
  51984. <doc>
  51985. <![CDATA[Calculates next heartbeat interval using cluster size.
  51986. Heartbeat interval is incremented by 1 second for every 100 nodes by default.
  51987. @return next heartbeat interval.]]>
  51988. </doc>
  51989. </method>
  51990. <method name="getFilesystemName" return="java.lang.String"
  51991. abstract="false" native="false" synchronized="true"
  51992. static="false" final="false" visibility="public"
  51993. deprecated="not deprecated">
  51994. <exception name="IOException" type="java.io.IOException"/>
  51995. <doc>
  51996. <![CDATA[Grab the local fs name]]>
  51997. </doc>
  51998. </method>
  51999. <method name="getConf" return="org.apache.hadoop.mapred.JobConf"
  52000. abstract="false" native="false" synchronized="false"
  52001. static="false" final="false" visibility="public"
  52002. deprecated="not deprecated">
  52003. <doc>
  52004. <![CDATA[Returns a handle to the JobTracker's Configuration]]>
  52005. </doc>
  52006. </method>
  52007. <method name="reportTaskTrackerError"
  52008. abstract="false" native="false" synchronized="false"
  52009. static="false" final="false" visibility="public"
  52010. deprecated="not deprecated">
  52011. <param name="taskTracker" type="java.lang.String"/>
  52012. <param name="errorClass" type="java.lang.String"/>
  52013. <param name="errorMessage" type="java.lang.String"/>
  52014. <exception name="IOException" type="java.io.IOException"/>
  52015. </method>
  52016. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  52017. abstract="false" native="false" synchronized="true"
  52018. static="false" final="false" visibility="public"
  52019. deprecated="not deprecated">
  52020. <exception name="IOException" type="java.io.IOException"/>
  52021. <doc>
  52022. <![CDATA[Allocates a new JobId string.]]>
  52023. </doc>
  52024. </method>
  52025. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  52026. abstract="false" native="false" synchronized="false"
  52027. static="false" final="false" visibility="public"
  52028. deprecated="not deprecated">
  52029. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  52030. <param name="jobSubmitDir" type="java.lang.String"/>
  52031. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  52032. <exception name="IOException" type="java.io.IOException"/>
  52033. <doc>
  52034. <![CDATA[JobTracker.submitJob() kicks off a new job.
  52035. Create a 'JobInProgress' object, which contains both JobProfile
  52036. and JobStatus. Those two sub-objects are sometimes shipped outside
  52037. of the JobTracker. But JobInProgress adds info that's useful for
  52038. the JobTracker alone.]]>
  52039. </doc>
  52040. </method>
  52041. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  52042. abstract="false" native="false" synchronized="false"
  52043. static="false" final="false" visibility="public"
  52044. deprecated="not deprecated">
  52045. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  52046. <param name="jobSubmitDir" type="java.lang.String"/>
  52047. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  52048. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  52049. <param name="recovered" type="boolean"/>
  52050. <exception name="IOException" type="java.io.IOException"/>
  52051. <doc>
  52052. <![CDATA[JobTracker.submitJob() kicks off a new job.
  52053. Create a 'JobInProgress' object, which contains both JobProfile and
  52054. JobStatus. Those two sub-objects are sometimes shipped outside of the
  52055. JobTracker. But JobInProgress adds info that's useful for the JobTracker
  52056. alone.]]>
  52057. </doc>
  52058. </method>
  52059. <method name="getStagingAreaDir" return="java.lang.String"
  52060. abstract="false" native="false" synchronized="false"
  52061. static="false" final="false" visibility="public"
  52062. deprecated="not deprecated">
  52063. <exception name="IOException" type="java.io.IOException"/>
  52064. <doc>
  52065. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  52066. </doc>
  52067. </method>
  52068. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  52069. abstract="false" native="false" synchronized="true"
  52070. static="false" final="false" visibility="public"
  52071. deprecated="use {@link #getClusterStatus(boolean)}">
  52072. <doc>
  52073. <![CDATA[@deprecated use {@link #getClusterStatus(boolean)}]]>
  52074. </doc>
  52075. </method>
  52076. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  52077. abstract="false" native="false" synchronized="true"
  52078. static="false" final="false" visibility="public"
  52079. deprecated="not deprecated">
  52080. <param name="detailed" type="boolean"/>
  52081. </method>
  52082. <method name="getClusterMetrics" return="org.apache.hadoop.mapreduce.ClusterMetrics"
  52083. abstract="false" native="false" synchronized="true"
  52084. static="false" final="false" visibility="public"
  52085. deprecated="not deprecated">
  52086. </method>
  52087. <method name="killJob"
  52088. abstract="false" native="false" synchronized="true"
  52089. static="false" final="false" visibility="public"
  52090. deprecated="not deprecated">
  52091. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52092. <exception name="IOException" type="java.io.IOException"/>
  52093. <doc>
  52094. <![CDATA[@see JobSubmissionProtocol#killJob]]>
  52095. </doc>
  52096. </method>
  52097. <method name="cancelDelegationToken"
  52098. abstract="false" native="false" synchronized="false"
  52099. static="false" final="false" visibility="public"
  52100. deprecated="not deprecated">
  52101. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  52102. <exception name="IOException" type="java.io.IOException"/>
  52103. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52104. <doc>
  52105. <![CDATA[Discard a current delegation token.]]>
  52106. </doc>
  52107. </method>
  52108. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  52109. abstract="false" native="false" synchronized="false"
  52110. static="false" final="false" visibility="public"
  52111. deprecated="not deprecated">
  52112. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  52113. <exception name="IOException" type="java.io.IOException"/>
  52114. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52115. <doc>
  52116. <![CDATA[Get a new delegation token.]]>
  52117. </doc>
  52118. </method>
  52119. <method name="renewDelegationToken" return="long"
  52120. abstract="false" native="false" synchronized="false"
  52121. static="false" final="false" visibility="public"
  52122. deprecated="not deprecated">
  52123. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  52124. <exception name="IOException" type="java.io.IOException"/>
  52125. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52126. <doc>
  52127. <![CDATA[Renew a delegation token to extend its lifetime.]]>
  52128. </doc>
  52129. </method>
  52130. <method name="initJob"
  52131. abstract="false" native="false" synchronized="false"
  52132. static="false" final="false" visibility="public"
  52133. deprecated="not deprecated">
  52134. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  52135. </method>
  52136. <method name="failJob"
  52137. abstract="false" native="false" synchronized="true"
  52138. static="false" final="false" visibility="public"
  52139. deprecated="not deprecated">
  52140. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  52141. <doc>
  52142. <![CDATA[Fail a job and inform the listeners. Other components in the framework
  52143. should use this to fail a job.]]>
  52144. </doc>
  52145. </method>
  52146. <method name="setJobPriority"
  52147. abstract="false" native="false" synchronized="true"
  52148. static="false" final="false" visibility="public"
  52149. deprecated="not deprecated">
  52150. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52151. <param name="priority" type="java.lang.String"/>
  52152. <exception name="IOException" type="java.io.IOException"/>
  52153. </method>
  52154. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  52155. abstract="false" native="false" synchronized="false"
  52156. static="false" final="false" visibility="public"
  52157. deprecated="not deprecated">
  52158. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52159. </method>
  52160. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  52161. abstract="false" native="false" synchronized="false"
  52162. static="false" final="false" visibility="public"
  52163. deprecated="not deprecated">
  52164. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52165. </method>
  52166. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  52167. abstract="false" native="false" synchronized="false"
  52168. static="false" final="false" visibility="public"
  52169. deprecated="not deprecated">
  52170. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52171. <exception name="IOException" type="java.io.IOException"/>
  52172. </method>
  52173. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52174. abstract="false" native="false" synchronized="true"
  52175. static="false" final="false" visibility="public"
  52176. deprecated="not deprecated">
  52177. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52178. <exception name="IOException" type="java.io.IOException"/>
  52179. </method>
  52180. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52181. abstract="false" native="false" synchronized="true"
  52182. static="false" final="false" visibility="public"
  52183. deprecated="not deprecated">
  52184. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52185. <exception name="IOException" type="java.io.IOException"/>
  52186. </method>
  52187. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52188. abstract="false" native="false" synchronized="true"
  52189. static="false" final="false" visibility="public"
  52190. deprecated="not deprecated">
  52191. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52192. <exception name="IOException" type="java.io.IOException"/>
  52193. </method>
  52194. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  52195. abstract="false" native="false" synchronized="true"
  52196. static="false" final="false" visibility="public"
  52197. deprecated="not deprecated">
  52198. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52199. <exception name="IOException" type="java.io.IOException"/>
  52200. </method>
  52201. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  52202. abstract="false" native="false" synchronized="false"
  52203. static="false" final="false" visibility="public"
  52204. deprecated="not deprecated">
  52205. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52206. <param name="fromEventId" type="int"/>
  52207. <param name="maxEvents" type="int"/>
  52208. <exception name="IOException" type="java.io.IOException"/>
  52209. </method>
  52210. <method name="getTaskDiagnostics" return="java.lang.String[]"
  52211. abstract="false" native="false" synchronized="true"
  52212. static="false" final="false" visibility="public"
  52213. deprecated="not deprecated">
  52214. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52215. <exception name="IOException" type="java.io.IOException"/>
  52216. <doc>
  52217. <![CDATA[Get the diagnostics for a given task
  52218. @param taskId the id of the task
  52219. @return an array of the diagnostic messages]]>
  52220. </doc>
  52221. </method>
  52222. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  52223. abstract="false" native="false" synchronized="false"
  52224. static="false" final="false" visibility="public"
  52225. deprecated="not deprecated">
  52226. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  52227. <doc>
  52228. <![CDATA[Returns specified TaskInProgress, or null.]]>
  52229. </doc>
  52230. </method>
  52231. <method name="killTask" return="boolean"
  52232. abstract="false" native="false" synchronized="true"
  52233. static="false" final="false" visibility="public"
  52234. deprecated="not deprecated">
  52235. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52236. <param name="shouldFail" type="boolean"/>
  52237. <exception name="IOException" type="java.io.IOException"/>
  52238. <doc>
  52239. <![CDATA[@see JobSubmissionProtocol#killTask(TaskAttemptID, boolean)]]>
  52240. </doc>
  52241. </method>
  52242. <method name="getAssignedTracker" return="java.lang.String"
  52243. abstract="false" native="false" synchronized="true"
  52244. static="false" final="false" visibility="public"
  52245. deprecated="not deprecated">
  52246. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52247. <doc>
  52248. <![CDATA[Get tracker name for a given task id.
  52249. @param taskId the name of the task
  52250. @return The name of the task tracker]]>
  52251. </doc>
  52252. </method>
  52253. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  52254. abstract="false" native="false" synchronized="false"
  52255. static="false" final="false" visibility="public"
  52256. deprecated="not deprecated">
  52257. </method>
  52258. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  52259. abstract="false" native="false" synchronized="false"
  52260. static="false" final="false" visibility="public"
  52261. deprecated="not deprecated">
  52262. <doc>
  52263. <![CDATA[@see JobSubmissionProtocol#getAllJobs()]]>
  52264. </doc>
  52265. </method>
  52266. <method name="getSystemDir" return="java.lang.String"
  52267. abstract="false" native="false" synchronized="false"
  52268. static="false" final="false" visibility="public"
  52269. deprecated="not deprecated">
  52270. <doc>
  52271. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  52272. </doc>
  52273. </method>
  52274. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  52275. abstract="false" native="false" synchronized="false"
  52276. static="false" final="false" visibility="public"
  52277. deprecated="not deprecated">
  52278. <param name="queueName" type="java.lang.String"/>
  52279. <exception name="IOException" type="java.io.IOException"/>
  52280. <doc>
  52281. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins(String)]]>
  52282. </doc>
  52283. </method>
  52284. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  52285. abstract="false" native="false" synchronized="false"
  52286. static="false" final="false" visibility="public"
  52287. deprecated="not deprecated">
  52288. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  52289. </method>
  52290. <method name="refreshNodes"
  52291. abstract="false" native="false" synchronized="true"
  52292. static="false" final="false" visibility="public"
  52293. deprecated="not deprecated">
  52294. <exception name="IOException" type="java.io.IOException"/>
  52295. <doc>
  52296. <![CDATA[Rereads the config to get hosts and exclude list file names.
  52297. Rereads the files to update the hosts and exclude lists.]]>
  52298. </doc>
  52299. </method>
  52300. <method name="getLocalJobFilePath" return="java.lang.String"
  52301. abstract="false" native="false" synchronized="false"
  52302. static="true" final="false" visibility="public"
  52303. deprecated="not deprecated">
  52304. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  52305. <doc>
  52306. <![CDATA[Get the localized job file path on the job trackers local file system
  52307. @param jobId id of the job
  52308. @return the path of the job conf file on the local file system]]>
  52309. </doc>
  52310. </method>
  52311. <method name="main"
  52312. abstract="false" native="false" synchronized="false"
  52313. static="true" final="false" visibility="public"
  52314. deprecated="not deprecated">
  52315. <param name="argv" type="java.lang.String[]"/>
  52316. <exception name="IOException" type="java.io.IOException"/>
  52317. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52318. <doc>
  52319. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  52320. JobTracker should be run as part of the DFS Namenode process.]]>
  52321. </doc>
  52322. </method>
  52323. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  52324. abstract="false" native="false" synchronized="false"
  52325. static="false" final="false" visibility="public"
  52326. deprecated="not deprecated">
  52327. <exception name="IOException" type="java.io.IOException"/>
  52328. </method>
  52329. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  52330. abstract="false" native="false" synchronized="false"
  52331. static="false" final="false" visibility="public"
  52332. deprecated="not deprecated">
  52333. <param name="queue" type="java.lang.String"/>
  52334. <exception name="IOException" type="java.io.IOException"/>
  52335. </method>
  52336. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  52337. abstract="false" native="false" synchronized="false"
  52338. static="false" final="false" visibility="public"
  52339. deprecated="not deprecated">
  52340. <param name="queue" type="java.lang.String"/>
  52341. <exception name="IOException" type="java.io.IOException"/>
  52342. </method>
  52343. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  52344. abstract="false" native="false" synchronized="false"
  52345. static="false" final="false" visibility="public"
  52346. deprecated="not deprecated">
  52347. <exception name="IOException" type="java.io.IOException"/>
  52348. </method>
  52349. <method name="refreshServiceAcl"
  52350. abstract="false" native="false" synchronized="false"
  52351. static="false" final="false" visibility="public"
  52352. deprecated="not deprecated">
  52353. <exception name="IOException" type="java.io.IOException"/>
  52354. </method>
  52355. <method name="refreshSuperUserGroupsConfiguration"
  52356. abstract="false" native="false" synchronized="false"
  52357. static="false" final="false" visibility="public"
  52358. deprecated="not deprecated">
  52359. </method>
  52360. <method name="refreshUserToGroupsMappings"
  52361. abstract="false" native="false" synchronized="false"
  52362. static="false" final="false" visibility="public"
  52363. deprecated="not deprecated">
  52364. <exception name="IOException" type="java.io.IOException"/>
  52365. </method>
  52366. <method name="refreshQueues"
  52367. abstract="false" native="false" synchronized="false"
  52368. static="false" final="false" visibility="public"
  52369. deprecated="not deprecated">
  52370. <exception name="IOException" type="java.io.IOException"/>
  52371. </method>
  52372. <method name="getReasonsForBlacklisting" return="java.lang.String"
  52373. abstract="false" native="false" synchronized="false"
  52374. static="false" final="false" visibility="public"
  52375. deprecated="not deprecated">
  52376. <param name="host" type="java.lang.String"/>
  52377. </method>
  52378. <method name="getReasonsForGraylisting" return="java.lang.String"
  52379. abstract="false" native="false" synchronized="false"
  52380. static="false" final="false" visibility="public"
  52381. deprecated="not deprecated">
  52382. <param name="host" type="java.lang.String"/>
  52383. </method>
  52384. <method name="getHostname" return="java.lang.String"
  52385. abstract="false" native="false" synchronized="false"
  52386. static="false" final="false" visibility="public"
  52387. deprecated="not deprecated">
  52388. </method>
  52389. <method name="getVersion" return="java.lang.String"
  52390. abstract="false" native="false" synchronized="false"
  52391. static="false" final="false" visibility="public"
  52392. deprecated="not deprecated">
  52393. </method>
  52394. <method name="getConfigVersion" return="java.lang.String"
  52395. abstract="false" native="false" synchronized="false"
  52396. static="false" final="false" visibility="public"
  52397. deprecated="not deprecated">
  52398. </method>
  52399. <method name="getThreadCount" return="int"
  52400. abstract="false" native="false" synchronized="false"
  52401. static="false" final="false" visibility="public"
  52402. deprecated="not deprecated">
  52403. </method>
  52404. <method name="getSummaryJson" return="java.lang.String"
  52405. abstract="false" native="false" synchronized="false"
  52406. static="false" final="false" visibility="public"
  52407. deprecated="not deprecated">
  52408. </method>
  52409. <method name="getAliveNodesInfoJson" return="java.lang.String"
  52410. abstract="false" native="false" synchronized="false"
  52411. static="false" final="false" visibility="public"
  52412. deprecated="not deprecated">
  52413. </method>
  52414. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  52415. abstract="false" native="false" synchronized="false"
  52416. static="false" final="false" visibility="public"
  52417. deprecated="not deprecated">
  52418. </method>
  52419. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  52420. abstract="false" native="false" synchronized="false"
  52421. static="false" final="false" visibility="public"
  52422. deprecated="not deprecated">
  52423. </method>
  52424. <method name="getQueueInfoJson" return="java.lang.String"
  52425. abstract="false" native="false" synchronized="false"
  52426. static="false" final="false" visibility="public"
  52427. deprecated="not deprecated">
  52428. </method>
  52429. <method name="setSafeMode" return="boolean"
  52430. abstract="false" native="false" synchronized="false"
  52431. static="false" final="false" visibility="public"
  52432. deprecated="not deprecated">
  52433. <param name="safeModeAction" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"/>
  52434. <exception name="IOException" type="java.io.IOException"/>
  52435. </method>
  52436. <method name="isInSafeMode" return="boolean"
  52437. abstract="false" native="false" synchronized="false"
  52438. static="false" final="false" visibility="public"
  52439. deprecated="not deprecated">
  52440. </method>
  52441. <field name="MAX_USER_JOBCONF_SIZE_KEY" type="java.lang.String"
  52442. transient="false" volatile="false"
  52443. static="true" final="true" visibility="public"
  52444. deprecated="not deprecated">
  52445. <doc>
  52446. <![CDATA[the config key for max user jobconf size]]>
  52447. </doc>
  52448. </field>
  52449. <field name="DELEGATION_KEY_UPDATE_INTERVAL_KEY" type="java.lang.String"
  52450. transient="false" volatile="false"
  52451. static="true" final="true" visibility="public"
  52452. deprecated="not deprecated">
  52453. </field>
  52454. <field name="DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT" type="long"
  52455. transient="false" volatile="false"
  52456. static="true" final="true" visibility="public"
  52457. deprecated="not deprecated">
  52458. </field>
  52459. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_KEY" type="java.lang.String"
  52460. transient="false" volatile="false"
  52461. static="true" final="true" visibility="public"
  52462. deprecated="not deprecated">
  52463. </field>
  52464. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT" type="long"
  52465. transient="false" volatile="false"
  52466. static="true" final="true" visibility="public"
  52467. deprecated="not deprecated">
  52468. </field>
  52469. <field name="DELEGATION_TOKEN_MAX_LIFETIME_KEY" type="java.lang.String"
  52470. transient="false" volatile="false"
  52471. static="true" final="true" visibility="public"
  52472. deprecated="not deprecated">
  52473. </field>
  52474. <field name="DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT" type="long"
  52475. transient="false" volatile="false"
  52476. static="true" final="true" visibility="public"
  52477. deprecated="not deprecated">
  52478. </field>
  52479. <field name="LOG" type="org.apache.commons.logging.Log"
  52480. transient="false" volatile="false"
  52481. static="true" final="true" visibility="public"
  52482. deprecated="not deprecated">
  52483. </field>
  52484. <field name="JT_USER_NAME" type="java.lang.String"
  52485. transient="false" volatile="false"
  52486. static="true" final="true" visibility="public"
  52487. deprecated="not deprecated">
  52488. </field>
  52489. <field name="JT_KEYTAB_FILE" type="java.lang.String"
  52490. transient="false" volatile="false"
  52491. static="true" final="true" visibility="public"
  52492. deprecated="not deprecated">
  52493. </field>
  52494. <field name="MAPRED_CLUSTER_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  52495. transient="false" volatile="false"
  52496. static="true" final="true" visibility="public"
  52497. deprecated="not deprecated">
  52498. </field>
  52499. <field name="MAPRED_CLUSTER_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  52500. transient="false" volatile="false"
  52501. static="true" final="true" visibility="public"
  52502. deprecated="not deprecated">
  52503. </field>
  52504. <field name="MAPRED_CLUSTER_MAX_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  52505. transient="false" volatile="false"
  52506. static="true" final="true" visibility="public"
  52507. deprecated="not deprecated">
  52508. </field>
  52509. <field name="MAPRED_CLUSTER_MAX_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  52510. transient="false" volatile="false"
  52511. static="true" final="true" visibility="public"
  52512. deprecated="not deprecated">
  52513. </field>
  52514. <doc>
  52515. <![CDATA[JobTracker is the central location for submitting and
  52516. tracking MR jobs in a network environment.]]>
  52517. </doc>
  52518. </class>
  52519. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  52520. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  52521. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  52522. abstract="false"
  52523. static="true" final="false" visibility="public"
  52524. deprecated="not deprecated">
  52525. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  52526. static="false" final="false" visibility="public"
  52527. deprecated="not deprecated">
  52528. </constructor>
  52529. <doc>
  52530. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  52531. </doc>
  52532. </class>
  52533. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  52534. <!-- start class org.apache.hadoop.mapred.JobTracker.SafeModeAction -->
  52535. <class name="JobTracker.SafeModeAction" extends="java.lang.Enum"
  52536. abstract="false"
  52537. static="true" final="true" visibility="public"
  52538. deprecated="not deprecated">
  52539. <method name="values" return="org.apache.hadoop.mapred.JobTracker.SafeModeAction[]"
  52540. abstract="false" native="false" synchronized="false"
  52541. static="true" final="false" visibility="public"
  52542. deprecated="not deprecated">
  52543. </method>
  52544. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52545. abstract="false" native="false" synchronized="false"
  52546. static="true" final="false" visibility="public"
  52547. deprecated="not deprecated">
  52548. <param name="name" type="java.lang.String"/>
  52549. </method>
  52550. <field name="SAFEMODE_LEAVE" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52551. transient="false" volatile="false"
  52552. static="true" final="true" visibility="public"
  52553. deprecated="not deprecated">
  52554. </field>
  52555. <field name="SAFEMODE_ENTER" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52556. transient="false" volatile="false"
  52557. static="true" final="true" visibility="public"
  52558. deprecated="not deprecated">
  52559. </field>
  52560. <field name="SAFEMODE_GET" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  52561. transient="false" volatile="false"
  52562. static="true" final="true" visibility="public"
  52563. deprecated="not deprecated">
  52564. </field>
  52565. <doc>
  52566. <![CDATA[JobTracker SafeMode]]>
  52567. </doc>
  52568. </class>
  52569. <!-- end class org.apache.hadoop.mapred.JobTracker.SafeModeAction -->
  52570. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  52571. <class name="JobTracker.State" extends="java.lang.Enum"
  52572. abstract="false"
  52573. static="true" final="true" visibility="public"
  52574. deprecated="not deprecated">
  52575. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  52576. abstract="false" native="false" synchronized="false"
  52577. static="true" final="false" visibility="public"
  52578. deprecated="not deprecated">
  52579. </method>
  52580. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  52581. abstract="false" native="false" synchronized="false"
  52582. static="true" final="false" visibility="public"
  52583. deprecated="not deprecated">
  52584. <param name="name" type="java.lang.String"/>
  52585. </method>
  52586. <field name="INITIALIZING" type="org.apache.hadoop.mapred.JobTracker.State"
  52587. transient="false" volatile="false"
  52588. static="true" final="true" visibility="public"
  52589. deprecated="not deprecated">
  52590. </field>
  52591. <field name="RUNNING" type="org.apache.hadoop.mapred.JobTracker.State"
  52592. transient="false" volatile="false"
  52593. static="true" final="true" visibility="public"
  52594. deprecated="not deprecated">
  52595. </field>
  52596. </class>
  52597. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  52598. <!-- start interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  52599. <interface name="JobTrackerMXBean" abstract="true"
  52600. static="false" final="false" visibility="public"
  52601. deprecated="not deprecated">
  52602. <method name="getHostname" return="java.lang.String"
  52603. abstract="false" native="false" synchronized="false"
  52604. static="false" final="false" visibility="public"
  52605. deprecated="not deprecated">
  52606. <doc>
  52607. <![CDATA[@return hostname of the jobtracker]]>
  52608. </doc>
  52609. </method>
  52610. <method name="getVersion" return="java.lang.String"
  52611. abstract="false" native="false" synchronized="false"
  52612. static="false" final="false" visibility="public"
  52613. deprecated="not deprecated">
  52614. <doc>
  52615. <![CDATA[@return version of the code base]]>
  52616. </doc>
  52617. </method>
  52618. <method name="getConfigVersion" return="java.lang.String"
  52619. abstract="false" native="false" synchronized="false"
  52620. static="false" final="false" visibility="public"
  52621. deprecated="not deprecated">
  52622. <doc>
  52623. <![CDATA[@return the config version (from a config property)]]>
  52624. </doc>
  52625. </method>
  52626. <method name="getThreadCount" return="int"
  52627. abstract="false" native="false" synchronized="false"
  52628. static="false" final="false" visibility="public"
  52629. deprecated="not deprecated">
  52630. <doc>
  52631. <![CDATA[@return number of threads of the jobtracker jvm]]>
  52632. </doc>
  52633. </method>
  52634. <method name="getSummaryJson" return="java.lang.String"
  52635. abstract="false" native="false" synchronized="false"
  52636. static="false" final="false" visibility="public"
  52637. deprecated="not deprecated">
  52638. <doc>
  52639. <![CDATA[@return the summary info in json]]>
  52640. </doc>
  52641. </method>
  52642. <method name="getAliveNodesInfoJson" return="java.lang.String"
  52643. abstract="false" native="false" synchronized="false"
  52644. static="false" final="false" visibility="public"
  52645. deprecated="not deprecated">
  52646. <doc>
  52647. <![CDATA[@return the alive nodes info in json]]>
  52648. </doc>
  52649. </method>
  52650. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  52651. abstract="false" native="false" synchronized="false"
  52652. static="false" final="false" visibility="public"
  52653. deprecated="not deprecated">
  52654. <doc>
  52655. <![CDATA[@return the blacklisted nodes info in json]]>
  52656. </doc>
  52657. </method>
  52658. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  52659. abstract="false" native="false" synchronized="false"
  52660. static="false" final="false" visibility="public"
  52661. deprecated="not deprecated">
  52662. <doc>
  52663. <![CDATA[@return the graylisted nodes info in json]]>
  52664. </doc>
  52665. </method>
  52666. <method name="getQueueInfoJson" return="java.lang.String"
  52667. abstract="false" native="false" synchronized="false"
  52668. static="false" final="false" visibility="public"
  52669. deprecated="not deprecated">
  52670. <doc>
  52671. <![CDATA[@return the queue info json]]>
  52672. </doc>
  52673. </method>
  52674. <doc>
  52675. <![CDATA[The MXBean interface for JobTrackerInfo]]>
  52676. </doc>
  52677. </interface>
  52678. <!-- end interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  52679. <!-- start class org.apache.hadoop.mapred.JvmTask -->
  52680. <class name="JvmTask" extends="java.lang.Object"
  52681. abstract="false"
  52682. static="false" final="false" visibility="public"
  52683. deprecated="not deprecated">
  52684. <implements name="org.apache.hadoop.io.Writable"/>
  52685. <constructor name="JvmTask" type="org.apache.hadoop.mapred.Task, boolean"
  52686. static="false" final="false" visibility="public"
  52687. deprecated="not deprecated">
  52688. </constructor>
  52689. <constructor name="JvmTask"
  52690. static="false" final="false" visibility="public"
  52691. deprecated="not deprecated">
  52692. </constructor>
  52693. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  52694. abstract="false" native="false" synchronized="false"
  52695. static="false" final="false" visibility="public"
  52696. deprecated="not deprecated">
  52697. </method>
  52698. <method name="shouldDie" return="boolean"
  52699. abstract="false" native="false" synchronized="false"
  52700. static="false" final="false" visibility="public"
  52701. deprecated="not deprecated">
  52702. </method>
  52703. <method name="write"
  52704. abstract="false" native="false" synchronized="false"
  52705. static="false" final="false" visibility="public"
  52706. deprecated="not deprecated">
  52707. <param name="out" type="java.io.DataOutput"/>
  52708. <exception name="IOException" type="java.io.IOException"/>
  52709. </method>
  52710. <method name="readFields"
  52711. abstract="false" native="false" synchronized="false"
  52712. static="false" final="false" visibility="public"
  52713. deprecated="not deprecated">
  52714. <param name="in" type="java.io.DataInput"/>
  52715. <exception name="IOException" type="java.io.IOException"/>
  52716. </method>
  52717. </class>
  52718. <!-- end class org.apache.hadoop.mapred.JvmTask -->
  52719. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  52720. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  52721. abstract="false"
  52722. static="false" final="false" visibility="public"
  52723. deprecated="not deprecated">
  52724. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  52725. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  52726. static="false" final="false" visibility="public"
  52727. deprecated="not deprecated">
  52728. <exception name="IOException" type="java.io.IOException"/>
  52729. </constructor>
  52730. <method name="getKeyClass" return="java.lang.Class"
  52731. abstract="false" native="false" synchronized="false"
  52732. static="false" final="false" visibility="public"
  52733. deprecated="not deprecated">
  52734. </method>
  52735. <method name="createKey" return="org.apache.hadoop.io.Text"
  52736. abstract="false" native="false" synchronized="false"
  52737. static="false" final="false" visibility="public"
  52738. deprecated="not deprecated">
  52739. </method>
  52740. <method name="createValue" return="org.apache.hadoop.io.Text"
  52741. abstract="false" native="false" synchronized="false"
  52742. static="false" final="false" visibility="public"
  52743. deprecated="not deprecated">
  52744. </method>
  52745. <method name="findSeparator" return="int"
  52746. abstract="false" native="false" synchronized="false"
  52747. static="true" final="false" visibility="public"
  52748. deprecated="not deprecated">
  52749. <param name="utf" type="byte[]"/>
  52750. <param name="start" type="int"/>
  52751. <param name="length" type="int"/>
  52752. <param name="sep" type="byte"/>
  52753. </method>
  52754. <method name="next" return="boolean"
  52755. abstract="false" native="false" synchronized="true"
  52756. static="false" final="false" visibility="public"
  52757. deprecated="not deprecated">
  52758. <param name="key" type="org.apache.hadoop.io.Text"/>
  52759. <param name="value" type="org.apache.hadoop.io.Text"/>
  52760. <exception name="IOException" type="java.io.IOException"/>
  52761. <doc>
  52762. <![CDATA[Read key/value pair in a line.]]>
  52763. </doc>
  52764. </method>
  52765. <method name="getProgress" return="float"
  52766. abstract="false" native="false" synchronized="false"
  52767. static="false" final="false" visibility="public"
  52768. deprecated="not deprecated">
  52769. <exception name="IOException" type="java.io.IOException"/>
  52770. </method>
  52771. <method name="getPos" return="long"
  52772. abstract="false" native="false" synchronized="true"
  52773. static="false" final="false" visibility="public"
  52774. deprecated="not deprecated">
  52775. <exception name="IOException" type="java.io.IOException"/>
  52776. </method>
  52777. <method name="close"
  52778. abstract="false" native="false" synchronized="true"
  52779. static="false" final="false" visibility="public"
  52780. deprecated="not deprecated">
  52781. <exception name="IOException" type="java.io.IOException"/>
  52782. </method>
  52783. <doc>
  52784. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  52785. separator character. The separator can be specified in config file
  52786. under the attribute name key.value.separator.in.input.line. The default
  52787. separator is the tab character ('\t').]]>
  52788. </doc>
  52789. </class>
  52790. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  52791. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  52792. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  52793. abstract="false"
  52794. static="false" final="false" visibility="public"
  52795. deprecated="not deprecated">
  52796. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52797. <constructor name="KeyValueTextInputFormat"
  52798. static="false" final="false" visibility="public"
  52799. deprecated="not deprecated">
  52800. </constructor>
  52801. <method name="configure"
  52802. abstract="false" native="false" synchronized="false"
  52803. static="false" final="false" visibility="public"
  52804. deprecated="not deprecated">
  52805. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52806. </method>
  52807. <method name="isSplitable" return="boolean"
  52808. abstract="false" native="false" synchronized="false"
  52809. static="false" final="false" visibility="protected"
  52810. deprecated="not deprecated">
  52811. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  52812. <param name="file" type="org.apache.hadoop.fs.Path"/>
  52813. </method>
  52814. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  52815. abstract="false" native="false" synchronized="false"
  52816. static="false" final="false" visibility="public"
  52817. deprecated="not deprecated">
  52818. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  52819. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52820. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52821. <exception name="IOException" type="java.io.IOException"/>
  52822. </method>
  52823. <doc>
  52824. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  52825. Either linefeed or carriage-return are used to signal end of line. Each line
  52826. is divided into key and value parts by a separator byte. If no such a byte
  52827. exists, the key will be the entire line and value will be empty.]]>
  52828. </doc>
  52829. </class>
  52830. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  52831. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  52832. <class name="LineRecordReader" extends="java.lang.Object"
  52833. abstract="false"
  52834. static="false" final="false" visibility="public"
  52835. deprecated="not deprecated">
  52836. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  52837. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  52838. static="false" final="false" visibility="public"
  52839. deprecated="not deprecated">
  52840. <exception name="IOException" type="java.io.IOException"/>
  52841. </constructor>
  52842. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  52843. static="false" final="false" visibility="public"
  52844. deprecated="not deprecated">
  52845. </constructor>
  52846. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  52847. static="false" final="false" visibility="public"
  52848. deprecated="not deprecated">
  52849. <exception name="IOException" type="java.io.IOException"/>
  52850. </constructor>
  52851. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  52852. abstract="false" native="false" synchronized="false"
  52853. static="false" final="false" visibility="public"
  52854. deprecated="not deprecated">
  52855. </method>
  52856. <method name="createValue" return="org.apache.hadoop.io.Text"
  52857. abstract="false" native="false" synchronized="false"
  52858. static="false" final="false" visibility="public"
  52859. deprecated="not deprecated">
  52860. </method>
  52861. <method name="next" return="boolean"
  52862. abstract="false" native="false" synchronized="true"
  52863. static="false" final="false" visibility="public"
  52864. deprecated="not deprecated">
  52865. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  52866. <param name="value" type="org.apache.hadoop.io.Text"/>
  52867. <exception name="IOException" type="java.io.IOException"/>
  52868. <doc>
  52869. <![CDATA[Read a line.]]>
  52870. </doc>
  52871. </method>
  52872. <method name="getProgress" return="float"
  52873. abstract="false" native="false" synchronized="false"
  52874. static="false" final="false" visibility="public"
  52875. deprecated="not deprecated">
  52876. <exception name="IOException" type="java.io.IOException"/>
  52877. <doc>
  52878. <![CDATA[Get the progress within the split]]>
  52879. </doc>
  52880. </method>
  52881. <method name="getPos" return="long"
  52882. abstract="false" native="false" synchronized="true"
  52883. static="false" final="false" visibility="public"
  52884. deprecated="not deprecated">
  52885. <exception name="IOException" type="java.io.IOException"/>
  52886. </method>
  52887. <method name="close"
  52888. abstract="false" native="false" synchronized="true"
  52889. static="false" final="false" visibility="public"
  52890. deprecated="not deprecated">
  52891. <exception name="IOException" type="java.io.IOException"/>
  52892. </method>
  52893. <doc>
  52894. <![CDATA[Treats keys as offset in file and value as line.]]>
  52895. </doc>
  52896. </class>
  52897. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  52898. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  52899. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  52900. abstract="false"
  52901. static="true" final="false" visibility="public"
  52902. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  52903. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  52904. static="false" final="false" visibility="public"
  52905. deprecated="not deprecated">
  52906. <exception name="IOException" type="java.io.IOException"/>
  52907. </constructor>
  52908. <doc>
  52909. <![CDATA[A class that provides a line reader from an input stream.
  52910. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  52911. </doc>
  52912. </class>
  52913. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  52914. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  52915. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  52916. abstract="false"
  52917. static="false" final="false" visibility="public"
  52918. deprecated="not deprecated">
  52919. <constructor name="MapFileOutputFormat"
  52920. static="false" final="false" visibility="public"
  52921. deprecated="not deprecated">
  52922. </constructor>
  52923. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  52924. abstract="false" native="false" synchronized="false"
  52925. static="false" final="false" visibility="public"
  52926. deprecated="not deprecated">
  52927. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  52928. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52929. <param name="name" type="java.lang.String"/>
  52930. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  52931. <exception name="IOException" type="java.io.IOException"/>
  52932. </method>
  52933. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  52934. abstract="false" native="false" synchronized="false"
  52935. static="true" final="false" visibility="public"
  52936. deprecated="not deprecated">
  52937. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  52938. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  52939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  52940. <exception name="IOException" type="java.io.IOException"/>
  52941. <doc>
  52942. <![CDATA[Open the output generated by this format.]]>
  52943. </doc>
  52944. </method>
  52945. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  52946. abstract="false" native="false" synchronized="false"
  52947. static="true" final="false" visibility="public"
  52948. deprecated="not deprecated">
  52949. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  52950. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner"/>
  52951. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  52952. <param name="value" type="org.apache.hadoop.io.Writable"/>
  52953. <exception name="IOException" type="java.io.IOException"/>
  52954. <doc>
  52955. <![CDATA[Get an entry from output generated by this class.]]>
  52956. </doc>
  52957. </method>
  52958. <doc>
  52959. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  52960. </doc>
  52961. </class>
  52962. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  52963. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  52964. <interface name="Mapper" abstract="true"
  52965. static="false" final="false" visibility="public"
  52966. deprecated="not deprecated">
  52967. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52968. <implements name="org.apache.hadoop.io.Closeable"/>
  52969. <method name="map"
  52970. abstract="false" native="false" synchronized="false"
  52971. static="false" final="false" visibility="public"
  52972. deprecated="not deprecated">
  52973. <param name="key" type="java.lang.Object"/>
  52974. <param name="value" type="java.lang.Object"/>
  52975. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  52976. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52977. <exception name="IOException" type="java.io.IOException"/>
  52978. <doc>
  52979. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  52980. <p>Output pairs need not be of the same types as input pairs. A given
  52981. input pair may map to zero or many output pairs. Output pairs are
  52982. collected with calls to
  52983. {@link OutputCollector#collect(Object,Object)}.</p>
  52984. <p>Applications can use the {@link Reporter} provided to report progress
  52985. or just indicate that they are alive. In scenarios where the application
  52986. takes an insignificant amount of time to process individual key/value
  52987. pairs, this is crucial since the framework might assume that the task has
  52988. timed-out and kill that task. The other way of avoiding this is to set
  52989. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  52990. mapred.task.timeout</a> to a high-enough value (or even zero for no
  52991. time-outs).</p>
  52992. @param key the input key.
  52993. @param value the input value.
  52994. @param output collects mapped keys and values.
  52995. @param reporter facility to report progress.]]>
  52996. </doc>
  52997. </method>
  52998. <doc>
  52999. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  53000. <p>Maps are the individual tasks which transform input records into a
  53001. intermediate records. The transformed intermediate records need not be of
  53002. the same type as the input records. A given input pair may map to zero or
  53003. many output pairs.</p>
  53004. <p>The Hadoop Map-Reduce framework spawns one map task for each
  53005. {@link InputSplit} generated by the {@link InputFormat} for the job.
  53006. <code>Mapper</code> implementations can access the {@link JobConf} for the
  53007. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  53008. themselves. Similarly they can use the {@link Closeable#close()} method for
  53009. de-initialization.</p>
  53010. <p>The framework then calls
  53011. {@link #map(Object, Object, OutputCollector, Reporter)}
  53012. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  53013. <p>All intermediate values associated with a given output key are
  53014. subsequently grouped by the framework, and passed to a {@link Reducer} to
  53015. determine the final output. Users can control the grouping by specifying
  53016. a <code>Comparator</code> via
  53017. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  53018. <p>The grouped <code>Mapper</code> outputs are partitioned per
  53019. <code>Reducer</code>. Users can control which keys (and hence records) go to
  53020. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  53021. <p>Users can optionally specify a <code>combiner</code>, via
  53022. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  53023. intermediate outputs, which helps to cut down the amount of data transferred
  53024. from the <code>Mapper</code> to the <code>Reducer</code>.
  53025. <p>The intermediate, grouped outputs are always stored in
  53026. {@link SequenceFile}s. Applications can specify if and how the intermediate
  53027. outputs are to be compressed and which {@link CompressionCodec}s are to be
  53028. used via the <code>JobConf</code>.</p>
  53029. <p>If the job has
  53030. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  53031. reduces</a> then the output of the <code>Mapper</code> is directly written
  53032. to the {@link FileSystem} without grouping by keys.</p>
  53033. <p>Example:</p>
  53034. <p><blockquote><pre>
  53035. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  53036. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  53037. static enum MyCounters { NUM_RECORDS }
  53038. private String mapTaskId;
  53039. private String inputFile;
  53040. private int noRecords = 0;
  53041. public void configure(JobConf job) {
  53042. mapTaskId = job.get("mapred.task.id");
  53043. inputFile = job.get("map.input.file");
  53044. }
  53045. public void map(K key, V val,
  53046. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  53047. throws IOException {
  53048. // Process the &lt;key, value&gt; pair (assume this takes a while)
  53049. // ...
  53050. // ...
  53051. // Let the framework know that we are alive, and kicking!
  53052. // reporter.progress();
  53053. // Process some more
  53054. // ...
  53055. // ...
  53056. // Increment the no. of &lt;key, value&gt; pairs processed
  53057. ++noRecords;
  53058. // Increment counters
  53059. reporter.incrCounter(NUM_RECORDS, 1);
  53060. // Every 100 records update application-level status
  53061. if ((noRecords%100) == 0) {
  53062. reporter.setStatus(mapTaskId + " processed " + noRecords +
  53063. " from input-file: " + inputFile);
  53064. }
  53065. // Output the result
  53066. output.collect(key, val);
  53067. }
  53068. }
  53069. </pre></blockquote></p>
  53070. <p>Applications may write a custom {@link MapRunnable} to exert greater
  53071. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  53072. @see JobConf
  53073. @see InputFormat
  53074. @see Partitioner
  53075. @see Reducer
  53076. @see MapReduceBase
  53077. @see MapRunnable
  53078. @see SequenceFile]]>
  53079. </doc>
  53080. </interface>
  53081. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  53082. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  53083. <class name="MapReduceBase" extends="java.lang.Object"
  53084. abstract="false"
  53085. static="false" final="false" visibility="public"
  53086. deprecated="not deprecated">
  53087. <implements name="org.apache.hadoop.io.Closeable"/>
  53088. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53089. <constructor name="MapReduceBase"
  53090. static="false" final="false" visibility="public"
  53091. deprecated="not deprecated">
  53092. </constructor>
  53093. <method name="close"
  53094. abstract="false" native="false" synchronized="false"
  53095. static="false" final="false" visibility="public"
  53096. deprecated="not deprecated">
  53097. <exception name="IOException" type="java.io.IOException"/>
  53098. <doc>
  53099. <![CDATA[Default implementation that does nothing.]]>
  53100. </doc>
  53101. </method>
  53102. <method name="configure"
  53103. abstract="false" native="false" synchronized="false"
  53104. static="false" final="false" visibility="public"
  53105. deprecated="not deprecated">
  53106. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53107. <doc>
  53108. <![CDATA[Default implementation that does nothing.]]>
  53109. </doc>
  53110. </method>
  53111. <doc>
  53112. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  53113. <p>Provides default no-op implementations for a few methods, most non-trivial
  53114. applications need to override some of them.</p>]]>
  53115. </doc>
  53116. </class>
  53117. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  53118. <!-- start class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  53119. <class name="MapReducePolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  53120. abstract="false"
  53121. static="false" final="false" visibility="public"
  53122. deprecated="not deprecated">
  53123. <constructor name="MapReducePolicyProvider"
  53124. static="false" final="false" visibility="public"
  53125. deprecated="not deprecated">
  53126. </constructor>
  53127. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  53128. abstract="false" native="false" synchronized="false"
  53129. static="false" final="false" visibility="public"
  53130. deprecated="not deprecated">
  53131. </method>
  53132. <doc>
  53133. <![CDATA[{@link PolicyProvider} for Map-Reduce protocols.]]>
  53134. </doc>
  53135. </class>
  53136. <!-- end class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  53137. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  53138. <interface name="MapRunnable" abstract="true"
  53139. static="false" final="false" visibility="public"
  53140. deprecated="not deprecated">
  53141. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53142. <method name="run"
  53143. abstract="false" native="false" synchronized="false"
  53144. static="false" final="false" visibility="public"
  53145. deprecated="not deprecated">
  53146. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  53147. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  53148. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53149. <exception name="IOException" type="java.io.IOException"/>
  53150. <doc>
  53151. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  53152. <p>Mapping of input records to output records is complete when this method
  53153. returns.</p>
  53154. @param input the {@link RecordReader} to read the input records.
  53155. @param output the {@link OutputCollector} to collect the outputrecords.
  53156. @param reporter {@link Reporter} to report progress, status-updates etc.
  53157. @throws IOException]]>
  53158. </doc>
  53159. </method>
  53160. <doc>
  53161. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  53162. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  53163. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  53164. @see Mapper]]>
  53165. </doc>
  53166. </interface>
  53167. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  53168. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  53169. <class name="MapRunner" extends="java.lang.Object"
  53170. abstract="false"
  53171. static="false" final="false" visibility="public"
  53172. deprecated="not deprecated">
  53173. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  53174. <constructor name="MapRunner"
  53175. static="false" final="false" visibility="public"
  53176. deprecated="not deprecated">
  53177. </constructor>
  53178. <method name="configure"
  53179. abstract="false" native="false" synchronized="false"
  53180. static="false" final="false" visibility="public"
  53181. deprecated="not deprecated">
  53182. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53183. </method>
  53184. <method name="run"
  53185. abstract="false" native="false" synchronized="false"
  53186. static="false" final="false" visibility="public"
  53187. deprecated="not deprecated">
  53188. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  53189. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  53190. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53191. <exception name="IOException" type="java.io.IOException"/>
  53192. </method>
  53193. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper"
  53194. abstract="false" native="false" synchronized="false"
  53195. static="false" final="false" visibility="protected"
  53196. deprecated="not deprecated">
  53197. </method>
  53198. <doc>
  53199. <![CDATA[Default {@link MapRunnable} implementation.]]>
  53200. </doc>
  53201. </class>
  53202. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  53203. <!-- start class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  53204. <class name="MapTaskCompletionEventsUpdate" extends="java.lang.Object"
  53205. abstract="false"
  53206. static="false" final="false" visibility="public"
  53207. deprecated="not deprecated">
  53208. <implements name="org.apache.hadoop.io.Writable"/>
  53209. <constructor name="MapTaskCompletionEventsUpdate"
  53210. static="false" final="false" visibility="public"
  53211. deprecated="not deprecated">
  53212. </constructor>
  53213. <constructor name="MapTaskCompletionEventsUpdate" type="org.apache.hadoop.mapred.TaskCompletionEvent[], boolean"
  53214. static="false" final="false" visibility="public"
  53215. deprecated="not deprecated">
  53216. </constructor>
  53217. <method name="shouldReset" return="boolean"
  53218. abstract="false" native="false" synchronized="false"
  53219. static="false" final="false" visibility="public"
  53220. deprecated="not deprecated">
  53221. </method>
  53222. <method name="getMapTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  53223. abstract="false" native="false" synchronized="false"
  53224. static="false" final="false" visibility="public"
  53225. deprecated="not deprecated">
  53226. </method>
  53227. <method name="write"
  53228. abstract="false" native="false" synchronized="false"
  53229. static="false" final="false" visibility="public"
  53230. deprecated="not deprecated">
  53231. <param name="out" type="java.io.DataOutput"/>
  53232. <exception name="IOException" type="java.io.IOException"/>
  53233. </method>
  53234. <method name="readFields"
  53235. abstract="false" native="false" synchronized="false"
  53236. static="false" final="false" visibility="public"
  53237. deprecated="not deprecated">
  53238. <param name="in" type="java.io.DataInput"/>
  53239. <exception name="IOException" type="java.io.IOException"/>
  53240. </method>
  53241. <doc>
  53242. <![CDATA[A class that represents the communication between the tasktracker and child
  53243. tasks w.r.t the map task completion events. It also indicates whether the
  53244. child task should reset its events index.]]>
  53245. </doc>
  53246. </class>
  53247. <!-- end class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  53248. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  53249. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  53250. abstract="true"
  53251. static="false" final="false" visibility="public"
  53252. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead">
  53253. <constructor name="MultiFileInputFormat"
  53254. static="false" final="false" visibility="public"
  53255. deprecated="not deprecated">
  53256. </constructor>
  53257. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  53258. abstract="false" native="false" synchronized="false"
  53259. static="false" final="false" visibility="public"
  53260. deprecated="not deprecated">
  53261. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53262. <param name="numSplits" type="int"/>
  53263. <exception name="IOException" type="java.io.IOException"/>
  53264. </method>
  53265. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53266. abstract="true" native="false" synchronized="false"
  53267. static="false" final="false" visibility="public"
  53268. deprecated="not deprecated">
  53269. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53270. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53271. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53272. <exception name="IOException" type="java.io.IOException"/>
  53273. </method>
  53274. <doc>
  53275. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  53276. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  53277. the files under the input paths. Each split returned contains <i>nearly</i>
  53278. equal content length. <br>
  53279. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  53280. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  53281. @see MultiFileSplit
  53282. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead]]>
  53283. </doc>
  53284. </class>
  53285. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  53286. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  53287. <class name="MultiFileSplit" extends="org.apache.hadoop.mapred.lib.CombineFileSplit"
  53288. abstract="false"
  53289. static="false" final="false" visibility="public"
  53290. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead">
  53291. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  53292. static="false" final="false" visibility="public"
  53293. deprecated="not deprecated">
  53294. </constructor>
  53295. <method name="getLocations" return="java.lang.String[]"
  53296. abstract="false" native="false" synchronized="false"
  53297. static="false" final="false" visibility="public"
  53298. deprecated="not deprecated">
  53299. <exception name="IOException" type="java.io.IOException"/>
  53300. </method>
  53301. <method name="toString" return="java.lang.String"
  53302. abstract="false" native="false" synchronized="false"
  53303. static="false" final="false" visibility="public"
  53304. deprecated="not deprecated">
  53305. </method>
  53306. <doc>
  53307. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  53308. class does not represent a split of a file, but a split of input files
  53309. into smaller sets. The atomic unit of split is a file. <br>
  53310. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  53311. reading one record per file.
  53312. @see FileSplit
  53313. @see MultiFileInputFormat
  53314. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead]]>
  53315. </doc>
  53316. </class>
  53317. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  53318. <!-- start class org.apache.hadoop.mapred.Operation -->
  53319. <class name="Operation" extends="java.lang.Enum"
  53320. abstract="false"
  53321. static="false" final="true" visibility="public"
  53322. deprecated="not deprecated">
  53323. <method name="values" return="org.apache.hadoop.mapred.Operation[]"
  53324. abstract="false" native="false" synchronized="false"
  53325. static="true" final="false" visibility="public"
  53326. deprecated="not deprecated">
  53327. </method>
  53328. <method name="valueOf" return="org.apache.hadoop.mapred.Operation"
  53329. abstract="false" native="false" synchronized="false"
  53330. static="true" final="false" visibility="public"
  53331. deprecated="not deprecated">
  53332. <param name="name" type="java.lang.String"/>
  53333. </method>
  53334. <field name="VIEW_JOB_COUNTERS" type="org.apache.hadoop.mapred.Operation"
  53335. transient="false" volatile="false"
  53336. static="true" final="true" visibility="public"
  53337. deprecated="not deprecated">
  53338. </field>
  53339. <field name="VIEW_JOB_DETAILS" type="org.apache.hadoop.mapred.Operation"
  53340. transient="false" volatile="false"
  53341. static="true" final="true" visibility="public"
  53342. deprecated="not deprecated">
  53343. </field>
  53344. <field name="VIEW_TASK_LOGS" type="org.apache.hadoop.mapred.Operation"
  53345. transient="false" volatile="false"
  53346. static="true" final="true" visibility="public"
  53347. deprecated="not deprecated">
  53348. </field>
  53349. <field name="KILL_JOB" type="org.apache.hadoop.mapred.Operation"
  53350. transient="false" volatile="false"
  53351. static="true" final="true" visibility="public"
  53352. deprecated="not deprecated">
  53353. </field>
  53354. <field name="FAIL_TASK" type="org.apache.hadoop.mapred.Operation"
  53355. transient="false" volatile="false"
  53356. static="true" final="true" visibility="public"
  53357. deprecated="not deprecated">
  53358. </field>
  53359. <field name="KILL_TASK" type="org.apache.hadoop.mapred.Operation"
  53360. transient="false" volatile="false"
  53361. static="true" final="true" visibility="public"
  53362. deprecated="not deprecated">
  53363. </field>
  53364. <field name="SET_JOB_PRIORITY" type="org.apache.hadoop.mapred.Operation"
  53365. transient="false" volatile="false"
  53366. static="true" final="true" visibility="public"
  53367. deprecated="not deprecated">
  53368. </field>
  53369. <field name="SUBMIT_JOB" type="org.apache.hadoop.mapred.Operation"
  53370. transient="false" volatile="false"
  53371. static="true" final="true" visibility="public"
  53372. deprecated="not deprecated">
  53373. </field>
  53374. <field name="qACLNeeded" type="org.apache.hadoop.mapred.QueueManager.QueueACL"
  53375. transient="false" volatile="false"
  53376. static="false" final="false" visibility="public"
  53377. deprecated="not deprecated">
  53378. </field>
  53379. <field name="jobACLNeeded" type="org.apache.hadoop.mapreduce.JobACL"
  53380. transient="false" volatile="false"
  53381. static="false" final="false" visibility="public"
  53382. deprecated="not deprecated">
  53383. </field>
  53384. <doc>
  53385. <![CDATA[Generic operation that maps to the dependent set of ACLs that drive the
  53386. authorization of the operation.]]>
  53387. </doc>
  53388. </class>
  53389. <!-- end class org.apache.hadoop.mapred.Operation -->
  53390. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  53391. <interface name="OutputCollector" abstract="true"
  53392. static="false" final="false" visibility="public"
  53393. deprecated="not deprecated">
  53394. <method name="collect"
  53395. abstract="false" native="false" synchronized="false"
  53396. static="false" final="false" visibility="public"
  53397. deprecated="not deprecated">
  53398. <param name="key" type="java.lang.Object"/>
  53399. <param name="value" type="java.lang.Object"/>
  53400. <exception name="IOException" type="java.io.IOException"/>
  53401. <doc>
  53402. <![CDATA[Adds a key/value pair to the output.
  53403. @param key the key to collect.
  53404. @param value to value to collect.
  53405. @throws IOException]]>
  53406. </doc>
  53407. </method>
  53408. <doc>
  53409. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  53410. and {@link Reducer}s.
  53411. <p><code>OutputCollector</code> is the generalization of the facility
  53412. provided by the Map-Reduce framework to collect data output by either the
  53413. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  53414. or the output of the job.</p>]]>
  53415. </doc>
  53416. </interface>
  53417. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  53418. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  53419. <class name="OutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  53420. abstract="true"
  53421. static="false" final="false" visibility="public"
  53422. deprecated="not deprecated">
  53423. <constructor name="OutputCommitter"
  53424. static="false" final="false" visibility="public"
  53425. deprecated="not deprecated">
  53426. </constructor>
  53427. <method name="setupJob"
  53428. abstract="true" native="false" synchronized="false"
  53429. static="false" final="false" visibility="public"
  53430. deprecated="not deprecated">
  53431. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53432. <exception name="IOException" type="java.io.IOException"/>
  53433. <doc>
  53434. <![CDATA[For the framework to setup the job output during initialization
  53435. @param jobContext Context of the job whose output is being written.
  53436. @throws IOException if temporary output could not be created]]>
  53437. </doc>
  53438. </method>
  53439. <method name="cleanupJob"
  53440. abstract="false" native="false" synchronized="false"
  53441. static="false" final="false" visibility="public"
  53442. deprecated="use {@link #commitJob(JobContext)} or
  53443. {@link #abortJob(JobContext, int)} instead">
  53444. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53445. <exception name="IOException" type="java.io.IOException"/>
  53446. <doc>
  53447. <![CDATA[For cleaning up the job's output after job completion
  53448. @deprecated use {@link #commitJob(JobContext)} or
  53449. {@link #abortJob(JobContext, int)} instead]]>
  53450. </doc>
  53451. </method>
  53452. <method name="commitJob"
  53453. abstract="false" native="false" synchronized="false"
  53454. static="false" final="false" visibility="public"
  53455. deprecated="not deprecated">
  53456. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53457. <exception name="IOException" type="java.io.IOException"/>
  53458. <doc>
  53459. <![CDATA[For committing job's output after successful job completion. Note that this
  53460. is invoked for jobs with final run state as {@link JobStatus#SUCCEEDED}.
  53461. @param jobContext Context of the job whose output is being written.
  53462. @throws IOException]]>
  53463. </doc>
  53464. </method>
  53465. <method name="abortJob"
  53466. abstract="false" native="false" synchronized="false"
  53467. static="false" final="false" visibility="public"
  53468. deprecated="not deprecated">
  53469. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  53470. <param name="status" type="int"/>
  53471. <exception name="IOException" type="java.io.IOException"/>
  53472. <doc>
  53473. <![CDATA[For cleaning up the job's output after job failure.
  53474. @param jobContext Context of the job whose output is being written.
  53475. @param status Final run state of the job, should be
  53476. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}
  53477. @throws IOException]]>
  53478. </doc>
  53479. </method>
  53480. <method name="setupTask"
  53481. abstract="true" native="false" synchronized="false"
  53482. static="false" final="false" visibility="public"
  53483. deprecated="not deprecated">
  53484. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53485. <exception name="IOException" type="java.io.IOException"/>
  53486. <doc>
  53487. <![CDATA[Sets up output for the task.
  53488. @param taskContext Context of the task whose output is being written.
  53489. @throws IOException]]>
  53490. </doc>
  53491. </method>
  53492. <method name="needsTaskCommit" return="boolean"
  53493. abstract="true" native="false" synchronized="false"
  53494. static="false" final="false" visibility="public"
  53495. deprecated="not deprecated">
  53496. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53497. <exception name="IOException" type="java.io.IOException"/>
  53498. <doc>
  53499. <![CDATA[Check whether task needs a commit
  53500. @param taskContext
  53501. @return true/false
  53502. @throws IOException]]>
  53503. </doc>
  53504. </method>
  53505. <method name="commitTask"
  53506. abstract="true" native="false" synchronized="false"
  53507. static="false" final="false" visibility="public"
  53508. deprecated="not deprecated">
  53509. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53510. <exception name="IOException" type="java.io.IOException"/>
  53511. <doc>
  53512. <![CDATA[To promote the task's temporary output to final output location
  53513. The task's output is moved to the job's output directory.
  53514. @param taskContext Context of the task whose output is being written.
  53515. @throws IOException if commit is not]]>
  53516. </doc>
  53517. </method>
  53518. <method name="abortTask"
  53519. abstract="true" native="false" synchronized="false"
  53520. static="false" final="false" visibility="public"
  53521. deprecated="not deprecated">
  53522. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  53523. <exception name="IOException" type="java.io.IOException"/>
  53524. <doc>
  53525. <![CDATA[Discard the task output
  53526. @param taskContext
  53527. @throws IOException]]>
  53528. </doc>
  53529. </method>
  53530. <method name="setupJob"
  53531. abstract="false" native="false" synchronized="false"
  53532. static="false" final="true" visibility="public"
  53533. deprecated="not deprecated">
  53534. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  53535. <exception name="IOException" type="java.io.IOException"/>
  53536. <doc>
  53537. <![CDATA[This method implements the new interface by calling the old method. Note
  53538. that the input types are different between the new and old apis and this
  53539. is a bridge between the two.]]>
  53540. </doc>
  53541. </method>
  53542. <method name="cleanupJob"
  53543. abstract="false" native="false" synchronized="false"
  53544. static="false" final="true" visibility="public"
  53545. deprecated="not deprecated">
  53546. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  53547. <exception name="IOException" type="java.io.IOException"/>
  53548. <doc>
  53549. <![CDATA[This method implements the new interface by calling the old method. Note
  53550. that the input types are different between the new and old apis and this
  53551. is a bridge between the two.]]>
  53552. </doc>
  53553. </method>
  53554. <method name="commitJob"
  53555. abstract="false" native="false" synchronized="false"
  53556. static="false" final="true" visibility="public"
  53557. deprecated="not deprecated">
  53558. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  53559. <exception name="IOException" type="java.io.IOException"/>
  53560. <doc>
  53561. <![CDATA[This method implements the new interface by calling the old method. Note
  53562. that the input types are different between the new and old apis and this
  53563. is a bridge between the two.]]>
  53564. </doc>
  53565. </method>
  53566. <method name="abortJob"
  53567. abstract="false" native="false" synchronized="false"
  53568. static="false" final="true" visibility="public"
  53569. deprecated="not deprecated">
  53570. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  53571. <param name="runState" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  53572. <exception name="IOException" type="java.io.IOException"/>
  53573. <doc>
  53574. <![CDATA[This method implements the new interface by calling the old method. Note
  53575. that the input types are different between the new and old apis and this
  53576. is a bridge between the two.]]>
  53577. </doc>
  53578. </method>
  53579. <method name="setupTask"
  53580. abstract="false" native="false" synchronized="false"
  53581. static="false" final="true" visibility="public"
  53582. deprecated="not deprecated">
  53583. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53584. <exception name="IOException" type="java.io.IOException"/>
  53585. <doc>
  53586. <![CDATA[This method implements the new interface by calling the old method. Note
  53587. that the input types are different between the new and old apis and this
  53588. is a bridge between the two.]]>
  53589. </doc>
  53590. </method>
  53591. <method name="needsTaskCommit" return="boolean"
  53592. abstract="false" native="false" synchronized="false"
  53593. static="false" final="true" visibility="public"
  53594. deprecated="not deprecated">
  53595. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53596. <exception name="IOException" type="java.io.IOException"/>
  53597. <doc>
  53598. <![CDATA[This method implements the new interface by calling the old method. Note
  53599. that the input types are different between the new and old apis and this
  53600. is a bridge between the two.]]>
  53601. </doc>
  53602. </method>
  53603. <method name="commitTask"
  53604. abstract="false" native="false" synchronized="false"
  53605. static="false" final="true" visibility="public"
  53606. deprecated="not deprecated">
  53607. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53608. <exception name="IOException" type="java.io.IOException"/>
  53609. <doc>
  53610. <![CDATA[This method implements the new interface by calling the old method. Note
  53611. that the input types are different between the new and old apis and this
  53612. is a bridge between the two.]]>
  53613. </doc>
  53614. </method>
  53615. <method name="abortTask"
  53616. abstract="false" native="false" synchronized="false"
  53617. static="false" final="true" visibility="public"
  53618. deprecated="not deprecated">
  53619. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  53620. <exception name="IOException" type="java.io.IOException"/>
  53621. <doc>
  53622. <![CDATA[This method implements the new interface by calling the old method. Note
  53623. that the input types are different between the new and old apis and this
  53624. is a bridge between the two.]]>
  53625. </doc>
  53626. </method>
  53627. <doc>
  53628. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  53629. Map-Reduce job.
  53630. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  53631. the job to:<p>
  53632. <ol>
  53633. <li>
  53634. Setup the job during initialization. For example, create the temporary
  53635. output directory for the job during the initialization of the job.
  53636. </li>
  53637. <li>
  53638. Cleanup the job after the job completion. For example, remove the
  53639. temporary output directory after the job completion.
  53640. </li>
  53641. <li>
  53642. Setup the task temporary output.
  53643. </li>
  53644. <li>
  53645. Check whether a task needs a commit. This is to avoid the commit
  53646. procedure if a task does not need commit.
  53647. </li>
  53648. <li>
  53649. Commit of the task output.
  53650. </li>
  53651. <li>
  53652. Discard the task commit.
  53653. </li>
  53654. </ol>
  53655. @see FileOutputCommitter
  53656. @see JobContext
  53657. @see TaskAttemptContext]]>
  53658. </doc>
  53659. </class>
  53660. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  53661. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  53662. <interface name="OutputFormat" abstract="true"
  53663. static="false" final="false" visibility="public"
  53664. deprecated="not deprecated">
  53665. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  53666. abstract="false" native="false" synchronized="false"
  53667. static="false" final="false" visibility="public"
  53668. deprecated="not deprecated">
  53669. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53670. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53671. <param name="name" type="java.lang.String"/>
  53672. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  53673. <exception name="IOException" type="java.io.IOException"/>
  53674. <doc>
  53675. <![CDATA[Get the {@link RecordWriter} for the given job.
  53676. @param ignored
  53677. @param job configuration for the job whose output is being written.
  53678. @param name the unique name for this part of the output.
  53679. @param progress mechanism for reporting progress while writing to file.
  53680. @return a {@link RecordWriter} to write the output for the job.
  53681. @throws IOException]]>
  53682. </doc>
  53683. </method>
  53684. <method name="checkOutputSpecs"
  53685. abstract="false" native="false" synchronized="false"
  53686. static="false" final="false" visibility="public"
  53687. deprecated="not deprecated">
  53688. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53689. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53690. <exception name="IOException" type="java.io.IOException"/>
  53691. <doc>
  53692. <![CDATA[Check for validity of the output-specification for the job.
  53693. <p>This is to validate the output specification for the job when it is
  53694. a job is submitted. Typically checks that it does not already exist,
  53695. throwing an exception when it already exists, so that output is not
  53696. overwritten.</p>
  53697. @param ignored
  53698. @param job job configuration.
  53699. @throws IOException when output should not be attempted]]>
  53700. </doc>
  53701. </method>
  53702. <doc>
  53703. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  53704. Map-Reduce job.
  53705. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  53706. job to:<p>
  53707. <ol>
  53708. <li>
  53709. Validate the output-specification of the job. For e.g. check that the
  53710. output directory doesn't already exist.
  53711. <li>
  53712. Provide the {@link RecordWriter} implementation to be used to write out
  53713. the output files of the job. Output files are stored in a
  53714. {@link FileSystem}.
  53715. </li>
  53716. </ol>
  53717. @see RecordWriter
  53718. @see JobConf]]>
  53719. </doc>
  53720. </interface>
  53721. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  53722. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  53723. <class name="OutputLogFilter" extends="java.lang.Object"
  53724. abstract="false"
  53725. static="false" final="false" visibility="public"
  53726. deprecated="Use
  53727. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  53728. instead.">
  53729. <implements name="org.apache.hadoop.fs.PathFilter"/>
  53730. <constructor name="OutputLogFilter"
  53731. static="false" final="false" visibility="public"
  53732. deprecated="not deprecated">
  53733. </constructor>
  53734. <method name="accept" return="boolean"
  53735. abstract="false" native="false" synchronized="false"
  53736. static="false" final="false" visibility="public"
  53737. deprecated="not deprecated">
  53738. <param name="path" type="org.apache.hadoop.fs.Path"/>
  53739. </method>
  53740. <doc>
  53741. <![CDATA[This class filters log files from directory given
  53742. It doesnt accept paths having _logs.
  53743. This can be used to list paths of output directory as follows:
  53744. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  53745. new OutputLogFilter()));
  53746. @deprecated Use
  53747. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  53748. instead.]]>
  53749. </doc>
  53750. </class>
  53751. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  53752. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  53753. <interface name="Partitioner" abstract="true"
  53754. static="false" final="false" visibility="public"
  53755. deprecated="not deprecated">
  53756. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53757. <method name="getPartition" return="int"
  53758. abstract="false" native="false" synchronized="false"
  53759. static="false" final="false" visibility="public"
  53760. deprecated="not deprecated">
  53761. <param name="key" type="java.lang.Object"/>
  53762. <param name="value" type="java.lang.Object"/>
  53763. <param name="numPartitions" type="int"/>
  53764. <doc>
  53765. <![CDATA[Get the paritition number for a given key (hence record) given the total
  53766. number of partitions i.e. number of reduce-tasks for the job.
  53767. <p>Typically a hash function on a all or a subset of the key.</p>
  53768. @param key the key to be paritioned.
  53769. @param value the entry value.
  53770. @param numPartitions the total number of partitions.
  53771. @return the partition number for the <code>key</code>.]]>
  53772. </doc>
  53773. </method>
  53774. <doc>
  53775. <![CDATA[Partitions the key space.
  53776. <p><code>Partitioner</code> controls the partitioning of the keys of the
  53777. intermediate map-outputs. The key (or a subset of the key) is used to derive
  53778. the partition, typically by a hash function. The total number of partitions
  53779. is the same as the number of reduce tasks for the job. Hence this controls
  53780. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  53781. record) is sent for reduction.</p>
  53782. @see Reducer]]>
  53783. </doc>
  53784. </interface>
  53785. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  53786. <!-- start class org.apache.hadoop.mapred.QueueAclsInfo -->
  53787. <class name="QueueAclsInfo" extends="java.lang.Object"
  53788. abstract="false"
  53789. static="false" final="false" visibility="public"
  53790. deprecated="not deprecated">
  53791. <implements name="org.apache.hadoop.io.Writable"/>
  53792. <constructor name="QueueAclsInfo"
  53793. static="false" final="false" visibility="public"
  53794. deprecated="not deprecated">
  53795. <doc>
  53796. <![CDATA[Default constructor for QueueAclsInfo.]]>
  53797. </doc>
  53798. </constructor>
  53799. <constructor name="QueueAclsInfo" type="java.lang.String, java.lang.String[]"
  53800. static="false" final="false" visibility="public"
  53801. deprecated="not deprecated">
  53802. <doc>
  53803. <![CDATA[Construct a new QueueAclsInfo object using the queue name and the
  53804. queue operations array
  53805. @param queueName Name of the job queue
  53806. @param operations queue operations]]>
  53807. </doc>
  53808. </constructor>
  53809. <method name="getQueueName" return="java.lang.String"
  53810. abstract="false" native="false" synchronized="false"
  53811. static="false" final="false" visibility="public"
  53812. deprecated="not deprecated">
  53813. </method>
  53814. <method name="setQueueName"
  53815. abstract="false" native="false" synchronized="false"
  53816. static="false" final="false" visibility="protected"
  53817. deprecated="not deprecated">
  53818. <param name="queueName" type="java.lang.String"/>
  53819. </method>
  53820. <method name="getOperations" return="java.lang.String[]"
  53821. abstract="false" native="false" synchronized="false"
  53822. static="false" final="false" visibility="public"
  53823. deprecated="not deprecated">
  53824. </method>
  53825. <method name="readFields"
  53826. abstract="false" native="false" synchronized="false"
  53827. static="false" final="false" visibility="public"
  53828. deprecated="not deprecated">
  53829. <param name="in" type="java.io.DataInput"/>
  53830. <exception name="IOException" type="java.io.IOException"/>
  53831. </method>
  53832. <method name="write"
  53833. abstract="false" native="false" synchronized="false"
  53834. static="false" final="false" visibility="public"
  53835. deprecated="not deprecated">
  53836. <param name="out" type="java.io.DataOutput"/>
  53837. <exception name="IOException" type="java.io.IOException"/>
  53838. </method>
  53839. <doc>
  53840. <![CDATA[Class to encapsulate Queue ACLs for a particular
  53841. user.]]>
  53842. </doc>
  53843. </class>
  53844. <!-- end class org.apache.hadoop.mapred.QueueAclsInfo -->
  53845. <!-- start class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  53846. <class name="RawHistoryFileServlet" extends="javax.servlet.http.HttpServlet"
  53847. abstract="false"
  53848. static="false" final="false" visibility="public"
  53849. deprecated="not deprecated">
  53850. <constructor name="RawHistoryFileServlet"
  53851. static="false" final="false" visibility="public"
  53852. deprecated="not deprecated">
  53853. </constructor>
  53854. <method name="init"
  53855. abstract="false" native="false" synchronized="false"
  53856. static="false" final="false" visibility="public"
  53857. deprecated="not deprecated">
  53858. <param name="servletConfig" type="javax.servlet.ServletConfig"/>
  53859. <exception name="ServletException" type="javax.servlet.ServletException"/>
  53860. </method>
  53861. <method name="doGet"
  53862. abstract="false" native="false" synchronized="false"
  53863. static="false" final="false" visibility="protected"
  53864. deprecated="not deprecated">
  53865. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  53866. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  53867. <exception name="ServletException" type="javax.servlet.ServletException"/>
  53868. <exception name="IOException" type="java.io.IOException"/>
  53869. </method>
  53870. </class>
  53871. <!-- end class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  53872. <!-- start interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  53873. <interface name="RawKeyValueIterator" abstract="true"
  53874. static="false" final="false" visibility="public"
  53875. deprecated="not deprecated">
  53876. <method name="getKey" return="org.apache.hadoop.io.DataInputBuffer"
  53877. abstract="false" native="false" synchronized="false"
  53878. static="false" final="false" visibility="public"
  53879. deprecated="not deprecated">
  53880. <exception name="IOException" type="java.io.IOException"/>
  53881. <doc>
  53882. <![CDATA[Gets the current raw key.
  53883. @return Gets the current raw key as a DataInputBuffer
  53884. @throws IOException]]>
  53885. </doc>
  53886. </method>
  53887. <method name="getValue" return="org.apache.hadoop.io.DataInputBuffer"
  53888. abstract="false" native="false" synchronized="false"
  53889. static="false" final="false" visibility="public"
  53890. deprecated="not deprecated">
  53891. <exception name="IOException" type="java.io.IOException"/>
  53892. <doc>
  53893. <![CDATA[Gets the current raw value.
  53894. @return Gets the current raw value as a DataInputBuffer
  53895. @throws IOException]]>
  53896. </doc>
  53897. </method>
  53898. <method name="next" return="boolean"
  53899. abstract="false" native="false" synchronized="false"
  53900. static="false" final="false" visibility="public"
  53901. deprecated="not deprecated">
  53902. <exception name="IOException" type="java.io.IOException"/>
  53903. <doc>
  53904. <![CDATA[Sets up the current key and value (for getKey and getValue).
  53905. @return <code>true</code> if there exists a key/value,
  53906. <code>false</code> otherwise.
  53907. @throws IOException]]>
  53908. </doc>
  53909. </method>
  53910. <method name="close"
  53911. abstract="false" native="false" synchronized="false"
  53912. static="false" final="false" visibility="public"
  53913. deprecated="not deprecated">
  53914. <exception name="IOException" type="java.io.IOException"/>
  53915. <doc>
  53916. <![CDATA[Closes the iterator so that the underlying streams can be closed.
  53917. @throws IOException]]>
  53918. </doc>
  53919. </method>
  53920. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  53921. abstract="false" native="false" synchronized="false"
  53922. static="false" final="false" visibility="public"
  53923. deprecated="not deprecated">
  53924. <doc>
  53925. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  53926. indicating the bytes processed by the iterator so far]]>
  53927. </doc>
  53928. </method>
  53929. <doc>
  53930. <![CDATA[<code>RawKeyValueIterator</code> is an iterator used to iterate over
  53931. the raw keys and values during sort/merge of intermediate data.]]>
  53932. </doc>
  53933. </interface>
  53934. <!-- end interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  53935. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  53936. <interface name="RecordReader" abstract="true"
  53937. static="false" final="false" visibility="public"
  53938. deprecated="not deprecated">
  53939. <method name="next" return="boolean"
  53940. abstract="false" native="false" synchronized="false"
  53941. static="false" final="false" visibility="public"
  53942. deprecated="not deprecated">
  53943. <param name="key" type="java.lang.Object"/>
  53944. <param name="value" type="java.lang.Object"/>
  53945. <exception name="IOException" type="java.io.IOException"/>
  53946. <doc>
  53947. <![CDATA[Reads the next key/value pair from the input for processing.
  53948. @param key the key to read data into
  53949. @param value the value to read data into
  53950. @return true iff a key/value was read, false if at EOF]]>
  53951. </doc>
  53952. </method>
  53953. <method name="createKey" return="java.lang.Object"
  53954. abstract="false" native="false" synchronized="false"
  53955. static="false" final="false" visibility="public"
  53956. deprecated="not deprecated">
  53957. <doc>
  53958. <![CDATA[Create an object of the appropriate type to be used as a key.
  53959. @return a new key object.]]>
  53960. </doc>
  53961. </method>
  53962. <method name="createValue" return="java.lang.Object"
  53963. abstract="false" native="false" synchronized="false"
  53964. static="false" final="false" visibility="public"
  53965. deprecated="not deprecated">
  53966. <doc>
  53967. <![CDATA[Create an object of the appropriate type to be used as a value.
  53968. @return a new value object.]]>
  53969. </doc>
  53970. </method>
  53971. <method name="getPos" return="long"
  53972. abstract="false" native="false" synchronized="false"
  53973. static="false" final="false" visibility="public"
  53974. deprecated="not deprecated">
  53975. <exception name="IOException" type="java.io.IOException"/>
  53976. <doc>
  53977. <![CDATA[Returns the current position in the input.
  53978. @return the current position in the input.
  53979. @throws IOException]]>
  53980. </doc>
  53981. </method>
  53982. <method name="close"
  53983. abstract="false" native="false" synchronized="false"
  53984. static="false" final="false" visibility="public"
  53985. deprecated="not deprecated">
  53986. <exception name="IOException" type="java.io.IOException"/>
  53987. <doc>
  53988. <![CDATA[Close this {@link InputSplit} to future operations.
  53989. @throws IOException]]>
  53990. </doc>
  53991. </method>
  53992. <method name="getProgress" return="float"
  53993. abstract="false" native="false" synchronized="false"
  53994. static="false" final="false" visibility="public"
  53995. deprecated="not deprecated">
  53996. <exception name="IOException" type="java.io.IOException"/>
  53997. <doc>
  53998. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  53999. has been processed by?
  54000. @return progress from <code>0.0</code> to <code>1.0</code>.
  54001. @throws IOException]]>
  54002. </doc>
  54003. </method>
  54004. <doc>
  54005. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  54006. {@link InputSplit}.
  54007. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  54008. the input, provided by the <code>InputSplit</code>, and presents a
  54009. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  54010. processing. It thus assumes the responsibility of processing record
  54011. boundaries and presenting the tasks with keys and values.</p>
  54012. @see InputSplit
  54013. @see InputFormat]]>
  54014. </doc>
  54015. </interface>
  54016. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  54017. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  54018. <interface name="RecordWriter" abstract="true"
  54019. static="false" final="false" visibility="public"
  54020. deprecated="not deprecated">
  54021. <method name="write"
  54022. abstract="false" native="false" synchronized="false"
  54023. static="false" final="false" visibility="public"
  54024. deprecated="not deprecated">
  54025. <param name="key" type="java.lang.Object"/>
  54026. <param name="value" type="java.lang.Object"/>
  54027. <exception name="IOException" type="java.io.IOException"/>
  54028. <doc>
  54029. <![CDATA[Writes a key/value pair.
  54030. @param key the key to write.
  54031. @param value the value to write.
  54032. @throws IOException]]>
  54033. </doc>
  54034. </method>
  54035. <method name="close"
  54036. abstract="false" native="false" synchronized="false"
  54037. static="false" final="false" visibility="public"
  54038. deprecated="not deprecated">
  54039. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54040. <exception name="IOException" type="java.io.IOException"/>
  54041. <doc>
  54042. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  54043. @param reporter facility to report progress.
  54044. @throws IOException]]>
  54045. </doc>
  54046. </method>
  54047. <doc>
  54048. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  54049. to an output file.
  54050. <p><code>RecordWriter</code> implementations write the job outputs to the
  54051. {@link FileSystem}.
  54052. @see OutputFormat]]>
  54053. </doc>
  54054. </interface>
  54055. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  54056. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  54057. <interface name="Reducer" abstract="true"
  54058. static="false" final="false" visibility="public"
  54059. deprecated="not deprecated">
  54060. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  54061. <implements name="org.apache.hadoop.io.Closeable"/>
  54062. <method name="reduce"
  54063. abstract="false" native="false" synchronized="false"
  54064. static="false" final="false" visibility="public"
  54065. deprecated="not deprecated">
  54066. <param name="key" type="java.lang.Object"/>
  54067. <param name="values" type="java.util.Iterator"/>
  54068. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  54069. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54070. <exception name="IOException" type="java.io.IOException"/>
  54071. <doc>
  54072. <![CDATA[<i>Reduces</i> values for a given key.
  54073. <p>The framework calls this method for each
  54074. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  54075. Output values must be of the same type as input values. Input keys must
  54076. not be altered. The framework will <b>reuse</b> the key and value objects
  54077. that are passed into the reduce, therefore the application should clone
  54078. the objects they want to keep a copy of. In many cases, all values are
  54079. combined into zero or one value.
  54080. </p>
  54081. <p>Output pairs are collected with calls to
  54082. {@link OutputCollector#collect(Object,Object)}.</p>
  54083. <p>Applications can use the {@link Reporter} provided to report progress
  54084. or just indicate that they are alive. In scenarios where the application
  54085. takes an insignificant amount of time to process individual key/value
  54086. pairs, this is crucial since the framework might assume that the task has
  54087. timed-out and kill that task. The other way of avoiding this is to set
  54088. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  54089. mapred.task.timeout</a> to a high-enough value (or even zero for no
  54090. time-outs).</p>
  54091. @param key the key.
  54092. @param values the list of values to reduce.
  54093. @param output to collect keys and combined values.
  54094. @param reporter facility to report progress.]]>
  54095. </doc>
  54096. </method>
  54097. <doc>
  54098. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  54099. values.
  54100. <p>The number of <code>Reducer</code>s for the job is set by the user via
  54101. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  54102. can access the {@link JobConf} for the job via the
  54103. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  54104. Similarly they can use the {@link Closeable#close()} method for
  54105. de-initialization.</p>
  54106. <p><code>Reducer</code> has 3 primary phases:</p>
  54107. <ol>
  54108. <li>
  54109. <h4 id="Shuffle">Shuffle</h4>
  54110. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  54111. In the phase the framework, for each <code>Reducer</code>, fetches the
  54112. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  54113. </p>
  54114. </li>
  54115. <li>
  54116. <h4 id="Sort">Sort</h4>
  54117. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  54118. (since different <code>Mapper</code>s may have output the same key) in this
  54119. stage.</p>
  54120. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  54121. being fetched they are merged.</p>
  54122. <h5 id="SecondarySort">SecondarySort</h5>
  54123. <p>If equivalence rules for keys while grouping the intermediates are
  54124. different from those for grouping keys before reduction, then one may
  54125. specify a <code>Comparator</code> via
  54126. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  54127. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  54128. control how intermediate keys are grouped, these can be used in conjunction
  54129. to simulate <i>secondary sort on values</i>.</p>
  54130. For example, say that you want to find duplicate web pages and tag them
  54131. all with the url of the "best" known example. You would set up the job
  54132. like:
  54133. <ul>
  54134. <li>Map Input Key: url</li>
  54135. <li>Map Input Value: document</li>
  54136. <li>Map Output Key: document checksum, url pagerank</li>
  54137. <li>Map Output Value: url</li>
  54138. <li>Partitioner: by checksum</li>
  54139. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  54140. <li>OutputValueGroupingComparator: by checksum</li>
  54141. </ul>
  54142. </li>
  54143. <li>
  54144. <h4 id="Reduce">Reduce</h4>
  54145. <p>In this phase the
  54146. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  54147. method is called for each <code>&lt;key, (list of values)></code> pair in
  54148. the grouped inputs.</p>
  54149. <p>The output of the reduce task is typically written to the
  54150. {@link FileSystem} via
  54151. {@link OutputCollector#collect(Object, Object)}.</p>
  54152. </li>
  54153. </ol>
  54154. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  54155. <p>Example:</p>
  54156. <p><blockquote><pre>
  54157. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  54158. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  54159. static enum MyCounters { NUM_RECORDS }
  54160. private String reduceTaskId;
  54161. private int noKeys = 0;
  54162. public void configure(JobConf job) {
  54163. reduceTaskId = job.get("mapred.task.id");
  54164. }
  54165. public void reduce(K key, Iterator&lt;V&gt; values,
  54166. OutputCollector&lt;K, V&gt; output,
  54167. Reporter reporter)
  54168. throws IOException {
  54169. // Process
  54170. int noValues = 0;
  54171. while (values.hasNext()) {
  54172. V value = values.next();
  54173. // Increment the no. of values for this key
  54174. ++noValues;
  54175. // Process the &lt;key, value&gt; pair (assume this takes a while)
  54176. // ...
  54177. // ...
  54178. // Let the framework know that we are alive, and kicking!
  54179. if ((noValues%10) == 0) {
  54180. reporter.progress();
  54181. }
  54182. // Process some more
  54183. // ...
  54184. // ...
  54185. // Output the &lt;key, value&gt;
  54186. output.collect(key, value);
  54187. }
  54188. // Increment the no. of &lt;key, list of values&gt; pairs processed
  54189. ++noKeys;
  54190. // Increment counters
  54191. reporter.incrCounter(NUM_RECORDS, 1);
  54192. // Every 100 keys update application-level status
  54193. if ((noKeys%100) == 0) {
  54194. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  54195. }
  54196. }
  54197. }
  54198. </pre></blockquote></p>
  54199. @see Mapper
  54200. @see Partitioner
  54201. @see Reporter
  54202. @see MapReduceBase]]>
  54203. </doc>
  54204. </interface>
  54205. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  54206. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  54207. <interface name="Reporter" abstract="true"
  54208. static="false" final="false" visibility="public"
  54209. deprecated="not deprecated">
  54210. <implements name="org.apache.hadoop.util.Progressable"/>
  54211. <method name="setStatus"
  54212. abstract="false" native="false" synchronized="false"
  54213. static="false" final="false" visibility="public"
  54214. deprecated="not deprecated">
  54215. <param name="status" type="java.lang.String"/>
  54216. <doc>
  54217. <![CDATA[Set the status description for the task.
  54218. @param status brief description of the current status.]]>
  54219. </doc>
  54220. </method>
  54221. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54222. abstract="false" native="false" synchronized="false"
  54223. static="false" final="false" visibility="public"
  54224. deprecated="not deprecated">
  54225. <param name="name" type="java.lang.Enum"/>
  54226. <doc>
  54227. <![CDATA[Get the {@link Counter} of the given group with the given name.
  54228. @param name counter name
  54229. @return the <code>Counter</code> of the given group/name.]]>
  54230. </doc>
  54231. </method>
  54232. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54233. abstract="false" native="false" synchronized="false"
  54234. static="false" final="false" visibility="public"
  54235. deprecated="not deprecated">
  54236. <param name="group" type="java.lang.String"/>
  54237. <param name="name" type="java.lang.String"/>
  54238. <doc>
  54239. <![CDATA[Get the {@link Counter} of the given group with the given name.
  54240. @param group counter group
  54241. @param name counter name
  54242. @return the <code>Counter</code> of the given group/name.]]>
  54243. </doc>
  54244. </method>
  54245. <method name="incrCounter"
  54246. abstract="false" native="false" synchronized="false"
  54247. static="false" final="false" visibility="public"
  54248. deprecated="not deprecated">
  54249. <param name="key" type="java.lang.Enum"/>
  54250. <param name="amount" type="long"/>
  54251. <doc>
  54252. <![CDATA[Increments the counter identified by the key, which can be of
  54253. any {@link Enum} type, by the specified amount.
  54254. @param key key to identify the counter to be incremented. The key can be
  54255. be any <code>Enum</code>.
  54256. @param amount A non-negative amount by which the counter is to
  54257. be incremented.]]>
  54258. </doc>
  54259. </method>
  54260. <method name="incrCounter"
  54261. abstract="false" native="false" synchronized="false"
  54262. static="false" final="false" visibility="public"
  54263. deprecated="not deprecated">
  54264. <param name="group" type="java.lang.String"/>
  54265. <param name="counter" type="java.lang.String"/>
  54266. <param name="amount" type="long"/>
  54267. <doc>
  54268. <![CDATA[Increments the counter identified by the group and counter name
  54269. by the specified amount.
  54270. @param group name to identify the group of the counter to be incremented.
  54271. @param counter name to identify the counter within the group.
  54272. @param amount A non-negative amount by which the counter is to
  54273. be incremented.]]>
  54274. </doc>
  54275. </method>
  54276. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  54277. abstract="false" native="false" synchronized="false"
  54278. static="false" final="false" visibility="public"
  54279. deprecated="not deprecated">
  54280. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  54281. <doc>
  54282. <![CDATA[Get the {@link InputSplit} object for a map.
  54283. @return the <code>InputSplit</code> that the map is reading from.
  54284. @throws UnsupportedOperationException if called outside a mapper]]>
  54285. </doc>
  54286. </method>
  54287. <method name="getProgress" return="float"
  54288. abstract="false" native="false" synchronized="false"
  54289. static="false" final="false" visibility="public"
  54290. deprecated="not deprecated">
  54291. <doc>
  54292. <![CDATA[Get the progress of the task. Progress is represented as a number between
  54293. 0 and 1 (inclusive).]]>
  54294. </doc>
  54295. </method>
  54296. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  54297. transient="false" volatile="false"
  54298. static="true" final="true" visibility="public"
  54299. deprecated="not deprecated">
  54300. <doc>
  54301. <![CDATA[A constant of Reporter type that does nothing.]]>
  54302. </doc>
  54303. </field>
  54304. <doc>
  54305. <![CDATA[A facility for Map-Reduce applications to report progress and update
  54306. counters, status information etc.
  54307. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  54308. provided to report progress or just indicate that they are alive. In
  54309. scenarios where the application takes an insignificant amount of time to
  54310. process individual key/value pairs, this is crucial since the framework
  54311. might assume that the task has timed-out and kill that task.
  54312. <p>Applications can also update {@link Counters} via the provided
  54313. <code>Reporter</code> .</p>
  54314. @see Progressable
  54315. @see Counters]]>
  54316. </doc>
  54317. </interface>
  54318. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  54319. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  54320. <interface name="RunningJob" abstract="true"
  54321. static="false" final="false" visibility="public"
  54322. deprecated="not deprecated">
  54323. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  54324. abstract="false" native="false" synchronized="false"
  54325. static="false" final="false" visibility="public"
  54326. deprecated="not deprecated">
  54327. <doc>
  54328. <![CDATA[Get the job identifier.
  54329. @return the job identifier.]]>
  54330. </doc>
  54331. </method>
  54332. <method name="getJobID" return="java.lang.String"
  54333. abstract="false" native="false" synchronized="false"
  54334. static="false" final="false" visibility="public"
  54335. deprecated="This method is deprecated and will be removed. Applications should
  54336. rather use {@link #getID()}.">
  54337. <doc>
  54338. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  54339. rather use {@link #getID()}.]]>
  54340. </doc>
  54341. </method>
  54342. <method name="getJobName" return="java.lang.String"
  54343. abstract="false" native="false" synchronized="false"
  54344. static="false" final="false" visibility="public"
  54345. deprecated="not deprecated">
  54346. <doc>
  54347. <![CDATA[Get the name of the job.
  54348. @return the name of the job.]]>
  54349. </doc>
  54350. </method>
  54351. <method name="getJobFile" return="java.lang.String"
  54352. abstract="false" native="false" synchronized="false"
  54353. static="false" final="false" visibility="public"
  54354. deprecated="not deprecated">
  54355. <doc>
  54356. <![CDATA[Get the path of the submitted job configuration.
  54357. @return the path of the submitted job configuration.]]>
  54358. </doc>
  54359. </method>
  54360. <method name="getTrackingURL" return="java.lang.String"
  54361. abstract="false" native="false" synchronized="false"
  54362. static="false" final="false" visibility="public"
  54363. deprecated="not deprecated">
  54364. <doc>
  54365. <![CDATA[Get the URL where some job progress information will be displayed.
  54366. @return the URL where some job progress information will be displayed.]]>
  54367. </doc>
  54368. </method>
  54369. <method name="mapProgress" return="float"
  54370. abstract="false" native="false" synchronized="false"
  54371. static="false" final="false" visibility="public"
  54372. deprecated="not deprecated">
  54373. <exception name="IOException" type="java.io.IOException"/>
  54374. <doc>
  54375. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  54376. and 1.0. When all map tasks have completed, the function returns 1.0.
  54377. @return the progress of the job's map-tasks.
  54378. @throws IOException]]>
  54379. </doc>
  54380. </method>
  54381. <method name="reduceProgress" return="float"
  54382. abstract="false" native="false" synchronized="false"
  54383. static="false" final="false" visibility="public"
  54384. deprecated="not deprecated">
  54385. <exception name="IOException" type="java.io.IOException"/>
  54386. <doc>
  54387. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  54388. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  54389. @return the progress of the job's reduce-tasks.
  54390. @throws IOException]]>
  54391. </doc>
  54392. </method>
  54393. <method name="cleanupProgress" return="float"
  54394. abstract="false" native="false" synchronized="false"
  54395. static="false" final="false" visibility="public"
  54396. deprecated="not deprecated">
  54397. <exception name="IOException" type="java.io.IOException"/>
  54398. <doc>
  54399. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  54400. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  54401. @return the progress of the job's cleanup-tasks.
  54402. @throws IOException]]>
  54403. </doc>
  54404. </method>
  54405. <method name="setupProgress" return="float"
  54406. abstract="false" native="false" synchronized="false"
  54407. static="false" final="false" visibility="public"
  54408. deprecated="not deprecated">
  54409. <exception name="IOException" type="java.io.IOException"/>
  54410. <doc>
  54411. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  54412. and 1.0. When all setup tasks have completed, the function returns 1.0.
  54413. @return the progress of the job's setup-tasks.
  54414. @throws IOException]]>
  54415. </doc>
  54416. </method>
  54417. <method name="isComplete" return="boolean"
  54418. abstract="false" native="false" synchronized="false"
  54419. static="false" final="false" visibility="public"
  54420. deprecated="not deprecated">
  54421. <exception name="IOException" type="java.io.IOException"/>
  54422. <doc>
  54423. <![CDATA[Check if the job is finished or not.
  54424. This is a non-blocking call.
  54425. @return <code>true</code> if the job is complete, else <code>false</code>.
  54426. @throws IOException]]>
  54427. </doc>
  54428. </method>
  54429. <method name="isSuccessful" return="boolean"
  54430. abstract="false" native="false" synchronized="false"
  54431. static="false" final="false" visibility="public"
  54432. deprecated="not deprecated">
  54433. <exception name="IOException" type="java.io.IOException"/>
  54434. <doc>
  54435. <![CDATA[Check if the job completed successfully.
  54436. @return <code>true</code> if the job succeeded, else <code>false</code>.
  54437. @throws IOException]]>
  54438. </doc>
  54439. </method>
  54440. <method name="waitForCompletion"
  54441. abstract="false" native="false" synchronized="false"
  54442. static="false" final="false" visibility="public"
  54443. deprecated="not deprecated">
  54444. <exception name="IOException" type="java.io.IOException"/>
  54445. <doc>
  54446. <![CDATA[Blocks until the job is complete.
  54447. @throws IOException]]>
  54448. </doc>
  54449. </method>
  54450. <method name="getJobState" return="int"
  54451. abstract="false" native="false" synchronized="false"
  54452. static="false" final="false" visibility="public"
  54453. deprecated="not deprecated">
  54454. <exception name="IOException" type="java.io.IOException"/>
  54455. <doc>
  54456. <![CDATA[Returns the current state of the Job.
  54457. {@link JobStatus}
  54458. @throws IOException]]>
  54459. </doc>
  54460. </method>
  54461. <method name="killJob"
  54462. abstract="false" native="false" synchronized="false"
  54463. static="false" final="false" visibility="public"
  54464. deprecated="not deprecated">
  54465. <exception name="IOException" type="java.io.IOException"/>
  54466. <doc>
  54467. <![CDATA[Kill the running job. Blocks until all job tasks have been
  54468. killed as well. If the job is no longer running, it simply returns.
  54469. @throws IOException]]>
  54470. </doc>
  54471. </method>
  54472. <method name="setJobPriority"
  54473. abstract="false" native="false" synchronized="false"
  54474. static="false" final="false" visibility="public"
  54475. deprecated="not deprecated">
  54476. <param name="priority" type="java.lang.String"/>
  54477. <exception name="IOException" type="java.io.IOException"/>
  54478. <doc>
  54479. <![CDATA[Set the priority of a running job.
  54480. @param priority the new priority for the job.
  54481. @throws IOException]]>
  54482. </doc>
  54483. </method>
  54484. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  54485. abstract="false" native="false" synchronized="false"
  54486. static="false" final="false" visibility="public"
  54487. deprecated="not deprecated">
  54488. <param name="startFrom" type="int"/>
  54489. <exception name="IOException" type="java.io.IOException"/>
  54490. <doc>
  54491. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  54492. @param startFrom index to start fetching events from
  54493. @return an array of {@link TaskCompletionEvent}s
  54494. @throws IOException]]>
  54495. </doc>
  54496. </method>
  54497. <method name="killTask"
  54498. abstract="false" native="false" synchronized="false"
  54499. static="false" final="false" visibility="public"
  54500. deprecated="not deprecated">
  54501. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54502. <param name="shouldFail" type="boolean"/>
  54503. <exception name="IOException" type="java.io.IOException"/>
  54504. <doc>
  54505. <![CDATA[Kill indicated task attempt.
  54506. @param taskId the id of the task to be terminated.
  54507. @param shouldFail if true the task is failed and added to failed tasks
  54508. list, otherwise it is just killed, w/o affecting
  54509. job failure status.
  54510. @throws IOException]]>
  54511. </doc>
  54512. </method>
  54513. <method name="killTask"
  54514. abstract="false" native="false" synchronized="false"
  54515. static="false" final="false" visibility="public"
  54516. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  54517. <param name="taskId" type="java.lang.String"/>
  54518. <param name="shouldFail" type="boolean"/>
  54519. <exception name="IOException" type="java.io.IOException"/>
  54520. <doc>
  54521. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  54522. </doc>
  54523. </method>
  54524. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  54525. abstract="false" native="false" synchronized="false"
  54526. static="false" final="false" visibility="public"
  54527. deprecated="not deprecated">
  54528. <exception name="IOException" type="java.io.IOException"/>
  54529. <doc>
  54530. <![CDATA[Gets the counters for this job.
  54531. @return the counters for this job.
  54532. @throws IOException]]>
  54533. </doc>
  54534. </method>
  54535. <method name="getFailureInfo" return="java.lang.String"
  54536. abstract="false" native="false" synchronized="false"
  54537. static="false" final="false" visibility="public"
  54538. deprecated="not deprecated">
  54539. <exception name="IOException" type="java.io.IOException"/>
  54540. <doc>
  54541. <![CDATA[Get failure info for the job.
  54542. @return the failure info for the job.
  54543. @throws IOException]]>
  54544. </doc>
  54545. </method>
  54546. <method name="getTaskDiagnostics" return="java.lang.String[]"
  54547. abstract="false" native="false" synchronized="false"
  54548. static="false" final="false" visibility="public"
  54549. deprecated="not deprecated">
  54550. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54551. <exception name="IOException" type="java.io.IOException"/>
  54552. <doc>
  54553. <![CDATA[Gets the diagnostic messages for a given task attempt.
  54554. @param taskid
  54555. @return the list of diagnostic messages for the task
  54556. @throws IOException]]>
  54557. </doc>
  54558. </method>
  54559. <doc>
  54560. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  54561. running Map-Reduce job.
  54562. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  54563. and then query the running-job for details such as name, configuration,
  54564. progress etc.</p>
  54565. @see JobClient]]>
  54566. </doc>
  54567. </interface>
  54568. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  54569. <!-- start class org.apache.hadoop.mapred.SafeModeException -->
  54570. <class name="SafeModeException" extends="java.io.IOException"
  54571. abstract="false"
  54572. static="false" final="false" visibility="public"
  54573. deprecated="not deprecated">
  54574. <constructor name="SafeModeException" type="java.lang.String"
  54575. static="false" final="false" visibility="public"
  54576. deprecated="not deprecated">
  54577. <doc>
  54578. <![CDATA[SafeModeException
  54579. @param adminUser admin who put JobTracker in safe-mode,
  54580. <code>null</code> if it was automatic]]>
  54581. </doc>
  54582. </constructor>
  54583. <doc>
  54584. <![CDATA[This exception is thrown when the JobTracker is in safe mode.]]>
  54585. </doc>
  54586. </class>
  54587. <!-- end class org.apache.hadoop.mapred.SafeModeException -->
  54588. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  54589. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  54590. abstract="false"
  54591. static="false" final="false" visibility="public"
  54592. deprecated="not deprecated">
  54593. <constructor name="SequenceFileAsBinaryInputFormat"
  54594. static="false" final="false" visibility="public"
  54595. deprecated="not deprecated">
  54596. </constructor>
  54597. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  54598. abstract="false" native="false" synchronized="false"
  54599. static="false" final="false" visibility="public"
  54600. deprecated="not deprecated">
  54601. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54602. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54603. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54604. <exception name="IOException" type="java.io.IOException"/>
  54605. </method>
  54606. <doc>
  54607. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  54608. format.]]>
  54609. </doc>
  54610. </class>
  54611. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  54612. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  54613. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  54614. abstract="false"
  54615. static="true" final="false" visibility="public"
  54616. deprecated="not deprecated">
  54617. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  54618. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  54619. static="false" final="false" visibility="public"
  54620. deprecated="not deprecated">
  54621. <exception name="IOException" type="java.io.IOException"/>
  54622. </constructor>
  54623. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  54624. abstract="false" native="false" synchronized="false"
  54625. static="false" final="false" visibility="public"
  54626. deprecated="not deprecated">
  54627. </method>
  54628. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  54629. abstract="false" native="false" synchronized="false"
  54630. static="false" final="false" visibility="public"
  54631. deprecated="not deprecated">
  54632. </method>
  54633. <method name="getKeyClassName" return="java.lang.String"
  54634. abstract="false" native="false" synchronized="false"
  54635. static="false" final="false" visibility="public"
  54636. deprecated="not deprecated">
  54637. <doc>
  54638. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  54639. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  54640. </doc>
  54641. </method>
  54642. <method name="getValueClassName" return="java.lang.String"
  54643. abstract="false" native="false" synchronized="false"
  54644. static="false" final="false" visibility="public"
  54645. deprecated="not deprecated">
  54646. <doc>
  54647. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  54648. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  54649. </doc>
  54650. </method>
  54651. <method name="next" return="boolean"
  54652. abstract="false" native="false" synchronized="true"
  54653. static="false" final="false" visibility="public"
  54654. deprecated="not deprecated">
  54655. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  54656. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  54657. <exception name="IOException" type="java.io.IOException"/>
  54658. <doc>
  54659. <![CDATA[Read raw bytes from a SequenceFile.]]>
  54660. </doc>
  54661. </method>
  54662. <method name="getPos" return="long"
  54663. abstract="false" native="false" synchronized="false"
  54664. static="false" final="false" visibility="public"
  54665. deprecated="not deprecated">
  54666. <exception name="IOException" type="java.io.IOException"/>
  54667. </method>
  54668. <method name="close"
  54669. abstract="false" native="false" synchronized="false"
  54670. static="false" final="false" visibility="public"
  54671. deprecated="not deprecated">
  54672. <exception name="IOException" type="java.io.IOException"/>
  54673. </method>
  54674. <method name="getProgress" return="float"
  54675. abstract="false" native="false" synchronized="false"
  54676. static="false" final="false" visibility="public"
  54677. deprecated="not deprecated">
  54678. <exception name="IOException" type="java.io.IOException"/>
  54679. <doc>
  54680. <![CDATA[Return the progress within the input split
  54681. @return 0.0 to 1.0 of the input byte range]]>
  54682. </doc>
  54683. </method>
  54684. <doc>
  54685. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  54686. </doc>
  54687. </class>
  54688. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  54689. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  54690. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat"
  54691. abstract="false"
  54692. static="false" final="false" visibility="public"
  54693. deprecated="not deprecated">
  54694. <constructor name="SequenceFileAsBinaryOutputFormat"
  54695. static="false" final="false" visibility="public"
  54696. deprecated="not deprecated">
  54697. </constructor>
  54698. <method name="setSequenceFileOutputKeyClass"
  54699. abstract="false" native="false" synchronized="false"
  54700. static="true" final="false" visibility="public"
  54701. deprecated="not deprecated">
  54702. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54703. <param name="theClass" type="java.lang.Class"/>
  54704. <doc>
  54705. <![CDATA[Set the key class for the {@link SequenceFile}
  54706. <p>This allows the user to specify the key class to be different
  54707. from the actual class ({@link BytesWritable}) used for writing </p>
  54708. @param conf the {@link JobConf} to modify
  54709. @param theClass the SequenceFile output key class.]]>
  54710. </doc>
  54711. </method>
  54712. <method name="setSequenceFileOutputValueClass"
  54713. abstract="false" native="false" synchronized="false"
  54714. static="true" final="false" visibility="public"
  54715. deprecated="not deprecated">
  54716. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54717. <param name="theClass" type="java.lang.Class"/>
  54718. <doc>
  54719. <![CDATA[Set the value class for the {@link SequenceFile}
  54720. <p>This allows the user to specify the value class to be different
  54721. from the actual class ({@link BytesWritable}) used for writing </p>
  54722. @param conf the {@link JobConf} to modify
  54723. @param theClass the SequenceFile output key class.]]>
  54724. </doc>
  54725. </method>
  54726. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  54727. abstract="false" native="false" synchronized="false"
  54728. static="true" final="false" visibility="public"
  54729. deprecated="not deprecated">
  54730. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54731. <doc>
  54732. <![CDATA[Get the key class for the {@link SequenceFile}
  54733. @return the key class of the {@link SequenceFile}]]>
  54734. </doc>
  54735. </method>
  54736. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  54737. abstract="false" native="false" synchronized="false"
  54738. static="true" final="false" visibility="public"
  54739. deprecated="not deprecated">
  54740. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54741. <doc>
  54742. <![CDATA[Get the value class for the {@link SequenceFile}
  54743. @return the value class of the {@link SequenceFile}]]>
  54744. </doc>
  54745. </method>
  54746. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  54747. abstract="false" native="false" synchronized="false"
  54748. static="false" final="false" visibility="public"
  54749. deprecated="not deprecated">
  54750. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54751. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54752. <param name="name" type="java.lang.String"/>
  54753. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  54754. <exception name="IOException" type="java.io.IOException"/>
  54755. </method>
  54756. <method name="checkOutputSpecs"
  54757. abstract="false" native="false" synchronized="false"
  54758. static="false" final="false" visibility="public"
  54759. deprecated="not deprecated">
  54760. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54761. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54762. <exception name="IOException" type="java.io.IOException"/>
  54763. </method>
  54764. <doc>
  54765. <![CDATA[An {@link OutputFormat} that writes keys, values to
  54766. {@link SequenceFile}s in binary(raw) format]]>
  54767. </doc>
  54768. </class>
  54769. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  54770. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  54771. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  54772. abstract="false"
  54773. static="true" final="false" visibility="protected"
  54774. deprecated="not deprecated">
  54775. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  54776. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  54777. static="false" final="false" visibility="public"
  54778. deprecated="not deprecated">
  54779. </constructor>
  54780. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  54781. static="false" final="false" visibility="public"
  54782. deprecated="not deprecated">
  54783. </constructor>
  54784. <method name="reset"
  54785. abstract="false" native="false" synchronized="false"
  54786. static="false" final="false" visibility="public"
  54787. deprecated="not deprecated">
  54788. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  54789. </method>
  54790. <method name="writeUncompressedBytes"
  54791. abstract="false" native="false" synchronized="false"
  54792. static="false" final="false" visibility="public"
  54793. deprecated="not deprecated">
  54794. <param name="outStream" type="java.io.DataOutputStream"/>
  54795. <exception name="IOException" type="java.io.IOException"/>
  54796. </method>
  54797. <method name="writeCompressedBytes"
  54798. abstract="false" native="false" synchronized="false"
  54799. static="false" final="false" visibility="public"
  54800. deprecated="not deprecated">
  54801. <param name="outStream" type="java.io.DataOutputStream"/>
  54802. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  54803. <exception name="IOException" type="java.io.IOException"/>
  54804. </method>
  54805. <method name="getSize" return="int"
  54806. abstract="false" native="false" synchronized="false"
  54807. static="false" final="false" visibility="public"
  54808. deprecated="not deprecated">
  54809. </method>
  54810. <doc>
  54811. <![CDATA[Inner class used for appendRaw]]>
  54812. </doc>
  54813. </class>
  54814. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  54815. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  54816. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  54817. abstract="false"
  54818. static="false" final="false" visibility="public"
  54819. deprecated="not deprecated">
  54820. <constructor name="SequenceFileAsTextInputFormat"
  54821. static="false" final="false" visibility="public"
  54822. deprecated="not deprecated">
  54823. </constructor>
  54824. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  54825. abstract="false" native="false" synchronized="false"
  54826. static="false" final="false" visibility="public"
  54827. deprecated="not deprecated">
  54828. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54829. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54830. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54831. <exception name="IOException" type="java.io.IOException"/>
  54832. </method>
  54833. <doc>
  54834. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  54835. which converts the input keys and values to their String forms by calling toString() method.]]>
  54836. </doc>
  54837. </class>
  54838. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  54839. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  54840. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  54841. abstract="false"
  54842. static="false" final="false" visibility="public"
  54843. deprecated="not deprecated">
  54844. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  54845. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  54846. static="false" final="false" visibility="public"
  54847. deprecated="not deprecated">
  54848. <exception name="IOException" type="java.io.IOException"/>
  54849. </constructor>
  54850. <method name="createKey" return="org.apache.hadoop.io.Text"
  54851. abstract="false" native="false" synchronized="false"
  54852. static="false" final="false" visibility="public"
  54853. deprecated="not deprecated">
  54854. </method>
  54855. <method name="createValue" return="org.apache.hadoop.io.Text"
  54856. abstract="false" native="false" synchronized="false"
  54857. static="false" final="false" visibility="public"
  54858. deprecated="not deprecated">
  54859. </method>
  54860. <method name="next" return="boolean"
  54861. abstract="false" native="false" synchronized="true"
  54862. static="false" final="false" visibility="public"
  54863. deprecated="not deprecated">
  54864. <param name="key" type="org.apache.hadoop.io.Text"/>
  54865. <param name="value" type="org.apache.hadoop.io.Text"/>
  54866. <exception name="IOException" type="java.io.IOException"/>
  54867. <doc>
  54868. <![CDATA[Read key/value pair in a line.]]>
  54869. </doc>
  54870. </method>
  54871. <method name="getProgress" return="float"
  54872. abstract="false" native="false" synchronized="false"
  54873. static="false" final="false" visibility="public"
  54874. deprecated="not deprecated">
  54875. <exception name="IOException" type="java.io.IOException"/>
  54876. </method>
  54877. <method name="getPos" return="long"
  54878. abstract="false" native="false" synchronized="true"
  54879. static="false" final="false" visibility="public"
  54880. deprecated="not deprecated">
  54881. <exception name="IOException" type="java.io.IOException"/>
  54882. </method>
  54883. <method name="close"
  54884. abstract="false" native="false" synchronized="true"
  54885. static="false" final="false" visibility="public"
  54886. deprecated="not deprecated">
  54887. <exception name="IOException" type="java.io.IOException"/>
  54888. </method>
  54889. <doc>
  54890. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  54891. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  54892. class to TextInputFormat class.]]>
  54893. </doc>
  54894. </class>
  54895. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  54896. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  54897. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  54898. abstract="false"
  54899. static="false" final="false" visibility="public"
  54900. deprecated="not deprecated">
  54901. <constructor name="SequenceFileInputFilter"
  54902. static="false" final="false" visibility="public"
  54903. deprecated="not deprecated">
  54904. </constructor>
  54905. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  54906. abstract="false" native="false" synchronized="false"
  54907. static="false" final="false" visibility="public"
  54908. deprecated="not deprecated">
  54909. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54910. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54911. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54912. <exception name="IOException" type="java.io.IOException"/>
  54913. <doc>
  54914. <![CDATA[Create a record reader for the given split
  54915. @param split file split
  54916. @param job job configuration
  54917. @param reporter reporter who sends report to task tracker
  54918. @return RecordReader]]>
  54919. </doc>
  54920. </method>
  54921. <method name="setFilterClass"
  54922. abstract="false" native="false" synchronized="false"
  54923. static="true" final="false" visibility="public"
  54924. deprecated="not deprecated">
  54925. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54926. <param name="filterClass" type="java.lang.Class"/>
  54927. <doc>
  54928. <![CDATA[set the filter class
  54929. @param conf application configuration
  54930. @param filterClass filter class]]>
  54931. </doc>
  54932. </method>
  54933. <doc>
  54934. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  54935. The sample is decided by the filter class set by the job.]]>
  54936. </doc>
  54937. </class>
  54938. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  54939. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  54940. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  54941. static="true" final="false" visibility="public"
  54942. deprecated="not deprecated">
  54943. <implements name="org.apache.hadoop.conf.Configurable"/>
  54944. <method name="accept" return="boolean"
  54945. abstract="false" native="false" synchronized="false"
  54946. static="false" final="false" visibility="public"
  54947. deprecated="not deprecated">
  54948. <param name="key" type="java.lang.Object"/>
  54949. <doc>
  54950. <![CDATA[filter function
  54951. Decide if a record should be filtered or not
  54952. @param key record key
  54953. @return true if a record is accepted; return false otherwise]]>
  54954. </doc>
  54955. </method>
  54956. <doc>
  54957. <![CDATA[filter interface]]>
  54958. </doc>
  54959. </interface>
  54960. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  54961. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  54962. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  54963. abstract="true"
  54964. static="true" final="false" visibility="public"
  54965. deprecated="not deprecated">
  54966. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  54967. <constructor name="SequenceFileInputFilter.FilterBase"
  54968. static="false" final="false" visibility="public"
  54969. deprecated="not deprecated">
  54970. </constructor>
  54971. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  54972. abstract="false" native="false" synchronized="false"
  54973. static="false" final="false" visibility="public"
  54974. deprecated="not deprecated">
  54975. </method>
  54976. <doc>
  54977. <![CDATA[base class for Filters]]>
  54978. </doc>
  54979. </class>
  54980. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  54981. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  54982. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  54983. abstract="false"
  54984. static="true" final="false" visibility="public"
  54985. deprecated="not deprecated">
  54986. <constructor name="SequenceFileInputFilter.MD5Filter"
  54987. static="false" final="false" visibility="public"
  54988. deprecated="not deprecated">
  54989. </constructor>
  54990. <method name="setFrequency"
  54991. abstract="false" native="false" synchronized="false"
  54992. static="true" final="false" visibility="public"
  54993. deprecated="not deprecated">
  54994. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54995. <param name="frequency" type="int"/>
  54996. <doc>
  54997. <![CDATA[set the filtering frequency in configuration
  54998. @param conf configuration
  54999. @param frequency filtering frequency]]>
  55000. </doc>
  55001. </method>
  55002. <method name="setConf"
  55003. abstract="false" native="false" synchronized="false"
  55004. static="false" final="false" visibility="public"
  55005. deprecated="not deprecated">
  55006. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55007. <doc>
  55008. <![CDATA[configure the filter according to configuration
  55009. @param conf configuration]]>
  55010. </doc>
  55011. </method>
  55012. <method name="accept" return="boolean"
  55013. abstract="false" native="false" synchronized="false"
  55014. static="false" final="false" visibility="public"
  55015. deprecated="not deprecated">
  55016. <param name="key" type="java.lang.Object"/>
  55017. <doc>
  55018. <![CDATA[Filtering method
  55019. If MD5(key) % frequency==0, return true; otherwise return false
  55020. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  55021. </doc>
  55022. </method>
  55023. <field name="MD5_LEN" type="int"
  55024. transient="false" volatile="false"
  55025. static="true" final="true" visibility="public"
  55026. deprecated="not deprecated">
  55027. </field>
  55028. <doc>
  55029. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  55030. key against a filtering frequency <i>f</i>. The filtering criteria is
  55031. MD5(key) % f == 0.]]>
  55032. </doc>
  55033. </class>
  55034. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  55035. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  55036. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  55037. abstract="false"
  55038. static="true" final="false" visibility="public"
  55039. deprecated="not deprecated">
  55040. <constructor name="SequenceFileInputFilter.PercentFilter"
  55041. static="false" final="false" visibility="public"
  55042. deprecated="not deprecated">
  55043. </constructor>
  55044. <method name="setFrequency"
  55045. abstract="false" native="false" synchronized="false"
  55046. static="true" final="false" visibility="public"
  55047. deprecated="not deprecated">
  55048. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55049. <param name="frequency" type="int"/>
  55050. <doc>
  55051. <![CDATA[set the frequency and stores it in conf
  55052. @param conf configuration
  55053. @param frequency filtering frequencey]]>
  55054. </doc>
  55055. </method>
  55056. <method name="setConf"
  55057. abstract="false" native="false" synchronized="false"
  55058. static="false" final="false" visibility="public"
  55059. deprecated="not deprecated">
  55060. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55061. <doc>
  55062. <![CDATA[configure the filter by checking the configuration
  55063. @param conf configuration]]>
  55064. </doc>
  55065. </method>
  55066. <method name="accept" return="boolean"
  55067. abstract="false" native="false" synchronized="false"
  55068. static="false" final="false" visibility="public"
  55069. deprecated="not deprecated">
  55070. <param name="key" type="java.lang.Object"/>
  55071. <doc>
  55072. <![CDATA[Filtering method
  55073. If record# % frequency==0, return true; otherwise return false
  55074. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  55075. </doc>
  55076. </method>
  55077. <doc>
  55078. <![CDATA[This class returns a percentage of records
  55079. The percentage is determined by a filtering frequency <i>f</i> using
  55080. the criteria record# % f == 0.
  55081. For example, if the frequency is 10, one out of 10 records is returned.]]>
  55082. </doc>
  55083. </class>
  55084. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  55085. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  55086. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  55087. abstract="false"
  55088. static="true" final="false" visibility="public"
  55089. deprecated="not deprecated">
  55090. <constructor name="SequenceFileInputFilter.RegexFilter"
  55091. static="false" final="false" visibility="public"
  55092. deprecated="not deprecated">
  55093. </constructor>
  55094. <method name="setPattern"
  55095. abstract="false" native="false" synchronized="false"
  55096. static="true" final="false" visibility="public"
  55097. deprecated="not deprecated">
  55098. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55099. <param name="regex" type="java.lang.String"/>
  55100. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  55101. <doc>
  55102. <![CDATA[Define the filtering regex and stores it in conf
  55103. @param conf where the regex is set
  55104. @param regex regex used as a filter]]>
  55105. </doc>
  55106. </method>
  55107. <method name="setConf"
  55108. abstract="false" native="false" synchronized="false"
  55109. static="false" final="false" visibility="public"
  55110. deprecated="not deprecated">
  55111. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55112. <doc>
  55113. <![CDATA[configure the Filter by checking the configuration]]>
  55114. </doc>
  55115. </method>
  55116. <method name="accept" return="boolean"
  55117. abstract="false" native="false" synchronized="false"
  55118. static="false" final="false" visibility="public"
  55119. deprecated="not deprecated">
  55120. <param name="key" type="java.lang.Object"/>
  55121. <doc>
  55122. <![CDATA[Filtering method
  55123. If key matches the regex, return true; otherwise return false
  55124. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  55125. </doc>
  55126. </method>
  55127. <doc>
  55128. <![CDATA[Records filter by matching key to regex]]>
  55129. </doc>
  55130. </class>
  55131. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  55132. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  55133. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  55134. abstract="false"
  55135. static="false" final="false" visibility="public"
  55136. deprecated="not deprecated">
  55137. <constructor name="SequenceFileInputFormat"
  55138. static="false" final="false" visibility="public"
  55139. deprecated="not deprecated">
  55140. </constructor>
  55141. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  55142. abstract="false" native="false" synchronized="false"
  55143. static="false" final="false" visibility="protected"
  55144. deprecated="not deprecated">
  55145. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55146. <exception name="IOException" type="java.io.IOException"/>
  55147. </method>
  55148. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  55149. abstract="false" native="false" synchronized="false"
  55150. static="false" final="false" visibility="public"
  55151. deprecated="not deprecated">
  55152. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  55153. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55154. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55155. <exception name="IOException" type="java.io.IOException"/>
  55156. </method>
  55157. <doc>
  55158. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  55159. </doc>
  55160. </class>
  55161. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  55162. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  55163. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  55164. abstract="false"
  55165. static="false" final="false" visibility="public"
  55166. deprecated="not deprecated">
  55167. <constructor name="SequenceFileOutputFormat"
  55168. static="false" final="false" visibility="public"
  55169. deprecated="not deprecated">
  55170. </constructor>
  55171. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  55172. abstract="false" native="false" synchronized="false"
  55173. static="false" final="false" visibility="public"
  55174. deprecated="not deprecated">
  55175. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  55176. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55177. <param name="name" type="java.lang.String"/>
  55178. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  55179. <exception name="IOException" type="java.io.IOException"/>
  55180. </method>
  55181. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  55182. abstract="false" native="false" synchronized="false"
  55183. static="true" final="false" visibility="public"
  55184. deprecated="not deprecated">
  55185. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55186. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  55187. <exception name="IOException" type="java.io.IOException"/>
  55188. <doc>
  55189. <![CDATA[Open the output generated by this format.]]>
  55190. </doc>
  55191. </method>
  55192. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  55193. abstract="false" native="false" synchronized="false"
  55194. static="true" final="false" visibility="public"
  55195. deprecated="not deprecated">
  55196. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55197. <doc>
  55198. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  55199. @param conf the {@link JobConf}
  55200. @return the {@link CompressionType} for the output {@link SequenceFile},
  55201. defaulting to {@link CompressionType#RECORD}]]>
  55202. </doc>
  55203. </method>
  55204. <method name="setOutputCompressionType"
  55205. abstract="false" native="false" synchronized="false"
  55206. static="true" final="false" visibility="public"
  55207. deprecated="not deprecated">
  55208. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55209. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  55210. <doc>
  55211. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  55212. @param conf the {@link JobConf} to modify
  55213. @param style the {@link CompressionType} for the output
  55214. {@link SequenceFile}]]>
  55215. </doc>
  55216. </method>
  55217. <doc>
  55218. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  55219. </doc>
  55220. </class>
  55221. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  55222. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  55223. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  55224. abstract="false"
  55225. static="false" final="false" visibility="public"
  55226. deprecated="not deprecated">
  55227. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  55228. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  55229. static="false" final="false" visibility="public"
  55230. deprecated="not deprecated">
  55231. <exception name="IOException" type="java.io.IOException"/>
  55232. </constructor>
  55233. <method name="getKeyClass" return="java.lang.Class"
  55234. abstract="false" native="false" synchronized="false"
  55235. static="false" final="false" visibility="public"
  55236. deprecated="not deprecated">
  55237. <doc>
  55238. <![CDATA[The class of key that must be passed to {@link
  55239. #next(Object, Object)}..]]>
  55240. </doc>
  55241. </method>
  55242. <method name="getValueClass" return="java.lang.Class"
  55243. abstract="false" native="false" synchronized="false"
  55244. static="false" final="false" visibility="public"
  55245. deprecated="not deprecated">
  55246. <doc>
  55247. <![CDATA[The class of value that must be passed to {@link
  55248. #next(Object, Object)}..]]>
  55249. </doc>
  55250. </method>
  55251. <method name="createKey" return="java.lang.Object"
  55252. abstract="false" native="false" synchronized="false"
  55253. static="false" final="false" visibility="public"
  55254. deprecated="not deprecated">
  55255. </method>
  55256. <method name="createValue" return="java.lang.Object"
  55257. abstract="false" native="false" synchronized="false"
  55258. static="false" final="false" visibility="public"
  55259. deprecated="not deprecated">
  55260. </method>
  55261. <method name="next" return="boolean"
  55262. abstract="false" native="false" synchronized="true"
  55263. static="false" final="false" visibility="public"
  55264. deprecated="not deprecated">
  55265. <param name="key" type="java.lang.Object"/>
  55266. <param name="value" type="java.lang.Object"/>
  55267. <exception name="IOException" type="java.io.IOException"/>
  55268. </method>
  55269. <method name="next" return="boolean"
  55270. abstract="false" native="false" synchronized="true"
  55271. static="false" final="false" visibility="protected"
  55272. deprecated="not deprecated">
  55273. <param name="key" type="java.lang.Object"/>
  55274. <exception name="IOException" type="java.io.IOException"/>
  55275. </method>
  55276. <method name="getCurrentValue"
  55277. abstract="false" native="false" synchronized="true"
  55278. static="false" final="false" visibility="protected"
  55279. deprecated="not deprecated">
  55280. <param name="value" type="java.lang.Object"/>
  55281. <exception name="IOException" type="java.io.IOException"/>
  55282. </method>
  55283. <method name="getProgress" return="float"
  55284. abstract="false" native="false" synchronized="false"
  55285. static="false" final="false" visibility="public"
  55286. deprecated="not deprecated">
  55287. <exception name="IOException" type="java.io.IOException"/>
  55288. <doc>
  55289. <![CDATA[Return the progress within the input split
  55290. @return 0.0 to 1.0 of the input byte range]]>
  55291. </doc>
  55292. </method>
  55293. <method name="getPos" return="long"
  55294. abstract="false" native="false" synchronized="true"
  55295. static="false" final="false" visibility="public"
  55296. deprecated="not deprecated">
  55297. <exception name="IOException" type="java.io.IOException"/>
  55298. </method>
  55299. <method name="seek"
  55300. abstract="false" native="false" synchronized="true"
  55301. static="false" final="false" visibility="protected"
  55302. deprecated="not deprecated">
  55303. <param name="pos" type="long"/>
  55304. <exception name="IOException" type="java.io.IOException"/>
  55305. </method>
  55306. <method name="close"
  55307. abstract="false" native="false" synchronized="true"
  55308. static="false" final="false" visibility="public"
  55309. deprecated="not deprecated">
  55310. <exception name="IOException" type="java.io.IOException"/>
  55311. </method>
  55312. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  55313. transient="false" volatile="false"
  55314. static="false" final="false" visibility="protected"
  55315. deprecated="not deprecated">
  55316. </field>
  55317. <doc>
  55318. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  55319. </doc>
  55320. </class>
  55321. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  55322. <!-- start class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  55323. <class name="ShuffleExceptionTracker" extends="java.lang.Object"
  55324. abstract="false"
  55325. static="false" final="false" visibility="public"
  55326. deprecated="not deprecated">
  55327. <method name="getNumRequests" return="int"
  55328. abstract="false" native="false" synchronized="false"
  55329. static="false" final="false" visibility="public"
  55330. deprecated="not deprecated">
  55331. <doc>
  55332. <![CDATA[Gets the number of requests we are tracking
  55333. @return number of requests]]>
  55334. </doc>
  55335. </method>
  55336. <method name="getPercentExceptions" return="float"
  55337. abstract="false" native="false" synchronized="true"
  55338. static="false" final="false" visibility="public"
  55339. deprecated="not deprecated">
  55340. <doc>
  55341. <![CDATA[Gets the percent of the requests that had exceptions occur.
  55342. @return percent failures as float]]>
  55343. </doc>
  55344. </method>
  55345. <method name="success"
  55346. abstract="false" native="false" synchronized="true"
  55347. static="false" final="false" visibility="public"
  55348. deprecated="not deprecated">
  55349. <doc>
  55350. <![CDATA[Mark the request as success.]]>
  55351. </doc>
  55352. </method>
  55353. <method name="exception"
  55354. abstract="false" native="false" synchronized="true"
  55355. static="false" final="false" visibility="public"
  55356. deprecated="not deprecated">
  55357. <doc>
  55358. <![CDATA[Mark the request as an exception occurred.]]>
  55359. </doc>
  55360. </method>
  55361. <method name="checkException" return="boolean"
  55362. abstract="false" native="false" synchronized="false"
  55363. static="false" final="false" visibility="public"
  55364. deprecated="not deprecated">
  55365. <param name="ie" type="java.io.IOException"/>
  55366. <doc>
  55367. <![CDATA[Parse the exception to see if it matches the regular expression you
  55368. configured. If both msgRegex and StackRegex are set then make sure both
  55369. match, otherwise only one has to match. Abort if the limit is hit.
  55370. @param ie - the shuffle exception that occurred
  55371. @return true if the exception matches, false otherwise]]>
  55372. </doc>
  55373. </method>
  55374. <method name="doAbort"
  55375. abstract="false" native="false" synchronized="false"
  55376. static="false" final="false" visibility="protected"
  55377. deprecated="not deprecated">
  55378. </method>
  55379. <field name="LOG" type="org.apache.commons.logging.Log"
  55380. transient="false" volatile="false"
  55381. static="true" final="true" visibility="public"
  55382. deprecated="not deprecated">
  55383. </field>
  55384. <doc>
  55385. <![CDATA[This class is used to track shuffle exceptions. It contains routines
  55386. to check an exception that occurred while fetching the Map output to see if it
  55387. matches what was configured. It also provides functions to keep track of
  55388. the number of exceptions that occurred and if a limit is set, it will
  55389. abort the TT. The limit is a percent of exceptions of the last X number of
  55390. requests.]]>
  55391. </doc>
  55392. </class>
  55393. <!-- end class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  55394. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  55395. <class name="SkipBadRecords" extends="java.lang.Object"
  55396. abstract="false"
  55397. static="false" final="false" visibility="public"
  55398. deprecated="not deprecated">
  55399. <constructor name="SkipBadRecords"
  55400. static="false" final="false" visibility="public"
  55401. deprecated="not deprecated">
  55402. </constructor>
  55403. <method name="getAttemptsToStartSkipping" return="int"
  55404. abstract="false" native="false" synchronized="false"
  55405. static="true" final="false" visibility="public"
  55406. deprecated="not deprecated">
  55407. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55408. <doc>
  55409. <![CDATA[Get the number of Task attempts AFTER which skip mode
  55410. will be kicked off. When skip mode is kicked off, the
  55411. tasks reports the range of records which it will process
  55412. next to the TaskTracker. So that on failures, TT knows which
  55413. ones are possibly the bad records. On further executions,
  55414. those are skipped.
  55415. Default value is 2.
  55416. @param conf the configuration
  55417. @return attemptsToStartSkipping no of task attempts]]>
  55418. </doc>
  55419. </method>
  55420. <method name="setAttemptsToStartSkipping"
  55421. abstract="false" native="false" synchronized="false"
  55422. static="true" final="false" visibility="public"
  55423. deprecated="not deprecated">
  55424. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55425. <param name="attemptsToStartSkipping" type="int"/>
  55426. <doc>
  55427. <![CDATA[Set the number of Task attempts AFTER which skip mode
  55428. will be kicked off. When skip mode is kicked off, the
  55429. tasks reports the range of records which it will process
  55430. next to the TaskTracker. So that on failures, TT knows which
  55431. ones are possibly the bad records. On further executions,
  55432. those are skipped.
  55433. Default value is 2.
  55434. @param conf the configuration
  55435. @param attemptsToStartSkipping no of task attempts]]>
  55436. </doc>
  55437. </method>
  55438. <method name="getAutoIncrMapperProcCount" return="boolean"
  55439. abstract="false" native="false" synchronized="false"
  55440. static="true" final="false" visibility="public"
  55441. deprecated="not deprecated">
  55442. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55443. <doc>
  55444. <![CDATA[Get the flag which if set to true,
  55445. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  55446. by MapRunner after invoking the map function. This value must be set to
  55447. false for applications which process the records asynchronously
  55448. or buffer the input records. For example streaming.
  55449. In such cases applications should increment this counter on their own.
  55450. Default value is true.
  55451. @param conf the configuration
  55452. @return <code>true</code> if auto increment
  55453. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  55454. <code>false</code> otherwise.]]>
  55455. </doc>
  55456. </method>
  55457. <method name="setAutoIncrMapperProcCount"
  55458. abstract="false" native="false" synchronized="false"
  55459. static="true" final="false" visibility="public"
  55460. deprecated="not deprecated">
  55461. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55462. <param name="autoIncr" type="boolean"/>
  55463. <doc>
  55464. <![CDATA[Set the flag which if set to true,
  55465. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  55466. by MapRunner after invoking the map function. This value must be set to
  55467. false for applications which process the records asynchronously
  55468. or buffer the input records. For example streaming.
  55469. In such cases applications should increment this counter on their own.
  55470. Default value is true.
  55471. @param conf the configuration
  55472. @param autoIncr whether to auto increment
  55473. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  55474. </doc>
  55475. </method>
  55476. <method name="getAutoIncrReducerProcCount" return="boolean"
  55477. abstract="false" native="false" synchronized="false"
  55478. static="true" final="false" visibility="public"
  55479. deprecated="not deprecated">
  55480. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55481. <doc>
  55482. <![CDATA[Get the flag which if set to true,
  55483. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  55484. by framework after invoking the reduce function. This value must be set to
  55485. false for applications which process the records asynchronously
  55486. or buffer the input records. For example streaming.
  55487. In such cases applications should increment this counter on their own.
  55488. Default value is true.
  55489. @param conf the configuration
  55490. @return <code>true</code> if auto increment
  55491. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  55492. <code>false</code> otherwise.]]>
  55493. </doc>
  55494. </method>
  55495. <method name="setAutoIncrReducerProcCount"
  55496. abstract="false" native="false" synchronized="false"
  55497. static="true" final="false" visibility="public"
  55498. deprecated="not deprecated">
  55499. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55500. <param name="autoIncr" type="boolean"/>
  55501. <doc>
  55502. <![CDATA[Set the flag which if set to true,
  55503. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  55504. by framework after invoking the reduce function. This value must be set to
  55505. false for applications which process the records asynchronously
  55506. or buffer the input records. For example streaming.
  55507. In such cases applications should increment this counter on their own.
  55508. Default value is true.
  55509. @param conf the configuration
  55510. @param autoIncr whether to auto increment
  55511. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  55512. </doc>
  55513. </method>
  55514. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  55515. abstract="false" native="false" synchronized="false"
  55516. static="true" final="false" visibility="public"
  55517. deprecated="not deprecated">
  55518. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55519. <doc>
  55520. <![CDATA[Get the directory to which skipped records are written. By default it is
  55521. the sub directory of the output _logs directory.
  55522. User can stop writing skipped records by setting the value null.
  55523. @param conf the configuration.
  55524. @return path skip output directory. Null is returned if this is not set
  55525. and output directory is also not set.]]>
  55526. </doc>
  55527. </method>
  55528. <method name="setSkipOutputPath"
  55529. abstract="false" native="false" synchronized="false"
  55530. static="true" final="false" visibility="public"
  55531. deprecated="not deprecated">
  55532. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55533. <param name="path" type="org.apache.hadoop.fs.Path"/>
  55534. <doc>
  55535. <![CDATA[Set the directory to which skipped records are written. By default it is
  55536. the sub directory of the output _logs directory.
  55537. User can stop writing skipped records by setting the value null.
  55538. @param conf the configuration.
  55539. @param path skip output directory path]]>
  55540. </doc>
  55541. </method>
  55542. <method name="getMapperMaxSkipRecords" return="long"
  55543. abstract="false" native="false" synchronized="false"
  55544. static="true" final="false" visibility="public"
  55545. deprecated="not deprecated">
  55546. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55547. <doc>
  55548. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  55549. bad record in mapper. The number includes the bad record as well.
  55550. To turn the feature of detection/skipping of bad records off, set the
  55551. value to 0.
  55552. The framework tries to narrow down the skipped range by retrying
  55553. until this threshold is met OR all attempts get exhausted for this task.
  55554. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55555. narrow down. Whatever records(depends on application) get skipped are
  55556. acceptable.
  55557. Default value is 0.
  55558. @param conf the configuration
  55559. @return maxSkipRecs acceptable skip records.]]>
  55560. </doc>
  55561. </method>
  55562. <method name="setMapperMaxSkipRecords"
  55563. abstract="false" native="false" synchronized="false"
  55564. static="true" final="false" visibility="public"
  55565. deprecated="not deprecated">
  55566. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55567. <param name="maxSkipRecs" type="long"/>
  55568. <doc>
  55569. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  55570. bad record in mapper. The number includes the bad record as well.
  55571. To turn the feature of detection/skipping of bad records off, set the
  55572. value to 0.
  55573. The framework tries to narrow down the skipped range by retrying
  55574. until this threshold is met OR all attempts get exhausted for this task.
  55575. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55576. narrow down. Whatever records(depends on application) get skipped are
  55577. acceptable.
  55578. Default value is 0.
  55579. @param conf the configuration
  55580. @param maxSkipRecs acceptable skip records.]]>
  55581. </doc>
  55582. </method>
  55583. <method name="getReducerMaxSkipGroups" return="long"
  55584. abstract="false" native="false" synchronized="false"
  55585. static="true" final="false" visibility="public"
  55586. deprecated="not deprecated">
  55587. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55588. <doc>
  55589. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  55590. bad group in reducer. The number includes the bad group as well.
  55591. To turn the feature of detection/skipping of bad groups off, set the
  55592. value to 0.
  55593. The framework tries to narrow down the skipped range by retrying
  55594. until this threshold is met OR all attempts get exhausted for this task.
  55595. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55596. narrow down. Whatever groups(depends on application) get skipped are
  55597. acceptable.
  55598. Default value is 0.
  55599. @param conf the configuration
  55600. @return maxSkipGrps acceptable skip groups.]]>
  55601. </doc>
  55602. </method>
  55603. <method name="setReducerMaxSkipGroups"
  55604. abstract="false" native="false" synchronized="false"
  55605. static="true" final="false" visibility="public"
  55606. deprecated="not deprecated">
  55607. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55608. <param name="maxSkipGrps" type="long"/>
  55609. <doc>
  55610. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  55611. bad group in reducer. The number includes the bad group as well.
  55612. To turn the feature of detection/skipping of bad groups off, set the
  55613. value to 0.
  55614. The framework tries to narrow down the skipped range by retrying
  55615. until this threshold is met OR all attempts get exhausted for this task.
  55616. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  55617. narrow down. Whatever groups(depends on application) get skipped are
  55618. acceptable.
  55619. Default value is 0.
  55620. @param conf the configuration
  55621. @param maxSkipGrps acceptable skip groups.]]>
  55622. </doc>
  55623. </method>
  55624. <field name="COUNTER_GROUP" type="java.lang.String"
  55625. transient="false" volatile="false"
  55626. static="true" final="true" visibility="public"
  55627. deprecated="not deprecated">
  55628. <doc>
  55629. <![CDATA[Special counters which are written by the application and are
  55630. used by the framework for detecting bad records. For detecting bad records
  55631. these counters must be incremented by the application.]]>
  55632. </doc>
  55633. </field>
  55634. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  55635. transient="false" volatile="false"
  55636. static="true" final="true" visibility="public"
  55637. deprecated="not deprecated">
  55638. <doc>
  55639. <![CDATA[Number of processed map records.
  55640. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  55641. </doc>
  55642. </field>
  55643. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  55644. transient="false" volatile="false"
  55645. static="true" final="true" visibility="public"
  55646. deprecated="not deprecated">
  55647. <doc>
  55648. <![CDATA[Number of processed reduce groups.
  55649. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  55650. </doc>
  55651. </field>
  55652. <doc>
  55653. <![CDATA[Utility class for skip bad records functionality. It contains various
  55654. settings related to skipping of bad records.
  55655. <p>Hadoop provides an optional mode of execution in which the bad records
  55656. are detected and skipped in further attempts.
  55657. <p>This feature can be used when map/reduce tasks crashes deterministically on
  55658. certain input. This happens due to bugs in the map/reduce function. The usual
  55659. course would be to fix these bugs. But sometimes this is not possible;
  55660. perhaps the bug is in third party libraries for which the source code is
  55661. not available. Due to this, the task never reaches to completion even with
  55662. multiple attempts and complete data for that task is lost.</p>
  55663. <p>With this feature, only a small portion of data is lost surrounding
  55664. the bad record, which may be acceptable for some user applications.
  55665. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  55666. <p>The skipping mode gets kicked off after certain no of failures
  55667. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  55668. <p>In the skipping mode, the map/reduce task maintains the record range which
  55669. is getting processed at all times. Before giving the input to the
  55670. map/reduce function, it sends this record range to the Task tracker.
  55671. If task crashes, the Task tracker knows which one was the last reported
  55672. range. On further attempts that range get skipped.</p>]]>
  55673. </doc>
  55674. </class>
  55675. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  55676. <!-- start class org.apache.hadoop.mapred.Task -->
  55677. <class name="Task" extends="java.lang.Object"
  55678. abstract="true"
  55679. static="false" final="false" visibility="public"
  55680. deprecated="not deprecated">
  55681. <implements name="org.apache.hadoop.io.Writable"/>
  55682. <implements name="org.apache.hadoop.conf.Configurable"/>
  55683. <constructor name="Task"
  55684. static="false" final="false" visibility="public"
  55685. deprecated="not deprecated">
  55686. </constructor>
  55687. <constructor name="Task" type="java.lang.String, org.apache.hadoop.mapred.TaskAttemptID, int, int"
  55688. static="false" final="false" visibility="public"
  55689. deprecated="not deprecated">
  55690. </constructor>
  55691. <method name="getFileSystemCounterNames" return="java.lang.String[]"
  55692. abstract="false" native="false" synchronized="false"
  55693. static="true" final="false" visibility="protected"
  55694. deprecated="not deprecated">
  55695. <param name="uriScheme" type="java.lang.String"/>
  55696. <doc>
  55697. <![CDATA[Counters to measure the usage of the different file systems.
  55698. Always return the String array with two elements. First one is the name of
  55699. BYTES_READ counter and second one is of the BYTES_WRITTEN counter.]]>
  55700. </doc>
  55701. </method>
  55702. <method name="setJobFile"
  55703. abstract="false" native="false" synchronized="false"
  55704. static="false" final="false" visibility="public"
  55705. deprecated="not deprecated">
  55706. <param name="jobFile" type="java.lang.String"/>
  55707. </method>
  55708. <method name="getJobFile" return="java.lang.String"
  55709. abstract="false" native="false" synchronized="false"
  55710. static="false" final="false" visibility="public"
  55711. deprecated="not deprecated">
  55712. </method>
  55713. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  55714. abstract="false" native="false" synchronized="false"
  55715. static="false" final="false" visibility="public"
  55716. deprecated="not deprecated">
  55717. </method>
  55718. <method name="getNumSlotsRequired" return="int"
  55719. abstract="false" native="false" synchronized="false"
  55720. static="false" final="false" visibility="public"
  55721. deprecated="not deprecated">
  55722. </method>
  55723. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  55724. abstract="false" native="false" synchronized="false"
  55725. static="false" final="false" visibility="public"
  55726. deprecated="not deprecated">
  55727. <doc>
  55728. <![CDATA[Get the job name for this task.
  55729. @return the job name]]>
  55730. </doc>
  55731. </method>
  55732. <method name="setJobTokenSecret"
  55733. abstract="false" native="false" synchronized="false"
  55734. static="false" final="false" visibility="public"
  55735. deprecated="not deprecated">
  55736. <param name="tokenSecret" type="javax.crypto.SecretKey"/>
  55737. <doc>
  55738. <![CDATA[Set the job token secret
  55739. @param tokenSecret the secret]]>
  55740. </doc>
  55741. </method>
  55742. <method name="getJobTokenSecret" return="javax.crypto.SecretKey"
  55743. abstract="false" native="false" synchronized="false"
  55744. static="false" final="false" visibility="public"
  55745. deprecated="not deprecated">
  55746. <doc>
  55747. <![CDATA[Get the job token secret
  55748. @return the token secret]]>
  55749. </doc>
  55750. </method>
  55751. <method name="setJvmContext"
  55752. abstract="false" native="false" synchronized="false"
  55753. static="false" final="false" visibility="public"
  55754. deprecated="not deprecated">
  55755. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  55756. <doc>
  55757. <![CDATA[Set the task JvmContext
  55758. @param jvmContext]]>
  55759. </doc>
  55760. </method>
  55761. <method name="getJvmContext" return="org.apache.hadoop.mapred.JvmContext"
  55762. abstract="false" native="false" synchronized="false"
  55763. static="false" final="false" visibility="public"
  55764. deprecated="not deprecated">
  55765. <doc>
  55766. <![CDATA[Gets the task JvmContext
  55767. @return the jvm context]]>
  55768. </doc>
  55769. </method>
  55770. <method name="getPartition" return="int"
  55771. abstract="false" native="false" synchronized="false"
  55772. static="false" final="false" visibility="public"
  55773. deprecated="not deprecated">
  55774. <doc>
  55775. <![CDATA[Get the index of this task within the job.
  55776. @return the integer part of the task id]]>
  55777. </doc>
  55778. </method>
  55779. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  55780. abstract="false" native="false" synchronized="true"
  55781. static="false" final="false" visibility="public"
  55782. deprecated="not deprecated">
  55783. <doc>
  55784. <![CDATA[Return current phase of the task.
  55785. needs to be synchronized as communication thread sends the phase every second
  55786. @return the curent phase of the task]]>
  55787. </doc>
  55788. </method>
  55789. <method name="setPhase"
  55790. abstract="false" native="false" synchronized="true"
  55791. static="false" final="false" visibility="protected"
  55792. deprecated="not deprecated">
  55793. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  55794. <doc>
  55795. <![CDATA[Set current phase of the task.
  55796. @param phase task phase]]>
  55797. </doc>
  55798. </method>
  55799. <method name="toWriteSkipRecs" return="boolean"
  55800. abstract="false" native="false" synchronized="false"
  55801. static="false" final="false" visibility="protected"
  55802. deprecated="not deprecated">
  55803. <doc>
  55804. <![CDATA[Get whether to write skip records.]]>
  55805. </doc>
  55806. </method>
  55807. <method name="setWriteSkipRecs"
  55808. abstract="false" native="false" synchronized="false"
  55809. static="false" final="false" visibility="protected"
  55810. deprecated="not deprecated">
  55811. <param name="writeSkipRecs" type="boolean"/>
  55812. <doc>
  55813. <![CDATA[Set whether to write skip records.]]>
  55814. </doc>
  55815. </method>
  55816. <method name="reportFatalError"
  55817. abstract="false" native="false" synchronized="false"
  55818. static="false" final="false" visibility="protected"
  55819. deprecated="not deprecated">
  55820. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55821. <param name="throwable" type="java.lang.Throwable"/>
  55822. <param name="logMsg" type="java.lang.String"/>
  55823. <doc>
  55824. <![CDATA[Report a fatal error to the parent (task) tracker.]]>
  55825. </doc>
  55826. </method>
  55827. <method name="getSkipRanges" return="org.apache.hadoop.mapred.SortedRanges"
  55828. abstract="false" native="false" synchronized="false"
  55829. static="false" final="false" visibility="public"
  55830. deprecated="not deprecated">
  55831. <doc>
  55832. <![CDATA[Get skipRanges.]]>
  55833. </doc>
  55834. </method>
  55835. <method name="setSkipRanges"
  55836. abstract="false" native="false" synchronized="false"
  55837. static="false" final="false" visibility="public"
  55838. deprecated="not deprecated">
  55839. <param name="skipRanges" type="org.apache.hadoop.mapred.SortedRanges"/>
  55840. <doc>
  55841. <![CDATA[Set skipRanges.]]>
  55842. </doc>
  55843. </method>
  55844. <method name="isSkipping" return="boolean"
  55845. abstract="false" native="false" synchronized="false"
  55846. static="false" final="false" visibility="public"
  55847. deprecated="not deprecated">
  55848. <doc>
  55849. <![CDATA[Is Task in skipping mode.]]>
  55850. </doc>
  55851. </method>
  55852. <method name="setSkipping"
  55853. abstract="false" native="false" synchronized="false"
  55854. static="false" final="false" visibility="public"
  55855. deprecated="not deprecated">
  55856. <param name="skipping" type="boolean"/>
  55857. <doc>
  55858. <![CDATA[Sets whether to run Task in skipping mode.
  55859. @param skipping]]>
  55860. </doc>
  55861. </method>
  55862. <method name="getUser" return="java.lang.String"
  55863. abstract="false" native="false" synchronized="false"
  55864. static="false" final="false" visibility="public"
  55865. deprecated="not deprecated">
  55866. <doc>
  55867. <![CDATA[Get the name of the user running the job/task. TaskTracker needs task's
  55868. user name even before it's JobConf is localized. So we explicitly serialize
  55869. the user name.
  55870. @return user]]>
  55871. </doc>
  55872. </method>
  55873. <method name="write"
  55874. abstract="false" native="false" synchronized="false"
  55875. static="false" final="false" visibility="public"
  55876. deprecated="not deprecated">
  55877. <param name="out" type="java.io.DataOutput"/>
  55878. <exception name="IOException" type="java.io.IOException"/>
  55879. </method>
  55880. <method name="readFields"
  55881. abstract="false" native="false" synchronized="false"
  55882. static="false" final="false" visibility="public"
  55883. deprecated="not deprecated">
  55884. <param name="in" type="java.io.DataInput"/>
  55885. <exception name="IOException" type="java.io.IOException"/>
  55886. </method>
  55887. <method name="toString" return="java.lang.String"
  55888. abstract="false" native="false" synchronized="false"
  55889. static="false" final="false" visibility="public"
  55890. deprecated="not deprecated">
  55891. </method>
  55892. <method name="localizeConfiguration"
  55893. abstract="false" native="false" synchronized="false"
  55894. static="false" final="false" visibility="public"
  55895. deprecated="not deprecated">
  55896. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55897. <exception name="IOException" type="java.io.IOException"/>
  55898. <doc>
  55899. <![CDATA[Localize the given JobConf to be specific for this task.]]>
  55900. </doc>
  55901. </method>
  55902. <method name="run"
  55903. abstract="true" native="false" synchronized="false"
  55904. static="false" final="false" visibility="public"
  55905. deprecated="not deprecated">
  55906. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55907. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  55908. <exception name="IOException" type="java.io.IOException"/>
  55909. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  55910. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55911. <doc>
  55912. <![CDATA[Run this task as a part of the named job. This method is executed in the
  55913. child process and is what invokes user-supplied map, reduce, etc. methods.
  55914. @param umbilical for progress reports]]>
  55915. </doc>
  55916. </method>
  55917. <method name="createRunner" return="org.apache.hadoop.mapred.TaskRunner"
  55918. abstract="true" native="false" synchronized="false"
  55919. static="false" final="false" visibility="public"
  55920. deprecated="not deprecated">
  55921. <param name="tracker" type="org.apache.hadoop.mapred.TaskTracker"/>
  55922. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  55923. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  55924. <exception name="IOException" type="java.io.IOException"/>
  55925. <doc>
  55926. <![CDATA[Return an approprate thread runner for this task.
  55927. @param tip TODO]]>
  55928. </doc>
  55929. </method>
  55930. <method name="isMapTask" return="boolean"
  55931. abstract="true" native="false" synchronized="false"
  55932. static="false" final="false" visibility="public"
  55933. deprecated="not deprecated">
  55934. </method>
  55935. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  55936. abstract="false" native="false" synchronized="false"
  55937. static="false" final="false" visibility="public"
  55938. deprecated="not deprecated">
  55939. </method>
  55940. <method name="initialize"
  55941. abstract="false" native="false" synchronized="false"
  55942. static="false" final="false" visibility="public"
  55943. deprecated="not deprecated">
  55944. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55945. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  55946. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55947. <param name="useNewApi" type="boolean"/>
  55948. <exception name="IOException" type="java.io.IOException"/>
  55949. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  55950. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55951. </method>
  55952. <method name="reportNextRecordRange"
  55953. abstract="false" native="false" synchronized="false"
  55954. static="false" final="false" visibility="protected"
  55955. deprecated="not deprecated">
  55956. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  55957. <param name="nextRecIndex" type="long"/>
  55958. <exception name="IOException" type="java.io.IOException"/>
  55959. <doc>
  55960. <![CDATA[Reports the next executing record range to TaskTracker.
  55961. @param umbilical
  55962. @param nextRecIndex the record index which would be fed next.
  55963. @throws IOException]]>
  55964. </doc>
  55965. </method>
  55966. <method name="done"
  55967. abstract="false" native="false" synchronized="false"
  55968. static="false" final="false" visibility="public"
  55969. deprecated="not deprecated">
  55970. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  55971. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  55972. <exception name="IOException" type="java.io.IOException"/>
  55973. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55974. </method>
  55975. <method name="statusUpdate"
  55976. abstract="false" native="false" synchronized="false"
  55977. static="false" final="false" visibility="protected"
  55978. deprecated="not deprecated">
  55979. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  55980. <exception name="IOException" type="java.io.IOException"/>
  55981. </method>
  55982. <method name="runTaskCleanupTask"
  55983. abstract="false" native="false" synchronized="false"
  55984. static="false" final="false" visibility="protected"
  55985. deprecated="not deprecated">
  55986. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  55987. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  55988. <exception name="IOException" type="java.io.IOException"/>
  55989. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55990. </method>
  55991. <method name="runJobCleanupTask"
  55992. abstract="false" native="false" synchronized="false"
  55993. static="false" final="false" visibility="protected"
  55994. deprecated="not deprecated">
  55995. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  55996. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  55997. <exception name="IOException" type="java.io.IOException"/>
  55998. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55999. </method>
  56000. <method name="supportIsolationRunner" return="boolean"
  56001. abstract="false" native="false" synchronized="false"
  56002. static="false" final="false" visibility="protected"
  56003. deprecated="not deprecated">
  56004. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56005. </method>
  56006. <method name="runJobSetupTask"
  56007. abstract="false" native="false" synchronized="false"
  56008. static="false" final="false" visibility="protected"
  56009. deprecated="not deprecated">
  56010. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56011. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  56012. <exception name="IOException" type="java.io.IOException"/>
  56013. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56014. </method>
  56015. <method name="getFsStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  56016. abstract="false" native="false" synchronized="false"
  56017. static="true" final="false" visibility="protected"
  56018. deprecated="not deprecated">
  56019. <param name="path" type="org.apache.hadoop.fs.Path"/>
  56020. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56021. <exception name="IOException" type="java.io.IOException"/>
  56022. <doc>
  56023. <![CDATA[Gets a handle to the Statistics instance based on the scheme associated
  56024. with path.
  56025. @param path
  56026. the path.
  56027. @return a Statistics instance, or null if none is found for the scheme.]]>
  56028. </doc>
  56029. </method>
  56030. <method name="setConf"
  56031. abstract="false" native="false" synchronized="false"
  56032. static="false" final="false" visibility="public"
  56033. deprecated="not deprecated">
  56034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56035. </method>
  56036. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  56037. abstract="false" native="false" synchronized="false"
  56038. static="false" final="false" visibility="public"
  56039. deprecated="not deprecated">
  56040. </method>
  56041. <method name="createReduceContext" return="org.apache.hadoop.mapreduce.Reducer.Context"
  56042. abstract="false" native="false" synchronized="false"
  56043. static="true" final="false" visibility="protected"
  56044. deprecated="not deprecated">
  56045. <param name="reducer" type="org.apache.hadoop.mapreduce.Reducer"/>
  56046. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  56047. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  56048. <param name="rIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  56049. <param name="inputKeyCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  56050. <param name="inputValueCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  56051. <param name="output" type="org.apache.hadoop.mapreduce.RecordWriter"/>
  56052. <param name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"/>
  56053. <param name="reporter" type="org.apache.hadoop.mapreduce.StatusReporter"/>
  56054. <param name="comparator" type="org.apache.hadoop.io.RawComparator"/>
  56055. <param name="keyClass" type="java.lang.Class"/>
  56056. <param name="valueClass" type="java.lang.Class"/>
  56057. <exception name="IOException" type="java.io.IOException"/>
  56058. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  56059. </method>
  56060. <field name="MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="java.lang.String"
  56061. transient="false" volatile="false"
  56062. static="true" final="true" visibility="public"
  56063. deprecated="not deprecated">
  56064. </field>
  56065. <field name="DEFAULT_MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="long"
  56066. transient="false" volatile="false"
  56067. static="true" final="true" visibility="public"
  56068. deprecated="not deprecated">
  56069. </field>
  56070. <field name="FILESYSTEM_COUNTER_GROUP" type="java.lang.String"
  56071. transient="false" volatile="false"
  56072. static="true" final="true" visibility="protected"
  56073. deprecated="not deprecated">
  56074. <doc>
  56075. <![CDATA[Name of the FileSystem counters' group]]>
  56076. </doc>
  56077. </field>
  56078. <field name="jobRunStateForCleanup" type="org.apache.hadoop.mapreduce.JobStatus.State"
  56079. transient="false" volatile="false"
  56080. static="false" final="false" visibility="protected"
  56081. deprecated="not deprecated">
  56082. </field>
  56083. <field name="jobCleanup" type="boolean"
  56084. transient="false" volatile="false"
  56085. static="false" final="false" visibility="protected"
  56086. deprecated="not deprecated">
  56087. </field>
  56088. <field name="jobSetup" type="boolean"
  56089. transient="false" volatile="false"
  56090. static="false" final="false" visibility="protected"
  56091. deprecated="not deprecated">
  56092. </field>
  56093. <field name="taskCleanup" type="boolean"
  56094. transient="false" volatile="false"
  56095. static="false" final="false" visibility="protected"
  56096. deprecated="not deprecated">
  56097. </field>
  56098. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  56099. transient="false" volatile="false"
  56100. static="false" final="false" visibility="protected"
  56101. deprecated="not deprecated">
  56102. </field>
  56103. <field name="mapOutputFile" type="org.apache.hadoop.mapred.MapOutputFile"
  56104. transient="false" volatile="false"
  56105. static="false" final="false" visibility="protected"
  56106. deprecated="not deprecated">
  56107. </field>
  56108. <field name="lDirAlloc" type="org.apache.hadoop.fs.LocalDirAllocator"
  56109. transient="false" volatile="false"
  56110. static="false" final="false" visibility="protected"
  56111. deprecated="not deprecated">
  56112. </field>
  56113. <field name="jobContext" type="org.apache.hadoop.mapred.JobContext"
  56114. transient="false" volatile="false"
  56115. static="false" final="false" visibility="protected"
  56116. deprecated="not deprecated">
  56117. </field>
  56118. <field name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"
  56119. transient="false" volatile="false"
  56120. static="false" final="false" visibility="protected"
  56121. deprecated="not deprecated">
  56122. </field>
  56123. <field name="outputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  56124. transient="false" volatile="false"
  56125. static="false" final="false" visibility="protected"
  56126. deprecated="not deprecated">
  56127. </field>
  56128. <field name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"
  56129. transient="false" volatile="false"
  56130. static="false" final="false" visibility="protected"
  56131. deprecated="not deprecated">
  56132. </field>
  56133. <field name="spilledRecordsCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  56134. transient="false" volatile="false"
  56135. static="false" final="true" visibility="protected"
  56136. deprecated="not deprecated">
  56137. </field>
  56138. <field name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"
  56139. transient="false" volatile="false"
  56140. static="false" final="false" visibility="protected"
  56141. deprecated="not deprecated">
  56142. </field>
  56143. <field name="tokenSecret" type="javax.crypto.SecretKey"
  56144. transient="false" volatile="false"
  56145. static="false" final="false" visibility="protected"
  56146. deprecated="not deprecated">
  56147. </field>
  56148. <field name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"
  56149. transient="false" volatile="false"
  56150. static="false" final="false" visibility="protected"
  56151. deprecated="not deprecated">
  56152. </field>
  56153. <field name="PROGRESS_INTERVAL" type="int"
  56154. transient="false" volatile="false"
  56155. static="true" final="true" visibility="public"
  56156. deprecated="not deprecated">
  56157. <doc>
  56158. <![CDATA[The number of milliseconds between progress reports.]]>
  56159. </doc>
  56160. </field>
  56161. <doc>
  56162. <![CDATA[Base class for tasks.
  56163. This is NOT a public interface.]]>
  56164. </doc>
  56165. </class>
  56166. <!-- end class org.apache.hadoop.mapred.Task -->
  56167. <!-- start class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  56168. <class name="Task.CombineOutputCollector" extends="java.lang.Object"
  56169. abstract="false"
  56170. static="true" final="false" visibility="protected"
  56171. deprecated="not deprecated">
  56172. <implements name="org.apache.hadoop.mapred.OutputCollector"/>
  56173. <constructor name="Task.CombineOutputCollector" type="org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.util.Progressable, org.apache.hadoop.conf.Configuration"
  56174. static="false" final="false" visibility="public"
  56175. deprecated="not deprecated">
  56176. </constructor>
  56177. <method name="setWriter"
  56178. abstract="false" native="false" synchronized="true"
  56179. static="false" final="false" visibility="public"
  56180. deprecated="not deprecated">
  56181. <param name="writer" type="org.apache.hadoop.mapred.IFile.Writer"/>
  56182. </method>
  56183. <method name="collect"
  56184. abstract="false" native="false" synchronized="true"
  56185. static="false" final="false" visibility="public"
  56186. deprecated="not deprecated">
  56187. <param name="key" type="java.lang.Object"/>
  56188. <param name="value" type="java.lang.Object"/>
  56189. <exception name="IOException" type="java.io.IOException"/>
  56190. </method>
  56191. <doc>
  56192. <![CDATA[OutputCollector for the combiner.]]>
  56193. </doc>
  56194. </class>
  56195. <!-- end class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  56196. <!-- start class org.apache.hadoop.mapred.Task.CombinerRunner -->
  56197. <class name="Task.CombinerRunner" extends="java.lang.Object"
  56198. abstract="true"
  56199. static="true" final="false" visibility="protected"
  56200. deprecated="not deprecated">
  56201. <field name="inputCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  56202. transient="false" volatile="false"
  56203. static="false" final="true" visibility="protected"
  56204. deprecated="not deprecated">
  56205. </field>
  56206. <field name="job" type="org.apache.hadoop.mapred.JobConf"
  56207. transient="false" volatile="false"
  56208. static="false" final="true" visibility="protected"
  56209. deprecated="not deprecated">
  56210. </field>
  56211. <field name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"
  56212. transient="false" volatile="false"
  56213. static="false" final="true" visibility="protected"
  56214. deprecated="not deprecated">
  56215. </field>
  56216. </class>
  56217. <!-- end class org.apache.hadoop.mapred.Task.CombinerRunner -->
  56218. <!-- start class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  56219. <class name="Task.CombineValuesIterator" extends="org.apache.hadoop.mapred.Task.ValuesIterator"
  56220. abstract="false"
  56221. static="true" final="false" visibility="protected"
  56222. deprecated="not deprecated">
  56223. <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"
  56224. static="false" final="false" visibility="public"
  56225. deprecated="not deprecated">
  56226. <exception name="IOException" type="java.io.IOException"/>
  56227. </constructor>
  56228. <method name="next" return="java.lang.Object"
  56229. abstract="false" native="false" synchronized="false"
  56230. static="false" final="false" visibility="public"
  56231. deprecated="not deprecated">
  56232. </method>
  56233. </class>
  56234. <!-- end class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  56235. <!-- start class org.apache.hadoop.mapred.Task.Counter -->
  56236. <class name="Task.Counter" extends="java.lang.Enum"
  56237. abstract="false"
  56238. static="true" final="true" visibility="public"
  56239. deprecated="not deprecated">
  56240. <method name="values" return="org.apache.hadoop.mapred.Task.Counter[]"
  56241. abstract="false" native="false" synchronized="false"
  56242. static="true" final="false" visibility="public"
  56243. deprecated="not deprecated">
  56244. </method>
  56245. <method name="valueOf" return="org.apache.hadoop.mapred.Task.Counter"
  56246. abstract="false" native="false" synchronized="false"
  56247. static="true" final="false" visibility="public"
  56248. deprecated="not deprecated">
  56249. <param name="name" type="java.lang.String"/>
  56250. </method>
  56251. <field name="MAP_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56252. transient="false" volatile="false"
  56253. static="true" final="true" visibility="public"
  56254. deprecated="not deprecated">
  56255. </field>
  56256. <field name="MAP_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56257. transient="false" volatile="false"
  56258. static="true" final="true" visibility="public"
  56259. deprecated="not deprecated">
  56260. </field>
  56261. <field name="MAP_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56262. transient="false" volatile="false"
  56263. static="true" final="true" visibility="public"
  56264. deprecated="not deprecated">
  56265. </field>
  56266. <field name="MAP_INPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56267. transient="false" volatile="false"
  56268. static="true" final="true" visibility="public"
  56269. deprecated="not deprecated">
  56270. </field>
  56271. <field name="MAP_OUTPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56272. transient="false" volatile="false"
  56273. static="true" final="true" visibility="public"
  56274. deprecated="not deprecated">
  56275. </field>
  56276. <field name="MAP_OUTPUT_MATERIALIZED_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56277. transient="false" volatile="false"
  56278. static="true" final="true" visibility="public"
  56279. deprecated="not deprecated">
  56280. </field>
  56281. <field name="COMBINE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56282. transient="false" volatile="false"
  56283. static="true" final="true" visibility="public"
  56284. deprecated="not deprecated">
  56285. </field>
  56286. <field name="COMBINE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56287. transient="false" volatile="false"
  56288. static="true" final="true" visibility="public"
  56289. deprecated="not deprecated">
  56290. </field>
  56291. <field name="REDUCE_INPUT_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  56292. transient="false" volatile="false"
  56293. static="true" final="true" visibility="public"
  56294. deprecated="not deprecated">
  56295. </field>
  56296. <field name="REDUCE_SHUFFLE_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56297. transient="false" volatile="false"
  56298. static="true" final="true" visibility="public"
  56299. deprecated="not deprecated">
  56300. </field>
  56301. <field name="REDUCE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56302. transient="false" volatile="false"
  56303. static="true" final="true" visibility="public"
  56304. deprecated="not deprecated">
  56305. </field>
  56306. <field name="REDUCE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56307. transient="false" volatile="false"
  56308. static="true" final="true" visibility="public"
  56309. deprecated="not deprecated">
  56310. </field>
  56311. <field name="REDUCE_SKIPPED_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  56312. transient="false" volatile="false"
  56313. static="true" final="true" visibility="public"
  56314. deprecated="not deprecated">
  56315. </field>
  56316. <field name="REDUCE_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56317. transient="false" volatile="false"
  56318. static="true" final="true" visibility="public"
  56319. deprecated="not deprecated">
  56320. </field>
  56321. <field name="SPILLED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  56322. transient="false" volatile="false"
  56323. static="true" final="true" visibility="public"
  56324. deprecated="not deprecated">
  56325. </field>
  56326. <field name="SPLIT_RAW_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56327. transient="false" volatile="false"
  56328. static="true" final="true" visibility="public"
  56329. deprecated="not deprecated">
  56330. </field>
  56331. <field name="CPU_MILLISECONDS" type="org.apache.hadoop.mapred.Task.Counter"
  56332. transient="false" volatile="false"
  56333. static="true" final="true" visibility="public"
  56334. deprecated="not deprecated">
  56335. </field>
  56336. <field name="PHYSICAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56337. transient="false" volatile="false"
  56338. static="true" final="true" visibility="public"
  56339. deprecated="not deprecated">
  56340. </field>
  56341. <field name="VIRTUAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56342. transient="false" volatile="false"
  56343. static="true" final="true" visibility="public"
  56344. deprecated="not deprecated">
  56345. </field>
  56346. <field name="COMMITTED_HEAP_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  56347. transient="false" volatile="false"
  56348. static="true" final="true" visibility="public"
  56349. deprecated="not deprecated">
  56350. </field>
  56351. </class>
  56352. <!-- end class org.apache.hadoop.mapred.Task.Counter -->
  56353. <!-- start class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  56354. <class name="Task.NewCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  56355. abstract="false"
  56356. static="true" final="false" visibility="protected"
  56357. deprecated="not deprecated">
  56358. </class>
  56359. <!-- end class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  56360. <!-- start class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  56361. <class name="Task.OldCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  56362. abstract="false"
  56363. static="true" final="false" visibility="protected"
  56364. deprecated="not deprecated">
  56365. <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"
  56366. static="false" final="false" visibility="protected"
  56367. deprecated="not deprecated">
  56368. </constructor>
  56369. <method name="combine"
  56370. abstract="false" native="false" synchronized="false"
  56371. static="false" final="false" visibility="protected"
  56372. deprecated="not deprecated">
  56373. <param name="kvIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  56374. <param name="combineCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  56375. <exception name="IOException" type="java.io.IOException"/>
  56376. </method>
  56377. </class>
  56378. <!-- end class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  56379. <!-- start class org.apache.hadoop.mapred.Task.TaskReporter -->
  56380. <class name="Task.TaskReporter" extends="org.apache.hadoop.mapreduce.StatusReporter"
  56381. abstract="false"
  56382. static="false" final="false" visibility="protected"
  56383. deprecated="not deprecated">
  56384. <implements name="java.lang.Runnable"/>
  56385. <implements name="org.apache.hadoop.mapred.Reporter"/>
  56386. <method name="setStatus"
  56387. abstract="false" native="false" synchronized="false"
  56388. static="false" final="false" visibility="public"
  56389. deprecated="not deprecated">
  56390. <param name="status" type="java.lang.String"/>
  56391. </method>
  56392. <method name="setProgress"
  56393. abstract="false" native="false" synchronized="false"
  56394. static="false" final="false" visibility="public"
  56395. deprecated="not deprecated">
  56396. <param name="progress" type="float"/>
  56397. </method>
  56398. <method name="getProgress" return="float"
  56399. abstract="false" native="false" synchronized="false"
  56400. static="false" final="false" visibility="public"
  56401. deprecated="not deprecated">
  56402. </method>
  56403. <method name="progress"
  56404. abstract="false" native="false" synchronized="false"
  56405. static="false" final="false" visibility="public"
  56406. deprecated="not deprecated">
  56407. </method>
  56408. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  56409. abstract="false" native="false" synchronized="false"
  56410. static="false" final="false" visibility="public"
  56411. deprecated="not deprecated">
  56412. <param name="group" type="java.lang.String"/>
  56413. <param name="name" type="java.lang.String"/>
  56414. </method>
  56415. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  56416. abstract="false" native="false" synchronized="false"
  56417. static="false" final="false" visibility="public"
  56418. deprecated="not deprecated">
  56419. <param name="name" type="java.lang.Enum"/>
  56420. </method>
  56421. <method name="incrCounter"
  56422. abstract="false" native="false" synchronized="false"
  56423. static="false" final="false" visibility="public"
  56424. deprecated="not deprecated">
  56425. <param name="key" type="java.lang.Enum"/>
  56426. <param name="amount" type="long"/>
  56427. </method>
  56428. <method name="incrCounter"
  56429. abstract="false" native="false" synchronized="false"
  56430. static="false" final="false" visibility="public"
  56431. deprecated="not deprecated">
  56432. <param name="group" type="java.lang.String"/>
  56433. <param name="counter" type="java.lang.String"/>
  56434. <param name="amount" type="long"/>
  56435. </method>
  56436. <method name="setInputSplit"
  56437. abstract="false" native="false" synchronized="false"
  56438. static="false" final="false" visibility="public"
  56439. deprecated="not deprecated">
  56440. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  56441. </method>
  56442. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  56443. abstract="false" native="false" synchronized="false"
  56444. static="false" final="false" visibility="public"
  56445. deprecated="not deprecated">
  56446. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  56447. </method>
  56448. <method name="run"
  56449. abstract="false" native="false" synchronized="false"
  56450. static="false" final="false" visibility="public"
  56451. deprecated="not deprecated">
  56452. <doc>
  56453. <![CDATA[The communication thread handles communication with the parent (Task Tracker).
  56454. It sends progress updates if progress has been made or if the task needs to
  56455. let the parent know that it's alive. It also pings the parent to see if it's alive.]]>
  56456. </doc>
  56457. </method>
  56458. <method name="startCommunicationThread"
  56459. abstract="false" native="false" synchronized="false"
  56460. static="false" final="false" visibility="public"
  56461. deprecated="not deprecated">
  56462. </method>
  56463. <method name="stopCommunicationThread"
  56464. abstract="false" native="false" synchronized="false"
  56465. static="false" final="false" visibility="public"
  56466. deprecated="not deprecated">
  56467. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56468. </method>
  56469. </class>
  56470. <!-- end class org.apache.hadoop.mapred.Task.TaskReporter -->
  56471. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  56472. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  56473. abstract="false"
  56474. static="false" final="false" visibility="public"
  56475. deprecated="not deprecated">
  56476. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  56477. abstract="false" native="false" synchronized="false"
  56478. static="false" final="false" visibility="public"
  56479. deprecated="not deprecated">
  56480. <doc>
  56481. <![CDATA[Get the taskAttemptID.
  56482. @return TaskAttemptID]]>
  56483. </doc>
  56484. </method>
  56485. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  56486. abstract="false" native="false" synchronized="false"
  56487. static="false" final="false" visibility="public"
  56488. deprecated="not deprecated">
  56489. </method>
  56490. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  56491. abstract="false" native="false" synchronized="false"
  56492. static="false" final="false" visibility="public"
  56493. deprecated="not deprecated">
  56494. </method>
  56495. <method name="progress"
  56496. abstract="false" native="false" synchronized="false"
  56497. static="false" final="false" visibility="public"
  56498. deprecated="not deprecated">
  56499. </method>
  56500. </class>
  56501. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  56502. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  56503. <class name="TaskAttemptID" extends="org.apache.hadoop.mapreduce.TaskAttemptID"
  56504. abstract="false"
  56505. static="false" final="false" visibility="public"
  56506. deprecated="not deprecated">
  56507. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  56508. static="false" final="false" visibility="public"
  56509. deprecated="not deprecated">
  56510. <doc>
  56511. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  56512. @param taskId TaskID that this task belongs to
  56513. @param id the task attempt number]]>
  56514. </doc>
  56515. </constructor>
  56516. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  56517. static="false" final="false" visibility="public"
  56518. deprecated="not deprecated">
  56519. <doc>
  56520. <![CDATA[Constructs a TaskId object from given parts.
  56521. @param jtIdentifier jobTracker identifier
  56522. @param jobId job number
  56523. @param isMap whether the tip is a map
  56524. @param taskId taskId number
  56525. @param id the task attempt number]]>
  56526. </doc>
  56527. </constructor>
  56528. <constructor name="TaskAttemptID"
  56529. static="false" final="false" visibility="public"
  56530. deprecated="not deprecated">
  56531. </constructor>
  56532. <method name="downgrade" return="org.apache.hadoop.mapred.TaskAttemptID"
  56533. abstract="false" native="false" synchronized="false"
  56534. static="true" final="false" visibility="public"
  56535. deprecated="not deprecated">
  56536. <param name="old" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  56537. <doc>
  56538. <![CDATA[Downgrade a new TaskAttemptID to an old one
  56539. @param old the new id
  56540. @return either old or a new TaskAttemptID constructed to match old]]>
  56541. </doc>
  56542. </method>
  56543. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  56544. abstract="false" native="false" synchronized="false"
  56545. static="false" final="false" visibility="public"
  56546. deprecated="not deprecated">
  56547. </method>
  56548. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  56549. abstract="false" native="false" synchronized="false"
  56550. static="false" final="false" visibility="public"
  56551. deprecated="not deprecated">
  56552. </method>
  56553. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  56554. abstract="false" native="false" synchronized="false"
  56555. static="true" final="false" visibility="public"
  56556. deprecated="not deprecated">
  56557. <param name="in" type="java.io.DataInput"/>
  56558. <exception name="IOException" type="java.io.IOException"/>
  56559. </method>
  56560. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  56561. abstract="false" native="false" synchronized="false"
  56562. static="true" final="false" visibility="public"
  56563. deprecated="not deprecated">
  56564. <param name="str" type="java.lang.String"/>
  56565. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  56566. <doc>
  56567. <![CDATA[Construct a TaskAttemptID object from given string
  56568. @return constructed TaskAttemptID object or null if the given String is null
  56569. @throws IllegalArgumentException if the given string is malformed]]>
  56570. </doc>
  56571. </method>
  56572. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  56573. abstract="false" native="false" synchronized="false"
  56574. static="true" final="false" visibility="public"
  56575. deprecated="not deprecated">
  56576. <param name="jtIdentifier" type="java.lang.String"/>
  56577. <param name="jobId" type="java.lang.Integer"/>
  56578. <param name="isMap" type="java.lang.Boolean"/>
  56579. <param name="taskId" type="java.lang.Integer"/>
  56580. <param name="attemptId" type="java.lang.Integer"/>
  56581. <doc>
  56582. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  56583. be given null, in which case that part of the regex will be generic.
  56584. For example to obtain a regex matching <i>all task attempt IDs</i>
  56585. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  56586. map task</i>, we would use :
  56587. <pre>
  56588. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  56589. </pre>
  56590. which will return :
  56591. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  56592. @param jtIdentifier jobTracker identifier, or null
  56593. @param jobId job number, or null
  56594. @param isMap whether the tip is a map, or null
  56595. @param taskId taskId number, or null
  56596. @param attemptId the task attempt number, or null
  56597. @return a regex pattern matching TaskAttemptIDs]]>
  56598. </doc>
  56599. </method>
  56600. <doc>
  56601. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  56602. a task attempt. Each task attempt is one particular instance of a Map or
  56603. Reduce Task identified by its TaskID.
  56604. TaskAttemptID consists of 2 parts. First part is the
  56605. {@link TaskID}, that this TaskAttemptID belongs to.
  56606. Second part is the task attempt number. <br>
  56607. An example TaskAttemptID is :
  56608. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  56609. zeroth task attempt for the fifth map task in the third job
  56610. running at the jobtracker started at <code>200707121733</code>.
  56611. <p>
  56612. Applications should never construct or parse TaskAttemptID strings
  56613. , but rather use appropriate constructors or {@link #forName(String)}
  56614. method.
  56615. @see JobID
  56616. @see TaskID]]>
  56617. </doc>
  56618. </class>
  56619. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  56620. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  56621. <class name="TaskCompletionEvent" extends="java.lang.Object"
  56622. abstract="false"
  56623. static="false" final="false" visibility="public"
  56624. deprecated="not deprecated">
  56625. <implements name="org.apache.hadoop.io.Writable"/>
  56626. <constructor name="TaskCompletionEvent"
  56627. static="false" final="false" visibility="public"
  56628. deprecated="not deprecated">
  56629. <doc>
  56630. <![CDATA[Default constructor for Writable.]]>
  56631. </doc>
  56632. </constructor>
  56633. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  56634. static="false" final="false" visibility="public"
  56635. deprecated="not deprecated">
  56636. <doc>
  56637. <![CDATA[Constructor. eventId should be created externally and incremented
  56638. per event for each job.
  56639. @param eventId event id, event id should be unique and assigned in
  56640. incrementally, starting from 0.
  56641. @param taskId task id
  56642. @param status task's status
  56643. @param taskTrackerHttp task tracker's host:port for http.]]>
  56644. </doc>
  56645. </constructor>
  56646. <method name="getEventId" return="int"
  56647. abstract="false" native="false" synchronized="false"
  56648. static="false" final="false" visibility="public"
  56649. deprecated="not deprecated">
  56650. <doc>
  56651. <![CDATA[Returns event Id.
  56652. @return event id]]>
  56653. </doc>
  56654. </method>
  56655. <method name="getTaskId" return="java.lang.String"
  56656. abstract="false" native="false" synchronized="false"
  56657. static="false" final="false" visibility="public"
  56658. deprecated="use {@link #getTaskAttemptId()} instead.">
  56659. <doc>
  56660. <![CDATA[Returns task id.
  56661. @return task id
  56662. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  56663. </doc>
  56664. </method>
  56665. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  56666. abstract="false" native="false" synchronized="false"
  56667. static="false" final="false" visibility="public"
  56668. deprecated="not deprecated">
  56669. <doc>
  56670. <![CDATA[Returns task id.
  56671. @return task id]]>
  56672. </doc>
  56673. </method>
  56674. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56675. abstract="false" native="false" synchronized="false"
  56676. static="false" final="false" visibility="public"
  56677. deprecated="not deprecated">
  56678. <doc>
  56679. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  56680. @return task tracker status]]>
  56681. </doc>
  56682. </method>
  56683. <method name="getTaskTrackerHttp" return="java.lang.String"
  56684. abstract="false" native="false" synchronized="false"
  56685. static="false" final="false" visibility="public"
  56686. deprecated="not deprecated">
  56687. <doc>
  56688. <![CDATA[http location of the tasktracker where this task ran.
  56689. @return http location of tasktracker user logs]]>
  56690. </doc>
  56691. </method>
  56692. <method name="getTaskRunTime" return="int"
  56693. abstract="false" native="false" synchronized="false"
  56694. static="false" final="false" visibility="public"
  56695. deprecated="not deprecated">
  56696. <doc>
  56697. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  56698. </doc>
  56699. </method>
  56700. <method name="setTaskRunTime"
  56701. abstract="false" native="false" synchronized="false"
  56702. static="false" final="false" visibility="public"
  56703. deprecated="not deprecated">
  56704. <param name="taskCompletionTime" type="int"/>
  56705. <doc>
  56706. <![CDATA[Set the task completion time
  56707. @param taskCompletionTime time (in millisec) the task took to complete]]>
  56708. </doc>
  56709. </method>
  56710. <method name="setEventId"
  56711. abstract="false" native="false" synchronized="false"
  56712. static="false" final="false" visibility="public"
  56713. deprecated="not deprecated">
  56714. <param name="eventId" type="int"/>
  56715. <doc>
  56716. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  56717. @param eventId]]>
  56718. </doc>
  56719. </method>
  56720. <method name="setTaskId"
  56721. abstract="false" native="false" synchronized="false"
  56722. static="false" final="false" visibility="public"
  56723. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  56724. <param name="taskId" type="java.lang.String"/>
  56725. <doc>
  56726. <![CDATA[Sets task id.
  56727. @param taskId
  56728. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  56729. </doc>
  56730. </method>
  56731. <method name="setTaskID"
  56732. abstract="false" native="false" synchronized="false"
  56733. static="false" final="false" visibility="public"
  56734. deprecated="not deprecated">
  56735. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56736. <doc>
  56737. <![CDATA[Sets task id.
  56738. @param taskId]]>
  56739. </doc>
  56740. </method>
  56741. <method name="setTaskStatus"
  56742. abstract="false" native="false" synchronized="false"
  56743. static="false" final="false" visibility="public"
  56744. deprecated="not deprecated">
  56745. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  56746. <doc>
  56747. <![CDATA[Set task status.
  56748. @param status]]>
  56749. </doc>
  56750. </method>
  56751. <method name="setTaskTrackerHttp"
  56752. abstract="false" native="false" synchronized="false"
  56753. static="false" final="false" visibility="public"
  56754. deprecated="not deprecated">
  56755. <param name="taskTrackerHttp" type="java.lang.String"/>
  56756. <doc>
  56757. <![CDATA[Set task tracker http location.
  56758. @param taskTrackerHttp]]>
  56759. </doc>
  56760. </method>
  56761. <method name="toString" return="java.lang.String"
  56762. abstract="false" native="false" synchronized="false"
  56763. static="false" final="false" visibility="public"
  56764. deprecated="not deprecated">
  56765. </method>
  56766. <method name="equals" return="boolean"
  56767. abstract="false" native="false" synchronized="false"
  56768. static="false" final="false" visibility="public"
  56769. deprecated="not deprecated">
  56770. <param name="o" type="java.lang.Object"/>
  56771. </method>
  56772. <method name="hashCode" return="int"
  56773. abstract="false" native="false" synchronized="false"
  56774. static="false" final="false" visibility="public"
  56775. deprecated="not deprecated">
  56776. </method>
  56777. <method name="isMapTask" return="boolean"
  56778. abstract="false" native="false" synchronized="false"
  56779. static="false" final="false" visibility="public"
  56780. deprecated="not deprecated">
  56781. </method>
  56782. <method name="idWithinJob" return="int"
  56783. abstract="false" native="false" synchronized="false"
  56784. static="false" final="false" visibility="public"
  56785. deprecated="not deprecated">
  56786. </method>
  56787. <method name="write"
  56788. abstract="false" native="false" synchronized="false"
  56789. static="false" final="false" visibility="public"
  56790. deprecated="not deprecated">
  56791. <param name="out" type="java.io.DataOutput"/>
  56792. <exception name="IOException" type="java.io.IOException"/>
  56793. </method>
  56794. <method name="readFields"
  56795. abstract="false" native="false" synchronized="false"
  56796. static="false" final="false" visibility="public"
  56797. deprecated="not deprecated">
  56798. <param name="in" type="java.io.DataInput"/>
  56799. <exception name="IOException" type="java.io.IOException"/>
  56800. </method>
  56801. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  56802. transient="false" volatile="false"
  56803. static="true" final="true" visibility="public"
  56804. deprecated="not deprecated">
  56805. </field>
  56806. <doc>
  56807. <![CDATA[This is used to track task completion events on
  56808. job tracker.]]>
  56809. </doc>
  56810. </class>
  56811. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  56812. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  56813. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum"
  56814. abstract="false"
  56815. static="true" final="true" visibility="public"
  56816. deprecated="not deprecated">
  56817. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  56818. abstract="false" native="false" synchronized="false"
  56819. static="true" final="false" visibility="public"
  56820. deprecated="not deprecated">
  56821. </method>
  56822. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56823. abstract="false" native="false" synchronized="false"
  56824. static="true" final="false" visibility="public"
  56825. deprecated="not deprecated">
  56826. <param name="name" type="java.lang.String"/>
  56827. </method>
  56828. <field name="FAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56829. transient="false" volatile="false"
  56830. static="true" final="true" visibility="public"
  56831. deprecated="not deprecated">
  56832. </field>
  56833. <field name="KILLED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56834. transient="false" volatile="false"
  56835. static="true" final="true" visibility="public"
  56836. deprecated="not deprecated">
  56837. </field>
  56838. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56839. transient="false" volatile="false"
  56840. static="true" final="true" visibility="public"
  56841. deprecated="not deprecated">
  56842. </field>
  56843. <field name="OBSOLETE" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56844. transient="false" volatile="false"
  56845. static="true" final="true" visibility="public"
  56846. deprecated="not deprecated">
  56847. </field>
  56848. <field name="TIPFAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  56849. transient="false" volatile="false"
  56850. static="true" final="true" visibility="public"
  56851. deprecated="not deprecated">
  56852. </field>
  56853. </class>
  56854. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  56855. <!-- start class org.apache.hadoop.mapred.TaskController -->
  56856. <class name="TaskController" extends="java.lang.Object"
  56857. abstract="true"
  56858. static="false" final="false" visibility="public"
  56859. deprecated="not deprecated">
  56860. <implements name="org.apache.hadoop.conf.Configurable"/>
  56861. <constructor name="TaskController"
  56862. static="false" final="false" visibility="public"
  56863. deprecated="not deprecated">
  56864. </constructor>
  56865. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  56866. abstract="false" native="false" synchronized="false"
  56867. static="false" final="false" visibility="public"
  56868. deprecated="not deprecated">
  56869. </method>
  56870. <method name="getLocalDirs" return="java.lang.String[]"
  56871. abstract="false" native="false" synchronized="false"
  56872. static="false" final="false" visibility="public"
  56873. deprecated="not deprecated">
  56874. </method>
  56875. <method name="setConf"
  56876. abstract="false" native="false" synchronized="false"
  56877. static="false" final="false" visibility="public"
  56878. deprecated="not deprecated">
  56879. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56880. </method>
  56881. <method name="setup"
  56882. abstract="true" native="false" synchronized="false"
  56883. static="false" final="false" visibility="public"
  56884. deprecated="not deprecated">
  56885. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  56886. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  56887. <exception name="IOException" type="java.io.IOException"/>
  56888. <doc>
  56889. <![CDATA[Does initialization and setup.
  56890. @param allocator the local dir allocator to use
  56891. @param localStorage local storage to obtain dirs from]]>
  56892. </doc>
  56893. </method>
  56894. <method name="initializeJob"
  56895. abstract="true" native="false" synchronized="false"
  56896. static="false" final="false" visibility="public"
  56897. deprecated="not deprecated">
  56898. <param name="user" type="java.lang.String"/>
  56899. <param name="jobid" type="java.lang.String"/>
  56900. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  56901. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  56902. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56903. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  56904. <exception name="IOException" type="java.io.IOException"/>
  56905. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56906. <doc>
  56907. <![CDATA[Create all of the directories necessary for the job to start and download
  56908. all of the job and private distributed cache files.
  56909. Creates both the user directories and the job log directory.
  56910. @param user the user name
  56911. @param jobid the job
  56912. @param credentials a filename containing the job secrets
  56913. @param jobConf the path to the localized configuration file
  56914. @param taskTracker the connection the task tracker
  56915. @param ttAddr the tasktracker's RPC address
  56916. @throws IOException
  56917. @throws InterruptedException]]>
  56918. </doc>
  56919. </method>
  56920. <method name="launchTask" return="int"
  56921. abstract="true" native="false" synchronized="false"
  56922. static="false" final="false" visibility="public"
  56923. deprecated="not deprecated">
  56924. <param name="user" type="java.lang.String"/>
  56925. <param name="jobId" type="java.lang.String"/>
  56926. <param name="attemptId" type="java.lang.String"/>
  56927. <param name="setup" type="java.util.List"/>
  56928. <param name="jvmArguments" type="java.util.List"/>
  56929. <param name="currentWorkDirectory" type="java.io.File"/>
  56930. <param name="stdout" type="java.lang.String"/>
  56931. <param name="stderr" type="java.lang.String"/>
  56932. <exception name="IOException" type="java.io.IOException"/>
  56933. <doc>
  56934. <![CDATA[Create all of the directories for the task and launches the child jvm.
  56935. @param user the user name
  56936. @param jobId the jobId in question
  56937. @param attemptId the attempt id (cleanup attempts have .cleanup suffix)
  56938. @param setup list of shell commands to execute before the jvm
  56939. @param jvmArguments list of jvm arguments
  56940. @param currentWorkDirectory the full path of the cwd for the task
  56941. @param stdout the file to redirect stdout to
  56942. @param stderr the file to redirect stderr to
  56943. @return the exit code for the task
  56944. @throws IOException]]>
  56945. </doc>
  56946. </method>
  56947. <method name="signalTask"
  56948. abstract="true" native="false" synchronized="false"
  56949. static="false" final="false" visibility="public"
  56950. deprecated="not deprecated">
  56951. <param name="user" type="java.lang.String"/>
  56952. <param name="taskPid" type="int"/>
  56953. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  56954. <exception name="IOException" type="java.io.IOException"/>
  56955. <doc>
  56956. <![CDATA[Send a signal to a task pid as the user.
  56957. @param user the user name
  56958. @param taskPid the pid of the task
  56959. @param signal the id of the signal to send]]>
  56960. </doc>
  56961. </method>
  56962. <method name="deleteAsUser"
  56963. abstract="true" native="false" synchronized="false"
  56964. static="false" final="false" visibility="public"
  56965. deprecated="not deprecated">
  56966. <param name="user" type="java.lang.String"/>
  56967. <param name="subDir" type="java.lang.String"/>
  56968. <exception name="IOException" type="java.io.IOException"/>
  56969. <doc>
  56970. <![CDATA[Delete the user's files under all of the task tracker root directories.
  56971. @param user the user name
  56972. @param subDir the path relative to the user's subdirectory under
  56973. the task tracker root directories.
  56974. @throws IOException]]>
  56975. </doc>
  56976. </method>
  56977. <method name="createLogDir"
  56978. abstract="true" native="false" synchronized="false"
  56979. static="false" final="false" visibility="public"
  56980. deprecated="not deprecated">
  56981. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56982. <param name="isCleanup" type="boolean"/>
  56983. <exception name="IOException" type="java.io.IOException"/>
  56984. <doc>
  56985. <![CDATA[Creates task log dir
  56986. @param taskID ID of the task
  56987. @param isCleanup If the task is cleanup task or not
  56988. @throws IOException]]>
  56989. </doc>
  56990. </method>
  56991. <method name="deleteLogAsUser"
  56992. abstract="true" native="false" synchronized="false"
  56993. static="false" final="false" visibility="public"
  56994. deprecated="not deprecated">
  56995. <param name="user" type="java.lang.String"/>
  56996. <param name="subDir" type="java.lang.String"/>
  56997. <exception name="IOException" type="java.io.IOException"/>
  56998. <doc>
  56999. <![CDATA[Delete the user's files under the userlogs directory.
  57000. @param user the user to work as
  57001. @param subDir the path under the userlogs directory.
  57002. @throws IOException]]>
  57003. </doc>
  57004. </method>
  57005. <method name="truncateLogsAsUser"
  57006. abstract="true" native="false" synchronized="false"
  57007. static="false" final="false" visibility="public"
  57008. deprecated="not deprecated">
  57009. <param name="user" type="java.lang.String"/>
  57010. <param name="allAttempts" type="java.util.List"/>
  57011. <exception name="IOException" type="java.io.IOException"/>
  57012. <doc>
  57013. <![CDATA[Run the passed command as the user
  57014. @param user
  57015. @param allAttempts the list of attempts that the JVM ran
  57016. @throws IOException]]>
  57017. </doc>
  57018. </method>
  57019. <method name="getRunAsUser" return="java.lang.String"
  57020. abstract="false" native="false" synchronized="false"
  57021. static="false" final="false" visibility="public"
  57022. deprecated="not deprecated">
  57023. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57024. <doc>
  57025. <![CDATA[Returns the local unix user that a given job will run as.]]>
  57026. </doc>
  57027. </method>
  57028. <method name="writeCommand" return="java.lang.String"
  57029. abstract="false" native="false" synchronized="false"
  57030. static="true" final="false" visibility="protected"
  57031. deprecated="not deprecated">
  57032. <param name="cmdLine" type="java.lang.String"/>
  57033. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  57034. <param name="commandFile" type="org.apache.hadoop.fs.Path"/>
  57035. <exception name="IOException" type="java.io.IOException"/>
  57036. </method>
  57037. <method name="logOutput"
  57038. abstract="false" native="false" synchronized="false"
  57039. static="false" final="false" visibility="protected"
  57040. deprecated="not deprecated">
  57041. <param name="output" type="java.lang.String"/>
  57042. </method>
  57043. <field name="LOG" type="org.apache.commons.logging.Log"
  57044. transient="false" volatile="false"
  57045. static="true" final="true" visibility="public"
  57046. deprecated="not deprecated">
  57047. </field>
  57048. <field name="COMMAND_FILE" type="java.lang.String"
  57049. transient="false" volatile="false"
  57050. static="true" final="true" visibility="protected"
  57051. deprecated="not deprecated">
  57052. </field>
  57053. <field name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"
  57054. transient="false" volatile="false"
  57055. static="false" final="false" visibility="protected"
  57056. deprecated="not deprecated">
  57057. </field>
  57058. <field name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"
  57059. transient="false" volatile="false"
  57060. static="false" final="false" visibility="protected"
  57061. deprecated="not deprecated">
  57062. </field>
  57063. <field name="TASK_LAUNCH_SCRIPT_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  57064. transient="false" volatile="false"
  57065. static="true" final="true" visibility="public"
  57066. deprecated="not deprecated">
  57067. </field>
  57068. <doc>
  57069. <![CDATA[Controls initialization, finalization and clean up of tasks, and
  57070. also the launching and killing of task JVMs.
  57071. This class defines the API for initializing, finalizing and cleaning
  57072. up of tasks, as also the launching and killing task JVMs.
  57073. Subclasses of this class will implement the logic required for
  57074. performing the actual actions.
  57075. <br/>
  57076. NOTE: This class is internal only class and not intended for users!!]]>
  57077. </doc>
  57078. </class>
  57079. <!-- end class org.apache.hadoop.mapred.TaskController -->
  57080. <!-- start class org.apache.hadoop.mapred.TaskGraphServlet -->
  57081. <class name="TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  57082. abstract="false"
  57083. static="false" final="false" visibility="public"
  57084. deprecated="not deprecated">
  57085. <constructor name="TaskGraphServlet"
  57086. static="false" final="false" visibility="public"
  57087. deprecated="not deprecated">
  57088. </constructor>
  57089. <method name="doGet"
  57090. abstract="false" native="false" synchronized="false"
  57091. static="false" final="false" visibility="public"
  57092. deprecated="not deprecated">
  57093. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  57094. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  57095. <exception name="ServletException" type="javax.servlet.ServletException"/>
  57096. <exception name="IOException" type="java.io.IOException"/>
  57097. </method>
  57098. <field name="width" type="int"
  57099. transient="false" volatile="false"
  57100. static="true" final="true" visibility="public"
  57101. deprecated="not deprecated">
  57102. <doc>
  57103. <![CDATA[height of the graph w/o margins]]>
  57104. </doc>
  57105. </field>
  57106. <field name="height" type="int"
  57107. transient="false" volatile="false"
  57108. static="true" final="true" visibility="public"
  57109. deprecated="not deprecated">
  57110. <doc>
  57111. <![CDATA[height of the graph w/o margins]]>
  57112. </doc>
  57113. </field>
  57114. <field name="ymargin" type="int"
  57115. transient="false" volatile="false"
  57116. static="true" final="true" visibility="public"
  57117. deprecated="not deprecated">
  57118. <doc>
  57119. <![CDATA[margin space on y axis]]>
  57120. </doc>
  57121. </field>
  57122. <field name="xmargin" type="int"
  57123. transient="false" volatile="false"
  57124. static="true" final="true" visibility="public"
  57125. deprecated="not deprecated">
  57126. <doc>
  57127. <![CDATA[margin space on x axis]]>
  57128. </doc>
  57129. </field>
  57130. <doc>
  57131. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  57132. statuses]]>
  57133. </doc>
  57134. </class>
  57135. <!-- end class org.apache.hadoop.mapred.TaskGraphServlet -->
  57136. <!-- start class org.apache.hadoop.mapred.TaskID -->
  57137. <class name="TaskID" extends="org.apache.hadoop.mapreduce.TaskID"
  57138. abstract="false"
  57139. static="false" final="false" visibility="public"
  57140. deprecated="not deprecated">
  57141. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  57142. static="false" final="false" visibility="public"
  57143. deprecated="not deprecated">
  57144. <doc>
  57145. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  57146. @param jobId JobID that this tip belongs to
  57147. @param isMap whether the tip is a map
  57148. @param id the tip number]]>
  57149. </doc>
  57150. </constructor>
  57151. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  57152. static="false" final="false" visibility="public"
  57153. deprecated="not deprecated">
  57154. <doc>
  57155. <![CDATA[Constructs a TaskInProgressId object from given parts.
  57156. @param jtIdentifier jobTracker identifier
  57157. @param jobId job number
  57158. @param isMap whether the tip is a map
  57159. @param id the tip number]]>
  57160. </doc>
  57161. </constructor>
  57162. <constructor name="TaskID"
  57163. static="false" final="false" visibility="public"
  57164. deprecated="not deprecated">
  57165. </constructor>
  57166. <method name="downgrade" return="org.apache.hadoop.mapred.TaskID"
  57167. abstract="false" native="false" synchronized="false"
  57168. static="true" final="false" visibility="public"
  57169. deprecated="not deprecated">
  57170. <param name="old" type="org.apache.hadoop.mapreduce.TaskID"/>
  57171. <doc>
  57172. <![CDATA[Downgrade a new TaskID to an old one
  57173. @param old a new or old TaskID
  57174. @return either old or a new TaskID build to match old]]>
  57175. </doc>
  57176. </method>
  57177. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  57178. abstract="false" native="false" synchronized="false"
  57179. static="true" final="false" visibility="public"
  57180. deprecated="not deprecated">
  57181. <param name="in" type="java.io.DataInput"/>
  57182. <exception name="IOException" type="java.io.IOException"/>
  57183. </method>
  57184. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  57185. abstract="false" native="false" synchronized="false"
  57186. static="false" final="false" visibility="public"
  57187. deprecated="not deprecated">
  57188. </method>
  57189. <method name="getTaskIDsPattern" return="java.lang.String"
  57190. abstract="false" native="false" synchronized="false"
  57191. static="true" final="false" visibility="public"
  57192. deprecated="not deprecated">
  57193. <param name="jtIdentifier" type="java.lang.String"/>
  57194. <param name="jobId" type="java.lang.Integer"/>
  57195. <param name="isMap" type="java.lang.Boolean"/>
  57196. <param name="taskId" type="java.lang.Integer"/>
  57197. <doc>
  57198. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  57199. be given null, in which case that part of the regex will be generic.
  57200. For example to obtain a regex matching <i>the first map task</i>
  57201. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  57202. <pre>
  57203. TaskID.getTaskIDsPattern(null, null, true, 1);
  57204. </pre>
  57205. which will return :
  57206. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  57207. @param jtIdentifier jobTracker identifier, or null
  57208. @param jobId job number, or null
  57209. @param isMap whether the tip is a map, or null
  57210. @param taskId taskId number, or null
  57211. @return a regex pattern matching TaskIDs]]>
  57212. </doc>
  57213. </method>
  57214. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  57215. abstract="false" native="false" synchronized="false"
  57216. static="true" final="false" visibility="public"
  57217. deprecated="not deprecated">
  57218. <param name="str" type="java.lang.String"/>
  57219. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  57220. </method>
  57221. <doc>
  57222. <![CDATA[TaskID represents the immutable and unique identifier for
  57223. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  57224. execute the Map or Reduce Task, each of which are uniquely indentified by
  57225. their TaskAttemptID.
  57226. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  57227. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  57228. representing whether the task is a map task or a reduce task.
  57229. And the third part is the task number. <br>
  57230. An example TaskID is :
  57231. <code>task_200707121733_0003_m_000005</code> , which represents the
  57232. fifth map task in the third job running at the jobtracker
  57233. started at <code>200707121733</code>.
  57234. <p>
  57235. Applications should never construct or parse TaskID strings
  57236. , but rather use appropriate constructors or {@link #forName(String)}
  57237. method.
  57238. @see JobID
  57239. @see TaskAttemptID]]>
  57240. </doc>
  57241. </class>
  57242. <!-- end class org.apache.hadoop.mapred.TaskID -->
  57243. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  57244. <class name="TaskLog" extends="java.lang.Object"
  57245. abstract="false"
  57246. static="false" final="false" visibility="public"
  57247. deprecated="not deprecated">
  57248. <constructor name="TaskLog"
  57249. static="false" final="false" visibility="public"
  57250. deprecated="not deprecated">
  57251. </constructor>
  57252. <method name="createTaskAttemptLogDir"
  57253. abstract="false" native="false" synchronized="false"
  57254. static="true" final="false" visibility="public"
  57255. deprecated="not deprecated">
  57256. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57257. <param name="isCleanup" type="boolean"/>
  57258. <param name="localDirs" type="java.lang.String[]"/>
  57259. <exception name="IOException" type="java.io.IOException"/>
  57260. <doc>
  57261. <![CDATA[Create log directory for the given attempt. This involves creating the
  57262. following and setting proper permissions for the new directories
  57263. <br>{hadoop.log.dir}/userlogs/<jobid>
  57264. <br>{hadoop.log.dir}/userlogs/<jobid>/<attempt-id-as-symlink>
  57265. <br>{one of the mapred-local-dirs}/userlogs/<jobid>
  57266. <br>{one of the mapred-local-dirs}/userlogs/<jobid>/<attempt-id>
  57267. @param taskID attempt-id for which log dir is to be created
  57268. @param isCleanup Is this attempt a cleanup attempt ?
  57269. @param localDirs mapred local directories
  57270. @throws IOException]]>
  57271. </doc>
  57272. </method>
  57273. <method name="getTaskAttemptLogDir" return="java.lang.String"
  57274. abstract="false" native="false" synchronized="false"
  57275. static="true" final="false" visibility="public"
  57276. deprecated="not deprecated">
  57277. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57278. <param name="cleanupSuffix" type="java.lang.String"/>
  57279. <param name="localDirs" type="java.lang.String[]"/>
  57280. <exception name="IOException" type="java.io.IOException"/>
  57281. <doc>
  57282. <![CDATA[Get attempt log directory path for the given attempt-id under randomly
  57283. selected mapred local directory.
  57284. @param taskID attempt-id for which log dir path is needed
  57285. @param cleanupSuffix ".cleanup" if this attempt is a cleanup attempt
  57286. @param localDirs mapred local directories
  57287. @return target task attempt log directory
  57288. @throws IOException]]>
  57289. </doc>
  57290. </method>
  57291. <method name="getTaskLogFile" return="java.io.File"
  57292. abstract="false" native="false" synchronized="false"
  57293. static="true" final="false" visibility="public"
  57294. deprecated="not deprecated">
  57295. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57296. <param name="isCleanup" type="boolean"/>
  57297. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  57298. </method>
  57299. <method name="getBaseLogDir" return="java.lang.String"
  57300. abstract="false" native="false" synchronized="false"
  57301. static="true" final="false" visibility="public"
  57302. deprecated="not deprecated">
  57303. </method>
  57304. <method name="syncLogs"
  57305. abstract="false" native="false" synchronized="true"
  57306. static="true" final="false" visibility="public"
  57307. deprecated="not deprecated">
  57308. <param name="logLocation" type="java.lang.String"/>
  57309. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57310. <param name="isCleanup" type="boolean"/>
  57311. <param name="segmented" type="boolean"/>
  57312. <exception name="IOException" type="java.io.IOException"/>
  57313. </method>
  57314. <method name="getTaskLogLength" return="long"
  57315. abstract="false" native="false" synchronized="false"
  57316. static="true" final="false" visibility="public"
  57317. deprecated="not deprecated">
  57318. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57319. <doc>
  57320. <![CDATA[Get the desired maximum length of task's logs.
  57321. @param conf the job to look in
  57322. @return the number of bytes to cap the log files at]]>
  57323. </doc>
  57324. </method>
  57325. <method name="captureOutAndError" return="java.util.List"
  57326. abstract="false" native="false" synchronized="false"
  57327. static="true" final="false" visibility="public"
  57328. deprecated="not deprecated">
  57329. <param name="cmd" type="java.util.List"/>
  57330. <param name="stdoutFilename" type="java.io.File"/>
  57331. <param name="stderrFilename" type="java.io.File"/>
  57332. <param name="tailLength" type="long"/>
  57333. <exception name="IOException" type="java.io.IOException"/>
  57334. <doc>
  57335. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57336. If the tailLength is 0, the entire output will be saved.
  57337. @param cmd The command and the arguments that should be run
  57338. @param stdoutFilename The filename that stdout should be saved to
  57339. @param stderrFilename The filename that stderr should be saved to
  57340. @param tailLength The length of the tail to be saved.
  57341. @return the modified command that should be run]]>
  57342. </doc>
  57343. </method>
  57344. <method name="captureOutAndError" return="java.util.List"
  57345. abstract="false" native="false" synchronized="false"
  57346. static="true" final="false" visibility="public"
  57347. deprecated="not deprecated">
  57348. <param name="setup" type="java.util.List"/>
  57349. <param name="cmd" type="java.util.List"/>
  57350. <param name="stdoutFilename" type="java.io.File"/>
  57351. <param name="stderrFilename" type="java.io.File"/>
  57352. <param name="tailLength" type="long"/>
  57353. <exception name="IOException" type="java.io.IOException"/>
  57354. <doc>
  57355. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57356. Setup commands such as setting memory limit can be passed which
  57357. will be executed before exec.
  57358. If the tailLength is 0, the entire output will be saved.
  57359. @param setup The setup commands for the execed process.
  57360. @param cmd The command and the arguments that should be run
  57361. @param stdoutFilename The filename that stdout should be saved to
  57362. @param stderrFilename The filename that stderr should be saved to
  57363. @param tailLength The length of the tail to be saved.
  57364. @return the modified command that should be run]]>
  57365. </doc>
  57366. </method>
  57367. <method name="captureOutAndError" return="java.util.List"
  57368. abstract="false" native="false" synchronized="false"
  57369. static="true" final="false" visibility="public"
  57370. deprecated="pidFiles are no more used. Instead pid is exported to
  57371. env variable JVM_PID.">
  57372. <param name="setup" type="java.util.List"/>
  57373. <param name="cmd" type="java.util.List"/>
  57374. <param name="stdoutFilename" type="java.io.File"/>
  57375. <param name="stderrFilename" type="java.io.File"/>
  57376. <param name="tailLength" type="long"/>
  57377. <param name="pidFileName" type="java.lang.String"/>
  57378. <exception name="IOException" type="java.io.IOException"/>
  57379. <doc>
  57380. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57381. Setup commands such as setting memory limit can be passed which
  57382. will be executed before exec.
  57383. If the tailLength is 0, the entire output will be saved.
  57384. @param setup The setup commands for the execed process.
  57385. @param cmd The command and the arguments that should be run
  57386. @param stdoutFilename The filename that stdout should be saved to
  57387. @param stderrFilename The filename that stderr should be saved to
  57388. @param tailLength The length of the tail to be saved.
  57389. @deprecated pidFiles are no more used. Instead pid is exported to
  57390. env variable JVM_PID.
  57391. @return the modified command that should be run]]>
  57392. </doc>
  57393. </method>
  57394. <method name="captureOutAndError" return="java.util.List"
  57395. abstract="false" native="false" synchronized="false"
  57396. static="true" final="false" visibility="public"
  57397. deprecated="pidFiles are no more used. Instead pid is exported to
  57398. env variable JVM_PID.">
  57399. <param name="setup" type="java.util.List"/>
  57400. <param name="cmd" type="java.util.List"/>
  57401. <param name="stdoutFilename" type="java.io.File"/>
  57402. <param name="stderrFilename" type="java.io.File"/>
  57403. <param name="tailLength" type="long"/>
  57404. <param name="useSetsid" type="boolean"/>
  57405. <param name="pidFileName" type="java.lang.String"/>
  57406. <exception name="IOException" type="java.io.IOException"/>
  57407. <doc>
  57408. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57409. Setup commands such as setting memory limit can be passed which
  57410. will be executed before exec.
  57411. If the tailLength is 0, the entire output will be saved.
  57412. @param setup The setup commands for the execed process.
  57413. @param cmd The command and the arguments that should be run
  57414. @param stdoutFilename The filename that stdout should be saved to
  57415. @param stderrFilename The filename that stderr should be saved to
  57416. @param tailLength The length of the tail to be saved.
  57417. @param useSetsid Should setsid be used in the command or not.
  57418. @deprecated pidFiles are no more used. Instead pid is exported to
  57419. env variable JVM_PID.
  57420. @return the modified command that should be run]]>
  57421. </doc>
  57422. </method>
  57423. <method name="captureOutAndError" return="java.util.List"
  57424. abstract="false" native="false" synchronized="false"
  57425. static="true" final="false" visibility="public"
  57426. deprecated="not deprecated">
  57427. <param name="setup" type="java.util.List"/>
  57428. <param name="cmd" type="java.util.List"/>
  57429. <param name="stdoutFilename" type="java.io.File"/>
  57430. <param name="stderrFilename" type="java.io.File"/>
  57431. <param name="tailLength" type="long"/>
  57432. <param name="useSetsid" type="boolean"/>
  57433. <exception name="IOException" type="java.io.IOException"/>
  57434. <doc>
  57435. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  57436. Setup commands such as setting memory limit can be passed which
  57437. will be executed before exec.
  57438. If the tailLength is 0, the entire output will be saved.
  57439. @param setup The setup commands for the execed process.
  57440. @param cmd The command and the arguments that should be run
  57441. @param stdoutFilename The filename that stdout should be saved to
  57442. @param stderrFilename The filename that stderr should be saved to
  57443. @param tailLength The length of the tail to be saved.
  57444. @param useSetsid Should setsid be used in the command or not.
  57445. @return the modified command that should be run]]>
  57446. </doc>
  57447. </method>
  57448. <method name="addCommand" return="java.lang.String"
  57449. abstract="false" native="false" synchronized="false"
  57450. static="true" final="false" visibility="public"
  57451. deprecated="not deprecated">
  57452. <param name="cmd" type="java.util.List"/>
  57453. <param name="isExecutable" type="boolean"/>
  57454. <exception name="IOException" type="java.io.IOException"/>
  57455. <doc>
  57456. <![CDATA[Add quotes to each of the command strings and
  57457. return as a single string
  57458. @param cmd The command to be quoted
  57459. @param isExecutable makes shell path if the first
  57460. argument is executable
  57461. @return returns The quoted string.
  57462. @throws IOException]]>
  57463. </doc>
  57464. </method>
  57465. <method name="captureDebugOut" return="java.util.List"
  57466. abstract="false" native="false" synchronized="false"
  57467. static="true" final="false" visibility="public"
  57468. deprecated="not deprecated">
  57469. <param name="cmd" type="java.util.List"/>
  57470. <param name="debugoutFilename" type="java.io.File"/>
  57471. <exception name="IOException" type="java.io.IOException"/>
  57472. <doc>
  57473. <![CDATA[Wrap a command in a shell to capture debug script's
  57474. stdout and stderr to debugout.
  57475. @param cmd The command and the arguments that should be run
  57476. @param debugoutFilename The filename that stdout and stderr
  57477. should be saved to.
  57478. @return the modified command that should be run
  57479. @throws IOException]]>
  57480. </doc>
  57481. </method>
  57482. <method name="getUserLogDir" return="java.io.File"
  57483. abstract="false" native="false" synchronized="false"
  57484. static="true" final="false" visibility="public"
  57485. deprecated="not deprecated">
  57486. </method>
  57487. <method name="getJobDir" return="java.io.File"
  57488. abstract="false" native="false" synchronized="false"
  57489. static="true" final="false" visibility="public"
  57490. deprecated="not deprecated">
  57491. <param name="jobid" type="java.lang.String"/>
  57492. <doc>
  57493. <![CDATA[Get the user log directory for the job jobid.
  57494. @param jobid string representation of the jobid
  57495. @return user log directory for the job]]>
  57496. </doc>
  57497. </method>
  57498. <method name="getJobDir" return="java.io.File"
  57499. abstract="false" native="false" synchronized="false"
  57500. static="true" final="false" visibility="public"
  57501. deprecated="not deprecated">
  57502. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57503. <doc>
  57504. <![CDATA[Get the user log directory for the job jobid.
  57505. @param jobid the jobid object
  57506. @return user log directory for the job]]>
  57507. </doc>
  57508. </method>
  57509. <doc>
  57510. <![CDATA[A simple logger to handle the task-specific user logs.
  57511. This class uses the system property <code>hadoop.log.dir</code>.
  57512. This class is for Map/Reduce internal use only.]]>
  57513. </doc>
  57514. </class>
  57515. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  57516. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  57517. <class name="TaskLog.LogName" extends="java.lang.Enum"
  57518. abstract="false"
  57519. static="true" final="true" visibility="public"
  57520. deprecated="not deprecated">
  57521. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  57522. abstract="false" native="false" synchronized="false"
  57523. static="true" final="false" visibility="public"
  57524. deprecated="not deprecated">
  57525. </method>
  57526. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  57527. abstract="false" native="false" synchronized="false"
  57528. static="true" final="false" visibility="public"
  57529. deprecated="not deprecated">
  57530. <param name="name" type="java.lang.String"/>
  57531. </method>
  57532. <method name="toString" return="java.lang.String"
  57533. abstract="false" native="false" synchronized="false"
  57534. static="false" final="false" visibility="public"
  57535. deprecated="not deprecated">
  57536. </method>
  57537. <field name="STDOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57538. transient="false" volatile="false"
  57539. static="true" final="true" visibility="public"
  57540. deprecated="not deprecated">
  57541. <doc>
  57542. <![CDATA[Log on the stdout of the task.]]>
  57543. </doc>
  57544. </field>
  57545. <field name="STDERR" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57546. transient="false" volatile="false"
  57547. static="true" final="true" visibility="public"
  57548. deprecated="not deprecated">
  57549. <doc>
  57550. <![CDATA[Log on the stderr of the task.]]>
  57551. </doc>
  57552. </field>
  57553. <field name="SYSLOG" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57554. transient="false" volatile="false"
  57555. static="true" final="true" visibility="public"
  57556. deprecated="not deprecated">
  57557. <doc>
  57558. <![CDATA[Log on the map-reduce system logs of the task.]]>
  57559. </doc>
  57560. </field>
  57561. <field name="PROFILE" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57562. transient="false" volatile="false"
  57563. static="true" final="true" visibility="public"
  57564. deprecated="not deprecated">
  57565. <doc>
  57566. <![CDATA[The java profiler information.]]>
  57567. </doc>
  57568. </field>
  57569. <field name="DEBUGOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  57570. transient="false" volatile="false"
  57571. static="true" final="true" visibility="public"
  57572. deprecated="not deprecated">
  57573. <doc>
  57574. <![CDATA[Log the debug script's stdout]]>
  57575. </doc>
  57576. </field>
  57577. <doc>
  57578. <![CDATA[The filter for userlogs.]]>
  57579. </doc>
  57580. </class>
  57581. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  57582. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  57583. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  57584. abstract="false"
  57585. static="false" final="false" visibility="public"
  57586. deprecated="not deprecated">
  57587. <constructor name="TaskLogAppender"
  57588. static="false" final="false" visibility="public"
  57589. deprecated="not deprecated">
  57590. </constructor>
  57591. <method name="activateOptions"
  57592. abstract="false" native="false" synchronized="false"
  57593. static="false" final="false" visibility="public"
  57594. deprecated="not deprecated">
  57595. </method>
  57596. <method name="append"
  57597. abstract="false" native="false" synchronized="false"
  57598. static="false" final="false" visibility="public"
  57599. deprecated="not deprecated">
  57600. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  57601. </method>
  57602. <method name="flush"
  57603. abstract="false" native="false" synchronized="false"
  57604. static="false" final="false" visibility="public"
  57605. deprecated="not deprecated">
  57606. </method>
  57607. <method name="close"
  57608. abstract="false" native="false" synchronized="true"
  57609. static="false" final="false" visibility="public"
  57610. deprecated="not deprecated">
  57611. </method>
  57612. <method name="getTaskId" return="java.lang.String"
  57613. abstract="false" native="false" synchronized="false"
  57614. static="false" final="false" visibility="public"
  57615. deprecated="not deprecated">
  57616. <doc>
  57617. <![CDATA[Getter/Setter methods for log4j.]]>
  57618. </doc>
  57619. </method>
  57620. <method name="setTaskId"
  57621. abstract="false" native="false" synchronized="false"
  57622. static="false" final="false" visibility="public"
  57623. deprecated="not deprecated">
  57624. <param name="taskId" type="java.lang.String"/>
  57625. </method>
  57626. <method name="getTotalLogFileSize" return="long"
  57627. abstract="false" native="false" synchronized="false"
  57628. static="false" final="false" visibility="public"
  57629. deprecated="not deprecated">
  57630. </method>
  57631. <method name="setTotalLogFileSize"
  57632. abstract="false" native="false" synchronized="false"
  57633. static="false" final="false" visibility="public"
  57634. deprecated="not deprecated">
  57635. <param name="logSize" type="long"/>
  57636. </method>
  57637. <method name="setIsCleanup"
  57638. abstract="false" native="false" synchronized="false"
  57639. static="false" final="false" visibility="public"
  57640. deprecated="not deprecated">
  57641. <param name="isCleanup" type="boolean"/>
  57642. <doc>
  57643. <![CDATA[Set whether the task is a cleanup attempt or not.
  57644. @param isCleanup
  57645. true if the task is cleanup attempt, false otherwise.]]>
  57646. </doc>
  57647. </method>
  57648. <method name="getIsCleanup" return="boolean"
  57649. abstract="false" native="false" synchronized="false"
  57650. static="false" final="false" visibility="public"
  57651. deprecated="not deprecated">
  57652. <doc>
  57653. <![CDATA[Get whether task is cleanup attempt or not.
  57654. @return true if the task is cleanup attempt, false otherwise.]]>
  57655. </doc>
  57656. </method>
  57657. <doc>
  57658. <![CDATA[A simple log4j-appender for the task child's
  57659. map-reduce system logs.]]>
  57660. </doc>
  57661. </class>
  57662. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  57663. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  57664. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  57665. abstract="false"
  57666. static="false" final="false" visibility="public"
  57667. deprecated="not deprecated">
  57668. <constructor name="TaskLogServlet"
  57669. static="false" final="false" visibility="public"
  57670. deprecated="not deprecated">
  57671. </constructor>
  57672. <method name="getTaskLogUrl" return="java.lang.String"
  57673. abstract="false" native="false" synchronized="false"
  57674. static="true" final="false" visibility="public"
  57675. deprecated="not deprecated">
  57676. <param name="taskTrackerHostName" type="java.lang.String"/>
  57677. <param name="httpPort" type="java.lang.String"/>
  57678. <param name="taskAttemptID" type="java.lang.String"/>
  57679. <doc>
  57680. <![CDATA[Construct the taskLogUrl
  57681. @param taskTrackerHostName
  57682. @param httpPort
  57683. @param taskAttemptID
  57684. @return the taskLogUrl]]>
  57685. </doc>
  57686. </method>
  57687. <method name="doGet"
  57688. abstract="false" native="false" synchronized="false"
  57689. static="false" final="false" visibility="public"
  57690. deprecated="not deprecated">
  57691. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  57692. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  57693. <exception name="ServletException" type="javax.servlet.ServletException"/>
  57694. <exception name="IOException" type="java.io.IOException"/>
  57695. <doc>
  57696. <![CDATA[Get the logs via http.]]>
  57697. </doc>
  57698. </method>
  57699. <doc>
  57700. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  57701. </doc>
  57702. </class>
  57703. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  57704. <!-- start class org.apache.hadoop.mapred.TaskLogsTruncater -->
  57705. <class name="TaskLogsTruncater" extends="java.lang.Object"
  57706. abstract="false"
  57707. static="false" final="false" visibility="public"
  57708. deprecated="not deprecated">
  57709. <constructor name="TaskLogsTruncater" type="org.apache.hadoop.conf.Configuration"
  57710. static="false" final="false" visibility="public"
  57711. deprecated="not deprecated">
  57712. </constructor>
  57713. <method name="shouldTruncateLogs" return="boolean"
  57714. abstract="false" native="false" synchronized="false"
  57715. static="false" final="false" visibility="public"
  57716. deprecated="not deprecated">
  57717. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  57718. <exception name="IOException" type="java.io.IOException"/>
  57719. <doc>
  57720. <![CDATA[Check the log file sizes generated by the attempts that ran in a
  57721. particular JVM
  57722. @param lInfo
  57723. @return is truncation required?
  57724. @throws IOException]]>
  57725. </doc>
  57726. </method>
  57727. <method name="truncateLogs"
  57728. abstract="false" native="false" synchronized="false"
  57729. static="false" final="false" visibility="public"
  57730. deprecated="not deprecated">
  57731. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  57732. <doc>
  57733. <![CDATA[Process the removed task's logs. This involves truncating them to
  57734. retainSize.]]>
  57735. </doc>
  57736. </method>
  57737. <method name="main"
  57738. abstract="false" native="false" synchronized="false"
  57739. static="true" final="false" visibility="public"
  57740. deprecated="not deprecated">
  57741. <param name="args" type="java.lang.String[]"/>
  57742. <exception name="IOException" type="java.io.IOException"/>
  57743. </method>
  57744. <doc>
  57745. <![CDATA[The class for truncating the user logs.
  57746. Should be used only by {@link UserLogManager}.]]>
  57747. </doc>
  57748. </class>
  57749. <!-- end class org.apache.hadoop.mapred.TaskLogsTruncater -->
  57750. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  57751. <class name="TaskReport" extends="java.lang.Object"
  57752. abstract="false"
  57753. static="false" final="false" visibility="public"
  57754. deprecated="not deprecated">
  57755. <implements name="org.apache.hadoop.io.Writable"/>
  57756. <constructor name="TaskReport"
  57757. static="false" final="false" visibility="public"
  57758. deprecated="not deprecated">
  57759. </constructor>
  57760. <method name="getTaskId" return="java.lang.String"
  57761. abstract="false" native="false" synchronized="false"
  57762. static="false" final="false" visibility="public"
  57763. deprecated="use {@link #getTaskID()} instead">
  57764. <doc>
  57765. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  57766. </doc>
  57767. </method>
  57768. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  57769. abstract="false" native="false" synchronized="false"
  57770. static="false" final="false" visibility="public"
  57771. deprecated="not deprecated">
  57772. <doc>
  57773. <![CDATA[The id of the task.]]>
  57774. </doc>
  57775. </method>
  57776. <method name="getProgress" return="float"
  57777. abstract="false" native="false" synchronized="false"
  57778. static="false" final="false" visibility="public"
  57779. deprecated="not deprecated">
  57780. <doc>
  57781. <![CDATA[The amount completed, between zero and one.]]>
  57782. </doc>
  57783. </method>
  57784. <method name="getState" return="java.lang.String"
  57785. abstract="false" native="false" synchronized="false"
  57786. static="false" final="false" visibility="public"
  57787. deprecated="not deprecated">
  57788. <doc>
  57789. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  57790. </doc>
  57791. </method>
  57792. <method name="getDiagnostics" return="java.lang.String[]"
  57793. abstract="false" native="false" synchronized="false"
  57794. static="false" final="false" visibility="public"
  57795. deprecated="not deprecated">
  57796. <doc>
  57797. <![CDATA[A list of error messages.]]>
  57798. </doc>
  57799. </method>
  57800. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  57801. abstract="false" native="false" synchronized="false"
  57802. static="false" final="false" visibility="public"
  57803. deprecated="not deprecated">
  57804. <doc>
  57805. <![CDATA[A table of counters.]]>
  57806. </doc>
  57807. </method>
  57808. <method name="getCurrentStatus" return="org.apache.hadoop.mapred.TIPStatus"
  57809. abstract="false" native="false" synchronized="false"
  57810. static="false" final="false" visibility="public"
  57811. deprecated="not deprecated">
  57812. <doc>
  57813. <![CDATA[The current status]]>
  57814. </doc>
  57815. </method>
  57816. <method name="getFinishTime" return="long"
  57817. abstract="false" native="false" synchronized="false"
  57818. static="false" final="false" visibility="public"
  57819. deprecated="not deprecated">
  57820. <doc>
  57821. <![CDATA[Get finish time of task.
  57822. @return 0, if finish time was not set else returns finish time.]]>
  57823. </doc>
  57824. </method>
  57825. <method name="getStartTime" return="long"
  57826. abstract="false" native="false" synchronized="false"
  57827. static="false" final="false" visibility="public"
  57828. deprecated="not deprecated">
  57829. <doc>
  57830. <![CDATA[Get start time of task.
  57831. @return 0 if start time was not set, else start time.]]>
  57832. </doc>
  57833. </method>
  57834. <method name="setSuccessfulAttempt"
  57835. abstract="false" native="false" synchronized="false"
  57836. static="false" final="false" visibility="public"
  57837. deprecated="not deprecated">
  57838. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57839. <doc>
  57840. <![CDATA[set successful attempt ID of the task.]]>
  57841. </doc>
  57842. </method>
  57843. <method name="getSuccessfulTaskAttempt" return="org.apache.hadoop.mapred.TaskAttemptID"
  57844. abstract="false" native="false" synchronized="false"
  57845. static="false" final="false" visibility="public"
  57846. deprecated="not deprecated">
  57847. <doc>
  57848. <![CDATA[Get the attempt ID that took this task to completion]]>
  57849. </doc>
  57850. </method>
  57851. <method name="setRunningTaskAttempts"
  57852. abstract="false" native="false" synchronized="false"
  57853. static="false" final="false" visibility="public"
  57854. deprecated="not deprecated">
  57855. <param name="runningAttempts" type="java.util.Collection"/>
  57856. <doc>
  57857. <![CDATA[set running attempt(s) of the task.]]>
  57858. </doc>
  57859. </method>
  57860. <method name="getRunningTaskAttempts" return="java.util.Collection"
  57861. abstract="false" native="false" synchronized="false"
  57862. static="false" final="false" visibility="public"
  57863. deprecated="not deprecated">
  57864. <doc>
  57865. <![CDATA[Get the running task attempt IDs for this task]]>
  57866. </doc>
  57867. </method>
  57868. <method name="equals" return="boolean"
  57869. abstract="false" native="false" synchronized="false"
  57870. static="false" final="false" visibility="public"
  57871. deprecated="not deprecated">
  57872. <param name="o" type="java.lang.Object"/>
  57873. </method>
  57874. <method name="hashCode" return="int"
  57875. abstract="false" native="false" synchronized="false"
  57876. static="false" final="false" visibility="public"
  57877. deprecated="not deprecated">
  57878. </method>
  57879. <method name="write"
  57880. abstract="false" native="false" synchronized="false"
  57881. static="false" final="false" visibility="public"
  57882. deprecated="not deprecated">
  57883. <param name="out" type="java.io.DataOutput"/>
  57884. <exception name="IOException" type="java.io.IOException"/>
  57885. </method>
  57886. <method name="readFields"
  57887. abstract="false" native="false" synchronized="false"
  57888. static="false" final="false" visibility="public"
  57889. deprecated="not deprecated">
  57890. <param name="in" type="java.io.DataInput"/>
  57891. <exception name="IOException" type="java.io.IOException"/>
  57892. </method>
  57893. <doc>
  57894. <![CDATA[A report on the state of a task.]]>
  57895. </doc>
  57896. </class>
  57897. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  57898. <!-- start class org.apache.hadoop.mapred.TaskStatus -->
  57899. <class name="TaskStatus" extends="java.lang.Object"
  57900. abstract="true"
  57901. static="false" final="false" visibility="public"
  57902. deprecated="not deprecated">
  57903. <implements name="org.apache.hadoop.io.Writable"/>
  57904. <implements name="java.lang.Cloneable"/>
  57905. <constructor name="TaskStatus"
  57906. static="false" final="false" visibility="public"
  57907. deprecated="not deprecated">
  57908. </constructor>
  57909. <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"
  57910. static="false" final="false" visibility="public"
  57911. deprecated="not deprecated">
  57912. </constructor>
  57913. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  57914. abstract="false" native="false" synchronized="false"
  57915. static="false" final="false" visibility="public"
  57916. deprecated="not deprecated">
  57917. </method>
  57918. <method name="getIsMap" return="boolean"
  57919. abstract="true" native="false" synchronized="false"
  57920. static="false" final="false" visibility="public"
  57921. deprecated="not deprecated">
  57922. </method>
  57923. <method name="getNumSlots" return="int"
  57924. abstract="false" native="false" synchronized="false"
  57925. static="false" final="false" visibility="public"
  57926. deprecated="not deprecated">
  57927. </method>
  57928. <method name="getProgress" return="float"
  57929. abstract="false" native="false" synchronized="false"
  57930. static="false" final="false" visibility="public"
  57931. deprecated="not deprecated">
  57932. </method>
  57933. <method name="setProgress"
  57934. abstract="false" native="false" synchronized="false"
  57935. static="false" final="false" visibility="public"
  57936. deprecated="not deprecated">
  57937. <param name="progress" type="float"/>
  57938. </method>
  57939. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  57940. abstract="false" native="false" synchronized="false"
  57941. static="false" final="false" visibility="public"
  57942. deprecated="not deprecated">
  57943. </method>
  57944. <method name="getTaskTracker" return="java.lang.String"
  57945. abstract="false" native="false" synchronized="false"
  57946. static="false" final="false" visibility="public"
  57947. deprecated="not deprecated">
  57948. </method>
  57949. <method name="setTaskTracker"
  57950. abstract="false" native="false" synchronized="false"
  57951. static="false" final="false" visibility="public"
  57952. deprecated="not deprecated">
  57953. <param name="tracker" type="java.lang.String"/>
  57954. </method>
  57955. <method name="setRunState"
  57956. abstract="false" native="false" synchronized="false"
  57957. static="false" final="false" visibility="public"
  57958. deprecated="not deprecated">
  57959. <param name="runState" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  57960. </method>
  57961. <method name="getDiagnosticInfo" return="java.lang.String"
  57962. abstract="false" native="false" synchronized="false"
  57963. static="false" final="false" visibility="public"
  57964. deprecated="not deprecated">
  57965. </method>
  57966. <method name="setDiagnosticInfo"
  57967. abstract="false" native="false" synchronized="false"
  57968. static="false" final="false" visibility="public"
  57969. deprecated="not deprecated">
  57970. <param name="info" type="java.lang.String"/>
  57971. </method>
  57972. <method name="getStateString" return="java.lang.String"
  57973. abstract="false" native="false" synchronized="false"
  57974. static="false" final="false" visibility="public"
  57975. deprecated="not deprecated">
  57976. </method>
  57977. <method name="setStateString"
  57978. abstract="false" native="false" synchronized="false"
  57979. static="false" final="false" visibility="public"
  57980. deprecated="not deprecated">
  57981. <param name="stateString" type="java.lang.String"/>
  57982. </method>
  57983. <method name="getNextRecordRange" return="org.apache.hadoop.mapred.SortedRanges.Range"
  57984. abstract="false" native="false" synchronized="false"
  57985. static="false" final="false" visibility="public"
  57986. deprecated="not deprecated">
  57987. <doc>
  57988. <![CDATA[Get the next record range which is going to be processed by Task.
  57989. @return nextRecordRange]]>
  57990. </doc>
  57991. </method>
  57992. <method name="setNextRecordRange"
  57993. abstract="false" native="false" synchronized="false"
  57994. static="false" final="false" visibility="public"
  57995. deprecated="not deprecated">
  57996. <param name="nextRecordRange" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  57997. <doc>
  57998. <![CDATA[Set the next record range which is going to be processed by Task.
  57999. @param nextRecordRange]]>
  58000. </doc>
  58001. </method>
  58002. <method name="getFinishTime" return="long"
  58003. abstract="false" native="false" synchronized="false"
  58004. static="false" final="false" visibility="public"
  58005. deprecated="not deprecated">
  58006. <doc>
  58007. <![CDATA[Get task finish time. if shuffleFinishTime and sortFinishTime
  58008. are not set before, these are set to finishTime. It takes care of
  58009. the case when shuffle, sort and finish are completed with in the
  58010. heartbeat interval and are not reported separately. if task state is
  58011. TaskStatus.FAILED then finish time represents when the task failed.
  58012. @return finish time of the task.]]>
  58013. </doc>
  58014. </method>
  58015. <method name="getShuffleFinishTime" return="long"
  58016. abstract="false" native="false" synchronized="false"
  58017. static="false" final="false" visibility="public"
  58018. deprecated="not deprecated">
  58019. <doc>
  58020. <![CDATA[Get shuffle finish time for the task. If shuffle finish time was
  58021. not set due to shuffle/sort/finish phases ending within same
  58022. heartbeat interval, it is set to finish time of next phase i.e. sort
  58023. or task finish when these are set.
  58024. @return 0 if shuffleFinishTime, sortFinishTime and finish time are not set. else
  58025. it returns approximate shuffle finish time.]]>
  58026. </doc>
  58027. </method>
  58028. <method name="getSortFinishTime" return="long"
  58029. abstract="false" native="false" synchronized="false"
  58030. static="false" final="false" visibility="public"
  58031. deprecated="not deprecated">
  58032. <doc>
  58033. <![CDATA[Get sort finish time for the task,. If sort finish time was not set
  58034. due to sort and reduce phase finishing in same heartebat interval, it is
  58035. set to finish time, when finish time is set.
  58036. @return 0 if sort finish time and finish time are not set, else returns sort
  58037. finish time if that is set, else it returns finish time.]]>
  58038. </doc>
  58039. </method>
  58040. <method name="getStartTime" return="long"
  58041. abstract="false" native="false" synchronized="false"
  58042. static="false" final="false" visibility="public"
  58043. deprecated="not deprecated">
  58044. <doc>
  58045. <![CDATA[Get start time of the task.
  58046. @return 0 is start time is not set, else returns start time.]]>
  58047. </doc>
  58048. </method>
  58049. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  58050. abstract="false" native="false" synchronized="false"
  58051. static="false" final="false" visibility="public"
  58052. deprecated="not deprecated">
  58053. <doc>
  58054. <![CDATA[Get current phase of this task. Phase.Map in case of map tasks,
  58055. for reduce one of Phase.SHUFFLE, Phase.SORT or Phase.REDUCE.
  58056. @return .]]>
  58057. </doc>
  58058. </method>
  58059. <method name="getIncludeCounters" return="boolean"
  58060. abstract="false" native="false" synchronized="false"
  58061. static="false" final="false" visibility="public"
  58062. deprecated="not deprecated">
  58063. </method>
  58064. <method name="setIncludeCounters"
  58065. abstract="false" native="false" synchronized="false"
  58066. static="false" final="false" visibility="public"
  58067. deprecated="not deprecated">
  58068. <param name="send" type="boolean"/>
  58069. </method>
  58070. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  58071. abstract="false" native="false" synchronized="false"
  58072. static="false" final="false" visibility="public"
  58073. deprecated="not deprecated">
  58074. <doc>
  58075. <![CDATA[Get task's counters.]]>
  58076. </doc>
  58077. </method>
  58078. <method name="setCounters"
  58079. abstract="false" native="false" synchronized="false"
  58080. static="false" final="false" visibility="public"
  58081. deprecated="not deprecated">
  58082. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  58083. <doc>
  58084. <![CDATA[Set the task's counters.
  58085. @param counters]]>
  58086. </doc>
  58087. </method>
  58088. <method name="getOutputSize" return="long"
  58089. abstract="false" native="false" synchronized="false"
  58090. static="false" final="false" visibility="public"
  58091. deprecated="not deprecated">
  58092. <doc>
  58093. <![CDATA[Returns the number of bytes of output from this map.]]>
  58094. </doc>
  58095. </method>
  58096. <method name="getFetchFailedMaps" return="java.util.List"
  58097. abstract="false" native="false" synchronized="false"
  58098. static="false" final="false" visibility="public"
  58099. deprecated="not deprecated">
  58100. <doc>
  58101. <![CDATA[Get the list of maps from which output-fetches failed.
  58102. @return the list of maps from which output-fetches failed.]]>
  58103. </doc>
  58104. </method>
  58105. <method name="clone" return="java.lang.Object"
  58106. abstract="false" native="false" synchronized="false"
  58107. static="false" final="false" visibility="public"
  58108. deprecated="not deprecated">
  58109. </method>
  58110. <method name="write"
  58111. abstract="false" native="false" synchronized="false"
  58112. static="false" final="false" visibility="public"
  58113. deprecated="not deprecated">
  58114. <param name="out" type="java.io.DataOutput"/>
  58115. <exception name="IOException" type="java.io.IOException"/>
  58116. </method>
  58117. <method name="readFields"
  58118. abstract="false" native="false" synchronized="false"
  58119. static="false" final="false" visibility="public"
  58120. deprecated="not deprecated">
  58121. <param name="in" type="java.io.DataInput"/>
  58122. <exception name="IOException" type="java.io.IOException"/>
  58123. </method>
  58124. <doc>
  58125. <![CDATA[Describes the current status of a task. This is
  58126. not intended to be a comprehensive piece of data.]]>
  58127. </doc>
  58128. </class>
  58129. <!-- end class org.apache.hadoop.mapred.TaskStatus -->
  58130. <!-- start class org.apache.hadoop.mapred.TaskStatus.Phase -->
  58131. <class name="TaskStatus.Phase" extends="java.lang.Enum"
  58132. abstract="false"
  58133. static="true" final="true" visibility="public"
  58134. deprecated="not deprecated">
  58135. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.Phase[]"
  58136. abstract="false" native="false" synchronized="false"
  58137. static="true" final="false" visibility="public"
  58138. deprecated="not deprecated">
  58139. </method>
  58140. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  58141. abstract="false" native="false" synchronized="false"
  58142. static="true" final="false" visibility="public"
  58143. deprecated="not deprecated">
  58144. <param name="name" type="java.lang.String"/>
  58145. </method>
  58146. <field name="STARTING" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58147. transient="false" volatile="false"
  58148. static="true" final="true" visibility="public"
  58149. deprecated="not deprecated">
  58150. </field>
  58151. <field name="MAP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58152. transient="false" volatile="false"
  58153. static="true" final="true" visibility="public"
  58154. deprecated="not deprecated">
  58155. </field>
  58156. <field name="SHUFFLE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58157. transient="false" volatile="false"
  58158. static="true" final="true" visibility="public"
  58159. deprecated="not deprecated">
  58160. </field>
  58161. <field name="SORT" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58162. transient="false" volatile="false"
  58163. static="true" final="true" visibility="public"
  58164. deprecated="not deprecated">
  58165. </field>
  58166. <field name="REDUCE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58167. transient="false" volatile="false"
  58168. static="true" final="true" visibility="public"
  58169. deprecated="not deprecated">
  58170. </field>
  58171. <field name="CLEANUP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  58172. transient="false" volatile="false"
  58173. static="true" final="true" visibility="public"
  58174. deprecated="not deprecated">
  58175. </field>
  58176. </class>
  58177. <!-- end class org.apache.hadoop.mapred.TaskStatus.Phase -->
  58178. <!-- start class org.apache.hadoop.mapred.TaskStatus.State -->
  58179. <class name="TaskStatus.State" extends="java.lang.Enum"
  58180. abstract="false"
  58181. static="true" final="true" visibility="public"
  58182. deprecated="not deprecated">
  58183. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.State[]"
  58184. abstract="false" native="false" synchronized="false"
  58185. static="true" final="false" visibility="public"
  58186. deprecated="not deprecated">
  58187. </method>
  58188. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.State"
  58189. abstract="false" native="false" synchronized="false"
  58190. static="true" final="false" visibility="public"
  58191. deprecated="not deprecated">
  58192. <param name="name" type="java.lang.String"/>
  58193. </method>
  58194. <field name="RUNNING" type="org.apache.hadoop.mapred.TaskStatus.State"
  58195. transient="false" volatile="false"
  58196. static="true" final="true" visibility="public"
  58197. deprecated="not deprecated">
  58198. </field>
  58199. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58200. transient="false" volatile="false"
  58201. static="true" final="true" visibility="public"
  58202. deprecated="not deprecated">
  58203. </field>
  58204. <field name="FAILED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58205. transient="false" volatile="false"
  58206. static="true" final="true" visibility="public"
  58207. deprecated="not deprecated">
  58208. </field>
  58209. <field name="UNASSIGNED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58210. transient="false" volatile="false"
  58211. static="true" final="true" visibility="public"
  58212. deprecated="not deprecated">
  58213. </field>
  58214. <field name="KILLED" type="org.apache.hadoop.mapred.TaskStatus.State"
  58215. transient="false" volatile="false"
  58216. static="true" final="true" visibility="public"
  58217. deprecated="not deprecated">
  58218. </field>
  58219. <field name="COMMIT_PENDING" type="org.apache.hadoop.mapred.TaskStatus.State"
  58220. transient="false" volatile="false"
  58221. static="true" final="true" visibility="public"
  58222. deprecated="not deprecated">
  58223. </field>
  58224. <field name="FAILED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  58225. transient="false" volatile="false"
  58226. static="true" final="true" visibility="public"
  58227. deprecated="not deprecated">
  58228. </field>
  58229. <field name="KILLED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  58230. transient="false" volatile="false"
  58231. static="true" final="true" visibility="public"
  58232. deprecated="not deprecated">
  58233. </field>
  58234. </class>
  58235. <!-- end class org.apache.hadoop.mapred.TaskStatus.State -->
  58236. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  58237. <class name="TaskTracker" extends="java.lang.Object"
  58238. abstract="false"
  58239. static="false" final="false" visibility="public"
  58240. deprecated="not deprecated">
  58241. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  58242. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  58243. <implements name="java.lang.Runnable"/>
  58244. <implements name="org.apache.hadoop.mapred.TaskTrackerMXBean"/>
  58245. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  58246. static="false" final="false" visibility="public"
  58247. deprecated="not deprecated">
  58248. <exception name="IOException" type="java.io.IOException"/>
  58249. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58250. <doc>
  58251. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  58252. </doc>
  58253. </constructor>
  58254. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  58255. abstract="false" native="false" synchronized="false"
  58256. static="false" final="false" visibility="public"
  58257. deprecated="not deprecated">
  58258. </method>
  58259. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  58260. abstract="false" native="false" synchronized="false"
  58261. static="false" final="false" visibility="public"
  58262. deprecated="not deprecated">
  58263. </method>
  58264. <method name="getUserDir" return="java.lang.String"
  58265. abstract="false" native="false" synchronized="false"
  58266. static="true" final="false" visibility="public"
  58267. deprecated="not deprecated">
  58268. <param name="user" type="java.lang.String"/>
  58269. </method>
  58270. <method name="getPrivateDistributedCacheDir" return="java.lang.String"
  58271. abstract="false" native="false" synchronized="false"
  58272. static="true" final="false" visibility="public"
  58273. deprecated="not deprecated">
  58274. <param name="user" type="java.lang.String"/>
  58275. </method>
  58276. <method name="getPublicDistributedCacheDir" return="java.lang.String"
  58277. abstract="false" native="false" synchronized="false"
  58278. static="true" final="false" visibility="public"
  58279. deprecated="not deprecated">
  58280. </method>
  58281. <method name="getJobCacheSubdir" return="java.lang.String"
  58282. abstract="false" native="false" synchronized="false"
  58283. static="true" final="false" visibility="public"
  58284. deprecated="not deprecated">
  58285. <param name="user" type="java.lang.String"/>
  58286. </method>
  58287. <method name="getLocalJobDir" return="java.lang.String"
  58288. abstract="false" native="false" synchronized="false"
  58289. static="true" final="false" visibility="public"
  58290. deprecated="not deprecated">
  58291. <param name="user" type="java.lang.String"/>
  58292. <param name="jobid" type="java.lang.String"/>
  58293. </method>
  58294. <method name="getJobJarFile" return="java.lang.String"
  58295. abstract="false" native="false" synchronized="false"
  58296. static="true" final="false" visibility="public"
  58297. deprecated="not deprecated">
  58298. <param name="user" type="java.lang.String"/>
  58299. <param name="jobid" type="java.lang.String"/>
  58300. </method>
  58301. <method name="getLocalTaskDir" return="java.lang.String"
  58302. abstract="false" native="false" synchronized="false"
  58303. static="true" final="false" visibility="public"
  58304. deprecated="not deprecated">
  58305. <param name="user" type="java.lang.String"/>
  58306. <param name="jobid" type="java.lang.String"/>
  58307. <param name="taskid" type="java.lang.String"/>
  58308. </method>
  58309. <method name="getLocalTaskDir" return="java.lang.String"
  58310. abstract="false" native="false" synchronized="false"
  58311. static="true" final="false" visibility="public"
  58312. deprecated="not deprecated">
  58313. <param name="user" type="java.lang.String"/>
  58314. <param name="jobid" type="java.lang.String"/>
  58315. <param name="taskid" type="java.lang.String"/>
  58316. <param name="isCleanupAttempt" type="boolean"/>
  58317. </method>
  58318. <method name="getProtocolVersion" return="long"
  58319. abstract="false" native="false" synchronized="false"
  58320. static="false" final="false" visibility="public"
  58321. deprecated="not deprecated">
  58322. <param name="protocol" type="java.lang.String"/>
  58323. <param name="clientVersion" type="long"/>
  58324. <exception name="IOException" type="java.io.IOException"/>
  58325. </method>
  58326. <method name="cleanupStorage"
  58327. abstract="false" native="false" synchronized="false"
  58328. static="false" final="false" visibility="public"
  58329. deprecated="not deprecated">
  58330. <exception name="IOException" type="java.io.IOException"/>
  58331. <doc>
  58332. <![CDATA[Removes all contents of temporary storage. Called upon
  58333. startup, to remove any leftovers from previous run.]]>
  58334. </doc>
  58335. </method>
  58336. <method name="launchTaskForJob"
  58337. abstract="false" native="false" synchronized="false"
  58338. static="false" final="false" visibility="protected"
  58339. deprecated="not deprecated">
  58340. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  58341. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  58342. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  58343. <exception name="IOException" type="java.io.IOException"/>
  58344. </method>
  58345. <method name="shutdown"
  58346. abstract="false" native="false" synchronized="true"
  58347. static="false" final="false" visibility="public"
  58348. deprecated="not deprecated">
  58349. <exception name="IOException" type="java.io.IOException"/>
  58350. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58351. </method>
  58352. <method name="close"
  58353. abstract="false" native="false" synchronized="true"
  58354. static="false" final="false" visibility="public"
  58355. deprecated="not deprecated">
  58356. <exception name="IOException" type="java.io.IOException"/>
  58357. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58358. <doc>
  58359. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  58360. any running tasks or threads, and cleanup disk space. A new TaskTracker
  58361. within the same process space might be restarted, so everything must be
  58362. clean.
  58363. @throws InterruptedException]]>
  58364. </doc>
  58365. </method>
  58366. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  58367. abstract="false" native="false" synchronized="false"
  58368. static="false" final="false" visibility="public"
  58369. deprecated="not deprecated">
  58370. <doc>
  58371. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  58372. for locating remote files.]]>
  58373. </doc>
  58374. </method>
  58375. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  58376. abstract="false" native="false" synchronized="true"
  58377. static="false" final="false" visibility="public"
  58378. deprecated="not deprecated">
  58379. <doc>
  58380. <![CDATA[Return the port at which the tasktracker bound to]]>
  58381. </doc>
  58382. </method>
  58383. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  58384. abstract="false" native="false" synchronized="false"
  58385. static="false" final="false" visibility="public"
  58386. deprecated="not deprecated">
  58387. </method>
  58388. <method name="run"
  58389. abstract="false" native="false" synchronized="false"
  58390. static="false" final="false" visibility="public"
  58391. deprecated="not deprecated">
  58392. <doc>
  58393. <![CDATA[The server retry loop.
  58394. This while-loop attempts to connect to the JobTracker. It only
  58395. loops when the old TaskTracker has gone bad (its state is
  58396. stale somehow) and we need to reinitialize everything.]]>
  58397. </doc>
  58398. </method>
  58399. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  58400. abstract="false" native="false" synchronized="true"
  58401. static="false" final="false" visibility="public"
  58402. deprecated="not deprecated">
  58403. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  58404. <exception name="IOException" type="java.io.IOException"/>
  58405. <doc>
  58406. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  58407. </doc>
  58408. </method>
  58409. <method name="statusUpdate" return="boolean"
  58410. abstract="false" native="false" synchronized="true"
  58411. static="false" final="false" visibility="public"
  58412. deprecated="not deprecated">
  58413. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58414. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  58415. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58416. <exception name="IOException" type="java.io.IOException"/>
  58417. <doc>
  58418. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  58419. </doc>
  58420. </method>
  58421. <method name="reportDiagnosticInfo"
  58422. abstract="false" native="false" synchronized="true"
  58423. static="false" final="false" visibility="public"
  58424. deprecated="not deprecated">
  58425. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58426. <param name="info" type="java.lang.String"/>
  58427. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58428. <exception name="IOException" type="java.io.IOException"/>
  58429. <doc>
  58430. <![CDATA[Called when the task dies before completion, and we want to report back
  58431. diagnostic info]]>
  58432. </doc>
  58433. </method>
  58434. <method name="reportNextRecordRange"
  58435. abstract="false" native="false" synchronized="true"
  58436. static="false" final="false" visibility="public"
  58437. deprecated="not deprecated">
  58438. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58439. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  58440. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58441. <exception name="IOException" type="java.io.IOException"/>
  58442. </method>
  58443. <method name="ping" return="boolean"
  58444. abstract="false" native="false" synchronized="true"
  58445. static="false" final="false" visibility="public"
  58446. deprecated="not deprecated">
  58447. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58448. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58449. <exception name="IOException" type="java.io.IOException"/>
  58450. <doc>
  58451. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  58452. </doc>
  58453. </method>
  58454. <method name="commitPending"
  58455. abstract="false" native="false" synchronized="true"
  58456. static="false" final="false" visibility="public"
  58457. deprecated="not deprecated">
  58458. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58459. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  58460. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58461. <exception name="IOException" type="java.io.IOException"/>
  58462. <doc>
  58463. <![CDATA[Task is reporting that it is in commit_pending
  58464. and it is waiting for the commit Response]]>
  58465. </doc>
  58466. </method>
  58467. <method name="canCommit" return="boolean"
  58468. abstract="false" native="false" synchronized="true"
  58469. static="false" final="false" visibility="public"
  58470. deprecated="not deprecated">
  58471. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58472. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58473. <exception name="IOException" type="java.io.IOException"/>
  58474. <doc>
  58475. <![CDATA[Child checking whether it can commit]]>
  58476. </doc>
  58477. </method>
  58478. <method name="done"
  58479. abstract="false" native="false" synchronized="true"
  58480. static="false" final="false" visibility="public"
  58481. deprecated="not deprecated">
  58482. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58483. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58484. <exception name="IOException" type="java.io.IOException"/>
  58485. <doc>
  58486. <![CDATA[The task is done.]]>
  58487. </doc>
  58488. </method>
  58489. <method name="shuffleError"
  58490. abstract="false" native="false" synchronized="true"
  58491. static="false" final="false" visibility="public"
  58492. deprecated="not deprecated">
  58493. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58494. <param name="message" type="java.lang.String"/>
  58495. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58496. <exception name="IOException" type="java.io.IOException"/>
  58497. <doc>
  58498. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  58499. </doc>
  58500. </method>
  58501. <method name="fsError"
  58502. abstract="false" native="false" synchronized="true"
  58503. static="false" final="false" visibility="public"
  58504. deprecated="not deprecated">
  58505. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58506. <param name="message" type="java.lang.String"/>
  58507. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58508. <exception name="IOException" type="java.io.IOException"/>
  58509. <doc>
  58510. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  58511. </doc>
  58512. </method>
  58513. <method name="fatalError"
  58514. abstract="false" native="false" synchronized="true"
  58515. static="false" final="false" visibility="public"
  58516. deprecated="not deprecated">
  58517. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58518. <param name="msg" type="java.lang.String"/>
  58519. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58520. <exception name="IOException" type="java.io.IOException"/>
  58521. <doc>
  58522. <![CDATA[A child task had a fatal error. Kill the task.]]>
  58523. </doc>
  58524. </method>
  58525. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  58526. abstract="false" native="false" synchronized="true"
  58527. static="false" final="false" visibility="public"
  58528. deprecated="not deprecated">
  58529. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  58530. <param name="fromEventId" type="int"/>
  58531. <param name="maxLocs" type="int"/>
  58532. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58533. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  58534. <exception name="IOException" type="java.io.IOException"/>
  58535. </method>
  58536. <method name="mapOutputLost"
  58537. abstract="false" native="false" synchronized="true"
  58538. static="false" final="false" visibility="public"
  58539. deprecated="not deprecated">
  58540. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58541. <param name="errorMsg" type="java.lang.String"/>
  58542. <exception name="IOException" type="java.io.IOException"/>
  58543. <doc>
  58544. <![CDATA[A completed map task's output has been lost.]]>
  58545. </doc>
  58546. </method>
  58547. <method name="isIdle" return="boolean"
  58548. abstract="false" native="false" synchronized="true"
  58549. static="false" final="false" visibility="public"
  58550. deprecated="not deprecated">
  58551. <doc>
  58552. <![CDATA[Is this task tracker idle?
  58553. @return has this task tracker finished all its assigned tasks?]]>
  58554. </doc>
  58555. </method>
  58556. <method name="isIdleAndClean" return="boolean"
  58557. abstract="false" native="false" synchronized="true"
  58558. static="false" final="false" visibility="public"
  58559. deprecated="not deprecated">
  58560. <doc>
  58561. <![CDATA[Is this task tracker idle and clean?
  58562. @return has this task tracker finished and cleaned up all of its tasks?]]>
  58563. </doc>
  58564. </method>
  58565. <method name="main"
  58566. abstract="false" native="false" synchronized="false"
  58567. static="true" final="false" visibility="public"
  58568. deprecated="not deprecated">
  58569. <param name="argv" type="java.lang.String[]"/>
  58570. <exception name="Exception" type="java.lang.Exception"/>
  58571. <doc>
  58572. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  58573. </doc>
  58574. </method>
  58575. <method name="isTaskMemoryManagerEnabled" return="boolean"
  58576. abstract="false" native="false" synchronized="false"
  58577. static="false" final="false" visibility="public"
  58578. deprecated="not deprecated">
  58579. <doc>
  58580. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  58581. @return true if enabled, false otherwise.]]>
  58582. </doc>
  58583. </method>
  58584. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  58585. abstract="false" native="false" synchronized="false"
  58586. static="false" final="false" visibility="public"
  58587. deprecated="not deprecated">
  58588. </method>
  58589. <method name="getHostname" return="java.lang.String"
  58590. abstract="false" native="false" synchronized="false"
  58591. static="false" final="false" visibility="public"
  58592. deprecated="not deprecated">
  58593. </method>
  58594. <method name="getVersion" return="java.lang.String"
  58595. abstract="false" native="false" synchronized="false"
  58596. static="false" final="false" visibility="public"
  58597. deprecated="not deprecated">
  58598. </method>
  58599. <method name="getConfigVersion" return="java.lang.String"
  58600. abstract="false" native="false" synchronized="false"
  58601. static="false" final="false" visibility="public"
  58602. deprecated="not deprecated">
  58603. </method>
  58604. <method name="getJobTrackerUrl" return="java.lang.String"
  58605. abstract="false" native="false" synchronized="false"
  58606. static="false" final="false" visibility="public"
  58607. deprecated="not deprecated">
  58608. </method>
  58609. <method name="getRpcPort" return="int"
  58610. abstract="false" native="false" synchronized="false"
  58611. static="false" final="false" visibility="public"
  58612. deprecated="not deprecated">
  58613. </method>
  58614. <method name="getHttpPort" return="int"
  58615. abstract="false" native="false" synchronized="false"
  58616. static="false" final="false" visibility="public"
  58617. deprecated="not deprecated">
  58618. </method>
  58619. <method name="isHealthy" return="boolean"
  58620. abstract="false" native="false" synchronized="false"
  58621. static="false" final="false" visibility="public"
  58622. deprecated="not deprecated">
  58623. </method>
  58624. <method name="getTasksInfoJson" return="java.lang.String"
  58625. abstract="false" native="false" synchronized="false"
  58626. static="false" final="false" visibility="public"
  58627. deprecated="not deprecated">
  58628. </method>
  58629. <method name="updatePrivateDistributedCacheSizes"
  58630. abstract="false" native="false" synchronized="false"
  58631. static="false" final="false" visibility="public"
  58632. deprecated="not deprecated">
  58633. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  58634. <param name="sizes" type="long[]"/>
  58635. <exception name="IOException" type="java.io.IOException"/>
  58636. </method>
  58637. <field name="LOG" type="org.apache.commons.logging.Log"
  58638. transient="false" volatile="false"
  58639. static="true" final="true" visibility="public"
  58640. deprecated="not deprecated">
  58641. </field>
  58642. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  58643. transient="false" volatile="false"
  58644. static="true" final="true" visibility="public"
  58645. deprecated="not deprecated">
  58646. </field>
  58647. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  58648. transient="false" volatile="false"
  58649. static="true" final="true" visibility="public"
  58650. deprecated="not deprecated">
  58651. </field>
  58652. <field name="SUBDIR" type="java.lang.String"
  58653. transient="false" volatile="false"
  58654. static="true" final="true" visibility="public"
  58655. deprecated="not deprecated">
  58656. </field>
  58657. <field name="TT_LOG_TMP_DIR" type="java.lang.String"
  58658. transient="false" volatile="false"
  58659. static="true" final="true" visibility="public"
  58660. deprecated="not deprecated">
  58661. </field>
  58662. <field name="TT_RESOURCE_CALCULATOR_PLUGIN" type="java.lang.String"
  58663. transient="false" volatile="false"
  58664. static="true" final="true" visibility="public"
  58665. deprecated="not deprecated">
  58666. </field>
  58667. <field name="TT_USER_NAME" type="java.lang.String"
  58668. transient="false" volatile="false"
  58669. static="true" final="true" visibility="public"
  58670. deprecated="not deprecated">
  58671. </field>
  58672. <field name="TT_KEYTAB_FILE" type="java.lang.String"
  58673. transient="false" volatile="false"
  58674. static="true" final="true" visibility="public"
  58675. deprecated="not deprecated">
  58676. </field>
  58677. <doc>
  58678. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  58679. in a networked environment. It contacts the JobTracker
  58680. for Task assignments and reporting results.]]>
  58681. </doc>
  58682. </class>
  58683. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  58684. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  58685. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  58686. abstract="false"
  58687. static="true" final="false" visibility="public"
  58688. deprecated="not deprecated">
  58689. <constructor name="TaskTracker.MapOutputServlet"
  58690. static="false" final="false" visibility="public"
  58691. deprecated="not deprecated">
  58692. </constructor>
  58693. <method name="doGet"
  58694. abstract="false" native="false" synchronized="false"
  58695. static="false" final="false" visibility="public"
  58696. deprecated="not deprecated">
  58697. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  58698. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  58699. <exception name="ServletException" type="javax.servlet.ServletException"/>
  58700. <exception name="IOException" type="java.io.IOException"/>
  58701. </method>
  58702. <doc>
  58703. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  58704. to other nodes.]]>
  58705. </doc>
  58706. </class>
  58707. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  58708. <!-- start class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  58709. <class name="TaskTrackerMetricsSource" extends="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  58710. abstract="false"
  58711. static="false" final="false" visibility="public"
  58712. deprecated="not deprecated">
  58713. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  58714. <constructor name="TaskTrackerMetricsSource" type="org.apache.hadoop.mapred.TaskTracker"
  58715. static="false" final="false" visibility="public"
  58716. deprecated="not deprecated">
  58717. </constructor>
  58718. <method name="getMetrics"
  58719. abstract="false" native="false" synchronized="false"
  58720. static="false" final="false" visibility="public"
  58721. deprecated="not deprecated">
  58722. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  58723. <param name="all" type="boolean"/>
  58724. </method>
  58725. <method name="completeTask"
  58726. abstract="false" native="false" synchronized="false"
  58727. static="false" final="false" visibility="public"
  58728. deprecated="not deprecated">
  58729. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58730. </method>
  58731. <method name="timedoutTask"
  58732. abstract="false" native="false" synchronized="false"
  58733. static="false" final="false" visibility="public"
  58734. deprecated="not deprecated">
  58735. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58736. </method>
  58737. <method name="taskFailedPing"
  58738. abstract="false" native="false" synchronized="false"
  58739. static="false" final="false" visibility="public"
  58740. deprecated="not deprecated">
  58741. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58742. </method>
  58743. <doc>
  58744. <![CDATA[Instrumentation for metrics v2]]>
  58745. </doc>
  58746. </class>
  58747. <!-- end class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  58748. <!-- start interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  58749. <interface name="TaskTrackerMXBean" abstract="true"
  58750. static="false" final="false" visibility="public"
  58751. deprecated="not deprecated">
  58752. <method name="getHostname" return="java.lang.String"
  58753. abstract="false" native="false" synchronized="false"
  58754. static="false" final="false" visibility="public"
  58755. deprecated="not deprecated">
  58756. <doc>
  58757. <![CDATA[@return the hostname of the tasktracker]]>
  58758. </doc>
  58759. </method>
  58760. <method name="getVersion" return="java.lang.String"
  58761. abstract="false" native="false" synchronized="false"
  58762. static="false" final="false" visibility="public"
  58763. deprecated="not deprecated">
  58764. <doc>
  58765. <![CDATA[@return the version of the code base]]>
  58766. </doc>
  58767. </method>
  58768. <method name="getConfigVersion" return="java.lang.String"
  58769. abstract="false" native="false" synchronized="false"
  58770. static="false" final="false" visibility="public"
  58771. deprecated="not deprecated">
  58772. <doc>
  58773. <![CDATA[@return the config version (from a config properties)]]>
  58774. </doc>
  58775. </method>
  58776. <method name="getJobTrackerUrl" return="java.lang.String"
  58777. abstract="false" native="false" synchronized="false"
  58778. static="false" final="false" visibility="public"
  58779. deprecated="not deprecated">
  58780. <doc>
  58781. <![CDATA[@return the URL of the jobtracker]]>
  58782. </doc>
  58783. </method>
  58784. <method name="getRpcPort" return="int"
  58785. abstract="false" native="false" synchronized="false"
  58786. static="false" final="false" visibility="public"
  58787. deprecated="not deprecated">
  58788. <doc>
  58789. <![CDATA[@return the RPC port of the tasktracker]]>
  58790. </doc>
  58791. </method>
  58792. <method name="getHttpPort" return="int"
  58793. abstract="false" native="false" synchronized="false"
  58794. static="false" final="false" visibility="public"
  58795. deprecated="not deprecated">
  58796. <doc>
  58797. <![CDATA[@return the HTTP port of the tasktracker]]>
  58798. </doc>
  58799. </method>
  58800. <method name="isHealthy" return="boolean"
  58801. abstract="false" native="false" synchronized="false"
  58802. static="false" final="false" visibility="public"
  58803. deprecated="not deprecated">
  58804. <doc>
  58805. <![CDATA[@return the health status of the tasktracker]]>
  58806. </doc>
  58807. </method>
  58808. <method name="getTasksInfoJson" return="java.lang.String"
  58809. abstract="false" native="false" synchronized="false"
  58810. static="false" final="false" visibility="public"
  58811. deprecated="not deprecated">
  58812. <doc>
  58813. <![CDATA[@return a json formatted info about tasks of the tasktracker]]>
  58814. </doc>
  58815. </method>
  58816. <doc>
  58817. <![CDATA[MXBean interface for TaskTracker]]>
  58818. </doc>
  58819. </interface>
  58820. <!-- end interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  58821. <!-- start class org.apache.hadoop.mapred.TaskTrackerStatus -->
  58822. <class name="TaskTrackerStatus" extends="java.lang.Object"
  58823. abstract="false"
  58824. static="false" final="false" visibility="public"
  58825. deprecated="not deprecated">
  58826. <implements name="org.apache.hadoop.io.Writable"/>
  58827. <constructor name="TaskTrackerStatus"
  58828. static="false" final="false" visibility="public"
  58829. deprecated="not deprecated">
  58830. </constructor>
  58831. <constructor name="TaskTrackerStatus" type="java.lang.String, java.lang.String, int, java.util.List, int, int, int, int"
  58832. static="false" final="false" visibility="public"
  58833. deprecated="not deprecated">
  58834. </constructor>
  58835. <method name="getTrackerName" return="java.lang.String"
  58836. abstract="false" native="false" synchronized="false"
  58837. static="false" final="false" visibility="public"
  58838. deprecated="not deprecated">
  58839. </method>
  58840. <method name="getHost" return="java.lang.String"
  58841. abstract="false" native="false" synchronized="false"
  58842. static="false" final="false" visibility="public"
  58843. deprecated="not deprecated">
  58844. </method>
  58845. <method name="getHttpPort" return="int"
  58846. abstract="false" native="false" synchronized="false"
  58847. static="false" final="false" visibility="public"
  58848. deprecated="not deprecated">
  58849. <doc>
  58850. <![CDATA[Get the port that this task tracker is serving http requests on.
  58851. @return the http port]]>
  58852. </doc>
  58853. </method>
  58854. <method name="getTaskFailures" return="int"
  58855. abstract="false" native="false" synchronized="false"
  58856. static="false" final="false" visibility="public"
  58857. deprecated="not deprecated">
  58858. <doc>
  58859. <![CDATA[Get the number of tasks that have failed on this tracker.
  58860. @return The number of failed tasks]]>
  58861. </doc>
  58862. </method>
  58863. <method name="getDirFailures" return="int"
  58864. abstract="false" native="false" synchronized="false"
  58865. static="false" final="false" visibility="public"
  58866. deprecated="not deprecated">
  58867. <doc>
  58868. <![CDATA[Get the number of local directories that have failed on this tracker.
  58869. @return The number of failed local directories]]>
  58870. </doc>
  58871. </method>
  58872. <method name="getTaskReports" return="java.util.List"
  58873. abstract="false" native="false" synchronized="false"
  58874. static="false" final="false" visibility="public"
  58875. deprecated="not deprecated">
  58876. <doc>
  58877. <![CDATA[Get the current tasks at the TaskTracker.
  58878. Tasks are tracked by a {@link TaskStatus} object.
  58879. @return a list of {@link TaskStatus} representing
  58880. the current tasks at the TaskTracker.]]>
  58881. </doc>
  58882. </method>
  58883. <method name="countMapTasks" return="int"
  58884. abstract="false" native="false" synchronized="false"
  58885. static="false" final="false" visibility="public"
  58886. deprecated="not deprecated">
  58887. <doc>
  58888. <![CDATA[Get the number of running map tasks.
  58889. @return the number of running map tasks]]>
  58890. </doc>
  58891. </method>
  58892. <method name="countOccupiedMapSlots" return="int"
  58893. abstract="false" native="false" synchronized="false"
  58894. static="false" final="false" visibility="public"
  58895. deprecated="not deprecated">
  58896. <doc>
  58897. <![CDATA[Get the number of occupied map slots.
  58898. @return the number of occupied map slots]]>
  58899. </doc>
  58900. </method>
  58901. <method name="getAvailableMapSlots" return="int"
  58902. abstract="false" native="false" synchronized="false"
  58903. static="false" final="false" visibility="public"
  58904. deprecated="not deprecated">
  58905. <doc>
  58906. <![CDATA[Get available map slots.
  58907. @return available map slots]]>
  58908. </doc>
  58909. </method>
  58910. <method name="countReduceTasks" return="int"
  58911. abstract="false" native="false" synchronized="false"
  58912. static="false" final="false" visibility="public"
  58913. deprecated="not deprecated">
  58914. <doc>
  58915. <![CDATA[Get the number of running reduce tasks.
  58916. @return the number of running reduce tasks]]>
  58917. </doc>
  58918. </method>
  58919. <method name="countOccupiedReduceSlots" return="int"
  58920. abstract="false" native="false" synchronized="false"
  58921. static="false" final="false" visibility="public"
  58922. deprecated="not deprecated">
  58923. <doc>
  58924. <![CDATA[Get the number of occupied reduce slots.
  58925. @return the number of occupied reduce slots]]>
  58926. </doc>
  58927. </method>
  58928. <method name="getAvailableReduceSlots" return="int"
  58929. abstract="false" native="false" synchronized="false"
  58930. static="false" final="false" visibility="public"
  58931. deprecated="not deprecated">
  58932. <doc>
  58933. <![CDATA[Get available reduce slots.
  58934. @return available reduce slots]]>
  58935. </doc>
  58936. </method>
  58937. <method name="getLastSeen" return="long"
  58938. abstract="false" native="false" synchronized="false"
  58939. static="false" final="false" visibility="public"
  58940. deprecated="not deprecated">
  58941. </method>
  58942. <method name="setLastSeen"
  58943. abstract="false" native="false" synchronized="false"
  58944. static="false" final="false" visibility="public"
  58945. deprecated="not deprecated">
  58946. <param name="lastSeen" type="long"/>
  58947. </method>
  58948. <method name="getMaxMapSlots" return="int"
  58949. abstract="false" native="false" synchronized="false"
  58950. static="false" final="false" visibility="public"
  58951. deprecated="not deprecated">
  58952. <doc>
  58953. <![CDATA[Get the maximum map slots for this node.
  58954. @return the maximum map slots for this node]]>
  58955. </doc>
  58956. </method>
  58957. <method name="getMaxReduceSlots" return="int"
  58958. abstract="false" native="false" synchronized="false"
  58959. static="false" final="false" visibility="public"
  58960. deprecated="not deprecated">
  58961. <doc>
  58962. <![CDATA[Get the maximum reduce slots for this node.
  58963. @return the maximum reduce slots for this node]]>
  58964. </doc>
  58965. </method>
  58966. <method name="getHealthStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus"
  58967. abstract="false" native="false" synchronized="false"
  58968. static="false" final="false" visibility="public"
  58969. deprecated="not deprecated">
  58970. <doc>
  58971. <![CDATA[Returns health status of the task tracker.
  58972. @return health status of Task Tracker]]>
  58973. </doc>
  58974. </method>
  58975. <method name="write"
  58976. abstract="false" native="false" synchronized="false"
  58977. static="false" final="false" visibility="public"
  58978. deprecated="not deprecated">
  58979. <param name="out" type="java.io.DataOutput"/>
  58980. <exception name="IOException" type="java.io.IOException"/>
  58981. </method>
  58982. <method name="readFields"
  58983. abstract="false" native="false" synchronized="false"
  58984. static="false" final="false" visibility="public"
  58985. deprecated="not deprecated">
  58986. <param name="in" type="java.io.DataInput"/>
  58987. <exception name="IOException" type="java.io.IOException"/>
  58988. </method>
  58989. <field name="LOG" type="org.apache.commons.logging.Log"
  58990. transient="false" volatile="false"
  58991. static="true" final="true" visibility="public"
  58992. deprecated="not deprecated">
  58993. </field>
  58994. <field name="UNAVAILABLE" type="int"
  58995. transient="false" volatile="false"
  58996. static="true" final="true" visibility="public"
  58997. deprecated="not deprecated">
  58998. </field>
  58999. <doc>
  59000. <![CDATA[A TaskTrackerStatus is a MapReduce primitive. Keeps
  59001. info on a TaskTracker. The JobTracker maintains a set
  59002. of the most recent TaskTrackerStatus objects for each
  59003. unique TaskTracker it knows about.
  59004. This is NOT a public interface!]]>
  59005. </doc>
  59006. </class>
  59007. <!-- end class org.apache.hadoop.mapred.TaskTrackerStatus -->
  59008. <!-- start interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  59009. <interface name="TaskUmbilicalProtocol" abstract="true"
  59010. static="false" final="false" visibility="public"
  59011. deprecated="not deprecated">
  59012. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  59013. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  59014. abstract="false" native="false" synchronized="false"
  59015. static="false" final="false" visibility="public"
  59016. deprecated="not deprecated">
  59017. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  59018. <exception name="IOException" type="java.io.IOException"/>
  59019. <doc>
  59020. <![CDATA[Called when a child task process starts, to get its task.
  59021. @param context the JvmContext of the JVM w.r.t the TaskTracker that
  59022. launched it
  59023. @return Task object
  59024. @throws IOException]]>
  59025. </doc>
  59026. </method>
  59027. <method name="statusUpdate" return="boolean"
  59028. abstract="false" native="false" synchronized="false"
  59029. static="false" final="false" visibility="public"
  59030. deprecated="not deprecated">
  59031. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59032. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  59033. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59034. <exception name="IOException" type="java.io.IOException"/>
  59035. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59036. <doc>
  59037. <![CDATA[Report child's progress to parent.
  59038. @param taskId task-id of the child
  59039. @param taskStatus status of the child
  59040. @param jvmContext context the jvmContext running the task.
  59041. @throws IOException
  59042. @throws InterruptedException
  59043. @return True if the task is known]]>
  59044. </doc>
  59045. </method>
  59046. <method name="reportDiagnosticInfo"
  59047. abstract="false" native="false" synchronized="false"
  59048. static="false" final="false" visibility="public"
  59049. deprecated="not deprecated">
  59050. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59051. <param name="trace" type="java.lang.String"/>
  59052. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59053. <exception name="IOException" type="java.io.IOException"/>
  59054. <doc>
  59055. <![CDATA[Report error messages back to parent. Calls should be sparing, since all
  59056. such messages are held in the job tracker.
  59057. @param taskid the id of the task involved
  59058. @param trace the text to report
  59059. @param jvmContext context the jvmContext running the task.]]>
  59060. </doc>
  59061. </method>
  59062. <method name="reportNextRecordRange"
  59063. abstract="false" native="false" synchronized="false"
  59064. static="false" final="false" visibility="public"
  59065. deprecated="not deprecated">
  59066. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59067. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  59068. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59069. <exception name="IOException" type="java.io.IOException"/>
  59070. <doc>
  59071. <![CDATA[Report the record range which is going to process next by the Task.
  59072. @param taskid the id of the task involved
  59073. @param range the range of record sequence nos
  59074. @param jvmContext context the jvmContext running the task.
  59075. @throws IOException]]>
  59076. </doc>
  59077. </method>
  59078. <method name="ping" return="boolean"
  59079. abstract="false" native="false" synchronized="false"
  59080. static="false" final="false" visibility="public"
  59081. deprecated="not deprecated">
  59082. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59083. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59084. <exception name="IOException" type="java.io.IOException"/>
  59085. <doc>
  59086. <![CDATA[Periodically called by child to check if parent is still alive.
  59087. @param taskid the id of the task involved
  59088. @param jvmContext context the jvmContext running the task.
  59089. @return True if the task is known]]>
  59090. </doc>
  59091. </method>
  59092. <method name="done"
  59093. abstract="false" native="false" synchronized="false"
  59094. static="false" final="false" visibility="public"
  59095. deprecated="not deprecated">
  59096. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59097. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59098. <exception name="IOException" type="java.io.IOException"/>
  59099. <doc>
  59100. <![CDATA[Report that the task is successfully completed. Failure is assumed if
  59101. the task process exits without calling this.
  59102. @param taskid task's id
  59103. @param jvmContext context the jvmContext running the task.]]>
  59104. </doc>
  59105. </method>
  59106. <method name="commitPending"
  59107. abstract="false" native="false" synchronized="false"
  59108. static="false" final="false" visibility="public"
  59109. deprecated="not deprecated">
  59110. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59111. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  59112. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59113. <exception name="IOException" type="java.io.IOException"/>
  59114. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59115. <doc>
  59116. <![CDATA[Report that the task is complete, but its commit is pending.
  59117. @param taskId task's id
  59118. @param taskStatus status of the child
  59119. @param jvmContext context the jvmContext running the task.
  59120. @throws IOException]]>
  59121. </doc>
  59122. </method>
  59123. <method name="canCommit" return="boolean"
  59124. abstract="false" native="false" synchronized="false"
  59125. static="false" final="false" visibility="public"
  59126. deprecated="not deprecated">
  59127. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59128. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59129. <exception name="IOException" type="java.io.IOException"/>
  59130. <doc>
  59131. <![CDATA[Polling to know whether the task can go-ahead with commit
  59132. @param taskid
  59133. @param jvmContext context the jvmContext running the task.
  59134. @return true/false
  59135. @throws IOException]]>
  59136. </doc>
  59137. </method>
  59138. <method name="shuffleError"
  59139. abstract="false" native="false" synchronized="false"
  59140. static="false" final="false" visibility="public"
  59141. deprecated="not deprecated">
  59142. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59143. <param name="message" type="java.lang.String"/>
  59144. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59145. <exception name="IOException" type="java.io.IOException"/>
  59146. <doc>
  59147. <![CDATA[Report that a reduce-task couldn't shuffle map-outputs.]]>
  59148. </doc>
  59149. </method>
  59150. <method name="fsError"
  59151. abstract="false" native="false" synchronized="false"
  59152. static="false" final="false" visibility="public"
  59153. deprecated="not deprecated">
  59154. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59155. <param name="message" type="java.lang.String"/>
  59156. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59157. <exception name="IOException" type="java.io.IOException"/>
  59158. <doc>
  59159. <![CDATA[Report that the task encounted a local filesystem error.]]>
  59160. </doc>
  59161. </method>
  59162. <method name="fatalError"
  59163. abstract="false" native="false" synchronized="false"
  59164. static="false" final="false" visibility="public"
  59165. deprecated="not deprecated">
  59166. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59167. <param name="message" type="java.lang.String"/>
  59168. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59169. <exception name="IOException" type="java.io.IOException"/>
  59170. <doc>
  59171. <![CDATA[Report that the task encounted a fatal error.]]>
  59172. </doc>
  59173. </method>
  59174. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  59175. abstract="false" native="false" synchronized="false"
  59176. static="false" final="false" visibility="public"
  59177. deprecated="not deprecated">
  59178. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  59179. <param name="fromIndex" type="int"/>
  59180. <param name="maxLocs" type="int"/>
  59181. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59182. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59183. <exception name="IOException" type="java.io.IOException"/>
  59184. <doc>
  59185. <![CDATA[Called by a reduce task to get the map output locations for finished maps.
  59186. Returns an update centered around the map-task-completion-events.
  59187. The update also piggybacks the information whether the events copy at the
  59188. task-tracker has changed or not. This will trigger some action at the
  59189. child-process.
  59190. @param jobId the reducer job id
  59191. @param fromIndex the index starting from which the locations should be
  59192. fetched
  59193. @param maxLocs the max number of locations to fetch
  59194. @param id The attempt id of the task that is trying to communicate
  59195. @return A {@link MapTaskCompletionEventsUpdate}]]>
  59196. </doc>
  59197. </method>
  59198. <method name="updatePrivateDistributedCacheSizes"
  59199. abstract="false" native="false" synchronized="false"
  59200. static="false" final="false" visibility="public"
  59201. deprecated="not deprecated">
  59202. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  59203. <param name="sizes" type="long[]"/>
  59204. <exception name="IOException" type="java.io.IOException"/>
  59205. <doc>
  59206. <![CDATA[The job initializer needs to report the sizes of the archive
  59207. objects and directories in the private distributed cache.
  59208. @param jobId the job to update
  59209. @param sizes the array of sizes that were computed
  59210. @throws IOException]]>
  59211. </doc>
  59212. </method>
  59213. <field name="versionID" type="long"
  59214. transient="false" volatile="false"
  59215. static="true" final="true" visibility="public"
  59216. deprecated="not deprecated">
  59217. <doc>
  59218. <![CDATA[Changed the version to 2, since we have a new method getMapOutputs
  59219. Changed version to 3 to have progress() return a boolean
  59220. Changed the version to 4, since we have replaced
  59221. TaskUmbilicalProtocol.progress(String, float, String,
  59222. org.apache.hadoop.mapred.TaskStatus.Phase, Counters)
  59223. with statusUpdate(String, TaskStatus)
  59224. Version 5 changed counters representation for HADOOP-2248
  59225. Version 6 changes the TaskStatus representation for HADOOP-2208
  59226. Version 7 changes the done api (via HADOOP-3140). It now expects whether
  59227. or not the task's output needs to be promoted.
  59228. Version 8 changes {job|tip|task}id's to use their corresponding
  59229. objects rather than strings.
  59230. Version 9 changes the counter representation for HADOOP-1915
  59231. Version 10 changed the TaskStatus format and added reportNextRecordRange
  59232. for HADOOP-153
  59233. Version 11 Adds RPCs for task commit as part of HADOOP-3150
  59234. Version 12 getMapCompletionEvents() now also indicates if the events are
  59235. stale or not. Hence the return type is a class that
  59236. encapsulates the events and whether to reset events index.
  59237. Version 13 changed the getTask method signature for HADOOP-249
  59238. Version 14 changed the getTask method signature for HADOOP-4232
  59239. Version 15 Adds FAILED_UNCLEAN and KILLED_UNCLEAN states for HADOOP-4759
  59240. Version 16 Added numRequiredSlots to TaskStatus for MAPREDUCE-516
  59241. Version 17 Change in signature of getTask() for HADOOP-5488
  59242. Version 18 Added fatalError for child to communicate fatal errors to TT
  59243. Version 19 Added jvmContext to most method signatures for MAPREDUCE-2429]]>
  59244. </doc>
  59245. </field>
  59246. <doc>
  59247. <![CDATA[Protocol that task child process uses to contact its parent process. The
  59248. parent is a daemon which which polls the central master for a new map or
  59249. reduce task and runs it as a child process. All communication between child
  59250. and parent is via this protocol.]]>
  59251. </doc>
  59252. </interface>
  59253. <!-- end interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  59254. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  59255. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  59256. abstract="false"
  59257. static="false" final="false" visibility="public"
  59258. deprecated="not deprecated">
  59259. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  59260. <constructor name="TextInputFormat"
  59261. static="false" final="false" visibility="public"
  59262. deprecated="not deprecated">
  59263. </constructor>
  59264. <method name="configure"
  59265. abstract="false" native="false" synchronized="false"
  59266. static="false" final="false" visibility="public"
  59267. deprecated="not deprecated">
  59268. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  59269. </method>
  59270. <method name="isSplitable" return="boolean"
  59271. abstract="false" native="false" synchronized="false"
  59272. static="false" final="false" visibility="protected"
  59273. deprecated="not deprecated">
  59274. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  59275. <param name="file" type="org.apache.hadoop.fs.Path"/>
  59276. </method>
  59277. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  59278. abstract="false" native="false" synchronized="false"
  59279. static="false" final="false" visibility="public"
  59280. deprecated="not deprecated">
  59281. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  59282. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59283. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59284. <exception name="IOException" type="java.io.IOException"/>
  59285. </method>
  59286. <doc>
  59287. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  59288. Either linefeed or carriage-return are used to signal end of line. Keys are
  59289. the position in the file, and values are the line of text..]]>
  59290. </doc>
  59291. </class>
  59292. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  59293. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  59294. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  59295. abstract="false"
  59296. static="false" final="false" visibility="public"
  59297. deprecated="not deprecated">
  59298. <constructor name="TextOutputFormat"
  59299. static="false" final="false" visibility="public"
  59300. deprecated="not deprecated">
  59301. </constructor>
  59302. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  59303. abstract="false" native="false" synchronized="false"
  59304. static="false" final="false" visibility="public"
  59305. deprecated="not deprecated">
  59306. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  59307. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59308. <param name="name" type="java.lang.String"/>
  59309. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  59310. <exception name="IOException" type="java.io.IOException"/>
  59311. </method>
  59312. <doc>
  59313. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  59314. </doc>
  59315. </class>
  59316. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  59317. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  59318. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  59319. abstract="false"
  59320. static="true" final="false" visibility="protected"
  59321. deprecated="not deprecated">
  59322. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  59323. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  59324. static="false" final="false" visibility="public"
  59325. deprecated="not deprecated">
  59326. </constructor>
  59327. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  59328. static="false" final="false" visibility="public"
  59329. deprecated="not deprecated">
  59330. </constructor>
  59331. <method name="write"
  59332. abstract="false" native="false" synchronized="true"
  59333. static="false" final="false" visibility="public"
  59334. deprecated="not deprecated">
  59335. <param name="key" type="java.lang.Object"/>
  59336. <param name="value" type="java.lang.Object"/>
  59337. <exception name="IOException" type="java.io.IOException"/>
  59338. </method>
  59339. <method name="close"
  59340. abstract="false" native="false" synchronized="true"
  59341. static="false" final="false" visibility="public"
  59342. deprecated="not deprecated">
  59343. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59344. <exception name="IOException" type="java.io.IOException"/>
  59345. </method>
  59346. <field name="out" type="java.io.DataOutputStream"
  59347. transient="false" volatile="false"
  59348. static="false" final="false" visibility="protected"
  59349. deprecated="not deprecated">
  59350. </field>
  59351. </class>
  59352. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  59353. <!-- start class org.apache.hadoop.mapred.TIPStatus -->
  59354. <class name="TIPStatus" extends="java.lang.Enum"
  59355. abstract="false"
  59356. static="false" final="true" visibility="public"
  59357. deprecated="not deprecated">
  59358. <method name="values" return="org.apache.hadoop.mapred.TIPStatus[]"
  59359. abstract="false" native="false" synchronized="false"
  59360. static="true" final="false" visibility="public"
  59361. deprecated="not deprecated">
  59362. </method>
  59363. <method name="valueOf" return="org.apache.hadoop.mapred.TIPStatus"
  59364. abstract="false" native="false" synchronized="false"
  59365. static="true" final="false" visibility="public"
  59366. deprecated="not deprecated">
  59367. <param name="name" type="java.lang.String"/>
  59368. </method>
  59369. <field name="PENDING" type="org.apache.hadoop.mapred.TIPStatus"
  59370. transient="false" volatile="false"
  59371. static="true" final="true" visibility="public"
  59372. deprecated="not deprecated">
  59373. </field>
  59374. <field name="RUNNING" type="org.apache.hadoop.mapred.TIPStatus"
  59375. transient="false" volatile="false"
  59376. static="true" final="true" visibility="public"
  59377. deprecated="not deprecated">
  59378. </field>
  59379. <field name="COMPLETE" type="org.apache.hadoop.mapred.TIPStatus"
  59380. transient="false" volatile="false"
  59381. static="true" final="true" visibility="public"
  59382. deprecated="not deprecated">
  59383. </field>
  59384. <field name="KILLED" type="org.apache.hadoop.mapred.TIPStatus"
  59385. transient="false" volatile="false"
  59386. static="true" final="true" visibility="public"
  59387. deprecated="not deprecated">
  59388. </field>
  59389. <field name="FAILED" type="org.apache.hadoop.mapred.TIPStatus"
  59390. transient="false" volatile="false"
  59391. static="true" final="true" visibility="public"
  59392. deprecated="not deprecated">
  59393. </field>
  59394. <doc>
  59395. <![CDATA[The states of a {@link TaskInProgress} as seen by the JobTracker.]]>
  59396. </doc>
  59397. </class>
  59398. <!-- end class org.apache.hadoop.mapred.TIPStatus -->
  59399. <!-- start class org.apache.hadoop.mapred.UserLogCleaner -->
  59400. <class name="UserLogCleaner" extends="java.lang.Thread"
  59401. abstract="false"
  59402. static="false" final="false" visibility="public"
  59403. deprecated="not deprecated">
  59404. <constructor name="UserLogCleaner" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager, org.apache.hadoop.conf.Configuration"
  59405. static="false" final="false" visibility="public"
  59406. deprecated="not deprecated">
  59407. <exception name="IOException" type="java.io.IOException"/>
  59408. </constructor>
  59409. <method name="run"
  59410. abstract="false" native="false" synchronized="false"
  59411. static="false" final="false" visibility="public"
  59412. deprecated="not deprecated">
  59413. </method>
  59414. <method name="deleteJobLogs"
  59415. abstract="false" native="false" synchronized="false"
  59416. static="false" final="false" visibility="public"
  59417. deprecated="not deprecated">
  59418. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  59419. <exception name="IOException" type="java.io.IOException"/>
  59420. </method>
  59421. <method name="addOldUserLogsForDeletion"
  59422. abstract="false" native="false" synchronized="false"
  59423. static="false" final="false" visibility="public"
  59424. deprecated="not deprecated">
  59425. <param name="loc" type="java.io.File"/>
  59426. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  59427. <exception name="IOException" type="java.io.IOException"/>
  59428. <doc>
  59429. <![CDATA[Adds the job log directories for deletion with default retain hours.
  59430. Deletes all other directories, if any.
  59431. @param loc location of log directory
  59432. @param conf
  59433. @throws IOException]]>
  59434. </doc>
  59435. </method>
  59436. <method name="clearOldUserLogs"
  59437. abstract="false" native="false" synchronized="false"
  59438. static="false" final="false" visibility="public"
  59439. deprecated="not deprecated">
  59440. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  59441. <exception name="IOException" type="java.io.IOException"/>
  59442. <doc>
  59443. <![CDATA[Clears all the logs in userlogs directory. This is usually called on
  59444. reinit/restart of the TaskTracker.
  59445. @param conf
  59446. @throws IOException]]>
  59447. </doc>
  59448. </method>
  59449. <method name="markJobLogsForDeletion"
  59450. abstract="false" native="false" synchronized="false"
  59451. static="false" final="false" visibility="public"
  59452. deprecated="not deprecated">
  59453. <param name="jobCompletionTime" type="long"/>
  59454. <param name="retainHours" type="int"/>
  59455. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  59456. <doc>
  59457. <![CDATA[Adds job user-log directory to cleanup thread to delete logs after user-log
  59458. retain hours.
  59459. @param jobCompletionTime
  59460. job completion time in millis
  59461. @param retainHours
  59462. the user-log retain hours for the job
  59463. @param jobid
  59464. JobID for which user logs should be deleted]]>
  59465. </doc>
  59466. </method>
  59467. <method name="unmarkJobFromLogDeletion"
  59468. abstract="false" native="false" synchronized="false"
  59469. static="false" final="false" visibility="public"
  59470. deprecated="not deprecated">
  59471. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  59472. <doc>
  59473. <![CDATA[Remove job from user log deletion.
  59474. @param jobid]]>
  59475. </doc>
  59476. </method>
  59477. <doc>
  59478. <![CDATA[This is used only in UserLogManager, to manage cleanup of user logs.]]>
  59479. </doc>
  59480. </class>
  59481. <!-- end class org.apache.hadoop.mapred.UserLogCleaner -->
  59482. <!-- start class org.apache.hadoop.mapred.Utils -->
  59483. <class name="Utils" extends="java.lang.Object"
  59484. abstract="false"
  59485. static="false" final="false" visibility="public"
  59486. deprecated="not deprecated">
  59487. <constructor name="Utils"
  59488. static="false" final="false" visibility="public"
  59489. deprecated="not deprecated">
  59490. </constructor>
  59491. <doc>
  59492. <![CDATA[A utility class. It provides
  59493. - file-util
  59494. - A path filter utility to filter out output/part files in the output dir]]>
  59495. </doc>
  59496. </class>
  59497. <!-- end class org.apache.hadoop.mapred.Utils -->
  59498. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  59499. <class name="Utils.OutputFileUtils" extends="java.lang.Object"
  59500. abstract="false"
  59501. static="true" final="false" visibility="public"
  59502. deprecated="not deprecated">
  59503. <constructor name="Utils.OutputFileUtils"
  59504. static="false" final="false" visibility="public"
  59505. deprecated="not deprecated">
  59506. </constructor>
  59507. </class>
  59508. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  59509. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  59510. <class name="Utils.OutputFileUtils.OutputFilesFilter" extends="org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter"
  59511. abstract="false"
  59512. static="true" final="false" visibility="public"
  59513. deprecated="not deprecated">
  59514. <constructor name="Utils.OutputFileUtils.OutputFilesFilter"
  59515. static="false" final="false" visibility="public"
  59516. deprecated="not deprecated">
  59517. </constructor>
  59518. <method name="accept" return="boolean"
  59519. abstract="false" native="false" synchronized="false"
  59520. static="false" final="false" visibility="public"
  59521. deprecated="not deprecated">
  59522. <param name="path" type="org.apache.hadoop.fs.Path"/>
  59523. </method>
  59524. <doc>
  59525. <![CDATA[This class filters output(part) files from the given directory
  59526. It does not accept files with filenames _logs and _SUCCESS.
  59527. This can be used to list paths of output directory as follows:
  59528. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  59529. new OutputFilesFilter()));]]>
  59530. </doc>
  59531. </class>
  59532. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  59533. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  59534. <class name="Utils.OutputFileUtils.OutputLogFilter" extends="java.lang.Object"
  59535. abstract="false"
  59536. static="true" final="false" visibility="public"
  59537. deprecated="not deprecated">
  59538. <implements name="org.apache.hadoop.fs.PathFilter"/>
  59539. <constructor name="Utils.OutputFileUtils.OutputLogFilter"
  59540. static="false" final="false" visibility="public"
  59541. deprecated="not deprecated">
  59542. </constructor>
  59543. <method name="accept" return="boolean"
  59544. abstract="false" native="false" synchronized="false"
  59545. static="false" final="false" visibility="public"
  59546. deprecated="not deprecated">
  59547. <param name="path" type="org.apache.hadoop.fs.Path"/>
  59548. </method>
  59549. <doc>
  59550. <![CDATA[This class filters log files from directory given
  59551. It doesnt accept paths having _logs.
  59552. This can be used to list paths of output directory as follows:
  59553. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  59554. new OutputLogFilter()));]]>
  59555. </doc>
  59556. </class>
  59557. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  59558. </package>
  59559. <package name="org.apache.hadoop.mapred.jobcontrol">
  59560. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  59561. <class name="Job" extends="java.lang.Object"
  59562. abstract="false"
  59563. static="false" final="false" visibility="public"
  59564. deprecated="not deprecated">
  59565. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList"
  59566. static="false" final="false" visibility="public"
  59567. deprecated="not deprecated">
  59568. <exception name="IOException" type="java.io.IOException"/>
  59569. <doc>
  59570. <![CDATA[Construct a job.
  59571. @param jobConf a mapred job configuration representing a job to be executed.
  59572. @param dependingJobs an array of jobs the current job depends on]]>
  59573. </doc>
  59574. </constructor>
  59575. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  59576. static="false" final="false" visibility="public"
  59577. deprecated="not deprecated">
  59578. <exception name="IOException" type="java.io.IOException"/>
  59579. <doc>
  59580. <![CDATA[Construct a job.
  59581. @param jobConf mapred job configuration representing a job to be executed.
  59582. @throws IOException]]>
  59583. </doc>
  59584. </constructor>
  59585. <method name="toString" return="java.lang.String"
  59586. abstract="false" native="false" synchronized="false"
  59587. static="false" final="false" visibility="public"
  59588. deprecated="not deprecated">
  59589. </method>
  59590. <method name="getJobName" return="java.lang.String"
  59591. abstract="false" native="false" synchronized="false"
  59592. static="false" final="false" visibility="public"
  59593. deprecated="not deprecated">
  59594. <doc>
  59595. <![CDATA[@return the job name of this job]]>
  59596. </doc>
  59597. </method>
  59598. <method name="setJobName"
  59599. abstract="false" native="false" synchronized="false"
  59600. static="false" final="false" visibility="public"
  59601. deprecated="not deprecated">
  59602. <param name="jobName" type="java.lang.String"/>
  59603. <doc>
  59604. <![CDATA[Set the job name for this job.
  59605. @param jobName the job name]]>
  59606. </doc>
  59607. </method>
  59608. <method name="getJobID" return="java.lang.String"
  59609. abstract="false" native="false" synchronized="false"
  59610. static="false" final="false" visibility="public"
  59611. deprecated="not deprecated">
  59612. <doc>
  59613. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  59614. </doc>
  59615. </method>
  59616. <method name="setJobID"
  59617. abstract="false" native="false" synchronized="false"
  59618. static="false" final="false" visibility="public"
  59619. deprecated="not deprecated">
  59620. <param name="id" type="java.lang.String"/>
  59621. <doc>
  59622. <![CDATA[Set the job ID for this job.
  59623. @param id the job ID]]>
  59624. </doc>
  59625. </method>
  59626. <method name="getMapredJobID" return="java.lang.String"
  59627. abstract="false" native="false" synchronized="false"
  59628. static="false" final="false" visibility="public"
  59629. deprecated="use {@link #getAssignedJobID()} instead">
  59630. <doc>
  59631. <![CDATA[@return the mapred ID of this job
  59632. @deprecated use {@link #getAssignedJobID()} instead]]>
  59633. </doc>
  59634. </method>
  59635. <method name="setMapredJobID"
  59636. abstract="false" native="false" synchronized="false"
  59637. static="false" final="false" visibility="public"
  59638. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  59639. <param name="mapredJobID" type="java.lang.String"/>
  59640. <doc>
  59641. <![CDATA[Set the mapred ID for this job.
  59642. @param mapredJobID the mapred job ID for this job.
  59643. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  59644. </doc>
  59645. </method>
  59646. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  59647. abstract="false" native="false" synchronized="false"
  59648. static="false" final="false" visibility="public"
  59649. deprecated="not deprecated">
  59650. <doc>
  59651. <![CDATA[@return the mapred ID of this job as assigned by the
  59652. mapred framework.]]>
  59653. </doc>
  59654. </method>
  59655. <method name="setAssignedJobID"
  59656. abstract="false" native="false" synchronized="false"
  59657. static="false" final="false" visibility="public"
  59658. deprecated="not deprecated">
  59659. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  59660. <doc>
  59661. <![CDATA[Set the mapred ID for this job as assigned by the
  59662. mapred framework.
  59663. @param mapredJobID the mapred job ID for this job.]]>
  59664. </doc>
  59665. </method>
  59666. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  59667. abstract="false" native="false" synchronized="false"
  59668. static="false" final="false" visibility="public"
  59669. deprecated="not deprecated">
  59670. <doc>
  59671. <![CDATA[@return the mapred job conf of this job]]>
  59672. </doc>
  59673. </method>
  59674. <method name="setJobConf"
  59675. abstract="false" native="false" synchronized="false"
  59676. static="false" final="false" visibility="public"
  59677. deprecated="not deprecated">
  59678. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  59679. <doc>
  59680. <![CDATA[Set the mapred job conf for this job.
  59681. @param jobConf the mapred job conf for this job.]]>
  59682. </doc>
  59683. </method>
  59684. <method name="getState" return="int"
  59685. abstract="false" native="false" synchronized="true"
  59686. static="false" final="false" visibility="public"
  59687. deprecated="not deprecated">
  59688. <doc>
  59689. <![CDATA[@return the state of this job]]>
  59690. </doc>
  59691. </method>
  59692. <method name="setState"
  59693. abstract="false" native="false" synchronized="true"
  59694. static="false" final="false" visibility="protected"
  59695. deprecated="not deprecated">
  59696. <param name="state" type="int"/>
  59697. <doc>
  59698. <![CDATA[Set the state for this job.
  59699. @param state the new state for this job.]]>
  59700. </doc>
  59701. </method>
  59702. <method name="getMessage" return="java.lang.String"
  59703. abstract="false" native="false" synchronized="false"
  59704. static="false" final="false" visibility="public"
  59705. deprecated="not deprecated">
  59706. <doc>
  59707. <![CDATA[@return the message of this job]]>
  59708. </doc>
  59709. </method>
  59710. <method name="setMessage"
  59711. abstract="false" native="false" synchronized="false"
  59712. static="false" final="false" visibility="public"
  59713. deprecated="not deprecated">
  59714. <param name="message" type="java.lang.String"/>
  59715. <doc>
  59716. <![CDATA[Set the message for this job.
  59717. @param message the message for this job.]]>
  59718. </doc>
  59719. </method>
  59720. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  59721. abstract="false" native="false" synchronized="false"
  59722. static="false" final="false" visibility="public"
  59723. deprecated="not deprecated">
  59724. <doc>
  59725. <![CDATA[@return the job client of this job]]>
  59726. </doc>
  59727. </method>
  59728. <method name="getDependingJobs" return="java.util.ArrayList"
  59729. abstract="false" native="false" synchronized="false"
  59730. static="false" final="false" visibility="public"
  59731. deprecated="not deprecated">
  59732. <doc>
  59733. <![CDATA[@return the depending jobs of this job]]>
  59734. </doc>
  59735. </method>
  59736. <method name="addDependingJob" return="boolean"
  59737. abstract="false" native="false" synchronized="true"
  59738. static="false" final="false" visibility="public"
  59739. deprecated="not deprecated">
  59740. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  59741. <doc>
  59742. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  59743. is waiting to run, not during or afterwards.
  59744. @param dependingJob Job that this Job depends on.
  59745. @return <tt>true</tt> if the Job was added.]]>
  59746. </doc>
  59747. </method>
  59748. <method name="isCompleted" return="boolean"
  59749. abstract="false" native="false" synchronized="false"
  59750. static="false" final="false" visibility="public"
  59751. deprecated="not deprecated">
  59752. <doc>
  59753. <![CDATA[@return true if this job is in a complete state]]>
  59754. </doc>
  59755. </method>
  59756. <method name="isReady" return="boolean"
  59757. abstract="false" native="false" synchronized="false"
  59758. static="false" final="false" visibility="public"
  59759. deprecated="not deprecated">
  59760. <doc>
  59761. <![CDATA[@return true if this job is in READY state]]>
  59762. </doc>
  59763. </method>
  59764. <method name="submit"
  59765. abstract="false" native="false" synchronized="true"
  59766. static="false" final="false" visibility="protected"
  59767. deprecated="not deprecated">
  59768. <doc>
  59769. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  59770. is successful, FAILED otherwise.]]>
  59771. </doc>
  59772. </method>
  59773. <field name="SUCCESS" type="int"
  59774. transient="false" volatile="false"
  59775. static="true" final="true" visibility="public"
  59776. deprecated="not deprecated">
  59777. </field>
  59778. <field name="WAITING" type="int"
  59779. transient="false" volatile="false"
  59780. static="true" final="true" visibility="public"
  59781. deprecated="not deprecated">
  59782. </field>
  59783. <field name="RUNNING" type="int"
  59784. transient="false" volatile="false"
  59785. static="true" final="true" visibility="public"
  59786. deprecated="not deprecated">
  59787. </field>
  59788. <field name="READY" type="int"
  59789. transient="false" volatile="false"
  59790. static="true" final="true" visibility="public"
  59791. deprecated="not deprecated">
  59792. </field>
  59793. <field name="FAILED" type="int"
  59794. transient="false" volatile="false"
  59795. static="true" final="true" visibility="public"
  59796. deprecated="not deprecated">
  59797. </field>
  59798. <field name="DEPENDENT_FAILED" type="int"
  59799. transient="false" volatile="false"
  59800. static="true" final="true" visibility="public"
  59801. deprecated="not deprecated">
  59802. </field>
  59803. <doc>
  59804. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  59805. the states of the depending jobs and updates the state of this job.
  59806. A job starts in the WAITING state. If it does not have any depending jobs, or
  59807. all of the depending jobs are in SUCCESS state, then the job state will become
  59808. READY. If any depending jobs fail, the job will fail too.
  59809. When in READY state, the job can be submitted to Hadoop for execution, with
  59810. the state changing into RUNNING state. From RUNNING state, the job can get into
  59811. SUCCESS or FAILED state, depending the status of the job execution.]]>
  59812. </doc>
  59813. </class>
  59814. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  59815. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  59816. <class name="JobControl" extends="java.lang.Object"
  59817. abstract="false"
  59818. static="false" final="false" visibility="public"
  59819. deprecated="not deprecated">
  59820. <implements name="java.lang.Runnable"/>
  59821. <constructor name="JobControl" type="java.lang.String"
  59822. static="false" final="false" visibility="public"
  59823. deprecated="not deprecated">
  59824. <doc>
  59825. <![CDATA[Construct a job control for a group of jobs.
  59826. @param groupName a name identifying this group]]>
  59827. </doc>
  59828. </constructor>
  59829. <method name="getWaitingJobs" return="java.util.ArrayList"
  59830. abstract="false" native="false" synchronized="false"
  59831. static="false" final="false" visibility="public"
  59832. deprecated="not deprecated">
  59833. <doc>
  59834. <![CDATA[@return the jobs in the waiting state]]>
  59835. </doc>
  59836. </method>
  59837. <method name="getRunningJobs" return="java.util.ArrayList"
  59838. abstract="false" native="false" synchronized="false"
  59839. static="false" final="false" visibility="public"
  59840. deprecated="not deprecated">
  59841. <doc>
  59842. <![CDATA[@return the jobs in the running state]]>
  59843. </doc>
  59844. </method>
  59845. <method name="getReadyJobs" return="java.util.ArrayList"
  59846. abstract="false" native="false" synchronized="false"
  59847. static="false" final="false" visibility="public"
  59848. deprecated="not deprecated">
  59849. <doc>
  59850. <![CDATA[@return the jobs in the ready state]]>
  59851. </doc>
  59852. </method>
  59853. <method name="getSuccessfulJobs" return="java.util.ArrayList"
  59854. abstract="false" native="false" synchronized="false"
  59855. static="false" final="false" visibility="public"
  59856. deprecated="not deprecated">
  59857. <doc>
  59858. <![CDATA[@return the jobs in the success state]]>
  59859. </doc>
  59860. </method>
  59861. <method name="getFailedJobs" return="java.util.ArrayList"
  59862. abstract="false" native="false" synchronized="false"
  59863. static="false" final="false" visibility="public"
  59864. deprecated="not deprecated">
  59865. </method>
  59866. <method name="addJob" return="java.lang.String"
  59867. abstract="false" native="false" synchronized="true"
  59868. static="false" final="false" visibility="public"
  59869. deprecated="not deprecated">
  59870. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  59871. <doc>
  59872. <![CDATA[Add a new job.
  59873. @param aJob the new job]]>
  59874. </doc>
  59875. </method>
  59876. <method name="addJobs"
  59877. abstract="false" native="false" synchronized="false"
  59878. static="false" final="false" visibility="public"
  59879. deprecated="not deprecated">
  59880. <param name="jobs" type="java.util.Collection"/>
  59881. <doc>
  59882. <![CDATA[Add a collection of jobs
  59883. @param jobs]]>
  59884. </doc>
  59885. </method>
  59886. <method name="getState" return="int"
  59887. abstract="false" native="false" synchronized="false"
  59888. static="false" final="false" visibility="public"
  59889. deprecated="not deprecated">
  59890. <doc>
  59891. <![CDATA[@return the thread state]]>
  59892. </doc>
  59893. </method>
  59894. <method name="stop"
  59895. abstract="false" native="false" synchronized="false"
  59896. static="false" final="false" visibility="public"
  59897. deprecated="not deprecated">
  59898. <doc>
  59899. <![CDATA[set the thread state to STOPPING so that the
  59900. thread will stop when it wakes up.]]>
  59901. </doc>
  59902. </method>
  59903. <method name="suspend"
  59904. abstract="false" native="false" synchronized="false"
  59905. static="false" final="false" visibility="public"
  59906. deprecated="not deprecated">
  59907. <doc>
  59908. <![CDATA[suspend the running thread]]>
  59909. </doc>
  59910. </method>
  59911. <method name="resume"
  59912. abstract="false" native="false" synchronized="false"
  59913. static="false" final="false" visibility="public"
  59914. deprecated="not deprecated">
  59915. <doc>
  59916. <![CDATA[resume the suspended thread]]>
  59917. </doc>
  59918. </method>
  59919. <method name="allFinished" return="boolean"
  59920. abstract="false" native="false" synchronized="true"
  59921. static="false" final="false" visibility="public"
  59922. deprecated="not deprecated">
  59923. </method>
  59924. <method name="run"
  59925. abstract="false" native="false" synchronized="false"
  59926. static="false" final="false" visibility="public"
  59927. deprecated="not deprecated">
  59928. <doc>
  59929. <![CDATA[The main loop for the thread.
  59930. The loop does the following:
  59931. Check the states of the running jobs
  59932. Update the states of waiting jobs
  59933. Submit the jobs in ready state]]>
  59934. </doc>
  59935. </method>
  59936. <doc>
  59937. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  59938. the states of the jobs by placing them into different tables according to their
  59939. states.
  59940. This class provides APIs for the client app to add a job to the group and to get
  59941. the jobs in the group in different states. When a
  59942. job is added, an ID unique to the group is assigned to the job.
  59943. This class has a thread that submits jobs when they become ready, monitors the
  59944. states of the running jobs, and updates the states of jobs based on the state changes
  59945. of their depending jobs states. The class provides APIs for suspending/resuming
  59946. the thread,and for stopping the thread.]]>
  59947. </doc>
  59948. </class>
  59949. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  59950. </package>
  59951. <package name="org.apache.hadoop.mapred.join">
  59952. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  59953. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  59954. abstract="false"
  59955. static="false" final="false" visibility="public"
  59956. deprecated="not deprecated">
  59957. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59958. <constructor name="ArrayListBackedIterator"
  59959. static="false" final="false" visibility="public"
  59960. deprecated="not deprecated">
  59961. </constructor>
  59962. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList"
  59963. static="false" final="false" visibility="public"
  59964. deprecated="not deprecated">
  59965. </constructor>
  59966. <method name="hasNext" return="boolean"
  59967. abstract="false" native="false" synchronized="false"
  59968. static="false" final="false" visibility="public"
  59969. deprecated="not deprecated">
  59970. </method>
  59971. <method name="next" return="boolean"
  59972. abstract="false" native="false" synchronized="false"
  59973. static="false" final="false" visibility="public"
  59974. deprecated="not deprecated">
  59975. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59976. <exception name="IOException" type="java.io.IOException"/>
  59977. </method>
  59978. <method name="replay" return="boolean"
  59979. abstract="false" native="false" synchronized="false"
  59980. static="false" final="false" visibility="public"
  59981. deprecated="not deprecated">
  59982. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59983. <exception name="IOException" type="java.io.IOException"/>
  59984. </method>
  59985. <method name="reset"
  59986. abstract="false" native="false" synchronized="false"
  59987. static="false" final="false" visibility="public"
  59988. deprecated="not deprecated">
  59989. </method>
  59990. <method name="add"
  59991. abstract="false" native="false" synchronized="false"
  59992. static="false" final="false" visibility="public"
  59993. deprecated="not deprecated">
  59994. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59995. <exception name="IOException" type="java.io.IOException"/>
  59996. </method>
  59997. <method name="close"
  59998. abstract="false" native="false" synchronized="false"
  59999. static="false" final="false" visibility="public"
  60000. deprecated="not deprecated">
  60001. <exception name="IOException" type="java.io.IOException"/>
  60002. </method>
  60003. <method name="clear"
  60004. abstract="false" native="false" synchronized="false"
  60005. static="false" final="false" visibility="public"
  60006. deprecated="not deprecated">
  60007. </method>
  60008. <doc>
  60009. <![CDATA[This class provides an implementation of ResetableIterator. The
  60010. implementation uses an {@link java.util.ArrayList} to store elements
  60011. added to it, replaying them as requested.
  60012. Prefer {@link StreamBackedIterator}.]]>
  60013. </doc>
  60014. </class>
  60015. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  60016. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  60017. <interface name="ComposableInputFormat" abstract="true"
  60018. static="false" final="false" visibility="public"
  60019. deprecated="not deprecated">
  60020. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  60021. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  60022. abstract="false" native="false" synchronized="false"
  60023. static="false" final="false" visibility="public"
  60024. deprecated="not deprecated">
  60025. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60026. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60027. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60028. <exception name="IOException" type="java.io.IOException"/>
  60029. </method>
  60030. <doc>
  60031. <![CDATA[Refinement of InputFormat requiring implementors to provide
  60032. ComposableRecordReader instead of RecordReader.]]>
  60033. </doc>
  60034. </interface>
  60035. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  60036. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  60037. <interface name="ComposableRecordReader" abstract="true"
  60038. static="false" final="false" visibility="public"
  60039. deprecated="not deprecated">
  60040. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  60041. <implements name="java.lang.Comparable"/>
  60042. <method name="id" return="int"
  60043. abstract="false" native="false" synchronized="false"
  60044. static="false" final="false" visibility="public"
  60045. deprecated="not deprecated">
  60046. <doc>
  60047. <![CDATA[Return the position in the collector this class occupies.]]>
  60048. </doc>
  60049. </method>
  60050. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  60051. abstract="false" native="false" synchronized="false"
  60052. static="false" final="false" visibility="public"
  60053. deprecated="not deprecated">
  60054. <doc>
  60055. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  60056. </doc>
  60057. </method>
  60058. <method name="key"
  60059. abstract="false" native="false" synchronized="false"
  60060. static="false" final="false" visibility="public"
  60061. deprecated="not deprecated">
  60062. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60063. <exception name="IOException" type="java.io.IOException"/>
  60064. <doc>
  60065. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  60066. </doc>
  60067. </method>
  60068. <method name="hasNext" return="boolean"
  60069. abstract="false" native="false" synchronized="false"
  60070. static="false" final="false" visibility="public"
  60071. deprecated="not deprecated">
  60072. <doc>
  60073. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  60074. a call to next(K,V) will succeed.]]>
  60075. </doc>
  60076. </method>
  60077. <method name="skip"
  60078. abstract="false" native="false" synchronized="false"
  60079. static="false" final="false" visibility="public"
  60080. deprecated="not deprecated">
  60081. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60082. <exception name="IOException" type="java.io.IOException"/>
  60083. <doc>
  60084. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  60085. </doc>
  60086. </method>
  60087. <method name="accept"
  60088. abstract="false" native="false" synchronized="false"
  60089. static="false" final="false" visibility="public"
  60090. deprecated="not deprecated">
  60091. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  60092. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60093. <exception name="IOException" type="java.io.IOException"/>
  60094. <doc>
  60095. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  60096. them with the JoinCollector provided.]]>
  60097. </doc>
  60098. </method>
  60099. <doc>
  60100. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  60101. </doc>
  60102. </interface>
  60103. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  60104. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  60105. <class name="CompositeInputFormat" extends="java.lang.Object"
  60106. abstract="false"
  60107. static="false" final="false" visibility="public"
  60108. deprecated="not deprecated">
  60109. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  60110. <constructor name="CompositeInputFormat"
  60111. static="false" final="false" visibility="public"
  60112. deprecated="not deprecated">
  60113. </constructor>
  60114. <method name="setFormat"
  60115. abstract="false" native="false" synchronized="false"
  60116. static="false" final="false" visibility="public"
  60117. deprecated="not deprecated">
  60118. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60119. <exception name="IOException" type="java.io.IOException"/>
  60120. <doc>
  60121. <![CDATA[Interpret a given string as a composite expression.
  60122. {@code
  60123. func ::= <ident>([<func>,]*<func>)
  60124. func ::= tbl(<class>,"<path>")
  60125. class ::= @see java.lang.Class#forName(java.lang.String)
  60126. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  60127. }
  60128. Reads expression from the <tt>mapred.join.expr</tt> property and
  60129. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  60130. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  60131. InputFormat class listed.
  60132. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  60133. </doc>
  60134. </method>
  60135. <method name="addDefaults"
  60136. abstract="false" native="false" synchronized="false"
  60137. static="false" final="false" visibility="protected"
  60138. deprecated="not deprecated">
  60139. <doc>
  60140. <![CDATA[Adds the default set of identifiers to the parser.]]>
  60141. </doc>
  60142. </method>
  60143. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  60144. abstract="false" native="false" synchronized="false"
  60145. static="false" final="false" visibility="public"
  60146. deprecated="not deprecated">
  60147. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60148. <param name="numSplits" type="int"/>
  60149. <exception name="IOException" type="java.io.IOException"/>
  60150. <doc>
  60151. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  60152. ith split from each child to the ith composite split.]]>
  60153. </doc>
  60154. </method>
  60155. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  60156. abstract="false" native="false" synchronized="false"
  60157. static="false" final="false" visibility="public"
  60158. deprecated="not deprecated">
  60159. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60160. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60161. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60162. <exception name="IOException" type="java.io.IOException"/>
  60163. <doc>
  60164. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  60165. as defined in the init expression.
  60166. The outermost join need only be composable, not necessarily a composite.
  60167. Mandating TupleWritable isn't strictly correct.]]>
  60168. </doc>
  60169. </method>
  60170. <method name="compose" return="java.lang.String"
  60171. abstract="false" native="false" synchronized="false"
  60172. static="true" final="false" visibility="public"
  60173. deprecated="not deprecated">
  60174. <param name="inf" type="java.lang.Class"/>
  60175. <param name="path" type="java.lang.String"/>
  60176. <doc>
  60177. <![CDATA[Convenience method for constructing composite formats.
  60178. Given InputFormat class (inf), path (p) return:
  60179. {@code tbl(<inf>, <p>) }]]>
  60180. </doc>
  60181. </method>
  60182. <method name="compose" return="java.lang.String"
  60183. abstract="false" native="false" synchronized="false"
  60184. static="true" final="false" visibility="public"
  60185. deprecated="not deprecated">
  60186. <param name="op" type="java.lang.String"/>
  60187. <param name="inf" type="java.lang.Class"/>
  60188. <param name="path" type="java.lang.String[]"/>
  60189. <doc>
  60190. <![CDATA[Convenience method for constructing composite formats.
  60191. Given operation (op), Object class (inf), set of paths (p) return:
  60192. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  60193. </doc>
  60194. </method>
  60195. <method name="compose" return="java.lang.String"
  60196. abstract="false" native="false" synchronized="false"
  60197. static="true" final="false" visibility="public"
  60198. deprecated="not deprecated">
  60199. <param name="op" type="java.lang.String"/>
  60200. <param name="inf" type="java.lang.Class"/>
  60201. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  60202. <doc>
  60203. <![CDATA[Convenience method for constructing composite formats.
  60204. Given operation (op), Object class (inf), set of paths (p) return:
  60205. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  60206. </doc>
  60207. </method>
  60208. <doc>
  60209. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  60210. and partitioned the same way.
  60211. @see #setFormat
  60212. A user may define new join types by setting the property
  60213. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  60214. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  60215. ComposableRecordReader.
  60216. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  60217. in the join.
  60218. @see JoinRecordReader
  60219. @see MultiFilterRecordReader]]>
  60220. </doc>
  60221. </class>
  60222. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  60223. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  60224. <class name="CompositeInputSplit" extends="java.lang.Object"
  60225. abstract="false"
  60226. static="false" final="false" visibility="public"
  60227. deprecated="not deprecated">
  60228. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  60229. <constructor name="CompositeInputSplit"
  60230. static="false" final="false" visibility="public"
  60231. deprecated="not deprecated">
  60232. </constructor>
  60233. <constructor name="CompositeInputSplit" type="int"
  60234. static="false" final="false" visibility="public"
  60235. deprecated="not deprecated">
  60236. </constructor>
  60237. <method name="add"
  60238. abstract="false" native="false" synchronized="false"
  60239. static="false" final="false" visibility="public"
  60240. deprecated="not deprecated">
  60241. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  60242. <exception name="IOException" type="java.io.IOException"/>
  60243. <doc>
  60244. <![CDATA[Add an InputSplit to this collection.
  60245. @throws IOException If capacity was not specified during construction
  60246. or if capacity has been reached.]]>
  60247. </doc>
  60248. </method>
  60249. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  60250. abstract="false" native="false" synchronized="false"
  60251. static="false" final="false" visibility="public"
  60252. deprecated="not deprecated">
  60253. <param name="i" type="int"/>
  60254. <doc>
  60255. <![CDATA[Get ith child InputSplit.]]>
  60256. </doc>
  60257. </method>
  60258. <method name="getLength" return="long"
  60259. abstract="false" native="false" synchronized="false"
  60260. static="false" final="false" visibility="public"
  60261. deprecated="not deprecated">
  60262. <exception name="IOException" type="java.io.IOException"/>
  60263. <doc>
  60264. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  60265. </doc>
  60266. </method>
  60267. <method name="getLength" return="long"
  60268. abstract="false" native="false" synchronized="false"
  60269. static="false" final="false" visibility="public"
  60270. deprecated="not deprecated">
  60271. <param name="i" type="int"/>
  60272. <exception name="IOException" type="java.io.IOException"/>
  60273. <doc>
  60274. <![CDATA[Get the length of ith child InputSplit.]]>
  60275. </doc>
  60276. </method>
  60277. <method name="getLocations" return="java.lang.String[]"
  60278. abstract="false" native="false" synchronized="false"
  60279. static="false" final="false" visibility="public"
  60280. deprecated="not deprecated">
  60281. <exception name="IOException" type="java.io.IOException"/>
  60282. <doc>
  60283. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  60284. </doc>
  60285. </method>
  60286. <method name="getLocation" return="java.lang.String[]"
  60287. abstract="false" native="false" synchronized="false"
  60288. static="false" final="false" visibility="public"
  60289. deprecated="not deprecated">
  60290. <param name="i" type="int"/>
  60291. <exception name="IOException" type="java.io.IOException"/>
  60292. <doc>
  60293. <![CDATA[getLocations from ith InputSplit.]]>
  60294. </doc>
  60295. </method>
  60296. <method name="write"
  60297. abstract="false" native="false" synchronized="false"
  60298. static="false" final="false" visibility="public"
  60299. deprecated="not deprecated">
  60300. <param name="out" type="java.io.DataOutput"/>
  60301. <exception name="IOException" type="java.io.IOException"/>
  60302. <doc>
  60303. <![CDATA[Write splits in the following format.
  60304. {@code
  60305. <count><class1><class2>...<classn><split1><split2>...<splitn>
  60306. }]]>
  60307. </doc>
  60308. </method>
  60309. <method name="readFields"
  60310. abstract="false" native="false" synchronized="false"
  60311. static="false" final="false" visibility="public"
  60312. deprecated="not deprecated">
  60313. <param name="in" type="java.io.DataInput"/>
  60314. <exception name="IOException" type="java.io.IOException"/>
  60315. <doc>
  60316. <![CDATA[{@inheritDoc}
  60317. @throws IOException If the child InputSplit cannot be read, typically
  60318. for faliing access checks.]]>
  60319. </doc>
  60320. </method>
  60321. <doc>
  60322. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  60323. into this collection must have a public default constructor.]]>
  60324. </doc>
  60325. </class>
  60326. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  60327. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  60328. <class name="CompositeRecordReader" extends="java.lang.Object"
  60329. abstract="true"
  60330. static="false" final="false" visibility="public"
  60331. deprecated="not deprecated">
  60332. <implements name="org.apache.hadoop.conf.Configurable"/>
  60333. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class"
  60334. static="false" final="false" visibility="public"
  60335. deprecated="not deprecated">
  60336. <exception name="IOException" type="java.io.IOException"/>
  60337. <doc>
  60338. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  60339. <tt>id</tt> in the parent reader.
  60340. The id of a root CompositeRecordReader is -1 by convention, but relying
  60341. on this is not recommended.]]>
  60342. </doc>
  60343. </constructor>
  60344. <method name="combine" return="boolean"
  60345. abstract="true" native="false" synchronized="false"
  60346. static="false" final="false" visibility="protected"
  60347. deprecated="not deprecated">
  60348. <param name="srcs" type="java.lang.Object[]"/>
  60349. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60350. </method>
  60351. <method name="id" return="int"
  60352. abstract="false" native="false" synchronized="false"
  60353. static="false" final="false" visibility="public"
  60354. deprecated="not deprecated">
  60355. <doc>
  60356. <![CDATA[Return the position in the collector this class occupies.]]>
  60357. </doc>
  60358. </method>
  60359. <method name="setConf"
  60360. abstract="false" native="false" synchronized="false"
  60361. static="false" final="false" visibility="public"
  60362. deprecated="not deprecated">
  60363. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  60364. <doc>
  60365. <![CDATA[{@inheritDoc}]]>
  60366. </doc>
  60367. </method>
  60368. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  60369. abstract="false" native="false" synchronized="false"
  60370. static="false" final="false" visibility="public"
  60371. deprecated="not deprecated">
  60372. <doc>
  60373. <![CDATA[{@inheritDoc}]]>
  60374. </doc>
  60375. </method>
  60376. <method name="getRecordReaderQueue" return="java.util.PriorityQueue"
  60377. abstract="false" native="false" synchronized="false"
  60378. static="false" final="false" visibility="protected"
  60379. deprecated="not deprecated">
  60380. <doc>
  60381. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  60382. </doc>
  60383. </method>
  60384. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  60385. abstract="false" native="false" synchronized="false"
  60386. static="false" final="false" visibility="protected"
  60387. deprecated="not deprecated">
  60388. <doc>
  60389. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  60390. composite.]]>
  60391. </doc>
  60392. </method>
  60393. <method name="add"
  60394. abstract="false" native="false" synchronized="false"
  60395. static="false" final="false" visibility="public"
  60396. deprecated="not deprecated">
  60397. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60398. <exception name="IOException" type="java.io.IOException"/>
  60399. <doc>
  60400. <![CDATA[Add a RecordReader to this collection.
  60401. The id() of a RecordReader determines where in the Tuple its
  60402. entry will appear. Adding RecordReaders with the same id has
  60403. undefined behavior.]]>
  60404. </doc>
  60405. </method>
  60406. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  60407. abstract="false" native="false" synchronized="false"
  60408. static="false" final="false" visibility="public"
  60409. deprecated="not deprecated">
  60410. <doc>
  60411. <![CDATA[Return the key for the current join or the value at the top of the
  60412. RecordReader heap.]]>
  60413. </doc>
  60414. </method>
  60415. <method name="key"
  60416. abstract="false" native="false" synchronized="false"
  60417. static="false" final="false" visibility="public"
  60418. deprecated="not deprecated">
  60419. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60420. <exception name="IOException" type="java.io.IOException"/>
  60421. <doc>
  60422. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  60423. </doc>
  60424. </method>
  60425. <method name="hasNext" return="boolean"
  60426. abstract="false" native="false" synchronized="false"
  60427. static="false" final="false" visibility="public"
  60428. deprecated="not deprecated">
  60429. <doc>
  60430. <![CDATA[Return true if it is possible that this could emit more values.]]>
  60431. </doc>
  60432. </method>
  60433. <method name="skip"
  60434. abstract="false" native="false" synchronized="false"
  60435. static="false" final="false" visibility="public"
  60436. deprecated="not deprecated">
  60437. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60438. <exception name="IOException" type="java.io.IOException"/>
  60439. <doc>
  60440. <![CDATA[Pass skip key to child RRs.]]>
  60441. </doc>
  60442. </method>
  60443. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  60444. abstract="true" native="false" synchronized="false"
  60445. static="false" final="false" visibility="protected"
  60446. deprecated="not deprecated">
  60447. <doc>
  60448. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  60449. ultimately emitted from this join.]]>
  60450. </doc>
  60451. </method>
  60452. <method name="accept"
  60453. abstract="false" native="false" synchronized="false"
  60454. static="false" final="false" visibility="public"
  60455. deprecated="not deprecated">
  60456. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  60457. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60458. <exception name="IOException" type="java.io.IOException"/>
  60459. <doc>
  60460. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  60461. iterator over values it may emit.]]>
  60462. </doc>
  60463. </method>
  60464. <method name="fillJoinCollector"
  60465. abstract="false" native="false" synchronized="false"
  60466. static="false" final="false" visibility="protected"
  60467. deprecated="not deprecated">
  60468. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  60469. <exception name="IOException" type="java.io.IOException"/>
  60470. <doc>
  60471. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  60472. at that position in the JoinCollector.]]>
  60473. </doc>
  60474. </method>
  60475. <method name="compareTo" return="int"
  60476. abstract="false" native="false" synchronized="false"
  60477. static="false" final="false" visibility="public"
  60478. deprecated="not deprecated">
  60479. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60480. <doc>
  60481. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  60482. with that of another).]]>
  60483. </doc>
  60484. </method>
  60485. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  60486. abstract="false" native="false" synchronized="false"
  60487. static="false" final="false" visibility="public"
  60488. deprecated="not deprecated">
  60489. <doc>
  60490. <![CDATA[Create a new key value common to all child RRs.
  60491. @throws ClassCastException if key classes differ.]]>
  60492. </doc>
  60493. </method>
  60494. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  60495. abstract="false" native="false" synchronized="false"
  60496. static="false" final="false" visibility="protected"
  60497. deprecated="not deprecated">
  60498. <doc>
  60499. <![CDATA[Create a value to be used internally for joins.]]>
  60500. </doc>
  60501. </method>
  60502. <method name="getPos" return="long"
  60503. abstract="false" native="false" synchronized="false"
  60504. static="false" final="false" visibility="public"
  60505. deprecated="not deprecated">
  60506. <exception name="IOException" type="java.io.IOException"/>
  60507. <doc>
  60508. <![CDATA[Unsupported (returns zero in all cases).]]>
  60509. </doc>
  60510. </method>
  60511. <method name="close"
  60512. abstract="false" native="false" synchronized="false"
  60513. static="false" final="false" visibility="public"
  60514. deprecated="not deprecated">
  60515. <exception name="IOException" type="java.io.IOException"/>
  60516. <doc>
  60517. <![CDATA[Close all child RRs.]]>
  60518. </doc>
  60519. </method>
  60520. <method name="getProgress" return="float"
  60521. abstract="false" native="false" synchronized="false"
  60522. static="false" final="false" visibility="public"
  60523. deprecated="not deprecated">
  60524. <exception name="IOException" type="java.io.IOException"/>
  60525. <doc>
  60526. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  60527. </doc>
  60528. </method>
  60529. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"
  60530. transient="false" volatile="false"
  60531. static="false" final="true" visibility="protected"
  60532. deprecated="not deprecated">
  60533. </field>
  60534. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  60535. transient="false" volatile="false"
  60536. static="false" final="true" visibility="protected"
  60537. deprecated="not deprecated">
  60538. </field>
  60539. <doc>
  60540. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  60541. type and partitioning.]]>
  60542. </doc>
  60543. </class>
  60544. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  60545. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  60546. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  60547. abstract="false"
  60548. static="false" final="false" visibility="public"
  60549. deprecated="not deprecated">
  60550. <method name="combine" return="boolean"
  60551. abstract="false" native="false" synchronized="false"
  60552. static="false" final="false" visibility="protected"
  60553. deprecated="not deprecated">
  60554. <param name="srcs" type="java.lang.Object[]"/>
  60555. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60556. <doc>
  60557. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  60558. </doc>
  60559. </method>
  60560. <doc>
  60561. <![CDATA[Full inner join.]]>
  60562. </doc>
  60563. </class>
  60564. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  60565. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  60566. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  60567. abstract="true"
  60568. static="false" final="false" visibility="public"
  60569. deprecated="not deprecated">
  60570. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60571. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  60572. static="false" final="false" visibility="public"
  60573. deprecated="not deprecated">
  60574. <exception name="IOException" type="java.io.IOException"/>
  60575. </constructor>
  60576. <method name="next" return="boolean"
  60577. abstract="false" native="false" synchronized="false"
  60578. static="false" final="false" visibility="public"
  60579. deprecated="not deprecated">
  60580. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60581. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60582. <exception name="IOException" type="java.io.IOException"/>
  60583. <doc>
  60584. <![CDATA[Emit the next set of key, value pairs as defined by the child
  60585. RecordReaders and operation associated with this composite RR.]]>
  60586. </doc>
  60587. </method>
  60588. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  60589. abstract="false" native="false" synchronized="false"
  60590. static="false" final="false" visibility="public"
  60591. deprecated="not deprecated">
  60592. <doc>
  60593. <![CDATA[{@inheritDoc}]]>
  60594. </doc>
  60595. </method>
  60596. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  60597. abstract="false" native="false" synchronized="false"
  60598. static="false" final="false" visibility="protected"
  60599. deprecated="not deprecated">
  60600. <doc>
  60601. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  60602. </doc>
  60603. </method>
  60604. <doc>
  60605. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  60606. </doc>
  60607. </class>
  60608. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  60609. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  60610. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  60611. abstract="false"
  60612. static="false" final="false" visibility="protected"
  60613. deprecated="not deprecated">
  60614. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  60615. <constructor name="JoinRecordReader.JoinDelegationIterator"
  60616. static="false" final="false" visibility="protected"
  60617. deprecated="not deprecated">
  60618. </constructor>
  60619. <method name="hasNext" return="boolean"
  60620. abstract="false" native="false" synchronized="false"
  60621. static="false" final="false" visibility="public"
  60622. deprecated="not deprecated">
  60623. </method>
  60624. <method name="next" return="boolean"
  60625. abstract="false" native="false" synchronized="false"
  60626. static="false" final="false" visibility="public"
  60627. deprecated="not deprecated">
  60628. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60629. <exception name="IOException" type="java.io.IOException"/>
  60630. </method>
  60631. <method name="replay" return="boolean"
  60632. abstract="false" native="false" synchronized="false"
  60633. static="false" final="false" visibility="public"
  60634. deprecated="not deprecated">
  60635. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60636. <exception name="IOException" type="java.io.IOException"/>
  60637. </method>
  60638. <method name="reset"
  60639. abstract="false" native="false" synchronized="false"
  60640. static="false" final="false" visibility="public"
  60641. deprecated="not deprecated">
  60642. </method>
  60643. <method name="add"
  60644. abstract="false" native="false" synchronized="false"
  60645. static="false" final="false" visibility="public"
  60646. deprecated="not deprecated">
  60647. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60648. <exception name="IOException" type="java.io.IOException"/>
  60649. </method>
  60650. <method name="close"
  60651. abstract="false" native="false" synchronized="false"
  60652. static="false" final="false" visibility="public"
  60653. deprecated="not deprecated">
  60654. <exception name="IOException" type="java.io.IOException"/>
  60655. </method>
  60656. <method name="clear"
  60657. abstract="false" native="false" synchronized="false"
  60658. static="false" final="false" visibility="public"
  60659. deprecated="not deprecated">
  60660. </method>
  60661. <doc>
  60662. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  60663. provide an iterator proxy wrapping its operation.]]>
  60664. </doc>
  60665. </class>
  60666. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  60667. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  60668. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  60669. abstract="true"
  60670. static="false" final="false" visibility="public"
  60671. deprecated="not deprecated">
  60672. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  60673. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  60674. static="false" final="false" visibility="public"
  60675. deprecated="not deprecated">
  60676. <exception name="IOException" type="java.io.IOException"/>
  60677. </constructor>
  60678. <method name="emit" return="org.apache.hadoop.io.Writable"
  60679. abstract="true" native="false" synchronized="false"
  60680. static="false" final="false" visibility="protected"
  60681. deprecated="not deprecated">
  60682. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60683. <exception name="IOException" type="java.io.IOException"/>
  60684. <doc>
  60685. <![CDATA[For each tuple emitted, return a value (typically one of the values
  60686. in the tuple).
  60687. Modifying the Writables in the tuple is permitted and unlikely to affect
  60688. join behavior in most cases, but it is not recommended. It's safer to
  60689. clone first.]]>
  60690. </doc>
  60691. </method>
  60692. <method name="combine" return="boolean"
  60693. abstract="false" native="false" synchronized="false"
  60694. static="false" final="false" visibility="protected"
  60695. deprecated="not deprecated">
  60696. <param name="srcs" type="java.lang.Object[]"/>
  60697. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60698. <doc>
  60699. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  60700. collector (the outer join of child RRs).]]>
  60701. </doc>
  60702. </method>
  60703. <method name="next" return="boolean"
  60704. abstract="false" native="false" synchronized="false"
  60705. static="false" final="false" visibility="public"
  60706. deprecated="not deprecated">
  60707. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  60708. <param name="value" type="org.apache.hadoop.io.Writable"/>
  60709. <exception name="IOException" type="java.io.IOException"/>
  60710. <doc>
  60711. <![CDATA[{@inheritDoc}]]>
  60712. </doc>
  60713. </method>
  60714. <method name="createValue" return="org.apache.hadoop.io.Writable"
  60715. abstract="false" native="false" synchronized="false"
  60716. static="false" final="false" visibility="public"
  60717. deprecated="not deprecated">
  60718. <doc>
  60719. <![CDATA[{@inheritDoc}]]>
  60720. </doc>
  60721. </method>
  60722. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  60723. abstract="false" native="false" synchronized="false"
  60724. static="false" final="false" visibility="protected"
  60725. deprecated="not deprecated">
  60726. <doc>
  60727. <![CDATA[Return an iterator returning a single value from the tuple.
  60728. @see MultiFilterDelegationIterator]]>
  60729. </doc>
  60730. </method>
  60731. <doc>
  60732. <![CDATA[Base class for Composite join returning values derived from multiple
  60733. sources, but generally not tuples.]]>
  60734. </doc>
  60735. </class>
  60736. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  60737. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  60738. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  60739. abstract="false"
  60740. static="false" final="false" visibility="protected"
  60741. deprecated="not deprecated">
  60742. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  60743. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  60744. static="false" final="false" visibility="protected"
  60745. deprecated="not deprecated">
  60746. </constructor>
  60747. <method name="hasNext" return="boolean"
  60748. abstract="false" native="false" synchronized="false"
  60749. static="false" final="false" visibility="public"
  60750. deprecated="not deprecated">
  60751. </method>
  60752. <method name="next" return="boolean"
  60753. abstract="false" native="false" synchronized="false"
  60754. static="false" final="false" visibility="public"
  60755. deprecated="not deprecated">
  60756. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60757. <exception name="IOException" type="java.io.IOException"/>
  60758. </method>
  60759. <method name="replay" return="boolean"
  60760. abstract="false" native="false" synchronized="false"
  60761. static="false" final="false" visibility="public"
  60762. deprecated="not deprecated">
  60763. <param name="val" type="org.apache.hadoop.io.Writable"/>
  60764. <exception name="IOException" type="java.io.IOException"/>
  60765. </method>
  60766. <method name="reset"
  60767. abstract="false" native="false" synchronized="false"
  60768. static="false" final="false" visibility="public"
  60769. deprecated="not deprecated">
  60770. </method>
  60771. <method name="add"
  60772. abstract="false" native="false" synchronized="false"
  60773. static="false" final="false" visibility="public"
  60774. deprecated="not deprecated">
  60775. <param name="item" type="org.apache.hadoop.io.Writable"/>
  60776. <exception name="IOException" type="java.io.IOException"/>
  60777. </method>
  60778. <method name="close"
  60779. abstract="false" native="false" synchronized="false"
  60780. static="false" final="false" visibility="public"
  60781. deprecated="not deprecated">
  60782. <exception name="IOException" type="java.io.IOException"/>
  60783. </method>
  60784. <method name="clear"
  60785. abstract="false" native="false" synchronized="false"
  60786. static="false" final="false" visibility="public"
  60787. deprecated="not deprecated">
  60788. </method>
  60789. <doc>
  60790. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  60791. </doc>
  60792. </class>
  60793. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  60794. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  60795. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  60796. abstract="false"
  60797. static="false" final="false" visibility="public"
  60798. deprecated="not deprecated">
  60799. <method name="combine" return="boolean"
  60800. abstract="false" native="false" synchronized="false"
  60801. static="false" final="false" visibility="protected"
  60802. deprecated="not deprecated">
  60803. <param name="srcs" type="java.lang.Object[]"/>
  60804. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60805. <doc>
  60806. <![CDATA[Emit everything from the collector.]]>
  60807. </doc>
  60808. </method>
  60809. <doc>
  60810. <![CDATA[Full outer join.]]>
  60811. </doc>
  60812. </class>
  60813. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  60814. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  60815. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader"
  60816. abstract="false"
  60817. static="false" final="false" visibility="public"
  60818. deprecated="not deprecated">
  60819. <method name="emit" return="org.apache.hadoop.io.Writable"
  60820. abstract="false" native="false" synchronized="false"
  60821. static="false" final="false" visibility="protected"
  60822. deprecated="not deprecated">
  60823. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  60824. <doc>
  60825. <![CDATA[Emit the value with the highest position in the tuple.]]>
  60826. </doc>
  60827. </method>
  60828. <method name="fillJoinCollector"
  60829. abstract="false" native="false" synchronized="false"
  60830. static="false" final="false" visibility="protected"
  60831. deprecated="not deprecated">
  60832. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  60833. <exception name="IOException" type="java.io.IOException"/>
  60834. <doc>
  60835. <![CDATA[Instead of filling the JoinCollector with iterators from all
  60836. data sources, fill only the rightmost for this key.
  60837. This not only saves space by discarding the other sources, but
  60838. it also emits the number of key-value pairs in the preferred
  60839. RecordReader instead of repeating that stream n times, where
  60840. n is the cardinality of the cross product of the discarded
  60841. streams for the given key.]]>
  60842. </doc>
  60843. </method>
  60844. <doc>
  60845. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  60846. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  60847. from S3 over S2, and values from S2 over S1 for all keys
  60848. emitted from all sources.]]>
  60849. </doc>
  60850. </class>
  60851. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  60852. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  60853. <class name="Parser" extends="java.lang.Object"
  60854. abstract="false"
  60855. static="false" final="false" visibility="public"
  60856. deprecated="not deprecated">
  60857. <constructor name="Parser"
  60858. static="false" final="false" visibility="public"
  60859. deprecated="not deprecated">
  60860. </constructor>
  60861. <doc>
  60862. <![CDATA[Very simple shift-reduce parser for join expressions.
  60863. This should be sufficient for the user extension permitted now, but ought to
  60864. be replaced with a parser generator if more complex grammars are supported.
  60865. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  60866. of formals requires a different internal node type, which is responsible for
  60867. interpreting the list of tokens it receives. This is sufficient for the
  60868. current grammar, but it has several annoying properties that might inhibit
  60869. extension. In particular, parenthesis are always function calls; an
  60870. algebraic or filter grammar would not only require a node type, but must
  60871. also work around the internals of this parser.
  60872. For most other cases, adding classes to the hierarchy- particularly by
  60873. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  60874. straightforward. One need only override the relevant method(s) (usually only
  60875. {@link CompositeRecordReader#combine}) and include a property to map its
  60876. value to an identifier in the parser.]]>
  60877. </doc>
  60878. </class>
  60879. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  60880. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  60881. <class name="Parser.Node" extends="java.lang.Object"
  60882. abstract="true"
  60883. static="true" final="false" visibility="public"
  60884. deprecated="not deprecated">
  60885. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  60886. <constructor name="Parser.Node" type="java.lang.String"
  60887. static="false" final="false" visibility="protected"
  60888. deprecated="not deprecated">
  60889. </constructor>
  60890. <method name="addIdentifier"
  60891. abstract="false" native="false" synchronized="false"
  60892. static="true" final="false" visibility="protected"
  60893. deprecated="not deprecated">
  60894. <param name="ident" type="java.lang.String"/>
  60895. <param name="mcstrSig" type="java.lang.Class[]"/>
  60896. <param name="nodetype" type="java.lang.Class"/>
  60897. <param name="cl" type="java.lang.Class"/>
  60898. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  60899. <doc>
  60900. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  60901. tree and to the ComposableRecordReader to be created, including the
  60902. formals required to invoke the constructor.
  60903. The nodetype and constructor signature should be filled in from the
  60904. child node.]]>
  60905. </doc>
  60906. </method>
  60907. <method name="setID"
  60908. abstract="false" native="false" synchronized="false"
  60909. static="false" final="false" visibility="protected"
  60910. deprecated="not deprecated">
  60911. <param name="id" type="int"/>
  60912. </method>
  60913. <method name="setKeyComparator"
  60914. abstract="false" native="false" synchronized="false"
  60915. static="false" final="false" visibility="protected"
  60916. deprecated="not deprecated">
  60917. <param name="cmpcl" type="java.lang.Class"/>
  60918. </method>
  60919. <field name="rrCstrMap" type="java.util.Map"
  60920. transient="false" volatile="false"
  60921. static="true" final="true" visibility="protected"
  60922. deprecated="not deprecated">
  60923. </field>
  60924. <field name="id" type="int"
  60925. transient="false" volatile="false"
  60926. static="false" final="false" visibility="protected"
  60927. deprecated="not deprecated">
  60928. </field>
  60929. <field name="ident" type="java.lang.String"
  60930. transient="false" volatile="false"
  60931. static="false" final="false" visibility="protected"
  60932. deprecated="not deprecated">
  60933. </field>
  60934. <field name="cmpcl" type="java.lang.Class"
  60935. transient="false" volatile="false"
  60936. static="false" final="false" visibility="protected"
  60937. deprecated="not deprecated">
  60938. </field>
  60939. </class>
  60940. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  60941. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  60942. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  60943. abstract="false"
  60944. static="true" final="false" visibility="public"
  60945. deprecated="not deprecated">
  60946. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  60947. abstract="false" native="false" synchronized="false"
  60948. static="false" final="false" visibility="public"
  60949. deprecated="not deprecated">
  60950. </method>
  60951. </class>
  60952. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  60953. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  60954. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  60955. abstract="false"
  60956. static="true" final="false" visibility="public"
  60957. deprecated="not deprecated">
  60958. <constructor name="Parser.NumToken" type="double"
  60959. static="false" final="false" visibility="public"
  60960. deprecated="not deprecated">
  60961. </constructor>
  60962. <method name="getNum" return="double"
  60963. abstract="false" native="false" synchronized="false"
  60964. static="false" final="false" visibility="public"
  60965. deprecated="not deprecated">
  60966. </method>
  60967. </class>
  60968. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  60969. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  60970. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  60971. abstract="false"
  60972. static="true" final="false" visibility="public"
  60973. deprecated="not deprecated">
  60974. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  60975. static="false" final="false" visibility="public"
  60976. deprecated="not deprecated">
  60977. </constructor>
  60978. <method name="getStr" return="java.lang.String"
  60979. abstract="false" native="false" synchronized="false"
  60980. static="false" final="false" visibility="public"
  60981. deprecated="not deprecated">
  60982. </method>
  60983. </class>
  60984. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  60985. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  60986. <class name="Parser.Token" extends="java.lang.Object"
  60987. abstract="false"
  60988. static="true" final="false" visibility="public"
  60989. deprecated="not deprecated">
  60990. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  60991. abstract="false" native="false" synchronized="false"
  60992. static="false" final="false" visibility="public"
  60993. deprecated="not deprecated">
  60994. </method>
  60995. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  60996. abstract="false" native="false" synchronized="false"
  60997. static="false" final="false" visibility="public"
  60998. deprecated="not deprecated">
  60999. <exception name="IOException" type="java.io.IOException"/>
  61000. </method>
  61001. <method name="getNum" return="double"
  61002. abstract="false" native="false" synchronized="false"
  61003. static="false" final="false" visibility="public"
  61004. deprecated="not deprecated">
  61005. <exception name="IOException" type="java.io.IOException"/>
  61006. </method>
  61007. <method name="getStr" return="java.lang.String"
  61008. abstract="false" native="false" synchronized="false"
  61009. static="false" final="false" visibility="public"
  61010. deprecated="not deprecated">
  61011. <exception name="IOException" type="java.io.IOException"/>
  61012. </method>
  61013. <doc>
  61014. <![CDATA[Tagged-union type for tokens from the join expression.
  61015. @see Parser.TType]]>
  61016. </doc>
  61017. </class>
  61018. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  61019. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  61020. <class name="Parser.TType" extends="java.lang.Enum"
  61021. abstract="false"
  61022. static="true" final="true" visibility="public"
  61023. deprecated="not deprecated">
  61024. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  61025. abstract="false" native="false" synchronized="false"
  61026. static="true" final="false" visibility="public"
  61027. deprecated="not deprecated">
  61028. </method>
  61029. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  61030. abstract="false" native="false" synchronized="false"
  61031. static="true" final="false" visibility="public"
  61032. deprecated="not deprecated">
  61033. <param name="name" type="java.lang.String"/>
  61034. </method>
  61035. <field name="CIF" type="org.apache.hadoop.mapred.join.Parser.TType"
  61036. transient="false" volatile="false"
  61037. static="true" final="true" visibility="public"
  61038. deprecated="not deprecated">
  61039. </field>
  61040. <field name="IDENT" type="org.apache.hadoop.mapred.join.Parser.TType"
  61041. transient="false" volatile="false"
  61042. static="true" final="true" visibility="public"
  61043. deprecated="not deprecated">
  61044. </field>
  61045. <field name="COMMA" type="org.apache.hadoop.mapred.join.Parser.TType"
  61046. transient="false" volatile="false"
  61047. static="true" final="true" visibility="public"
  61048. deprecated="not deprecated">
  61049. </field>
  61050. <field name="LPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  61051. transient="false" volatile="false"
  61052. static="true" final="true" visibility="public"
  61053. deprecated="not deprecated">
  61054. </field>
  61055. <field name="RPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  61056. transient="false" volatile="false"
  61057. static="true" final="true" visibility="public"
  61058. deprecated="not deprecated">
  61059. </field>
  61060. <field name="QUOT" type="org.apache.hadoop.mapred.join.Parser.TType"
  61061. transient="false" volatile="false"
  61062. static="true" final="true" visibility="public"
  61063. deprecated="not deprecated">
  61064. </field>
  61065. <field name="NUM" type="org.apache.hadoop.mapred.join.Parser.TType"
  61066. transient="false" volatile="false"
  61067. static="true" final="true" visibility="public"
  61068. deprecated="not deprecated">
  61069. </field>
  61070. </class>
  61071. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  61072. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  61073. <interface name="ResetableIterator" abstract="true"
  61074. static="false" final="false" visibility="public"
  61075. deprecated="not deprecated">
  61076. <method name="hasNext" return="boolean"
  61077. abstract="false" native="false" synchronized="false"
  61078. static="false" final="false" visibility="public"
  61079. deprecated="not deprecated">
  61080. <doc>
  61081. <![CDATA[True if a call to next may return a value. This is permitted false
  61082. positives, but not false negatives.]]>
  61083. </doc>
  61084. </method>
  61085. <method name="next" return="boolean"
  61086. abstract="false" native="false" synchronized="false"
  61087. static="false" final="false" visibility="public"
  61088. deprecated="not deprecated">
  61089. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61090. <exception name="IOException" type="java.io.IOException"/>
  61091. <doc>
  61092. <![CDATA[Assign next value to actual.
  61093. It is required that elements added to a ResetableIterator be returned in
  61094. the same order after a call to {@link #reset} (FIFO).
  61095. Note that a call to this may fail for nested joins (i.e. more elements
  61096. available, but none satisfying the constraints of the join)]]>
  61097. </doc>
  61098. </method>
  61099. <method name="replay" return="boolean"
  61100. abstract="false" native="false" synchronized="false"
  61101. static="false" final="false" visibility="public"
  61102. deprecated="not deprecated">
  61103. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61104. <exception name="IOException" type="java.io.IOException"/>
  61105. <doc>
  61106. <![CDATA[Assign last value returned to actual.]]>
  61107. </doc>
  61108. </method>
  61109. <method name="reset"
  61110. abstract="false" native="false" synchronized="false"
  61111. static="false" final="false" visibility="public"
  61112. deprecated="not deprecated">
  61113. <doc>
  61114. <![CDATA[Set iterator to return to the start of its range. Must be called after
  61115. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  61116. </doc>
  61117. </method>
  61118. <method name="add"
  61119. abstract="false" native="false" synchronized="false"
  61120. static="false" final="false" visibility="public"
  61121. deprecated="not deprecated">
  61122. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61123. <exception name="IOException" type="java.io.IOException"/>
  61124. <doc>
  61125. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  61126. </doc>
  61127. </method>
  61128. <method name="close"
  61129. abstract="false" native="false" synchronized="false"
  61130. static="false" final="false" visibility="public"
  61131. deprecated="not deprecated">
  61132. <exception name="IOException" type="java.io.IOException"/>
  61133. <doc>
  61134. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  61135. after calling close has undefined behavior.]]>
  61136. </doc>
  61137. </method>
  61138. <method name="clear"
  61139. abstract="false" native="false" synchronized="false"
  61140. static="false" final="false" visibility="public"
  61141. deprecated="not deprecated">
  61142. <doc>
  61143. <![CDATA[Close datasources, but do not release internal resources. Calling this
  61144. method should permit the object to be reused with a different datasource.]]>
  61145. </doc>
  61146. </method>
  61147. <doc>
  61148. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  61149. added to it directly.
  61150. Note that this does not extend {@link java.util.Iterator}.]]>
  61151. </doc>
  61152. </interface>
  61153. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  61154. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  61155. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  61156. abstract="false"
  61157. static="true" final="false" visibility="public"
  61158. deprecated="not deprecated">
  61159. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  61160. <constructor name="ResetableIterator.EMPTY"
  61161. static="false" final="false" visibility="public"
  61162. deprecated="not deprecated">
  61163. </constructor>
  61164. <method name="hasNext" return="boolean"
  61165. abstract="false" native="false" synchronized="false"
  61166. static="false" final="false" visibility="public"
  61167. deprecated="not deprecated">
  61168. </method>
  61169. <method name="reset"
  61170. abstract="false" native="false" synchronized="false"
  61171. static="false" final="false" visibility="public"
  61172. deprecated="not deprecated">
  61173. </method>
  61174. <method name="close"
  61175. abstract="false" native="false" synchronized="false"
  61176. static="false" final="false" visibility="public"
  61177. deprecated="not deprecated">
  61178. <exception name="IOException" type="java.io.IOException"/>
  61179. </method>
  61180. <method name="clear"
  61181. abstract="false" native="false" synchronized="false"
  61182. static="false" final="false" visibility="public"
  61183. deprecated="not deprecated">
  61184. </method>
  61185. <method name="next" return="boolean"
  61186. abstract="false" native="false" synchronized="false"
  61187. static="false" final="false" visibility="public"
  61188. deprecated="not deprecated">
  61189. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61190. <exception name="IOException" type="java.io.IOException"/>
  61191. </method>
  61192. <method name="replay" return="boolean"
  61193. abstract="false" native="false" synchronized="false"
  61194. static="false" final="false" visibility="public"
  61195. deprecated="not deprecated">
  61196. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61197. <exception name="IOException" type="java.io.IOException"/>
  61198. </method>
  61199. <method name="add"
  61200. abstract="false" native="false" synchronized="false"
  61201. static="false" final="false" visibility="public"
  61202. deprecated="not deprecated">
  61203. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61204. <exception name="IOException" type="java.io.IOException"/>
  61205. </method>
  61206. </class>
  61207. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  61208. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  61209. <class name="StreamBackedIterator" extends="java.lang.Object"
  61210. abstract="false"
  61211. static="false" final="false" visibility="public"
  61212. deprecated="not deprecated">
  61213. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  61214. <constructor name="StreamBackedIterator"
  61215. static="false" final="false" visibility="public"
  61216. deprecated="not deprecated">
  61217. </constructor>
  61218. <method name="hasNext" return="boolean"
  61219. abstract="false" native="false" synchronized="false"
  61220. static="false" final="false" visibility="public"
  61221. deprecated="not deprecated">
  61222. </method>
  61223. <method name="next" return="boolean"
  61224. abstract="false" native="false" synchronized="false"
  61225. static="false" final="false" visibility="public"
  61226. deprecated="not deprecated">
  61227. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61228. <exception name="IOException" type="java.io.IOException"/>
  61229. </method>
  61230. <method name="replay" return="boolean"
  61231. abstract="false" native="false" synchronized="false"
  61232. static="false" final="false" visibility="public"
  61233. deprecated="not deprecated">
  61234. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61235. <exception name="IOException" type="java.io.IOException"/>
  61236. </method>
  61237. <method name="reset"
  61238. abstract="false" native="false" synchronized="false"
  61239. static="false" final="false" visibility="public"
  61240. deprecated="not deprecated">
  61241. </method>
  61242. <method name="add"
  61243. abstract="false" native="false" synchronized="false"
  61244. static="false" final="false" visibility="public"
  61245. deprecated="not deprecated">
  61246. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61247. <exception name="IOException" type="java.io.IOException"/>
  61248. </method>
  61249. <method name="close"
  61250. abstract="false" native="false" synchronized="false"
  61251. static="false" final="false" visibility="public"
  61252. deprecated="not deprecated">
  61253. <exception name="IOException" type="java.io.IOException"/>
  61254. </method>
  61255. <method name="clear"
  61256. abstract="false" native="false" synchronized="false"
  61257. static="false" final="false" visibility="public"
  61258. deprecated="not deprecated">
  61259. </method>
  61260. <doc>
  61261. <![CDATA[This class provides an implementation of ResetableIterator. This
  61262. implementation uses a byte array to store elements added to it.]]>
  61263. </doc>
  61264. </class>
  61265. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  61266. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  61267. <class name="TupleWritable" extends="java.lang.Object"
  61268. abstract="false"
  61269. static="false" final="false" visibility="public"
  61270. deprecated="not deprecated">
  61271. <implements name="org.apache.hadoop.io.Writable"/>
  61272. <implements name="java.lang.Iterable"/>
  61273. <constructor name="TupleWritable"
  61274. static="false" final="false" visibility="public"
  61275. deprecated="not deprecated">
  61276. <doc>
  61277. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  61278. </doc>
  61279. </constructor>
  61280. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  61281. static="false" final="false" visibility="public"
  61282. deprecated="not deprecated">
  61283. <doc>
  61284. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  61285. &quot;written&quot; values.]]>
  61286. </doc>
  61287. </constructor>
  61288. <method name="has" return="boolean"
  61289. abstract="false" native="false" synchronized="false"
  61290. static="false" final="false" visibility="public"
  61291. deprecated="not deprecated">
  61292. <param name="i" type="int"/>
  61293. <doc>
  61294. <![CDATA[Return true if tuple has an element at the position provided.]]>
  61295. </doc>
  61296. </method>
  61297. <method name="get" return="org.apache.hadoop.io.Writable"
  61298. abstract="false" native="false" synchronized="false"
  61299. static="false" final="false" visibility="public"
  61300. deprecated="not deprecated">
  61301. <param name="i" type="int"/>
  61302. <doc>
  61303. <![CDATA[Get ith Writable from Tuple.]]>
  61304. </doc>
  61305. </method>
  61306. <method name="size" return="int"
  61307. abstract="false" native="false" synchronized="false"
  61308. static="false" final="false" visibility="public"
  61309. deprecated="not deprecated">
  61310. <doc>
  61311. <![CDATA[The number of children in this Tuple.]]>
  61312. </doc>
  61313. </method>
  61314. <method name="equals" return="boolean"
  61315. abstract="false" native="false" synchronized="false"
  61316. static="false" final="false" visibility="public"
  61317. deprecated="not deprecated">
  61318. <param name="other" type="java.lang.Object"/>
  61319. <doc>
  61320. <![CDATA[{@inheritDoc}]]>
  61321. </doc>
  61322. </method>
  61323. <method name="hashCode" return="int"
  61324. abstract="false" native="false" synchronized="false"
  61325. static="false" final="false" visibility="public"
  61326. deprecated="not deprecated">
  61327. </method>
  61328. <method name="iterator" return="java.util.Iterator"
  61329. abstract="false" native="false" synchronized="false"
  61330. static="false" final="false" visibility="public"
  61331. deprecated="not deprecated">
  61332. <doc>
  61333. <![CDATA[Return an iterator over the elements in this tuple.
  61334. Note that this doesn't flatten the tuple; one may receive tuples
  61335. from this iterator.]]>
  61336. </doc>
  61337. </method>
  61338. <method name="toString" return="java.lang.String"
  61339. abstract="false" native="false" synchronized="false"
  61340. static="false" final="false" visibility="public"
  61341. deprecated="not deprecated">
  61342. <doc>
  61343. <![CDATA[Convert Tuple to String as in the following.
  61344. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  61345. </doc>
  61346. </method>
  61347. <method name="write"
  61348. abstract="false" native="false" synchronized="false"
  61349. static="false" final="false" visibility="public"
  61350. deprecated="not deprecated">
  61351. <param name="out" type="java.io.DataOutput"/>
  61352. <exception name="IOException" type="java.io.IOException"/>
  61353. <doc>
  61354. <![CDATA[Writes each Writable to <code>out</code>.
  61355. TupleWritable format:
  61356. {@code
  61357. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  61358. }]]>
  61359. </doc>
  61360. </method>
  61361. <method name="readFields"
  61362. abstract="false" native="false" synchronized="false"
  61363. static="false" final="false" visibility="public"
  61364. deprecated="not deprecated">
  61365. <param name="in" type="java.io.DataInput"/>
  61366. <exception name="IOException" type="java.io.IOException"/>
  61367. <doc>
  61368. <![CDATA[{@inheritDoc}]]>
  61369. </doc>
  61370. </method>
  61371. <doc>
  61372. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  61373. This is *not* a general-purpose tuple type. In almost all cases, users are
  61374. encouraged to implement their own serializable types, which can perform
  61375. better validation and provide more efficient encodings than this class is
  61376. capable. TupleWritable relies on the join framework for type safety and
  61377. assumes its instances will rarely be persisted, assumptions not only
  61378. incompatible with, but contrary to the general case.
  61379. @see org.apache.hadoop.io.Writable]]>
  61380. </doc>
  61381. </class>
  61382. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  61383. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  61384. <class name="WrappedRecordReader" extends="java.lang.Object"
  61385. abstract="false"
  61386. static="false" final="false" visibility="public"
  61387. deprecated="not deprecated">
  61388. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61389. <method name="id" return="int"
  61390. abstract="false" native="false" synchronized="false"
  61391. static="false" final="false" visibility="public"
  61392. deprecated="not deprecated">
  61393. <doc>
  61394. <![CDATA[{@inheritDoc}]]>
  61395. </doc>
  61396. </method>
  61397. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  61398. abstract="false" native="false" synchronized="false"
  61399. static="false" final="false" visibility="public"
  61400. deprecated="not deprecated">
  61401. <doc>
  61402. <![CDATA[Return the key at the head of this RR.]]>
  61403. </doc>
  61404. </method>
  61405. <method name="key"
  61406. abstract="false" native="false" synchronized="false"
  61407. static="false" final="false" visibility="public"
  61408. deprecated="not deprecated">
  61409. <param name="qkey" type="org.apache.hadoop.io.WritableComparable"/>
  61410. <exception name="IOException" type="java.io.IOException"/>
  61411. <doc>
  61412. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  61413. </doc>
  61414. </method>
  61415. <method name="hasNext" return="boolean"
  61416. abstract="false" native="false" synchronized="false"
  61417. static="false" final="false" visibility="public"
  61418. deprecated="not deprecated">
  61419. <doc>
  61420. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  61421. is exhausted.]]>
  61422. </doc>
  61423. </method>
  61424. <method name="skip"
  61425. abstract="false" native="false" synchronized="false"
  61426. static="false" final="false" visibility="public"
  61427. deprecated="not deprecated">
  61428. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61429. <exception name="IOException" type="java.io.IOException"/>
  61430. <doc>
  61431. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  61432. </doc>
  61433. </method>
  61434. <method name="next" return="boolean"
  61435. abstract="false" native="false" synchronized="false"
  61436. static="false" final="false" visibility="protected"
  61437. deprecated="not deprecated">
  61438. <exception name="IOException" type="java.io.IOException"/>
  61439. <doc>
  61440. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  61441. the RR and this are exhausted.]]>
  61442. </doc>
  61443. </method>
  61444. <method name="accept"
  61445. abstract="false" native="false" synchronized="false"
  61446. static="false" final="false" visibility="public"
  61447. deprecated="not deprecated">
  61448. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  61449. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61450. <exception name="IOException" type="java.io.IOException"/>
  61451. <doc>
  61452. <![CDATA[Add an iterator to the collector at the position occupied by this
  61453. RecordReader over the values in this stream paired with the key
  61454. provided (ie register a stream of values from this source matching K
  61455. with a collector).]]>
  61456. </doc>
  61457. </method>
  61458. <method name="next" return="boolean"
  61459. abstract="false" native="false" synchronized="false"
  61460. static="false" final="false" visibility="public"
  61461. deprecated="not deprecated">
  61462. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61463. <param name="value" type="org.apache.hadoop.io.Writable"/>
  61464. <exception name="IOException" type="java.io.IOException"/>
  61465. <doc>
  61466. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  61467. get next key-value pair from proxied RR.]]>
  61468. </doc>
  61469. </method>
  61470. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  61471. abstract="false" native="false" synchronized="false"
  61472. static="false" final="false" visibility="public"
  61473. deprecated="not deprecated">
  61474. <doc>
  61475. <![CDATA[Request new key from proxied RR.]]>
  61476. </doc>
  61477. </method>
  61478. <method name="createValue" return="org.apache.hadoop.io.Writable"
  61479. abstract="false" native="false" synchronized="false"
  61480. static="false" final="false" visibility="public"
  61481. deprecated="not deprecated">
  61482. <doc>
  61483. <![CDATA[Request new value from proxied RR.]]>
  61484. </doc>
  61485. </method>
  61486. <method name="getProgress" return="float"
  61487. abstract="false" native="false" synchronized="false"
  61488. static="false" final="false" visibility="public"
  61489. deprecated="not deprecated">
  61490. <exception name="IOException" type="java.io.IOException"/>
  61491. <doc>
  61492. <![CDATA[Request progress from proxied RR.]]>
  61493. </doc>
  61494. </method>
  61495. <method name="getPos" return="long"
  61496. abstract="false" native="false" synchronized="false"
  61497. static="false" final="false" visibility="public"
  61498. deprecated="not deprecated">
  61499. <exception name="IOException" type="java.io.IOException"/>
  61500. <doc>
  61501. <![CDATA[Request position from proxied RR.]]>
  61502. </doc>
  61503. </method>
  61504. <method name="close"
  61505. abstract="false" native="false" synchronized="false"
  61506. static="false" final="false" visibility="public"
  61507. deprecated="not deprecated">
  61508. <exception name="IOException" type="java.io.IOException"/>
  61509. <doc>
  61510. <![CDATA[Forward close request to proxied RR.]]>
  61511. </doc>
  61512. </method>
  61513. <method name="compareTo" return="int"
  61514. abstract="false" native="false" synchronized="false"
  61515. static="false" final="false" visibility="public"
  61516. deprecated="not deprecated">
  61517. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61518. <doc>
  61519. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  61520. with that of another).]]>
  61521. </doc>
  61522. </method>
  61523. <method name="equals" return="boolean"
  61524. abstract="false" native="false" synchronized="false"
  61525. static="false" final="false" visibility="public"
  61526. deprecated="not deprecated">
  61527. <param name="other" type="java.lang.Object"/>
  61528. <doc>
  61529. <![CDATA[Return true iff compareTo(other) retn true.]]>
  61530. </doc>
  61531. </method>
  61532. <method name="hashCode" return="int"
  61533. abstract="false" native="false" synchronized="false"
  61534. static="false" final="false" visibility="public"
  61535. deprecated="not deprecated">
  61536. </method>
  61537. <doc>
  61538. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  61539. This class keeps track of the &quot;head&quot; key-value pair for the
  61540. provided RecordReader and keeps a store of values matching a key when
  61541. this source is participating in a join.]]>
  61542. </doc>
  61543. </class>
  61544. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  61545. </package>
  61546. <package name="org.apache.hadoop.mapred.lib">
  61547. <!-- start class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  61548. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner"
  61549. abstract="false"
  61550. static="false" final="false" visibility="public"
  61551. deprecated="not deprecated">
  61552. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  61553. <constructor name="BinaryPartitioner"
  61554. static="false" final="false" visibility="public"
  61555. deprecated="not deprecated">
  61556. </constructor>
  61557. <method name="configure"
  61558. abstract="false" native="false" synchronized="false"
  61559. static="false" final="false" visibility="public"
  61560. deprecated="not deprecated">
  61561. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61562. </method>
  61563. <doc>
  61564. <![CDATA[Partition {@link BinaryComparable} keys using a configurable part of
  61565. the bytes array returned by {@link BinaryComparable#getBytes()}.
  61566. @see org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner]]>
  61567. </doc>
  61568. </class>
  61569. <!-- end class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  61570. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  61571. <class name="ChainMapper" extends="java.lang.Object"
  61572. abstract="false"
  61573. static="false" final="false" visibility="public"
  61574. deprecated="not deprecated">
  61575. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61576. <constructor name="ChainMapper"
  61577. static="false" final="false" visibility="public"
  61578. deprecated="not deprecated">
  61579. <doc>
  61580. <![CDATA[Constructor.]]>
  61581. </doc>
  61582. </constructor>
  61583. <method name="addMapper"
  61584. abstract="false" native="false" synchronized="false"
  61585. static="true" final="false" visibility="public"
  61586. deprecated="not deprecated">
  61587. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61588. <param name="klass" type="java.lang.Class"/>
  61589. <param name="inputKeyClass" type="java.lang.Class"/>
  61590. <param name="inputValueClass" type="java.lang.Class"/>
  61591. <param name="outputKeyClass" type="java.lang.Class"/>
  61592. <param name="outputValueClass" type="java.lang.Class"/>
  61593. <param name="byValue" type="boolean"/>
  61594. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  61595. <doc>
  61596. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  61597. <p/>
  61598. It has to be specified how key and values are passed from one element of
  61599. the chain to the next, by value or by reference. If a Mapper leverages the
  61600. assumed semantics that the key and values are not modified by the collector
  61601. 'by value' must be used. If the Mapper does not expect this semantics, as
  61602. an optimization to avoid serialization and deserialization 'by reference'
  61603. can be used.
  61604. <p/>
  61605. For the added Mapper the configuration given for it,
  61606. <code>mapperConf</code>, have precedence over the job's JobConf. This
  61607. precedence is in effect when the task is running.
  61608. <p/>
  61609. IMPORTANT: There is no need to specify the output key/value classes for the
  61610. ChainMapper, this is done by the addMapper for the last mapper in the chain
  61611. <p/>
  61612. @param job job's JobConf to add the Mapper class.
  61613. @param klass the Mapper class to add.
  61614. @param inputKeyClass mapper input key class.
  61615. @param inputValueClass mapper input value class.
  61616. @param outputKeyClass mapper output key class.
  61617. @param outputValueClass mapper output value class.
  61618. @param byValue indicates if key/values should be passed by value
  61619. to the next Mapper in the chain, if any.
  61620. @param mapperConf a JobConf with the configuration for the Mapper
  61621. class. It is recommended to use a JobConf without default values using the
  61622. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  61623. </doc>
  61624. </method>
  61625. <method name="configure"
  61626. abstract="false" native="false" synchronized="false"
  61627. static="false" final="false" visibility="public"
  61628. deprecated="not deprecated">
  61629. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61630. <doc>
  61631. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  61632. <p/>
  61633. If this method is overriden <code>super.configure(...)</code> should be
  61634. invoked at the beginning of the overwriter method.]]>
  61635. </doc>
  61636. </method>
  61637. <method name="map"
  61638. abstract="false" native="false" synchronized="false"
  61639. static="false" final="false" visibility="public"
  61640. deprecated="not deprecated">
  61641. <param name="key" type="java.lang.Object"/>
  61642. <param name="value" type="java.lang.Object"/>
  61643. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61644. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61645. <exception name="IOException" type="java.io.IOException"/>
  61646. <doc>
  61647. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  61648. </doc>
  61649. </method>
  61650. <method name="close"
  61651. abstract="false" native="false" synchronized="false"
  61652. static="false" final="false" visibility="public"
  61653. deprecated="not deprecated">
  61654. <exception name="IOException" type="java.io.IOException"/>
  61655. <doc>
  61656. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  61657. <p/>
  61658. If this method is overriden <code>super.close()</code> should be
  61659. invoked at the end of the overwriter method.]]>
  61660. </doc>
  61661. </method>
  61662. <doc>
  61663. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  61664. Map task.
  61665. <p/>
  61666. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  61667. the first becomes the input of the second, and so on until the last Mapper,
  61668. the output of the last Mapper will be written to the task's output.
  61669. <p/>
  61670. The key functionality of this feature is that the Mappers in the chain do not
  61671. need to be aware that they are executed in a chain. This enables having
  61672. reusable specialized Mappers that can be combined to perform composite
  61673. operations within a single task.
  61674. <p/>
  61675. Special care has to be taken when creating chains that the key/values output
  61676. by a Mapper are valid for the following Mapper in the chain. It is assumed
  61677. all Mappers and the Reduce in the chain use maching output and input key and
  61678. value classes as no conversion is done by the chaining code.
  61679. <p/>
  61680. Using the ChainMapper and the ChainReducer classes is possible to compose
  61681. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  61682. immediate benefit of this pattern is a dramatic reduction in disk IO.
  61683. <p/>
  61684. IMPORTANT: There is no need to specify the output key/value classes for the
  61685. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  61686. <p/>
  61687. ChainMapper usage pattern:
  61688. <p/>
  61689. <pre>
  61690. ...
  61691. conf.setJobName("chain");
  61692. conf.setInputFormat(TextInputFormat.class);
  61693. conf.setOutputFormat(TextOutputFormat.class);
  61694. <p/>
  61695. JobConf mapAConf = new JobConf(false);
  61696. ...
  61697. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  61698. Text.class, Text.class, true, mapAConf);
  61699. <p/>
  61700. JobConf mapBConf = new JobConf(false);
  61701. ...
  61702. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  61703. LongWritable.class, Text.class, false, mapBConf);
  61704. <p/>
  61705. JobConf reduceConf = new JobConf(false);
  61706. ...
  61707. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  61708. Text.class, Text.class, true, reduceConf);
  61709. <p/>
  61710. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  61711. LongWritable.class, Text.class, false, null);
  61712. <p/>
  61713. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  61714. LongWritable.class, LongWritable.class, true, null);
  61715. <p/>
  61716. FileInputFormat.setInputPaths(conf, inDir);
  61717. FileOutputFormat.setOutputPath(conf, outDir);
  61718. ...
  61719. <p/>
  61720. JobClient jc = new JobClient(conf);
  61721. RunningJob job = jc.submitJob(conf);
  61722. ...
  61723. </pre>]]>
  61724. </doc>
  61725. </class>
  61726. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  61727. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  61728. <class name="ChainReducer" extends="java.lang.Object"
  61729. abstract="false"
  61730. static="false" final="false" visibility="public"
  61731. deprecated="not deprecated">
  61732. <implements name="org.apache.hadoop.mapred.Reducer"/>
  61733. <constructor name="ChainReducer"
  61734. static="false" final="false" visibility="public"
  61735. deprecated="not deprecated">
  61736. <doc>
  61737. <![CDATA[Constructor.]]>
  61738. </doc>
  61739. </constructor>
  61740. <method name="setReducer"
  61741. abstract="false" native="false" synchronized="false"
  61742. static="true" final="false" visibility="public"
  61743. deprecated="not deprecated">
  61744. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61745. <param name="klass" type="java.lang.Class"/>
  61746. <param name="inputKeyClass" type="java.lang.Class"/>
  61747. <param name="inputValueClass" type="java.lang.Class"/>
  61748. <param name="outputKeyClass" type="java.lang.Class"/>
  61749. <param name="outputValueClass" type="java.lang.Class"/>
  61750. <param name="byValue" type="boolean"/>
  61751. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  61752. <doc>
  61753. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  61754. <p/>
  61755. It has to be specified how key and values are passed from one element of
  61756. the chain to the next, by value or by reference. If a Reducer leverages the
  61757. assumed semantics that the key and values are not modified by the collector
  61758. 'by value' must be used. If the Reducer does not expect this semantics, as
  61759. an optimization to avoid serialization and deserialization 'by reference'
  61760. can be used.
  61761. <p/>
  61762. For the added Reducer the configuration given for it,
  61763. <code>reducerConf</code>, have precedence over the job's JobConf. This
  61764. precedence is in effect when the task is running.
  61765. <p/>
  61766. IMPORTANT: There is no need to specify the output key/value classes for the
  61767. ChainReducer, this is done by the setReducer or the addMapper for the last
  61768. element in the chain.
  61769. @param job job's JobConf to add the Reducer class.
  61770. @param klass the Reducer class to add.
  61771. @param inputKeyClass reducer input key class.
  61772. @param inputValueClass reducer input value class.
  61773. @param outputKeyClass reducer output key class.
  61774. @param outputValueClass reducer output value class.
  61775. @param byValue indicates if key/values should be passed by value
  61776. to the next Mapper in the chain, if any.
  61777. @param reducerConf a JobConf with the configuration for the Reducer
  61778. class. It is recommended to use a JobConf without default values using the
  61779. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  61780. </doc>
  61781. </method>
  61782. <method name="addMapper"
  61783. abstract="false" native="false" synchronized="false"
  61784. static="true" final="false" visibility="public"
  61785. deprecated="not deprecated">
  61786. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61787. <param name="klass" type="java.lang.Class"/>
  61788. <param name="inputKeyClass" type="java.lang.Class"/>
  61789. <param name="inputValueClass" type="java.lang.Class"/>
  61790. <param name="outputKeyClass" type="java.lang.Class"/>
  61791. <param name="outputValueClass" type="java.lang.Class"/>
  61792. <param name="byValue" type="boolean"/>
  61793. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  61794. <doc>
  61795. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  61796. <p/>
  61797. It has to be specified how key and values are passed from one element of
  61798. the chain to the next, by value or by reference. If a Mapper leverages the
  61799. assumed semantics that the key and values are not modified by the collector
  61800. 'by value' must be used. If the Mapper does not expect this semantics, as
  61801. an optimization to avoid serialization and deserialization 'by reference'
  61802. can be used.
  61803. <p/>
  61804. For the added Mapper the configuration given for it,
  61805. <code>mapperConf</code>, have precedence over the job's JobConf. This
  61806. precedence is in effect when the task is running.
  61807. <p/>
  61808. IMPORTANT: There is no need to specify the output key/value classes for the
  61809. ChainMapper, this is done by the addMapper for the last mapper in the chain
  61810. .
  61811. @param job chain job's JobConf to add the Mapper class.
  61812. @param klass the Mapper class to add.
  61813. @param inputKeyClass mapper input key class.
  61814. @param inputValueClass mapper input value class.
  61815. @param outputKeyClass mapper output key class.
  61816. @param outputValueClass mapper output value class.
  61817. @param byValue indicates if key/values should be passed by value
  61818. to the next Mapper in the chain, if any.
  61819. @param mapperConf a JobConf with the configuration for the Mapper
  61820. class. It is recommended to use a JobConf without default values using the
  61821. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  61822. </doc>
  61823. </method>
  61824. <method name="configure"
  61825. abstract="false" native="false" synchronized="false"
  61826. static="false" final="false" visibility="public"
  61827. deprecated="not deprecated">
  61828. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61829. <doc>
  61830. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  61831. <p/>
  61832. If this method is overriden <code>super.configure(...)</code> should be
  61833. invoked at the beginning of the overwriter method.]]>
  61834. </doc>
  61835. </method>
  61836. <method name="reduce"
  61837. abstract="false" native="false" synchronized="false"
  61838. static="false" final="false" visibility="public"
  61839. deprecated="not deprecated">
  61840. <param name="key" type="java.lang.Object"/>
  61841. <param name="values" type="java.util.Iterator"/>
  61842. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61843. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61844. <exception name="IOException" type="java.io.IOException"/>
  61845. <doc>
  61846. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  61847. <code>map(...) </code> methods of the Mappers in the chain.]]>
  61848. </doc>
  61849. </method>
  61850. <method name="close"
  61851. abstract="false" native="false" synchronized="false"
  61852. static="false" final="false" visibility="public"
  61853. deprecated="not deprecated">
  61854. <exception name="IOException" type="java.io.IOException"/>
  61855. <doc>
  61856. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  61857. <p/>
  61858. If this method is overriden <code>super.close()</code> should be
  61859. invoked at the end of the overwriter method.]]>
  61860. </doc>
  61861. </method>
  61862. <doc>
  61863. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  61864. Reducer within the Reducer task.
  61865. <p/>
  61866. For each record output by the Reducer, the Mapper classes are invoked in a
  61867. chained (or piped) fashion, the output of the first becomes the input of the
  61868. second, and so on until the last Mapper, the output of the last Mapper will
  61869. be written to the task's output.
  61870. <p/>
  61871. The key functionality of this feature is that the Mappers in the chain do not
  61872. need to be aware that they are executed after the Reducer or in a chain.
  61873. This enables having reusable specialized Mappers that can be combined to
  61874. perform composite operations within a single task.
  61875. <p/>
  61876. Special care has to be taken when creating chains that the key/values output
  61877. by a Mapper are valid for the following Mapper in the chain. It is assumed
  61878. all Mappers and the Reduce in the chain use maching output and input key and
  61879. value classes as no conversion is done by the chaining code.
  61880. <p/>
  61881. Using the ChainMapper and the ChainReducer classes is possible to compose
  61882. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  61883. immediate benefit of this pattern is a dramatic reduction in disk IO.
  61884. <p/>
  61885. IMPORTANT: There is no need to specify the output key/value classes for the
  61886. ChainReducer, this is done by the setReducer or the addMapper for the last
  61887. element in the chain.
  61888. <p/>
  61889. ChainReducer usage pattern:
  61890. <p/>
  61891. <pre>
  61892. ...
  61893. conf.setJobName("chain");
  61894. conf.setInputFormat(TextInputFormat.class);
  61895. conf.setOutputFormat(TextOutputFormat.class);
  61896. <p/>
  61897. JobConf mapAConf = new JobConf(false);
  61898. ...
  61899. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  61900. Text.class, Text.class, true, mapAConf);
  61901. <p/>
  61902. JobConf mapBConf = new JobConf(false);
  61903. ...
  61904. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  61905. LongWritable.class, Text.class, false, mapBConf);
  61906. <p/>
  61907. JobConf reduceConf = new JobConf(false);
  61908. ...
  61909. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  61910. Text.class, Text.class, true, reduceConf);
  61911. <p/>
  61912. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  61913. LongWritable.class, Text.class, false, null);
  61914. <p/>
  61915. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  61916. LongWritable.class, LongWritable.class, true, null);
  61917. <p/>
  61918. FileInputFormat.setInputPaths(conf, inDir);
  61919. FileOutputFormat.setOutputPath(conf, outDir);
  61920. ...
  61921. <p/>
  61922. JobClient jc = new JobClient(conf);
  61923. RunningJob job = jc.submitJob(conf);
  61924. ...
  61925. </pre>]]>
  61926. </doc>
  61927. </class>
  61928. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  61929. <!-- start class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  61930. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  61931. abstract="true"
  61932. static="false" final="false" visibility="public"
  61933. deprecated="not deprecated">
  61934. <constructor name="CombineFileInputFormat"
  61935. static="false" final="false" visibility="public"
  61936. deprecated="not deprecated">
  61937. <doc>
  61938. <![CDATA[default constructor]]>
  61939. </doc>
  61940. </constructor>
  61941. <method name="setMaxSplitSize"
  61942. abstract="false" native="false" synchronized="false"
  61943. static="false" final="false" visibility="protected"
  61944. deprecated="not deprecated">
  61945. <param name="maxSplitSize" type="long"/>
  61946. <doc>
  61947. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  61948. approximately equal to the specified size.]]>
  61949. </doc>
  61950. </method>
  61951. <method name="setMinSplitSizeNode"
  61952. abstract="false" native="false" synchronized="false"
  61953. static="false" final="false" visibility="protected"
  61954. deprecated="not deprecated">
  61955. <param name="minSplitSizeNode" type="long"/>
  61956. <doc>
  61957. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  61958. This applies to data that is left over after combining data on a single
  61959. node into splits that are of maximum size specified by maxSplitSize.
  61960. This leftover data will be combined into its own split if its size
  61961. exceeds minSplitSizeNode.]]>
  61962. </doc>
  61963. </method>
  61964. <method name="setMinSplitSizeRack"
  61965. abstract="false" native="false" synchronized="false"
  61966. static="false" final="false" visibility="protected"
  61967. deprecated="not deprecated">
  61968. <param name="minSplitSizeRack" type="long"/>
  61969. <doc>
  61970. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  61971. This applies to data that is left over after combining data on a single
  61972. rack into splits that are of maximum size specified by maxSplitSize.
  61973. This leftover data will be combined into its own split if its size
  61974. exceeds minSplitSizeRack.]]>
  61975. </doc>
  61976. </method>
  61977. <method name="createPool"
  61978. abstract="false" native="false" synchronized="false"
  61979. static="false" final="false" visibility="protected"
  61980. deprecated="not deprecated">
  61981. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61982. <param name="filters" type="java.util.List"/>
  61983. <doc>
  61984. <![CDATA[Create a new pool and add the filters to it.
  61985. A split cannot have files from different pools.]]>
  61986. </doc>
  61987. </method>
  61988. <method name="createPool"
  61989. abstract="false" native="false" synchronized="false"
  61990. static="false" final="false" visibility="protected"
  61991. deprecated="not deprecated">
  61992. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61993. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  61994. <doc>
  61995. <![CDATA[Create a new pool and add the filters to it.
  61996. A pathname can satisfy any one of the specified filters.
  61997. A split cannot have files from different pools.]]>
  61998. </doc>
  61999. </method>
  62000. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  62001. abstract="false" native="false" synchronized="false"
  62002. static="false" final="false" visibility="public"
  62003. deprecated="not deprecated">
  62004. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62005. <param name="numSplits" type="int"/>
  62006. <exception name="IOException" type="java.io.IOException"/>
  62007. </method>
  62008. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  62009. abstract="true" native="false" synchronized="false"
  62010. static="false" final="false" visibility="public"
  62011. deprecated="not deprecated">
  62012. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  62013. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62014. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62015. <exception name="IOException" type="java.io.IOException"/>
  62016. <doc>
  62017. <![CDATA[This is not implemented yet.]]>
  62018. </doc>
  62019. </method>
  62020. <doc>
  62021. <![CDATA[An abstract {@link org.apache.hadoop.mapred.InputFormat} that returns {@link CombineFileSplit}'s
  62022. in {@link org.apache.hadoop.mapred.InputFormat#getSplits(JobConf, int)} method.
  62023. Splits are constructed from the files under the input paths.
  62024. A split cannot have files from different pools.
  62025. Each split returned may contain blocks from different files.
  62026. If a maxSplitSize is specified, then blocks on the same node are
  62027. combined to form a single split. Blocks that are left over are
  62028. then combined with other blocks in the same rack.
  62029. If maxSplitSize is not specified, then blocks from the same rack
  62030. are combined in a single split; no attempt is made to create
  62031. node-local splits.
  62032. If the maxSplitSize is equal to the block size, then this class
  62033. is similar to the default spliting behaviour in Hadoop: each
  62034. block is a locally processed split.
  62035. Subclasses implement {@link org.apache.hadoop.mapred.InputFormat#getRecordReader(InputSplit, JobConf, Reporter)}
  62036. to construct <code>RecordReader</code>'s for <code>CombineFileSplit</code>'s.
  62037. @see CombineFileSplit]]>
  62038. </doc>
  62039. </class>
  62040. <!-- end class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  62041. <!-- start class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  62042. <class name="CombineFileRecordReader" extends="java.lang.Object"
  62043. abstract="false"
  62044. static="false" final="false" visibility="public"
  62045. deprecated="not deprecated">
  62046. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  62047. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.CombineFileSplit, org.apache.hadoop.mapred.Reporter, java.lang.Class"
  62048. static="false" final="false" visibility="public"
  62049. deprecated="not deprecated">
  62050. <exception name="IOException" type="java.io.IOException"/>
  62051. <doc>
  62052. <![CDATA[A generic RecordReader that can hand out different recordReaders
  62053. for each chunk in the CombineFileSplit.]]>
  62054. </doc>
  62055. </constructor>
  62056. <method name="next" return="boolean"
  62057. abstract="false" native="false" synchronized="false"
  62058. static="false" final="false" visibility="public"
  62059. deprecated="not deprecated">
  62060. <param name="key" type="java.lang.Object"/>
  62061. <param name="value" type="java.lang.Object"/>
  62062. <exception name="IOException" type="java.io.IOException"/>
  62063. </method>
  62064. <method name="createKey" return="java.lang.Object"
  62065. abstract="false" native="false" synchronized="false"
  62066. static="false" final="false" visibility="public"
  62067. deprecated="not deprecated">
  62068. </method>
  62069. <method name="createValue" return="java.lang.Object"
  62070. abstract="false" native="false" synchronized="false"
  62071. static="false" final="false" visibility="public"
  62072. deprecated="not deprecated">
  62073. </method>
  62074. <method name="getPos" return="long"
  62075. abstract="false" native="false" synchronized="false"
  62076. static="false" final="false" visibility="public"
  62077. deprecated="not deprecated">
  62078. <exception name="IOException" type="java.io.IOException"/>
  62079. <doc>
  62080. <![CDATA[return the amount of data processed]]>
  62081. </doc>
  62082. </method>
  62083. <method name="close"
  62084. abstract="false" native="false" synchronized="false"
  62085. static="false" final="false" visibility="public"
  62086. deprecated="not deprecated">
  62087. <exception name="IOException" type="java.io.IOException"/>
  62088. </method>
  62089. <method name="getProgress" return="float"
  62090. abstract="false" native="false" synchronized="false"
  62091. static="false" final="false" visibility="public"
  62092. deprecated="not deprecated">
  62093. <exception name="IOException" type="java.io.IOException"/>
  62094. <doc>
  62095. <![CDATA[return progress based on the amount of data processed so far.]]>
  62096. </doc>
  62097. </method>
  62098. <method name="initNextRecordReader" return="boolean"
  62099. abstract="false" native="false" synchronized="false"
  62100. static="false" final="false" visibility="protected"
  62101. deprecated="not deprecated">
  62102. <exception name="IOException" type="java.io.IOException"/>
  62103. <doc>
  62104. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  62105. </doc>
  62106. </method>
  62107. <field name="split" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  62108. transient="false" volatile="false"
  62109. static="false" final="false" visibility="protected"
  62110. deprecated="not deprecated">
  62111. </field>
  62112. <field name="jc" type="org.apache.hadoop.mapred.JobConf"
  62113. transient="false" volatile="false"
  62114. static="false" final="false" visibility="protected"
  62115. deprecated="not deprecated">
  62116. </field>
  62117. <field name="reporter" type="org.apache.hadoop.mapred.Reporter"
  62118. transient="false" volatile="false"
  62119. static="false" final="false" visibility="protected"
  62120. deprecated="not deprecated">
  62121. </field>
  62122. <field name="rrClass" type="java.lang.Class"
  62123. transient="false" volatile="false"
  62124. static="false" final="false" visibility="protected"
  62125. deprecated="not deprecated">
  62126. </field>
  62127. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  62128. transient="false" volatile="false"
  62129. static="false" final="false" visibility="protected"
  62130. deprecated="not deprecated">
  62131. </field>
  62132. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  62133. transient="false" volatile="false"
  62134. static="false" final="false" visibility="protected"
  62135. deprecated="not deprecated">
  62136. </field>
  62137. <field name="idx" type="int"
  62138. transient="false" volatile="false"
  62139. static="false" final="false" visibility="protected"
  62140. deprecated="not deprecated">
  62141. </field>
  62142. <field name="progress" type="long"
  62143. transient="false" volatile="false"
  62144. static="false" final="false" visibility="protected"
  62145. deprecated="not deprecated">
  62146. </field>
  62147. <field name="curReader" type="org.apache.hadoop.mapred.RecordReader"
  62148. transient="false" volatile="false"
  62149. static="false" final="false" visibility="protected"
  62150. deprecated="not deprecated">
  62151. </field>
  62152. <doc>
  62153. <![CDATA[A generic RecordReader that can hand out different recordReaders
  62154. for each chunk in a {@link CombineFileSplit}.
  62155. A CombineFileSplit can combine data chunks from multiple files.
  62156. This class allows using different RecordReaders for processing
  62157. these data chunks from different files.
  62158. @see CombineFileSplit]]>
  62159. </doc>
  62160. </class>
  62161. <!-- end class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  62162. <!-- start class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  62163. <class name="CombineFileSplit" extends="java.lang.Object"
  62164. abstract="false"
  62165. static="false" final="false" visibility="public"
  62166. deprecated="not deprecated">
  62167. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  62168. <constructor name="CombineFileSplit"
  62169. static="false" final="false" visibility="public"
  62170. deprecated="not deprecated">
  62171. <doc>
  62172. <![CDATA[default constructor]]>
  62173. </doc>
  62174. </constructor>
  62175. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  62176. static="false" final="false" visibility="public"
  62177. deprecated="not deprecated">
  62178. </constructor>
  62179. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  62180. static="false" final="false" visibility="public"
  62181. deprecated="not deprecated">
  62182. </constructor>
  62183. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  62184. static="false" final="false" visibility="public"
  62185. deprecated="not deprecated">
  62186. <exception name="IOException" type="java.io.IOException"/>
  62187. <doc>
  62188. <![CDATA[Copy constructor]]>
  62189. </doc>
  62190. </constructor>
  62191. <method name="getJob" return="org.apache.hadoop.mapred.JobConf"
  62192. abstract="false" native="false" synchronized="false"
  62193. static="false" final="false" visibility="public"
  62194. deprecated="not deprecated">
  62195. </method>
  62196. <method name="getLength" return="long"
  62197. abstract="false" native="false" synchronized="false"
  62198. static="false" final="false" visibility="public"
  62199. deprecated="not deprecated">
  62200. </method>
  62201. <method name="getStartOffsets" return="long[]"
  62202. abstract="false" native="false" synchronized="false"
  62203. static="false" final="false" visibility="public"
  62204. deprecated="not deprecated">
  62205. <doc>
  62206. <![CDATA[Returns an array containing the startoffsets of the files in the split]]>
  62207. </doc>
  62208. </method>
  62209. <method name="getLengths" return="long[]"
  62210. abstract="false" native="false" synchronized="false"
  62211. static="false" final="false" visibility="public"
  62212. deprecated="not deprecated">
  62213. <doc>
  62214. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  62215. </doc>
  62216. </method>
  62217. <method name="getOffset" return="long"
  62218. abstract="false" native="false" synchronized="false"
  62219. static="false" final="false" visibility="public"
  62220. deprecated="not deprecated">
  62221. <param name="i" type="int"/>
  62222. <doc>
  62223. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  62224. </doc>
  62225. </method>
  62226. <method name="getLength" return="long"
  62227. abstract="false" native="false" synchronized="false"
  62228. static="false" final="false" visibility="public"
  62229. deprecated="not deprecated">
  62230. <param name="i" type="int"/>
  62231. <doc>
  62232. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  62233. </doc>
  62234. </method>
  62235. <method name="getNumPaths" return="int"
  62236. abstract="false" native="false" synchronized="false"
  62237. static="false" final="false" visibility="public"
  62238. deprecated="not deprecated">
  62239. <doc>
  62240. <![CDATA[Returns the number of Paths in the split]]>
  62241. </doc>
  62242. </method>
  62243. <method name="getPath" return="org.apache.hadoop.fs.Path"
  62244. abstract="false" native="false" synchronized="false"
  62245. static="false" final="false" visibility="public"
  62246. deprecated="not deprecated">
  62247. <param name="i" type="int"/>
  62248. <doc>
  62249. <![CDATA[Returns the i<sup>th</sup> Path]]>
  62250. </doc>
  62251. </method>
  62252. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  62253. abstract="false" native="false" synchronized="false"
  62254. static="false" final="false" visibility="public"
  62255. deprecated="not deprecated">
  62256. <doc>
  62257. <![CDATA[Returns all the Paths in the split]]>
  62258. </doc>
  62259. </method>
  62260. <method name="getLocations" return="java.lang.String[]"
  62261. abstract="false" native="false" synchronized="false"
  62262. static="false" final="false" visibility="public"
  62263. deprecated="not deprecated">
  62264. <exception name="IOException" type="java.io.IOException"/>
  62265. <doc>
  62266. <![CDATA[Returns all the Paths where this input-split resides]]>
  62267. </doc>
  62268. </method>
  62269. <method name="readFields"
  62270. abstract="false" native="false" synchronized="false"
  62271. static="false" final="false" visibility="public"
  62272. deprecated="not deprecated">
  62273. <param name="in" type="java.io.DataInput"/>
  62274. <exception name="IOException" type="java.io.IOException"/>
  62275. </method>
  62276. <method name="write"
  62277. abstract="false" native="false" synchronized="false"
  62278. static="false" final="false" visibility="public"
  62279. deprecated="not deprecated">
  62280. <param name="out" type="java.io.DataOutput"/>
  62281. <exception name="IOException" type="java.io.IOException"/>
  62282. </method>
  62283. <method name="toString" return="java.lang.String"
  62284. abstract="false" native="false" synchronized="false"
  62285. static="false" final="false" visibility="public"
  62286. deprecated="not deprecated">
  62287. </method>
  62288. <doc>
  62289. <![CDATA[A sub-collection of input files. Unlike {@link org.apache.hadoop.mapred.FileSplit},
  62290. CombineFileSplit * class does not represent a split of a file, but a split of input files
  62291. into smaller sets. A split may contain blocks from different file but all
  62292. the blocks in the same split are probably local to some rack <br>
  62293. CombineFileSplit can be used to implement {@link org.apache.hadoop.mapred.RecordReader}'s,
  62294. with reading one record per file.
  62295. @see org.apache.hadoop.mapred.FileSplit
  62296. @see CombineFileInputFormat]]>
  62297. </doc>
  62298. </class>
  62299. <!-- end class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  62300. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  62301. <class name="DelegatingInputFormat" extends="java.lang.Object"
  62302. abstract="false"
  62303. static="false" final="false" visibility="public"
  62304. deprecated="not deprecated">
  62305. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  62306. <constructor name="DelegatingInputFormat"
  62307. static="false" final="false" visibility="public"
  62308. deprecated="not deprecated">
  62309. </constructor>
  62310. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  62311. abstract="false" native="false" synchronized="false"
  62312. static="false" final="false" visibility="public"
  62313. deprecated="not deprecated">
  62314. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62315. <param name="numSplits" type="int"/>
  62316. <exception name="IOException" type="java.io.IOException"/>
  62317. </method>
  62318. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  62319. abstract="false" native="false" synchronized="false"
  62320. static="false" final="false" visibility="public"
  62321. deprecated="not deprecated">
  62322. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  62323. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62324. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62325. <exception name="IOException" type="java.io.IOException"/>
  62326. </method>
  62327. <doc>
  62328. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  62329. InputFormats.
  62330. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  62331. </doc>
  62332. </class>
  62333. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  62334. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  62335. <class name="DelegatingMapper" extends="java.lang.Object"
  62336. abstract="false"
  62337. static="false" final="false" visibility="public"
  62338. deprecated="not deprecated">
  62339. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62340. <constructor name="DelegatingMapper"
  62341. static="false" final="false" visibility="public"
  62342. deprecated="not deprecated">
  62343. </constructor>
  62344. <method name="map"
  62345. abstract="false" native="false" synchronized="false"
  62346. static="false" final="false" visibility="public"
  62347. deprecated="not deprecated">
  62348. <param name="key" type="java.lang.Object"/>
  62349. <param name="value" type="java.lang.Object"/>
  62350. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  62351. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62352. <exception name="IOException" type="java.io.IOException"/>
  62353. </method>
  62354. <method name="configure"
  62355. abstract="false" native="false" synchronized="false"
  62356. static="false" final="false" visibility="public"
  62357. deprecated="not deprecated">
  62358. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62359. </method>
  62360. <method name="close"
  62361. abstract="false" native="false" synchronized="false"
  62362. static="false" final="false" visibility="public"
  62363. deprecated="not deprecated">
  62364. <exception name="IOException" type="java.io.IOException"/>
  62365. </method>
  62366. <doc>
  62367. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  62368. mappers.
  62369. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  62370. </doc>
  62371. </class>
  62372. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  62373. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  62374. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  62375. abstract="false"
  62376. static="false" final="false" visibility="public"
  62377. deprecated="not deprecated">
  62378. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62379. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62380. <constructor name="FieldSelectionMapReduce"
  62381. static="false" final="false" visibility="public"
  62382. deprecated="not deprecated">
  62383. </constructor>
  62384. <method name="map"
  62385. abstract="false" native="false" synchronized="false"
  62386. static="false" final="false" visibility="public"
  62387. deprecated="not deprecated">
  62388. <param name="key" type="java.lang.Object"/>
  62389. <param name="val" type="java.lang.Object"/>
  62390. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62391. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62392. <exception name="IOException" type="java.io.IOException"/>
  62393. <doc>
  62394. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  62395. </doc>
  62396. </method>
  62397. <method name="configure"
  62398. abstract="false" native="false" synchronized="false"
  62399. static="false" final="false" visibility="public"
  62400. deprecated="not deprecated">
  62401. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62402. </method>
  62403. <method name="close"
  62404. abstract="false" native="false" synchronized="false"
  62405. static="false" final="false" visibility="public"
  62406. deprecated="not deprecated">
  62407. <exception name="IOException" type="java.io.IOException"/>
  62408. </method>
  62409. <method name="reduce"
  62410. abstract="false" native="false" synchronized="false"
  62411. static="false" final="false" visibility="public"
  62412. deprecated="not deprecated">
  62413. <param name="key" type="org.apache.hadoop.io.Text"/>
  62414. <param name="values" type="java.util.Iterator"/>
  62415. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62416. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62417. <exception name="IOException" type="java.io.IOException"/>
  62418. </method>
  62419. <field name="LOG" type="org.apache.commons.logging.Log"
  62420. transient="false" volatile="false"
  62421. static="true" final="true" visibility="public"
  62422. deprecated="not deprecated">
  62423. </field>
  62424. <doc>
  62425. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  62426. field selections in a manner similar to unix cut. The input data is treated
  62427. as fields separated by a user specified separator (the default value is
  62428. "\t"). The user can specify a list of fields that form the map output keys,
  62429. and a list of fields that form the map output values. If the inputformat is
  62430. TextInputFormat, the mapper will ignore the key to the map function. and the
  62431. fields are from the value only. Otherwise, the fields are the union of those
  62432. from the key and those from the value.
  62433. The field separator is under attribute "mapred.data.field.separator"
  62434. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  62435. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  62436. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  62437. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  62438. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  62439. the fields starting from field 3. The open range field spec applies value fields only.
  62440. They have no effect on the key fields.
  62441. 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,
  62442. and use fields 6,5,1,2,3,7 and above for values.
  62443. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  62444. The reducer extracts output key/value pairs in a similar manner, except that
  62445. the key is never ignored.]]>
  62446. </doc>
  62447. </class>
  62448. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  62449. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  62450. <class name="HashPartitioner" extends="java.lang.Object"
  62451. abstract="false"
  62452. static="false" final="false" visibility="public"
  62453. deprecated="not deprecated">
  62454. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  62455. <constructor name="HashPartitioner"
  62456. static="false" final="false" visibility="public"
  62457. deprecated="not deprecated">
  62458. </constructor>
  62459. <method name="configure"
  62460. abstract="false" native="false" synchronized="false"
  62461. static="false" final="false" visibility="public"
  62462. deprecated="not deprecated">
  62463. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62464. </method>
  62465. <method name="getPartition" return="int"
  62466. abstract="false" native="false" synchronized="false"
  62467. static="false" final="false" visibility="public"
  62468. deprecated="not deprecated">
  62469. <param name="key" type="java.lang.Object"/>
  62470. <param name="value" type="java.lang.Object"/>
  62471. <param name="numReduceTasks" type="int"/>
  62472. <doc>
  62473. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  62474. </doc>
  62475. </method>
  62476. <doc>
  62477. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  62478. </doc>
  62479. </class>
  62480. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  62481. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  62482. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  62483. abstract="false"
  62484. static="false" final="false" visibility="public"
  62485. deprecated="not deprecated">
  62486. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62487. <constructor name="IdentityMapper"
  62488. static="false" final="false" visibility="public"
  62489. deprecated="not deprecated">
  62490. </constructor>
  62491. <method name="map"
  62492. abstract="false" native="false" synchronized="false"
  62493. static="false" final="false" visibility="public"
  62494. deprecated="not deprecated">
  62495. <param name="key" type="java.lang.Object"/>
  62496. <param name="val" type="java.lang.Object"/>
  62497. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62498. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62499. <exception name="IOException" type="java.io.IOException"/>
  62500. <doc>
  62501. <![CDATA[The identify function. Input key/value pair is written directly to
  62502. output.]]>
  62503. </doc>
  62504. </method>
  62505. <doc>
  62506. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  62507. </doc>
  62508. </class>
  62509. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  62510. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  62511. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  62512. abstract="false"
  62513. static="false" final="false" visibility="public"
  62514. deprecated="not deprecated">
  62515. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62516. <constructor name="IdentityReducer"
  62517. static="false" final="false" visibility="public"
  62518. deprecated="not deprecated">
  62519. </constructor>
  62520. <method name="reduce"
  62521. abstract="false" native="false" synchronized="false"
  62522. static="false" final="false" visibility="public"
  62523. deprecated="not deprecated">
  62524. <param name="key" type="java.lang.Object"/>
  62525. <param name="values" type="java.util.Iterator"/>
  62526. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62527. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62528. <exception name="IOException" type="java.io.IOException"/>
  62529. <doc>
  62530. <![CDATA[Writes all keys and values directly to output.]]>
  62531. </doc>
  62532. </method>
  62533. <doc>
  62534. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  62535. </doc>
  62536. </class>
  62537. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  62538. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  62539. <class name="InputSampler" extends="java.lang.Object"
  62540. abstract="false"
  62541. static="false" final="false" visibility="public"
  62542. deprecated="not deprecated">
  62543. <implements name="org.apache.hadoop.util.Tool"/>
  62544. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  62545. static="false" final="false" visibility="public"
  62546. deprecated="not deprecated">
  62547. </constructor>
  62548. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  62549. abstract="false" native="false" synchronized="false"
  62550. static="false" final="false" visibility="public"
  62551. deprecated="not deprecated">
  62552. </method>
  62553. <method name="setConf"
  62554. abstract="false" native="false" synchronized="false"
  62555. static="false" final="false" visibility="public"
  62556. deprecated="not deprecated">
  62557. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  62558. </method>
  62559. <method name="writePartitionFile"
  62560. abstract="false" native="false" synchronized="false"
  62561. static="true" final="false" visibility="public"
  62562. deprecated="not deprecated">
  62563. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62564. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62565. <exception name="IOException" type="java.io.IOException"/>
  62566. <doc>
  62567. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  62568. Queries the sampler for a sample keyset, sorts by the output key
  62569. comparator, selects the keys for each rank, and writes to the destination
  62570. returned from {@link
  62571. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  62572. </doc>
  62573. </method>
  62574. <method name="run" return="int"
  62575. abstract="false" native="false" synchronized="false"
  62576. static="false" final="false" visibility="public"
  62577. deprecated="not deprecated">
  62578. <param name="args" type="java.lang.String[]"/>
  62579. <exception name="Exception" type="java.lang.Exception"/>
  62580. <doc>
  62581. <![CDATA[Driver for InputSampler from the command line.
  62582. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  62583. </doc>
  62584. </method>
  62585. <method name="main"
  62586. abstract="false" native="false" synchronized="false"
  62587. static="true" final="false" visibility="public"
  62588. deprecated="not deprecated">
  62589. <param name="args" type="java.lang.String[]"/>
  62590. <exception name="Exception" type="java.lang.Exception"/>
  62591. </method>
  62592. <doc>
  62593. <![CDATA[Utility for collecting samples and writing a partition file for
  62594. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  62595. </doc>
  62596. </class>
  62597. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  62598. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  62599. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  62600. abstract="false"
  62601. static="true" final="false" visibility="public"
  62602. deprecated="not deprecated">
  62603. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62604. <constructor name="InputSampler.IntervalSampler" type="double"
  62605. static="false" final="false" visibility="public"
  62606. deprecated="not deprecated">
  62607. <doc>
  62608. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  62609. @param freq The frequency with which records will be emitted.]]>
  62610. </doc>
  62611. </constructor>
  62612. <constructor name="InputSampler.IntervalSampler" type="double, int"
  62613. static="false" final="false" visibility="public"
  62614. deprecated="not deprecated">
  62615. <doc>
  62616. <![CDATA[Create a new IntervalSampler.
  62617. @param freq The frequency with which records will be emitted.
  62618. @param maxSplitsSampled The maximum number of splits to examine.
  62619. @see #getSample]]>
  62620. </doc>
  62621. </constructor>
  62622. <method name="getSample" return="java.lang.Object[]"
  62623. abstract="false" native="false" synchronized="false"
  62624. static="false" final="false" visibility="public"
  62625. deprecated="not deprecated">
  62626. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62627. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62628. <exception name="IOException" type="java.io.IOException"/>
  62629. <doc>
  62630. <![CDATA[For each split sampled, emit when the ratio of the number of records
  62631. retained to the total record count is less than the specified
  62632. frequency.]]>
  62633. </doc>
  62634. </method>
  62635. <doc>
  62636. <![CDATA[Sample from s splits at regular intervals.
  62637. Useful for sorted data.]]>
  62638. </doc>
  62639. </class>
  62640. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  62641. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  62642. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  62643. abstract="false"
  62644. static="true" final="false" visibility="public"
  62645. deprecated="not deprecated">
  62646. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62647. <constructor name="InputSampler.RandomSampler" type="double, int"
  62648. static="false" final="false" visibility="public"
  62649. deprecated="not deprecated">
  62650. <doc>
  62651. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  62652. This will read every split at the client, which is very expensive.
  62653. @param freq Probability with which a key will be chosen.
  62654. @param numSamples Total number of samples to obtain from all selected
  62655. splits.]]>
  62656. </doc>
  62657. </constructor>
  62658. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  62659. static="false" final="false" visibility="public"
  62660. deprecated="not deprecated">
  62661. <doc>
  62662. <![CDATA[Create a new RandomSampler.
  62663. @param freq Probability with which a key will be chosen.
  62664. @param numSamples Total number of samples to obtain from all selected
  62665. splits.
  62666. @param maxSplitsSampled The maximum number of splits to examine.]]>
  62667. </doc>
  62668. </constructor>
  62669. <method name="getSample" return="java.lang.Object[]"
  62670. abstract="false" native="false" synchronized="false"
  62671. static="false" final="false" visibility="public"
  62672. deprecated="not deprecated">
  62673. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62674. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62675. <exception name="IOException" type="java.io.IOException"/>
  62676. <doc>
  62677. <![CDATA[Randomize the split order, then take the specified number of keys from
  62678. each split sampled, where each key is selected with the specified
  62679. probability and possibly replaced by a subsequently selected key when
  62680. the quota of keys from that split is satisfied.]]>
  62681. </doc>
  62682. </method>
  62683. <doc>
  62684. <![CDATA[Sample from random points in the input.
  62685. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  62686. each split.]]>
  62687. </doc>
  62688. </class>
  62689. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  62690. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  62691. <interface name="InputSampler.Sampler" abstract="true"
  62692. static="true" final="false" visibility="public"
  62693. deprecated="not deprecated">
  62694. <method name="getSample" return="java.lang.Object[]"
  62695. abstract="false" native="false" synchronized="false"
  62696. static="false" final="false" visibility="public"
  62697. deprecated="not deprecated">
  62698. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62699. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62700. <exception name="IOException" type="java.io.IOException"/>
  62701. <doc>
  62702. <![CDATA[For a given job, collect and return a subset of the keys from the
  62703. input data.]]>
  62704. </doc>
  62705. </method>
  62706. <doc>
  62707. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  62708. </doc>
  62709. </interface>
  62710. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  62711. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  62712. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  62713. abstract="false"
  62714. static="true" final="false" visibility="public"
  62715. deprecated="not deprecated">
  62716. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  62717. <constructor name="InputSampler.SplitSampler" type="int"
  62718. static="false" final="false" visibility="public"
  62719. deprecated="not deprecated">
  62720. <doc>
  62721. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  62722. Takes the first numSamples / numSplits records from each split.
  62723. @param numSamples Total number of samples to obtain from all selected
  62724. splits.]]>
  62725. </doc>
  62726. </constructor>
  62727. <constructor name="InputSampler.SplitSampler" type="int, int"
  62728. static="false" final="false" visibility="public"
  62729. deprecated="not deprecated">
  62730. <doc>
  62731. <![CDATA[Create a new SplitSampler.
  62732. @param numSamples Total number of samples to obtain from all selected
  62733. splits.
  62734. @param maxSplitsSampled The maximum number of splits to examine.]]>
  62735. </doc>
  62736. </constructor>
  62737. <method name="getSample" return="java.lang.Object[]"
  62738. abstract="false" native="false" synchronized="false"
  62739. static="false" final="false" visibility="public"
  62740. deprecated="not deprecated">
  62741. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  62742. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62743. <exception name="IOException" type="java.io.IOException"/>
  62744. <doc>
  62745. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  62746. </doc>
  62747. </method>
  62748. <doc>
  62749. <![CDATA[Samples the first n records from s splits.
  62750. Inexpensive way to sample random data.]]>
  62751. </doc>
  62752. </class>
  62753. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  62754. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  62755. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  62756. abstract="false"
  62757. static="false" final="false" visibility="public"
  62758. deprecated="not deprecated">
  62759. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62760. <constructor name="InverseMapper"
  62761. static="false" final="false" visibility="public"
  62762. deprecated="not deprecated">
  62763. </constructor>
  62764. <method name="map"
  62765. abstract="false" native="false" synchronized="false"
  62766. static="false" final="false" visibility="public"
  62767. deprecated="not deprecated">
  62768. <param name="key" type="java.lang.Object"/>
  62769. <param name="value" type="java.lang.Object"/>
  62770. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62771. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62772. <exception name="IOException" type="java.io.IOException"/>
  62773. <doc>
  62774. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  62775. </doc>
  62776. </method>
  62777. <doc>
  62778. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  62779. </doc>
  62780. </class>
  62781. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  62782. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  62783. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  62784. abstract="false"
  62785. static="false" final="false" visibility="public"
  62786. deprecated="not deprecated">
  62787. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  62788. <constructor name="KeyFieldBasedComparator"
  62789. static="false" final="false" visibility="public"
  62790. deprecated="not deprecated">
  62791. </constructor>
  62792. <method name="configure"
  62793. abstract="false" native="false" synchronized="false"
  62794. static="false" final="false" visibility="public"
  62795. deprecated="not deprecated">
  62796. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62797. </method>
  62798. <method name="compare" return="int"
  62799. abstract="false" native="false" synchronized="false"
  62800. static="false" final="false" visibility="public"
  62801. deprecated="not deprecated">
  62802. <param name="b1" type="byte[]"/>
  62803. <param name="s1" type="int"/>
  62804. <param name="l1" type="int"/>
  62805. <param name="b2" type="byte[]"/>
  62806. <param name="s2" type="int"/>
  62807. <param name="l2" type="int"/>
  62808. </method>
  62809. <doc>
  62810. <![CDATA[This comparator implementation provides a subset of the features provided
  62811. by the Unix/GNU Sort. In particular, the supported features are:
  62812. -n, (Sort numerically)
  62813. -r, (Reverse the result of comparison)
  62814. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  62815. of the field to use, and c is the number of the first character from the
  62816. beginning of the field. Fields and character posns are numbered starting
  62817. with 1; a character position of zero in pos2 indicates the field's last
  62818. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  62819. of the field); if omitted from pos2, it defaults to 0 (the end of the
  62820. field). opts are ordering options (any of 'nr' as described above).
  62821. We assume that the fields in the key are separated by
  62822. map.output.key.field.separator.]]>
  62823. </doc>
  62824. </class>
  62825. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  62826. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  62827. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  62828. abstract="false"
  62829. static="false" final="false" visibility="public"
  62830. deprecated="not deprecated">
  62831. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  62832. <constructor name="KeyFieldBasedPartitioner"
  62833. static="false" final="false" visibility="public"
  62834. deprecated="not deprecated">
  62835. </constructor>
  62836. <method name="configure"
  62837. abstract="false" native="false" synchronized="false"
  62838. static="false" final="false" visibility="public"
  62839. deprecated="not deprecated">
  62840. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62841. </method>
  62842. <method name="getPartition" return="int"
  62843. abstract="false" native="false" synchronized="false"
  62844. static="false" final="false" visibility="public"
  62845. deprecated="not deprecated">
  62846. <param name="key" type="java.lang.Object"/>
  62847. <param name="value" type="java.lang.Object"/>
  62848. <param name="numReduceTasks" type="int"/>
  62849. </method>
  62850. <method name="hashCode" return="int"
  62851. abstract="false" native="false" synchronized="false"
  62852. static="false" final="false" visibility="protected"
  62853. deprecated="not deprecated">
  62854. <param name="b" type="byte[]"/>
  62855. <param name="start" type="int"/>
  62856. <param name="end" type="int"/>
  62857. <param name="currentHash" type="int"/>
  62858. </method>
  62859. <method name="getPartition" return="int"
  62860. abstract="false" native="false" synchronized="false"
  62861. static="false" final="false" visibility="protected"
  62862. deprecated="not deprecated">
  62863. <param name="hash" type="int"/>
  62864. <param name="numReduceTasks" type="int"/>
  62865. </method>
  62866. <doc>
  62867. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  62868. {@link KeyFieldBasedComparator}.
  62869. The key specification supported is of the form -k pos1[,pos2], where,
  62870. pos is of the form f[.c][opts], where f is the number
  62871. of the key field to use, and c is the number of the first character from
  62872. the beginning of the field. Fields and character posns are numbered
  62873. starting with 1; a character position of zero in pos2 indicates the
  62874. field's last character. If '.c' is omitted from pos1, it defaults to 1
  62875. (the beginning of the field); if omitted from pos2, it defaults to 0
  62876. (the end of the field).]]>
  62877. </doc>
  62878. </class>
  62879. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  62880. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  62881. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  62882. abstract="false"
  62883. static="false" final="false" visibility="public"
  62884. deprecated="not deprecated">
  62885. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62886. <constructor name="LongSumReducer"
  62887. static="false" final="false" visibility="public"
  62888. deprecated="not deprecated">
  62889. </constructor>
  62890. <method name="reduce"
  62891. abstract="false" native="false" synchronized="false"
  62892. static="false" final="false" visibility="public"
  62893. deprecated="not deprecated">
  62894. <param name="key" type="java.lang.Object"/>
  62895. <param name="values" type="java.util.Iterator"/>
  62896. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62897. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62898. <exception name="IOException" type="java.io.IOException"/>
  62899. </method>
  62900. <doc>
  62901. <![CDATA[A {@link Reducer} that sums long values.]]>
  62902. </doc>
  62903. </class>
  62904. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  62905. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  62906. <class name="MultipleInputs" extends="java.lang.Object"
  62907. abstract="false"
  62908. static="false" final="false" visibility="public"
  62909. deprecated="not deprecated">
  62910. <constructor name="MultipleInputs"
  62911. static="false" final="false" visibility="public"
  62912. deprecated="not deprecated">
  62913. </constructor>
  62914. <method name="addInputPath"
  62915. abstract="false" native="false" synchronized="false"
  62916. static="true" final="false" visibility="public"
  62917. deprecated="not deprecated">
  62918. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62919. <param name="path" type="org.apache.hadoop.fs.Path"/>
  62920. <param name="inputFormatClass" type="java.lang.Class"/>
  62921. <doc>
  62922. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  62923. inputs for the map-reduce job.
  62924. @param conf The configuration of the job
  62925. @param path {@link Path} to be added to the list of inputs for the job
  62926. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  62927. </doc>
  62928. </method>
  62929. <method name="addInputPath"
  62930. abstract="false" native="false" synchronized="false"
  62931. static="true" final="false" visibility="public"
  62932. deprecated="not deprecated">
  62933. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  62934. <param name="path" type="org.apache.hadoop.fs.Path"/>
  62935. <param name="inputFormatClass" type="java.lang.Class"/>
  62936. <param name="mapperClass" type="java.lang.Class"/>
  62937. <doc>
  62938. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  62939. {@link Mapper} to the list of inputs for the map-reduce job.
  62940. @param conf The configuration of the job
  62941. @param path {@link Path} to be added to the list of inputs for the job
  62942. @param inputFormatClass {@link InputFormat} class to use for this path
  62943. @param mapperClass {@link Mapper} class to use for this path]]>
  62944. </doc>
  62945. </method>
  62946. <doc>
  62947. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  62948. a different {@link InputFormat} and {@link Mapper} for each path]]>
  62949. </doc>
  62950. </class>
  62951. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  62952. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  62953. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  62954. abstract="true"
  62955. static="false" final="false" visibility="public"
  62956. deprecated="not deprecated">
  62957. <constructor name="MultipleOutputFormat"
  62958. static="false" final="false" visibility="public"
  62959. deprecated="not deprecated">
  62960. </constructor>
  62961. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  62962. abstract="false" native="false" synchronized="false"
  62963. static="false" final="false" visibility="public"
  62964. deprecated="not deprecated">
  62965. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  62966. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62967. <param name="name" type="java.lang.String"/>
  62968. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  62969. <exception name="IOException" type="java.io.IOException"/>
  62970. <doc>
  62971. <![CDATA[Create a composite record writer that can write key/value data to different
  62972. output files
  62973. @param fs
  62974. the file system to use
  62975. @param job
  62976. the job conf for the job
  62977. @param name
  62978. the leaf file name for the output file (such as part-00000")
  62979. @param arg3
  62980. a progressable for reporting progress.
  62981. @return a composite record writer
  62982. @throws IOException]]>
  62983. </doc>
  62984. </method>
  62985. <method name="generateLeafFileName" return="java.lang.String"
  62986. abstract="false" native="false" synchronized="false"
  62987. static="false" final="false" visibility="protected"
  62988. deprecated="not deprecated">
  62989. <param name="name" type="java.lang.String"/>
  62990. <doc>
  62991. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  62992. not change the leaf file name (such as part-00000)
  62993. @param name
  62994. the leaf file name for the output file
  62995. @return the given leaf file name]]>
  62996. </doc>
  62997. </method>
  62998. <method name="generateFileNameForKeyValue" return="java.lang.String"
  62999. abstract="false" native="false" synchronized="false"
  63000. static="false" final="false" visibility="protected"
  63001. deprecated="not deprecated">
  63002. <param name="key" type="java.lang.Object"/>
  63003. <param name="value" type="java.lang.Object"/>
  63004. <param name="name" type="java.lang.String"/>
  63005. <doc>
  63006. <![CDATA[Generate the file output file name based on the given key and the leaf file
  63007. name. The default behavior is that the file name does not depend on the
  63008. key.
  63009. @param key
  63010. the key of the output data
  63011. @param name
  63012. the leaf file name
  63013. @return generated file name]]>
  63014. </doc>
  63015. </method>
  63016. <method name="generateActualKey" return="java.lang.Object"
  63017. abstract="false" native="false" synchronized="false"
  63018. static="false" final="false" visibility="protected"
  63019. deprecated="not deprecated">
  63020. <param name="key" type="java.lang.Object"/>
  63021. <param name="value" type="java.lang.Object"/>
  63022. <doc>
  63023. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  63024. the actual key is equal to the given key
  63025. @param key
  63026. the key of the output data
  63027. @param value
  63028. the value of the output data
  63029. @return the actual key derived from the given key/value]]>
  63030. </doc>
  63031. </method>
  63032. <method name="generateActualValue" return="java.lang.Object"
  63033. abstract="false" native="false" synchronized="false"
  63034. static="false" final="false" visibility="protected"
  63035. deprecated="not deprecated">
  63036. <param name="key" type="java.lang.Object"/>
  63037. <param name="value" type="java.lang.Object"/>
  63038. <doc>
  63039. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  63040. the actual value is equal to the given value
  63041. @param key
  63042. the key of the output data
  63043. @param value
  63044. the value of the output data
  63045. @return the actual value derived from the given key/value]]>
  63046. </doc>
  63047. </method>
  63048. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  63049. abstract="false" native="false" synchronized="false"
  63050. static="false" final="false" visibility="protected"
  63051. deprecated="not deprecated">
  63052. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63053. <param name="name" type="java.lang.String"/>
  63054. <doc>
  63055. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  63056. the map input file does not exists (i.e. this is not for a map only job),
  63057. the given name is returned unchanged. If the config value for
  63058. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  63059. name is returned unchanged. Otherwise, return a file name consisting of the
  63060. N trailing legs of the input file name where N is the config value for
  63061. "num.of.trailing.legs.to.use".
  63062. @param job
  63063. the job config
  63064. @param name
  63065. the output file name
  63066. @return the outfile name based on a given anme and the input file name.]]>
  63067. </doc>
  63068. </method>
  63069. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63070. abstract="true" native="false" synchronized="false"
  63071. static="false" final="false" visibility="protected"
  63072. deprecated="not deprecated">
  63073. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  63074. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63075. <param name="name" type="java.lang.String"/>
  63076. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  63077. <exception name="IOException" type="java.io.IOException"/>
  63078. <doc>
  63079. <![CDATA[@param fs
  63080. the file system to use
  63081. @param job
  63082. a job conf object
  63083. @param name
  63084. the name of the file over which a record writer object will be
  63085. constructed
  63086. @param arg3
  63087. a progressable object
  63088. @return A RecordWriter object over the given file
  63089. @throws IOException]]>
  63090. </doc>
  63091. </method>
  63092. <doc>
  63093. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  63094. output data to different output files. There are three basic use cases for
  63095. this class.
  63096. Case one: This class is used for a map reduce job with at least one reducer.
  63097. The reducer wants to write data to different files depending on the actual
  63098. keys. It is assumed that a key (or value) encodes the actual key (value)
  63099. and the desired location for the actual key (value).
  63100. Case two: This class is used for a map only job. The job wants to use an
  63101. output file name that is either a part of the input file name of the input
  63102. data, or some derivation of it.
  63103. Case three: This class is used for a map only job. The job wants to use an
  63104. output file name that depends on both the keys and the input file name,]]>
  63105. </doc>
  63106. </class>
  63107. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  63108. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  63109. <class name="MultipleOutputs" extends="java.lang.Object"
  63110. abstract="false"
  63111. static="false" final="false" visibility="public"
  63112. deprecated="not deprecated">
  63113. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  63114. static="false" final="false" visibility="public"
  63115. deprecated="not deprecated">
  63116. <doc>
  63117. <![CDATA[Creates and initializes multiple named outputs support, it should be
  63118. instantiated in the Mapper/Reducer configure method.
  63119. @param job the job configuration object]]>
  63120. </doc>
  63121. </constructor>
  63122. <method name="getNamedOutputsList" return="java.util.List"
  63123. abstract="false" native="false" synchronized="false"
  63124. static="true" final="false" visibility="public"
  63125. deprecated="not deprecated">
  63126. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63127. <doc>
  63128. <![CDATA[Returns list of channel names.
  63129. @param conf job conf
  63130. @return List of channel Names]]>
  63131. </doc>
  63132. </method>
  63133. <method name="isMultiNamedOutput" return="boolean"
  63134. abstract="false" native="false" synchronized="false"
  63135. static="true" final="false" visibility="public"
  63136. deprecated="not deprecated">
  63137. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63138. <param name="namedOutput" type="java.lang.String"/>
  63139. <doc>
  63140. <![CDATA[Returns if a named output is multiple.
  63141. @param conf job conf
  63142. @param namedOutput named output
  63143. @return <code>true</code> if the name output is multi, <code>false</code>
  63144. if it is single. If the name output is not defined it returns
  63145. <code>false</code>]]>
  63146. </doc>
  63147. </method>
  63148. <method name="getNamedOutputFormatClass" return="java.lang.Class"
  63149. abstract="false" native="false" synchronized="false"
  63150. static="true" final="false" visibility="public"
  63151. deprecated="not deprecated">
  63152. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63153. <param name="namedOutput" type="java.lang.String"/>
  63154. <doc>
  63155. <![CDATA[Returns the named output OutputFormat.
  63156. @param conf job conf
  63157. @param namedOutput named output
  63158. @return namedOutput OutputFormat]]>
  63159. </doc>
  63160. </method>
  63161. <method name="getNamedOutputKeyClass" return="java.lang.Class"
  63162. abstract="false" native="false" synchronized="false"
  63163. static="true" final="false" visibility="public"
  63164. deprecated="not deprecated">
  63165. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63166. <param name="namedOutput" type="java.lang.String"/>
  63167. <doc>
  63168. <![CDATA[Returns the key class for a named output.
  63169. @param conf job conf
  63170. @param namedOutput named output
  63171. @return class for the named output key]]>
  63172. </doc>
  63173. </method>
  63174. <method name="getNamedOutputValueClass" return="java.lang.Class"
  63175. abstract="false" native="false" synchronized="false"
  63176. static="true" final="false" visibility="public"
  63177. deprecated="not deprecated">
  63178. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63179. <param name="namedOutput" type="java.lang.String"/>
  63180. <doc>
  63181. <![CDATA[Returns the value class for a named output.
  63182. @param conf job conf
  63183. @param namedOutput named output
  63184. @return class of named output value]]>
  63185. </doc>
  63186. </method>
  63187. <method name="addNamedOutput"
  63188. abstract="false" native="false" synchronized="false"
  63189. static="true" final="false" visibility="public"
  63190. deprecated="not deprecated">
  63191. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63192. <param name="namedOutput" type="java.lang.String"/>
  63193. <param name="outputFormatClass" type="java.lang.Class"/>
  63194. <param name="keyClass" type="java.lang.Class"/>
  63195. <param name="valueClass" type="java.lang.Class"/>
  63196. <doc>
  63197. <![CDATA[Adds a named output for the job.
  63198. <p/>
  63199. @param conf job conf to add the named output
  63200. @param namedOutput named output name, it has to be a word, letters
  63201. and numbers only, cannot be the word 'part' as
  63202. that is reserved for the
  63203. default output.
  63204. @param outputFormatClass OutputFormat class.
  63205. @param keyClass key class
  63206. @param valueClass value class]]>
  63207. </doc>
  63208. </method>
  63209. <method name="addMultiNamedOutput"
  63210. abstract="false" native="false" synchronized="false"
  63211. static="true" final="false" visibility="public"
  63212. deprecated="not deprecated">
  63213. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63214. <param name="namedOutput" type="java.lang.String"/>
  63215. <param name="outputFormatClass" type="java.lang.Class"/>
  63216. <param name="keyClass" type="java.lang.Class"/>
  63217. <param name="valueClass" type="java.lang.Class"/>
  63218. <doc>
  63219. <![CDATA[Adds a multi named output for the job.
  63220. <p/>
  63221. @param conf job conf to add the named output
  63222. @param namedOutput named output name, it has to be a word, letters
  63223. and numbers only, cannot be the word 'part' as
  63224. that is reserved for the
  63225. default output.
  63226. @param outputFormatClass OutputFormat class.
  63227. @param keyClass key class
  63228. @param valueClass value class]]>
  63229. </doc>
  63230. </method>
  63231. <method name="setCountersEnabled"
  63232. abstract="false" native="false" synchronized="false"
  63233. static="true" final="false" visibility="public"
  63234. deprecated="not deprecated">
  63235. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63236. <param name="enabled" type="boolean"/>
  63237. <doc>
  63238. <![CDATA[Enables or disables counters for the named outputs.
  63239. <p/>
  63240. By default these counters are disabled.
  63241. <p/>
  63242. MultipleOutputs supports counters, by default the are disabled.
  63243. The counters group is the {@link MultipleOutputs} class name.
  63244. </p>
  63245. The names of the counters are the same as the named outputs. For multi
  63246. named outputs the name of the counter is the concatenation of the named
  63247. output, and underscore '_' and the multiname.
  63248. @param conf job conf to enableadd the named output.
  63249. @param enabled indicates if the counters will be enabled or not.]]>
  63250. </doc>
  63251. </method>
  63252. <method name="getCountersEnabled" return="boolean"
  63253. abstract="false" native="false" synchronized="false"
  63254. static="true" final="false" visibility="public"
  63255. deprecated="not deprecated">
  63256. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63257. <doc>
  63258. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  63259. <p/>
  63260. By default these counters are disabled.
  63261. <p/>
  63262. MultipleOutputs supports counters, by default the are disabled.
  63263. The counters group is the {@link MultipleOutputs} class name.
  63264. </p>
  63265. The names of the counters are the same as the named outputs. For multi
  63266. named outputs the name of the counter is the concatenation of the named
  63267. output, and underscore '_' and the multiname.
  63268. @param conf job conf to enableadd the named output.
  63269. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  63270. </doc>
  63271. </method>
  63272. <method name="getNamedOutputs" return="java.util.Iterator"
  63273. abstract="false" native="false" synchronized="false"
  63274. static="false" final="false" visibility="public"
  63275. deprecated="not deprecated">
  63276. <doc>
  63277. <![CDATA[Returns iterator with the defined name outputs.
  63278. @return iterator with the defined named outputs]]>
  63279. </doc>
  63280. </method>
  63281. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  63282. abstract="false" native="false" synchronized="false"
  63283. static="false" final="false" visibility="public"
  63284. deprecated="not deprecated">
  63285. <param name="namedOutput" type="java.lang.String"/>
  63286. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63287. <exception name="IOException" type="java.io.IOException"/>
  63288. <doc>
  63289. <![CDATA[Gets the output collector for a named output.
  63290. <p/>
  63291. @param namedOutput the named output name
  63292. @param reporter the reporter
  63293. @return the output collector for the given named output
  63294. @throws IOException thrown if output collector could not be created]]>
  63295. </doc>
  63296. </method>
  63297. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  63298. abstract="false" native="false" synchronized="false"
  63299. static="false" final="false" visibility="public"
  63300. deprecated="not deprecated">
  63301. <param name="namedOutput" type="java.lang.String"/>
  63302. <param name="multiName" type="java.lang.String"/>
  63303. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63304. <exception name="IOException" type="java.io.IOException"/>
  63305. <doc>
  63306. <![CDATA[Gets the output collector for a multi named output.
  63307. <p/>
  63308. @param namedOutput the named output name
  63309. @param multiName the multi name part
  63310. @param reporter the reporter
  63311. @return the output collector for the given named output
  63312. @throws IOException thrown if output collector could not be created]]>
  63313. </doc>
  63314. </method>
  63315. <method name="close"
  63316. abstract="false" native="false" synchronized="false"
  63317. static="false" final="false" visibility="public"
  63318. deprecated="not deprecated">
  63319. <exception name="IOException" type="java.io.IOException"/>
  63320. <doc>
  63321. <![CDATA[Closes all the opened named outputs.
  63322. <p/>
  63323. If overriden subclasses must invoke <code>super.close()</code> at the
  63324. end of their <code>close()</code>
  63325. @throws java.io.IOException thrown if any of the MultipleOutput files
  63326. could not be closed properly.]]>
  63327. </doc>
  63328. </method>
  63329. <doc>
  63330. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  63331. than the job default output via the <code>OutputCollector</code> passed to
  63332. the <code>map()</code> and <code>reduce()</code> methods of the
  63333. <code>Mapper</code> and <code>Reducer</code> implementations.
  63334. <p/>
  63335. Each additional output, or named output, may be configured with its own
  63336. <code>OutputFormat</code>, with its own key class and with its own value
  63337. class.
  63338. <p/>
  63339. A named output can be a single file or a multi file. The later is refered as
  63340. a multi named output.
  63341. <p/>
  63342. A multi named output is an unbound set of files all sharing the same
  63343. <code>OutputFormat</code>, key class and value class configuration.
  63344. <p/>
  63345. When named outputs are used within a <code>Mapper</code> implementation,
  63346. key/values written to a name output are not part of the reduce phase, only
  63347. key/values written to the job <code>OutputCollector</code> are part of the
  63348. reduce phase.
  63349. <p/>
  63350. MultipleOutputs supports counters, by default the are disabled. The counters
  63351. group is the {@link MultipleOutputs} class name.
  63352. </p>
  63353. The names of the counters are the same as the named outputs. For multi
  63354. named outputs the name of the counter is the concatenation of the named
  63355. output, and underscore '_' and the multiname.
  63356. <p/>
  63357. Job configuration usage pattern is:
  63358. <pre>
  63359. JobConf conf = new JobConf();
  63360. conf.setInputPath(inDir);
  63361. FileOutputFormat.setOutputPath(conf, outDir);
  63362. conf.setMapperClass(MOMap.class);
  63363. conf.setReducerClass(MOReduce.class);
  63364. ...
  63365. // Defines additional single text based output 'text' for the job
  63366. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  63367. LongWritable.class, Text.class);
  63368. // Defines additional multi sequencefile based output 'sequence' for the
  63369. // job
  63370. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  63371. SequenceFileOutputFormat.class,
  63372. LongWritable.class, Text.class);
  63373. ...
  63374. JobClient jc = new JobClient();
  63375. RunningJob job = jc.submitJob(conf);
  63376. ...
  63377. </pre>
  63378. <p/>
  63379. Job configuration usage pattern is:
  63380. <pre>
  63381. public class MOReduce implements
  63382. Reducer&lt;WritableComparable, Writable&gt; {
  63383. private MultipleOutputs mos;
  63384. public void configure(JobConf conf) {
  63385. ...
  63386. mos = new MultipleOutputs(conf);
  63387. }
  63388. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  63389. OutputCollector output, Reporter reporter)
  63390. throws IOException {
  63391. ...
  63392. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  63393. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  63394. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  63395. ...
  63396. }
  63397. public void close() throws IOException {
  63398. mos.close();
  63399. ...
  63400. }
  63401. }
  63402. </pre>]]>
  63403. </doc>
  63404. </class>
  63405. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  63406. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  63407. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  63408. abstract="false"
  63409. static="false" final="false" visibility="public"
  63410. deprecated="not deprecated">
  63411. <constructor name="MultipleSequenceFileOutputFormat"
  63412. static="false" final="false" visibility="public"
  63413. deprecated="not deprecated">
  63414. </constructor>
  63415. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63416. abstract="false" native="false" synchronized="false"
  63417. static="false" final="false" visibility="protected"
  63418. deprecated="not deprecated">
  63419. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  63420. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63421. <param name="name" type="java.lang.String"/>
  63422. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  63423. <exception name="IOException" type="java.io.IOException"/>
  63424. </method>
  63425. <doc>
  63426. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  63427. to different output files in sequence file output format.]]>
  63428. </doc>
  63429. </class>
  63430. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  63431. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  63432. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  63433. abstract="false"
  63434. static="false" final="false" visibility="public"
  63435. deprecated="not deprecated">
  63436. <constructor name="MultipleTextOutputFormat"
  63437. static="false" final="false" visibility="public"
  63438. deprecated="not deprecated">
  63439. </constructor>
  63440. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63441. abstract="false" native="false" synchronized="false"
  63442. static="false" final="false" visibility="protected"
  63443. deprecated="not deprecated">
  63444. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  63445. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63446. <param name="name" type="java.lang.String"/>
  63447. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  63448. <exception name="IOException" type="java.io.IOException"/>
  63449. </method>
  63450. <doc>
  63451. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  63452. data to different output files in Text output format.]]>
  63453. </doc>
  63454. </class>
  63455. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  63456. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  63457. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  63458. abstract="false"
  63459. static="false" final="false" visibility="public"
  63460. deprecated="not deprecated">
  63461. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  63462. <constructor name="MultithreadedMapRunner"
  63463. static="false" final="false" visibility="public"
  63464. deprecated="not deprecated">
  63465. </constructor>
  63466. <method name="configure"
  63467. abstract="false" native="false" synchronized="false"
  63468. static="false" final="false" visibility="public"
  63469. deprecated="not deprecated">
  63470. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  63471. </method>
  63472. <method name="run"
  63473. abstract="false" native="false" synchronized="false"
  63474. static="false" final="false" visibility="public"
  63475. deprecated="not deprecated">
  63476. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  63477. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63478. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63479. <exception name="IOException" type="java.io.IOException"/>
  63480. </method>
  63481. <doc>
  63482. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  63483. <p>
  63484. It can be used instead of the default implementation,
  63485. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  63486. bound in order to improve throughput.
  63487. <p>
  63488. Map implementations using this MapRunnable must be thread-safe.
  63489. <p>
  63490. The Map-Reduce job has to be configured to use this MapRunnable class (using
  63491. the JobConf.setMapRunnerClass method) and
  63492. the number of thread the thread-pool can use with the
  63493. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  63494. value is 10 threads.
  63495. <p>]]>
  63496. </doc>
  63497. </class>
  63498. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  63499. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  63500. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  63501. abstract="false"
  63502. static="false" final="false" visibility="public"
  63503. deprecated="not deprecated">
  63504. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  63505. <constructor name="NLineInputFormat"
  63506. static="false" final="false" visibility="public"
  63507. deprecated="not deprecated">
  63508. </constructor>
  63509. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  63510. abstract="false" native="false" synchronized="false"
  63511. static="false" final="false" visibility="public"
  63512. deprecated="not deprecated">
  63513. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  63514. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63515. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63516. <exception name="IOException" type="java.io.IOException"/>
  63517. </method>
  63518. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63519. abstract="false" native="false" synchronized="false"
  63520. static="false" final="false" visibility="public"
  63521. deprecated="not deprecated">
  63522. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63523. <param name="numSplits" type="int"/>
  63524. <exception name="IOException" type="java.io.IOException"/>
  63525. <doc>
  63526. <![CDATA[Logically splits the set of input files for the job, splits N lines
  63527. of the input as one split.
  63528. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  63529. </doc>
  63530. </method>
  63531. <method name="configure"
  63532. abstract="false" native="false" synchronized="false"
  63533. static="false" final="false" visibility="public"
  63534. deprecated="not deprecated">
  63535. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63536. </method>
  63537. <doc>
  63538. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  63539. In many "pleasantly" parallel applications, each process/mapper
  63540. processes the same input file (s), but with computations are
  63541. controlled by different parameters.(Referred to as "parameter sweeps").
  63542. One way to achieve this, is to specify a set of parameters
  63543. (one set per line) as input in a control file
  63544. (which is the input path to the map-reduce application,
  63545. where as the input dataset is specified
  63546. via a config variable in JobConf.).
  63547. The NLineInputFormat can be used in such applications, that splits
  63548. the input file such that by default, one line is fed as
  63549. a value to one map task, and key is the offset.
  63550. i.e. (k,v) is (LongWritable, Text).
  63551. The location hints will span the whole mapred cluster.]]>
  63552. </doc>
  63553. </class>
  63554. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  63555. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  63556. <class name="NullOutputFormat" extends="java.lang.Object"
  63557. abstract="false"
  63558. static="false" final="false" visibility="public"
  63559. deprecated="not deprecated">
  63560. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  63561. <constructor name="NullOutputFormat"
  63562. static="false" final="false" visibility="public"
  63563. deprecated="not deprecated">
  63564. </constructor>
  63565. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63566. abstract="false" native="false" synchronized="false"
  63567. static="false" final="false" visibility="public"
  63568. deprecated="not deprecated">
  63569. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  63570. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63571. <param name="name" type="java.lang.String"/>
  63572. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  63573. </method>
  63574. <method name="checkOutputSpecs"
  63575. abstract="false" native="false" synchronized="false"
  63576. static="false" final="false" visibility="public"
  63577. deprecated="not deprecated">
  63578. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  63579. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63580. </method>
  63581. <doc>
  63582. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  63583. </doc>
  63584. </class>
  63585. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  63586. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  63587. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  63588. abstract="false"
  63589. static="false" final="false" visibility="public"
  63590. deprecated="not deprecated">
  63591. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63592. <constructor name="RegexMapper"
  63593. static="false" final="false" visibility="public"
  63594. deprecated="not deprecated">
  63595. </constructor>
  63596. <method name="configure"
  63597. abstract="false" native="false" synchronized="false"
  63598. static="false" final="false" visibility="public"
  63599. deprecated="not deprecated">
  63600. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63601. </method>
  63602. <method name="map"
  63603. abstract="false" native="false" synchronized="false"
  63604. static="false" final="false" visibility="public"
  63605. deprecated="not deprecated">
  63606. <param name="key" type="java.lang.Object"/>
  63607. <param name="value" type="org.apache.hadoop.io.Text"/>
  63608. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63609. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63610. <exception name="IOException" type="java.io.IOException"/>
  63611. </method>
  63612. <doc>
  63613. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  63614. </doc>
  63615. </class>
  63616. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  63617. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  63618. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  63619. abstract="false"
  63620. static="false" final="false" visibility="public"
  63621. deprecated="not deprecated">
  63622. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63623. <constructor name="TokenCountMapper"
  63624. static="false" final="false" visibility="public"
  63625. deprecated="not deprecated">
  63626. </constructor>
  63627. <method name="map"
  63628. abstract="false" native="false" synchronized="false"
  63629. static="false" final="false" visibility="public"
  63630. deprecated="not deprecated">
  63631. <param name="key" type="java.lang.Object"/>
  63632. <param name="value" type="org.apache.hadoop.io.Text"/>
  63633. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63634. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63635. <exception name="IOException" type="java.io.IOException"/>
  63636. </method>
  63637. <doc>
  63638. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  63639. {@link StringTokenizer} to break text into tokens.]]>
  63640. </doc>
  63641. </class>
  63642. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  63643. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  63644. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  63645. abstract="false"
  63646. static="false" final="false" visibility="public"
  63647. deprecated="not deprecated">
  63648. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  63649. <constructor name="TotalOrderPartitioner"
  63650. static="false" final="false" visibility="public"
  63651. deprecated="not deprecated">
  63652. </constructor>
  63653. <method name="configure"
  63654. abstract="false" native="false" synchronized="false"
  63655. static="false" final="false" visibility="public"
  63656. deprecated="not deprecated">
  63657. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63658. <doc>
  63659. <![CDATA[Read in the partition file and build indexing data structures.
  63660. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  63661. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  63662. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  63663. will be built. Otherwise, keys will be located using a binary search of
  63664. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  63665. defined for this job. The input file must be sorted with the same
  63666. comparator and contain {@link
  63667. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  63668. </doc>
  63669. </method>
  63670. <method name="getPartition" return="int"
  63671. abstract="false" native="false" synchronized="false"
  63672. static="false" final="false" visibility="public"
  63673. deprecated="not deprecated">
  63674. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  63675. <param name="value" type="java.lang.Object"/>
  63676. <param name="numPartitions" type="int"/>
  63677. </method>
  63678. <method name="setPartitionFile"
  63679. abstract="false" native="false" synchronized="false"
  63680. static="true" final="false" visibility="public"
  63681. deprecated="not deprecated">
  63682. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63683. <param name="p" type="org.apache.hadoop.fs.Path"/>
  63684. <doc>
  63685. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  63686. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  63687. keys in the SequenceFile.]]>
  63688. </doc>
  63689. </method>
  63690. <method name="getPartitionFile" return="java.lang.String"
  63691. abstract="false" native="false" synchronized="false"
  63692. static="true" final="false" visibility="public"
  63693. deprecated="not deprecated">
  63694. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63695. <doc>
  63696. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  63697. @see #setPartitionFile(JobConf,Path)]]>
  63698. </doc>
  63699. </method>
  63700. <field name="DEFAULT_PATH" type="java.lang.String"
  63701. transient="false" volatile="false"
  63702. static="true" final="true" visibility="public"
  63703. deprecated="not deprecated">
  63704. </field>
  63705. <doc>
  63706. <![CDATA[Partitioner effecting a total order by reading split points from
  63707. an externally generated source.]]>
  63708. </doc>
  63709. </class>
  63710. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  63711. </package>
  63712. <package name="org.apache.hadoop.mapred.lib.aggregate">
  63713. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  63714. <class name="DoubleValueSum" extends="java.lang.Object"
  63715. abstract="false"
  63716. static="false" final="false" visibility="public"
  63717. deprecated="not deprecated">
  63718. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63719. <constructor name="DoubleValueSum"
  63720. static="false" final="false" visibility="public"
  63721. deprecated="not deprecated">
  63722. <doc>
  63723. <![CDATA[The default constructor]]>
  63724. </doc>
  63725. </constructor>
  63726. <method name="addNextValue"
  63727. abstract="false" native="false" synchronized="false"
  63728. static="false" final="false" visibility="public"
  63729. deprecated="not deprecated">
  63730. <param name="val" type="java.lang.Object"/>
  63731. <doc>
  63732. <![CDATA[add a value to the aggregator
  63733. @param val
  63734. an object whose string representation represents a double value.]]>
  63735. </doc>
  63736. </method>
  63737. <method name="addNextValue"
  63738. abstract="false" native="false" synchronized="false"
  63739. static="false" final="false" visibility="public"
  63740. deprecated="not deprecated">
  63741. <param name="val" type="double"/>
  63742. <doc>
  63743. <![CDATA[add a value to the aggregator
  63744. @param val
  63745. a double value.]]>
  63746. </doc>
  63747. </method>
  63748. <method name="getReport" return="java.lang.String"
  63749. abstract="false" native="false" synchronized="false"
  63750. static="false" final="false" visibility="public"
  63751. deprecated="not deprecated">
  63752. <doc>
  63753. <![CDATA[@return the string representation of the aggregated value]]>
  63754. </doc>
  63755. </method>
  63756. <method name="getSum" return="double"
  63757. abstract="false" native="false" synchronized="false"
  63758. static="false" final="false" visibility="public"
  63759. deprecated="not deprecated">
  63760. <doc>
  63761. <![CDATA[@return the aggregated value]]>
  63762. </doc>
  63763. </method>
  63764. <method name="reset"
  63765. abstract="false" native="false" synchronized="false"
  63766. static="false" final="false" visibility="public"
  63767. deprecated="not deprecated">
  63768. <doc>
  63769. <![CDATA[reset the aggregator]]>
  63770. </doc>
  63771. </method>
  63772. <method name="getCombinerOutput" return="java.util.ArrayList"
  63773. abstract="false" native="false" synchronized="false"
  63774. static="false" final="false" visibility="public"
  63775. deprecated="not deprecated">
  63776. <doc>
  63777. <![CDATA[@return return an array of one element. The element is a string
  63778. representation of the aggregated value. The return value is
  63779. expected to be used by the a combiner.]]>
  63780. </doc>
  63781. </method>
  63782. <doc>
  63783. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  63784. values.]]>
  63785. </doc>
  63786. </class>
  63787. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  63788. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  63789. <class name="LongValueMax" extends="java.lang.Object"
  63790. abstract="false"
  63791. static="false" final="false" visibility="public"
  63792. deprecated="not deprecated">
  63793. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63794. <constructor name="LongValueMax"
  63795. static="false" final="false" visibility="public"
  63796. deprecated="not deprecated">
  63797. <doc>
  63798. <![CDATA[the default constructor]]>
  63799. </doc>
  63800. </constructor>
  63801. <method name="addNextValue"
  63802. abstract="false" native="false" synchronized="false"
  63803. static="false" final="false" visibility="public"
  63804. deprecated="not deprecated">
  63805. <param name="val" type="java.lang.Object"/>
  63806. <doc>
  63807. <![CDATA[add a value to the aggregator
  63808. @param val
  63809. an object whose string representation represents a long value.]]>
  63810. </doc>
  63811. </method>
  63812. <method name="addNextValue"
  63813. abstract="false" native="false" synchronized="false"
  63814. static="false" final="false" visibility="public"
  63815. deprecated="not deprecated">
  63816. <param name="newVal" type="long"/>
  63817. <doc>
  63818. <![CDATA[add a value to the aggregator
  63819. @param newVal
  63820. a long value.]]>
  63821. </doc>
  63822. </method>
  63823. <method name="getVal" return="long"
  63824. abstract="false" native="false" synchronized="false"
  63825. static="false" final="false" visibility="public"
  63826. deprecated="not deprecated">
  63827. <doc>
  63828. <![CDATA[@return the aggregated value]]>
  63829. </doc>
  63830. </method>
  63831. <method name="getReport" return="java.lang.String"
  63832. abstract="false" native="false" synchronized="false"
  63833. static="false" final="false" visibility="public"
  63834. deprecated="not deprecated">
  63835. <doc>
  63836. <![CDATA[@return the string representation of the aggregated value]]>
  63837. </doc>
  63838. </method>
  63839. <method name="reset"
  63840. abstract="false" native="false" synchronized="false"
  63841. static="false" final="false" visibility="public"
  63842. deprecated="not deprecated">
  63843. <doc>
  63844. <![CDATA[reset the aggregator]]>
  63845. </doc>
  63846. </method>
  63847. <method name="getCombinerOutput" return="java.util.ArrayList"
  63848. abstract="false" native="false" synchronized="false"
  63849. static="false" final="false" visibility="public"
  63850. deprecated="not deprecated">
  63851. <doc>
  63852. <![CDATA[@return return an array of one element. The element is a string
  63853. representation of the aggregated value. The return value is
  63854. expected to be used by the a combiner.]]>
  63855. </doc>
  63856. </method>
  63857. <doc>
  63858. <![CDATA[This class implements a value aggregator that maintain the maximum of
  63859. a sequence of long values.]]>
  63860. </doc>
  63861. </class>
  63862. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  63863. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  63864. <class name="LongValueMin" extends="java.lang.Object"
  63865. abstract="false"
  63866. static="false" final="false" visibility="public"
  63867. deprecated="not deprecated">
  63868. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63869. <constructor name="LongValueMin"
  63870. static="false" final="false" visibility="public"
  63871. deprecated="not deprecated">
  63872. <doc>
  63873. <![CDATA[the default constructor]]>
  63874. </doc>
  63875. </constructor>
  63876. <method name="addNextValue"
  63877. abstract="false" native="false" synchronized="false"
  63878. static="false" final="false" visibility="public"
  63879. deprecated="not deprecated">
  63880. <param name="val" type="java.lang.Object"/>
  63881. <doc>
  63882. <![CDATA[add a value to the aggregator
  63883. @param val
  63884. an object whose string representation represents a long value.]]>
  63885. </doc>
  63886. </method>
  63887. <method name="addNextValue"
  63888. abstract="false" native="false" synchronized="false"
  63889. static="false" final="false" visibility="public"
  63890. deprecated="not deprecated">
  63891. <param name="newVal" type="long"/>
  63892. <doc>
  63893. <![CDATA[add a value to the aggregator
  63894. @param newVal
  63895. a long value.]]>
  63896. </doc>
  63897. </method>
  63898. <method name="getVal" return="long"
  63899. abstract="false" native="false" synchronized="false"
  63900. static="false" final="false" visibility="public"
  63901. deprecated="not deprecated">
  63902. <doc>
  63903. <![CDATA[@return the aggregated value]]>
  63904. </doc>
  63905. </method>
  63906. <method name="getReport" return="java.lang.String"
  63907. abstract="false" native="false" synchronized="false"
  63908. static="false" final="false" visibility="public"
  63909. deprecated="not deprecated">
  63910. <doc>
  63911. <![CDATA[@return the string representation of the aggregated value]]>
  63912. </doc>
  63913. </method>
  63914. <method name="reset"
  63915. abstract="false" native="false" synchronized="false"
  63916. static="false" final="false" visibility="public"
  63917. deprecated="not deprecated">
  63918. <doc>
  63919. <![CDATA[reset the aggregator]]>
  63920. </doc>
  63921. </method>
  63922. <method name="getCombinerOutput" return="java.util.ArrayList"
  63923. abstract="false" native="false" synchronized="false"
  63924. static="false" final="false" visibility="public"
  63925. deprecated="not deprecated">
  63926. <doc>
  63927. <![CDATA[@return return an array of one element. The element is a string
  63928. representation of the aggregated value. The return value is
  63929. expected to be used by the a combiner.]]>
  63930. </doc>
  63931. </method>
  63932. <doc>
  63933. <![CDATA[This class implements a value aggregator that maintain the minimum of
  63934. a sequence of long values.]]>
  63935. </doc>
  63936. </class>
  63937. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  63938. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  63939. <class name="LongValueSum" extends="java.lang.Object"
  63940. abstract="false"
  63941. static="false" final="false" visibility="public"
  63942. deprecated="not deprecated">
  63943. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  63944. <constructor name="LongValueSum"
  63945. static="false" final="false" visibility="public"
  63946. deprecated="not deprecated">
  63947. <doc>
  63948. <![CDATA[the default constructor]]>
  63949. </doc>
  63950. </constructor>
  63951. <method name="addNextValue"
  63952. abstract="false" native="false" synchronized="false"
  63953. static="false" final="false" visibility="public"
  63954. deprecated="not deprecated">
  63955. <param name="val" type="java.lang.Object"/>
  63956. <doc>
  63957. <![CDATA[add a value to the aggregator
  63958. @param val
  63959. an object whose string representation represents a long value.]]>
  63960. </doc>
  63961. </method>
  63962. <method name="addNextValue"
  63963. abstract="false" native="false" synchronized="false"
  63964. static="false" final="false" visibility="public"
  63965. deprecated="not deprecated">
  63966. <param name="val" type="long"/>
  63967. <doc>
  63968. <![CDATA[add a value to the aggregator
  63969. @param val
  63970. a long value.]]>
  63971. </doc>
  63972. </method>
  63973. <method name="getSum" return="long"
  63974. abstract="false" native="false" synchronized="false"
  63975. static="false" final="false" visibility="public"
  63976. deprecated="not deprecated">
  63977. <doc>
  63978. <![CDATA[@return the aggregated value]]>
  63979. </doc>
  63980. </method>
  63981. <method name="getReport" return="java.lang.String"
  63982. abstract="false" native="false" synchronized="false"
  63983. static="false" final="false" visibility="public"
  63984. deprecated="not deprecated">
  63985. <doc>
  63986. <![CDATA[@return the string representation of the aggregated value]]>
  63987. </doc>
  63988. </method>
  63989. <method name="reset"
  63990. abstract="false" native="false" synchronized="false"
  63991. static="false" final="false" visibility="public"
  63992. deprecated="not deprecated">
  63993. <doc>
  63994. <![CDATA[reset the aggregator]]>
  63995. </doc>
  63996. </method>
  63997. <method name="getCombinerOutput" return="java.util.ArrayList"
  63998. abstract="false" native="false" synchronized="false"
  63999. static="false" final="false" visibility="public"
  64000. deprecated="not deprecated">
  64001. <doc>
  64002. <![CDATA[@return return an array of one element. The element is a string
  64003. representation of the aggregated value. The return value is
  64004. expected to be used by the a combiner.]]>
  64005. </doc>
  64006. </method>
  64007. <doc>
  64008. <![CDATA[This class implements a value aggregator that sums up
  64009. a sequence of long values.]]>
  64010. </doc>
  64011. </class>
  64012. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  64013. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  64014. <class name="StringValueMax" extends="java.lang.Object"
  64015. abstract="false"
  64016. static="false" final="false" visibility="public"
  64017. deprecated="not deprecated">
  64018. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64019. <constructor name="StringValueMax"
  64020. static="false" final="false" visibility="public"
  64021. deprecated="not deprecated">
  64022. <doc>
  64023. <![CDATA[the default constructor]]>
  64024. </doc>
  64025. </constructor>
  64026. <method name="addNextValue"
  64027. abstract="false" native="false" synchronized="false"
  64028. static="false" final="false" visibility="public"
  64029. deprecated="not deprecated">
  64030. <param name="val" type="java.lang.Object"/>
  64031. <doc>
  64032. <![CDATA[add a value to the aggregator
  64033. @param val
  64034. a string.]]>
  64035. </doc>
  64036. </method>
  64037. <method name="getVal" return="java.lang.String"
  64038. abstract="false" native="false" synchronized="false"
  64039. static="false" final="false" visibility="public"
  64040. deprecated="not deprecated">
  64041. <doc>
  64042. <![CDATA[@return the aggregated value]]>
  64043. </doc>
  64044. </method>
  64045. <method name="getReport" return="java.lang.String"
  64046. abstract="false" native="false" synchronized="false"
  64047. static="false" final="false" visibility="public"
  64048. deprecated="not deprecated">
  64049. <doc>
  64050. <![CDATA[@return the string representation of the aggregated value]]>
  64051. </doc>
  64052. </method>
  64053. <method name="reset"
  64054. abstract="false" native="false" synchronized="false"
  64055. static="false" final="false" visibility="public"
  64056. deprecated="not deprecated">
  64057. <doc>
  64058. <![CDATA[reset the aggregator]]>
  64059. </doc>
  64060. </method>
  64061. <method name="getCombinerOutput" return="java.util.ArrayList"
  64062. abstract="false" native="false" synchronized="false"
  64063. static="false" final="false" visibility="public"
  64064. deprecated="not deprecated">
  64065. <doc>
  64066. <![CDATA[@return return an array of one element. The element is a string
  64067. representation of the aggregated value. The return value is
  64068. expected to be used by the a combiner.]]>
  64069. </doc>
  64070. </method>
  64071. <doc>
  64072. <![CDATA[This class implements a value aggregator that maintain the biggest of
  64073. a sequence of strings.]]>
  64074. </doc>
  64075. </class>
  64076. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  64077. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  64078. <class name="StringValueMin" extends="java.lang.Object"
  64079. abstract="false"
  64080. static="false" final="false" visibility="public"
  64081. deprecated="not deprecated">
  64082. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64083. <constructor name="StringValueMin"
  64084. static="false" final="false" visibility="public"
  64085. deprecated="not deprecated">
  64086. <doc>
  64087. <![CDATA[the default constructor]]>
  64088. </doc>
  64089. </constructor>
  64090. <method name="addNextValue"
  64091. abstract="false" native="false" synchronized="false"
  64092. static="false" final="false" visibility="public"
  64093. deprecated="not deprecated">
  64094. <param name="val" type="java.lang.Object"/>
  64095. <doc>
  64096. <![CDATA[add a value to the aggregator
  64097. @param val
  64098. a string.]]>
  64099. </doc>
  64100. </method>
  64101. <method name="getVal" return="java.lang.String"
  64102. abstract="false" native="false" synchronized="false"
  64103. static="false" final="false" visibility="public"
  64104. deprecated="not deprecated">
  64105. <doc>
  64106. <![CDATA[@return the aggregated value]]>
  64107. </doc>
  64108. </method>
  64109. <method name="getReport" return="java.lang.String"
  64110. abstract="false" native="false" synchronized="false"
  64111. static="false" final="false" visibility="public"
  64112. deprecated="not deprecated">
  64113. <doc>
  64114. <![CDATA[@return the string representation of the aggregated value]]>
  64115. </doc>
  64116. </method>
  64117. <method name="reset"
  64118. abstract="false" native="false" synchronized="false"
  64119. static="false" final="false" visibility="public"
  64120. deprecated="not deprecated">
  64121. <doc>
  64122. <![CDATA[reset the aggregator]]>
  64123. </doc>
  64124. </method>
  64125. <method name="getCombinerOutput" return="java.util.ArrayList"
  64126. abstract="false" native="false" synchronized="false"
  64127. static="false" final="false" visibility="public"
  64128. deprecated="not deprecated">
  64129. <doc>
  64130. <![CDATA[@return return an array of one element. The element is a string
  64131. representation of the aggregated value. The return value is
  64132. expected to be used by the a combiner.]]>
  64133. </doc>
  64134. </method>
  64135. <doc>
  64136. <![CDATA[This class implements a value aggregator that maintain the smallest of
  64137. a sequence of strings.]]>
  64138. </doc>
  64139. </class>
  64140. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  64141. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  64142. <class name="UniqValueCount" extends="java.lang.Object"
  64143. abstract="false"
  64144. static="false" final="false" visibility="public"
  64145. deprecated="not deprecated">
  64146. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64147. <constructor name="UniqValueCount"
  64148. static="false" final="false" visibility="public"
  64149. deprecated="not deprecated">
  64150. <doc>
  64151. <![CDATA[the default constructor]]>
  64152. </doc>
  64153. </constructor>
  64154. <constructor name="UniqValueCount" type="long"
  64155. static="false" final="false" visibility="public"
  64156. deprecated="not deprecated">
  64157. <doc>
  64158. <![CDATA[constructor
  64159. @param maxNum the limit in the number of unique values to keep.]]>
  64160. </doc>
  64161. </constructor>
  64162. <method name="setMaxItems" return="long"
  64163. abstract="false" native="false" synchronized="false"
  64164. static="false" final="false" visibility="public"
  64165. deprecated="not deprecated">
  64166. <param name="n" type="long"/>
  64167. <doc>
  64168. <![CDATA[Set the limit on the number of unique values
  64169. @param n the desired limit on the number of unique values
  64170. @return the new limit on the number of unique values]]>
  64171. </doc>
  64172. </method>
  64173. <method name="addNextValue"
  64174. abstract="false" native="false" synchronized="false"
  64175. static="false" final="false" visibility="public"
  64176. deprecated="not deprecated">
  64177. <param name="val" type="java.lang.Object"/>
  64178. <doc>
  64179. <![CDATA[add a value to the aggregator
  64180. @param val
  64181. an object.]]>
  64182. </doc>
  64183. </method>
  64184. <method name="getReport" return="java.lang.String"
  64185. abstract="false" native="false" synchronized="false"
  64186. static="false" final="false" visibility="public"
  64187. deprecated="not deprecated">
  64188. <doc>
  64189. <![CDATA[@return return the number of unique objects aggregated]]>
  64190. </doc>
  64191. </method>
  64192. <method name="getUniqueItems" return="java.util.Set"
  64193. abstract="false" native="false" synchronized="false"
  64194. static="false" final="false" visibility="public"
  64195. deprecated="not deprecated">
  64196. <doc>
  64197. <![CDATA[@return the set of the unique objects]]>
  64198. </doc>
  64199. </method>
  64200. <method name="reset"
  64201. abstract="false" native="false" synchronized="false"
  64202. static="false" final="false" visibility="public"
  64203. deprecated="not deprecated">
  64204. <doc>
  64205. <![CDATA[reset the aggregator]]>
  64206. </doc>
  64207. </method>
  64208. <method name="getCombinerOutput" return="java.util.ArrayList"
  64209. abstract="false" native="false" synchronized="false"
  64210. static="false" final="false" visibility="public"
  64211. deprecated="not deprecated">
  64212. <doc>
  64213. <![CDATA[@return return an array of the unique objects. The return value is
  64214. expected to be used by the a combiner.]]>
  64215. </doc>
  64216. </method>
  64217. <doc>
  64218. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  64219. </doc>
  64220. </class>
  64221. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  64222. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  64223. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  64224. abstract="false"
  64225. static="false" final="false" visibility="public"
  64226. deprecated="not deprecated">
  64227. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  64228. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  64229. static="false" final="false" visibility="public"
  64230. deprecated="not deprecated">
  64231. <doc>
  64232. <![CDATA[@param className the class name of the user defined descriptor class
  64233. @param job a configure object used for decriptor configuration]]>
  64234. </doc>
  64235. </constructor>
  64236. <method name="createInstance" return="java.lang.Object"
  64237. abstract="false" native="false" synchronized="false"
  64238. static="true" final="false" visibility="public"
  64239. deprecated="not deprecated">
  64240. <param name="className" type="java.lang.String"/>
  64241. <doc>
  64242. <![CDATA[Create an instance of the given class
  64243. @param className the name of the class
  64244. @return a dynamically created instance of the given class]]>
  64245. </doc>
  64246. </method>
  64247. <method name="generateKeyValPairs" return="java.util.ArrayList"
  64248. abstract="false" native="false" synchronized="false"
  64249. static="false" final="false" visibility="public"
  64250. deprecated="not deprecated">
  64251. <param name="key" type="java.lang.Object"/>
  64252. <param name="val" type="java.lang.Object"/>
  64253. <doc>
  64254. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  64255. by delegating the invocation to the real object.
  64256. @param key
  64257. input key
  64258. @param val
  64259. input value
  64260. @return a list of aggregation id/value pairs. An aggregation id encodes an
  64261. aggregation type which is used to guide the way to aggregate the
  64262. value in the reduce/combiner phrase of an Aggregate based job.]]>
  64263. </doc>
  64264. </method>
  64265. <method name="toString" return="java.lang.String"
  64266. abstract="false" native="false" synchronized="false"
  64267. static="false" final="false" visibility="public"
  64268. deprecated="not deprecated">
  64269. <doc>
  64270. <![CDATA[@return the string representation of this object.]]>
  64271. </doc>
  64272. </method>
  64273. <method name="configure"
  64274. abstract="false" native="false" synchronized="false"
  64275. static="false" final="false" visibility="public"
  64276. deprecated="not deprecated">
  64277. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64278. <doc>
  64279. <![CDATA[Do nothing.]]>
  64280. </doc>
  64281. </method>
  64282. <doc>
  64283. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  64284. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  64285. name of a user defined class that may be dynamically loaded. The other is to
  64286. deligate inviokations of generateKeyValPairs function to the created object.]]>
  64287. </doc>
  64288. </class>
  64289. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  64290. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  64291. <interface name="ValueAggregator" abstract="true"
  64292. static="false" final="false" visibility="public"
  64293. deprecated="not deprecated">
  64294. <method name="addNextValue"
  64295. abstract="false" native="false" synchronized="false"
  64296. static="false" final="false" visibility="public"
  64297. deprecated="not deprecated">
  64298. <param name="val" type="java.lang.Object"/>
  64299. <doc>
  64300. <![CDATA[add a value to the aggregator
  64301. @param val the value to be added]]>
  64302. </doc>
  64303. </method>
  64304. <method name="reset"
  64305. abstract="false" native="false" synchronized="false"
  64306. static="false" final="false" visibility="public"
  64307. deprecated="not deprecated">
  64308. <doc>
  64309. <![CDATA[reset the aggregator]]>
  64310. </doc>
  64311. </method>
  64312. <method name="getReport" return="java.lang.String"
  64313. abstract="false" native="false" synchronized="false"
  64314. static="false" final="false" visibility="public"
  64315. deprecated="not deprecated">
  64316. <doc>
  64317. <![CDATA[@return the string representation of the agregator]]>
  64318. </doc>
  64319. </method>
  64320. <method name="getCombinerOutput" return="java.util.ArrayList"
  64321. abstract="false" native="false" synchronized="false"
  64322. static="false" final="false" visibility="public"
  64323. deprecated="not deprecated">
  64324. <doc>
  64325. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  64326. </doc>
  64327. </method>
  64328. <doc>
  64329. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  64330. </doc>
  64331. </interface>
  64332. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  64333. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  64334. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  64335. abstract="false"
  64336. static="false" final="false" visibility="public"
  64337. deprecated="not deprecated">
  64338. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  64339. <constructor name="ValueAggregatorBaseDescriptor"
  64340. static="false" final="false" visibility="public"
  64341. deprecated="not deprecated">
  64342. </constructor>
  64343. <method name="generateEntry" return="java.util.Map.Entry"
  64344. abstract="false" native="false" synchronized="false"
  64345. static="true" final="false" visibility="public"
  64346. deprecated="not deprecated">
  64347. <param name="type" type="java.lang.String"/>
  64348. <param name="id" type="java.lang.String"/>
  64349. <param name="val" type="org.apache.hadoop.io.Text"/>
  64350. <doc>
  64351. <![CDATA[@param type the aggregation type
  64352. @param id the aggregation id
  64353. @param val the val associated with the id to be aggregated
  64354. @return an Entry whose key is the aggregation id prefixed with
  64355. the aggregation type.]]>
  64356. </doc>
  64357. </method>
  64358. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  64359. abstract="false" native="false" synchronized="false"
  64360. static="true" final="false" visibility="public"
  64361. deprecated="not deprecated">
  64362. <param name="type" type="java.lang.String"/>
  64363. <doc>
  64364. <![CDATA[@param type the aggregation type
  64365. @return a value aggregator of the given type.]]>
  64366. </doc>
  64367. </method>
  64368. <method name="generateKeyValPairs" return="java.util.ArrayList"
  64369. abstract="false" native="false" synchronized="false"
  64370. static="false" final="false" visibility="public"
  64371. deprecated="not deprecated">
  64372. <param name="key" type="java.lang.Object"/>
  64373. <param name="val" type="java.lang.Object"/>
  64374. <doc>
  64375. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  64376. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  64377. its aggregation id. If the input is a file split,
  64378. the second id of the same type will be generated too, with the file name
  64379. as its aggregation id. This achieves the behavior of counting the total number
  64380. of records in the input data, and the number of records in each input file.
  64381. @param key
  64382. input key
  64383. @param val
  64384. input value
  64385. @return a list of aggregation id/value pairs. An aggregation id encodes an
  64386. aggregation type which is used to guide the way to aggregate the
  64387. value in the reduce/combiner phrase of an Aggregate based job.]]>
  64388. </doc>
  64389. </method>
  64390. <method name="configure"
  64391. abstract="false" native="false" synchronized="false"
  64392. static="false" final="false" visibility="public"
  64393. deprecated="not deprecated">
  64394. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64395. <doc>
  64396. <![CDATA[get the input file name.
  64397. @param job a job configuration object]]>
  64398. </doc>
  64399. </method>
  64400. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  64401. transient="false" volatile="false"
  64402. static="true" final="true" visibility="public"
  64403. deprecated="not deprecated">
  64404. </field>
  64405. <field name="LONG_VALUE_SUM" type="java.lang.String"
  64406. transient="false" volatile="false"
  64407. static="true" final="true" visibility="public"
  64408. deprecated="not deprecated">
  64409. </field>
  64410. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  64411. transient="false" volatile="false"
  64412. static="true" final="true" visibility="public"
  64413. deprecated="not deprecated">
  64414. </field>
  64415. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  64416. transient="false" volatile="false"
  64417. static="true" final="true" visibility="public"
  64418. deprecated="not deprecated">
  64419. </field>
  64420. <field name="LONG_VALUE_MAX" type="java.lang.String"
  64421. transient="false" volatile="false"
  64422. static="true" final="true" visibility="public"
  64423. deprecated="not deprecated">
  64424. </field>
  64425. <field name="LONG_VALUE_MIN" type="java.lang.String"
  64426. transient="false" volatile="false"
  64427. static="true" final="true" visibility="public"
  64428. deprecated="not deprecated">
  64429. </field>
  64430. <field name="STRING_VALUE_MAX" type="java.lang.String"
  64431. transient="false" volatile="false"
  64432. static="true" final="true" visibility="public"
  64433. deprecated="not deprecated">
  64434. </field>
  64435. <field name="STRING_VALUE_MIN" type="java.lang.String"
  64436. transient="false" volatile="false"
  64437. static="true" final="true" visibility="public"
  64438. deprecated="not deprecated">
  64439. </field>
  64440. <field name="inputFile" type="java.lang.String"
  64441. transient="false" volatile="false"
  64442. static="false" final="false" visibility="public"
  64443. deprecated="not deprecated">
  64444. </field>
  64445. <doc>
  64446. <![CDATA[This class implements the common functionalities of
  64447. the subclasses of ValueAggregatorDescriptor class.]]>
  64448. </doc>
  64449. </class>
  64450. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  64451. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  64452. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  64453. abstract="false"
  64454. static="false" final="false" visibility="public"
  64455. deprecated="not deprecated">
  64456. <constructor name="ValueAggregatorCombiner"
  64457. static="false" final="false" visibility="public"
  64458. deprecated="not deprecated">
  64459. </constructor>
  64460. <method name="configure"
  64461. abstract="false" native="false" synchronized="false"
  64462. static="false" final="false" visibility="public"
  64463. deprecated="not deprecated">
  64464. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64465. <doc>
  64466. <![CDATA[Combiner does not need to configure.]]>
  64467. </doc>
  64468. </method>
  64469. <method name="reduce"
  64470. abstract="false" native="false" synchronized="false"
  64471. static="false" final="false" visibility="public"
  64472. deprecated="not deprecated">
  64473. <param name="key" type="org.apache.hadoop.io.Text"/>
  64474. <param name="values" type="java.util.Iterator"/>
  64475. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64476. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64477. <exception name="IOException" type="java.io.IOException"/>
  64478. <doc>
  64479. <![CDATA[Combines values for a given key.
  64480. @param key the key is expected to be a Text object, whose prefix indicates
  64481. the type of aggregation to aggregate the values.
  64482. @param values the values to combine
  64483. @param output to collect combined values]]>
  64484. </doc>
  64485. </method>
  64486. <method name="close"
  64487. abstract="false" native="false" synchronized="false"
  64488. static="false" final="false" visibility="public"
  64489. deprecated="not deprecated">
  64490. <exception name="IOException" type="java.io.IOException"/>
  64491. <doc>
  64492. <![CDATA[Do nothing.]]>
  64493. </doc>
  64494. </method>
  64495. <method name="map"
  64496. abstract="false" native="false" synchronized="false"
  64497. static="false" final="false" visibility="public"
  64498. deprecated="not deprecated">
  64499. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  64500. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  64501. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  64502. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  64503. <exception name="IOException" type="java.io.IOException"/>
  64504. <doc>
  64505. <![CDATA[Do nothing. Should not be called.]]>
  64506. </doc>
  64507. </method>
  64508. <doc>
  64509. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  64510. </doc>
  64511. </class>
  64512. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  64513. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  64514. <interface name="ValueAggregatorDescriptor" abstract="true"
  64515. static="false" final="false" visibility="public"
  64516. deprecated="not deprecated">
  64517. <method name="generateKeyValPairs" return="java.util.ArrayList"
  64518. abstract="false" native="false" synchronized="false"
  64519. static="false" final="false" visibility="public"
  64520. deprecated="not deprecated">
  64521. <param name="key" type="java.lang.Object"/>
  64522. <param name="val" type="java.lang.Object"/>
  64523. <doc>
  64524. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  64525. This function is usually called by the mapper of an Aggregate based job.
  64526. @param key
  64527. input key
  64528. @param val
  64529. input value
  64530. @return a list of aggregation id/value pairs. An aggregation id encodes an
  64531. aggregation type which is used to guide the way to aggregate the
  64532. value in the reduce/combiner phrase of an Aggregate based job.]]>
  64533. </doc>
  64534. </method>
  64535. <method name="configure"
  64536. abstract="false" native="false" synchronized="false"
  64537. static="false" final="false" visibility="public"
  64538. deprecated="not deprecated">
  64539. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64540. <doc>
  64541. <![CDATA[Configure the object
  64542. @param job
  64543. a JobConf object that may contain the information that can be used
  64544. to configure the object.]]>
  64545. </doc>
  64546. </method>
  64547. <field name="TYPE_SEPARATOR" type="java.lang.String"
  64548. transient="false" volatile="false"
  64549. static="true" final="true" visibility="public"
  64550. deprecated="not deprecated">
  64551. </field>
  64552. <field name="ONE" type="org.apache.hadoop.io.Text"
  64553. transient="false" volatile="false"
  64554. static="true" final="true" visibility="public"
  64555. deprecated="not deprecated">
  64556. </field>
  64557. <doc>
  64558. <![CDATA[This interface defines the contract a value aggregator descriptor must
  64559. support. Such a descriptor can be configured with a JobConf object. Its main
  64560. function is to generate a list of aggregation-id/value pairs. An aggregation
  64561. id encodes an aggregation type which is used to guide the way to aggregate
  64562. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  64563. an Aggregate based map/reduce job may create one or more of
  64564. ValueAggregatorDescriptor objects at configuration time. For each input
  64565. key/value pair, the mapper will use those objects to create aggregation
  64566. id/value pairs.]]>
  64567. </doc>
  64568. </interface>
  64569. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  64570. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  64571. <class name="ValueAggregatorJob" extends="java.lang.Object"
  64572. abstract="false"
  64573. static="false" final="false" visibility="public"
  64574. deprecated="not deprecated">
  64575. <constructor name="ValueAggregatorJob"
  64576. static="false" final="false" visibility="public"
  64577. deprecated="not deprecated">
  64578. </constructor>
  64579. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  64580. abstract="false" native="false" synchronized="false"
  64581. static="true" final="false" visibility="public"
  64582. deprecated="not deprecated">
  64583. <param name="args" type="java.lang.String[]"/>
  64584. <param name="descriptors" type="java.lang.Class[]"/>
  64585. <exception name="IOException" type="java.io.IOException"/>
  64586. </method>
  64587. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  64588. abstract="false" native="false" synchronized="false"
  64589. static="true" final="false" visibility="public"
  64590. deprecated="not deprecated">
  64591. <param name="args" type="java.lang.String[]"/>
  64592. <exception name="IOException" type="java.io.IOException"/>
  64593. </method>
  64594. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  64595. abstract="false" native="false" synchronized="false"
  64596. static="true" final="false" visibility="public"
  64597. deprecated="not deprecated">
  64598. <param name="args" type="java.lang.String[]"/>
  64599. <exception name="IOException" type="java.io.IOException"/>
  64600. <doc>
  64601. <![CDATA[Create an Aggregate based map/reduce job.
  64602. @param args the arguments used for job creation. Generic hadoop
  64603. arguments are accepted.
  64604. @return a JobConf object ready for submission.
  64605. @throws IOException
  64606. @see GenericOptionsParser]]>
  64607. </doc>
  64608. </method>
  64609. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  64610. abstract="false" native="false" synchronized="false"
  64611. static="true" final="false" visibility="public"
  64612. deprecated="not deprecated">
  64613. <param name="args" type="java.lang.String[]"/>
  64614. <param name="descriptors" type="java.lang.Class[]"/>
  64615. <exception name="IOException" type="java.io.IOException"/>
  64616. </method>
  64617. <method name="setAggregatorDescriptors"
  64618. abstract="false" native="false" synchronized="false"
  64619. static="true" final="false" visibility="public"
  64620. deprecated="not deprecated">
  64621. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64622. <param name="descriptors" type="java.lang.Class[]"/>
  64623. </method>
  64624. <method name="main"
  64625. abstract="false" native="false" synchronized="false"
  64626. static="true" final="false" visibility="public"
  64627. deprecated="not deprecated">
  64628. <param name="args" type="java.lang.String[]"/>
  64629. <exception name="IOException" type="java.io.IOException"/>
  64630. <doc>
  64631. <![CDATA[create and run an Aggregate based map/reduce job.
  64632. @param args the arguments used for job creation
  64633. @throws IOException]]>
  64634. </doc>
  64635. </method>
  64636. <doc>
  64637. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  64638. framework. The Aggregate is a specialization of map/reduce framework,
  64639. specilizing for performing various simple aggregations.
  64640. Generally speaking, in order to implement an application using Map/Reduce
  64641. model, the developer is to implement Map and Reduce functions (and possibly
  64642. combine function). However, a lot of applications related to counting and
  64643. statistics computing have very similar characteristics. Aggregate abstracts
  64644. out the general patterns of these functions and implementing those patterns.
  64645. In particular, the package provides generic mapper/redducer/combiner classes,
  64646. and a set of built-in value aggregators, and a generic utility class that
  64647. helps user create map/reduce jobs using the generic class. The built-in
  64648. aggregators include:
  64649. sum over numeric values count the number of distinct values compute the
  64650. histogram of values compute the minimum, maximum, media,average, standard
  64651. deviation of numeric values
  64652. The developer using Aggregate will need only to provide a plugin class
  64653. conforming to the following interface:
  64654. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  64655. generateKeyValPairs(Object key, Object value); public void
  64656. configure(JobConfjob); }
  64657. The package also provides a base class, ValueAggregatorBaseDescriptor,
  64658. implementing the above interface. The user can extend the base class and
  64659. implement generateKeyValPairs accordingly.
  64660. The primary work of generateKeyValPairs is to emit one or more key/value
  64661. pairs based on the input key/value pair. The key in an output key/value pair
  64662. encode two pieces of information: aggregation type and aggregation id. The
  64663. value will be aggregated onto the aggregation id according the aggregation
  64664. type.
  64665. This class offers a function to generate a map/reduce job using Aggregate
  64666. framework. The function takes the following parameters: input directory spec
  64667. input format (text or sequence file) output directory a file specifying the
  64668. user plugin class]]>
  64669. </doc>
  64670. </class>
  64671. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  64672. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  64673. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  64674. abstract="true"
  64675. static="false" final="false" visibility="public"
  64676. deprecated="not deprecated">
  64677. <implements name="org.apache.hadoop.mapred.Mapper"/>
  64678. <implements name="org.apache.hadoop.mapred.Reducer"/>
  64679. <constructor name="ValueAggregatorJobBase"
  64680. static="false" final="false" visibility="public"
  64681. deprecated="not deprecated">
  64682. </constructor>
  64683. <method name="configure"
  64684. abstract="false" native="false" synchronized="false"
  64685. static="false" final="false" visibility="public"
  64686. deprecated="not deprecated">
  64687. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64688. </method>
  64689. <method name="logSpec"
  64690. abstract="false" native="false" synchronized="false"
  64691. static="false" final="false" visibility="protected"
  64692. deprecated="not deprecated">
  64693. </method>
  64694. <method name="close"
  64695. abstract="false" native="false" synchronized="false"
  64696. static="false" final="false" visibility="public"
  64697. deprecated="not deprecated">
  64698. <exception name="IOException" type="java.io.IOException"/>
  64699. </method>
  64700. <field name="aggregatorDescriptorList" type="java.util.ArrayList"
  64701. transient="false" volatile="false"
  64702. static="false" final="false" visibility="protected"
  64703. deprecated="not deprecated">
  64704. </field>
  64705. <doc>
  64706. <![CDATA[This abstract class implements some common functionalities of the
  64707. the generic mapper, reducer and combiner classes of Aggregate.]]>
  64708. </doc>
  64709. </class>
  64710. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  64711. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  64712. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  64713. abstract="false"
  64714. static="false" final="false" visibility="public"
  64715. deprecated="not deprecated">
  64716. <constructor name="ValueAggregatorMapper"
  64717. static="false" final="false" visibility="public"
  64718. deprecated="not deprecated">
  64719. </constructor>
  64720. <method name="map"
  64721. abstract="false" native="false" synchronized="false"
  64722. static="false" final="false" visibility="public"
  64723. deprecated="not deprecated">
  64724. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  64725. <param name="value" type="org.apache.hadoop.io.Writable"/>
  64726. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64727. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64728. <exception name="IOException" type="java.io.IOException"/>
  64729. <doc>
  64730. <![CDATA[the map function. It iterates through the value aggregator descriptor
  64731. list to generate aggregation id/value pairs and emit them.]]>
  64732. </doc>
  64733. </method>
  64734. <method name="reduce"
  64735. abstract="false" native="false" synchronized="false"
  64736. static="false" final="false" visibility="public"
  64737. deprecated="not deprecated">
  64738. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  64739. <param name="arg1" type="java.util.Iterator"/>
  64740. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  64741. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  64742. <exception name="IOException" type="java.io.IOException"/>
  64743. <doc>
  64744. <![CDATA[Do nothing. Should not be called.]]>
  64745. </doc>
  64746. </method>
  64747. <doc>
  64748. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  64749. </doc>
  64750. </class>
  64751. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  64752. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  64753. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  64754. abstract="false"
  64755. static="false" final="false" visibility="public"
  64756. deprecated="not deprecated">
  64757. <constructor name="ValueAggregatorReducer"
  64758. static="false" final="false" visibility="public"
  64759. deprecated="not deprecated">
  64760. </constructor>
  64761. <method name="reduce"
  64762. abstract="false" native="false" synchronized="false"
  64763. static="false" final="false" visibility="public"
  64764. deprecated="not deprecated">
  64765. <param name="key" type="org.apache.hadoop.io.Text"/>
  64766. <param name="values" type="java.util.Iterator"/>
  64767. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64768. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64769. <exception name="IOException" type="java.io.IOException"/>
  64770. <doc>
  64771. <![CDATA[@param key
  64772. the key is expected to be a Text object, whose prefix indicates
  64773. the type of aggregation to aggregate the values. In effect, data
  64774. driven computing is achieved. It is assumed that each aggregator's
  64775. getReport method emits appropriate output for the aggregator. This
  64776. may be further customiized.
  64777. @value the values to be aggregated]]>
  64778. </doc>
  64779. </method>
  64780. <method name="map"
  64781. abstract="false" native="false" synchronized="false"
  64782. static="false" final="false" visibility="public"
  64783. deprecated="not deprecated">
  64784. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  64785. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  64786. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  64787. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  64788. <exception name="IOException" type="java.io.IOException"/>
  64789. <doc>
  64790. <![CDATA[Do nothing. Should not be called]]>
  64791. </doc>
  64792. </method>
  64793. <doc>
  64794. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  64795. </doc>
  64796. </class>
  64797. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  64798. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  64799. <class name="ValueHistogram" extends="java.lang.Object"
  64800. abstract="false"
  64801. static="false" final="false" visibility="public"
  64802. deprecated="not deprecated">
  64803. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  64804. <constructor name="ValueHistogram"
  64805. static="false" final="false" visibility="public"
  64806. deprecated="not deprecated">
  64807. </constructor>
  64808. <method name="addNextValue"
  64809. abstract="false" native="false" synchronized="false"
  64810. static="false" final="false" visibility="public"
  64811. deprecated="not deprecated">
  64812. <param name="val" type="java.lang.Object"/>
  64813. <doc>
  64814. <![CDATA[add the given val to the aggregator.
  64815. @param val the value to be added. It is expected to be a string
  64816. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  64817. </doc>
  64818. </method>
  64819. <method name="getReport" return="java.lang.String"
  64820. abstract="false" native="false" synchronized="false"
  64821. static="false" final="false" visibility="public"
  64822. deprecated="not deprecated">
  64823. <doc>
  64824. <![CDATA[@return the string representation of this aggregator.
  64825. It includes the following basic statistics of the histogram:
  64826. the number of unique values
  64827. the minimum value
  64828. the media value
  64829. the maximum value
  64830. the average value
  64831. the standard deviation]]>
  64832. </doc>
  64833. </method>
  64834. <method name="getReportDetails" return="java.lang.String"
  64835. abstract="false" native="false" synchronized="false"
  64836. static="false" final="false" visibility="public"
  64837. deprecated="not deprecated">
  64838. <doc>
  64839. <![CDATA[@return a string representation of the list of value/frequence pairs of
  64840. the histogram]]>
  64841. </doc>
  64842. </method>
  64843. <method name="getCombinerOutput" return="java.util.ArrayList"
  64844. abstract="false" native="false" synchronized="false"
  64845. static="false" final="false" visibility="public"
  64846. deprecated="not deprecated">
  64847. <doc>
  64848. <![CDATA[@return a list value/frequence pairs.
  64849. The return value is expected to be used by the reducer.]]>
  64850. </doc>
  64851. </method>
  64852. <method name="getReportItems" return="java.util.TreeMap"
  64853. abstract="false" native="false" synchronized="false"
  64854. static="false" final="false" visibility="public"
  64855. deprecated="not deprecated">
  64856. <doc>
  64857. <![CDATA[@return a TreeMap representation of the histogram]]>
  64858. </doc>
  64859. </method>
  64860. <method name="reset"
  64861. abstract="false" native="false" synchronized="false"
  64862. static="false" final="false" visibility="public"
  64863. deprecated="not deprecated">
  64864. <doc>
  64865. <![CDATA[reset the aggregator]]>
  64866. </doc>
  64867. </method>
  64868. <doc>
  64869. <![CDATA[This class implements a value aggregator that computes the
  64870. histogram of a sequence of strings.]]>
  64871. </doc>
  64872. </class>
  64873. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  64874. </package>
  64875. <package name="org.apache.hadoop.mapred.lib.db">
  64876. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  64877. <class name="DBConfiguration" extends="java.lang.Object"
  64878. abstract="false"
  64879. static="false" final="false" visibility="public"
  64880. deprecated="not deprecated">
  64881. <method name="configureDB"
  64882. abstract="false" native="false" synchronized="false"
  64883. static="true" final="false" visibility="public"
  64884. deprecated="not deprecated">
  64885. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64886. <param name="driverClass" type="java.lang.String"/>
  64887. <param name="dbUrl" type="java.lang.String"/>
  64888. <param name="userName" type="java.lang.String"/>
  64889. <param name="passwd" type="java.lang.String"/>
  64890. <doc>
  64891. <![CDATA[Sets the DB access related fields in the JobConf.
  64892. @param job the job
  64893. @param driverClass JDBC Driver class name
  64894. @param dbUrl JDBC DB access URL.
  64895. @param userName DB access username
  64896. @param passwd DB access passwd]]>
  64897. </doc>
  64898. </method>
  64899. <method name="configureDB"
  64900. abstract="false" native="false" synchronized="false"
  64901. static="true" final="false" visibility="public"
  64902. deprecated="not deprecated">
  64903. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64904. <param name="driverClass" type="java.lang.String"/>
  64905. <param name="dbUrl" type="java.lang.String"/>
  64906. <doc>
  64907. <![CDATA[Sets the DB access related fields in the JobConf.
  64908. @param job the job
  64909. @param driverClass JDBC Driver class name
  64910. @param dbUrl JDBC DB access URL.]]>
  64911. </doc>
  64912. </method>
  64913. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  64914. transient="false" volatile="false"
  64915. static="true" final="true" visibility="public"
  64916. deprecated="not deprecated">
  64917. <doc>
  64918. <![CDATA[The JDBC Driver class name]]>
  64919. </doc>
  64920. </field>
  64921. <field name="URL_PROPERTY" type="java.lang.String"
  64922. transient="false" volatile="false"
  64923. static="true" final="true" visibility="public"
  64924. deprecated="not deprecated">
  64925. <doc>
  64926. <![CDATA[JDBC Database access URL]]>
  64927. </doc>
  64928. </field>
  64929. <field name="USERNAME_PROPERTY" type="java.lang.String"
  64930. transient="false" volatile="false"
  64931. static="true" final="true" visibility="public"
  64932. deprecated="not deprecated">
  64933. <doc>
  64934. <![CDATA[User name to access the database]]>
  64935. </doc>
  64936. </field>
  64937. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  64938. transient="false" volatile="false"
  64939. static="true" final="true" visibility="public"
  64940. deprecated="not deprecated">
  64941. <doc>
  64942. <![CDATA[Password to access the database]]>
  64943. </doc>
  64944. </field>
  64945. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  64946. transient="false" volatile="false"
  64947. static="true" final="true" visibility="public"
  64948. deprecated="not deprecated">
  64949. <doc>
  64950. <![CDATA[Input table name]]>
  64951. </doc>
  64952. </field>
  64953. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  64954. transient="false" volatile="false"
  64955. static="true" final="true" visibility="public"
  64956. deprecated="not deprecated">
  64957. <doc>
  64958. <![CDATA[Field names in the Input table]]>
  64959. </doc>
  64960. </field>
  64961. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  64962. transient="false" volatile="false"
  64963. static="true" final="true" visibility="public"
  64964. deprecated="not deprecated">
  64965. <doc>
  64966. <![CDATA[WHERE clause in the input SELECT statement]]>
  64967. </doc>
  64968. </field>
  64969. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  64970. transient="false" volatile="false"
  64971. static="true" final="true" visibility="public"
  64972. deprecated="not deprecated">
  64973. <doc>
  64974. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  64975. </doc>
  64976. </field>
  64977. <field name="INPUT_QUERY" type="java.lang.String"
  64978. transient="false" volatile="false"
  64979. static="true" final="true" visibility="public"
  64980. deprecated="not deprecated">
  64981. <doc>
  64982. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  64983. </doc>
  64984. </field>
  64985. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  64986. transient="false" volatile="false"
  64987. static="true" final="true" visibility="public"
  64988. deprecated="not deprecated">
  64989. <doc>
  64990. <![CDATA[Input query to get the count of records]]>
  64991. </doc>
  64992. </field>
  64993. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  64994. transient="false" volatile="false"
  64995. static="true" final="true" visibility="public"
  64996. deprecated="not deprecated">
  64997. <doc>
  64998. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  64999. </doc>
  65000. </field>
  65001. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  65002. transient="false" volatile="false"
  65003. static="true" final="true" visibility="public"
  65004. deprecated="not deprecated">
  65005. <doc>
  65006. <![CDATA[Output table name]]>
  65007. </doc>
  65008. </field>
  65009. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  65010. transient="false" volatile="false"
  65011. static="true" final="true" visibility="public"
  65012. deprecated="not deprecated">
  65013. <doc>
  65014. <![CDATA[Field names in the Output table]]>
  65015. </doc>
  65016. </field>
  65017. <doc>
  65018. <![CDATA[A container for configuration property names for jobs with DB input/output.
  65019. <br>
  65020. The job can be configured using the static methods in this class,
  65021. {@link DBInputFormat}, and {@link DBOutputFormat}.
  65022. <p>
  65023. Alternatively, the properties can be set in the configuration with proper
  65024. values.
  65025. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  65026. @see DBInputFormat#setInput(JobConf, Class, String, String)
  65027. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  65028. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  65029. </doc>
  65030. </class>
  65031. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  65032. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  65033. <class name="DBInputFormat" extends="java.lang.Object"
  65034. abstract="false"
  65035. static="false" final="false" visibility="public"
  65036. deprecated="not deprecated">
  65037. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  65038. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  65039. <constructor name="DBInputFormat"
  65040. static="false" final="false" visibility="public"
  65041. deprecated="not deprecated">
  65042. </constructor>
  65043. <method name="configure"
  65044. abstract="false" native="false" synchronized="false"
  65045. static="false" final="false" visibility="public"
  65046. deprecated="not deprecated">
  65047. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65048. <doc>
  65049. <![CDATA[{@inheritDoc}]]>
  65050. </doc>
  65051. </method>
  65052. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  65053. abstract="false" native="false" synchronized="false"
  65054. static="false" final="false" visibility="public"
  65055. deprecated="not deprecated">
  65056. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  65057. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65058. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  65059. <exception name="IOException" type="java.io.IOException"/>
  65060. <doc>
  65061. <![CDATA[{@inheritDoc}]]>
  65062. </doc>
  65063. </method>
  65064. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  65065. abstract="false" native="false" synchronized="false"
  65066. static="false" final="false" visibility="public"
  65067. deprecated="not deprecated">
  65068. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65069. <param name="chunks" type="int"/>
  65070. <exception name="IOException" type="java.io.IOException"/>
  65071. <doc>
  65072. <![CDATA[{@inheritDoc}]]>
  65073. </doc>
  65074. </method>
  65075. <method name="getCountQuery" return="java.lang.String"
  65076. abstract="false" native="false" synchronized="false"
  65077. static="false" final="false" visibility="protected"
  65078. deprecated="not deprecated">
  65079. <doc>
  65080. <![CDATA[Returns the query for getting the total number of rows,
  65081. subclasses can override this for custom behaviour.]]>
  65082. </doc>
  65083. </method>
  65084. <method name="setInput"
  65085. abstract="false" native="false" synchronized="false"
  65086. static="true" final="false" visibility="public"
  65087. deprecated="not deprecated">
  65088. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65089. <param name="inputClass" type="java.lang.Class"/>
  65090. <param name="tableName" type="java.lang.String"/>
  65091. <param name="conditions" type="java.lang.String"/>
  65092. <param name="orderBy" type="java.lang.String"/>
  65093. <param name="fieldNames" type="java.lang.String[]"/>
  65094. <doc>
  65095. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  65096. @param job The job
  65097. @param inputClass the class object implementing DBWritable, which is the
  65098. Java object holding tuple fields.
  65099. @param tableName The table to read data from
  65100. @param conditions The condition which to select data with, eg. '(updated >
  65101. 20070101 AND length > 0)'
  65102. @param orderBy the fieldNames in the orderBy clause.
  65103. @param fieldNames The field names in the table
  65104. @see #setInput(JobConf, Class, String, String)]]>
  65105. </doc>
  65106. </method>
  65107. <method name="setInput"
  65108. abstract="false" native="false" synchronized="false"
  65109. static="true" final="false" visibility="public"
  65110. deprecated="not deprecated">
  65111. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65112. <param name="inputClass" type="java.lang.Class"/>
  65113. <param name="inputQuery" type="java.lang.String"/>
  65114. <param name="inputCountQuery" type="java.lang.String"/>
  65115. <doc>
  65116. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  65117. @param job The job
  65118. @param inputClass the class object implementing DBWritable, which is the
  65119. Java object holding tuple fields.
  65120. @param inputQuery the input query to select fields. Example :
  65121. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  65122. @param inputCountQuery the input query that returns the number of records in
  65123. the table.
  65124. Example : "SELECT COUNT(f1) FROM Mytable"
  65125. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  65126. </doc>
  65127. </method>
  65128. <doc>
  65129. <![CDATA[A InputFormat that reads input data from an SQL table.
  65130. <p>
  65131. DBInputFormat emits LongWritables containing the record number as
  65132. key and DBWritables as value.
  65133. The SQL query, and input class can be using one of the two
  65134. setInput methods.]]>
  65135. </doc>
  65136. </class>
  65137. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  65138. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  65139. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  65140. abstract="false"
  65141. static="true" final="false" visibility="protected"
  65142. deprecated="not deprecated">
  65143. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  65144. <constructor name="DBInputFormat.DBInputSplit"
  65145. static="false" final="false" visibility="public"
  65146. deprecated="not deprecated">
  65147. <doc>
  65148. <![CDATA[Default Constructor]]>
  65149. </doc>
  65150. </constructor>
  65151. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  65152. static="false" final="false" visibility="public"
  65153. deprecated="not deprecated">
  65154. <doc>
  65155. <![CDATA[Convenience Constructor
  65156. @param start the index of the first row to select
  65157. @param end the index of the last row to select]]>
  65158. </doc>
  65159. </constructor>
  65160. <method name="getLocations" return="java.lang.String[]"
  65161. abstract="false" native="false" synchronized="false"
  65162. static="false" final="false" visibility="public"
  65163. deprecated="not deprecated">
  65164. <exception name="IOException" type="java.io.IOException"/>
  65165. <doc>
  65166. <![CDATA[{@inheritDoc}]]>
  65167. </doc>
  65168. </method>
  65169. <method name="getStart" return="long"
  65170. abstract="false" native="false" synchronized="false"
  65171. static="false" final="false" visibility="public"
  65172. deprecated="not deprecated">
  65173. <doc>
  65174. <![CDATA[@return The index of the first row to select]]>
  65175. </doc>
  65176. </method>
  65177. <method name="getEnd" return="long"
  65178. abstract="false" native="false" synchronized="false"
  65179. static="false" final="false" visibility="public"
  65180. deprecated="not deprecated">
  65181. <doc>
  65182. <![CDATA[@return The index of the last row to select]]>
  65183. </doc>
  65184. </method>
  65185. <method name="getLength" return="long"
  65186. abstract="false" native="false" synchronized="false"
  65187. static="false" final="false" visibility="public"
  65188. deprecated="not deprecated">
  65189. <exception name="IOException" type="java.io.IOException"/>
  65190. <doc>
  65191. <![CDATA[@return The total row count in this split]]>
  65192. </doc>
  65193. </method>
  65194. <method name="readFields"
  65195. abstract="false" native="false" synchronized="false"
  65196. static="false" final="false" visibility="public"
  65197. deprecated="not deprecated">
  65198. <param name="input" type="java.io.DataInput"/>
  65199. <exception name="IOException" type="java.io.IOException"/>
  65200. <doc>
  65201. <![CDATA[{@inheritDoc}]]>
  65202. </doc>
  65203. </method>
  65204. <method name="write"
  65205. abstract="false" native="false" synchronized="false"
  65206. static="false" final="false" visibility="public"
  65207. deprecated="not deprecated">
  65208. <param name="output" type="java.io.DataOutput"/>
  65209. <exception name="IOException" type="java.io.IOException"/>
  65210. <doc>
  65211. <![CDATA[{@inheritDoc}]]>
  65212. </doc>
  65213. </method>
  65214. <doc>
  65215. <![CDATA[A InputSplit that spans a set of rows]]>
  65216. </doc>
  65217. </class>
  65218. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  65219. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  65220. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  65221. abstract="false"
  65222. static="false" final="false" visibility="protected"
  65223. deprecated="not deprecated">
  65224. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  65225. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.mapred.JobConf"
  65226. static="false" final="false" visibility="protected"
  65227. deprecated="not deprecated">
  65228. <exception name="SQLException" type="java.sql.SQLException"/>
  65229. <doc>
  65230. <![CDATA[@param split The InputSplit to read data for
  65231. @throws SQLException]]>
  65232. </doc>
  65233. </constructor>
  65234. <method name="getSelectQuery" return="java.lang.String"
  65235. abstract="false" native="false" synchronized="false"
  65236. static="false" final="false" visibility="protected"
  65237. deprecated="not deprecated">
  65238. <doc>
  65239. <![CDATA[Returns the query for selecting the records,
  65240. subclasses can override this for custom behaviour.]]>
  65241. </doc>
  65242. </method>
  65243. <method name="close"
  65244. abstract="false" native="false" synchronized="false"
  65245. static="false" final="false" visibility="public"
  65246. deprecated="not deprecated">
  65247. <exception name="IOException" type="java.io.IOException"/>
  65248. <doc>
  65249. <![CDATA[{@inheritDoc}]]>
  65250. </doc>
  65251. </method>
  65252. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  65253. abstract="false" native="false" synchronized="false"
  65254. static="false" final="false" visibility="public"
  65255. deprecated="not deprecated">
  65256. <doc>
  65257. <![CDATA[{@inheritDoc}]]>
  65258. </doc>
  65259. </method>
  65260. <method name="createValue" return="org.apache.hadoop.mapred.lib.db.DBWritable"
  65261. abstract="false" native="false" synchronized="false"
  65262. static="false" final="false" visibility="public"
  65263. deprecated="not deprecated">
  65264. <doc>
  65265. <![CDATA[{@inheritDoc}]]>
  65266. </doc>
  65267. </method>
  65268. <method name="getPos" return="long"
  65269. abstract="false" native="false" synchronized="false"
  65270. static="false" final="false" visibility="public"
  65271. deprecated="not deprecated">
  65272. <exception name="IOException" type="java.io.IOException"/>
  65273. <doc>
  65274. <![CDATA[{@inheritDoc}]]>
  65275. </doc>
  65276. </method>
  65277. <method name="getProgress" return="float"
  65278. abstract="false" native="false" synchronized="false"
  65279. static="false" final="false" visibility="public"
  65280. deprecated="not deprecated">
  65281. <exception name="IOException" type="java.io.IOException"/>
  65282. <doc>
  65283. <![CDATA[{@inheritDoc}]]>
  65284. </doc>
  65285. </method>
  65286. <method name="next" return="boolean"
  65287. abstract="false" native="false" synchronized="false"
  65288. static="false" final="false" visibility="public"
  65289. deprecated="not deprecated">
  65290. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  65291. <param name="value" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  65292. <exception name="IOException" type="java.io.IOException"/>
  65293. <doc>
  65294. <![CDATA[{@inheritDoc}]]>
  65295. </doc>
  65296. </method>
  65297. <doc>
  65298. <![CDATA[A RecordReader that reads records from a SQL table.
  65299. Emits LongWritables containing the record number as
  65300. key and DBWritables as value.]]>
  65301. </doc>
  65302. </class>
  65303. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  65304. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  65305. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  65306. abstract="false"
  65307. static="true" final="false" visibility="public"
  65308. deprecated="not deprecated">
  65309. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  65310. <implements name="org.apache.hadoop.io.Writable"/>
  65311. <constructor name="DBInputFormat.NullDBWritable"
  65312. static="false" final="false" visibility="public"
  65313. deprecated="not deprecated">
  65314. </constructor>
  65315. <method name="readFields"
  65316. abstract="false" native="false" synchronized="false"
  65317. static="false" final="false" visibility="public"
  65318. deprecated="not deprecated">
  65319. <param name="in" type="java.io.DataInput"/>
  65320. <exception name="IOException" type="java.io.IOException"/>
  65321. </method>
  65322. <method name="readFields"
  65323. abstract="false" native="false" synchronized="false"
  65324. static="false" final="false" visibility="public"
  65325. deprecated="not deprecated">
  65326. <param name="arg0" type="java.sql.ResultSet"/>
  65327. <exception name="SQLException" type="java.sql.SQLException"/>
  65328. </method>
  65329. <method name="write"
  65330. abstract="false" native="false" synchronized="false"
  65331. static="false" final="false" visibility="public"
  65332. deprecated="not deprecated">
  65333. <param name="out" type="java.io.DataOutput"/>
  65334. <exception name="IOException" type="java.io.IOException"/>
  65335. </method>
  65336. <method name="write"
  65337. abstract="false" native="false" synchronized="false"
  65338. static="false" final="false" visibility="public"
  65339. deprecated="not deprecated">
  65340. <param name="arg0" type="java.sql.PreparedStatement"/>
  65341. <exception name="SQLException" type="java.sql.SQLException"/>
  65342. </method>
  65343. <doc>
  65344. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  65345. </doc>
  65346. </class>
  65347. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  65348. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  65349. <class name="DBOutputFormat" extends="java.lang.Object"
  65350. abstract="false"
  65351. static="false" final="false" visibility="public"
  65352. deprecated="not deprecated">
  65353. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  65354. <constructor name="DBOutputFormat"
  65355. static="false" final="false" visibility="public"
  65356. deprecated="not deprecated">
  65357. </constructor>
  65358. <method name="constructQuery" return="java.lang.String"
  65359. abstract="false" native="false" synchronized="false"
  65360. static="false" final="false" visibility="protected"
  65361. deprecated="not deprecated">
  65362. <param name="table" type="java.lang.String"/>
  65363. <param name="fieldNames" type="java.lang.String[]"/>
  65364. <doc>
  65365. <![CDATA[Constructs the query used as the prepared statement to insert data.
  65366. @param table
  65367. the table to insert into
  65368. @param fieldNames
  65369. the fields to insert into. If field names are unknown, supply an
  65370. array of nulls.]]>
  65371. </doc>
  65372. </method>
  65373. <method name="checkOutputSpecs"
  65374. abstract="false" native="false" synchronized="false"
  65375. static="false" final="false" visibility="public"
  65376. deprecated="not deprecated">
  65377. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  65378. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65379. <exception name="IOException" type="java.io.IOException"/>
  65380. <doc>
  65381. <![CDATA[{@inheritDoc}]]>
  65382. </doc>
  65383. </method>
  65384. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  65385. abstract="false" native="false" synchronized="false"
  65386. static="false" final="false" visibility="public"
  65387. deprecated="not deprecated">
  65388. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  65389. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65390. <param name="name" type="java.lang.String"/>
  65391. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  65392. <exception name="IOException" type="java.io.IOException"/>
  65393. <doc>
  65394. <![CDATA[{@inheritDoc}]]>
  65395. </doc>
  65396. </method>
  65397. <method name="setOutput"
  65398. abstract="false" native="false" synchronized="false"
  65399. static="true" final="false" visibility="public"
  65400. deprecated="not deprecated">
  65401. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65402. <param name="tableName" type="java.lang.String"/>
  65403. <param name="fieldNames" type="java.lang.String[]"/>
  65404. <doc>
  65405. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  65406. @param job
  65407. The job
  65408. @param tableName
  65409. The table to insert data into
  65410. @param fieldNames
  65411. The field names in the table. If unknown, supply the appropriate
  65412. number of nulls.]]>
  65413. </doc>
  65414. </method>
  65415. <doc>
  65416. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  65417. <p>
  65418. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  65419. key has a type extending DBWritable. Returned {@link RecordWriter}
  65420. writes <b>only the key</b> to the database with a batch SQL query.]]>
  65421. </doc>
  65422. </class>
  65423. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  65424. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  65425. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  65426. abstract="false"
  65427. static="false" final="false" visibility="protected"
  65428. deprecated="not deprecated">
  65429. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  65430. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  65431. static="false" final="false" visibility="protected"
  65432. deprecated="not deprecated">
  65433. <exception name="SQLException" type="java.sql.SQLException"/>
  65434. </constructor>
  65435. <method name="close"
  65436. abstract="false" native="false" synchronized="false"
  65437. static="false" final="false" visibility="public"
  65438. deprecated="not deprecated">
  65439. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  65440. <exception name="IOException" type="java.io.IOException"/>
  65441. <doc>
  65442. <![CDATA[{@inheritDoc}]]>
  65443. </doc>
  65444. </method>
  65445. <method name="write"
  65446. abstract="false" native="false" synchronized="false"
  65447. static="false" final="false" visibility="public"
  65448. deprecated="not deprecated">
  65449. <param name="key" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  65450. <param name="value" type="java.lang.Object"/>
  65451. <exception name="IOException" type="java.io.IOException"/>
  65452. <doc>
  65453. <![CDATA[{@inheritDoc}]]>
  65454. </doc>
  65455. </method>
  65456. <doc>
  65457. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  65458. </doc>
  65459. </class>
  65460. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  65461. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  65462. <interface name="DBWritable" abstract="true"
  65463. static="false" final="false" visibility="public"
  65464. deprecated="not deprecated">
  65465. <method name="write"
  65466. abstract="false" native="false" synchronized="false"
  65467. static="false" final="false" visibility="public"
  65468. deprecated="not deprecated">
  65469. <param name="statement" type="java.sql.PreparedStatement"/>
  65470. <exception name="SQLException" type="java.sql.SQLException"/>
  65471. <doc>
  65472. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  65473. @param statement the statement that the fields are put into.
  65474. @throws SQLException]]>
  65475. </doc>
  65476. </method>
  65477. <method name="readFields"
  65478. abstract="false" native="false" synchronized="false"
  65479. static="false" final="false" visibility="public"
  65480. deprecated="not deprecated">
  65481. <param name="resultSet" type="java.sql.ResultSet"/>
  65482. <exception name="SQLException" type="java.sql.SQLException"/>
  65483. <doc>
  65484. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  65485. @param resultSet the {@link ResultSet} to get the fields from.
  65486. @throws SQLException]]>
  65487. </doc>
  65488. </method>
  65489. <doc>
  65490. <![CDATA[Objects that are read from/written to a database should implement
  65491. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  65492. except that the {@link #write(PreparedStatement)} method takes a
  65493. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  65494. takes a {@link ResultSet}.
  65495. <p>
  65496. Implementations are responsible for writing the fields of the object
  65497. to PreparedStatement, and reading the fields of the object from the
  65498. ResultSet.
  65499. <p>Example:</p>
  65500. If we have the following table in the database :
  65501. <pre>
  65502. CREATE TABLE MyTable (
  65503. counter INTEGER NOT NULL,
  65504. timestamp BIGINT NOT NULL,
  65505. );
  65506. </pre>
  65507. then we can read/write the tuples from/to the table with :
  65508. <p><pre>
  65509. public class MyWritable implements Writable, DBWritable {
  65510. // Some data
  65511. private int counter;
  65512. private long timestamp;
  65513. //Writable#write() implementation
  65514. public void write(DataOutput out) throws IOException {
  65515. out.writeInt(counter);
  65516. out.writeLong(timestamp);
  65517. }
  65518. //Writable#readFields() implementation
  65519. public void readFields(DataInput in) throws IOException {
  65520. counter = in.readInt();
  65521. timestamp = in.readLong();
  65522. }
  65523. public void write(PreparedStatement statement) throws SQLException {
  65524. statement.setInt(1, counter);
  65525. statement.setLong(2, timestamp);
  65526. }
  65527. public void readFields(ResultSet resultSet) throws SQLException {
  65528. counter = resultSet.getInt(1);
  65529. timestamp = resultSet.getLong(2);
  65530. }
  65531. }
  65532. </pre></p>]]>
  65533. </doc>
  65534. </interface>
  65535. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  65536. </package>
  65537. <package name="org.apache.hadoop.mapred.pipes">
  65538. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  65539. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  65540. abstract="false"
  65541. static="false" final="false" visibility="public"
  65542. deprecated="not deprecated">
  65543. <implements name="org.apache.hadoop.util.Tool"/>
  65544. <constructor name="Submitter"
  65545. static="false" final="false" visibility="public"
  65546. deprecated="not deprecated">
  65547. </constructor>
  65548. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  65549. static="false" final="false" visibility="public"
  65550. deprecated="not deprecated">
  65551. </constructor>
  65552. <method name="getExecutable" return="java.lang.String"
  65553. abstract="false" native="false" synchronized="false"
  65554. static="true" final="false" visibility="public"
  65555. deprecated="not deprecated">
  65556. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65557. <doc>
  65558. <![CDATA[Get the URI of the application's executable.
  65559. @param conf
  65560. @return the URI where the application's executable is located]]>
  65561. </doc>
  65562. </method>
  65563. <method name="setExecutable"
  65564. abstract="false" native="false" synchronized="false"
  65565. static="true" final="false" visibility="public"
  65566. deprecated="not deprecated">
  65567. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65568. <param name="executable" type="java.lang.String"/>
  65569. <doc>
  65570. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  65571. location.
  65572. @param conf
  65573. @param executable The URI of the application's executable.]]>
  65574. </doc>
  65575. </method>
  65576. <method name="setIsJavaRecordReader"
  65577. abstract="false" native="false" synchronized="false"
  65578. static="true" final="false" visibility="public"
  65579. deprecated="not deprecated">
  65580. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65581. <param name="value" type="boolean"/>
  65582. <doc>
  65583. <![CDATA[Set whether the job is using a Java RecordReader.
  65584. @param conf the configuration to modify
  65585. @param value the new value]]>
  65586. </doc>
  65587. </method>
  65588. <method name="getIsJavaRecordReader" return="boolean"
  65589. abstract="false" native="false" synchronized="false"
  65590. static="true" final="false" visibility="public"
  65591. deprecated="not deprecated">
  65592. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65593. <doc>
  65594. <![CDATA[Check whether the job is using a Java RecordReader
  65595. @param conf the configuration to check
  65596. @return is it a Java RecordReader?]]>
  65597. </doc>
  65598. </method>
  65599. <method name="setIsJavaMapper"
  65600. abstract="false" native="false" synchronized="false"
  65601. static="true" final="false" visibility="public"
  65602. deprecated="not deprecated">
  65603. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65604. <param name="value" type="boolean"/>
  65605. <doc>
  65606. <![CDATA[Set whether the Mapper is written in Java.
  65607. @param conf the configuration to modify
  65608. @param value the new value]]>
  65609. </doc>
  65610. </method>
  65611. <method name="getIsJavaMapper" return="boolean"
  65612. abstract="false" native="false" synchronized="false"
  65613. static="true" final="false" visibility="public"
  65614. deprecated="not deprecated">
  65615. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65616. <doc>
  65617. <![CDATA[Check whether the job is using a Java Mapper.
  65618. @param conf the configuration to check
  65619. @return is it a Java Mapper?]]>
  65620. </doc>
  65621. </method>
  65622. <method name="setIsJavaReducer"
  65623. abstract="false" native="false" synchronized="false"
  65624. static="true" final="false" visibility="public"
  65625. deprecated="not deprecated">
  65626. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65627. <param name="value" type="boolean"/>
  65628. <doc>
  65629. <![CDATA[Set whether the Reducer is written in Java.
  65630. @param conf the configuration to modify
  65631. @param value the new value]]>
  65632. </doc>
  65633. </method>
  65634. <method name="getIsJavaReducer" return="boolean"
  65635. abstract="false" native="false" synchronized="false"
  65636. static="true" final="false" visibility="public"
  65637. deprecated="not deprecated">
  65638. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65639. <doc>
  65640. <![CDATA[Check whether the job is using a Java Reducer.
  65641. @param conf the configuration to check
  65642. @return is it a Java Reducer?]]>
  65643. </doc>
  65644. </method>
  65645. <method name="setIsJavaRecordWriter"
  65646. abstract="false" native="false" synchronized="false"
  65647. static="true" final="false" visibility="public"
  65648. deprecated="not deprecated">
  65649. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65650. <param name="value" type="boolean"/>
  65651. <doc>
  65652. <![CDATA[Set whether the job will use a Java RecordWriter.
  65653. @param conf the configuration to modify
  65654. @param value the new value to set]]>
  65655. </doc>
  65656. </method>
  65657. <method name="getIsJavaRecordWriter" return="boolean"
  65658. abstract="false" native="false" synchronized="false"
  65659. static="true" final="false" visibility="public"
  65660. deprecated="not deprecated">
  65661. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65662. <doc>
  65663. <![CDATA[Will the reduce use a Java RecordWriter?
  65664. @param conf the configuration to check
  65665. @return true, if the output of the job will be written by Java]]>
  65666. </doc>
  65667. </method>
  65668. <method name="getKeepCommandFile" return="boolean"
  65669. abstract="false" native="false" synchronized="false"
  65670. static="true" final="false" visibility="public"
  65671. deprecated="not deprecated">
  65672. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65673. <doc>
  65674. <![CDATA[Does the user want to keep the command file for debugging? If this is
  65675. true, pipes will write a copy of the command data to a file in the
  65676. task directory named "downlink.data", which may be used to run the C++
  65677. program under the debugger. You probably also want to set
  65678. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  65679. being deleted.
  65680. To run using the data file, set the environment variable
  65681. "hadoop.pipes.command.file" to point to the file.
  65682. @param conf the configuration to check
  65683. @return will the framework save the command file?]]>
  65684. </doc>
  65685. </method>
  65686. <method name="setKeepCommandFile"
  65687. abstract="false" native="false" synchronized="false"
  65688. static="true" final="false" visibility="public"
  65689. deprecated="not deprecated">
  65690. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65691. <param name="keep" type="boolean"/>
  65692. <doc>
  65693. <![CDATA[Set whether to keep the command file for debugging
  65694. @param conf the configuration to modify
  65695. @param keep the new value]]>
  65696. </doc>
  65697. </method>
  65698. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  65699. abstract="false" native="false" synchronized="false"
  65700. static="true" final="false" visibility="public"
  65701. deprecated="Use {@link Submitter#runJob(JobConf)}">
  65702. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65703. <exception name="IOException" type="java.io.IOException"/>
  65704. <doc>
  65705. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  65706. to the job to run under pipes are made to the configuration.
  65707. @param conf the job to submit to the cluster (MODIFIED)
  65708. @throws IOException
  65709. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  65710. </doc>
  65711. </method>
  65712. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  65713. abstract="false" native="false" synchronized="false"
  65714. static="true" final="false" visibility="public"
  65715. deprecated="not deprecated">
  65716. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65717. <exception name="IOException" type="java.io.IOException"/>
  65718. <doc>
  65719. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  65720. to the job to run under pipes are made to the configuration.
  65721. @param conf the job to submit to the cluster (MODIFIED)
  65722. @throws IOException]]>
  65723. </doc>
  65724. </method>
  65725. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  65726. abstract="false" native="false" synchronized="false"
  65727. static="true" final="false" visibility="public"
  65728. deprecated="not deprecated">
  65729. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  65730. <exception name="IOException" type="java.io.IOException"/>
  65731. <doc>
  65732. <![CDATA[Submit a job to the Map-Reduce framework.
  65733. This returns a handle to the {@link RunningJob} which can be used to track
  65734. the running-job.
  65735. @param conf the job configuration.
  65736. @return a handle to the {@link RunningJob} which can be used to track the
  65737. running-job.
  65738. @throws IOException]]>
  65739. </doc>
  65740. </method>
  65741. <method name="run" return="int"
  65742. abstract="false" native="false" synchronized="false"
  65743. static="false" final="false" visibility="public"
  65744. deprecated="not deprecated">
  65745. <param name="args" type="java.lang.String[]"/>
  65746. <exception name="Exception" type="java.lang.Exception"/>
  65747. </method>
  65748. <method name="main"
  65749. abstract="false" native="false" synchronized="false"
  65750. static="true" final="false" visibility="public"
  65751. deprecated="not deprecated">
  65752. <param name="args" type="java.lang.String[]"/>
  65753. <exception name="Exception" type="java.lang.Exception"/>
  65754. <doc>
  65755. <![CDATA[Submit a pipes job based on the command line arguments.
  65756. @param args]]>
  65757. </doc>
  65758. </method>
  65759. <field name="LOG" type="org.apache.commons.logging.Log"
  65760. transient="false" volatile="false"
  65761. static="true" final="true" visibility="protected"
  65762. deprecated="not deprecated">
  65763. </field>
  65764. <doc>
  65765. <![CDATA[The main entry point and job submitter. It may either be used as a command
  65766. line-based or API-based method to launch Pipes jobs.]]>
  65767. </doc>
  65768. </class>
  65769. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  65770. </package>
  65771. <package name="org.apache.hadoop.mapred.tools">
  65772. <!-- start class org.apache.hadoop.mapred.tools.MRAdmin -->
  65773. <class name="MRAdmin" extends="org.apache.hadoop.conf.Configured"
  65774. abstract="false"
  65775. static="false" final="false" visibility="public"
  65776. deprecated="not deprecated">
  65777. <implements name="org.apache.hadoop.util.Tool"/>
  65778. <constructor name="MRAdmin"
  65779. static="false" final="false" visibility="public"
  65780. deprecated="not deprecated">
  65781. </constructor>
  65782. <constructor name="MRAdmin" type="org.apache.hadoop.conf.Configuration"
  65783. static="false" final="false" visibility="public"
  65784. deprecated="not deprecated">
  65785. </constructor>
  65786. <method name="refreshSuperUserGroupsConfiguration" return="int"
  65787. abstract="false" native="false" synchronized="false"
  65788. static="false" final="false" visibility="public"
  65789. deprecated="not deprecated">
  65790. <exception name="IOException" type="java.io.IOException"/>
  65791. <doc>
  65792. <![CDATA[refreshSuperUserGroupsConfiguration {@link JobTracker}.
  65793. @return exitcode 0 on success, non-zero on failure
  65794. @throws IOException]]>
  65795. </doc>
  65796. </method>
  65797. <method name="run" return="int"
  65798. abstract="false" native="false" synchronized="false"
  65799. static="false" final="false" visibility="public"
  65800. deprecated="not deprecated">
  65801. <param name="args" type="java.lang.String[]"/>
  65802. <exception name="Exception" type="java.lang.Exception"/>
  65803. </method>
  65804. <method name="main"
  65805. abstract="false" native="false" synchronized="false"
  65806. static="true" final="false" visibility="public"
  65807. deprecated="not deprecated">
  65808. <param name="args" type="java.lang.String[]"/>
  65809. <exception name="Exception" type="java.lang.Exception"/>
  65810. </method>
  65811. <doc>
  65812. <![CDATA[Administrative access to Hadoop Map-Reduce.
  65813. Currently it only provides the ability to connect to the {@link JobTracker}
  65814. and 1) refresh the service-level authorization policy, 2) refresh queue acl
  65815. properties.]]>
  65816. </doc>
  65817. </class>
  65818. <!-- end class org.apache.hadoop.mapred.tools.MRAdmin -->
  65819. </package>
  65820. <package name="org.apache.hadoop.mapreduce">
  65821. <!-- start class org.apache.hadoop.mapreduce.ClusterMetrics -->
  65822. <class name="ClusterMetrics" extends="java.lang.Object"
  65823. abstract="false"
  65824. static="false" final="false" visibility="public"
  65825. deprecated="not deprecated">
  65826. <implements name="org.apache.hadoop.io.Writable"/>
  65827. <constructor name="ClusterMetrics"
  65828. static="false" final="false" visibility="public"
  65829. deprecated="not deprecated">
  65830. </constructor>
  65831. <constructor name="ClusterMetrics" type="int, int, int, int, int, int, int, int, int, int, int, int, int"
  65832. static="false" final="false" visibility="public"
  65833. deprecated="not deprecated">
  65834. </constructor>
  65835. <method name="getRunningMaps" return="int"
  65836. abstract="false" native="false" synchronized="false"
  65837. static="false" final="false" visibility="public"
  65838. deprecated="not deprecated">
  65839. <doc>
  65840. <![CDATA[Get the number of running map tasks in the cluster.
  65841. @return running maps]]>
  65842. </doc>
  65843. </method>
  65844. <method name="getRunningReduces" return="int"
  65845. abstract="false" native="false" synchronized="false"
  65846. static="false" final="false" visibility="public"
  65847. deprecated="not deprecated">
  65848. <doc>
  65849. <![CDATA[Get the number of running reduce tasks in the cluster.
  65850. @return running reduces]]>
  65851. </doc>
  65852. </method>
  65853. <method name="getOccupiedMapSlots" return="int"
  65854. abstract="false" native="false" synchronized="false"
  65855. static="false" final="false" visibility="public"
  65856. deprecated="not deprecated">
  65857. <doc>
  65858. <![CDATA[Get number of occupied map slots in the cluster.
  65859. @return occupied map slot count]]>
  65860. </doc>
  65861. </method>
  65862. <method name="getOccupiedReduceSlots" return="int"
  65863. abstract="false" native="false" synchronized="false"
  65864. static="false" final="false" visibility="public"
  65865. deprecated="not deprecated">
  65866. <doc>
  65867. <![CDATA[Get the number of occupied reduce slots in the cluster.
  65868. @return occupied reduce slot count]]>
  65869. </doc>
  65870. </method>
  65871. <method name="getReservedMapSlots" return="int"
  65872. abstract="false" native="false" synchronized="false"
  65873. static="false" final="false" visibility="public"
  65874. deprecated="not deprecated">
  65875. <doc>
  65876. <![CDATA[Get number of reserved map slots in the cluster.
  65877. @return reserved map slot count]]>
  65878. </doc>
  65879. </method>
  65880. <method name="getReservedReduceSlots" return="int"
  65881. abstract="false" native="false" synchronized="false"
  65882. static="false" final="false" visibility="public"
  65883. deprecated="not deprecated">
  65884. <doc>
  65885. <![CDATA[Get the number of reserved reduce slots in the cluster.
  65886. @return reserved reduce slot count]]>
  65887. </doc>
  65888. </method>
  65889. <method name="getMapSlotCapacity" return="int"
  65890. abstract="false" native="false" synchronized="false"
  65891. static="false" final="false" visibility="public"
  65892. deprecated="not deprecated">
  65893. <doc>
  65894. <![CDATA[Get the total number of map slots in the cluster.
  65895. @return map slot capacity]]>
  65896. </doc>
  65897. </method>
  65898. <method name="getReduceSlotCapacity" return="int"
  65899. abstract="false" native="false" synchronized="false"
  65900. static="false" final="false" visibility="public"
  65901. deprecated="not deprecated">
  65902. <doc>
  65903. <![CDATA[Get the total number of reduce slots in the cluster.
  65904. @return reduce slot capacity]]>
  65905. </doc>
  65906. </method>
  65907. <method name="getTotalJobSubmissions" return="int"
  65908. abstract="false" native="false" synchronized="false"
  65909. static="false" final="false" visibility="public"
  65910. deprecated="not deprecated">
  65911. <doc>
  65912. <![CDATA[Get the total number of job submissions in the cluster.
  65913. @return total number of job submissions]]>
  65914. </doc>
  65915. </method>
  65916. <method name="getTaskTrackerCount" return="int"
  65917. abstract="false" native="false" synchronized="false"
  65918. static="false" final="false" visibility="public"
  65919. deprecated="not deprecated">
  65920. <doc>
  65921. <![CDATA[Get the number of active trackers in the cluster.
  65922. @return active tracker count.]]>
  65923. </doc>
  65924. </method>
  65925. <method name="getBlackListedTaskTrackerCount" return="int"
  65926. abstract="false" native="false" synchronized="false"
  65927. static="false" final="false" visibility="public"
  65928. deprecated="not deprecated">
  65929. <doc>
  65930. <![CDATA[Get the number of blacklisted trackers in the cluster.
  65931. @return blacklisted tracker count]]>
  65932. </doc>
  65933. </method>
  65934. <method name="getGrayListedTaskTrackerCount" return="int"
  65935. abstract="false" native="false" synchronized="false"
  65936. static="false" final="false" visibility="public"
  65937. deprecated="not deprecated">
  65938. <doc>
  65939. <![CDATA[Get the number of graylisted trackers in the cluster.
  65940. @return graylisted tracker count]]>
  65941. </doc>
  65942. </method>
  65943. <method name="getDecommissionedTaskTrackerCount" return="int"
  65944. abstract="false" native="false" synchronized="false"
  65945. static="false" final="false" visibility="public"
  65946. deprecated="not deprecated">
  65947. <doc>
  65948. <![CDATA[Get the number of decommissioned trackers in the cluster.
  65949. @return decommissioned tracker count]]>
  65950. </doc>
  65951. </method>
  65952. <method name="readFields"
  65953. abstract="false" native="false" synchronized="false"
  65954. static="false" final="false" visibility="public"
  65955. deprecated="not deprecated">
  65956. <param name="in" type="java.io.DataInput"/>
  65957. <exception name="IOException" type="java.io.IOException"/>
  65958. </method>
  65959. <method name="write"
  65960. abstract="false" native="false" synchronized="false"
  65961. static="false" final="false" visibility="public"
  65962. deprecated="not deprecated">
  65963. <param name="out" type="java.io.DataOutput"/>
  65964. <exception name="IOException" type="java.io.IOException"/>
  65965. </method>
  65966. <doc>
  65967. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  65968. <p><code>ClusterMetrics</code> provides clients with information such as:
  65969. <ol>
  65970. <li>
  65971. Size of the cluster.
  65972. </li>
  65973. <li>
  65974. Number of blacklisted and decommissioned trackers.
  65975. </li>
  65976. <li>
  65977. Slot capacity of the cluster.
  65978. </li>
  65979. <li>
  65980. The number of currently occupied/reserved map & reduce slots.
  65981. </li>
  65982. <li>
  65983. The number of currently running map & reduce tasks.
  65984. </li>
  65985. <li>
  65986. The number of job submissions.
  65987. </li>
  65988. </ol></p>]]>
  65989. </doc>
  65990. </class>
  65991. <!-- end class org.apache.hadoop.mapreduce.ClusterMetrics -->
  65992. <!-- start class org.apache.hadoop.mapreduce.Counter -->
  65993. <class name="Counter" extends="java.lang.Object"
  65994. abstract="false"
  65995. static="false" final="false" visibility="public"
  65996. deprecated="not deprecated">
  65997. <implements name="org.apache.hadoop.io.Writable"/>
  65998. <constructor name="Counter"
  65999. static="false" final="false" visibility="protected"
  66000. deprecated="not deprecated">
  66001. </constructor>
  66002. <constructor name="Counter" type="java.lang.String, java.lang.String"
  66003. static="false" final="false" visibility="protected"
  66004. deprecated="not deprecated">
  66005. </constructor>
  66006. <method name="setDisplayName"
  66007. abstract="false" native="false" synchronized="true"
  66008. static="false" final="false" visibility="protected"
  66009. deprecated="not deprecated">
  66010. <param name="displayName" type="java.lang.String"/>
  66011. </method>
  66012. <method name="readFields"
  66013. abstract="false" native="false" synchronized="true"
  66014. static="false" final="false" visibility="public"
  66015. deprecated="not deprecated">
  66016. <param name="in" type="java.io.DataInput"/>
  66017. <exception name="IOException" type="java.io.IOException"/>
  66018. <doc>
  66019. <![CDATA[Read the binary representation of the counter]]>
  66020. </doc>
  66021. </method>
  66022. <method name="write"
  66023. abstract="false" native="false" synchronized="true"
  66024. static="false" final="false" visibility="public"
  66025. deprecated="not deprecated">
  66026. <param name="out" type="java.io.DataOutput"/>
  66027. <exception name="IOException" type="java.io.IOException"/>
  66028. <doc>
  66029. <![CDATA[Write the binary representation of the counter]]>
  66030. </doc>
  66031. </method>
  66032. <method name="getName" return="java.lang.String"
  66033. abstract="false" native="false" synchronized="true"
  66034. static="false" final="false" visibility="public"
  66035. deprecated="not deprecated">
  66036. </method>
  66037. <method name="getDisplayName" return="java.lang.String"
  66038. abstract="false" native="false" synchronized="true"
  66039. static="false" final="false" visibility="public"
  66040. deprecated="not deprecated">
  66041. <doc>
  66042. <![CDATA[Get the name of the counter.
  66043. @return the user facing name of the counter]]>
  66044. </doc>
  66045. </method>
  66046. <method name="getValue" return="long"
  66047. abstract="false" native="false" synchronized="true"
  66048. static="false" final="false" visibility="public"
  66049. deprecated="not deprecated">
  66050. <doc>
  66051. <![CDATA[What is the current value of this counter?
  66052. @return the current value]]>
  66053. </doc>
  66054. </method>
  66055. <method name="setValue"
  66056. abstract="false" native="false" synchronized="true"
  66057. static="false" final="false" visibility="public"
  66058. deprecated="not deprecated">
  66059. <param name="value" type="long"/>
  66060. <doc>
  66061. <![CDATA[Set this counter by the given value
  66062. @param value the value to set]]>
  66063. </doc>
  66064. </method>
  66065. <method name="increment"
  66066. abstract="false" native="false" synchronized="true"
  66067. static="false" final="false" visibility="public"
  66068. deprecated="not deprecated">
  66069. <param name="incr" type="long"/>
  66070. <doc>
  66071. <![CDATA[Increment this counter by the given value
  66072. @param incr the value to increase this counter by]]>
  66073. </doc>
  66074. </method>
  66075. <method name="equals" return="boolean"
  66076. abstract="false" native="false" synchronized="true"
  66077. static="false" final="false" visibility="public"
  66078. deprecated="not deprecated">
  66079. <param name="genericRight" type="java.lang.Object"/>
  66080. </method>
  66081. <method name="hashCode" return="int"
  66082. abstract="false" native="false" synchronized="true"
  66083. static="false" final="false" visibility="public"
  66084. deprecated="not deprecated">
  66085. </method>
  66086. <doc>
  66087. <![CDATA[A named counter that tracks the progress of a map/reduce job.
  66088. <p><code>Counters</code> represent global counters, defined either by the
  66089. Map-Reduce framework or applications. Each <code>Counter</code> is named by
  66090. an {@link Enum} and has a long for the value.</p>
  66091. <p><code>Counters</code> are bunched into Groups, each comprising of
  66092. counters from a particular <code>Enum</code> class.]]>
  66093. </doc>
  66094. </class>
  66095. <!-- end class org.apache.hadoop.mapreduce.Counter -->
  66096. <!-- start class org.apache.hadoop.mapreduce.CounterGroup -->
  66097. <class name="CounterGroup" extends="java.lang.Object"
  66098. abstract="false"
  66099. static="false" final="false" visibility="public"
  66100. deprecated="not deprecated">
  66101. <implements name="org.apache.hadoop.io.Writable"/>
  66102. <implements name="java.lang.Iterable"/>
  66103. <constructor name="CounterGroup" type="java.lang.String"
  66104. static="false" final="false" visibility="protected"
  66105. deprecated="not deprecated">
  66106. </constructor>
  66107. <constructor name="CounterGroup" type="java.lang.String, java.lang.String"
  66108. static="false" final="false" visibility="protected"
  66109. deprecated="not deprecated">
  66110. </constructor>
  66111. <method name="getName" return="java.lang.String"
  66112. abstract="false" native="false" synchronized="true"
  66113. static="false" final="false" visibility="public"
  66114. deprecated="not deprecated">
  66115. <doc>
  66116. <![CDATA[Get the internal name of the group
  66117. @return the internal name]]>
  66118. </doc>
  66119. </method>
  66120. <method name="getDisplayName" return="java.lang.String"
  66121. abstract="false" native="false" synchronized="true"
  66122. static="false" final="false" visibility="public"
  66123. deprecated="not deprecated">
  66124. <doc>
  66125. <![CDATA[Get the display name of the group.
  66126. @return the human readable name]]>
  66127. </doc>
  66128. </method>
  66129. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66130. abstract="false" native="false" synchronized="false"
  66131. static="false" final="false" visibility="protected"
  66132. deprecated="not deprecated">
  66133. <param name="counterName" type="java.lang.String"/>
  66134. <param name="displayName" type="java.lang.String"/>
  66135. <doc>
  66136. <![CDATA[Internal to find a counter in a group.
  66137. @param counterName the name of the counter
  66138. @param displayName the display name of the counter
  66139. @return the counter that was found or added]]>
  66140. </doc>
  66141. </method>
  66142. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66143. abstract="false" native="false" synchronized="true"
  66144. static="false" final="false" visibility="public"
  66145. deprecated="not deprecated">
  66146. <param name="counterName" type="java.lang.String"/>
  66147. </method>
  66148. <method name="iterator" return="java.util.Iterator"
  66149. abstract="false" native="false" synchronized="true"
  66150. static="false" final="false" visibility="public"
  66151. deprecated="not deprecated">
  66152. </method>
  66153. <method name="write"
  66154. abstract="false" native="false" synchronized="true"
  66155. static="false" final="false" visibility="public"
  66156. deprecated="not deprecated">
  66157. <param name="out" type="java.io.DataOutput"/>
  66158. <exception name="IOException" type="java.io.IOException"/>
  66159. </method>
  66160. <method name="readFields"
  66161. abstract="false" native="false" synchronized="true"
  66162. static="false" final="false" visibility="public"
  66163. deprecated="not deprecated">
  66164. <param name="in" type="java.io.DataInput"/>
  66165. <exception name="IOException" type="java.io.IOException"/>
  66166. </method>
  66167. <method name="size" return="int"
  66168. abstract="false" native="false" synchronized="true"
  66169. static="false" final="false" visibility="public"
  66170. deprecated="not deprecated">
  66171. <doc>
  66172. <![CDATA[Returns the number of counters in this group.]]>
  66173. </doc>
  66174. </method>
  66175. <method name="equals" return="boolean"
  66176. abstract="false" native="false" synchronized="true"
  66177. static="false" final="false" visibility="public"
  66178. deprecated="not deprecated">
  66179. <param name="genericRight" type="java.lang.Object"/>
  66180. </method>
  66181. <method name="hashCode" return="int"
  66182. abstract="false" native="false" synchronized="true"
  66183. static="false" final="false" visibility="public"
  66184. deprecated="not deprecated">
  66185. </method>
  66186. <method name="incrAllCounters"
  66187. abstract="false" native="false" synchronized="true"
  66188. static="false" final="false" visibility="public"
  66189. deprecated="not deprecated">
  66190. <param name="rightGroup" type="org.apache.hadoop.mapreduce.CounterGroup"/>
  66191. </method>
  66192. <doc>
  66193. <![CDATA[A group of {@link Counter}s that logically belong together. Typically,
  66194. it is an {@link Enum} subclass and the counters are the values.]]>
  66195. </doc>
  66196. </class>
  66197. <!-- end class org.apache.hadoop.mapreduce.CounterGroup -->
  66198. <!-- start class org.apache.hadoop.mapreduce.Counters -->
  66199. <class name="Counters" extends="java.lang.Object"
  66200. abstract="false"
  66201. static="false" final="false" visibility="public"
  66202. deprecated="not deprecated">
  66203. <implements name="org.apache.hadoop.io.Writable"/>
  66204. <implements name="java.lang.Iterable"/>
  66205. <constructor name="Counters"
  66206. static="false" final="false" visibility="public"
  66207. deprecated="not deprecated">
  66208. </constructor>
  66209. <constructor name="Counters" type="org.apache.hadoop.mapred.Counters"
  66210. static="false" final="false" visibility="public"
  66211. deprecated="not deprecated">
  66212. </constructor>
  66213. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66214. abstract="false" native="false" synchronized="false"
  66215. static="false" final="false" visibility="public"
  66216. deprecated="not deprecated">
  66217. <param name="groupName" type="java.lang.String"/>
  66218. <param name="counterName" type="java.lang.String"/>
  66219. </method>
  66220. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  66221. abstract="false" native="false" synchronized="true"
  66222. static="false" final="false" visibility="public"
  66223. deprecated="not deprecated">
  66224. <param name="key" type="java.lang.Enum"/>
  66225. <doc>
  66226. <![CDATA[Find the counter for the given enum. The same enum will always return the
  66227. same counter.
  66228. @param key the counter key
  66229. @return the matching counter object]]>
  66230. </doc>
  66231. </method>
  66232. <method name="getGroupNames" return="java.util.Collection"
  66233. abstract="false" native="false" synchronized="true"
  66234. static="false" final="false" visibility="public"
  66235. deprecated="not deprecated">
  66236. <doc>
  66237. <![CDATA[Returns the names of all counter classes.
  66238. @return Set of counter names.]]>
  66239. </doc>
  66240. </method>
  66241. <method name="iterator" return="java.util.Iterator"
  66242. abstract="false" native="false" synchronized="false"
  66243. static="false" final="false" visibility="public"
  66244. deprecated="not deprecated">
  66245. </method>
  66246. <method name="getGroup" return="org.apache.hadoop.mapreduce.CounterGroup"
  66247. abstract="false" native="false" synchronized="true"
  66248. static="false" final="false" visibility="public"
  66249. deprecated="not deprecated">
  66250. <param name="groupName" type="java.lang.String"/>
  66251. <doc>
  66252. <![CDATA[Returns the named counter group, or an empty group if there is none
  66253. with the specified name.]]>
  66254. </doc>
  66255. </method>
  66256. <method name="countCounters" return="int"
  66257. abstract="false" native="false" synchronized="true"
  66258. static="false" final="false" visibility="public"
  66259. deprecated="not deprecated">
  66260. <doc>
  66261. <![CDATA[Returns the total number of counters, by summing the number of counters
  66262. in each group.]]>
  66263. </doc>
  66264. </method>
  66265. <method name="write"
  66266. abstract="false" native="false" synchronized="true"
  66267. static="false" final="false" visibility="public"
  66268. deprecated="not deprecated">
  66269. <param name="out" type="java.io.DataOutput"/>
  66270. <exception name="IOException" type="java.io.IOException"/>
  66271. <doc>
  66272. <![CDATA[Write the set of groups.
  66273. The external format is:
  66274. #groups (groupName group)*
  66275. i.e. the number of groups followed by 0 or more groups, where each
  66276. group is of the form:
  66277. groupDisplayName #counters (false | true counter)*
  66278. where each counter is of the form:
  66279. name (false | true displayName) value]]>
  66280. </doc>
  66281. </method>
  66282. <method name="readFields"
  66283. abstract="false" native="false" synchronized="true"
  66284. static="false" final="false" visibility="public"
  66285. deprecated="not deprecated">
  66286. <param name="in" type="java.io.DataInput"/>
  66287. <exception name="IOException" type="java.io.IOException"/>
  66288. <doc>
  66289. <![CDATA[Read a set of groups.]]>
  66290. </doc>
  66291. </method>
  66292. <method name="toString" return="java.lang.String"
  66293. abstract="false" native="false" synchronized="true"
  66294. static="false" final="false" visibility="public"
  66295. deprecated="not deprecated">
  66296. <doc>
  66297. <![CDATA[Return textual representation of the counter values.]]>
  66298. </doc>
  66299. </method>
  66300. <method name="incrAllCounters"
  66301. abstract="false" native="false" synchronized="true"
  66302. static="false" final="false" visibility="public"
  66303. deprecated="not deprecated">
  66304. <param name="other" type="org.apache.hadoop.mapreduce.Counters"/>
  66305. <doc>
  66306. <![CDATA[Increments multiple counters by their amounts in another Counters
  66307. instance.
  66308. @param other the other Counters instance]]>
  66309. </doc>
  66310. </method>
  66311. <method name="equals" return="boolean"
  66312. abstract="false" native="false" synchronized="false"
  66313. static="false" final="false" visibility="public"
  66314. deprecated="not deprecated">
  66315. <param name="genericRight" type="java.lang.Object"/>
  66316. </method>
  66317. <method name="hashCode" return="int"
  66318. abstract="false" native="false" synchronized="false"
  66319. static="false" final="false" visibility="public"
  66320. deprecated="not deprecated">
  66321. </method>
  66322. </class>
  66323. <!-- end class org.apache.hadoop.mapreduce.Counters -->
  66324. <!-- start class org.apache.hadoop.mapreduce.ID -->
  66325. <class name="ID" extends="java.lang.Object"
  66326. abstract="true"
  66327. static="false" final="false" visibility="public"
  66328. deprecated="not deprecated">
  66329. <implements name="org.apache.hadoop.io.WritableComparable"/>
  66330. <constructor name="ID" type="int"
  66331. static="false" final="false" visibility="public"
  66332. deprecated="not deprecated">
  66333. <doc>
  66334. <![CDATA[constructs an ID object from the given int]]>
  66335. </doc>
  66336. </constructor>
  66337. <constructor name="ID"
  66338. static="false" final="false" visibility="protected"
  66339. deprecated="not deprecated">
  66340. </constructor>
  66341. <method name="getId" return="int"
  66342. abstract="false" native="false" synchronized="false"
  66343. static="false" final="false" visibility="public"
  66344. deprecated="not deprecated">
  66345. <doc>
  66346. <![CDATA[returns the int which represents the identifier]]>
  66347. </doc>
  66348. </method>
  66349. <method name="toString" return="java.lang.String"
  66350. abstract="false" native="false" synchronized="false"
  66351. static="false" final="false" visibility="public"
  66352. deprecated="not deprecated">
  66353. </method>
  66354. <method name="hashCode" return="int"
  66355. abstract="false" native="false" synchronized="false"
  66356. static="false" final="false" visibility="public"
  66357. deprecated="not deprecated">
  66358. </method>
  66359. <method name="equals" return="boolean"
  66360. abstract="false" native="false" synchronized="false"
  66361. static="false" final="false" visibility="public"
  66362. deprecated="not deprecated">
  66363. <param name="o" type="java.lang.Object"/>
  66364. </method>
  66365. <method name="compareTo" return="int"
  66366. abstract="false" native="false" synchronized="false"
  66367. static="false" final="false" visibility="public"
  66368. deprecated="not deprecated">
  66369. <param name="that" type="org.apache.hadoop.mapreduce.ID"/>
  66370. <doc>
  66371. <![CDATA[Compare IDs by associated numbers]]>
  66372. </doc>
  66373. </method>
  66374. <method name="readFields"
  66375. abstract="false" native="false" synchronized="false"
  66376. static="false" final="false" visibility="public"
  66377. deprecated="not deprecated">
  66378. <param name="in" type="java.io.DataInput"/>
  66379. <exception name="IOException" type="java.io.IOException"/>
  66380. </method>
  66381. <method name="write"
  66382. abstract="false" native="false" synchronized="false"
  66383. static="false" final="false" visibility="public"
  66384. deprecated="not deprecated">
  66385. <param name="out" type="java.io.DataOutput"/>
  66386. <exception name="IOException" type="java.io.IOException"/>
  66387. </method>
  66388. <field name="SEPARATOR" type="char"
  66389. transient="false" volatile="false"
  66390. static="true" final="true" visibility="protected"
  66391. deprecated="not deprecated">
  66392. </field>
  66393. <field name="id" type="int"
  66394. transient="false" volatile="false"
  66395. static="false" final="false" visibility="protected"
  66396. deprecated="not deprecated">
  66397. </field>
  66398. <doc>
  66399. <![CDATA[A general identifier, which internally stores the id
  66400. as an integer. This is the super class of {@link JobID},
  66401. {@link TaskID} and {@link TaskAttemptID}.
  66402. @see JobID
  66403. @see TaskID
  66404. @see TaskAttemptID]]>
  66405. </doc>
  66406. </class>
  66407. <!-- end class org.apache.hadoop.mapreduce.ID -->
  66408. <!-- start class org.apache.hadoop.mapreduce.InputFormat -->
  66409. <class name="InputFormat" extends="java.lang.Object"
  66410. abstract="true"
  66411. static="false" final="false" visibility="public"
  66412. deprecated="not deprecated">
  66413. <constructor name="InputFormat"
  66414. static="false" final="false" visibility="public"
  66415. deprecated="not deprecated">
  66416. </constructor>
  66417. <method name="getSplits" return="java.util.List"
  66418. abstract="true" native="false" synchronized="false"
  66419. static="false" final="false" visibility="public"
  66420. deprecated="not deprecated">
  66421. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  66422. <exception name="IOException" type="java.io.IOException"/>
  66423. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66424. <doc>
  66425. <![CDATA[Logically split the set of input files for the job.
  66426. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  66427. for processing.</p>
  66428. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  66429. input files are not physically split into chunks. For e.g. a split could
  66430. be <i>&lt;input-file-path, start, offset&gt;</i> tuple. The InputFormat
  66431. also creates the {@link RecordReader} to read the {@link InputSplit}.
  66432. @param context job configuration.
  66433. @return an array of {@link InputSplit}s for the job.]]>
  66434. </doc>
  66435. </method>
  66436. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  66437. abstract="true" native="false" synchronized="false"
  66438. static="false" final="false" visibility="public"
  66439. deprecated="not deprecated">
  66440. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  66441. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66442. <exception name="IOException" type="java.io.IOException"/>
  66443. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66444. <doc>
  66445. <![CDATA[Create a record reader for a given split. The framework will call
  66446. {@link RecordReader#initialize(InputSplit, TaskAttemptContext)} before
  66447. the split is used.
  66448. @param split the split to be read
  66449. @param context the information about the task
  66450. @return a new record reader
  66451. @throws IOException
  66452. @throws InterruptedException]]>
  66453. </doc>
  66454. </method>
  66455. <doc>
  66456. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  66457. Map-Reduce job.
  66458. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  66459. job to:<p>
  66460. <ol>
  66461. <li>
  66462. Validate the input-specification of the job.
  66463. <li>
  66464. Split-up the input file(s) into logical {@link InputSplit}s, each of
  66465. which is then assigned to an individual {@link Mapper}.
  66466. </li>
  66467. <li>
  66468. Provide the {@link RecordReader} implementation to be used to glean
  66469. input records from the logical <code>InputSplit</code> for processing by
  66470. the {@link Mapper}.
  66471. </li>
  66472. </ol>
  66473. <p>The default behavior of file-based {@link InputFormat}s, typically
  66474. sub-classes of {@link FileInputFormat}, is to split the
  66475. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  66476. bytes, of the input files. However, the {@link FileSystem} blocksize of
  66477. the input files is treated as an upper bound for input splits. A lower bound
  66478. on the split size can be set via
  66479. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  66480. mapred.min.split.size</a>.</p>
  66481. <p>Clearly, logical splits based on input-size is insufficient for many
  66482. applications since record boundaries are to respected. In such cases, the
  66483. application has to also implement a {@link RecordReader} on whom lies the
  66484. responsibility to respect record-boundaries and present a record-oriented
  66485. view of the logical <code>InputSplit</code> to the individual task.
  66486. @see InputSplit
  66487. @see RecordReader
  66488. @see FileInputFormat]]>
  66489. </doc>
  66490. </class>
  66491. <!-- end class org.apache.hadoop.mapreduce.InputFormat -->
  66492. <!-- start class org.apache.hadoop.mapreduce.InputSplit -->
  66493. <class name="InputSplit" extends="java.lang.Object"
  66494. abstract="true"
  66495. static="false" final="false" visibility="public"
  66496. deprecated="not deprecated">
  66497. <constructor name="InputSplit"
  66498. static="false" final="false" visibility="public"
  66499. deprecated="not deprecated">
  66500. </constructor>
  66501. <method name="getLength" return="long"
  66502. abstract="true" native="false" synchronized="false"
  66503. static="false" final="false" visibility="public"
  66504. deprecated="not deprecated">
  66505. <exception name="IOException" type="java.io.IOException"/>
  66506. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66507. <doc>
  66508. <![CDATA[Get the size of the split, so that the input splits can be sorted by size.
  66509. @return the number of bytes in the split
  66510. @throws IOException
  66511. @throws InterruptedException]]>
  66512. </doc>
  66513. </method>
  66514. <method name="getLocations" return="java.lang.String[]"
  66515. abstract="true" native="false" synchronized="false"
  66516. static="false" final="false" visibility="public"
  66517. deprecated="not deprecated">
  66518. <exception name="IOException" type="java.io.IOException"/>
  66519. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66520. <doc>
  66521. <![CDATA[Get the list of nodes by name where the data for the split would be local.
  66522. The locations do not need to be serialized.
  66523. @return a new array of the node nodes.
  66524. @throws IOException
  66525. @throws InterruptedException]]>
  66526. </doc>
  66527. </method>
  66528. <doc>
  66529. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  66530. individual {@link Mapper}.
  66531. <p>Typically, it presents a byte-oriented view on the input and is the
  66532. responsibility of {@link RecordReader} of the job to process this and present
  66533. a record-oriented view.
  66534. @see InputFormat
  66535. @see RecordReader]]>
  66536. </doc>
  66537. </class>
  66538. <!-- end class org.apache.hadoop.mapreduce.InputSplit -->
  66539. <!-- start class org.apache.hadoop.mapreduce.Job -->
  66540. <class name="Job" extends="org.apache.hadoop.mapreduce.JobContext"
  66541. abstract="false"
  66542. static="false" final="false" visibility="public"
  66543. deprecated="not deprecated">
  66544. <constructor name="Job"
  66545. static="false" final="false" visibility="public"
  66546. deprecated="not deprecated">
  66547. <exception name="IOException" type="java.io.IOException"/>
  66548. </constructor>
  66549. <constructor name="Job" type="org.apache.hadoop.conf.Configuration"
  66550. static="false" final="false" visibility="public"
  66551. deprecated="not deprecated">
  66552. <exception name="IOException" type="java.io.IOException"/>
  66553. </constructor>
  66554. <constructor name="Job" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  66555. static="false" final="false" visibility="public"
  66556. deprecated="not deprecated">
  66557. <exception name="IOException" type="java.io.IOException"/>
  66558. </constructor>
  66559. <method name="setNumReduceTasks"
  66560. abstract="false" native="false" synchronized="false"
  66561. static="false" final="false" visibility="public"
  66562. deprecated="not deprecated">
  66563. <param name="tasks" type="int"/>
  66564. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66565. <doc>
  66566. <![CDATA[Set the number of reduce tasks for the job.
  66567. @param tasks the number of reduce tasks
  66568. @throws IllegalStateException if the job is submitted]]>
  66569. </doc>
  66570. </method>
  66571. <method name="setWorkingDirectory"
  66572. abstract="false" native="false" synchronized="false"
  66573. static="false" final="false" visibility="public"
  66574. deprecated="not deprecated">
  66575. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  66576. <exception name="IOException" type="java.io.IOException"/>
  66577. <doc>
  66578. <![CDATA[Set the current working directory for the default file system.
  66579. @param dir the new current working directory.
  66580. @throws IllegalStateException if the job is submitted]]>
  66581. </doc>
  66582. </method>
  66583. <method name="setInputFormatClass"
  66584. abstract="false" native="false" synchronized="false"
  66585. static="false" final="false" visibility="public"
  66586. deprecated="not deprecated">
  66587. <param name="cls" type="java.lang.Class"/>
  66588. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66589. <doc>
  66590. <![CDATA[Set the {@link InputFormat} for the job.
  66591. @param cls the <code>InputFormat</code> to use
  66592. @throws IllegalStateException if the job is submitted]]>
  66593. </doc>
  66594. </method>
  66595. <method name="setOutputFormatClass"
  66596. abstract="false" native="false" synchronized="false"
  66597. static="false" final="false" visibility="public"
  66598. deprecated="not deprecated">
  66599. <param name="cls" type="java.lang.Class"/>
  66600. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66601. <doc>
  66602. <![CDATA[Set the {@link OutputFormat} for the job.
  66603. @param cls the <code>OutputFormat</code> to use
  66604. @throws IllegalStateException if the job is submitted]]>
  66605. </doc>
  66606. </method>
  66607. <method name="setMapperClass"
  66608. abstract="false" native="false" synchronized="false"
  66609. static="false" final="false" visibility="public"
  66610. deprecated="not deprecated">
  66611. <param name="cls" type="java.lang.Class"/>
  66612. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66613. <doc>
  66614. <![CDATA[Set the {@link Mapper} for the job.
  66615. @param cls the <code>Mapper</code> to use
  66616. @throws IllegalStateException if the job is submitted]]>
  66617. </doc>
  66618. </method>
  66619. <method name="setJarByClass"
  66620. abstract="false" native="false" synchronized="false"
  66621. static="false" final="false" visibility="public"
  66622. deprecated="not deprecated">
  66623. <param name="cls" type="java.lang.Class"/>
  66624. <doc>
  66625. <![CDATA[Set the Jar by finding where a given class came from.
  66626. @param cls the example class]]>
  66627. </doc>
  66628. </method>
  66629. <method name="getJar" return="java.lang.String"
  66630. abstract="false" native="false" synchronized="false"
  66631. static="false" final="false" visibility="public"
  66632. deprecated="not deprecated">
  66633. <doc>
  66634. <![CDATA[Get the pathname of the job's jar.
  66635. @return the pathname]]>
  66636. </doc>
  66637. </method>
  66638. <method name="setCombinerClass"
  66639. abstract="false" native="false" synchronized="false"
  66640. static="false" final="false" visibility="public"
  66641. deprecated="not deprecated">
  66642. <param name="cls" type="java.lang.Class"/>
  66643. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66644. <doc>
  66645. <![CDATA[Set the combiner class for the job.
  66646. @param cls the combiner to use
  66647. @throws IllegalStateException if the job is submitted]]>
  66648. </doc>
  66649. </method>
  66650. <method name="setReducerClass"
  66651. abstract="false" native="false" synchronized="false"
  66652. static="false" final="false" visibility="public"
  66653. deprecated="not deprecated">
  66654. <param name="cls" type="java.lang.Class"/>
  66655. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66656. <doc>
  66657. <![CDATA[Set the {@link Reducer} for the job.
  66658. @param cls the <code>Reducer</code> to use
  66659. @throws IllegalStateException if the job is submitted]]>
  66660. </doc>
  66661. </method>
  66662. <method name="setPartitionerClass"
  66663. abstract="false" native="false" synchronized="false"
  66664. static="false" final="false" visibility="public"
  66665. deprecated="not deprecated">
  66666. <param name="cls" type="java.lang.Class"/>
  66667. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66668. <doc>
  66669. <![CDATA[Set the {@link Partitioner} for the job.
  66670. @param cls the <code>Partitioner</code> to use
  66671. @throws IllegalStateException if the job is submitted]]>
  66672. </doc>
  66673. </method>
  66674. <method name="setMapOutputKeyClass"
  66675. abstract="false" native="false" synchronized="false"
  66676. static="false" final="false" visibility="public"
  66677. deprecated="not deprecated">
  66678. <param name="theClass" type="java.lang.Class"/>
  66679. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66680. <doc>
  66681. <![CDATA[Set the key class for the map output data. This allows the user to
  66682. specify the map output key class to be different than the final output
  66683. value class.
  66684. @param theClass the map output key class.
  66685. @throws IllegalStateException if the job is submitted]]>
  66686. </doc>
  66687. </method>
  66688. <method name="setMapOutputValueClass"
  66689. abstract="false" native="false" synchronized="false"
  66690. static="false" final="false" visibility="public"
  66691. deprecated="not deprecated">
  66692. <param name="theClass" type="java.lang.Class"/>
  66693. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66694. <doc>
  66695. <![CDATA[Set the value class for the map output data. This allows the user to
  66696. specify the map output value class to be different than the final output
  66697. value class.
  66698. @param theClass the map output value class.
  66699. @throws IllegalStateException if the job is submitted]]>
  66700. </doc>
  66701. </method>
  66702. <method name="setOutputKeyClass"
  66703. abstract="false" native="false" synchronized="false"
  66704. static="false" final="false" visibility="public"
  66705. deprecated="not deprecated">
  66706. <param name="theClass" type="java.lang.Class"/>
  66707. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66708. <doc>
  66709. <![CDATA[Set the key class for the job output data.
  66710. @param theClass the key class for the job output data.
  66711. @throws IllegalStateException if the job is submitted]]>
  66712. </doc>
  66713. </method>
  66714. <method name="setOutputValueClass"
  66715. abstract="false" native="false" synchronized="false"
  66716. static="false" final="false" visibility="public"
  66717. deprecated="not deprecated">
  66718. <param name="theClass" type="java.lang.Class"/>
  66719. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66720. <doc>
  66721. <![CDATA[Set the value class for job outputs.
  66722. @param theClass the value class for job outputs.
  66723. @throws IllegalStateException if the job is submitted]]>
  66724. </doc>
  66725. </method>
  66726. <method name="setSortComparatorClass"
  66727. abstract="false" native="false" synchronized="false"
  66728. static="false" final="false" visibility="public"
  66729. deprecated="not deprecated">
  66730. <param name="cls" type="java.lang.Class"/>
  66731. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66732. <doc>
  66733. <![CDATA[Define the comparator that controls how the keys are sorted before they
  66734. are passed to the {@link Reducer}.
  66735. @param cls the raw comparator
  66736. @throws IllegalStateException if the job is submitted]]>
  66737. </doc>
  66738. </method>
  66739. <method name="setGroupingComparatorClass"
  66740. abstract="false" native="false" synchronized="false"
  66741. static="false" final="false" visibility="public"
  66742. deprecated="not deprecated">
  66743. <param name="cls" type="java.lang.Class"/>
  66744. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66745. <doc>
  66746. <![CDATA[Define the comparator that controls which keys are grouped together
  66747. for a single call to
  66748. {@link Reducer#reduce(Object, Iterable,
  66749. org.apache.hadoop.mapreduce.Reducer.Context)}
  66750. @param cls the raw comparator to use
  66751. @throws IllegalStateException if the job is submitted]]>
  66752. </doc>
  66753. </method>
  66754. <method name="setJobName"
  66755. abstract="false" native="false" synchronized="false"
  66756. static="false" final="false" visibility="public"
  66757. deprecated="not deprecated">
  66758. <param name="name" type="java.lang.String"/>
  66759. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  66760. <doc>
  66761. <![CDATA[Set the user-specified job name.
  66762. @param name the job's new name.
  66763. @throws IllegalStateException if the job is submitted]]>
  66764. </doc>
  66765. </method>
  66766. <method name="setSpeculativeExecution"
  66767. abstract="false" native="false" synchronized="false"
  66768. static="false" final="false" visibility="public"
  66769. deprecated="not deprecated">
  66770. <param name="speculativeExecution" type="boolean"/>
  66771. <doc>
  66772. <![CDATA[Turn speculative execution on or off for this job.
  66773. @param speculativeExecution <code>true</code> if speculative execution
  66774. should be turned on, else <code>false</code>.]]>
  66775. </doc>
  66776. </method>
  66777. <method name="setMapSpeculativeExecution"
  66778. abstract="false" native="false" synchronized="false"
  66779. static="false" final="false" visibility="public"
  66780. deprecated="not deprecated">
  66781. <param name="speculativeExecution" type="boolean"/>
  66782. <doc>
  66783. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  66784. @param speculativeExecution <code>true</code> if speculative execution
  66785. should be turned on for map tasks,
  66786. else <code>false</code>.]]>
  66787. </doc>
  66788. </method>
  66789. <method name="setReduceSpeculativeExecution"
  66790. abstract="false" native="false" synchronized="false"
  66791. static="false" final="false" visibility="public"
  66792. deprecated="not deprecated">
  66793. <param name="speculativeExecution" type="boolean"/>
  66794. <doc>
  66795. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  66796. @param speculativeExecution <code>true</code> if speculative execution
  66797. should be turned on for reduce tasks,
  66798. else <code>false</code>.]]>
  66799. </doc>
  66800. </method>
  66801. <method name="getTrackingURL" return="java.lang.String"
  66802. abstract="false" native="false" synchronized="false"
  66803. static="false" final="false" visibility="public"
  66804. deprecated="not deprecated">
  66805. <doc>
  66806. <![CDATA[Get the URL where some job progress information will be displayed.
  66807. @return the URL where some job progress information will be displayed.]]>
  66808. </doc>
  66809. </method>
  66810. <method name="setupProgress" return="float"
  66811. abstract="false" native="false" synchronized="false"
  66812. static="false" final="false" visibility="public"
  66813. deprecated="not deprecated">
  66814. <exception name="IOException" type="java.io.IOException"/>
  66815. <doc>
  66816. <![CDATA[Get the <i>progress</i> of the job's setup, as a float between 0.0
  66817. and 1.0. When the job setup is completed, the function returns 1.0.
  66818. @return the progress of the job's setup.
  66819. @throws IOException]]>
  66820. </doc>
  66821. </method>
  66822. <method name="mapProgress" return="float"
  66823. abstract="false" native="false" synchronized="false"
  66824. static="false" final="false" visibility="public"
  66825. deprecated="not deprecated">
  66826. <exception name="IOException" type="java.io.IOException"/>
  66827. <doc>
  66828. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  66829. and 1.0. When all map tasks have completed, the function returns 1.0.
  66830. @return the progress of the job's map-tasks.
  66831. @throws IOException]]>
  66832. </doc>
  66833. </method>
  66834. <method name="reduceProgress" return="float"
  66835. abstract="false" native="false" synchronized="false"
  66836. static="false" final="false" visibility="public"
  66837. deprecated="not deprecated">
  66838. <exception name="IOException" type="java.io.IOException"/>
  66839. <doc>
  66840. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  66841. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  66842. @return the progress of the job's reduce-tasks.
  66843. @throws IOException]]>
  66844. </doc>
  66845. </method>
  66846. <method name="isComplete" return="boolean"
  66847. abstract="false" native="false" synchronized="false"
  66848. static="false" final="false" visibility="public"
  66849. deprecated="not deprecated">
  66850. <exception name="IOException" type="java.io.IOException"/>
  66851. <doc>
  66852. <![CDATA[Check if the job is finished or not.
  66853. This is a non-blocking call.
  66854. @return <code>true</code> if the job is complete, else <code>false</code>.
  66855. @throws IOException]]>
  66856. </doc>
  66857. </method>
  66858. <method name="isSuccessful" return="boolean"
  66859. abstract="false" native="false" synchronized="false"
  66860. static="false" final="false" visibility="public"
  66861. deprecated="not deprecated">
  66862. <exception name="IOException" type="java.io.IOException"/>
  66863. <doc>
  66864. <![CDATA[Check if the job completed successfully.
  66865. @return <code>true</code> if the job succeeded, else <code>false</code>.
  66866. @throws IOException]]>
  66867. </doc>
  66868. </method>
  66869. <method name="killJob"
  66870. abstract="false" native="false" synchronized="false"
  66871. static="false" final="false" visibility="public"
  66872. deprecated="not deprecated">
  66873. <exception name="IOException" type="java.io.IOException"/>
  66874. <doc>
  66875. <![CDATA[Kill the running job. Blocks until all job tasks have been
  66876. killed as well. If the job is no longer running, it simply returns.
  66877. @throws IOException]]>
  66878. </doc>
  66879. </method>
  66880. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  66881. abstract="false" native="false" synchronized="false"
  66882. static="false" final="false" visibility="public"
  66883. deprecated="not deprecated">
  66884. <param name="startFrom" type="int"/>
  66885. <exception name="IOException" type="java.io.IOException"/>
  66886. <doc>
  66887. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  66888. @param startFrom index to start fetching events from
  66889. @return an array of {@link TaskCompletionEvent}s
  66890. @throws IOException]]>
  66891. </doc>
  66892. </method>
  66893. <method name="killTask"
  66894. abstract="false" native="false" synchronized="false"
  66895. static="false" final="false" visibility="public"
  66896. deprecated="not deprecated">
  66897. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  66898. <exception name="IOException" type="java.io.IOException"/>
  66899. <doc>
  66900. <![CDATA[Kill indicated task attempt.
  66901. @param taskId the id of the task to be terminated.
  66902. @throws IOException]]>
  66903. </doc>
  66904. </method>
  66905. <method name="failTask"
  66906. abstract="false" native="false" synchronized="false"
  66907. static="false" final="false" visibility="public"
  66908. deprecated="not deprecated">
  66909. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  66910. <exception name="IOException" type="java.io.IOException"/>
  66911. <doc>
  66912. <![CDATA[Fail indicated task attempt.
  66913. @param taskId the id of the task to be terminated.
  66914. @throws IOException]]>
  66915. </doc>
  66916. </method>
  66917. <method name="getCounters" return="org.apache.hadoop.mapreduce.Counters"
  66918. abstract="false" native="false" synchronized="false"
  66919. static="false" final="false" visibility="public"
  66920. deprecated="not deprecated">
  66921. <exception name="IOException" type="java.io.IOException"/>
  66922. <doc>
  66923. <![CDATA[Gets the counters for this job.
  66924. @return the counters for this job.
  66925. @throws IOException]]>
  66926. </doc>
  66927. </method>
  66928. <method name="setCancelDelegationTokenUponJobCompletion"
  66929. abstract="false" native="false" synchronized="false"
  66930. static="false" final="false" visibility="public"
  66931. deprecated="not deprecated">
  66932. <param name="value" type="boolean"/>
  66933. <doc>
  66934. <![CDATA[Sets the flag that will allow the JobTracker to cancel the HDFS delegation
  66935. tokens upon job completion. Defaults to true.]]>
  66936. </doc>
  66937. </method>
  66938. <method name="submit"
  66939. abstract="false" native="false" synchronized="false"
  66940. static="false" final="false" visibility="public"
  66941. deprecated="not deprecated">
  66942. <exception name="IOException" type="java.io.IOException"/>
  66943. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66944. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  66945. <doc>
  66946. <![CDATA[Submit the job to the cluster and return immediately.
  66947. @throws IOException]]>
  66948. </doc>
  66949. </method>
  66950. <method name="waitForCompletion" return="boolean"
  66951. abstract="false" native="false" synchronized="false"
  66952. static="false" final="false" visibility="public"
  66953. deprecated="not deprecated">
  66954. <param name="verbose" type="boolean"/>
  66955. <exception name="IOException" type="java.io.IOException"/>
  66956. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66957. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  66958. <doc>
  66959. <![CDATA[Submit the job to the cluster and wait for it to finish.
  66960. @param verbose print the progress to the user
  66961. @return true if the job succeeded
  66962. @throws IOException thrown if the communication with the
  66963. <code>JobTracker</code> is lost]]>
  66964. </doc>
  66965. </method>
  66966. <doc>
  66967. <![CDATA[The job submitter's view of the Job. It allows the user to configure the
  66968. job, submit it, control its execution, and query the state. The set methods
  66969. only work until the job is submitted, afterwards they will throw an
  66970. IllegalStateException.]]>
  66971. </doc>
  66972. </class>
  66973. <!-- end class org.apache.hadoop.mapreduce.Job -->
  66974. <!-- start class org.apache.hadoop.mapreduce.Job.JobState -->
  66975. <class name="Job.JobState" extends="java.lang.Enum"
  66976. abstract="false"
  66977. static="true" final="true" visibility="public"
  66978. deprecated="not deprecated">
  66979. <method name="values" return="org.apache.hadoop.mapreduce.Job.JobState[]"
  66980. abstract="false" native="false" synchronized="false"
  66981. static="true" final="false" visibility="public"
  66982. deprecated="not deprecated">
  66983. </method>
  66984. <method name="valueOf" return="org.apache.hadoop.mapreduce.Job.JobState"
  66985. abstract="false" native="false" synchronized="false"
  66986. static="true" final="false" visibility="public"
  66987. deprecated="not deprecated">
  66988. <param name="name" type="java.lang.String"/>
  66989. </method>
  66990. <field name="DEFINE" type="org.apache.hadoop.mapreduce.Job.JobState"
  66991. transient="false" volatile="false"
  66992. static="true" final="true" visibility="public"
  66993. deprecated="not deprecated">
  66994. </field>
  66995. <field name="RUNNING" type="org.apache.hadoop.mapreduce.Job.JobState"
  66996. transient="false" volatile="false"
  66997. static="true" final="true" visibility="public"
  66998. deprecated="not deprecated">
  66999. </field>
  67000. </class>
  67001. <!-- end class org.apache.hadoop.mapreduce.Job.JobState -->
  67002. <!-- start class org.apache.hadoop.mapreduce.JobACL -->
  67003. <class name="JobACL" extends="java.lang.Enum"
  67004. abstract="false"
  67005. static="false" final="true" visibility="public"
  67006. deprecated="not deprecated">
  67007. <method name="values" return="org.apache.hadoop.mapreduce.JobACL[]"
  67008. abstract="false" native="false" synchronized="false"
  67009. static="true" final="false" visibility="public"
  67010. deprecated="not deprecated">
  67011. </method>
  67012. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobACL"
  67013. abstract="false" native="false" synchronized="false"
  67014. static="true" final="false" visibility="public"
  67015. deprecated="not deprecated">
  67016. <param name="name" type="java.lang.String"/>
  67017. </method>
  67018. <method name="getAclName" return="java.lang.String"
  67019. abstract="false" native="false" synchronized="false"
  67020. static="false" final="false" visibility="public"
  67021. deprecated="not deprecated">
  67022. <doc>
  67023. <![CDATA[Get the name of the ACL. Here it is same as the name of the configuration
  67024. property for specifying the ACL for the job.
  67025. @return aclName]]>
  67026. </doc>
  67027. </method>
  67028. <field name="VIEW_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  67029. transient="false" volatile="false"
  67030. static="true" final="true" visibility="public"
  67031. deprecated="not deprecated">
  67032. <doc>
  67033. <![CDATA[ACL for 'viewing' job. Dictates who can 'view' some or all of the job
  67034. related details.]]>
  67035. </doc>
  67036. </field>
  67037. <field name="MODIFY_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  67038. transient="false" volatile="false"
  67039. static="true" final="true" visibility="public"
  67040. deprecated="not deprecated">
  67041. <doc>
  67042. <![CDATA[ACL for 'modifying' job. Dictates who can 'modify' the job for e.g., by
  67043. killing the job, killing/failing a task of the job or setting priority of
  67044. the job.]]>
  67045. </doc>
  67046. </field>
  67047. <doc>
  67048. <![CDATA[Job related ACLs]]>
  67049. </doc>
  67050. </class>
  67051. <!-- end class org.apache.hadoop.mapreduce.JobACL -->
  67052. <!-- start class org.apache.hadoop.mapreduce.JobContext -->
  67053. <class name="JobContext" extends="java.lang.Object"
  67054. abstract="false"
  67055. static="false" final="false" visibility="public"
  67056. deprecated="not deprecated">
  67057. <constructor name="JobContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.JobID"
  67058. static="false" final="false" visibility="public"
  67059. deprecated="not deprecated">
  67060. </constructor>
  67061. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  67062. abstract="false" native="false" synchronized="false"
  67063. static="false" final="false" visibility="public"
  67064. deprecated="not deprecated">
  67065. <doc>
  67066. <![CDATA[Return the configuration for the job.
  67067. @return the shared configuration object]]>
  67068. </doc>
  67069. </method>
  67070. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  67071. abstract="false" native="false" synchronized="false"
  67072. static="false" final="false" visibility="public"
  67073. deprecated="not deprecated">
  67074. <doc>
  67075. <![CDATA[Get credentials for the job.
  67076. @return credentials for the job]]>
  67077. </doc>
  67078. </method>
  67079. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  67080. abstract="false" native="false" synchronized="false"
  67081. static="false" final="false" visibility="public"
  67082. deprecated="not deprecated">
  67083. <doc>
  67084. <![CDATA[Get the unique ID for the job.
  67085. @return the object with the job id]]>
  67086. </doc>
  67087. </method>
  67088. <method name="getNumReduceTasks" return="int"
  67089. abstract="false" native="false" synchronized="false"
  67090. static="false" final="false" visibility="public"
  67091. deprecated="not deprecated">
  67092. <doc>
  67093. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  67094. <code>1</code>.
  67095. @return the number of reduce tasks for this job.]]>
  67096. </doc>
  67097. </method>
  67098. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  67099. abstract="false" native="false" synchronized="false"
  67100. static="false" final="false" visibility="public"
  67101. deprecated="not deprecated">
  67102. <exception name="IOException" type="java.io.IOException"/>
  67103. <doc>
  67104. <![CDATA[Get the current working directory for the default file system.
  67105. @return the directory name.]]>
  67106. </doc>
  67107. </method>
  67108. <method name="getOutputKeyClass" return="java.lang.Class"
  67109. abstract="false" native="false" synchronized="false"
  67110. static="false" final="false" visibility="public"
  67111. deprecated="not deprecated">
  67112. <doc>
  67113. <![CDATA[Get the key class for the job output data.
  67114. @return the key class for the job output data.]]>
  67115. </doc>
  67116. </method>
  67117. <method name="getOutputValueClass" return="java.lang.Class"
  67118. abstract="false" native="false" synchronized="false"
  67119. static="false" final="false" visibility="public"
  67120. deprecated="not deprecated">
  67121. <doc>
  67122. <![CDATA[Get the value class for job outputs.
  67123. @return the value class for job outputs.]]>
  67124. </doc>
  67125. </method>
  67126. <method name="getMapOutputKeyClass" return="java.lang.Class"
  67127. abstract="false" native="false" synchronized="false"
  67128. static="false" final="false" visibility="public"
  67129. deprecated="not deprecated">
  67130. <doc>
  67131. <![CDATA[Get the key class for the map output data. If it is not set, use the
  67132. (final) output key class. This allows the map output key class to be
  67133. different than the final output key class.
  67134. @return the map output key class.]]>
  67135. </doc>
  67136. </method>
  67137. <method name="getMapOutputValueClass" return="java.lang.Class"
  67138. abstract="false" native="false" synchronized="false"
  67139. static="false" final="false" visibility="public"
  67140. deprecated="not deprecated">
  67141. <doc>
  67142. <![CDATA[Get the value class for the map output data. If it is not set, use the
  67143. (final) output value class This allows the map output value class to be
  67144. different than the final output value class.
  67145. @return the map output value class.]]>
  67146. </doc>
  67147. </method>
  67148. <method name="getJobName" return="java.lang.String"
  67149. abstract="false" native="false" synchronized="false"
  67150. static="false" final="false" visibility="public"
  67151. deprecated="not deprecated">
  67152. <doc>
  67153. <![CDATA[Get the user-specified job name. This is only used to identify the
  67154. job to the user.
  67155. @return the job's name, defaulting to "".]]>
  67156. </doc>
  67157. </method>
  67158. <method name="getInputFormatClass" return="java.lang.Class"
  67159. abstract="false" native="false" synchronized="false"
  67160. static="false" final="false" visibility="public"
  67161. deprecated="not deprecated">
  67162. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67163. <doc>
  67164. <![CDATA[Get the {@link InputFormat} class for the job.
  67165. @return the {@link InputFormat} class for the job.]]>
  67166. </doc>
  67167. </method>
  67168. <method name="getMapperClass" return="java.lang.Class"
  67169. abstract="false" native="false" synchronized="false"
  67170. static="false" final="false" visibility="public"
  67171. deprecated="not deprecated">
  67172. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67173. <doc>
  67174. <![CDATA[Get the {@link Mapper} class for the job.
  67175. @return the {@link Mapper} class for the job.]]>
  67176. </doc>
  67177. </method>
  67178. <method name="getCombinerClass" return="java.lang.Class"
  67179. abstract="false" native="false" synchronized="false"
  67180. static="false" final="false" visibility="public"
  67181. deprecated="not deprecated">
  67182. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67183. <doc>
  67184. <![CDATA[Get the combiner class for the job.
  67185. @return the combiner class for the job.]]>
  67186. </doc>
  67187. </method>
  67188. <method name="getReducerClass" return="java.lang.Class"
  67189. abstract="false" native="false" synchronized="false"
  67190. static="false" final="false" visibility="public"
  67191. deprecated="not deprecated">
  67192. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67193. <doc>
  67194. <![CDATA[Get the {@link Reducer} class for the job.
  67195. @return the {@link Reducer} class for the job.]]>
  67196. </doc>
  67197. </method>
  67198. <method name="getOutputFormatClass" return="java.lang.Class"
  67199. abstract="false" native="false" synchronized="false"
  67200. static="false" final="false" visibility="public"
  67201. deprecated="not deprecated">
  67202. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67203. <doc>
  67204. <![CDATA[Get the {@link OutputFormat} class for the job.
  67205. @return the {@link OutputFormat} class for the job.]]>
  67206. </doc>
  67207. </method>
  67208. <method name="getPartitionerClass" return="java.lang.Class"
  67209. abstract="false" native="false" synchronized="false"
  67210. static="false" final="false" visibility="public"
  67211. deprecated="not deprecated">
  67212. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  67213. <doc>
  67214. <![CDATA[Get the {@link Partitioner} class for the job.
  67215. @return the {@link Partitioner} class for the job.]]>
  67216. </doc>
  67217. </method>
  67218. <method name="getSortComparator" return="org.apache.hadoop.io.RawComparator"
  67219. abstract="false" native="false" synchronized="false"
  67220. static="false" final="false" visibility="public"
  67221. deprecated="not deprecated">
  67222. <doc>
  67223. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  67224. @return the {@link RawComparator} comparator used to compare keys.]]>
  67225. </doc>
  67226. </method>
  67227. <method name="getJar" return="java.lang.String"
  67228. abstract="false" native="false" synchronized="false"
  67229. static="false" final="false" visibility="public"
  67230. deprecated="not deprecated">
  67231. <doc>
  67232. <![CDATA[Get the pathname of the job's jar.
  67233. @return the pathname]]>
  67234. </doc>
  67235. </method>
  67236. <method name="getGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  67237. abstract="false" native="false" synchronized="false"
  67238. static="false" final="false" visibility="public"
  67239. deprecated="not deprecated">
  67240. <doc>
  67241. <![CDATA[Get the user defined {@link RawComparator} comparator for
  67242. grouping keys of inputs to the reduce.
  67243. @return comparator set by the user for grouping values.
  67244. @see Job#setGroupingComparatorClass(Class) for details.]]>
  67245. </doc>
  67246. </method>
  67247. <field name="INPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  67248. transient="false" volatile="false"
  67249. static="true" final="true" visibility="protected"
  67250. deprecated="not deprecated">
  67251. </field>
  67252. <field name="MAP_CLASS_ATTR" type="java.lang.String"
  67253. transient="false" volatile="false"
  67254. static="true" final="true" visibility="protected"
  67255. deprecated="not deprecated">
  67256. </field>
  67257. <field name="COMBINE_CLASS_ATTR" type="java.lang.String"
  67258. transient="false" volatile="false"
  67259. static="true" final="true" visibility="protected"
  67260. deprecated="not deprecated">
  67261. </field>
  67262. <field name="REDUCE_CLASS_ATTR" type="java.lang.String"
  67263. transient="false" volatile="false"
  67264. static="true" final="true" visibility="protected"
  67265. deprecated="not deprecated">
  67266. </field>
  67267. <field name="OUTPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  67268. transient="false" volatile="false"
  67269. static="true" final="true" visibility="protected"
  67270. deprecated="not deprecated">
  67271. </field>
  67272. <field name="PARTITIONER_CLASS_ATTR" type="java.lang.String"
  67273. transient="false" volatile="false"
  67274. static="true" final="true" visibility="protected"
  67275. deprecated="not deprecated">
  67276. </field>
  67277. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  67278. transient="false" volatile="false"
  67279. static="false" final="true" visibility="protected"
  67280. deprecated="not deprecated">
  67281. </field>
  67282. <field name="credentials" type="org.apache.hadoop.security.Credentials"
  67283. transient="false" volatile="false"
  67284. static="false" final="true" visibility="protected"
  67285. deprecated="not deprecated">
  67286. </field>
  67287. <field name="JOB_NAMENODES" type="java.lang.String"
  67288. transient="false" volatile="false"
  67289. static="true" final="true" visibility="public"
  67290. deprecated="not deprecated">
  67291. </field>
  67292. <field name="JOB_ACL_VIEW_JOB" type="java.lang.String"
  67293. transient="false" volatile="false"
  67294. static="true" final="true" visibility="public"
  67295. deprecated="not deprecated">
  67296. </field>
  67297. <field name="JOB_ACL_MODIFY_JOB" type="java.lang.String"
  67298. transient="false" volatile="false"
  67299. static="true" final="true" visibility="public"
  67300. deprecated="not deprecated">
  67301. </field>
  67302. <field name="CACHE_FILE_VISIBILITIES" type="java.lang.String"
  67303. transient="false" volatile="false"
  67304. static="true" final="true" visibility="public"
  67305. deprecated="not deprecated">
  67306. </field>
  67307. <field name="CACHE_ARCHIVES_VISIBILITIES" type="java.lang.String"
  67308. transient="false" volatile="false"
  67309. static="true" final="true" visibility="public"
  67310. deprecated="not deprecated">
  67311. </field>
  67312. <field name="JOB_CANCEL_DELEGATION_TOKEN" type="java.lang.String"
  67313. transient="false" volatile="false"
  67314. static="true" final="true" visibility="public"
  67315. deprecated="not deprecated">
  67316. </field>
  67317. <field name="USER_LOG_RETAIN_HOURS" type="java.lang.String"
  67318. transient="false" volatile="false"
  67319. static="true" final="true" visibility="public"
  67320. deprecated="not deprecated">
  67321. </field>
  67322. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  67323. transient="false" volatile="false"
  67324. static="false" final="false" visibility="protected"
  67325. deprecated="not deprecated">
  67326. <doc>
  67327. <![CDATA[The UserGroupInformation object that has a reference to the current user]]>
  67328. </doc>
  67329. </field>
  67330. <doc>
  67331. <![CDATA[A read-only view of the job that is provided to the tasks while they
  67332. are running.]]>
  67333. </doc>
  67334. </class>
  67335. <!-- end class org.apache.hadoop.mapreduce.JobContext -->
  67336. <!-- start class org.apache.hadoop.mapreduce.JobID -->
  67337. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  67338. abstract="false"
  67339. static="false" final="false" visibility="public"
  67340. deprecated="not deprecated">
  67341. <implements name="java.lang.Comparable"/>
  67342. <constructor name="JobID" type="java.lang.String, int"
  67343. static="false" final="false" visibility="public"
  67344. deprecated="not deprecated">
  67345. <doc>
  67346. <![CDATA[Constructs a JobID object
  67347. @param jtIdentifier jobTracker identifier
  67348. @param id job number]]>
  67349. </doc>
  67350. </constructor>
  67351. <constructor name="JobID"
  67352. static="false" final="false" visibility="public"
  67353. deprecated="not deprecated">
  67354. </constructor>
  67355. <method name="getJtIdentifier" return="java.lang.String"
  67356. abstract="false" native="false" synchronized="false"
  67357. static="false" final="false" visibility="public"
  67358. deprecated="not deprecated">
  67359. </method>
  67360. <method name="equals" return="boolean"
  67361. abstract="false" native="false" synchronized="false"
  67362. static="false" final="false" visibility="public"
  67363. deprecated="not deprecated">
  67364. <param name="o" type="java.lang.Object"/>
  67365. </method>
  67366. <method name="compareTo" return="int"
  67367. abstract="false" native="false" synchronized="false"
  67368. static="false" final="false" visibility="public"
  67369. deprecated="not deprecated">
  67370. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  67371. <doc>
  67372. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  67373. </doc>
  67374. </method>
  67375. <method name="appendTo" return="java.lang.StringBuilder"
  67376. abstract="false" native="false" synchronized="false"
  67377. static="false" final="false" visibility="public"
  67378. deprecated="not deprecated">
  67379. <param name="builder" type="java.lang.StringBuilder"/>
  67380. <doc>
  67381. <![CDATA[Add the stuff after the "job" prefix to the given builder. This is useful,
  67382. because the sub-ids use this substring at the start of their string.
  67383. @param builder the builder to append to
  67384. @return the builder that was passed in]]>
  67385. </doc>
  67386. </method>
  67387. <method name="hashCode" return="int"
  67388. abstract="false" native="false" synchronized="false"
  67389. static="false" final="false" visibility="public"
  67390. deprecated="not deprecated">
  67391. </method>
  67392. <method name="toString" return="java.lang.String"
  67393. abstract="false" native="false" synchronized="false"
  67394. static="false" final="false" visibility="public"
  67395. deprecated="not deprecated">
  67396. </method>
  67397. <method name="readFields"
  67398. abstract="false" native="false" synchronized="false"
  67399. static="false" final="false" visibility="public"
  67400. deprecated="not deprecated">
  67401. <param name="in" type="java.io.DataInput"/>
  67402. <exception name="IOException" type="java.io.IOException"/>
  67403. </method>
  67404. <method name="write"
  67405. abstract="false" native="false" synchronized="false"
  67406. static="false" final="false" visibility="public"
  67407. deprecated="not deprecated">
  67408. <param name="out" type="java.io.DataOutput"/>
  67409. <exception name="IOException" type="java.io.IOException"/>
  67410. </method>
  67411. <method name="forName" return="org.apache.hadoop.mapreduce.JobID"
  67412. abstract="false" native="false" synchronized="false"
  67413. static="true" final="false" visibility="public"
  67414. deprecated="not deprecated">
  67415. <param name="str" type="java.lang.String"/>
  67416. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  67417. <doc>
  67418. <![CDATA[Construct a JobId object from given string
  67419. @return constructed JobId object or null if the given String is null
  67420. @throws IllegalArgumentException if the given string is malformed]]>
  67421. </doc>
  67422. </method>
  67423. <field name="JOB" type="java.lang.String"
  67424. transient="false" volatile="false"
  67425. static="true" final="true" visibility="protected"
  67426. deprecated="not deprecated">
  67427. </field>
  67428. <field name="JOBID_REGEX" type="java.lang.String"
  67429. transient="false" volatile="false"
  67430. static="true" final="true" visibility="public"
  67431. deprecated="not deprecated">
  67432. </field>
  67433. <field name="idFormat" type="java.text.NumberFormat"
  67434. transient="false" volatile="false"
  67435. static="true" final="true" visibility="protected"
  67436. deprecated="not deprecated">
  67437. </field>
  67438. <doc>
  67439. <![CDATA[JobID represents the immutable and unique identifier for
  67440. the job. JobID consists of two parts. First part
  67441. represents the jobtracker identifier, so that jobID to jobtracker map
  67442. is defined. For cluster setup this string is the jobtracker
  67443. start time, for local setting, it is "local".
  67444. Second part of the JobID is the job number. <br>
  67445. An example JobID is :
  67446. <code>job_200707121733_0003</code> , which represents the third job
  67447. running at the jobtracker started at <code>200707121733</code>.
  67448. <p>
  67449. Applications should never construct or parse JobID strings, but rather
  67450. use appropriate constructors or {@link #forName(String)} method.
  67451. @see TaskID
  67452. @see TaskAttemptID
  67453. @see org.apache.hadoop.mapred.JobTracker#getNewJobId()
  67454. @see org.apache.hadoop.mapred.JobTracker#getStartTime()]]>
  67455. </doc>
  67456. </class>
  67457. <!-- end class org.apache.hadoop.mapreduce.JobID -->
  67458. <!-- start class org.apache.hadoop.mapreduce.JobStatus -->
  67459. <class name="JobStatus" extends="java.lang.Object"
  67460. abstract="false"
  67461. static="false" final="false" visibility="public"
  67462. deprecated="not deprecated">
  67463. <constructor name="JobStatus"
  67464. static="false" final="false" visibility="public"
  67465. deprecated="not deprecated">
  67466. </constructor>
  67467. <doc>
  67468. <![CDATA[Describes the current status of a job.]]>
  67469. </doc>
  67470. </class>
  67471. <!-- end class org.apache.hadoop.mapreduce.JobStatus -->
  67472. <!-- start class org.apache.hadoop.mapreduce.JobStatus.State -->
  67473. <class name="JobStatus.State" extends="java.lang.Enum"
  67474. abstract="false"
  67475. static="true" final="true" visibility="public"
  67476. deprecated="not deprecated">
  67477. <method name="values" return="org.apache.hadoop.mapreduce.JobStatus.State[]"
  67478. abstract="false" native="false" synchronized="false"
  67479. static="true" final="false" visibility="public"
  67480. deprecated="not deprecated">
  67481. </method>
  67482. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobStatus.State"
  67483. abstract="false" native="false" synchronized="false"
  67484. static="true" final="false" visibility="public"
  67485. deprecated="not deprecated">
  67486. <param name="name" type="java.lang.String"/>
  67487. </method>
  67488. <method name="getValue" return="int"
  67489. abstract="false" native="false" synchronized="false"
  67490. static="false" final="false" visibility="public"
  67491. deprecated="not deprecated">
  67492. </method>
  67493. <field name="RUNNING" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67494. transient="false" volatile="false"
  67495. static="true" final="true" visibility="public"
  67496. deprecated="not deprecated">
  67497. </field>
  67498. <field name="SUCCEEDED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67499. transient="false" volatile="false"
  67500. static="true" final="true" visibility="public"
  67501. deprecated="not deprecated">
  67502. </field>
  67503. <field name="FAILED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67504. transient="false" volatile="false"
  67505. static="true" final="true" visibility="public"
  67506. deprecated="not deprecated">
  67507. </field>
  67508. <field name="PREP" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67509. transient="false" volatile="false"
  67510. static="true" final="true" visibility="public"
  67511. deprecated="not deprecated">
  67512. </field>
  67513. <field name="KILLED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  67514. transient="false" volatile="false"
  67515. static="true" final="true" visibility="public"
  67516. deprecated="not deprecated">
  67517. </field>
  67518. <doc>
  67519. <![CDATA[Current state of the job]]>
  67520. </doc>
  67521. </class>
  67522. <!-- end class org.apache.hadoop.mapreduce.JobStatus.State -->
  67523. <!-- start class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  67524. <class name="JobSubmissionFiles" extends="java.lang.Object"
  67525. abstract="false"
  67526. static="false" final="false" visibility="public"
  67527. deprecated="not deprecated">
  67528. <constructor name="JobSubmissionFiles"
  67529. static="false" final="false" visibility="public"
  67530. deprecated="not deprecated">
  67531. </constructor>
  67532. <method name="getJobSplitFile" return="org.apache.hadoop.fs.Path"
  67533. abstract="false" native="false" synchronized="false"
  67534. static="true" final="false" visibility="public"
  67535. deprecated="not deprecated">
  67536. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  67537. </method>
  67538. <method name="getJobSplitMetaFile" return="org.apache.hadoop.fs.Path"
  67539. abstract="false" native="false" synchronized="false"
  67540. static="true" final="false" visibility="public"
  67541. deprecated="not deprecated">
  67542. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  67543. </method>
  67544. <method name="getJobConfPath" return="org.apache.hadoop.fs.Path"
  67545. abstract="false" native="false" synchronized="false"
  67546. static="true" final="false" visibility="public"
  67547. deprecated="not deprecated">
  67548. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67549. <doc>
  67550. <![CDATA[Get the job conf path.]]>
  67551. </doc>
  67552. </method>
  67553. <method name="getJobJar" return="org.apache.hadoop.fs.Path"
  67554. abstract="false" native="false" synchronized="false"
  67555. static="true" final="false" visibility="public"
  67556. deprecated="not deprecated">
  67557. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67558. <doc>
  67559. <![CDATA[Get the job jar path.]]>
  67560. </doc>
  67561. </method>
  67562. <method name="getJobDistCacheFiles" return="org.apache.hadoop.fs.Path"
  67563. abstract="false" native="false" synchronized="false"
  67564. static="true" final="false" visibility="public"
  67565. deprecated="not deprecated">
  67566. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67567. <doc>
  67568. <![CDATA[Get the job distributed cache files path.
  67569. @param jobSubmitDir]]>
  67570. </doc>
  67571. </method>
  67572. <method name="getJobDistCacheArchives" return="org.apache.hadoop.fs.Path"
  67573. abstract="false" native="false" synchronized="false"
  67574. static="true" final="false" visibility="public"
  67575. deprecated="not deprecated">
  67576. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67577. <doc>
  67578. <![CDATA[Get the job distributed cache archives path.
  67579. @param jobSubmitDir]]>
  67580. </doc>
  67581. </method>
  67582. <method name="getJobDistCacheLibjars" return="org.apache.hadoop.fs.Path"
  67583. abstract="false" native="false" synchronized="false"
  67584. static="true" final="false" visibility="public"
  67585. deprecated="not deprecated">
  67586. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  67587. <doc>
  67588. <![CDATA[Get the job distributed cache libjars path.
  67589. @param jobSubmitDir]]>
  67590. </doc>
  67591. </method>
  67592. <method name="getStagingDir" return="org.apache.hadoop.fs.Path"
  67593. abstract="false" native="false" synchronized="false"
  67594. static="true" final="false" visibility="public"
  67595. deprecated="not deprecated">
  67596. <param name="client" type="org.apache.hadoop.mapred.JobClient"/>
  67597. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67598. <exception name="IOException" type="java.io.IOException"/>
  67599. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67600. <doc>
  67601. <![CDATA[Initializes the staging directory and returns the path. It also
  67602. keeps track of all necessary ownership & permissions
  67603. @param client
  67604. @param conf]]>
  67605. </doc>
  67606. </method>
  67607. <field name="JOB_DIR_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  67608. transient="false" volatile="false"
  67609. static="true" final="true" visibility="public"
  67610. deprecated="not deprecated">
  67611. </field>
  67612. <field name="JOB_FILE_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  67613. transient="false" volatile="false"
  67614. static="true" final="true" visibility="public"
  67615. deprecated="not deprecated">
  67616. </field>
  67617. <doc>
  67618. <![CDATA[A utility to manage job submission files.<br/>
  67619. <b><i>Note that this class is for framework internal usage only and is
  67620. not to be used by users directly.</i></b>]]>
  67621. </doc>
  67622. </class>
  67623. <!-- end class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  67624. <!-- start class org.apache.hadoop.mapreduce.MapContext -->
  67625. <class name="MapContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  67626. abstract="false"
  67627. static="false" final="false" visibility="public"
  67628. deprecated="not deprecated">
  67629. <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"
  67630. static="false" final="false" visibility="public"
  67631. deprecated="not deprecated">
  67632. </constructor>
  67633. <method name="getInputSplit" return="org.apache.hadoop.mapreduce.InputSplit"
  67634. abstract="false" native="false" synchronized="false"
  67635. static="false" final="false" visibility="public"
  67636. deprecated="not deprecated">
  67637. <doc>
  67638. <![CDATA[Get the input split for this map.]]>
  67639. </doc>
  67640. </method>
  67641. <method name="getCurrentKey" return="java.lang.Object"
  67642. abstract="false" native="false" synchronized="false"
  67643. static="false" final="false" visibility="public"
  67644. deprecated="not deprecated">
  67645. <exception name="IOException" type="java.io.IOException"/>
  67646. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67647. </method>
  67648. <method name="getCurrentValue" return="java.lang.Object"
  67649. abstract="false" native="false" synchronized="false"
  67650. static="false" final="false" visibility="public"
  67651. deprecated="not deprecated">
  67652. <exception name="IOException" type="java.io.IOException"/>
  67653. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67654. </method>
  67655. <method name="nextKeyValue" return="boolean"
  67656. abstract="false" native="false" synchronized="false"
  67657. static="false" final="false" visibility="public"
  67658. deprecated="not deprecated">
  67659. <exception name="IOException" type="java.io.IOException"/>
  67660. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67661. </method>
  67662. <doc>
  67663. <![CDATA[The context that is given to the {@link Mapper}.
  67664. @param <KEYIN> the key input type to the Mapper
  67665. @param <VALUEIN> the value input type to the Mapper
  67666. @param <KEYOUT> the key output type from the Mapper
  67667. @param <VALUEOUT> the value output type from the Mapper]]>
  67668. </doc>
  67669. </class>
  67670. <!-- end class org.apache.hadoop.mapreduce.MapContext -->
  67671. <!-- start class org.apache.hadoop.mapreduce.Mapper -->
  67672. <class name="Mapper" extends="java.lang.Object"
  67673. abstract="false"
  67674. static="false" final="false" visibility="public"
  67675. deprecated="not deprecated">
  67676. <constructor name="Mapper"
  67677. static="false" final="false" visibility="public"
  67678. deprecated="not deprecated">
  67679. </constructor>
  67680. <method name="setup"
  67681. abstract="false" native="false" synchronized="false"
  67682. static="false" final="false" visibility="protected"
  67683. deprecated="not deprecated">
  67684. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67685. <exception name="IOException" type="java.io.IOException"/>
  67686. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67687. <doc>
  67688. <![CDATA[Called once at the beginning of the task.]]>
  67689. </doc>
  67690. </method>
  67691. <method name="map"
  67692. abstract="false" native="false" synchronized="false"
  67693. static="false" final="false" visibility="protected"
  67694. deprecated="not deprecated">
  67695. <param name="key" type="java.lang.Object"/>
  67696. <param name="value" type="java.lang.Object"/>
  67697. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67698. <exception name="IOException" type="java.io.IOException"/>
  67699. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67700. <doc>
  67701. <![CDATA[Called once for each key/value pair in the input split. Most applications
  67702. should override this, but the default is the identity function.]]>
  67703. </doc>
  67704. </method>
  67705. <method name="cleanup"
  67706. abstract="false" native="false" synchronized="false"
  67707. static="false" final="false" visibility="protected"
  67708. deprecated="not deprecated">
  67709. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67710. <exception name="IOException" type="java.io.IOException"/>
  67711. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67712. <doc>
  67713. <![CDATA[Called once at the end of the task.]]>
  67714. </doc>
  67715. </method>
  67716. <method name="run"
  67717. abstract="false" native="false" synchronized="false"
  67718. static="false" final="false" visibility="public"
  67719. deprecated="not deprecated">
  67720. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67721. <exception name="IOException" type="java.io.IOException"/>
  67722. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67723. <doc>
  67724. <![CDATA[Expert users can override this method for more complete control over the
  67725. execution of the Mapper.
  67726. @param context
  67727. @throws IOException]]>
  67728. </doc>
  67729. </method>
  67730. <doc>
  67731. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  67732. <p>Maps are the individual tasks which transform input records into a
  67733. intermediate records. The transformed intermediate records need not be of
  67734. the same type as the input records. A given input pair may map to zero or
  67735. many output pairs.</p>
  67736. <p>The Hadoop Map-Reduce framework spawns one map task for each
  67737. {@link InputSplit} generated by the {@link InputFormat} for the job.
  67738. <code>Mapper</code> implementations can access the {@link Configuration} for
  67739. the job via the {@link JobContext#getConfiguration()}.
  67740. <p>The framework first calls
  67741. {@link #setup(org.apache.hadoop.mapreduce.Mapper.Context)}, followed by
  67742. {@link #map(Object, Object, Context)}
  67743. for each key/value pair in the <code>InputSplit</code>. Finally
  67744. {@link #cleanup(Context)} is called.</p>
  67745. <p>All intermediate values associated with a given output key are
  67746. subsequently grouped by the framework, and passed to a {@link Reducer} to
  67747. determine the final output. Users can control the sorting and grouping by
  67748. specifying two key {@link RawComparator} classes.</p>
  67749. <p>The <code>Mapper</code> outputs are partitioned per
  67750. <code>Reducer</code>. Users can control which keys (and hence records) go to
  67751. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  67752. <p>Users can optionally specify a <code>combiner</code>, via
  67753. {@link Job#setCombinerClass(Class)}, to perform local aggregation of the
  67754. intermediate outputs, which helps to cut down the amount of data transferred
  67755. from the <code>Mapper</code> to the <code>Reducer</code>.
  67756. <p>Applications can specify if and how the intermediate
  67757. outputs are to be compressed and which {@link CompressionCodec}s are to be
  67758. used via the <code>Configuration</code>.</p>
  67759. <p>If the job has zero
  67760. reduces then the output of the <code>Mapper</code> is directly written
  67761. to the {@link OutputFormat} without sorting by keys.</p>
  67762. <p>Example:</p>
  67763. <p><blockquote><pre>
  67764. public class TokenCounterMapper
  67765. extends Mapper<Object, Text, Text, IntWritable>{
  67766. private final static IntWritable one = new IntWritable(1);
  67767. private Text word = new Text();
  67768. public void map(Object key, Text value, Context context) throws IOException {
  67769. StringTokenizer itr = new StringTokenizer(value.toString());
  67770. while (itr.hasMoreTokens()) {
  67771. word.set(itr.nextToken());
  67772. context.collect(word, one);
  67773. }
  67774. }
  67775. }
  67776. </pre></blockquote></p>
  67777. <p>Applications may override the {@link #run(Context)} method to exert
  67778. greater control on map processing e.g. multi-threaded <code>Mapper</code>s
  67779. etc.</p>
  67780. @see InputFormat
  67781. @see JobContext
  67782. @see Partitioner
  67783. @see Reducer]]>
  67784. </doc>
  67785. </class>
  67786. <!-- end class org.apache.hadoop.mapreduce.Mapper -->
  67787. <!-- start class org.apache.hadoop.mapreduce.Mapper.Context -->
  67788. <class name="Mapper.Context" extends="org.apache.hadoop.mapreduce.MapContext"
  67789. abstract="false"
  67790. static="false" final="false" visibility="public"
  67791. deprecated="not deprecated">
  67792. <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"
  67793. static="false" final="false" visibility="public"
  67794. deprecated="not deprecated">
  67795. <exception name="IOException" type="java.io.IOException"/>
  67796. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67797. </constructor>
  67798. </class>
  67799. <!-- end class org.apache.hadoop.mapreduce.Mapper.Context -->
  67800. <!-- start class org.apache.hadoop.mapreduce.OutputCommitter -->
  67801. <class name="OutputCommitter" extends="java.lang.Object"
  67802. abstract="true"
  67803. static="false" final="false" visibility="public"
  67804. deprecated="not deprecated">
  67805. <constructor name="OutputCommitter"
  67806. static="false" final="false" visibility="public"
  67807. deprecated="not deprecated">
  67808. </constructor>
  67809. <method name="setupJob"
  67810. abstract="true" native="false" synchronized="false"
  67811. static="false" final="false" visibility="public"
  67812. deprecated="not deprecated">
  67813. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  67814. <exception name="IOException" type="java.io.IOException"/>
  67815. <doc>
  67816. <![CDATA[For the framework to setup the job output during initialization
  67817. @param jobContext Context of the job whose output is being written.
  67818. @throws IOException if temporary output could not be created]]>
  67819. </doc>
  67820. </method>
  67821. <method name="commitJob"
  67822. abstract="false" native="false" synchronized="false"
  67823. static="false" final="false" visibility="public"
  67824. deprecated="not deprecated">
  67825. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  67826. <exception name="IOException" type="java.io.IOException"/>
  67827. <doc>
  67828. <![CDATA[For cleaning up the job's output after job completion. Note that this
  67829. is invoked for jobs with final run state as
  67830. {@link JobStatus.State#SUCCEEDED}
  67831. @param jobContext Context of the job whose output is being written.
  67832. @throws IOException]]>
  67833. </doc>
  67834. </method>
  67835. <method name="cleanupJob"
  67836. abstract="false" native="false" synchronized="false"
  67837. static="false" final="false" visibility="public"
  67838. deprecated="use {@link #commitJob(JobContext)} or
  67839. {@link #abortJob(JobContext, JobStatus.State)} instead">
  67840. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67841. <exception name="IOException" type="java.io.IOException"/>
  67842. <doc>
  67843. <![CDATA[For cleaning up the job's output after job completion
  67844. @deprecated use {@link #commitJob(JobContext)} or
  67845. {@link #abortJob(JobContext, JobStatus.State)} instead]]>
  67846. </doc>
  67847. </method>
  67848. <method name="abortJob"
  67849. abstract="false" native="false" synchronized="false"
  67850. static="false" final="false" visibility="public"
  67851. deprecated="not deprecated">
  67852. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  67853. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  67854. <exception name="IOException" type="java.io.IOException"/>
  67855. <doc>
  67856. <![CDATA[For aborting an unsuccessful job's output. Note that this is invoked for
  67857. jobs with final run state as {@link JobStatus.State#FAILED} or
  67858. {@link JobStatus.State#KILLED}.
  67859. @param jobContext Context of the job whose output is being written.
  67860. @param state final run state of the job, should be either
  67861. {@link JobStatus.State#KILLED} or {@link JobStatus.State#FAILED}
  67862. @throws IOException]]>
  67863. </doc>
  67864. </method>
  67865. <method name="setupTask"
  67866. abstract="true" native="false" synchronized="false"
  67867. static="false" final="false" visibility="public"
  67868. deprecated="not deprecated">
  67869. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67870. <exception name="IOException" type="java.io.IOException"/>
  67871. <doc>
  67872. <![CDATA[Sets up output for the task.
  67873. @param taskContext Context of the task whose output is being written.
  67874. @throws IOException]]>
  67875. </doc>
  67876. </method>
  67877. <method name="needsTaskCommit" return="boolean"
  67878. abstract="true" native="false" synchronized="false"
  67879. static="false" final="false" visibility="public"
  67880. deprecated="not deprecated">
  67881. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67882. <exception name="IOException" type="java.io.IOException"/>
  67883. <doc>
  67884. <![CDATA[Check whether task needs a commit
  67885. @param taskContext
  67886. @return true/false
  67887. @throws IOException]]>
  67888. </doc>
  67889. </method>
  67890. <method name="commitTask"
  67891. abstract="true" native="false" synchronized="false"
  67892. static="false" final="false" visibility="public"
  67893. deprecated="not deprecated">
  67894. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67895. <exception name="IOException" type="java.io.IOException"/>
  67896. <doc>
  67897. <![CDATA[To promote the task's temporary output to final output location
  67898. The task's output is moved to the job's output directory.
  67899. @param taskContext Context of the task whose output is being written.
  67900. @throws IOException if commit is not]]>
  67901. </doc>
  67902. </method>
  67903. <method name="abortTask"
  67904. abstract="true" native="false" synchronized="false"
  67905. static="false" final="false" visibility="public"
  67906. deprecated="not deprecated">
  67907. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67908. <exception name="IOException" type="java.io.IOException"/>
  67909. <doc>
  67910. <![CDATA[Discard the task output
  67911. @param taskContext
  67912. @throws IOException]]>
  67913. </doc>
  67914. </method>
  67915. <doc>
  67916. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  67917. Map-Reduce job.
  67918. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  67919. the job to:<p>
  67920. <ol>
  67921. <li>
  67922. Setup the job during initialization. For example, create the temporary
  67923. output directory for the job during the initialization of the job.
  67924. </li>
  67925. <li>
  67926. Cleanup the job after the job completion. For example, remove the
  67927. temporary output directory after the job completion.
  67928. </li>
  67929. <li>
  67930. Setup the task temporary output.
  67931. </li>
  67932. <li>
  67933. Check whether a task needs a commit. This is to avoid the commit
  67934. procedure if a task does not need commit.
  67935. </li>
  67936. <li>
  67937. Commit of the task output.
  67938. </li>
  67939. <li>
  67940. Discard the task commit.
  67941. </li>
  67942. </ol>
  67943. @see org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
  67944. @see JobContext
  67945. @see TaskAttemptContext]]>
  67946. </doc>
  67947. </class>
  67948. <!-- end class org.apache.hadoop.mapreduce.OutputCommitter -->
  67949. <!-- start class org.apache.hadoop.mapreduce.OutputFormat -->
  67950. <class name="OutputFormat" extends="java.lang.Object"
  67951. abstract="true"
  67952. static="false" final="false" visibility="public"
  67953. deprecated="not deprecated">
  67954. <constructor name="OutputFormat"
  67955. static="false" final="false" visibility="public"
  67956. deprecated="not deprecated">
  67957. </constructor>
  67958. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  67959. abstract="true" native="false" synchronized="false"
  67960. static="false" final="false" visibility="public"
  67961. deprecated="not deprecated">
  67962. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67963. <exception name="IOException" type="java.io.IOException"/>
  67964. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67965. <doc>
  67966. <![CDATA[Get the {@link RecordWriter} for the given task.
  67967. @param context the information about the current task.
  67968. @return a {@link RecordWriter} to write the output for the job.
  67969. @throws IOException]]>
  67970. </doc>
  67971. </method>
  67972. <method name="checkOutputSpecs"
  67973. abstract="true" native="false" synchronized="false"
  67974. static="false" final="false" visibility="public"
  67975. deprecated="not deprecated">
  67976. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67977. <exception name="IOException" type="java.io.IOException"/>
  67978. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67979. <doc>
  67980. <![CDATA[Check for validity of the output-specification for the job.
  67981. <p>This is to validate the output specification for the job when it is
  67982. a job is submitted. Typically checks that it does not already exist,
  67983. throwing an exception when it already exists, so that output is not
  67984. overwritten.</p>
  67985. @param context information about the job
  67986. @throws IOException when output should not be attempted]]>
  67987. </doc>
  67988. </method>
  67989. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  67990. abstract="true" native="false" synchronized="false"
  67991. static="false" final="false" visibility="public"
  67992. deprecated="not deprecated">
  67993. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67994. <exception name="IOException" type="java.io.IOException"/>
  67995. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67996. <doc>
  67997. <![CDATA[Get the output committer for this output format. This is responsible
  67998. for ensuring the output is committed correctly.
  67999. @param context the task context
  68000. @return an output committer
  68001. @throws IOException
  68002. @throws InterruptedException]]>
  68003. </doc>
  68004. </method>
  68005. <doc>
  68006. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  68007. Map-Reduce job.
  68008. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  68009. job to:<p>
  68010. <ol>
  68011. <li>
  68012. Validate the output-specification of the job. For e.g. check that the
  68013. output directory doesn't already exist.
  68014. <li>
  68015. Provide the {@link RecordWriter} implementation to be used to write out
  68016. the output files of the job. Output files are stored in a
  68017. {@link FileSystem}.
  68018. </li>
  68019. </ol>
  68020. @see RecordWriter]]>
  68021. </doc>
  68022. </class>
  68023. <!-- end class org.apache.hadoop.mapreduce.OutputFormat -->
  68024. <!-- start class org.apache.hadoop.mapreduce.Partitioner -->
  68025. <class name="Partitioner" extends="java.lang.Object"
  68026. abstract="true"
  68027. static="false" final="false" visibility="public"
  68028. deprecated="not deprecated">
  68029. <constructor name="Partitioner"
  68030. static="false" final="false" visibility="public"
  68031. deprecated="not deprecated">
  68032. </constructor>
  68033. <method name="getPartition" return="int"
  68034. abstract="true" native="false" synchronized="false"
  68035. static="false" final="false" visibility="public"
  68036. deprecated="not deprecated">
  68037. <param name="key" type="java.lang.Object"/>
  68038. <param name="value" type="java.lang.Object"/>
  68039. <param name="numPartitions" type="int"/>
  68040. <doc>
  68041. <![CDATA[Get the partition number for a given key (hence record) given the total
  68042. number of partitions i.e. number of reduce-tasks for the job.
  68043. <p>Typically a hash function on a all or a subset of the key.</p>
  68044. @param key the key to be partioned.
  68045. @param value the entry value.
  68046. @param numPartitions the total number of partitions.
  68047. @return the partition number for the <code>key</code>.]]>
  68048. </doc>
  68049. </method>
  68050. <doc>
  68051. <![CDATA[Partitions the key space.
  68052. <p><code>Partitioner</code> controls the partitioning of the keys of the
  68053. intermediate map-outputs. The key (or a subset of the key) is used to derive
  68054. the partition, typically by a hash function. The total number of partitions
  68055. is the same as the number of reduce tasks for the job. Hence this controls
  68056. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  68057. record) is sent for reduction.</p>
  68058. @see Reducer]]>
  68059. </doc>
  68060. </class>
  68061. <!-- end class org.apache.hadoop.mapreduce.Partitioner -->
  68062. <!-- start class org.apache.hadoop.mapreduce.RecordReader -->
  68063. <class name="RecordReader" extends="java.lang.Object"
  68064. abstract="true"
  68065. static="false" final="false" visibility="public"
  68066. deprecated="not deprecated">
  68067. <implements name="java.io.Closeable"/>
  68068. <constructor name="RecordReader"
  68069. static="false" final="false" visibility="public"
  68070. deprecated="not deprecated">
  68071. </constructor>
  68072. <method name="initialize"
  68073. abstract="true" native="false" synchronized="false"
  68074. static="false" final="false" visibility="public"
  68075. deprecated="not deprecated">
  68076. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  68077. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68078. <exception name="IOException" type="java.io.IOException"/>
  68079. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68080. <doc>
  68081. <![CDATA[Called once at initialization.
  68082. @param split the split that defines the range of records to read
  68083. @param context the information about the task
  68084. @throws IOException
  68085. @throws InterruptedException]]>
  68086. </doc>
  68087. </method>
  68088. <method name="nextKeyValue" return="boolean"
  68089. abstract="true" native="false" synchronized="false"
  68090. static="false" final="false" visibility="public"
  68091. deprecated="not deprecated">
  68092. <exception name="IOException" type="java.io.IOException"/>
  68093. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68094. <doc>
  68095. <![CDATA[Read the next key, value pair.
  68096. @return true if a key/value pair was read
  68097. @throws IOException
  68098. @throws InterruptedException]]>
  68099. </doc>
  68100. </method>
  68101. <method name="getCurrentKey" return="java.lang.Object"
  68102. abstract="true" native="false" synchronized="false"
  68103. static="false" final="false" visibility="public"
  68104. deprecated="not deprecated">
  68105. <exception name="IOException" type="java.io.IOException"/>
  68106. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68107. <doc>
  68108. <![CDATA[Get the current key
  68109. @return the current key or null if there is no current key
  68110. @throws IOException
  68111. @throws InterruptedException]]>
  68112. </doc>
  68113. </method>
  68114. <method name="getCurrentValue" return="java.lang.Object"
  68115. abstract="true" native="false" synchronized="false"
  68116. static="false" final="false" visibility="public"
  68117. deprecated="not deprecated">
  68118. <exception name="IOException" type="java.io.IOException"/>
  68119. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68120. <doc>
  68121. <![CDATA[Get the current value.
  68122. @return the object that was read
  68123. @throws IOException
  68124. @throws InterruptedException]]>
  68125. </doc>
  68126. </method>
  68127. <method name="getProgress" return="float"
  68128. abstract="true" native="false" synchronized="false"
  68129. static="false" final="false" visibility="public"
  68130. deprecated="not deprecated">
  68131. <exception name="IOException" type="java.io.IOException"/>
  68132. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68133. <doc>
  68134. <![CDATA[The current progress of the record reader through its data.
  68135. @return a number between 0.0 and 1.0 that is the fraction of the data read
  68136. @throws IOException
  68137. @throws InterruptedException]]>
  68138. </doc>
  68139. </method>
  68140. <method name="close"
  68141. abstract="true" native="false" synchronized="false"
  68142. static="false" final="false" visibility="public"
  68143. deprecated="not deprecated">
  68144. <exception name="IOException" type="java.io.IOException"/>
  68145. <doc>
  68146. <![CDATA[Close the record reader.]]>
  68147. </doc>
  68148. </method>
  68149. <doc>
  68150. <![CDATA[The record reader breaks the data into key/value pairs for input to the
  68151. {@link Mapper}.
  68152. @param <KEYIN>
  68153. @param <VALUEIN>]]>
  68154. </doc>
  68155. </class>
  68156. <!-- end class org.apache.hadoop.mapreduce.RecordReader -->
  68157. <!-- start class org.apache.hadoop.mapreduce.RecordWriter -->
  68158. <class name="RecordWriter" extends="java.lang.Object"
  68159. abstract="true"
  68160. static="false" final="false" visibility="public"
  68161. deprecated="not deprecated">
  68162. <constructor name="RecordWriter"
  68163. static="false" final="false" visibility="public"
  68164. deprecated="not deprecated">
  68165. </constructor>
  68166. <method name="write"
  68167. abstract="true" native="false" synchronized="false"
  68168. static="false" final="false" visibility="public"
  68169. deprecated="not deprecated">
  68170. <param name="key" type="java.lang.Object"/>
  68171. <param name="value" type="java.lang.Object"/>
  68172. <exception name="IOException" type="java.io.IOException"/>
  68173. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68174. <doc>
  68175. <![CDATA[Writes a key/value pair.
  68176. @param key the key to write.
  68177. @param value the value to write.
  68178. @throws IOException]]>
  68179. </doc>
  68180. </method>
  68181. <method name="close"
  68182. abstract="true" native="false" synchronized="false"
  68183. static="false" final="false" visibility="public"
  68184. deprecated="not deprecated">
  68185. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68186. <exception name="IOException" type="java.io.IOException"/>
  68187. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68188. <doc>
  68189. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  68190. @param context the context of the task
  68191. @throws IOException]]>
  68192. </doc>
  68193. </method>
  68194. <doc>
  68195. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  68196. to an output file.
  68197. <p><code>RecordWriter</code> implementations write the job outputs to the
  68198. {@link FileSystem}.
  68199. @see OutputFormat]]>
  68200. </doc>
  68201. </class>
  68202. <!-- end class org.apache.hadoop.mapreduce.RecordWriter -->
  68203. <!-- start class org.apache.hadoop.mapreduce.ReduceContext -->
  68204. <class name="ReduceContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  68205. abstract="false"
  68206. static="false" final="false" visibility="public"
  68207. deprecated="not deprecated">
  68208. <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"
  68209. static="false" final="false" visibility="public"
  68210. deprecated="not deprecated">
  68211. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68212. <exception name="IOException" type="java.io.IOException"/>
  68213. </constructor>
  68214. <method name="nextKey" return="boolean"
  68215. abstract="false" native="false" synchronized="false"
  68216. static="false" final="false" visibility="public"
  68217. deprecated="not deprecated">
  68218. <exception name="IOException" type="java.io.IOException"/>
  68219. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68220. <doc>
  68221. <![CDATA[Start processing next unique key.]]>
  68222. </doc>
  68223. </method>
  68224. <method name="nextKeyValue" return="boolean"
  68225. abstract="false" native="false" synchronized="false"
  68226. static="false" final="false" visibility="public"
  68227. deprecated="not deprecated">
  68228. <exception name="IOException" type="java.io.IOException"/>
  68229. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68230. <doc>
  68231. <![CDATA[Advance to the next key/value pair.]]>
  68232. </doc>
  68233. </method>
  68234. <method name="getCurrentKey" return="java.lang.Object"
  68235. abstract="false" native="false" synchronized="false"
  68236. static="false" final="false" visibility="public"
  68237. deprecated="not deprecated">
  68238. </method>
  68239. <method name="getCurrentValue" return="java.lang.Object"
  68240. abstract="false" native="false" synchronized="false"
  68241. static="false" final="false" visibility="public"
  68242. deprecated="not deprecated">
  68243. </method>
  68244. <method name="getValues" return="java.lang.Iterable"
  68245. abstract="false" native="false" synchronized="false"
  68246. static="false" final="false" visibility="public"
  68247. deprecated="not deprecated">
  68248. <exception name="IOException" type="java.io.IOException"/>
  68249. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68250. <doc>
  68251. <![CDATA[Iterate through the values for the current key, reusing the same value
  68252. object, which is stored in the context.
  68253. @return the series of values associated with the current key. All of the
  68254. objects returned directly and indirectly from this method are reused.]]>
  68255. </doc>
  68256. </method>
  68257. <field name="reporter" type="org.apache.hadoop.util.Progressable"
  68258. transient="false" volatile="false"
  68259. static="false" final="false" visibility="protected"
  68260. deprecated="not deprecated">
  68261. </field>
  68262. <doc>
  68263. <![CDATA[The context passed to the {@link Reducer}.
  68264. @param <KEYIN> the class of the input keys
  68265. @param <VALUEIN> the class of the input values
  68266. @param <KEYOUT> the class of the output keys
  68267. @param <VALUEOUT> the class of the output values]]>
  68268. </doc>
  68269. </class>
  68270. <!-- end class org.apache.hadoop.mapreduce.ReduceContext -->
  68271. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  68272. <class name="ReduceContext.ValueIterable" extends="java.lang.Object"
  68273. abstract="false"
  68274. static="false" final="false" visibility="protected"
  68275. deprecated="not deprecated">
  68276. <implements name="java.lang.Iterable"/>
  68277. <constructor name="ReduceContext.ValueIterable"
  68278. static="false" final="false" visibility="protected"
  68279. deprecated="not deprecated">
  68280. </constructor>
  68281. <method name="iterator" return="java.util.Iterator"
  68282. abstract="false" native="false" synchronized="false"
  68283. static="false" final="false" visibility="public"
  68284. deprecated="not deprecated">
  68285. </method>
  68286. </class>
  68287. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  68288. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  68289. <class name="ReduceContext.ValueIterator" extends="java.lang.Object"
  68290. abstract="false"
  68291. static="false" final="false" visibility="protected"
  68292. deprecated="not deprecated">
  68293. <implements name="java.util.Iterator"/>
  68294. <constructor name="ReduceContext.ValueIterator"
  68295. static="false" final="false" visibility="protected"
  68296. deprecated="not deprecated">
  68297. </constructor>
  68298. <method name="hasNext" return="boolean"
  68299. abstract="false" native="false" synchronized="false"
  68300. static="false" final="false" visibility="public"
  68301. deprecated="not deprecated">
  68302. </method>
  68303. <method name="next" return="java.lang.Object"
  68304. abstract="false" native="false" synchronized="false"
  68305. static="false" final="false" visibility="public"
  68306. deprecated="not deprecated">
  68307. </method>
  68308. <method name="remove"
  68309. abstract="false" native="false" synchronized="false"
  68310. static="false" final="false" visibility="public"
  68311. deprecated="not deprecated">
  68312. </method>
  68313. </class>
  68314. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  68315. <!-- start class org.apache.hadoop.mapreduce.Reducer -->
  68316. <class name="Reducer" extends="java.lang.Object"
  68317. abstract="false"
  68318. static="false" final="false" visibility="public"
  68319. deprecated="not deprecated">
  68320. <constructor name="Reducer"
  68321. static="false" final="false" visibility="public"
  68322. deprecated="not deprecated">
  68323. </constructor>
  68324. <method name="setup"
  68325. abstract="false" native="false" synchronized="false"
  68326. static="false" final="false" visibility="protected"
  68327. deprecated="not deprecated">
  68328. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68329. <exception name="IOException" type="java.io.IOException"/>
  68330. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68331. <doc>
  68332. <![CDATA[Called once at the start of the task.]]>
  68333. </doc>
  68334. </method>
  68335. <method name="reduce"
  68336. abstract="false" native="false" synchronized="false"
  68337. static="false" final="false" visibility="protected"
  68338. deprecated="not deprecated">
  68339. <param name="key" type="java.lang.Object"/>
  68340. <param name="values" type="java.lang.Iterable"/>
  68341. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68342. <exception name="IOException" type="java.io.IOException"/>
  68343. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68344. <doc>
  68345. <![CDATA[This method is called once for each key. Most applications will define
  68346. their reduce class by overriding this method. The default implementation
  68347. is an identity function.]]>
  68348. </doc>
  68349. </method>
  68350. <method name="cleanup"
  68351. abstract="false" native="false" synchronized="false"
  68352. static="false" final="false" visibility="protected"
  68353. deprecated="not deprecated">
  68354. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68355. <exception name="IOException" type="java.io.IOException"/>
  68356. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68357. <doc>
  68358. <![CDATA[Called once at the end of the task.]]>
  68359. </doc>
  68360. </method>
  68361. <method name="run"
  68362. abstract="false" native="false" synchronized="false"
  68363. static="false" final="false" visibility="public"
  68364. deprecated="not deprecated">
  68365. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68366. <exception name="IOException" type="java.io.IOException"/>
  68367. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68368. <doc>
  68369. <![CDATA[Advanced application writers can use the
  68370. {@link #run(org.apache.hadoop.mapreduce.Reducer.Context)} method to
  68371. control how the reduce task works.]]>
  68372. </doc>
  68373. </method>
  68374. <doc>
  68375. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  68376. values.
  68377. <p><code>Reducer</code> implementations
  68378. can access the {@link Configuration} for the job via the
  68379. {@link JobContext#getConfiguration()} method.</p>
  68380. <p><code>Reducer</code> has 3 primary phases:</p>
  68381. <ol>
  68382. <li>
  68383. <h4 id="Shuffle">Shuffle</h4>
  68384. <p>The <code>Reducer</code> copies the sorted output from each
  68385. {@link Mapper} using HTTP across the network.</p>
  68386. </li>
  68387. <li>
  68388. <h4 id="Sort">Sort</h4>
  68389. <p>The framework merge sorts <code>Reducer</code> inputs by
  68390. <code>key</code>s
  68391. (since different <code>Mapper</code>s may have output the same key).</p>
  68392. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  68393. being fetched they are merged.</p>
  68394. <h5 id="SecondarySort">SecondarySort</h5>
  68395. <p>To achieve a secondary sort on the values returned by the value
  68396. iterator, the application should extend the key with the secondary
  68397. key and define a grouping comparator. The keys will be sorted using the
  68398. entire key, but will be grouped using the grouping comparator to decide
  68399. which keys and values are sent in the same call to reduce.The grouping
  68400. comparator is specified via
  68401. {@link Job#setGroupingComparatorClass(Class)}. The sort order is
  68402. controlled by
  68403. {@link Job#setSortComparatorClass(Class)}.</p>
  68404. For example, say that you want to find duplicate web pages and tag them
  68405. all with the url of the "best" known example. You would set up the job
  68406. like:
  68407. <ul>
  68408. <li>Map Input Key: url</li>
  68409. <li>Map Input Value: document</li>
  68410. <li>Map Output Key: document checksum, url pagerank</li>
  68411. <li>Map Output Value: url</li>
  68412. <li>Partitioner: by checksum</li>
  68413. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  68414. <li>OutputValueGroupingComparator: by checksum</li>
  68415. </ul>
  68416. </li>
  68417. <li>
  68418. <h4 id="Reduce">Reduce</h4>
  68419. <p>In this phase the
  68420. {@link #reduce(Object, Iterable, Context)}
  68421. method is called for each <code>&lt;key, (collection of values)></code> in
  68422. the sorted inputs.</p>
  68423. <p>The output of the reduce task is typically written to a
  68424. {@link RecordWriter} via
  68425. {@link Context#write(Object, Object)}.</p>
  68426. </li>
  68427. </ol>
  68428. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  68429. <p>Example:</p>
  68430. <p><blockquote><pre>
  68431. public class IntSumReducer<Key> extends Reducer<Key,IntWritable,
  68432. Key,IntWritable> {
  68433. private IntWritable result = new IntWritable();
  68434. public void reduce(Key key, Iterable<IntWritable> values,
  68435. Context context) throws IOException {
  68436. int sum = 0;
  68437. for (IntWritable val : values) {
  68438. sum += val.get();
  68439. }
  68440. result.set(sum);
  68441. context.collect(key, result);
  68442. }
  68443. }
  68444. </pre></blockquote></p>
  68445. @see Mapper
  68446. @see Partitioner]]>
  68447. </doc>
  68448. </class>
  68449. <!-- end class org.apache.hadoop.mapreduce.Reducer -->
  68450. <!-- start class org.apache.hadoop.mapreduce.Reducer.Context -->
  68451. <class name="Reducer.Context" extends="org.apache.hadoop.mapreduce.ReduceContext"
  68452. abstract="false"
  68453. static="false" final="false" visibility="public"
  68454. deprecated="not deprecated">
  68455. <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"
  68456. static="false" final="false" visibility="public"
  68457. deprecated="not deprecated">
  68458. <exception name="IOException" type="java.io.IOException"/>
  68459. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68460. </constructor>
  68461. </class>
  68462. <!-- end class org.apache.hadoop.mapreduce.Reducer.Context -->
  68463. <!-- start class org.apache.hadoop.mapreduce.StatusReporter -->
  68464. <class name="StatusReporter" extends="java.lang.Object"
  68465. abstract="true"
  68466. static="false" final="false" visibility="public"
  68467. deprecated="not deprecated">
  68468. <constructor name="StatusReporter"
  68469. static="false" final="false" visibility="public"
  68470. deprecated="not deprecated">
  68471. </constructor>
  68472. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  68473. abstract="true" native="false" synchronized="false"
  68474. static="false" final="false" visibility="public"
  68475. deprecated="not deprecated">
  68476. <param name="name" type="java.lang.Enum"/>
  68477. </method>
  68478. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  68479. abstract="true" native="false" synchronized="false"
  68480. static="false" final="false" visibility="public"
  68481. deprecated="not deprecated">
  68482. <param name="group" type="java.lang.String"/>
  68483. <param name="name" type="java.lang.String"/>
  68484. </method>
  68485. <method name="progress"
  68486. abstract="true" native="false" synchronized="false"
  68487. static="false" final="false" visibility="public"
  68488. deprecated="not deprecated">
  68489. </method>
  68490. <method name="getProgress" return="float"
  68491. abstract="true" native="false" synchronized="false"
  68492. static="false" final="false" visibility="public"
  68493. deprecated="not deprecated">
  68494. <doc>
  68495. <![CDATA[Get the current progress.
  68496. @return a number between 0.0 and 1.0 (inclusive) indicating the attempt's
  68497. progress.]]>
  68498. </doc>
  68499. </method>
  68500. <method name="setStatus"
  68501. abstract="true" native="false" synchronized="false"
  68502. static="false" final="false" visibility="public"
  68503. deprecated="not deprecated">
  68504. <param name="status" type="java.lang.String"/>
  68505. </method>
  68506. </class>
  68507. <!-- end class org.apache.hadoop.mapreduce.StatusReporter -->
  68508. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  68509. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.JobContext"
  68510. abstract="false"
  68511. static="false" final="false" visibility="public"
  68512. deprecated="not deprecated">
  68513. <implements name="org.apache.hadoop.util.Progressable"/>
  68514. <constructor name="TaskAttemptContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID"
  68515. static="false" final="false" visibility="public"
  68516. deprecated="not deprecated">
  68517. </constructor>
  68518. <method name="getTaskAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  68519. abstract="false" native="false" synchronized="false"
  68520. static="false" final="false" visibility="public"
  68521. deprecated="not deprecated">
  68522. <doc>
  68523. <![CDATA[Get the unique name for this task attempt.]]>
  68524. </doc>
  68525. </method>
  68526. <method name="setStatus"
  68527. abstract="false" native="false" synchronized="false"
  68528. static="false" final="false" visibility="public"
  68529. deprecated="not deprecated">
  68530. <param name="msg" type="java.lang.String"/>
  68531. <exception name="IOException" type="java.io.IOException"/>
  68532. <doc>
  68533. <![CDATA[Set the current status of the task to the given string.]]>
  68534. </doc>
  68535. </method>
  68536. <method name="getStatus" return="java.lang.String"
  68537. abstract="false" native="false" synchronized="false"
  68538. static="false" final="false" visibility="public"
  68539. deprecated="not deprecated">
  68540. <doc>
  68541. <![CDATA[Get the last set status message.
  68542. @return the current status message]]>
  68543. </doc>
  68544. </method>
  68545. <method name="progress"
  68546. abstract="false" native="false" synchronized="false"
  68547. static="false" final="false" visibility="public"
  68548. deprecated="not deprecated">
  68549. <doc>
  68550. <![CDATA[Report progress. The subtypes actually do work in this method.]]>
  68551. </doc>
  68552. </method>
  68553. <doc>
  68554. <![CDATA[The context for task attempts.]]>
  68555. </doc>
  68556. </class>
  68557. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  68558. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptID -->
  68559. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  68560. abstract="false"
  68561. static="false" final="false" visibility="public"
  68562. deprecated="not deprecated">
  68563. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapreduce.TaskID, int"
  68564. static="false" final="false" visibility="public"
  68565. deprecated="not deprecated">
  68566. <doc>
  68567. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  68568. @param taskId TaskID that this task belongs to
  68569. @param id the task attempt number]]>
  68570. </doc>
  68571. </constructor>
  68572. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  68573. static="false" final="false" visibility="public"
  68574. deprecated="not deprecated">
  68575. <doc>
  68576. <![CDATA[Constructs a TaskId object from given parts.
  68577. @param jtIdentifier jobTracker identifier
  68578. @param jobId job number
  68579. @param isMap whether the tip is a map
  68580. @param taskId taskId number
  68581. @param id the task attempt number]]>
  68582. </doc>
  68583. </constructor>
  68584. <constructor name="TaskAttemptID"
  68585. static="false" final="false" visibility="public"
  68586. deprecated="not deprecated">
  68587. </constructor>
  68588. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68589. abstract="false" native="false" synchronized="false"
  68590. static="false" final="false" visibility="public"
  68591. deprecated="not deprecated">
  68592. <doc>
  68593. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  68594. </doc>
  68595. </method>
  68596. <method name="getTaskID" return="org.apache.hadoop.mapreduce.TaskID"
  68597. abstract="false" native="false" synchronized="false"
  68598. static="false" final="false" visibility="public"
  68599. deprecated="not deprecated">
  68600. <doc>
  68601. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  68602. </doc>
  68603. </method>
  68604. <method name="isMap" return="boolean"
  68605. abstract="false" native="false" synchronized="false"
  68606. static="false" final="false" visibility="public"
  68607. deprecated="not deprecated">
  68608. <doc>
  68609. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  68610. </doc>
  68611. </method>
  68612. <method name="equals" return="boolean"
  68613. abstract="false" native="false" synchronized="false"
  68614. static="false" final="false" visibility="public"
  68615. deprecated="not deprecated">
  68616. <param name="o" type="java.lang.Object"/>
  68617. </method>
  68618. <method name="appendTo" return="java.lang.StringBuilder"
  68619. abstract="false" native="false" synchronized="false"
  68620. static="false" final="false" visibility="protected"
  68621. deprecated="not deprecated">
  68622. <param name="builder" type="java.lang.StringBuilder"/>
  68623. <doc>
  68624. <![CDATA[Add the unique string to the StringBuilder
  68625. @param builder the builder to append ot
  68626. @return the builder that was passed in.]]>
  68627. </doc>
  68628. </method>
  68629. <method name="readFields"
  68630. abstract="false" native="false" synchronized="false"
  68631. static="false" final="false" visibility="public"
  68632. deprecated="not deprecated">
  68633. <param name="in" type="java.io.DataInput"/>
  68634. <exception name="IOException" type="java.io.IOException"/>
  68635. </method>
  68636. <method name="write"
  68637. abstract="false" native="false" synchronized="false"
  68638. static="false" final="false" visibility="public"
  68639. deprecated="not deprecated">
  68640. <param name="out" type="java.io.DataOutput"/>
  68641. <exception name="IOException" type="java.io.IOException"/>
  68642. </method>
  68643. <method name="hashCode" return="int"
  68644. abstract="false" native="false" synchronized="false"
  68645. static="false" final="false" visibility="public"
  68646. deprecated="not deprecated">
  68647. </method>
  68648. <method name="compareTo" return="int"
  68649. abstract="false" native="false" synchronized="false"
  68650. static="false" final="false" visibility="public"
  68651. deprecated="not deprecated">
  68652. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  68653. <doc>
  68654. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  68655. </doc>
  68656. </method>
  68657. <method name="toString" return="java.lang.String"
  68658. abstract="false" native="false" synchronized="false"
  68659. static="false" final="false" visibility="public"
  68660. deprecated="not deprecated">
  68661. </method>
  68662. <method name="forName" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  68663. abstract="false" native="false" synchronized="false"
  68664. static="true" final="false" visibility="public"
  68665. deprecated="not deprecated">
  68666. <param name="str" type="java.lang.String"/>
  68667. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  68668. <doc>
  68669. <![CDATA[Construct a TaskAttemptID object from given string
  68670. @return constructed TaskAttemptID object or null if the given String is null
  68671. @throws IllegalArgumentException if the given string is malformed]]>
  68672. </doc>
  68673. </method>
  68674. <field name="ATTEMPT" type="java.lang.String"
  68675. transient="false" volatile="false"
  68676. static="true" final="true" visibility="protected"
  68677. deprecated="not deprecated">
  68678. </field>
  68679. <doc>
  68680. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  68681. a task attempt. Each task attempt is one particular instance of a Map or
  68682. Reduce Task identified by its TaskID.
  68683. TaskAttemptID consists of 2 parts. First part is the
  68684. {@link TaskID}, that this TaskAttemptID belongs to.
  68685. Second part is the task attempt number. <br>
  68686. An example TaskAttemptID is :
  68687. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  68688. zeroth task attempt for the fifth map task in the third job
  68689. running at the jobtracker started at <code>200707121733</code>.
  68690. <p>
  68691. Applications should never construct or parse TaskAttemptID strings
  68692. , but rather use appropriate constructors or {@link #forName(String)}
  68693. method.
  68694. @see JobID
  68695. @see TaskID]]>
  68696. </doc>
  68697. </class>
  68698. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptID -->
  68699. <!-- start class org.apache.hadoop.mapreduce.TaskID -->
  68700. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  68701. abstract="false"
  68702. static="false" final="false" visibility="public"
  68703. deprecated="not deprecated">
  68704. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  68705. static="false" final="false" visibility="public"
  68706. deprecated="not deprecated">
  68707. <doc>
  68708. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  68709. @param jobId JobID that this tip belongs to
  68710. @param isMap whether the tip is a map
  68711. @param id the tip number]]>
  68712. </doc>
  68713. </constructor>
  68714. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  68715. static="false" final="false" visibility="public"
  68716. deprecated="not deprecated">
  68717. <doc>
  68718. <![CDATA[Constructs a TaskInProgressId object from given parts.
  68719. @param jtIdentifier jobTracker identifier
  68720. @param jobId job number
  68721. @param isMap whether the tip is a map
  68722. @param id the tip number]]>
  68723. </doc>
  68724. </constructor>
  68725. <constructor name="TaskID"
  68726. static="false" final="false" visibility="public"
  68727. deprecated="not deprecated">
  68728. </constructor>
  68729. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68730. abstract="false" native="false" synchronized="false"
  68731. static="false" final="false" visibility="public"
  68732. deprecated="not deprecated">
  68733. <doc>
  68734. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  68735. </doc>
  68736. </method>
  68737. <method name="isMap" return="boolean"
  68738. abstract="false" native="false" synchronized="false"
  68739. static="false" final="false" visibility="public"
  68740. deprecated="not deprecated">
  68741. <doc>
  68742. <![CDATA[Returns whether this TaskID is a map ID]]>
  68743. </doc>
  68744. </method>
  68745. <method name="equals" return="boolean"
  68746. abstract="false" native="false" synchronized="false"
  68747. static="false" final="false" visibility="public"
  68748. deprecated="not deprecated">
  68749. <param name="o" type="java.lang.Object"/>
  68750. </method>
  68751. <method name="compareTo" return="int"
  68752. abstract="false" native="false" synchronized="false"
  68753. static="false" final="false" visibility="public"
  68754. deprecated="not deprecated">
  68755. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  68756. <doc>
  68757. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  68758. defined as greater then maps.]]>
  68759. </doc>
  68760. </method>
  68761. <method name="toString" return="java.lang.String"
  68762. abstract="false" native="false" synchronized="false"
  68763. static="false" final="false" visibility="public"
  68764. deprecated="not deprecated">
  68765. </method>
  68766. <method name="appendTo" return="java.lang.StringBuilder"
  68767. abstract="false" native="false" synchronized="false"
  68768. static="false" final="false" visibility="protected"
  68769. deprecated="not deprecated">
  68770. <param name="builder" type="java.lang.StringBuilder"/>
  68771. <doc>
  68772. <![CDATA[Add the unique string to the given builder.
  68773. @param builder the builder to append to
  68774. @return the builder that was passed in]]>
  68775. </doc>
  68776. </method>
  68777. <method name="hashCode" return="int"
  68778. abstract="false" native="false" synchronized="false"
  68779. static="false" final="false" visibility="public"
  68780. deprecated="not deprecated">
  68781. </method>
  68782. <method name="readFields"
  68783. abstract="false" native="false" synchronized="false"
  68784. static="false" final="false" visibility="public"
  68785. deprecated="not deprecated">
  68786. <param name="in" type="java.io.DataInput"/>
  68787. <exception name="IOException" type="java.io.IOException"/>
  68788. </method>
  68789. <method name="write"
  68790. abstract="false" native="false" synchronized="false"
  68791. static="false" final="false" visibility="public"
  68792. deprecated="not deprecated">
  68793. <param name="out" type="java.io.DataOutput"/>
  68794. <exception name="IOException" type="java.io.IOException"/>
  68795. </method>
  68796. <method name="forName" return="org.apache.hadoop.mapreduce.TaskID"
  68797. abstract="false" native="false" synchronized="false"
  68798. static="true" final="false" visibility="public"
  68799. deprecated="not deprecated">
  68800. <param name="str" type="java.lang.String"/>
  68801. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  68802. <doc>
  68803. <![CDATA[Construct a TaskID object from given string
  68804. @return constructed TaskID object or null if the given String is null
  68805. @throws IllegalArgumentException if the given string is malformed]]>
  68806. </doc>
  68807. </method>
  68808. <field name="TASK" type="java.lang.String"
  68809. transient="false" volatile="false"
  68810. static="true" final="true" visibility="protected"
  68811. deprecated="not deprecated">
  68812. </field>
  68813. <field name="idFormat" type="java.text.NumberFormat"
  68814. transient="false" volatile="false"
  68815. static="true" final="true" visibility="protected"
  68816. deprecated="not deprecated">
  68817. </field>
  68818. <doc>
  68819. <![CDATA[TaskID represents the immutable and unique identifier for
  68820. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  68821. execute the Map or Reduce Task, each of which are uniquely indentified by
  68822. their TaskAttemptID.
  68823. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  68824. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  68825. representing whether the task is a map task or a reduce task.
  68826. And the third part is the task number. <br>
  68827. An example TaskID is :
  68828. <code>task_200707121733_0003_m_000005</code> , which represents the
  68829. fifth map task in the third job running at the jobtracker
  68830. started at <code>200707121733</code>.
  68831. <p>
  68832. Applications should never construct or parse TaskID strings
  68833. , but rather use appropriate constructors or {@link #forName(String)}
  68834. method.
  68835. @see JobID
  68836. @see TaskAttemptID]]>
  68837. </doc>
  68838. </class>
  68839. <!-- end class org.apache.hadoop.mapreduce.TaskID -->
  68840. <!-- start class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  68841. <class name="TaskInputOutputContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  68842. abstract="true"
  68843. static="false" final="false" visibility="public"
  68844. deprecated="not deprecated">
  68845. <implements name="org.apache.hadoop.util.Progressable"/>
  68846. <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"
  68847. static="false" final="false" visibility="public"
  68848. deprecated="not deprecated">
  68849. </constructor>
  68850. <method name="nextKeyValue" return="boolean"
  68851. abstract="true" native="false" synchronized="false"
  68852. static="false" final="false" visibility="public"
  68853. deprecated="not deprecated">
  68854. <exception name="IOException" type="java.io.IOException"/>
  68855. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68856. <doc>
  68857. <![CDATA[Advance to the next key, value pair, returning null if at end.
  68858. @return the key object that was read into, or null if no more]]>
  68859. </doc>
  68860. </method>
  68861. <method name="getCurrentKey" return="java.lang.Object"
  68862. abstract="true" native="false" synchronized="false"
  68863. static="false" final="false" visibility="public"
  68864. deprecated="not deprecated">
  68865. <exception name="IOException" type="java.io.IOException"/>
  68866. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68867. <doc>
  68868. <![CDATA[Get the current key.
  68869. @return the current key object or null if there isn't one
  68870. @throws IOException
  68871. @throws InterruptedException]]>
  68872. </doc>
  68873. </method>
  68874. <method name="getCurrentValue" return="java.lang.Object"
  68875. abstract="true" native="false" synchronized="false"
  68876. static="false" final="false" visibility="public"
  68877. deprecated="not deprecated">
  68878. <exception name="IOException" type="java.io.IOException"/>
  68879. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68880. <doc>
  68881. <![CDATA[Get the current value.
  68882. @return the value object that was read into
  68883. @throws IOException
  68884. @throws InterruptedException]]>
  68885. </doc>
  68886. </method>
  68887. <method name="write"
  68888. abstract="false" native="false" synchronized="false"
  68889. static="false" final="false" visibility="public"
  68890. deprecated="not deprecated">
  68891. <param name="key" type="java.lang.Object"/>
  68892. <param name="value" type="java.lang.Object"/>
  68893. <exception name="IOException" type="java.io.IOException"/>
  68894. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68895. <doc>
  68896. <![CDATA[Generate an output key/value pair.]]>
  68897. </doc>
  68898. </method>
  68899. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  68900. abstract="false" native="false" synchronized="false"
  68901. static="false" final="false" visibility="public"
  68902. deprecated="not deprecated">
  68903. <param name="counterName" type="java.lang.Enum"/>
  68904. </method>
  68905. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  68906. abstract="false" native="false" synchronized="false"
  68907. static="false" final="false" visibility="public"
  68908. deprecated="not deprecated">
  68909. <param name="groupName" type="java.lang.String"/>
  68910. <param name="counterName" type="java.lang.String"/>
  68911. </method>
  68912. <method name="progress"
  68913. abstract="false" native="false" synchronized="false"
  68914. static="false" final="false" visibility="public"
  68915. deprecated="not deprecated">
  68916. </method>
  68917. <method name="getProgress" return="float"
  68918. abstract="false" native="false" synchronized="false"
  68919. static="false" final="false" visibility="public"
  68920. deprecated="not deprecated">
  68921. </method>
  68922. <method name="setStatus"
  68923. abstract="false" native="false" synchronized="false"
  68924. static="false" final="false" visibility="public"
  68925. deprecated="not deprecated">
  68926. <param name="status" type="java.lang.String"/>
  68927. </method>
  68928. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  68929. abstract="false" native="false" synchronized="false"
  68930. static="false" final="false" visibility="public"
  68931. deprecated="not deprecated">
  68932. </method>
  68933. <doc>
  68934. <![CDATA[A context object that allows input and output from the task. It is only
  68935. supplied to the {@link Mapper} or {@link Reducer}.
  68936. @param <KEYIN> the input key type for the task
  68937. @param <VALUEIN> the input value type for the task
  68938. @param <KEYOUT> the output key type for the task
  68939. @param <VALUEOUT> the output value type for the task]]>
  68940. </doc>
  68941. </class>
  68942. <!-- end class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  68943. <!-- start class org.apache.hadoop.mapreduce.TaskType -->
  68944. <class name="TaskType" extends="java.lang.Enum"
  68945. abstract="false"
  68946. static="false" final="true" visibility="public"
  68947. deprecated="not deprecated">
  68948. <method name="values" return="org.apache.hadoop.mapreduce.TaskType[]"
  68949. abstract="false" native="false" synchronized="false"
  68950. static="true" final="false" visibility="public"
  68951. deprecated="not deprecated">
  68952. </method>
  68953. <method name="valueOf" return="org.apache.hadoop.mapreduce.TaskType"
  68954. abstract="false" native="false" synchronized="false"
  68955. static="true" final="false" visibility="public"
  68956. deprecated="not deprecated">
  68957. <param name="name" type="java.lang.String"/>
  68958. </method>
  68959. <field name="MAP" type="org.apache.hadoop.mapreduce.TaskType"
  68960. transient="false" volatile="false"
  68961. static="true" final="true" visibility="public"
  68962. deprecated="not deprecated">
  68963. </field>
  68964. <field name="REDUCE" type="org.apache.hadoop.mapreduce.TaskType"
  68965. transient="false" volatile="false"
  68966. static="true" final="true" visibility="public"
  68967. deprecated="not deprecated">
  68968. </field>
  68969. <field name="JOB_SETUP" type="org.apache.hadoop.mapreduce.TaskType"
  68970. transient="false" volatile="false"
  68971. static="true" final="true" visibility="public"
  68972. deprecated="not deprecated">
  68973. </field>
  68974. <field name="JOB_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  68975. transient="false" volatile="false"
  68976. static="true" final="true" visibility="public"
  68977. deprecated="not deprecated">
  68978. </field>
  68979. <field name="TASK_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  68980. transient="false" volatile="false"
  68981. static="true" final="true" visibility="public"
  68982. deprecated="not deprecated">
  68983. </field>
  68984. <doc>
  68985. <![CDATA[Enum for map, reduce, job-setup, job-cleanup, task-cleanup task types.]]>
  68986. </doc>
  68987. </class>
  68988. <!-- end class org.apache.hadoop.mapreduce.TaskType -->
  68989. </package>
  68990. <package name="org.apache.hadoop.mapreduce.lib.db">
  68991. <!-- start class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  68992. <class name="BigDecimalSplitter" extends="java.lang.Object"
  68993. abstract="false"
  68994. static="false" final="false" visibility="public"
  68995. deprecated="not deprecated">
  68996. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  68997. <constructor name="BigDecimalSplitter"
  68998. static="false" final="false" visibility="public"
  68999. deprecated="not deprecated">
  69000. </constructor>
  69001. <method name="split" return="java.util.List"
  69002. abstract="false" native="false" synchronized="false"
  69003. static="false" final="false" visibility="public"
  69004. deprecated="not deprecated">
  69005. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69006. <param name="results" type="java.sql.ResultSet"/>
  69007. <param name="colName" type="java.lang.String"/>
  69008. <exception name="SQLException" type="java.sql.SQLException"/>
  69009. </method>
  69010. <method name="tryDivide" return="java.math.BigDecimal"
  69011. abstract="false" native="false" synchronized="false"
  69012. static="false" final="false" visibility="protected"
  69013. deprecated="not deprecated">
  69014. <param name="numerator" type="java.math.BigDecimal"/>
  69015. <param name="denominator" type="java.math.BigDecimal"/>
  69016. <doc>
  69017. <![CDATA[Divide numerator by denominator. If impossible in exact mode, use rounding.]]>
  69018. </doc>
  69019. </method>
  69020. <doc>
  69021. <![CDATA[Implement DBSplitter over BigDecimal values.]]>
  69022. </doc>
  69023. </class>
  69024. <!-- end class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  69025. <!-- start class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  69026. <class name="BooleanSplitter" extends="java.lang.Object"
  69027. abstract="false"
  69028. static="false" final="false" visibility="public"
  69029. deprecated="not deprecated">
  69030. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  69031. <constructor name="BooleanSplitter"
  69032. static="false" final="false" visibility="public"
  69033. deprecated="not deprecated">
  69034. </constructor>
  69035. <method name="split" return="java.util.List"
  69036. abstract="false" native="false" synchronized="false"
  69037. static="false" final="false" visibility="public"
  69038. deprecated="not deprecated">
  69039. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69040. <param name="results" type="java.sql.ResultSet"/>
  69041. <param name="colName" type="java.lang.String"/>
  69042. <exception name="SQLException" type="java.sql.SQLException"/>
  69043. </method>
  69044. <doc>
  69045. <![CDATA[Implement DBSplitter over boolean values.]]>
  69046. </doc>
  69047. </class>
  69048. <!-- end class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  69049. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  69050. <class name="DataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat"
  69051. abstract="false"
  69052. static="false" final="false" visibility="public"
  69053. deprecated="not deprecated">
  69054. <implements name="org.apache.hadoop.conf.Configurable"/>
  69055. <constructor name="DataDrivenDBInputFormat"
  69056. static="false" final="false" visibility="public"
  69057. deprecated="not deprecated">
  69058. </constructor>
  69059. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  69060. abstract="false" native="false" synchronized="false"
  69061. static="false" final="false" visibility="protected"
  69062. deprecated="not deprecated">
  69063. <param name="sqlDataType" type="int"/>
  69064. <doc>
  69065. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  69066. </doc>
  69067. </method>
  69068. <method name="getSplits" return="java.util.List"
  69069. abstract="false" native="false" synchronized="false"
  69070. static="false" final="false" visibility="public"
  69071. deprecated="not deprecated">
  69072. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69073. <exception name="IOException" type="java.io.IOException"/>
  69074. <doc>
  69075. <![CDATA[{@inheritDoc}]]>
  69076. </doc>
  69077. </method>
  69078. <method name="getBoundingValsQuery" return="java.lang.String"
  69079. abstract="false" native="false" synchronized="false"
  69080. static="false" final="false" visibility="protected"
  69081. deprecated="not deprecated">
  69082. <doc>
  69083. <![CDATA[@return a query which returns the minimum and maximum values for
  69084. the order-by column.
  69085. The min value should be in the first column, and the
  69086. max value should be in the second column of the results.]]>
  69087. </doc>
  69088. </method>
  69089. <method name="setBoundingQuery"
  69090. abstract="false" native="false" synchronized="false"
  69091. static="true" final="false" visibility="public"
  69092. deprecated="not deprecated">
  69093. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69094. <param name="query" type="java.lang.String"/>
  69095. <doc>
  69096. <![CDATA[Set the user-defined bounding query to use with a user-defined query.
  69097. This *must* include the substring "$CONDITIONS"
  69098. (DataDrivenDBInputFormat.SUBSTITUTE_TOKEN) inside the WHERE clause,
  69099. so that DataDrivenDBInputFormat knows where to insert split clauses.
  69100. e.g., "SELECT foo FROM mytable WHERE $CONDITIONS"
  69101. This will be expanded to something like:
  69102. SELECT foo FROM mytable WHERE (id &gt; 100) AND (id &lt; 250)
  69103. inside each split.]]>
  69104. </doc>
  69105. </method>
  69106. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69107. abstract="false" native="false" synchronized="false"
  69108. static="false" final="false" visibility="protected"
  69109. deprecated="not deprecated">
  69110. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  69111. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69112. <exception name="IOException" type="java.io.IOException"/>
  69113. </method>
  69114. <method name="setInput"
  69115. abstract="false" native="false" synchronized="false"
  69116. static="true" final="false" visibility="public"
  69117. deprecated="not deprecated">
  69118. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69119. <param name="inputClass" type="java.lang.Class"/>
  69120. <param name="tableName" type="java.lang.String"/>
  69121. <param name="conditions" type="java.lang.String"/>
  69122. <param name="splitBy" type="java.lang.String"/>
  69123. <param name="fieldNames" type="java.lang.String[]"/>
  69124. <doc>
  69125. <![CDATA[Note that the "orderBy" column is called the "splitBy" in this version.
  69126. We reuse the same field, but it's not strictly ordering it -- just partitioning
  69127. the results.]]>
  69128. </doc>
  69129. </method>
  69130. <method name="setInput"
  69131. abstract="false" native="false" synchronized="false"
  69132. static="true" final="false" visibility="public"
  69133. deprecated="not deprecated">
  69134. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69135. <param name="inputClass" type="java.lang.Class"/>
  69136. <param name="inputQuery" type="java.lang.String"/>
  69137. <param name="inputBoundingQuery" type="java.lang.String"/>
  69138. <doc>
  69139. <![CDATA[setInput() takes a custom query and a separate "bounding query" to use
  69140. instead of the custom "count query" used by DBInputFormat.]]>
  69141. </doc>
  69142. </method>
  69143. <field name="SUBSTITUTE_TOKEN" type="java.lang.String"
  69144. transient="false" volatile="false"
  69145. static="true" final="true" visibility="public"
  69146. deprecated="not deprecated">
  69147. <doc>
  69148. <![CDATA[If users are providing their own query, the following string is expected to
  69149. appear in the WHERE clause, which will be substituted with a pair of conditions
  69150. on the input to allow input splits to parallelise the import.]]>
  69151. </doc>
  69152. </field>
  69153. <doc>
  69154. <![CDATA[A InputFormat that reads input data from an SQL table.
  69155. Operates like DBInputFormat, but instead of using LIMIT and OFFSET to demarcate
  69156. splits, it tries to generate WHERE clauses which separate the data into roughly
  69157. equivalent shards.]]>
  69158. </doc>
  69159. </class>
  69160. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  69161. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  69162. <class name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  69163. abstract="false"
  69164. static="true" final="false" visibility="public"
  69165. deprecated="not deprecated">
  69166. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit"
  69167. static="false" final="false" visibility="public"
  69168. deprecated="not deprecated">
  69169. <doc>
  69170. <![CDATA[Default Constructor]]>
  69171. </doc>
  69172. </constructor>
  69173. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" type="java.lang.String, java.lang.String"
  69174. static="false" final="false" visibility="public"
  69175. deprecated="not deprecated">
  69176. <doc>
  69177. <![CDATA[Convenience Constructor
  69178. @param lower the string to be put in the WHERE clause to guard on the 'lower' end
  69179. @param upper the string to be put in the WHERE clause to guard on the 'upper' end]]>
  69180. </doc>
  69181. </constructor>
  69182. <method name="getLength" return="long"
  69183. abstract="false" native="false" synchronized="false"
  69184. static="false" final="false" visibility="public"
  69185. deprecated="not deprecated">
  69186. <exception name="IOException" type="java.io.IOException"/>
  69187. <doc>
  69188. <![CDATA[@return The total row count in this split]]>
  69189. </doc>
  69190. </method>
  69191. <method name="readFields"
  69192. abstract="false" native="false" synchronized="false"
  69193. static="false" final="false" visibility="public"
  69194. deprecated="not deprecated">
  69195. <param name="input" type="java.io.DataInput"/>
  69196. <exception name="IOException" type="java.io.IOException"/>
  69197. <doc>
  69198. <![CDATA[{@inheritDoc}]]>
  69199. </doc>
  69200. </method>
  69201. <method name="write"
  69202. abstract="false" native="false" synchronized="false"
  69203. static="false" final="false" visibility="public"
  69204. deprecated="not deprecated">
  69205. <param name="output" type="java.io.DataOutput"/>
  69206. <exception name="IOException" type="java.io.IOException"/>
  69207. <doc>
  69208. <![CDATA[{@inheritDoc}]]>
  69209. </doc>
  69210. </method>
  69211. <method name="getLowerClause" return="java.lang.String"
  69212. abstract="false" native="false" synchronized="false"
  69213. static="false" final="false" visibility="public"
  69214. deprecated="not deprecated">
  69215. </method>
  69216. <method name="getUpperClause" return="java.lang.String"
  69217. abstract="false" native="false" synchronized="false"
  69218. static="false" final="false" visibility="public"
  69219. deprecated="not deprecated">
  69220. </method>
  69221. <doc>
  69222. <![CDATA[A InputSplit that spans a set of rows]]>
  69223. </doc>
  69224. </class>
  69225. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  69226. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  69227. <class name="DataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  69228. abstract="false"
  69229. static="false" final="false" visibility="public"
  69230. deprecated="not deprecated">
  69231. <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"
  69232. static="false" final="false" visibility="public"
  69233. deprecated="not deprecated">
  69234. <exception name="SQLException" type="java.sql.SQLException"/>
  69235. <doc>
  69236. <![CDATA[@param split The InputSplit to read data for
  69237. @throws SQLException]]>
  69238. </doc>
  69239. </constructor>
  69240. <method name="getSelectQuery" return="java.lang.String"
  69241. abstract="false" native="false" synchronized="false"
  69242. static="false" final="false" visibility="protected"
  69243. deprecated="not deprecated">
  69244. <doc>
  69245. <![CDATA[Returns the query for selecting the records,
  69246. subclasses can override this for custom behaviour.]]>
  69247. </doc>
  69248. </method>
  69249. <doc>
  69250. <![CDATA[A RecordReader that reads records from a SQL table,
  69251. using data-driven WHERE clause splits.
  69252. Emits LongWritables containing the record number as
  69253. key and DBWritables as value.]]>
  69254. </doc>
  69255. </class>
  69256. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  69257. <!-- start class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  69258. <class name="DateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.IntegerSplitter"
  69259. abstract="false"
  69260. static="false" final="false" visibility="public"
  69261. deprecated="not deprecated">
  69262. <constructor name="DateSplitter"
  69263. static="false" final="false" visibility="public"
  69264. deprecated="not deprecated">
  69265. </constructor>
  69266. <method name="split" return="java.util.List"
  69267. abstract="false" native="false" synchronized="false"
  69268. static="false" final="false" visibility="public"
  69269. deprecated="not deprecated">
  69270. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69271. <param name="results" type="java.sql.ResultSet"/>
  69272. <param name="colName" type="java.lang.String"/>
  69273. <exception name="SQLException" type="java.sql.SQLException"/>
  69274. </method>
  69275. <method name="dateToString" return="java.lang.String"
  69276. abstract="false" native="false" synchronized="false"
  69277. static="false" final="false" visibility="protected"
  69278. deprecated="not deprecated">
  69279. <param name="d" type="java.util.Date"/>
  69280. <doc>
  69281. <![CDATA[Given a Date 'd', format it as a string for use in a SQL date
  69282. comparison operation.
  69283. @param d the date to format.
  69284. @return the string representing this date in SQL with any appropriate
  69285. quotation characters, etc.]]>
  69286. </doc>
  69287. </method>
  69288. <doc>
  69289. <![CDATA[Implement DBSplitter over date/time values.
  69290. Make use of logic from IntegerSplitter, since date/time are just longs
  69291. in Java.]]>
  69292. </doc>
  69293. </class>
  69294. <!-- end class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  69295. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  69296. <class name="DBConfiguration" extends="java.lang.Object"
  69297. abstract="false"
  69298. static="false" final="false" visibility="public"
  69299. deprecated="not deprecated">
  69300. <constructor name="DBConfiguration" type="org.apache.hadoop.conf.Configuration"
  69301. static="false" final="false" visibility="public"
  69302. deprecated="not deprecated">
  69303. </constructor>
  69304. <method name="configureDB"
  69305. abstract="false" native="false" synchronized="false"
  69306. static="true" final="false" visibility="public"
  69307. deprecated="not deprecated">
  69308. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69309. <param name="driverClass" type="java.lang.String"/>
  69310. <param name="dbUrl" type="java.lang.String"/>
  69311. <param name="userName" type="java.lang.String"/>
  69312. <param name="passwd" type="java.lang.String"/>
  69313. <doc>
  69314. <![CDATA[Sets the DB access related fields in the {@link Configuration}.
  69315. @param conf the configuration
  69316. @param driverClass JDBC Driver class name
  69317. @param dbUrl JDBC DB access URL.
  69318. @param userName DB access username
  69319. @param passwd DB access passwd]]>
  69320. </doc>
  69321. </method>
  69322. <method name="configureDB"
  69323. abstract="false" native="false" synchronized="false"
  69324. static="true" final="false" visibility="public"
  69325. deprecated="not deprecated">
  69326. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  69327. <param name="driverClass" type="java.lang.String"/>
  69328. <param name="dbUrl" type="java.lang.String"/>
  69329. <doc>
  69330. <![CDATA[Sets the DB access related fields in the JobConf.
  69331. @param job the job
  69332. @param driverClass JDBC Driver class name
  69333. @param dbUrl JDBC DB access URL.]]>
  69334. </doc>
  69335. </method>
  69336. <method name="getConnection" return="java.sql.Connection"
  69337. abstract="false" native="false" synchronized="false"
  69338. static="false" final="false" visibility="public"
  69339. deprecated="not deprecated">
  69340. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  69341. <exception name="SQLException" type="java.sql.SQLException"/>
  69342. <doc>
  69343. <![CDATA[Returns a connection object o the DB
  69344. @throws ClassNotFoundException
  69345. @throws SQLException]]>
  69346. </doc>
  69347. </method>
  69348. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69349. abstract="false" native="false" synchronized="false"
  69350. static="false" final="false" visibility="public"
  69351. deprecated="not deprecated">
  69352. </method>
  69353. <method name="getInputTableName" return="java.lang.String"
  69354. abstract="false" native="false" synchronized="false"
  69355. static="false" final="false" visibility="public"
  69356. deprecated="not deprecated">
  69357. </method>
  69358. <method name="setInputTableName"
  69359. abstract="false" native="false" synchronized="false"
  69360. static="false" final="false" visibility="public"
  69361. deprecated="not deprecated">
  69362. <param name="tableName" type="java.lang.String"/>
  69363. </method>
  69364. <method name="getInputFieldNames" return="java.lang.String[]"
  69365. abstract="false" native="false" synchronized="false"
  69366. static="false" final="false" visibility="public"
  69367. deprecated="not deprecated">
  69368. </method>
  69369. <method name="setInputFieldNames"
  69370. abstract="false" native="false" synchronized="false"
  69371. static="false" final="false" visibility="public"
  69372. deprecated="not deprecated">
  69373. <param name="fieldNames" type="java.lang.String[]"/>
  69374. </method>
  69375. <method name="getInputConditions" return="java.lang.String"
  69376. abstract="false" native="false" synchronized="false"
  69377. static="false" final="false" visibility="public"
  69378. deprecated="not deprecated">
  69379. </method>
  69380. <method name="setInputConditions"
  69381. abstract="false" native="false" synchronized="false"
  69382. static="false" final="false" visibility="public"
  69383. deprecated="not deprecated">
  69384. <param name="conditions" type="java.lang.String"/>
  69385. </method>
  69386. <method name="getInputOrderBy" return="java.lang.String"
  69387. abstract="false" native="false" synchronized="false"
  69388. static="false" final="false" visibility="public"
  69389. deprecated="not deprecated">
  69390. </method>
  69391. <method name="setInputOrderBy"
  69392. abstract="false" native="false" synchronized="false"
  69393. static="false" final="false" visibility="public"
  69394. deprecated="not deprecated">
  69395. <param name="orderby" type="java.lang.String"/>
  69396. </method>
  69397. <method name="getInputQuery" return="java.lang.String"
  69398. abstract="false" native="false" synchronized="false"
  69399. static="false" final="false" visibility="public"
  69400. deprecated="not deprecated">
  69401. </method>
  69402. <method name="setInputQuery"
  69403. abstract="false" native="false" synchronized="false"
  69404. static="false" final="false" visibility="public"
  69405. deprecated="not deprecated">
  69406. <param name="query" type="java.lang.String"/>
  69407. </method>
  69408. <method name="getInputCountQuery" return="java.lang.String"
  69409. abstract="false" native="false" synchronized="false"
  69410. static="false" final="false" visibility="public"
  69411. deprecated="not deprecated">
  69412. </method>
  69413. <method name="setInputCountQuery"
  69414. abstract="false" native="false" synchronized="false"
  69415. static="false" final="false" visibility="public"
  69416. deprecated="not deprecated">
  69417. <param name="query" type="java.lang.String"/>
  69418. </method>
  69419. <method name="setInputBoundingQuery"
  69420. abstract="false" native="false" synchronized="false"
  69421. static="false" final="false" visibility="public"
  69422. deprecated="not deprecated">
  69423. <param name="query" type="java.lang.String"/>
  69424. </method>
  69425. <method name="getInputBoundingQuery" return="java.lang.String"
  69426. abstract="false" native="false" synchronized="false"
  69427. static="false" final="false" visibility="public"
  69428. deprecated="not deprecated">
  69429. </method>
  69430. <method name="getInputClass" return="java.lang.Class"
  69431. abstract="false" native="false" synchronized="false"
  69432. static="false" final="false" visibility="public"
  69433. deprecated="not deprecated">
  69434. </method>
  69435. <method name="setInputClass"
  69436. abstract="false" native="false" synchronized="false"
  69437. static="false" final="false" visibility="public"
  69438. deprecated="not deprecated">
  69439. <param name="inputClass" type="java.lang.Class"/>
  69440. </method>
  69441. <method name="getOutputTableName" return="java.lang.String"
  69442. abstract="false" native="false" synchronized="false"
  69443. static="false" final="false" visibility="public"
  69444. deprecated="not deprecated">
  69445. </method>
  69446. <method name="setOutputTableName"
  69447. abstract="false" native="false" synchronized="false"
  69448. static="false" final="false" visibility="public"
  69449. deprecated="not deprecated">
  69450. <param name="tableName" type="java.lang.String"/>
  69451. </method>
  69452. <method name="getOutputFieldNames" return="java.lang.String[]"
  69453. abstract="false" native="false" synchronized="false"
  69454. static="false" final="false" visibility="public"
  69455. deprecated="not deprecated">
  69456. </method>
  69457. <method name="setOutputFieldNames"
  69458. abstract="false" native="false" synchronized="false"
  69459. static="false" final="false" visibility="public"
  69460. deprecated="not deprecated">
  69461. <param name="fieldNames" type="java.lang.String[]"/>
  69462. </method>
  69463. <method name="setOutputFieldCount"
  69464. abstract="false" native="false" synchronized="false"
  69465. static="false" final="false" visibility="public"
  69466. deprecated="not deprecated">
  69467. <param name="fieldCount" type="int"/>
  69468. </method>
  69469. <method name="getOutputFieldCount" return="int"
  69470. abstract="false" native="false" synchronized="false"
  69471. static="false" final="false" visibility="public"
  69472. deprecated="not deprecated">
  69473. </method>
  69474. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  69475. transient="false" volatile="false"
  69476. static="true" final="true" visibility="public"
  69477. deprecated="not deprecated">
  69478. <doc>
  69479. <![CDATA[The JDBC Driver class name]]>
  69480. </doc>
  69481. </field>
  69482. <field name="URL_PROPERTY" type="java.lang.String"
  69483. transient="false" volatile="false"
  69484. static="true" final="true" visibility="public"
  69485. deprecated="not deprecated">
  69486. <doc>
  69487. <![CDATA[JDBC Database access URL]]>
  69488. </doc>
  69489. </field>
  69490. <field name="USERNAME_PROPERTY" type="java.lang.String"
  69491. transient="false" volatile="false"
  69492. static="true" final="true" visibility="public"
  69493. deprecated="not deprecated">
  69494. <doc>
  69495. <![CDATA[User name to access the database]]>
  69496. </doc>
  69497. </field>
  69498. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  69499. transient="false" volatile="false"
  69500. static="true" final="true" visibility="public"
  69501. deprecated="not deprecated">
  69502. <doc>
  69503. <![CDATA[Password to access the database]]>
  69504. </doc>
  69505. </field>
  69506. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  69507. transient="false" volatile="false"
  69508. static="true" final="true" visibility="public"
  69509. deprecated="not deprecated">
  69510. <doc>
  69511. <![CDATA[Input table name]]>
  69512. </doc>
  69513. </field>
  69514. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  69515. transient="false" volatile="false"
  69516. static="true" final="true" visibility="public"
  69517. deprecated="not deprecated">
  69518. <doc>
  69519. <![CDATA[Field names in the Input table]]>
  69520. </doc>
  69521. </field>
  69522. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  69523. transient="false" volatile="false"
  69524. static="true" final="true" visibility="public"
  69525. deprecated="not deprecated">
  69526. <doc>
  69527. <![CDATA[WHERE clause in the input SELECT statement]]>
  69528. </doc>
  69529. </field>
  69530. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  69531. transient="false" volatile="false"
  69532. static="true" final="true" visibility="public"
  69533. deprecated="not deprecated">
  69534. <doc>
  69535. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  69536. </doc>
  69537. </field>
  69538. <field name="INPUT_QUERY" type="java.lang.String"
  69539. transient="false" volatile="false"
  69540. static="true" final="true" visibility="public"
  69541. deprecated="not deprecated">
  69542. <doc>
  69543. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  69544. </doc>
  69545. </field>
  69546. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  69547. transient="false" volatile="false"
  69548. static="true" final="true" visibility="public"
  69549. deprecated="not deprecated">
  69550. <doc>
  69551. <![CDATA[Input query to get the count of records]]>
  69552. </doc>
  69553. </field>
  69554. <field name="INPUT_BOUNDING_QUERY" type="java.lang.String"
  69555. transient="false" volatile="false"
  69556. static="true" final="true" visibility="public"
  69557. deprecated="not deprecated">
  69558. <doc>
  69559. <![CDATA[Input query to get the max and min values of the jdbc.input.query]]>
  69560. </doc>
  69561. </field>
  69562. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  69563. transient="false" volatile="false"
  69564. static="true" final="true" visibility="public"
  69565. deprecated="not deprecated">
  69566. <doc>
  69567. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  69568. </doc>
  69569. </field>
  69570. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  69571. transient="false" volatile="false"
  69572. static="true" final="true" visibility="public"
  69573. deprecated="not deprecated">
  69574. <doc>
  69575. <![CDATA[Output table name]]>
  69576. </doc>
  69577. </field>
  69578. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  69579. transient="false" volatile="false"
  69580. static="true" final="true" visibility="public"
  69581. deprecated="not deprecated">
  69582. <doc>
  69583. <![CDATA[Field names in the Output table]]>
  69584. </doc>
  69585. </field>
  69586. <field name="OUTPUT_FIELD_COUNT_PROPERTY" type="java.lang.String"
  69587. transient="false" volatile="false"
  69588. static="true" final="true" visibility="public"
  69589. deprecated="not deprecated">
  69590. <doc>
  69591. <![CDATA[Number of fields in the Output table]]>
  69592. </doc>
  69593. </field>
  69594. <doc>
  69595. <![CDATA[A container for configuration property names for jobs with DB input/output.
  69596. The job can be configured using the static methods in this class,
  69597. {@link DBInputFormat}, and {@link DBOutputFormat}.
  69598. Alternatively, the properties can be set in the configuration with proper
  69599. values.
  69600. @see DBConfiguration#configureDB(Configuration, String, String, String, String)
  69601. @see DBInputFormat#setInput(Job, Class, String, String)
  69602. @see DBInputFormat#setInput(Job, Class, String, String, String, String...)
  69603. @see DBOutputFormat#setOutput(Job, String, String...)]]>
  69604. </doc>
  69605. </class>
  69606. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  69607. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  69608. <class name="DBInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  69609. abstract="false"
  69610. static="false" final="false" visibility="public"
  69611. deprecated="not deprecated">
  69612. <implements name="org.apache.hadoop.conf.Configurable"/>
  69613. <constructor name="DBInputFormat"
  69614. static="false" final="false" visibility="public"
  69615. deprecated="not deprecated">
  69616. </constructor>
  69617. <method name="setConf"
  69618. abstract="false" native="false" synchronized="false"
  69619. static="false" final="false" visibility="public"
  69620. deprecated="not deprecated">
  69621. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69622. <doc>
  69623. <![CDATA[{@inheritDoc}]]>
  69624. </doc>
  69625. </method>
  69626. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69627. abstract="false" native="false" synchronized="false"
  69628. static="false" final="false" visibility="public"
  69629. deprecated="not deprecated">
  69630. </method>
  69631. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  69632. abstract="false" native="false" synchronized="false"
  69633. static="false" final="false" visibility="public"
  69634. deprecated="not deprecated">
  69635. </method>
  69636. <method name="getConnection" return="java.sql.Connection"
  69637. abstract="false" native="false" synchronized="false"
  69638. static="false" final="false" visibility="public"
  69639. deprecated="not deprecated">
  69640. </method>
  69641. <method name="getDBProductName" return="java.lang.String"
  69642. abstract="false" native="false" synchronized="false"
  69643. static="false" final="false" visibility="public"
  69644. deprecated="not deprecated">
  69645. </method>
  69646. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69647. abstract="false" native="false" synchronized="false"
  69648. static="false" final="false" visibility="protected"
  69649. deprecated="not deprecated">
  69650. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  69651. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69652. <exception name="IOException" type="java.io.IOException"/>
  69653. </method>
  69654. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  69655. abstract="false" native="false" synchronized="false"
  69656. static="false" final="false" visibility="public"
  69657. deprecated="not deprecated">
  69658. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69659. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69660. <exception name="IOException" type="java.io.IOException"/>
  69661. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69662. <doc>
  69663. <![CDATA[{@inheritDoc}]]>
  69664. </doc>
  69665. </method>
  69666. <method name="getSplits" return="java.util.List"
  69667. abstract="false" native="false" synchronized="false"
  69668. static="false" final="false" visibility="public"
  69669. deprecated="not deprecated">
  69670. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  69671. <exception name="IOException" type="java.io.IOException"/>
  69672. <doc>
  69673. <![CDATA[{@inheritDoc}]]>
  69674. </doc>
  69675. </method>
  69676. <method name="getCountQuery" return="java.lang.String"
  69677. abstract="false" native="false" synchronized="false"
  69678. static="false" final="false" visibility="protected"
  69679. deprecated="not deprecated">
  69680. <doc>
  69681. <![CDATA[Returns the query for getting the total number of rows,
  69682. subclasses can override this for custom behaviour.]]>
  69683. </doc>
  69684. </method>
  69685. <method name="setInput"
  69686. abstract="false" native="false" synchronized="false"
  69687. static="true" final="false" visibility="public"
  69688. deprecated="not deprecated">
  69689. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69690. <param name="inputClass" type="java.lang.Class"/>
  69691. <param name="tableName" type="java.lang.String"/>
  69692. <param name="conditions" type="java.lang.String"/>
  69693. <param name="orderBy" type="java.lang.String"/>
  69694. <param name="fieldNames" type="java.lang.String[]"/>
  69695. <doc>
  69696. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  69697. @param job The map-reduce job
  69698. @param inputClass the class object implementing DBWritable, which is the
  69699. Java object holding tuple fields.
  69700. @param tableName The table to read data from
  69701. @param conditions The condition which to select data with,
  69702. eg. '(updated > 20070101 AND length > 0)'
  69703. @param orderBy the fieldNames in the orderBy clause.
  69704. @param fieldNames The field names in the table
  69705. @see #setInput(Job, Class, String, String)]]>
  69706. </doc>
  69707. </method>
  69708. <method name="setInput"
  69709. abstract="false" native="false" synchronized="false"
  69710. static="true" final="false" visibility="public"
  69711. deprecated="not deprecated">
  69712. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69713. <param name="inputClass" type="java.lang.Class"/>
  69714. <param name="inputQuery" type="java.lang.String"/>
  69715. <param name="inputCountQuery" type="java.lang.String"/>
  69716. <doc>
  69717. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  69718. @param job The map-reduce job
  69719. @param inputClass the class object implementing DBWritable, which is the
  69720. Java object holding tuple fields.
  69721. @param inputQuery the input query to select fields. Example :
  69722. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  69723. @param inputCountQuery the input query that returns
  69724. the number of records in the table.
  69725. Example : "SELECT COUNT(f1) FROM Mytable"
  69726. @see #setInput(Job, Class, String, String, String, String...)]]>
  69727. </doc>
  69728. </method>
  69729. <method name="closeConnection"
  69730. abstract="false" native="false" synchronized="false"
  69731. static="false" final="false" visibility="protected"
  69732. deprecated="not deprecated">
  69733. </method>
  69734. <doc>
  69735. <![CDATA[A InputFormat that reads input data from an SQL table.
  69736. <p>
  69737. DBInputFormat emits LongWritables containing the record number as
  69738. key and DBWritables as value.
  69739. The SQL query, and input class can be using one of the two
  69740. setInput methods.]]>
  69741. </doc>
  69742. </class>
  69743. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  69744. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  69745. <class name="DBInputFormat.DBInputSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  69746. abstract="false"
  69747. static="true" final="false" visibility="public"
  69748. deprecated="not deprecated">
  69749. <implements name="org.apache.hadoop.io.Writable"/>
  69750. <constructor name="DBInputFormat.DBInputSplit"
  69751. static="false" final="false" visibility="public"
  69752. deprecated="not deprecated">
  69753. <doc>
  69754. <![CDATA[Default Constructor]]>
  69755. </doc>
  69756. </constructor>
  69757. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  69758. static="false" final="false" visibility="public"
  69759. deprecated="not deprecated">
  69760. <doc>
  69761. <![CDATA[Convenience Constructor
  69762. @param start the index of the first row to select
  69763. @param end the index of the last row to select]]>
  69764. </doc>
  69765. </constructor>
  69766. <method name="getLocations" return="java.lang.String[]"
  69767. abstract="false" native="false" synchronized="false"
  69768. static="false" final="false" visibility="public"
  69769. deprecated="not deprecated">
  69770. <exception name="IOException" type="java.io.IOException"/>
  69771. <doc>
  69772. <![CDATA[{@inheritDoc}]]>
  69773. </doc>
  69774. </method>
  69775. <method name="getStart" return="long"
  69776. abstract="false" native="false" synchronized="false"
  69777. static="false" final="false" visibility="public"
  69778. deprecated="not deprecated">
  69779. <doc>
  69780. <![CDATA[@return The index of the first row to select]]>
  69781. </doc>
  69782. </method>
  69783. <method name="getEnd" return="long"
  69784. abstract="false" native="false" synchronized="false"
  69785. static="false" final="false" visibility="public"
  69786. deprecated="not deprecated">
  69787. <doc>
  69788. <![CDATA[@return The index of the last row to select]]>
  69789. </doc>
  69790. </method>
  69791. <method name="getLength" return="long"
  69792. abstract="false" native="false" synchronized="false"
  69793. static="false" final="false" visibility="public"
  69794. deprecated="not deprecated">
  69795. <exception name="IOException" type="java.io.IOException"/>
  69796. <doc>
  69797. <![CDATA[@return The total row count in this split]]>
  69798. </doc>
  69799. </method>
  69800. <method name="readFields"
  69801. abstract="false" native="false" synchronized="false"
  69802. static="false" final="false" visibility="public"
  69803. deprecated="not deprecated">
  69804. <param name="input" type="java.io.DataInput"/>
  69805. <exception name="IOException" type="java.io.IOException"/>
  69806. <doc>
  69807. <![CDATA[{@inheritDoc}]]>
  69808. </doc>
  69809. </method>
  69810. <method name="write"
  69811. abstract="false" native="false" synchronized="false"
  69812. static="false" final="false" visibility="public"
  69813. deprecated="not deprecated">
  69814. <param name="output" type="java.io.DataOutput"/>
  69815. <exception name="IOException" type="java.io.IOException"/>
  69816. <doc>
  69817. <![CDATA[{@inheritDoc}]]>
  69818. </doc>
  69819. </method>
  69820. <doc>
  69821. <![CDATA[A InputSplit that spans a set of rows]]>
  69822. </doc>
  69823. </class>
  69824. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  69825. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  69826. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  69827. abstract="false"
  69828. static="true" final="false" visibility="public"
  69829. deprecated="not deprecated">
  69830. <implements name="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  69831. <implements name="org.apache.hadoop.io.Writable"/>
  69832. <constructor name="DBInputFormat.NullDBWritable"
  69833. static="false" final="false" visibility="public"
  69834. deprecated="not deprecated">
  69835. </constructor>
  69836. <method name="readFields"
  69837. abstract="false" native="false" synchronized="false"
  69838. static="false" final="false" visibility="public"
  69839. deprecated="not deprecated">
  69840. <param name="in" type="java.io.DataInput"/>
  69841. <exception name="IOException" type="java.io.IOException"/>
  69842. </method>
  69843. <method name="readFields"
  69844. abstract="false" native="false" synchronized="false"
  69845. static="false" final="false" visibility="public"
  69846. deprecated="not deprecated">
  69847. <param name="arg0" type="java.sql.ResultSet"/>
  69848. <exception name="SQLException" type="java.sql.SQLException"/>
  69849. </method>
  69850. <method name="write"
  69851. abstract="false" native="false" synchronized="false"
  69852. static="false" final="false" visibility="public"
  69853. deprecated="not deprecated">
  69854. <param name="out" type="java.io.DataOutput"/>
  69855. <exception name="IOException" type="java.io.IOException"/>
  69856. </method>
  69857. <method name="write"
  69858. abstract="false" native="false" synchronized="false"
  69859. static="false" final="false" visibility="public"
  69860. deprecated="not deprecated">
  69861. <param name="arg0" type="java.sql.PreparedStatement"/>
  69862. <exception name="SQLException" type="java.sql.SQLException"/>
  69863. </method>
  69864. <doc>
  69865. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  69866. </doc>
  69867. </class>
  69868. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  69869. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  69870. <class name="DBOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  69871. abstract="false"
  69872. static="false" final="false" visibility="public"
  69873. deprecated="not deprecated">
  69874. <constructor name="DBOutputFormat"
  69875. static="false" final="false" visibility="public"
  69876. deprecated="not deprecated">
  69877. </constructor>
  69878. <method name="checkOutputSpecs"
  69879. abstract="false" native="false" synchronized="false"
  69880. static="false" final="false" visibility="public"
  69881. deprecated="not deprecated">
  69882. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69883. <exception name="IOException" type="java.io.IOException"/>
  69884. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69885. </method>
  69886. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  69887. abstract="false" native="false" synchronized="false"
  69888. static="false" final="false" visibility="public"
  69889. deprecated="not deprecated">
  69890. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69891. <exception name="IOException" type="java.io.IOException"/>
  69892. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69893. </method>
  69894. <method name="constructQuery" return="java.lang.String"
  69895. abstract="false" native="false" synchronized="false"
  69896. static="false" final="false" visibility="public"
  69897. deprecated="not deprecated">
  69898. <param name="table" type="java.lang.String"/>
  69899. <param name="fieldNames" type="java.lang.String[]"/>
  69900. <doc>
  69901. <![CDATA[Constructs the query used as the prepared statement to insert data.
  69902. @param table
  69903. the table to insert into
  69904. @param fieldNames
  69905. the fields to insert into. If field names are unknown, supply an
  69906. array of nulls.]]>
  69907. </doc>
  69908. </method>
  69909. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  69910. abstract="false" native="false" synchronized="false"
  69911. static="false" final="false" visibility="public"
  69912. deprecated="not deprecated">
  69913. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69914. <exception name="IOException" type="java.io.IOException"/>
  69915. <doc>
  69916. <![CDATA[{@inheritDoc}]]>
  69917. </doc>
  69918. </method>
  69919. <method name="setOutput"
  69920. abstract="false" native="false" synchronized="false"
  69921. static="true" final="false" visibility="public"
  69922. deprecated="not deprecated">
  69923. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69924. <param name="tableName" type="java.lang.String"/>
  69925. <param name="fieldNames" type="java.lang.String[]"/>
  69926. <exception name="IOException" type="java.io.IOException"/>
  69927. <doc>
  69928. <![CDATA[Initializes the reduce-part of the job with
  69929. the appropriate output settings
  69930. @param job The job
  69931. @param tableName The table to insert data into
  69932. @param fieldNames The field names in the table.]]>
  69933. </doc>
  69934. </method>
  69935. <method name="setOutput"
  69936. abstract="false" native="false" synchronized="false"
  69937. static="true" final="false" visibility="public"
  69938. deprecated="not deprecated">
  69939. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  69940. <param name="tableName" type="java.lang.String"/>
  69941. <param name="fieldCount" type="int"/>
  69942. <exception name="IOException" type="java.io.IOException"/>
  69943. <doc>
  69944. <![CDATA[Initializes the reduce-part of the job
  69945. with the appropriate output settings
  69946. @param job The job
  69947. @param tableName The table to insert data into
  69948. @param fieldCount the number of fields in the table.]]>
  69949. </doc>
  69950. </method>
  69951. <doc>
  69952. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  69953. <p>
  69954. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  69955. key has a type extending DBWritable. Returned {@link RecordWriter}
  69956. writes <b>only the key</b> to the database with a batch SQL query.]]>
  69957. </doc>
  69958. </class>
  69959. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  69960. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  69961. <class name="DBOutputFormat.DBRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  69962. abstract="false"
  69963. static="false" final="false" visibility="public"
  69964. deprecated="not deprecated">
  69965. <constructor name="DBOutputFormat.DBRecordWriter"
  69966. static="false" final="false" visibility="public"
  69967. deprecated="not deprecated">
  69968. <exception name="SQLException" type="java.sql.SQLException"/>
  69969. </constructor>
  69970. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  69971. static="false" final="false" visibility="public"
  69972. deprecated="not deprecated">
  69973. <exception name="SQLException" type="java.sql.SQLException"/>
  69974. </constructor>
  69975. <method name="getConnection" return="java.sql.Connection"
  69976. abstract="false" native="false" synchronized="false"
  69977. static="false" final="false" visibility="public"
  69978. deprecated="not deprecated">
  69979. </method>
  69980. <method name="getStatement" return="java.sql.PreparedStatement"
  69981. abstract="false" native="false" synchronized="false"
  69982. static="false" final="false" visibility="public"
  69983. deprecated="not deprecated">
  69984. </method>
  69985. <method name="close"
  69986. abstract="false" native="false" synchronized="false"
  69987. static="false" final="false" visibility="public"
  69988. deprecated="not deprecated">
  69989. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69990. <exception name="IOException" type="java.io.IOException"/>
  69991. <doc>
  69992. <![CDATA[{@inheritDoc}]]>
  69993. </doc>
  69994. </method>
  69995. <method name="write"
  69996. abstract="false" native="false" synchronized="false"
  69997. static="false" final="false" visibility="public"
  69998. deprecated="not deprecated">
  69999. <param name="key" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  70000. <param name="value" type="java.lang.Object"/>
  70001. <exception name="IOException" type="java.io.IOException"/>
  70002. <doc>
  70003. <![CDATA[{@inheritDoc}]]>
  70004. </doc>
  70005. </method>
  70006. <doc>
  70007. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  70008. </doc>
  70009. </class>
  70010. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  70011. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  70012. <class name="DBRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70013. abstract="false"
  70014. static="false" final="false" visibility="public"
  70015. deprecated="not deprecated">
  70016. <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"
  70017. static="false" final="false" visibility="public"
  70018. deprecated="not deprecated">
  70019. <exception name="SQLException" type="java.sql.SQLException"/>
  70020. <doc>
  70021. <![CDATA[@param split The InputSplit to read data for
  70022. @throws SQLException]]>
  70023. </doc>
  70024. </constructor>
  70025. <method name="executeQuery" return="java.sql.ResultSet"
  70026. abstract="false" native="false" synchronized="false"
  70027. static="false" final="false" visibility="protected"
  70028. deprecated="not deprecated">
  70029. <param name="query" type="java.lang.String"/>
  70030. <exception name="SQLException" type="java.sql.SQLException"/>
  70031. </method>
  70032. <method name="getSelectQuery" return="java.lang.String"
  70033. abstract="false" native="false" synchronized="false"
  70034. static="false" final="false" visibility="protected"
  70035. deprecated="not deprecated">
  70036. <doc>
  70037. <![CDATA[Returns the query for selecting the records,
  70038. subclasses can override this for custom behaviour.]]>
  70039. </doc>
  70040. </method>
  70041. <method name="close"
  70042. abstract="false" native="false" synchronized="false"
  70043. static="false" final="false" visibility="public"
  70044. deprecated="not deprecated">
  70045. <exception name="IOException" type="java.io.IOException"/>
  70046. <doc>
  70047. <![CDATA[{@inheritDoc}]]>
  70048. </doc>
  70049. </method>
  70050. <method name="initialize"
  70051. abstract="false" native="false" synchronized="false"
  70052. static="false" final="false" visibility="public"
  70053. deprecated="not deprecated">
  70054. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70055. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70056. <exception name="IOException" type="java.io.IOException"/>
  70057. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70058. </method>
  70059. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  70060. abstract="false" native="false" synchronized="false"
  70061. static="false" final="false" visibility="public"
  70062. deprecated="not deprecated">
  70063. <doc>
  70064. <![CDATA[{@inheritDoc}]]>
  70065. </doc>
  70066. </method>
  70067. <method name="getCurrentValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  70068. abstract="false" native="false" synchronized="false"
  70069. static="false" final="false" visibility="public"
  70070. deprecated="not deprecated">
  70071. <doc>
  70072. <![CDATA[{@inheritDoc}]]>
  70073. </doc>
  70074. </method>
  70075. <method name="createValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  70076. abstract="false" native="false" synchronized="false"
  70077. static="false" final="false" visibility="public"
  70078. deprecated="deprecated, no comment">
  70079. <doc>
  70080. <![CDATA[@deprecated]]>
  70081. </doc>
  70082. </method>
  70083. <method name="getPos" return="long"
  70084. abstract="false" native="false" synchronized="false"
  70085. static="false" final="false" visibility="public"
  70086. deprecated="deprecated, no comment">
  70087. <exception name="IOException" type="java.io.IOException"/>
  70088. <doc>
  70089. <![CDATA[@deprecated]]>
  70090. </doc>
  70091. </method>
  70092. <method name="next" return="boolean"
  70093. abstract="false" native="false" synchronized="false"
  70094. static="false" final="false" visibility="public"
  70095. deprecated="Use {@link #nextKeyValue()}">
  70096. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  70097. <param name="value" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  70098. <exception name="IOException" type="java.io.IOException"/>
  70099. <doc>
  70100. <![CDATA[@deprecated Use {@link #nextKeyValue()}]]>
  70101. </doc>
  70102. </method>
  70103. <method name="getProgress" return="float"
  70104. abstract="false" native="false" synchronized="false"
  70105. static="false" final="false" visibility="public"
  70106. deprecated="not deprecated">
  70107. <exception name="IOException" type="java.io.IOException"/>
  70108. <doc>
  70109. <![CDATA[{@inheritDoc}]]>
  70110. </doc>
  70111. </method>
  70112. <method name="nextKeyValue" return="boolean"
  70113. abstract="false" native="false" synchronized="false"
  70114. static="false" final="false" visibility="public"
  70115. deprecated="not deprecated">
  70116. <exception name="IOException" type="java.io.IOException"/>
  70117. <doc>
  70118. <![CDATA[{@inheritDoc}]]>
  70119. </doc>
  70120. </method>
  70121. <method name="getSplit" return="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  70122. abstract="false" native="false" synchronized="false"
  70123. static="false" final="false" visibility="protected"
  70124. deprecated="not deprecated">
  70125. </method>
  70126. <method name="getFieldNames" return="java.lang.String[]"
  70127. abstract="false" native="false" synchronized="false"
  70128. static="false" final="false" visibility="protected"
  70129. deprecated="not deprecated">
  70130. </method>
  70131. <method name="getTableName" return="java.lang.String"
  70132. abstract="false" native="false" synchronized="false"
  70133. static="false" final="false" visibility="protected"
  70134. deprecated="not deprecated">
  70135. </method>
  70136. <method name="getConditions" return="java.lang.String"
  70137. abstract="false" native="false" synchronized="false"
  70138. static="false" final="false" visibility="protected"
  70139. deprecated="not deprecated">
  70140. </method>
  70141. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  70142. abstract="false" native="false" synchronized="false"
  70143. static="false" final="false" visibility="protected"
  70144. deprecated="not deprecated">
  70145. </method>
  70146. <method name="getConnection" return="java.sql.Connection"
  70147. abstract="false" native="false" synchronized="false"
  70148. static="false" final="false" visibility="protected"
  70149. deprecated="not deprecated">
  70150. </method>
  70151. <method name="getStatement" return="java.sql.PreparedStatement"
  70152. abstract="false" native="false" synchronized="false"
  70153. static="false" final="false" visibility="protected"
  70154. deprecated="not deprecated">
  70155. </method>
  70156. <method name="setStatement"
  70157. abstract="false" native="false" synchronized="false"
  70158. static="false" final="false" visibility="protected"
  70159. deprecated="not deprecated">
  70160. <param name="stmt" type="java.sql.PreparedStatement"/>
  70161. </method>
  70162. <field name="statement" type="java.sql.PreparedStatement"
  70163. transient="false" volatile="false"
  70164. static="false" final="false" visibility="protected"
  70165. deprecated="not deprecated">
  70166. </field>
  70167. <doc>
  70168. <![CDATA[A RecordReader that reads records from a SQL table.
  70169. Emits LongWritables containing the record number as
  70170. key and DBWritables as value.]]>
  70171. </doc>
  70172. </class>
  70173. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  70174. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  70175. <interface name="DBSplitter" abstract="true"
  70176. static="false" final="false" visibility="public"
  70177. deprecated="not deprecated">
  70178. <method name="split" return="java.util.List"
  70179. abstract="false" native="false" synchronized="false"
  70180. static="false" final="false" visibility="public"
  70181. deprecated="not deprecated">
  70182. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70183. <param name="results" type="java.sql.ResultSet"/>
  70184. <param name="colName" type="java.lang.String"/>
  70185. <exception name="SQLException" type="java.sql.SQLException"/>
  70186. <doc>
  70187. <![CDATA[Given a ResultSet containing one record (and already advanced to that record)
  70188. with two columns (a low value, and a high value, both of the same type), determine
  70189. a set of splits that span the given values.]]>
  70190. </doc>
  70191. </method>
  70192. <doc>
  70193. <![CDATA[DBSplitter will generate DBInputSplits to use with DataDrivenDBInputFormat.
  70194. DataDrivenDBInputFormat needs to interpolate between two values that
  70195. represent the lowest and highest valued records to import. Depending
  70196. on the data-type of the column, this requires different behavior.
  70197. DBSplitter implementations should perform this for a data type or family
  70198. of data types.]]>
  70199. </doc>
  70200. </interface>
  70201. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  70202. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  70203. <interface name="DBWritable" abstract="true"
  70204. static="false" final="false" visibility="public"
  70205. deprecated="not deprecated">
  70206. <method name="write"
  70207. abstract="false" native="false" synchronized="false"
  70208. static="false" final="false" visibility="public"
  70209. deprecated="not deprecated">
  70210. <param name="statement" type="java.sql.PreparedStatement"/>
  70211. <exception name="SQLException" type="java.sql.SQLException"/>
  70212. <doc>
  70213. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  70214. @param statement the statement that the fields are put into.
  70215. @throws SQLException]]>
  70216. </doc>
  70217. </method>
  70218. <method name="readFields"
  70219. abstract="false" native="false" synchronized="false"
  70220. static="false" final="false" visibility="public"
  70221. deprecated="not deprecated">
  70222. <param name="resultSet" type="java.sql.ResultSet"/>
  70223. <exception name="SQLException" type="java.sql.SQLException"/>
  70224. <doc>
  70225. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  70226. @param resultSet the {@link ResultSet} to get the fields from.
  70227. @throws SQLException]]>
  70228. </doc>
  70229. </method>
  70230. <doc>
  70231. <![CDATA[Objects that are read from/written to a database should implement
  70232. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  70233. except that the {@link #write(PreparedStatement)} method takes a
  70234. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  70235. takes a {@link ResultSet}.
  70236. <p>
  70237. Implementations are responsible for writing the fields of the object
  70238. to PreparedStatement, and reading the fields of the object from the
  70239. ResultSet.
  70240. <p>Example:</p>
  70241. If we have the following table in the database :
  70242. <pre>
  70243. CREATE TABLE MyTable (
  70244. counter INTEGER NOT NULL,
  70245. timestamp BIGINT NOT NULL,
  70246. );
  70247. </pre>
  70248. then we can read/write the tuples from/to the table with :
  70249. <p><pre>
  70250. public class MyWritable implements Writable, DBWritable {
  70251. // Some data
  70252. private int counter;
  70253. private long timestamp;
  70254. //Writable#write() implementation
  70255. public void write(DataOutput out) throws IOException {
  70256. out.writeInt(counter);
  70257. out.writeLong(timestamp);
  70258. }
  70259. //Writable#readFields() implementation
  70260. public void readFields(DataInput in) throws IOException {
  70261. counter = in.readInt();
  70262. timestamp = in.readLong();
  70263. }
  70264. public void write(PreparedStatement statement) throws SQLException {
  70265. statement.setInt(1, counter);
  70266. statement.setLong(2, timestamp);
  70267. }
  70268. public void readFields(ResultSet resultSet) throws SQLException {
  70269. counter = resultSet.getInt(1);
  70270. timestamp = resultSet.getLong(2);
  70271. }
  70272. }
  70273. </pre></p>]]>
  70274. </doc>
  70275. </interface>
  70276. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  70277. <!-- start class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  70278. <class name="FloatSplitter" extends="java.lang.Object"
  70279. abstract="false"
  70280. static="false" final="false" visibility="public"
  70281. deprecated="not deprecated">
  70282. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  70283. <constructor name="FloatSplitter"
  70284. static="false" final="false" visibility="public"
  70285. deprecated="not deprecated">
  70286. </constructor>
  70287. <method name="split" return="java.util.List"
  70288. abstract="false" native="false" synchronized="false"
  70289. static="false" final="false" visibility="public"
  70290. deprecated="not deprecated">
  70291. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70292. <param name="results" type="java.sql.ResultSet"/>
  70293. <param name="colName" type="java.lang.String"/>
  70294. <exception name="SQLException" type="java.sql.SQLException"/>
  70295. </method>
  70296. <doc>
  70297. <![CDATA[Implement DBSplitter over floating-point values.]]>
  70298. </doc>
  70299. </class>
  70300. <!-- end class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  70301. <!-- start class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  70302. <class name="IntegerSplitter" extends="java.lang.Object"
  70303. abstract="false"
  70304. static="false" final="false" visibility="public"
  70305. deprecated="not deprecated">
  70306. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  70307. <constructor name="IntegerSplitter"
  70308. static="false" final="false" visibility="public"
  70309. deprecated="not deprecated">
  70310. </constructor>
  70311. <method name="split" return="java.util.List"
  70312. abstract="false" native="false" synchronized="false"
  70313. static="false" final="false" visibility="public"
  70314. deprecated="not deprecated">
  70315. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70316. <param name="results" type="java.sql.ResultSet"/>
  70317. <param name="colName" type="java.lang.String"/>
  70318. <exception name="SQLException" type="java.sql.SQLException"/>
  70319. </method>
  70320. <doc>
  70321. <![CDATA[Implement DBSplitter over integer values.]]>
  70322. </doc>
  70323. </class>
  70324. <!-- end class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  70325. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  70326. <class name="MySQLDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  70327. abstract="false"
  70328. static="false" final="false" visibility="public"
  70329. deprecated="not deprecated">
  70330. <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"
  70331. static="false" final="false" visibility="public"
  70332. deprecated="not deprecated">
  70333. <exception name="SQLException" type="java.sql.SQLException"/>
  70334. </constructor>
  70335. <method name="executeQuery" return="java.sql.ResultSet"
  70336. abstract="false" native="false" synchronized="false"
  70337. static="false" final="false" visibility="protected"
  70338. deprecated="not deprecated">
  70339. <param name="query" type="java.lang.String"/>
  70340. <exception name="SQLException" type="java.sql.SQLException"/>
  70341. </method>
  70342. <doc>
  70343. <![CDATA[A RecordReader that reads records from a MySQL table via DataDrivenDBRecordReader]]>
  70344. </doc>
  70345. </class>
  70346. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  70347. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  70348. <class name="MySQLDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  70349. abstract="false"
  70350. static="false" final="false" visibility="public"
  70351. deprecated="not deprecated">
  70352. <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"
  70353. static="false" final="false" visibility="public"
  70354. deprecated="not deprecated">
  70355. <exception name="SQLException" type="java.sql.SQLException"/>
  70356. </constructor>
  70357. <method name="executeQuery" return="java.sql.ResultSet"
  70358. abstract="false" native="false" synchronized="false"
  70359. static="false" final="false" visibility="protected"
  70360. deprecated="not deprecated">
  70361. <param name="query" type="java.lang.String"/>
  70362. <exception name="SQLException" type="java.sql.SQLException"/>
  70363. </method>
  70364. <doc>
  70365. <![CDATA[A RecordReader that reads records from a MySQL table.]]>
  70366. </doc>
  70367. </class>
  70368. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  70369. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  70370. <class name="OracleDataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat"
  70371. abstract="false"
  70372. static="false" final="false" visibility="public"
  70373. deprecated="not deprecated">
  70374. <implements name="org.apache.hadoop.conf.Configurable"/>
  70375. <constructor name="OracleDataDrivenDBInputFormat"
  70376. static="false" final="false" visibility="public"
  70377. deprecated="not deprecated">
  70378. </constructor>
  70379. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  70380. abstract="false" native="false" synchronized="false"
  70381. static="false" final="false" visibility="protected"
  70382. deprecated="not deprecated">
  70383. <param name="sqlDataType" type="int"/>
  70384. <doc>
  70385. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  70386. </doc>
  70387. </method>
  70388. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70389. abstract="false" native="false" synchronized="false"
  70390. static="false" final="false" visibility="protected"
  70391. deprecated="not deprecated">
  70392. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  70393. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70394. <exception name="IOException" type="java.io.IOException"/>
  70395. </method>
  70396. <doc>
  70397. <![CDATA[A InputFormat that reads input data from an SQL table in an Oracle db.]]>
  70398. </doc>
  70399. </class>
  70400. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  70401. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  70402. <class name="OracleDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  70403. abstract="false"
  70404. static="false" final="false" visibility="public"
  70405. deprecated="not deprecated">
  70406. <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"
  70407. static="false" final="false" visibility="public"
  70408. deprecated="not deprecated">
  70409. <exception name="SQLException" type="java.sql.SQLException"/>
  70410. </constructor>
  70411. <doc>
  70412. <![CDATA[A RecordReader that reads records from a Oracle table via DataDrivenDBRecordReader]]>
  70413. </doc>
  70414. </class>
  70415. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  70416. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  70417. <class name="OracleDateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.DateSplitter"
  70418. abstract="false"
  70419. static="false" final="false" visibility="public"
  70420. deprecated="not deprecated">
  70421. <constructor name="OracleDateSplitter"
  70422. static="false" final="false" visibility="public"
  70423. deprecated="not deprecated">
  70424. </constructor>
  70425. <method name="dateToString" return="java.lang.String"
  70426. abstract="false" native="false" synchronized="false"
  70427. static="false" final="false" visibility="protected"
  70428. deprecated="not deprecated">
  70429. <param name="d" type="java.util.Date"/>
  70430. </method>
  70431. <doc>
  70432. <![CDATA[Implement DBSplitter over date/time values returned by an Oracle db.
  70433. Make use of logic from DateSplitter, since this just needs to use
  70434. some Oracle-specific functions on the formatting end when generating
  70435. InputSplits.]]>
  70436. </doc>
  70437. </class>
  70438. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  70439. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  70440. <class name="OracleDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  70441. abstract="false"
  70442. static="false" final="false" visibility="public"
  70443. deprecated="not deprecated">
  70444. <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"
  70445. static="false" final="false" visibility="public"
  70446. deprecated="not deprecated">
  70447. <exception name="SQLException" type="java.sql.SQLException"/>
  70448. </constructor>
  70449. <method name="getSelectQuery" return="java.lang.String"
  70450. abstract="false" native="false" synchronized="false"
  70451. static="false" final="false" visibility="protected"
  70452. deprecated="not deprecated">
  70453. <doc>
  70454. <![CDATA[Returns the query for selecting the records from an Oracle DB.]]>
  70455. </doc>
  70456. </method>
  70457. <method name="setSessionTimeZone"
  70458. abstract="false" native="false" synchronized="false"
  70459. static="true" final="false" visibility="public"
  70460. deprecated="not deprecated">
  70461. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70462. <param name="conn" type="java.sql.Connection"/>
  70463. <exception name="SQLException" type="java.sql.SQLException"/>
  70464. <doc>
  70465. <![CDATA[Set session time zone
  70466. @param conf The current configuration.
  70467. We read the 'oracle.sessionTimeZone' property from here.
  70468. @param conn The connection to alter the timezone properties of.]]>
  70469. </doc>
  70470. </method>
  70471. <field name="SESSION_TIMEZONE_KEY" type="java.lang.String"
  70472. transient="false" volatile="false"
  70473. static="true" final="true" visibility="public"
  70474. deprecated="not deprecated">
  70475. <doc>
  70476. <![CDATA[Configuration key to set to a timezone string.]]>
  70477. </doc>
  70478. </field>
  70479. <doc>
  70480. <![CDATA[A RecordReader that reads records from an Oracle SQL table.]]>
  70481. </doc>
  70482. </class>
  70483. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  70484. <!-- start class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  70485. <class name="TextSplitter" extends="org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter"
  70486. abstract="false"
  70487. static="false" final="false" visibility="public"
  70488. deprecated="not deprecated">
  70489. <constructor name="TextSplitter"
  70490. static="false" final="false" visibility="public"
  70491. deprecated="not deprecated">
  70492. </constructor>
  70493. <method name="split" return="java.util.List"
  70494. abstract="false" native="false" synchronized="false"
  70495. static="false" final="false" visibility="public"
  70496. deprecated="not deprecated">
  70497. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70498. <param name="results" type="java.sql.ResultSet"/>
  70499. <param name="colName" type="java.lang.String"/>
  70500. <exception name="SQLException" type="java.sql.SQLException"/>
  70501. <doc>
  70502. <![CDATA[This method needs to determine the splits between two user-provided strings.
  70503. In the case where the user's strings are 'A' and 'Z', this is not hard; we
  70504. could create two splits from ['A', 'M') and ['M', 'Z'], 26 splits for strings
  70505. beginning with each letter, etc.
  70506. If a user has provided us with the strings "Ham" and "Haze", however, we need
  70507. to create splits that differ in the third letter.
  70508. The algorithm used is as follows:
  70509. Since there are 2**16 unicode characters, we interpret characters as digits in
  70510. base 65536. Given a string 's' containing characters s_0, s_1 .. s_n, we interpret
  70511. the string as the number: 0.s_0 s_1 s_2.. s_n in base 65536. Having mapped the
  70512. low and high strings into floating-point values, we then use the BigDecimalSplitter
  70513. to establish the even split points, then map the resulting floating point values
  70514. back into strings.]]>
  70515. </doc>
  70516. </method>
  70517. <doc>
  70518. <![CDATA[Implement DBSplitter over text strings.]]>
  70519. </doc>
  70520. </class>
  70521. <!-- end class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  70522. </package>
  70523. <package name="org.apache.hadoop.mapreduce.lib.fieldsel">
  70524. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  70525. <class name="FieldSelectionHelper" extends="java.lang.Object"
  70526. abstract="false"
  70527. static="false" final="false" visibility="public"
  70528. deprecated="not deprecated">
  70529. <constructor name="FieldSelectionHelper"
  70530. static="false" final="false" visibility="public"
  70531. deprecated="not deprecated">
  70532. </constructor>
  70533. <constructor name="FieldSelectionHelper" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  70534. static="false" final="false" visibility="public"
  70535. deprecated="not deprecated">
  70536. </constructor>
  70537. <method name="parseOutputKeyValueSpec" return="int"
  70538. abstract="false" native="false" synchronized="false"
  70539. static="true" final="false" visibility="public"
  70540. deprecated="not deprecated">
  70541. <param name="keyValueSpec" type="java.lang.String"/>
  70542. <param name="keyFieldList" type="java.util.List"/>
  70543. <param name="valueFieldList" type="java.util.List"/>
  70544. </method>
  70545. <method name="specToString" return="java.lang.String"
  70546. abstract="false" native="false" synchronized="false"
  70547. static="true" final="false" visibility="public"
  70548. deprecated="not deprecated">
  70549. <param name="fieldSeparator" type="java.lang.String"/>
  70550. <param name="keyValueSpec" type="java.lang.String"/>
  70551. <param name="allValueFieldsFrom" type="int"/>
  70552. <param name="keyFieldList" type="java.util.List"/>
  70553. <param name="valueFieldList" type="java.util.List"/>
  70554. </method>
  70555. <method name="getKey" return="org.apache.hadoop.io.Text"
  70556. abstract="false" native="false" synchronized="false"
  70557. static="false" final="false" visibility="public"
  70558. deprecated="not deprecated">
  70559. </method>
  70560. <method name="getValue" return="org.apache.hadoop.io.Text"
  70561. abstract="false" native="false" synchronized="false"
  70562. static="false" final="false" visibility="public"
  70563. deprecated="not deprecated">
  70564. </method>
  70565. <method name="extractOutputKeyValue"
  70566. abstract="false" native="false" synchronized="false"
  70567. static="false" final="false" visibility="public"
  70568. deprecated="not deprecated">
  70569. <param name="key" type="java.lang.String"/>
  70570. <param name="val" type="java.lang.String"/>
  70571. <param name="fieldSep" type="java.lang.String"/>
  70572. <param name="keyFieldList" type="java.util.List"/>
  70573. <param name="valFieldList" type="java.util.List"/>
  70574. <param name="allValueFieldsFrom" type="int"/>
  70575. <param name="ignoreKey" type="boolean"/>
  70576. <param name="isMap" type="boolean"/>
  70577. </method>
  70578. <field name="emptyText" type="org.apache.hadoop.io.Text"
  70579. transient="false" volatile="false"
  70580. static="true" final="false" visibility="public"
  70581. deprecated="not deprecated">
  70582. </field>
  70583. <field name="DATA_FIELD_SEPERATOR" type="java.lang.String"
  70584. transient="false" volatile="false"
  70585. static="true" final="true" visibility="public"
  70586. deprecated="not deprecated">
  70587. </field>
  70588. <field name="MAP_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  70589. transient="false" volatile="false"
  70590. static="true" final="true" visibility="public"
  70591. deprecated="not deprecated">
  70592. </field>
  70593. <field name="REDUCE_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  70594. transient="false" volatile="false"
  70595. static="true" final="true" visibility="public"
  70596. deprecated="not deprecated">
  70597. </field>
  70598. <doc>
  70599. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  70600. field selections in a manner similar to unix cut. The input data is treated
  70601. as fields separated by a user specified separator (the default value is
  70602. "\t"). The user can specify a list of fields that form the map output keys,
  70603. and a list of fields that form the map output values. If the inputformat is
  70604. TextInputFormat, the mapper will ignore the key to the map function. and the
  70605. fields are from the value only. Otherwise, the fields are the union of those
  70606. from the key and those from the value.
  70607. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  70608. The map output field list spec is under attribute
  70609. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  70610. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  70611. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  70612. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  70613. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  70614. the fields starting from field 3. The open range field spec applies value fields only.
  70615. They have no effect on the key fields.
  70616. 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,
  70617. and use fields 6,5,1,2,3,7 and above for values.
  70618. The reduce output field list spec is under attribute
  70619. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  70620. The reducer extracts output key/value pairs in a similar manner, except that
  70621. the key is never ignored.]]>
  70622. </doc>
  70623. </class>
  70624. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  70625. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  70626. <class name="FieldSelectionMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  70627. abstract="false"
  70628. static="false" final="false" visibility="public"
  70629. deprecated="not deprecated">
  70630. <constructor name="FieldSelectionMapper"
  70631. static="false" final="false" visibility="public"
  70632. deprecated="not deprecated">
  70633. </constructor>
  70634. <method name="setup"
  70635. abstract="false" native="false" synchronized="false"
  70636. static="false" final="false" visibility="public"
  70637. deprecated="not deprecated">
  70638. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  70639. <exception name="IOException" type="java.io.IOException"/>
  70640. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70641. </method>
  70642. <method name="map"
  70643. abstract="false" native="false" synchronized="false"
  70644. static="false" final="false" visibility="public"
  70645. deprecated="not deprecated">
  70646. <param name="key" type="java.lang.Object"/>
  70647. <param name="val" type="java.lang.Object"/>
  70648. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  70649. <exception name="IOException" type="java.io.IOException"/>
  70650. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70651. <doc>
  70652. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  70653. </doc>
  70654. </method>
  70655. <field name="LOG" type="org.apache.commons.logging.Log"
  70656. transient="false" volatile="false"
  70657. static="true" final="true" visibility="public"
  70658. deprecated="not deprecated">
  70659. </field>
  70660. <doc>
  70661. <![CDATA[This class implements a mapper class that can be used to perform
  70662. field selections in a manner similar to unix cut. The input data is treated
  70663. as fields separated by a user specified separator (the default value is
  70664. "\t"). The user can specify a list of fields that form the map output keys,
  70665. and a list of fields that form the map output values. If the inputformat is
  70666. TextInputFormat, the mapper will ignore the key to the map function. and the
  70667. fields are from the value only. Otherwise, the fields are the union of those
  70668. from the key and those from the value.
  70669. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  70670. The map output field list spec is under attribute
  70671. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  70672. The value is expected to be like
  70673. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,) separated
  70674. field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec can be a
  70675. simple number (e.g. 5) specifying a specific field, or a range (like 2-5)
  70676. to specify a range of fields, or an open range (like 3-) specifying all
  70677. the fields starting from field 3. The open range field spec applies value
  70678. fields only. They have no effect on the key fields.
  70679. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  70680. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  70681. </doc>
  70682. </class>
  70683. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  70684. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  70685. <class name="FieldSelectionReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  70686. abstract="false"
  70687. static="false" final="false" visibility="public"
  70688. deprecated="not deprecated">
  70689. <constructor name="FieldSelectionReducer"
  70690. static="false" final="false" visibility="public"
  70691. deprecated="not deprecated">
  70692. </constructor>
  70693. <method name="setup"
  70694. abstract="false" native="false" synchronized="false"
  70695. static="false" final="false" visibility="public"
  70696. deprecated="not deprecated">
  70697. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  70698. <exception name="IOException" type="java.io.IOException"/>
  70699. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70700. </method>
  70701. <method name="reduce"
  70702. abstract="false" native="false" synchronized="false"
  70703. static="false" final="false" visibility="public"
  70704. deprecated="not deprecated">
  70705. <param name="key" type="org.apache.hadoop.io.Text"/>
  70706. <param name="values" type="java.lang.Iterable"/>
  70707. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  70708. <exception name="IOException" type="java.io.IOException"/>
  70709. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70710. </method>
  70711. <field name="LOG" type="org.apache.commons.logging.Log"
  70712. transient="false" volatile="false"
  70713. static="true" final="true" visibility="public"
  70714. deprecated="not deprecated">
  70715. </field>
  70716. <doc>
  70717. <![CDATA[This class implements a reducer class that can be used to perform field
  70718. selections in a manner similar to unix cut.
  70719. The input data is treated as fields separated by a user specified
  70720. separator (the default value is "\t"). The user can specify a list of
  70721. fields that form the reduce output keys, and a list of fields that form
  70722. the reduce output values. The fields are the union of those from the key
  70723. and those from the value.
  70724. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  70725. The reduce output field list spec is under attribute
  70726. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  70727. The value is expected to be like
  70728. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,)
  70729. separated field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec
  70730. can be a simple number (e.g. 5) specifying a specific field, or a range
  70731. (like 2-5) to specify a range of fields, or an open range (like 3-)
  70732. specifying all the fields starting from field 3. The open range field
  70733. spec applies value fields only. They have no effect on the key fields.
  70734. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  70735. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  70736. </doc>
  70737. </class>
  70738. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  70739. </package>
  70740. <package name="org.apache.hadoop.mapreduce.lib.input">
  70741. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  70742. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  70743. abstract="true"
  70744. static="false" final="false" visibility="public"
  70745. deprecated="not deprecated">
  70746. <constructor name="CombineFileInputFormat"
  70747. static="false" final="false" visibility="public"
  70748. deprecated="not deprecated">
  70749. <doc>
  70750. <![CDATA[default constructor]]>
  70751. </doc>
  70752. </constructor>
  70753. <method name="setMaxSplitSize"
  70754. abstract="false" native="false" synchronized="false"
  70755. static="false" final="false" visibility="protected"
  70756. deprecated="not deprecated">
  70757. <param name="maxSplitSize" type="long"/>
  70758. <doc>
  70759. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  70760. approximately equal to the specified size.]]>
  70761. </doc>
  70762. </method>
  70763. <method name="setMinSplitSizeNode"
  70764. abstract="false" native="false" synchronized="false"
  70765. static="false" final="false" visibility="protected"
  70766. deprecated="not deprecated">
  70767. <param name="minSplitSizeNode" type="long"/>
  70768. <doc>
  70769. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  70770. This applies to data that is left over after combining data on a single
  70771. node into splits that are of maximum size specified by maxSplitSize.
  70772. This leftover data will be combined into its own split if its size
  70773. exceeds minSplitSizeNode.]]>
  70774. </doc>
  70775. </method>
  70776. <method name="setMinSplitSizeRack"
  70777. abstract="false" native="false" synchronized="false"
  70778. static="false" final="false" visibility="protected"
  70779. deprecated="not deprecated">
  70780. <param name="minSplitSizeRack" type="long"/>
  70781. <doc>
  70782. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  70783. This applies to data that is left over after combining data on a single
  70784. rack into splits that are of maximum size specified by maxSplitSize.
  70785. This leftover data will be combined into its own split if its size
  70786. exceeds minSplitSizeRack.]]>
  70787. </doc>
  70788. </method>
  70789. <method name="createPool"
  70790. abstract="false" native="false" synchronized="false"
  70791. static="false" final="false" visibility="protected"
  70792. deprecated="not deprecated">
  70793. <param name="filters" type="java.util.List"/>
  70794. <doc>
  70795. <![CDATA[Create a new pool and add the filters to it.
  70796. A split cannot have files from different pools.]]>
  70797. </doc>
  70798. </method>
  70799. <method name="createPool"
  70800. abstract="false" native="false" synchronized="false"
  70801. static="false" final="false" visibility="protected"
  70802. deprecated="not deprecated">
  70803. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  70804. <doc>
  70805. <![CDATA[Create a new pool and add the filters to it.
  70806. A pathname can satisfy any one of the specified filters.
  70807. A split cannot have files from different pools.]]>
  70808. </doc>
  70809. </method>
  70810. <method name="isSplitable" return="boolean"
  70811. abstract="false" native="false" synchronized="false"
  70812. static="false" final="false" visibility="protected"
  70813. deprecated="not deprecated">
  70814. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  70815. <param name="file" type="org.apache.hadoop.fs.Path"/>
  70816. </method>
  70817. <method name="getSplits" return="java.util.List"
  70818. abstract="false" native="false" synchronized="false"
  70819. static="false" final="false" visibility="public"
  70820. deprecated="not deprecated">
  70821. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70822. <exception name="IOException" type="java.io.IOException"/>
  70823. </method>
  70824. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70825. abstract="true" 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. <doc>
  70832. <![CDATA[This is not implemented yet.]]>
  70833. </doc>
  70834. </method>
  70835. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  70836. abstract="false" native="false" synchronized="false"
  70837. static="false" final="false" visibility="protected"
  70838. deprecated="not deprecated">
  70839. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  70840. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  70841. <exception name="IOException" type="java.io.IOException"/>
  70842. </method>
  70843. <field name="SPLIT_MINSIZE_PERNODE" type="java.lang.String"
  70844. transient="false" volatile="false"
  70845. static="true" final="true" visibility="public"
  70846. deprecated="not deprecated">
  70847. </field>
  70848. <field name="SPLIT_MINSIZE_PERRACK" type="java.lang.String"
  70849. transient="false" volatile="false"
  70850. static="true" final="true" visibility="public"
  70851. deprecated="not deprecated">
  70852. </field>
  70853. <doc>
  70854. <![CDATA[An abstract {@link InputFormat} that returns {@link CombineFileSplit}'s in
  70855. {@link InputFormat#getSplits(JobContext)} method.
  70856. Splits are constructed from the files under the input paths.
  70857. A split cannot have files from different pools.
  70858. Each split returned may contain blocks from different files.
  70859. If a maxSplitSize is specified, then blocks on the same node are
  70860. combined to form a single split. Blocks that are left over are
  70861. then combined with other blocks in the same rack.
  70862. If maxSplitSize is not specified, then blocks from the same rack
  70863. are combined in a single split; no attempt is made to create
  70864. node-local splits.
  70865. If the maxSplitSize is equal to the block size, then this class
  70866. is similar to the default splitting behavior in Hadoop: each
  70867. block is a locally processed split.
  70868. Subclasses implement
  70869. {@link InputFormat#createRecordReader(InputSplit, TaskAttemptContext)}
  70870. to construct <code>RecordReader</code>'s for
  70871. <code>CombineFileSplit</code>'s.
  70872. @see CombineFileSplit]]>
  70873. </doc>
  70874. </class>
  70875. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  70876. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  70877. <class name="CombineFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  70878. abstract="false"
  70879. static="false" final="false" visibility="public"
  70880. deprecated="not deprecated">
  70881. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit, org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.Class"
  70882. static="false" final="false" visibility="public"
  70883. deprecated="not deprecated">
  70884. <exception name="IOException" type="java.io.IOException"/>
  70885. <doc>
  70886. <![CDATA[A generic RecordReader that can hand out different recordReaders
  70887. for each chunk in the CombineFileSplit.]]>
  70888. </doc>
  70889. </constructor>
  70890. <method name="initialize"
  70891. abstract="false" native="false" synchronized="false"
  70892. static="false" final="false" visibility="public"
  70893. deprecated="not deprecated">
  70894. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  70895. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  70896. <exception name="IOException" type="java.io.IOException"/>
  70897. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70898. </method>
  70899. <method name="nextKeyValue" return="boolean"
  70900. abstract="false" native="false" synchronized="false"
  70901. static="false" final="false" visibility="public"
  70902. deprecated="not deprecated">
  70903. <exception name="IOException" type="java.io.IOException"/>
  70904. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70905. </method>
  70906. <method name="getCurrentKey" return="java.lang.Object"
  70907. abstract="false" native="false" synchronized="false"
  70908. static="false" final="false" visibility="public"
  70909. deprecated="not deprecated">
  70910. <exception name="IOException" type="java.io.IOException"/>
  70911. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70912. </method>
  70913. <method name="getCurrentValue" return="java.lang.Object"
  70914. abstract="false" native="false" synchronized="false"
  70915. static="false" final="false" visibility="public"
  70916. deprecated="not deprecated">
  70917. <exception name="IOException" type="java.io.IOException"/>
  70918. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70919. </method>
  70920. <method name="close"
  70921. abstract="false" native="false" synchronized="false"
  70922. static="false" final="false" visibility="public"
  70923. deprecated="not deprecated">
  70924. <exception name="IOException" type="java.io.IOException"/>
  70925. </method>
  70926. <method name="getProgress" return="float"
  70927. abstract="false" native="false" synchronized="false"
  70928. static="false" final="false" visibility="public"
  70929. deprecated="not deprecated">
  70930. <exception name="IOException" type="java.io.IOException"/>
  70931. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70932. <doc>
  70933. <![CDATA[return progress based on the amount of data processed so far.]]>
  70934. </doc>
  70935. </method>
  70936. <method name="initNextRecordReader" return="boolean"
  70937. abstract="false" native="false" synchronized="false"
  70938. static="false" final="false" visibility="protected"
  70939. deprecated="not deprecated">
  70940. <exception name="IOException" type="java.io.IOException"/>
  70941. <doc>
  70942. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  70943. </doc>
  70944. </method>
  70945. <field name="split" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  70946. transient="false" volatile="false"
  70947. static="false" final="false" visibility="protected"
  70948. deprecated="not deprecated">
  70949. </field>
  70950. <field name="rrClass" type="java.lang.Class"
  70951. transient="false" volatile="false"
  70952. static="false" final="false" visibility="protected"
  70953. deprecated="not deprecated">
  70954. </field>
  70955. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  70956. transient="false" volatile="false"
  70957. static="false" final="false" visibility="protected"
  70958. deprecated="not deprecated">
  70959. </field>
  70960. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  70961. transient="false" volatile="false"
  70962. static="false" final="false" visibility="protected"
  70963. deprecated="not deprecated">
  70964. </field>
  70965. <field name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"
  70966. transient="false" volatile="false"
  70967. static="false" final="false" visibility="protected"
  70968. deprecated="not deprecated">
  70969. </field>
  70970. <field name="idx" type="int"
  70971. transient="false" volatile="false"
  70972. static="false" final="false" visibility="protected"
  70973. deprecated="not deprecated">
  70974. </field>
  70975. <field name="progress" type="long"
  70976. transient="false" volatile="false"
  70977. static="false" final="false" visibility="protected"
  70978. deprecated="not deprecated">
  70979. </field>
  70980. <field name="curReader" type="org.apache.hadoop.mapreduce.RecordReader"
  70981. transient="false" volatile="false"
  70982. static="false" final="false" visibility="protected"
  70983. deprecated="not deprecated">
  70984. </field>
  70985. <doc>
  70986. <![CDATA[A generic RecordReader that can hand out different recordReaders
  70987. for each chunk in a {@link CombineFileSplit}.
  70988. A CombineFileSplit can combine data chunks from multiple files.
  70989. This class allows using different RecordReaders for processing
  70990. these data chunks from different files.
  70991. @see CombineFileSplit]]>
  70992. </doc>
  70993. </class>
  70994. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  70995. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  70996. <class name="CombineFileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  70997. abstract="false"
  70998. static="false" final="false" visibility="public"
  70999. deprecated="not deprecated">
  71000. <implements name="org.apache.hadoop.io.Writable"/>
  71001. <constructor name="CombineFileSplit"
  71002. static="false" final="false" visibility="public"
  71003. deprecated="not deprecated">
  71004. <doc>
  71005. <![CDATA[default constructor]]>
  71006. </doc>
  71007. </constructor>
  71008. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  71009. static="false" final="false" visibility="public"
  71010. deprecated="not deprecated">
  71011. </constructor>
  71012. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[]"
  71013. static="false" final="false" visibility="public"
  71014. deprecated="not deprecated">
  71015. </constructor>
  71016. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  71017. static="false" final="false" visibility="public"
  71018. deprecated="not deprecated">
  71019. <exception name="IOException" type="java.io.IOException"/>
  71020. <doc>
  71021. <![CDATA[Copy constructor]]>
  71022. </doc>
  71023. </constructor>
  71024. <method name="getLength" return="long"
  71025. abstract="false" native="false" synchronized="false"
  71026. static="false" final="false" visibility="public"
  71027. deprecated="not deprecated">
  71028. </method>
  71029. <method name="getStartOffsets" return="long[]"
  71030. abstract="false" native="false" synchronized="false"
  71031. static="false" final="false" visibility="public"
  71032. deprecated="not deprecated">
  71033. <doc>
  71034. <![CDATA[Returns an array containing the start offsets of the files in the split]]>
  71035. </doc>
  71036. </method>
  71037. <method name="getLengths" return="long[]"
  71038. abstract="false" native="false" synchronized="false"
  71039. static="false" final="false" visibility="public"
  71040. deprecated="not deprecated">
  71041. <doc>
  71042. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  71043. </doc>
  71044. </method>
  71045. <method name="getOffset" return="long"
  71046. abstract="false" native="false" synchronized="false"
  71047. static="false" final="false" visibility="public"
  71048. deprecated="not deprecated">
  71049. <param name="i" type="int"/>
  71050. <doc>
  71051. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  71052. </doc>
  71053. </method>
  71054. <method name="getLength" return="long"
  71055. abstract="false" native="false" synchronized="false"
  71056. static="false" final="false" visibility="public"
  71057. deprecated="not deprecated">
  71058. <param name="i" type="int"/>
  71059. <doc>
  71060. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  71061. </doc>
  71062. </method>
  71063. <method name="getNumPaths" return="int"
  71064. abstract="false" native="false" synchronized="false"
  71065. static="false" final="false" visibility="public"
  71066. deprecated="not deprecated">
  71067. <doc>
  71068. <![CDATA[Returns the number of Paths in the split]]>
  71069. </doc>
  71070. </method>
  71071. <method name="getPath" return="org.apache.hadoop.fs.Path"
  71072. abstract="false" native="false" synchronized="false"
  71073. static="false" final="false" visibility="public"
  71074. deprecated="not deprecated">
  71075. <param name="i" type="int"/>
  71076. <doc>
  71077. <![CDATA[Returns the i<sup>th</sup> Path]]>
  71078. </doc>
  71079. </method>
  71080. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  71081. abstract="false" native="false" synchronized="false"
  71082. static="false" final="false" visibility="public"
  71083. deprecated="not deprecated">
  71084. <doc>
  71085. <![CDATA[Returns all the Paths in the split]]>
  71086. </doc>
  71087. </method>
  71088. <method name="getLocations" return="java.lang.String[]"
  71089. abstract="false" native="false" synchronized="false"
  71090. static="false" final="false" visibility="public"
  71091. deprecated="not deprecated">
  71092. <exception name="IOException" type="java.io.IOException"/>
  71093. <doc>
  71094. <![CDATA[Returns all the Paths where this input-split resides]]>
  71095. </doc>
  71096. </method>
  71097. <method name="readFields"
  71098. abstract="false" native="false" synchronized="false"
  71099. static="false" final="false" visibility="public"
  71100. deprecated="not deprecated">
  71101. <param name="in" type="java.io.DataInput"/>
  71102. <exception name="IOException" type="java.io.IOException"/>
  71103. </method>
  71104. <method name="write"
  71105. abstract="false" native="false" synchronized="false"
  71106. static="false" final="false" visibility="public"
  71107. deprecated="not deprecated">
  71108. <param name="out" type="java.io.DataOutput"/>
  71109. <exception name="IOException" type="java.io.IOException"/>
  71110. </method>
  71111. <method name="toString" return="java.lang.String"
  71112. abstract="false" native="false" synchronized="false"
  71113. static="false" final="false" visibility="public"
  71114. deprecated="not deprecated">
  71115. </method>
  71116. <doc>
  71117. <![CDATA[A sub-collection of input files.
  71118. Unlike {@link FileSplit}, CombineFileSplit class does not represent
  71119. a split of a file, but a split of input files into smaller sets.
  71120. A split may contain blocks from different file but all
  71121. the blocks in the same split are probably local to some rack <br>
  71122. CombineFileSplit can be used to implement {@link RecordReader}'s,
  71123. with reading one record per file.
  71124. @see FileSplit
  71125. @see CombineFileInputFormat]]>
  71126. </doc>
  71127. </class>
  71128. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  71129. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  71130. <class name="DelegatingInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  71131. abstract="false"
  71132. static="false" final="false" visibility="public"
  71133. deprecated="not deprecated">
  71134. <constructor name="DelegatingInputFormat"
  71135. static="false" final="false" visibility="public"
  71136. deprecated="not deprecated">
  71137. </constructor>
  71138. <method name="getSplits" return="java.util.List"
  71139. abstract="false" native="false" synchronized="false"
  71140. static="false" final="false" visibility="public"
  71141. deprecated="not deprecated">
  71142. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71143. <exception name="IOException" type="java.io.IOException"/>
  71144. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71145. </method>
  71146. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71147. abstract="false" native="false" synchronized="false"
  71148. static="false" final="false" visibility="public"
  71149. deprecated="not deprecated">
  71150. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71151. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71152. <exception name="IOException" type="java.io.IOException"/>
  71153. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71154. </method>
  71155. <doc>
  71156. <![CDATA[An {@link InputFormat} that delegates behavior of paths to multiple other
  71157. InputFormats.
  71158. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  71159. </doc>
  71160. </class>
  71161. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  71162. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  71163. <class name="DelegatingMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  71164. abstract="false"
  71165. static="false" final="false" visibility="public"
  71166. deprecated="not deprecated">
  71167. <constructor name="DelegatingMapper"
  71168. static="false" final="false" visibility="public"
  71169. deprecated="not deprecated">
  71170. </constructor>
  71171. <method name="setup"
  71172. abstract="false" native="false" synchronized="false"
  71173. static="false" final="false" visibility="protected"
  71174. deprecated="not deprecated">
  71175. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71176. <exception name="IOException" type="java.io.IOException"/>
  71177. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71178. </method>
  71179. <method name="run"
  71180. abstract="false" native="false" synchronized="false"
  71181. static="false" final="false" visibility="public"
  71182. deprecated="not deprecated">
  71183. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  71184. <exception name="IOException" type="java.io.IOException"/>
  71185. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71186. </method>
  71187. <doc>
  71188. <![CDATA[An {@link Mapper} that delegates behavior of paths to multiple other
  71189. mappers.
  71190. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  71191. </doc>
  71192. </class>
  71193. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  71194. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  71195. <class name="DelegatingRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71196. abstract="false"
  71197. static="false" final="false" visibility="public"
  71198. deprecated="not deprecated">
  71199. <constructor name="DelegatingRecordReader" type="org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext"
  71200. static="false" final="false" visibility="public"
  71201. deprecated="not deprecated">
  71202. <exception name="IOException" type="java.io.IOException"/>
  71203. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71204. <doc>
  71205. <![CDATA[Constructs the DelegatingRecordReader.
  71206. @param split TaggegInputSplit object
  71207. @param context TaskAttemptContext object
  71208. @throws IOException
  71209. @throws InterruptedException]]>
  71210. </doc>
  71211. </constructor>
  71212. <method name="close"
  71213. abstract="false" native="false" synchronized="false"
  71214. static="false" final="false" visibility="public"
  71215. deprecated="not deprecated">
  71216. <exception name="IOException" type="java.io.IOException"/>
  71217. </method>
  71218. <method name="getCurrentKey" return="java.lang.Object"
  71219. abstract="false" native="false" synchronized="false"
  71220. static="false" final="false" visibility="public"
  71221. deprecated="not deprecated">
  71222. <exception name="IOException" type="java.io.IOException"/>
  71223. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71224. </method>
  71225. <method name="getCurrentValue" return="java.lang.Object"
  71226. abstract="false" native="false" synchronized="false"
  71227. static="false" final="false" visibility="public"
  71228. deprecated="not deprecated">
  71229. <exception name="IOException" type="java.io.IOException"/>
  71230. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71231. </method>
  71232. <method name="getProgress" return="float"
  71233. abstract="false" native="false" synchronized="false"
  71234. static="false" final="false" visibility="public"
  71235. deprecated="not deprecated">
  71236. <exception name="IOException" type="java.io.IOException"/>
  71237. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71238. </method>
  71239. <method name="initialize"
  71240. abstract="false" native="false" synchronized="false"
  71241. static="false" final="false" visibility="public"
  71242. deprecated="not deprecated">
  71243. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71244. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71245. <exception name="IOException" type="java.io.IOException"/>
  71246. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71247. </method>
  71248. <method name="nextKeyValue" return="boolean"
  71249. abstract="false" native="false" synchronized="false"
  71250. static="false" final="false" visibility="public"
  71251. deprecated="not deprecated">
  71252. <exception name="IOException" type="java.io.IOException"/>
  71253. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71254. </method>
  71255. <doc>
  71256. <![CDATA[This is a delegating RecordReader, which delegates the functionality to the
  71257. underlying record reader in {@link TaggedInputSplit}]]>
  71258. </doc>
  71259. </class>
  71260. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  71261. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  71262. <class name="FileInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  71263. abstract="true"
  71264. static="false" final="false" visibility="public"
  71265. deprecated="not deprecated">
  71266. <constructor name="FileInputFormat"
  71267. static="false" final="false" visibility="public"
  71268. deprecated="not deprecated">
  71269. </constructor>
  71270. <method name="getFormatMinSplitSize" return="long"
  71271. abstract="false" native="false" synchronized="false"
  71272. static="false" final="false" visibility="protected"
  71273. deprecated="not deprecated">
  71274. <doc>
  71275. <![CDATA[Get the lower bound on split size imposed by the format.
  71276. @return the number of bytes of the minimal split for this format]]>
  71277. </doc>
  71278. </method>
  71279. <method name="isSplitable" return="boolean"
  71280. abstract="false" native="false" synchronized="false"
  71281. static="false" final="false" visibility="protected"
  71282. deprecated="not deprecated">
  71283. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71284. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  71285. <doc>
  71286. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  71287. stream compressed, it will not be.
  71288. <code>FileInputFormat</code> implementations can override this and return
  71289. <code>false</code> to ensure that individual input files are never split-up
  71290. so that {@link Mapper}s process entire files.
  71291. @param context the job context
  71292. @param filename the file name to check
  71293. @return is this file splitable?]]>
  71294. </doc>
  71295. </method>
  71296. <method name="setInputPathFilter"
  71297. abstract="false" native="false" synchronized="false"
  71298. static="true" final="false" visibility="public"
  71299. deprecated="not deprecated">
  71300. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71301. <param name="filter" type="java.lang.Class"/>
  71302. <doc>
  71303. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  71304. @param job the job to modify
  71305. @param filter the PathFilter class use for filtering the input paths.]]>
  71306. </doc>
  71307. </method>
  71308. <method name="setMinInputSplitSize"
  71309. abstract="false" native="false" synchronized="false"
  71310. static="true" final="false" visibility="public"
  71311. deprecated="not deprecated">
  71312. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71313. <param name="size" type="long"/>
  71314. <doc>
  71315. <![CDATA[Set the minimum input split size
  71316. @param job the job to modify
  71317. @param size the minimum size]]>
  71318. </doc>
  71319. </method>
  71320. <method name="getMinSplitSize" return="long"
  71321. abstract="false" native="false" synchronized="false"
  71322. static="true" final="false" visibility="public"
  71323. deprecated="not deprecated">
  71324. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71325. <doc>
  71326. <![CDATA[Get the minimum split size
  71327. @param job the job
  71328. @return the minimum number of bytes that can be in a split]]>
  71329. </doc>
  71330. </method>
  71331. <method name="setMaxInputSplitSize"
  71332. abstract="false" native="false" synchronized="false"
  71333. static="true" final="false" visibility="public"
  71334. deprecated="not deprecated">
  71335. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71336. <param name="size" type="long"/>
  71337. <doc>
  71338. <![CDATA[Set the maximum split size
  71339. @param job the job to modify
  71340. @param size the maximum split size]]>
  71341. </doc>
  71342. </method>
  71343. <method name="getMaxSplitSize" return="long"
  71344. abstract="false" native="false" synchronized="false"
  71345. static="true" final="false" visibility="public"
  71346. deprecated="not deprecated">
  71347. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71348. <doc>
  71349. <![CDATA[Get the maximum split size.
  71350. @param context the job to look at.
  71351. @return the maximum number of bytes a split can include]]>
  71352. </doc>
  71353. </method>
  71354. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  71355. abstract="false" native="false" synchronized="false"
  71356. static="true" final="false" visibility="public"
  71357. deprecated="not deprecated">
  71358. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71359. <doc>
  71360. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  71361. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  71362. </doc>
  71363. </method>
  71364. <method name="listStatus" return="java.util.List"
  71365. abstract="false" native="false" synchronized="false"
  71366. static="false" final="false" visibility="protected"
  71367. deprecated="not deprecated">
  71368. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71369. <exception name="IOException" type="java.io.IOException"/>
  71370. <doc>
  71371. <![CDATA[List input directories.
  71372. Subclasses may override to, e.g., select only files matching a regular
  71373. expression.
  71374. @param job the job to list input paths for
  71375. @return array of FileStatus objects
  71376. @throws IOException if zero items.]]>
  71377. </doc>
  71378. </method>
  71379. <method name="getSplits" return="java.util.List"
  71380. abstract="false" native="false" synchronized="false"
  71381. static="false" final="false" visibility="public"
  71382. deprecated="not deprecated">
  71383. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71384. <exception name="IOException" type="java.io.IOException"/>
  71385. <doc>
  71386. <![CDATA[Generate the list of files and make them into FileSplits.]]>
  71387. </doc>
  71388. </method>
  71389. <method name="computeSplitSize" return="long"
  71390. abstract="false" native="false" synchronized="false"
  71391. static="false" final="false" visibility="protected"
  71392. deprecated="not deprecated">
  71393. <param name="blockSize" type="long"/>
  71394. <param name="minSize" type="long"/>
  71395. <param name="maxSize" type="long"/>
  71396. </method>
  71397. <method name="getBlockIndex" return="int"
  71398. abstract="false" native="false" synchronized="false"
  71399. static="false" final="false" visibility="protected"
  71400. deprecated="not deprecated">
  71401. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  71402. <param name="offset" type="long"/>
  71403. </method>
  71404. <method name="setInputPaths"
  71405. abstract="false" native="false" synchronized="false"
  71406. static="true" final="false" visibility="public"
  71407. deprecated="not deprecated">
  71408. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71409. <param name="commaSeparatedPaths" type="java.lang.String"/>
  71410. <exception name="IOException" type="java.io.IOException"/>
  71411. <doc>
  71412. <![CDATA[Sets the given comma separated paths as the list of inputs
  71413. for the map-reduce job.
  71414. @param job the job
  71415. @param commaSeparatedPaths Comma separated paths to be set as
  71416. the list of inputs for the map-reduce job.]]>
  71417. </doc>
  71418. </method>
  71419. <method name="addInputPaths"
  71420. abstract="false" native="false" synchronized="false"
  71421. static="true" final="false" visibility="public"
  71422. deprecated="not deprecated">
  71423. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71424. <param name="commaSeparatedPaths" type="java.lang.String"/>
  71425. <exception name="IOException" type="java.io.IOException"/>
  71426. <doc>
  71427. <![CDATA[Add the given comma separated paths to the list of inputs for
  71428. the map-reduce job.
  71429. @param job The job to modify
  71430. @param commaSeparatedPaths Comma separated paths to be added to
  71431. the list of inputs for the map-reduce job.]]>
  71432. </doc>
  71433. </method>
  71434. <method name="setInputPaths"
  71435. abstract="false" native="false" synchronized="false"
  71436. static="true" final="false" visibility="public"
  71437. deprecated="not deprecated">
  71438. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71439. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  71440. <exception name="IOException" type="java.io.IOException"/>
  71441. <doc>
  71442. <![CDATA[Set the array of {@link Path}s as the list of inputs
  71443. for the map-reduce job.
  71444. @param job The job to modify
  71445. @param inputPaths the {@link Path}s of the input directories/files
  71446. for the map-reduce job.]]>
  71447. </doc>
  71448. </method>
  71449. <method name="addInputPath"
  71450. abstract="false" native="false" synchronized="false"
  71451. static="true" final="false" visibility="public"
  71452. deprecated="not deprecated">
  71453. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71454. <param name="path" type="org.apache.hadoop.fs.Path"/>
  71455. <exception name="IOException" type="java.io.IOException"/>
  71456. <doc>
  71457. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  71458. @param job The {@link Job} to modify
  71459. @param path {@link Path} to be added to the list of inputs for
  71460. the map-reduce job.]]>
  71461. </doc>
  71462. </method>
  71463. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  71464. abstract="false" native="false" synchronized="false"
  71465. static="true" final="false" visibility="public"
  71466. deprecated="not deprecated">
  71467. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71468. <doc>
  71469. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  71470. @param context The job
  71471. @return the list of input {@link Path}s for the map-reduce job.]]>
  71472. </doc>
  71473. </method>
  71474. <doc>
  71475. <![CDATA[A base class for file-based {@link InputFormat}s.
  71476. <p><code>FileInputFormat</code> is the base class for all file-based
  71477. <code>InputFormat</code>s. This provides a generic implementation of
  71478. {@link #getSplits(JobContext)}.
  71479. Subclasses of <code>FileInputFormat</code> can also override the
  71480. {@link #isSplitable(JobContext, Path)} method to ensure input-files are
  71481. not split-up and are processed as a whole by {@link Mapper}s.]]>
  71482. </doc>
  71483. </class>
  71484. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  71485. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  71486. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  71487. abstract="false"
  71488. static="true" final="true" visibility="public"
  71489. deprecated="not deprecated">
  71490. <method name="values" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter[]"
  71491. abstract="false" native="false" synchronized="false"
  71492. static="true" final="false" visibility="public"
  71493. deprecated="not deprecated">
  71494. </method>
  71495. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  71496. abstract="false" native="false" synchronized="false"
  71497. static="true" final="false" visibility="public"
  71498. deprecated="not deprecated">
  71499. <param name="name" type="java.lang.String"/>
  71500. </method>
  71501. <field name="BYTES_READ" type="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  71502. transient="false" volatile="false"
  71503. static="true" final="true" visibility="public"
  71504. deprecated="not deprecated">
  71505. </field>
  71506. </class>
  71507. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  71508. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  71509. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  71510. abstract="false"
  71511. static="false" final="false" visibility="public"
  71512. deprecated="not deprecated">
  71513. <implements name="org.apache.hadoop.io.Writable"/>
  71514. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  71515. static="false" final="false" visibility="public"
  71516. deprecated="not deprecated">
  71517. <doc>
  71518. <![CDATA[Constructs a split with host information
  71519. @param file the file name
  71520. @param start the position of the first byte in the file to process
  71521. @param length the number of bytes in the file to process
  71522. @param hosts the list of hosts containing the block, possibly null]]>
  71523. </doc>
  71524. </constructor>
  71525. <method name="getPath" return="org.apache.hadoop.fs.Path"
  71526. abstract="false" native="false" synchronized="false"
  71527. static="false" final="false" visibility="public"
  71528. deprecated="not deprecated">
  71529. <doc>
  71530. <![CDATA[The file containing this split's data.]]>
  71531. </doc>
  71532. </method>
  71533. <method name="getStart" return="long"
  71534. abstract="false" native="false" synchronized="false"
  71535. static="false" final="false" visibility="public"
  71536. deprecated="not deprecated">
  71537. <doc>
  71538. <![CDATA[The position of the first byte in the file to process.]]>
  71539. </doc>
  71540. </method>
  71541. <method name="getLength" return="long"
  71542. abstract="false" native="false" synchronized="false"
  71543. static="false" final="false" visibility="public"
  71544. deprecated="not deprecated">
  71545. <doc>
  71546. <![CDATA[The number of bytes in the file to process.]]>
  71547. </doc>
  71548. </method>
  71549. <method name="toString" return="java.lang.String"
  71550. abstract="false" native="false" synchronized="false"
  71551. static="false" final="false" visibility="public"
  71552. deprecated="not deprecated">
  71553. </method>
  71554. <method name="write"
  71555. abstract="false" native="false" synchronized="false"
  71556. static="false" final="false" visibility="public"
  71557. deprecated="not deprecated">
  71558. <param name="out" type="java.io.DataOutput"/>
  71559. <exception name="IOException" type="java.io.IOException"/>
  71560. </method>
  71561. <method name="readFields"
  71562. abstract="false" native="false" synchronized="false"
  71563. static="false" final="false" visibility="public"
  71564. deprecated="not deprecated">
  71565. <param name="in" type="java.io.DataInput"/>
  71566. <exception name="IOException" type="java.io.IOException"/>
  71567. </method>
  71568. <method name="getLocations" return="java.lang.String[]"
  71569. abstract="false" native="false" synchronized="false"
  71570. static="false" final="false" visibility="public"
  71571. deprecated="not deprecated">
  71572. <exception name="IOException" type="java.io.IOException"/>
  71573. </method>
  71574. <doc>
  71575. <![CDATA[A section of an input file. Returned by {@link
  71576. InputFormat#getSplits(JobContext)} and passed to
  71577. {@link InputFormat#createRecordReader(InputSplit,TaskAttemptContext)}.]]>
  71578. </doc>
  71579. </class>
  71580. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  71581. <!-- start class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  71582. <class name="InvalidInputException" extends="java.io.IOException"
  71583. abstract="false"
  71584. static="false" final="false" visibility="public"
  71585. deprecated="not deprecated">
  71586. <constructor name="InvalidInputException" type="java.util.List"
  71587. static="false" final="false" visibility="public"
  71588. deprecated="not deprecated">
  71589. <doc>
  71590. <![CDATA[Create the exception with the given list.
  71591. @param probs the list of problems to report. this list is not copied.]]>
  71592. </doc>
  71593. </constructor>
  71594. <method name="getProblems" return="java.util.List"
  71595. abstract="false" native="false" synchronized="false"
  71596. static="false" final="false" visibility="public"
  71597. deprecated="not deprecated">
  71598. <doc>
  71599. <![CDATA[Get the complete list of the problems reported.
  71600. @return the list of problems, which must not be modified]]>
  71601. </doc>
  71602. </method>
  71603. <method name="getMessage" return="java.lang.String"
  71604. abstract="false" native="false" synchronized="false"
  71605. static="false" final="false" visibility="public"
  71606. deprecated="not deprecated">
  71607. <doc>
  71608. <![CDATA[Get a summary message of the problems found.
  71609. @return the concatenated messages from all of the problems.]]>
  71610. </doc>
  71611. </method>
  71612. <doc>
  71613. <![CDATA[This class wraps a list of problems with the input, so that the user
  71614. can get a list of problems together instead of finding and fixing them one
  71615. by one.]]>
  71616. </doc>
  71617. </class>
  71618. <!-- end class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  71619. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  71620. <class name="KeyValueLineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71621. abstract="false"
  71622. static="false" final="false" visibility="public"
  71623. deprecated="not deprecated">
  71624. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration"
  71625. static="false" final="false" visibility="public"
  71626. deprecated="not deprecated">
  71627. <exception name="IOException" type="java.io.IOException"/>
  71628. </constructor>
  71629. <method name="getKeyClass" return="java.lang.Class"
  71630. abstract="false" native="false" synchronized="false"
  71631. static="false" final="false" visibility="public"
  71632. deprecated="not deprecated">
  71633. </method>
  71634. <method name="initialize"
  71635. abstract="false" native="false" synchronized="false"
  71636. static="false" final="false" visibility="public"
  71637. deprecated="not deprecated">
  71638. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71639. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71640. <exception name="IOException" type="java.io.IOException"/>
  71641. </method>
  71642. <method name="findSeparator" return="int"
  71643. abstract="false" native="false" synchronized="false"
  71644. static="true" final="false" visibility="public"
  71645. deprecated="not deprecated">
  71646. <param name="utf" type="byte[]"/>
  71647. <param name="start" type="int"/>
  71648. <param name="length" type="int"/>
  71649. <param name="sep" type="byte"/>
  71650. </method>
  71651. <method name="setKeyValue"
  71652. abstract="false" native="false" synchronized="false"
  71653. static="true" final="false" visibility="public"
  71654. deprecated="not deprecated">
  71655. <param name="key" type="org.apache.hadoop.io.Text"/>
  71656. <param name="value" type="org.apache.hadoop.io.Text"/>
  71657. <param name="line" type="byte[]"/>
  71658. <param name="lineLen" type="int"/>
  71659. <param name="pos" type="int"/>
  71660. </method>
  71661. <method name="nextKeyValue" return="boolean"
  71662. abstract="false" native="false" synchronized="true"
  71663. static="false" final="false" visibility="public"
  71664. deprecated="not deprecated">
  71665. <exception name="IOException" type="java.io.IOException"/>
  71666. <doc>
  71667. <![CDATA[Read key/value pair in a line.]]>
  71668. </doc>
  71669. </method>
  71670. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  71671. abstract="false" native="false" synchronized="false"
  71672. static="false" final="false" visibility="public"
  71673. deprecated="not deprecated">
  71674. </method>
  71675. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  71676. abstract="false" native="false" synchronized="false"
  71677. static="false" final="false" visibility="public"
  71678. deprecated="not deprecated">
  71679. </method>
  71680. <method name="getProgress" return="float"
  71681. abstract="false" native="false" synchronized="false"
  71682. static="false" final="false" visibility="public"
  71683. deprecated="not deprecated">
  71684. <exception name="IOException" type="java.io.IOException"/>
  71685. </method>
  71686. <method name="close"
  71687. abstract="false" native="false" synchronized="true"
  71688. static="false" final="false" visibility="public"
  71689. deprecated="not deprecated">
  71690. <exception name="IOException" type="java.io.IOException"/>
  71691. </method>
  71692. <field name="KEY_VALUE_SEPERATOR" type="java.lang.String"
  71693. transient="false" volatile="false"
  71694. static="true" final="true" visibility="public"
  71695. deprecated="not deprecated">
  71696. </field>
  71697. <doc>
  71698. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  71699. separator character. The separator can be specified in config file
  71700. under the attribute name mapreduce.input.keyvaluelinerecordreader.key.value.separator. The default
  71701. separator is the tab character ('\t').]]>
  71702. </doc>
  71703. </class>
  71704. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  71705. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  71706. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  71707. abstract="false"
  71708. static="false" final="false" visibility="public"
  71709. deprecated="not deprecated">
  71710. <constructor name="KeyValueTextInputFormat"
  71711. static="false" final="false" visibility="public"
  71712. deprecated="not deprecated">
  71713. </constructor>
  71714. <method name="isSplitable" return="boolean"
  71715. abstract="false" native="false" synchronized="false"
  71716. static="false" final="false" visibility="protected"
  71717. deprecated="not deprecated">
  71718. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71719. <param name="file" type="org.apache.hadoop.fs.Path"/>
  71720. </method>
  71721. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71722. abstract="false" native="false" synchronized="false"
  71723. static="false" final="false" visibility="public"
  71724. deprecated="not deprecated">
  71725. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71726. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71727. <exception name="IOException" type="java.io.IOException"/>
  71728. </method>
  71729. <doc>
  71730. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  71731. Either line feed or carriage-return are used to signal end of line.
  71732. Each line is divided into key and value parts by a separator byte. If no
  71733. such a byte exists, the key will be the entire line and value will be empty.]]>
  71734. </doc>
  71735. </class>
  71736. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  71737. <!-- start class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  71738. <class name="LineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71739. abstract="false"
  71740. static="false" final="false" visibility="public"
  71741. deprecated="not deprecated">
  71742. <constructor name="LineRecordReader"
  71743. static="false" final="false" visibility="public"
  71744. deprecated="not deprecated">
  71745. </constructor>
  71746. <method name="initialize"
  71747. abstract="false" native="false" synchronized="false"
  71748. static="false" final="false" visibility="public"
  71749. deprecated="not deprecated">
  71750. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71751. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71752. <exception name="IOException" type="java.io.IOException"/>
  71753. </method>
  71754. <method name="nextKeyValue" return="boolean"
  71755. abstract="false" native="false" synchronized="false"
  71756. static="false" final="false" visibility="public"
  71757. deprecated="not deprecated">
  71758. <exception name="IOException" type="java.io.IOException"/>
  71759. </method>
  71760. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  71761. abstract="false" native="false" synchronized="false"
  71762. static="false" final="false" visibility="public"
  71763. deprecated="not deprecated">
  71764. </method>
  71765. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  71766. abstract="false" native="false" synchronized="false"
  71767. static="false" final="false" visibility="public"
  71768. deprecated="not deprecated">
  71769. </method>
  71770. <method name="getProgress" return="float"
  71771. abstract="false" native="false" synchronized="false"
  71772. static="false" final="false" visibility="public"
  71773. deprecated="not deprecated">
  71774. <exception name="IOException" type="java.io.IOException"/>
  71775. <doc>
  71776. <![CDATA[Get the progress within the split]]>
  71777. </doc>
  71778. </method>
  71779. <method name="close"
  71780. abstract="false" native="false" synchronized="true"
  71781. static="false" final="false" visibility="public"
  71782. deprecated="not deprecated">
  71783. <exception name="IOException" type="java.io.IOException"/>
  71784. </method>
  71785. <doc>
  71786. <![CDATA[Treats keys as offset in file and value as line.]]>
  71787. </doc>
  71788. </class>
  71789. <!-- end class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  71790. <!-- start class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  71791. <class name="MultipleInputs" extends="java.lang.Object"
  71792. abstract="false"
  71793. static="false" final="false" visibility="public"
  71794. deprecated="not deprecated">
  71795. <constructor name="MultipleInputs"
  71796. static="false" final="false" visibility="public"
  71797. deprecated="not deprecated">
  71798. </constructor>
  71799. <method name="addInputPath"
  71800. abstract="false" native="false" synchronized="false"
  71801. static="true" final="false" visibility="public"
  71802. deprecated="not deprecated">
  71803. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71804. <param name="path" type="org.apache.hadoop.fs.Path"/>
  71805. <param name="inputFormatClass" type="java.lang.Class"/>
  71806. <doc>
  71807. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  71808. inputs for the map-reduce job.
  71809. @param job The {@link Job}
  71810. @param path {@link Path} to be added to the list of inputs for the job
  71811. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  71812. </doc>
  71813. </method>
  71814. <method name="addInputPath"
  71815. abstract="false" native="false" synchronized="false"
  71816. static="true" final="false" visibility="public"
  71817. deprecated="not deprecated">
  71818. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71819. <param name="path" type="org.apache.hadoop.fs.Path"/>
  71820. <param name="inputFormatClass" type="java.lang.Class"/>
  71821. <param name="mapperClass" type="java.lang.Class"/>
  71822. <doc>
  71823. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  71824. {@link Mapper} to the list of inputs for the map-reduce job.
  71825. @param job The {@link Job}
  71826. @param path {@link Path} to be added to the list of inputs for the job
  71827. @param inputFormatClass {@link InputFormat} class to use for this path
  71828. @param mapperClass {@link Mapper} class to use for this path]]>
  71829. </doc>
  71830. </method>
  71831. <field name="DIR_FORMATS" type="java.lang.String"
  71832. transient="false" volatile="false"
  71833. static="true" final="true" visibility="public"
  71834. deprecated="not deprecated">
  71835. </field>
  71836. <field name="DIR_MAPPERS" type="java.lang.String"
  71837. transient="false" volatile="false"
  71838. static="true" final="true" visibility="public"
  71839. deprecated="not deprecated">
  71840. </field>
  71841. <doc>
  71842. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  71843. a different {@link InputFormat} and {@link Mapper} for each path]]>
  71844. </doc>
  71845. </class>
  71846. <!-- end class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  71847. <!-- start class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  71848. <class name="NLineInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  71849. abstract="false"
  71850. static="false" final="false" visibility="public"
  71851. deprecated="not deprecated">
  71852. <constructor name="NLineInputFormat"
  71853. static="false" final="false" visibility="public"
  71854. deprecated="not deprecated">
  71855. </constructor>
  71856. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71857. abstract="false" native="false" synchronized="false"
  71858. static="false" final="false" visibility="public"
  71859. deprecated="not deprecated">
  71860. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71861. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71862. <exception name="IOException" type="java.io.IOException"/>
  71863. </method>
  71864. <method name="getSplits" return="java.util.List"
  71865. abstract="false" native="false" synchronized="false"
  71866. static="false" final="false" visibility="public"
  71867. deprecated="not deprecated">
  71868. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71869. <exception name="IOException" type="java.io.IOException"/>
  71870. <doc>
  71871. <![CDATA[Logically splits the set of input files for the job, splits N lines
  71872. of the input as one split.
  71873. @see FileInputFormat#getSplits(JobContext)]]>
  71874. </doc>
  71875. </method>
  71876. <method name="getSplitsForFile" return="java.util.List"
  71877. abstract="false" native="false" synchronized="false"
  71878. static="true" final="false" visibility="public"
  71879. deprecated="not deprecated">
  71880. <param name="status" type="org.apache.hadoop.fs.FileStatus"/>
  71881. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71882. <param name="numLinesPerSplit" type="int"/>
  71883. <exception name="IOException" type="java.io.IOException"/>
  71884. </method>
  71885. <method name="setNumLinesPerSplit"
  71886. abstract="false" native="false" synchronized="false"
  71887. static="true" final="false" visibility="public"
  71888. deprecated="not deprecated">
  71889. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71890. <param name="numLines" type="int"/>
  71891. <doc>
  71892. <![CDATA[Set the number of lines per split
  71893. @param job the job to modify
  71894. @param numLines the number of lines per split]]>
  71895. </doc>
  71896. </method>
  71897. <method name="getNumLinesPerSplit" return="int"
  71898. abstract="false" native="false" synchronized="false"
  71899. static="true" final="false" visibility="public"
  71900. deprecated="not deprecated">
  71901. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71902. <doc>
  71903. <![CDATA[Get the number of lines per split
  71904. @param job the job
  71905. @return the number of lines per split]]>
  71906. </doc>
  71907. </method>
  71908. <field name="LINES_PER_MAP" type="java.lang.String"
  71909. transient="false" volatile="false"
  71910. static="true" final="true" visibility="public"
  71911. deprecated="not deprecated">
  71912. </field>
  71913. <doc>
  71914. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  71915. In many "pleasantly" parallel applications, each process/mapper
  71916. processes the same input file (s), but with computations are
  71917. controlled by different parameters.(Referred to as "parameter sweeps").
  71918. One way to achieve this, is to specify a set of parameters
  71919. (one set per line) as input in a control file
  71920. (which is the input path to the map-reduce application,
  71921. where as the input dataset is specified
  71922. via a config variable in JobConf.).
  71923. The NLineInputFormat can be used in such applications, that splits
  71924. the input file such that by default, one line is fed as
  71925. a value to one map task, and key is the offset.
  71926. i.e. (k,v) is (LongWritable, Text).
  71927. The location hints will span the whole mapred cluster.]]>
  71928. </doc>
  71929. </class>
  71930. <!-- end class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  71931. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  71932. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  71933. abstract="false"
  71934. static="false" final="false" visibility="public"
  71935. deprecated="not deprecated">
  71936. <constructor name="SequenceFileAsBinaryInputFormat"
  71937. static="false" final="false" visibility="public"
  71938. deprecated="not deprecated">
  71939. </constructor>
  71940. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71941. abstract="false" native="false" synchronized="false"
  71942. static="false" final="false" visibility="public"
  71943. deprecated="not deprecated">
  71944. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71945. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71946. <exception name="IOException" type="java.io.IOException"/>
  71947. </method>
  71948. <doc>
  71949. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  71950. format.]]>
  71951. </doc>
  71952. </class>
  71953. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  71954. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  71955. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71956. abstract="false"
  71957. static="true" final="false" visibility="public"
  71958. deprecated="not deprecated">
  71959. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader"
  71960. static="false" final="false" visibility="public"
  71961. deprecated="not deprecated">
  71962. </constructor>
  71963. <method name="initialize"
  71964. abstract="false" native="false" synchronized="false"
  71965. static="false" final="false" visibility="public"
  71966. deprecated="not deprecated">
  71967. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71968. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71969. <exception name="IOException" type="java.io.IOException"/>
  71970. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71971. </method>
  71972. <method name="getCurrentKey" return="org.apache.hadoop.io.BytesWritable"
  71973. abstract="false" native="false" synchronized="false"
  71974. static="false" final="false" visibility="public"
  71975. deprecated="not deprecated">
  71976. <exception name="IOException" type="java.io.IOException"/>
  71977. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71978. </method>
  71979. <method name="getCurrentValue" return="org.apache.hadoop.io.BytesWritable"
  71980. abstract="false" native="false" synchronized="false"
  71981. static="false" final="false" visibility="public"
  71982. deprecated="not deprecated">
  71983. <exception name="IOException" type="java.io.IOException"/>
  71984. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71985. </method>
  71986. <method name="getKeyClassName" return="java.lang.String"
  71987. abstract="false" native="false" synchronized="false"
  71988. static="false" final="false" visibility="public"
  71989. deprecated="not deprecated">
  71990. <doc>
  71991. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  71992. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  71993. </doc>
  71994. </method>
  71995. <method name="getValueClassName" return="java.lang.String"
  71996. abstract="false" native="false" synchronized="false"
  71997. static="false" final="false" visibility="public"
  71998. deprecated="not deprecated">
  71999. <doc>
  72000. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  72001. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  72002. </doc>
  72003. </method>
  72004. <method name="nextKeyValue" return="boolean"
  72005. abstract="false" native="false" synchronized="true"
  72006. static="false" final="false" visibility="public"
  72007. deprecated="not deprecated">
  72008. <exception name="IOException" type="java.io.IOException"/>
  72009. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72010. <doc>
  72011. <![CDATA[Read raw bytes from a SequenceFile.]]>
  72012. </doc>
  72013. </method>
  72014. <method name="close"
  72015. abstract="false" native="false" synchronized="false"
  72016. static="false" final="false" visibility="public"
  72017. deprecated="not deprecated">
  72018. <exception name="IOException" type="java.io.IOException"/>
  72019. </method>
  72020. <method name="getProgress" return="float"
  72021. abstract="false" native="false" synchronized="false"
  72022. static="false" final="false" visibility="public"
  72023. deprecated="not deprecated">
  72024. <exception name="IOException" type="java.io.IOException"/>
  72025. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72026. <doc>
  72027. <![CDATA[Return the progress within the input split
  72028. @return 0.0 to 1.0 of the input byte range]]>
  72029. </doc>
  72030. </method>
  72031. <doc>
  72032. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  72033. </doc>
  72034. </class>
  72035. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  72036. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  72037. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  72038. abstract="false"
  72039. static="false" final="false" visibility="public"
  72040. deprecated="not deprecated">
  72041. <constructor name="SequenceFileAsTextInputFormat"
  72042. static="false" final="false" visibility="public"
  72043. deprecated="not deprecated">
  72044. </constructor>
  72045. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72046. abstract="false" native="false" synchronized="false"
  72047. static="false" final="false" visibility="public"
  72048. deprecated="not deprecated">
  72049. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72050. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72051. <exception name="IOException" type="java.io.IOException"/>
  72052. </method>
  72053. <doc>
  72054. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates
  72055. SequenceFileAsTextRecordReader which converts the input keys and values
  72056. to their String forms by calling toString() method.]]>
  72057. </doc>
  72058. </class>
  72059. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  72060. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  72061. <class name="SequenceFileAsTextRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72062. abstract="false"
  72063. static="false" final="false" visibility="public"
  72064. deprecated="not deprecated">
  72065. <constructor name="SequenceFileAsTextRecordReader"
  72066. static="false" final="false" visibility="public"
  72067. deprecated="not deprecated">
  72068. <exception name="IOException" type="java.io.IOException"/>
  72069. </constructor>
  72070. <method name="initialize"
  72071. abstract="false" native="false" synchronized="false"
  72072. static="false" final="false" visibility="public"
  72073. deprecated="not deprecated">
  72074. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72075. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72076. <exception name="IOException" type="java.io.IOException"/>
  72077. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72078. </method>
  72079. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  72080. abstract="false" native="false" synchronized="false"
  72081. static="false" final="false" visibility="public"
  72082. deprecated="not deprecated">
  72083. <exception name="IOException" type="java.io.IOException"/>
  72084. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72085. </method>
  72086. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  72087. abstract="false" native="false" synchronized="false"
  72088. static="false" final="false" visibility="public"
  72089. deprecated="not deprecated">
  72090. <exception name="IOException" type="java.io.IOException"/>
  72091. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72092. </method>
  72093. <method name="nextKeyValue" return="boolean"
  72094. abstract="false" native="false" synchronized="true"
  72095. static="false" final="false" visibility="public"
  72096. deprecated="not deprecated">
  72097. <exception name="IOException" type="java.io.IOException"/>
  72098. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72099. <doc>
  72100. <![CDATA[Read key/value pair in a line.]]>
  72101. </doc>
  72102. </method>
  72103. <method name="getProgress" return="float"
  72104. abstract="false" native="false" synchronized="false"
  72105. static="false" final="false" visibility="public"
  72106. deprecated="not deprecated">
  72107. <exception name="IOException" type="java.io.IOException"/>
  72108. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72109. </method>
  72110. <method name="close"
  72111. abstract="false" native="false" synchronized="true"
  72112. static="false" final="false" visibility="public"
  72113. deprecated="not deprecated">
  72114. <exception name="IOException" type="java.io.IOException"/>
  72115. </method>
  72116. <doc>
  72117. <![CDATA[This class converts the input keys and values to their String forms by
  72118. calling toString() method. This class to SequenceFileAsTextInputFormat
  72119. class is as LineRecordReader class to TextInputFormat class.]]>
  72120. </doc>
  72121. </class>
  72122. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  72123. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  72124. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  72125. abstract="false"
  72126. static="false" final="false" visibility="public"
  72127. deprecated="not deprecated">
  72128. <constructor name="SequenceFileInputFilter"
  72129. static="false" final="false" visibility="public"
  72130. deprecated="not deprecated">
  72131. </constructor>
  72132. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72133. abstract="false" native="false" synchronized="false"
  72134. static="false" final="false" visibility="public"
  72135. deprecated="not deprecated">
  72136. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72137. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72138. <exception name="IOException" type="java.io.IOException"/>
  72139. <doc>
  72140. <![CDATA[Create a record reader for the given split
  72141. @param split file split
  72142. @param context the task-attempt context
  72143. @return RecordReader]]>
  72144. </doc>
  72145. </method>
  72146. <method name="setFilterClass"
  72147. abstract="false" native="false" synchronized="false"
  72148. static="true" final="false" visibility="public"
  72149. deprecated="not deprecated">
  72150. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72151. <param name="filterClass" type="java.lang.Class"/>
  72152. <doc>
  72153. <![CDATA[set the filter class
  72154. @param job The job
  72155. @param filterClass filter class]]>
  72156. </doc>
  72157. </method>
  72158. <field name="LOG" type="org.apache.commons.logging.Log"
  72159. transient="false" volatile="false"
  72160. static="true" final="true" visibility="public"
  72161. deprecated="not deprecated">
  72162. </field>
  72163. <field name="FILTER_CLASS" type="java.lang.String"
  72164. transient="false" volatile="false"
  72165. static="true" final="true" visibility="public"
  72166. deprecated="not deprecated">
  72167. </field>
  72168. <field name="FILTER_FREQUENCY" type="java.lang.String"
  72169. transient="false" volatile="false"
  72170. static="true" final="true" visibility="public"
  72171. deprecated="not deprecated">
  72172. </field>
  72173. <field name="FILTER_REGEX" type="java.lang.String"
  72174. transient="false" volatile="false"
  72175. static="true" final="true" visibility="public"
  72176. deprecated="not deprecated">
  72177. </field>
  72178. <doc>
  72179. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  72180. The sample is decided by the filter class set by the job.]]>
  72181. </doc>
  72182. </class>
  72183. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  72184. <!-- start interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  72185. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  72186. static="true" final="false" visibility="public"
  72187. deprecated="not deprecated">
  72188. <implements name="org.apache.hadoop.conf.Configurable"/>
  72189. <method name="accept" return="boolean"
  72190. abstract="false" native="false" synchronized="false"
  72191. static="false" final="false" visibility="public"
  72192. deprecated="not deprecated">
  72193. <param name="key" type="java.lang.Object"/>
  72194. <doc>
  72195. <![CDATA[filter function
  72196. Decide if a record should be filtered or not
  72197. @param key record key
  72198. @return true if a record is accepted; return false otherwise]]>
  72199. </doc>
  72200. </method>
  72201. <doc>
  72202. <![CDATA[filter interface]]>
  72203. </doc>
  72204. </interface>
  72205. <!-- end interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  72206. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  72207. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  72208. abstract="true"
  72209. static="true" final="false" visibility="public"
  72210. deprecated="not deprecated">
  72211. <implements name="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter"/>
  72212. <constructor name="SequenceFileInputFilter.FilterBase"
  72213. static="false" final="false" visibility="public"
  72214. deprecated="not deprecated">
  72215. </constructor>
  72216. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  72217. abstract="false" native="false" synchronized="false"
  72218. static="false" final="false" visibility="public"
  72219. deprecated="not deprecated">
  72220. </method>
  72221. <doc>
  72222. <![CDATA[base class for Filters]]>
  72223. </doc>
  72224. </class>
  72225. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  72226. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  72227. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  72228. abstract="false"
  72229. static="true" final="false" visibility="public"
  72230. deprecated="not deprecated">
  72231. <constructor name="SequenceFileInputFilter.MD5Filter"
  72232. static="false" final="false" visibility="public"
  72233. deprecated="not deprecated">
  72234. </constructor>
  72235. <method name="setFrequency"
  72236. abstract="false" native="false" synchronized="false"
  72237. static="true" final="false" visibility="public"
  72238. deprecated="not deprecated">
  72239. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72240. <param name="frequency" type="int"/>
  72241. <doc>
  72242. <![CDATA[set the filtering frequency in configuration
  72243. @param conf configuration
  72244. @param frequency filtering frequency]]>
  72245. </doc>
  72246. </method>
  72247. <method name="setConf"
  72248. abstract="false" native="false" synchronized="false"
  72249. static="false" final="false" visibility="public"
  72250. deprecated="not deprecated">
  72251. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72252. <doc>
  72253. <![CDATA[configure the filter according to configuration
  72254. @param conf configuration]]>
  72255. </doc>
  72256. </method>
  72257. <method name="accept" return="boolean"
  72258. abstract="false" native="false" synchronized="false"
  72259. static="false" final="false" visibility="public"
  72260. deprecated="not deprecated">
  72261. <param name="key" type="java.lang.Object"/>
  72262. <doc>
  72263. <![CDATA[Filtering method
  72264. If MD5(key) % frequency==0, return true; otherwise return false
  72265. @see Filter#accept(Object)]]>
  72266. </doc>
  72267. </method>
  72268. <field name="MD5_LEN" type="int"
  72269. transient="false" volatile="false"
  72270. static="true" final="true" visibility="public"
  72271. deprecated="not deprecated">
  72272. </field>
  72273. <doc>
  72274. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  72275. key against a filtering frequency <i>f</i>. The filtering criteria is
  72276. MD5(key) % f == 0.]]>
  72277. </doc>
  72278. </class>
  72279. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  72280. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  72281. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  72282. abstract="false"
  72283. static="true" final="false" visibility="public"
  72284. deprecated="not deprecated">
  72285. <constructor name="SequenceFileInputFilter.PercentFilter"
  72286. static="false" final="false" visibility="public"
  72287. deprecated="not deprecated">
  72288. </constructor>
  72289. <method name="setFrequency"
  72290. abstract="false" native="false" synchronized="false"
  72291. static="true" final="false" visibility="public"
  72292. deprecated="not deprecated">
  72293. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72294. <param name="frequency" type="int"/>
  72295. <doc>
  72296. <![CDATA[set the frequency and stores it in conf
  72297. @param conf configuration
  72298. @param frequency filtering frequencey]]>
  72299. </doc>
  72300. </method>
  72301. <method name="setConf"
  72302. abstract="false" native="false" synchronized="false"
  72303. static="false" final="false" visibility="public"
  72304. deprecated="not deprecated">
  72305. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72306. <doc>
  72307. <![CDATA[configure the filter by checking the configuration
  72308. @param conf configuration]]>
  72309. </doc>
  72310. </method>
  72311. <method name="accept" return="boolean"
  72312. abstract="false" native="false" synchronized="false"
  72313. static="false" final="false" visibility="public"
  72314. deprecated="not deprecated">
  72315. <param name="key" type="java.lang.Object"/>
  72316. <doc>
  72317. <![CDATA[Filtering method
  72318. If record# % frequency==0, return true; otherwise return false
  72319. @see Filter#accept(Object)]]>
  72320. </doc>
  72321. </method>
  72322. <doc>
  72323. <![CDATA[This class returns a percentage of records
  72324. The percentage is determined by a filtering frequency <i>f</i> using
  72325. the criteria record# % f == 0.
  72326. For example, if the frequency is 10, one out of 10 records is returned.]]>
  72327. </doc>
  72328. </class>
  72329. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  72330. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  72331. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  72332. abstract="false"
  72333. static="true" final="false" visibility="public"
  72334. deprecated="not deprecated">
  72335. <constructor name="SequenceFileInputFilter.RegexFilter"
  72336. static="false" final="false" visibility="public"
  72337. deprecated="not deprecated">
  72338. </constructor>
  72339. <method name="setPattern"
  72340. abstract="false" native="false" synchronized="false"
  72341. static="true" final="false" visibility="public"
  72342. deprecated="not deprecated">
  72343. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72344. <param name="regex" type="java.lang.String"/>
  72345. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  72346. <doc>
  72347. <![CDATA[Define the filtering regex and stores it in conf
  72348. @param conf where the regex is set
  72349. @param regex regex used as a filter]]>
  72350. </doc>
  72351. </method>
  72352. <method name="setConf"
  72353. abstract="false" native="false" synchronized="false"
  72354. static="false" final="false" visibility="public"
  72355. deprecated="not deprecated">
  72356. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72357. <doc>
  72358. <![CDATA[configure the Filter by checking the configuration]]>
  72359. </doc>
  72360. </method>
  72361. <method name="accept" return="boolean"
  72362. abstract="false" native="false" synchronized="false"
  72363. static="false" final="false" visibility="public"
  72364. deprecated="not deprecated">
  72365. <param name="key" type="java.lang.Object"/>
  72366. <doc>
  72367. <![CDATA[Filtering method
  72368. If key matches the regex, return true; otherwise return false
  72369. @see Filter#accept(Object)]]>
  72370. </doc>
  72371. </method>
  72372. <doc>
  72373. <![CDATA[Records filter by matching key to regex]]>
  72374. </doc>
  72375. </class>
  72376. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  72377. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  72378. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  72379. abstract="false"
  72380. static="false" final="false" visibility="public"
  72381. deprecated="not deprecated">
  72382. <constructor name="SequenceFileInputFormat"
  72383. static="false" final="false" visibility="public"
  72384. deprecated="not deprecated">
  72385. </constructor>
  72386. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72387. abstract="false" native="false" synchronized="false"
  72388. static="false" final="false" visibility="public"
  72389. deprecated="not deprecated">
  72390. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72391. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72392. <exception name="IOException" type="java.io.IOException"/>
  72393. </method>
  72394. <method name="getFormatMinSplitSize" return="long"
  72395. abstract="false" native="false" synchronized="false"
  72396. static="false" final="false" visibility="protected"
  72397. deprecated="not deprecated">
  72398. </method>
  72399. <method name="listStatus" return="java.util.List"
  72400. abstract="false" native="false" synchronized="false"
  72401. static="false" final="false" visibility="protected"
  72402. deprecated="not deprecated">
  72403. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72404. <exception name="IOException" type="java.io.IOException"/>
  72405. </method>
  72406. <doc>
  72407. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  72408. </doc>
  72409. </class>
  72410. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  72411. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  72412. <class name="SequenceFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72413. abstract="false"
  72414. static="false" final="false" visibility="public"
  72415. deprecated="not deprecated">
  72416. <constructor name="SequenceFileRecordReader"
  72417. static="false" final="false" visibility="public"
  72418. deprecated="not deprecated">
  72419. </constructor>
  72420. <method name="initialize"
  72421. abstract="false" native="false" synchronized="false"
  72422. static="false" final="false" visibility="public"
  72423. deprecated="not deprecated">
  72424. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72425. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72426. <exception name="IOException" type="java.io.IOException"/>
  72427. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72428. </method>
  72429. <method name="nextKeyValue" return="boolean"
  72430. abstract="false" native="false" synchronized="false"
  72431. static="false" final="false" visibility="public"
  72432. deprecated="not deprecated">
  72433. <exception name="IOException" type="java.io.IOException"/>
  72434. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72435. </method>
  72436. <method name="getCurrentKey" return="java.lang.Object"
  72437. abstract="false" native="false" synchronized="false"
  72438. static="false" final="false" visibility="public"
  72439. deprecated="not deprecated">
  72440. </method>
  72441. <method name="getCurrentValue" return="java.lang.Object"
  72442. abstract="false" native="false" synchronized="false"
  72443. static="false" final="false" visibility="public"
  72444. deprecated="not deprecated">
  72445. </method>
  72446. <method name="getProgress" return="float"
  72447. abstract="false" native="false" synchronized="false"
  72448. static="false" final="false" visibility="public"
  72449. deprecated="not deprecated">
  72450. <exception name="IOException" type="java.io.IOException"/>
  72451. <doc>
  72452. <![CDATA[Return the progress within the input split
  72453. @return 0.0 to 1.0 of the input byte range]]>
  72454. </doc>
  72455. </method>
  72456. <method name="close"
  72457. abstract="false" native="false" synchronized="true"
  72458. static="false" final="false" visibility="public"
  72459. deprecated="not deprecated">
  72460. <exception name="IOException" type="java.io.IOException"/>
  72461. </method>
  72462. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  72463. transient="false" volatile="false"
  72464. static="false" final="false" visibility="protected"
  72465. deprecated="not deprecated">
  72466. </field>
  72467. <doc>
  72468. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  72469. </doc>
  72470. </class>
  72471. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  72472. <!-- start class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  72473. <class name="TextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  72474. abstract="false"
  72475. static="false" final="false" visibility="public"
  72476. deprecated="not deprecated">
  72477. <constructor name="TextInputFormat"
  72478. static="false" final="false" visibility="public"
  72479. deprecated="not deprecated">
  72480. </constructor>
  72481. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72482. abstract="false" native="false" synchronized="false"
  72483. static="false" final="false" visibility="public"
  72484. deprecated="not deprecated">
  72485. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72486. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72487. </method>
  72488. <method name="isSplitable" return="boolean"
  72489. abstract="false" native="false" synchronized="false"
  72490. static="false" final="false" visibility="protected"
  72491. deprecated="not deprecated">
  72492. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72493. <param name="file" type="org.apache.hadoop.fs.Path"/>
  72494. </method>
  72495. <doc>
  72496. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  72497. Either linefeed or carriage-return are used to signal end of line. Keys are
  72498. the position in the file, and values are the line of text..]]>
  72499. </doc>
  72500. </class>
  72501. <!-- end class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  72502. </package>
  72503. <package name="org.apache.hadoop.mapreduce.lib.jobcontrol">
  72504. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  72505. <class name="ControlledJob" extends="java.lang.Object"
  72506. abstract="false"
  72507. static="false" final="false" visibility="public"
  72508. deprecated="not deprecated">
  72509. <constructor name="ControlledJob" type="org.apache.hadoop.mapreduce.Job, java.util.List"
  72510. static="false" final="false" visibility="public"
  72511. deprecated="not deprecated">
  72512. <exception name="IOException" type="java.io.IOException"/>
  72513. <doc>
  72514. <![CDATA[Construct a job.
  72515. @param job a mapreduce job to be executed.
  72516. @param dependingJobs an array of jobs the current job depends on]]>
  72517. </doc>
  72518. </constructor>
  72519. <constructor name="ControlledJob" type="org.apache.hadoop.conf.Configuration"
  72520. static="false" final="false" visibility="public"
  72521. deprecated="not deprecated">
  72522. <exception name="IOException" type="java.io.IOException"/>
  72523. <doc>
  72524. <![CDATA[Construct a job.
  72525. @param conf mapred job configuration representing a job to be executed.
  72526. @throws IOException]]>
  72527. </doc>
  72528. </constructor>
  72529. <method name="toString" return="java.lang.String"
  72530. abstract="false" native="false" synchronized="false"
  72531. static="false" final="false" visibility="public"
  72532. deprecated="not deprecated">
  72533. </method>
  72534. <method name="getJobName" return="java.lang.String"
  72535. abstract="false" native="false" synchronized="false"
  72536. static="false" final="false" visibility="public"
  72537. deprecated="not deprecated">
  72538. <doc>
  72539. <![CDATA[@return the job name of this job]]>
  72540. </doc>
  72541. </method>
  72542. <method name="setJobName"
  72543. abstract="false" native="false" synchronized="false"
  72544. static="false" final="false" visibility="public"
  72545. deprecated="not deprecated">
  72546. <param name="jobName" type="java.lang.String"/>
  72547. <doc>
  72548. <![CDATA[Set the job name for this job.
  72549. @param jobName the job name]]>
  72550. </doc>
  72551. </method>
  72552. <method name="getJobID" return="java.lang.String"
  72553. abstract="false" native="false" synchronized="false"
  72554. static="false" final="false" visibility="public"
  72555. deprecated="not deprecated">
  72556. <doc>
  72557. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  72558. </doc>
  72559. </method>
  72560. <method name="setJobID"
  72561. abstract="false" native="false" synchronized="false"
  72562. static="false" final="false" visibility="public"
  72563. deprecated="not deprecated">
  72564. <param name="id" type="java.lang.String"/>
  72565. <doc>
  72566. <![CDATA[Set the job ID for this job.
  72567. @param id the job ID]]>
  72568. </doc>
  72569. </method>
  72570. <method name="getMapredJobID" return="org.apache.hadoop.mapreduce.JobID"
  72571. abstract="false" native="false" synchronized="false"
  72572. static="false" final="false" visibility="public"
  72573. deprecated="not deprecated">
  72574. <doc>
  72575. <![CDATA[@return the mapred ID of this job as assigned by the
  72576. mapred framework.]]>
  72577. </doc>
  72578. </method>
  72579. <method name="getJob" return="org.apache.hadoop.mapreduce.Job"
  72580. abstract="false" native="false" synchronized="true"
  72581. static="false" final="false" visibility="public"
  72582. deprecated="not deprecated">
  72583. <doc>
  72584. <![CDATA[@return the mapreduce job]]>
  72585. </doc>
  72586. </method>
  72587. <method name="setJob"
  72588. abstract="false" native="false" synchronized="true"
  72589. static="false" final="false" visibility="public"
  72590. deprecated="not deprecated">
  72591. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72592. <doc>
  72593. <![CDATA[Set the mapreduce job
  72594. @param job the mapreduce job for this job.]]>
  72595. </doc>
  72596. </method>
  72597. <method name="getJobState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72598. abstract="false" native="false" synchronized="true"
  72599. static="false" final="false" visibility="public"
  72600. deprecated="not deprecated">
  72601. <doc>
  72602. <![CDATA[@return the state of this job]]>
  72603. </doc>
  72604. </method>
  72605. <method name="setJobState"
  72606. abstract="false" native="false" synchronized="true"
  72607. static="false" final="false" visibility="protected"
  72608. deprecated="not deprecated">
  72609. <param name="state" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"/>
  72610. <doc>
  72611. <![CDATA[Set the state for this job.
  72612. @param state the new state for this job.]]>
  72613. </doc>
  72614. </method>
  72615. <method name="getMessage" return="java.lang.String"
  72616. abstract="false" native="false" synchronized="true"
  72617. static="false" final="false" visibility="public"
  72618. deprecated="not deprecated">
  72619. <doc>
  72620. <![CDATA[@return the message of this job]]>
  72621. </doc>
  72622. </method>
  72623. <method name="setMessage"
  72624. abstract="false" native="false" synchronized="true"
  72625. static="false" final="false" visibility="public"
  72626. deprecated="not deprecated">
  72627. <param name="message" type="java.lang.String"/>
  72628. <doc>
  72629. <![CDATA[Set the message for this job.
  72630. @param message the message for this job.]]>
  72631. </doc>
  72632. </method>
  72633. <method name="getDependentJobs" return="java.util.List"
  72634. abstract="false" native="false" synchronized="false"
  72635. static="false" final="false" visibility="public"
  72636. deprecated="not deprecated">
  72637. <doc>
  72638. <![CDATA[@return the depending jobs of this job]]>
  72639. </doc>
  72640. </method>
  72641. <method name="addDependingJob" return="boolean"
  72642. abstract="false" native="false" synchronized="true"
  72643. static="false" final="false" visibility="public"
  72644. deprecated="not deprecated">
  72645. <param name="dependingJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  72646. <doc>
  72647. <![CDATA[Add a job to this jobs' dependency list.
  72648. Dependent jobs can only be added while a Job
  72649. is waiting to run, not during or afterwards.
  72650. @param dependingJob Job that this Job depends on.
  72651. @return <tt>true</tt> if the Job was added.]]>
  72652. </doc>
  72653. </method>
  72654. <method name="isCompleted" return="boolean"
  72655. abstract="false" native="false" synchronized="true"
  72656. static="false" final="false" visibility="public"
  72657. deprecated="not deprecated">
  72658. <doc>
  72659. <![CDATA[@return true if this job is in a complete state]]>
  72660. </doc>
  72661. </method>
  72662. <method name="isReady" return="boolean"
  72663. abstract="false" native="false" synchronized="true"
  72664. static="false" final="false" visibility="public"
  72665. deprecated="not deprecated">
  72666. <doc>
  72667. <![CDATA[@return true if this job is in READY state]]>
  72668. </doc>
  72669. </method>
  72670. <method name="killJob"
  72671. abstract="false" native="false" synchronized="false"
  72672. static="false" final="false" visibility="public"
  72673. deprecated="not deprecated">
  72674. <exception name="IOException" type="java.io.IOException"/>
  72675. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72676. </method>
  72677. <method name="failJob"
  72678. abstract="false" native="false" synchronized="true"
  72679. static="false" final="false" visibility="public"
  72680. deprecated="not deprecated">
  72681. <param name="message" type="java.lang.String"/>
  72682. <exception name="IOException" type="java.io.IOException"/>
  72683. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72684. </method>
  72685. <method name="submit"
  72686. abstract="false" native="false" synchronized="true"
  72687. static="false" final="false" visibility="protected"
  72688. deprecated="not deprecated">
  72689. <doc>
  72690. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  72691. is successful, FAILED otherwise.]]>
  72692. </doc>
  72693. </method>
  72694. <field name="CREATE_DIR" type="java.lang.String"
  72695. transient="false" volatile="false"
  72696. static="true" final="true" visibility="public"
  72697. deprecated="not deprecated">
  72698. </field>
  72699. <doc>
  72700. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  72701. the states of the depending jobs and updates the state of this job.
  72702. A job starts in the WAITING state. If it does not have any depending jobs,
  72703. or all of the depending jobs are in SUCCESS state, then the job state
  72704. will become READY. If any depending jobs fail, the job will fail too.
  72705. When in READY state, the job can be submitted to Hadoop for execution, with
  72706. the state changing into RUNNING state. From RUNNING state, the job
  72707. can get into SUCCESS or FAILED state, depending
  72708. the status of the job execution.]]>
  72709. </doc>
  72710. </class>
  72711. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  72712. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  72713. <class name="ControlledJob.State" extends="java.lang.Enum"
  72714. abstract="false"
  72715. static="true" final="true" visibility="public"
  72716. deprecated="not deprecated">
  72717. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State[]"
  72718. abstract="false" native="false" synchronized="false"
  72719. static="true" final="false" visibility="public"
  72720. deprecated="not deprecated">
  72721. </method>
  72722. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72723. abstract="false" native="false" synchronized="false"
  72724. static="true" final="false" visibility="public"
  72725. deprecated="not deprecated">
  72726. <param name="name" type="java.lang.String"/>
  72727. </method>
  72728. <field name="SUCCESS" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72729. transient="false" volatile="false"
  72730. static="true" final="true" visibility="public"
  72731. deprecated="not deprecated">
  72732. </field>
  72733. <field name="WAITING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72734. transient="false" volatile="false"
  72735. static="true" final="true" visibility="public"
  72736. deprecated="not deprecated">
  72737. </field>
  72738. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72739. transient="false" volatile="false"
  72740. static="true" final="true" visibility="public"
  72741. deprecated="not deprecated">
  72742. </field>
  72743. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72744. transient="false" volatile="false"
  72745. static="true" final="true" visibility="public"
  72746. deprecated="not deprecated">
  72747. </field>
  72748. <field name="FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72749. transient="false" volatile="false"
  72750. static="true" final="true" visibility="public"
  72751. deprecated="not deprecated">
  72752. </field>
  72753. <field name="DEPENDENT_FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  72754. transient="false" volatile="false"
  72755. static="true" final="true" visibility="public"
  72756. deprecated="not deprecated">
  72757. </field>
  72758. </class>
  72759. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  72760. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  72761. <class name="JobControl" extends="java.lang.Object"
  72762. abstract="false"
  72763. static="false" final="false" visibility="public"
  72764. deprecated="not deprecated">
  72765. <implements name="java.lang.Runnable"/>
  72766. <constructor name="JobControl" type="java.lang.String"
  72767. static="false" final="false" visibility="public"
  72768. deprecated="not deprecated">
  72769. <doc>
  72770. <![CDATA[Construct a job control for a group of jobs.
  72771. @param groupName a name identifying this group]]>
  72772. </doc>
  72773. </constructor>
  72774. <method name="getWaitingJobList" return="java.util.List"
  72775. abstract="false" native="false" synchronized="false"
  72776. static="false" final="false" visibility="public"
  72777. deprecated="not deprecated">
  72778. <doc>
  72779. <![CDATA[@return the jobs in the waiting state]]>
  72780. </doc>
  72781. </method>
  72782. <method name="getRunningJobList" return="java.util.List"
  72783. abstract="false" native="false" synchronized="false"
  72784. static="false" final="false" visibility="public"
  72785. deprecated="not deprecated">
  72786. <doc>
  72787. <![CDATA[@return the jobs in the running state]]>
  72788. </doc>
  72789. </method>
  72790. <method name="getReadyJobsList" return="java.util.List"
  72791. abstract="false" native="false" synchronized="false"
  72792. static="false" final="false" visibility="public"
  72793. deprecated="not deprecated">
  72794. <doc>
  72795. <![CDATA[@return the jobs in the ready state]]>
  72796. </doc>
  72797. </method>
  72798. <method name="getSuccessfulJobList" return="java.util.List"
  72799. abstract="false" native="false" synchronized="false"
  72800. static="false" final="false" visibility="public"
  72801. deprecated="not deprecated">
  72802. <doc>
  72803. <![CDATA[@return the jobs in the success state]]>
  72804. </doc>
  72805. </method>
  72806. <method name="getFailedJobList" return="java.util.List"
  72807. abstract="false" native="false" synchronized="false"
  72808. static="false" final="false" visibility="public"
  72809. deprecated="not deprecated">
  72810. </method>
  72811. <method name="addJob" return="java.lang.String"
  72812. abstract="false" native="false" synchronized="true"
  72813. static="false" final="false" visibility="public"
  72814. deprecated="not deprecated">
  72815. <param name="aJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  72816. <doc>
  72817. <![CDATA[Add a new job.
  72818. @param aJob the new job]]>
  72819. </doc>
  72820. </method>
  72821. <method name="addJobCollection"
  72822. abstract="false" native="false" synchronized="false"
  72823. static="false" final="false" visibility="public"
  72824. deprecated="not deprecated">
  72825. <param name="jobs" type="java.util.Collection"/>
  72826. <doc>
  72827. <![CDATA[Add a collection of jobs
  72828. @param jobs]]>
  72829. </doc>
  72830. </method>
  72831. <method name="getThreadState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72832. abstract="false" native="false" synchronized="false"
  72833. static="false" final="false" visibility="public"
  72834. deprecated="not deprecated">
  72835. <doc>
  72836. <![CDATA[@return the thread state]]>
  72837. </doc>
  72838. </method>
  72839. <method name="stop"
  72840. abstract="false" native="false" synchronized="false"
  72841. static="false" final="false" visibility="public"
  72842. deprecated="not deprecated">
  72843. <doc>
  72844. <![CDATA[set the thread state to STOPPING so that the
  72845. thread will stop when it wakes up.]]>
  72846. </doc>
  72847. </method>
  72848. <method name="suspend"
  72849. abstract="false" native="false" synchronized="false"
  72850. static="false" final="false" visibility="public"
  72851. deprecated="not deprecated">
  72852. <doc>
  72853. <![CDATA[suspend the running thread]]>
  72854. </doc>
  72855. </method>
  72856. <method name="resume"
  72857. abstract="false" native="false" synchronized="false"
  72858. static="false" final="false" visibility="public"
  72859. deprecated="not deprecated">
  72860. <doc>
  72861. <![CDATA[resume the suspended thread]]>
  72862. </doc>
  72863. </method>
  72864. <method name="allFinished" return="boolean"
  72865. abstract="false" native="false" synchronized="true"
  72866. static="false" final="false" visibility="public"
  72867. deprecated="not deprecated">
  72868. </method>
  72869. <method name="run"
  72870. abstract="false" native="false" synchronized="false"
  72871. static="false" final="false" visibility="public"
  72872. deprecated="not deprecated">
  72873. <doc>
  72874. <![CDATA[The main loop for the thread.
  72875. The loop does the following:
  72876. Check the states of the running jobs
  72877. Update the states of waiting jobs
  72878. Submit the jobs in ready state]]>
  72879. </doc>
  72880. </method>
  72881. <doc>
  72882. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency.
  72883. It tracks the states of the jobs by placing them into different tables
  72884. according to their states.
  72885. This class provides APIs for the client app to add a job to the group
  72886. and to get the jobs in the group in different states. When a job is
  72887. added, an ID unique to the group is assigned to the job.
  72888. This class has a thread that submits jobs when they become ready,
  72889. monitors the states of the running jobs, and updates the states of jobs
  72890. based on the state changes of their depending jobs states. The class
  72891. provides APIs for suspending/resuming the thread, and
  72892. for stopping the thread.]]>
  72893. </doc>
  72894. </class>
  72895. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  72896. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  72897. <class name="JobControl.ThreadState" extends="java.lang.Enum"
  72898. abstract="false"
  72899. static="true" final="true" visibility="public"
  72900. deprecated="not deprecated">
  72901. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState[]"
  72902. abstract="false" native="false" synchronized="false"
  72903. static="true" final="false" visibility="public"
  72904. deprecated="not deprecated">
  72905. </method>
  72906. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72907. abstract="false" native="false" synchronized="false"
  72908. static="true" final="false" visibility="public"
  72909. deprecated="not deprecated">
  72910. <param name="name" type="java.lang.String"/>
  72911. </method>
  72912. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72913. transient="false" volatile="false"
  72914. static="true" final="true" visibility="public"
  72915. deprecated="not deprecated">
  72916. </field>
  72917. <field name="SUSPENDED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72918. transient="false" volatile="false"
  72919. static="true" final="true" visibility="public"
  72920. deprecated="not deprecated">
  72921. </field>
  72922. <field name="STOPPED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72923. transient="false" volatile="false"
  72924. static="true" final="true" visibility="public"
  72925. deprecated="not deprecated">
  72926. </field>
  72927. <field name="STOPPING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72928. transient="false" volatile="false"
  72929. static="true" final="true" visibility="public"
  72930. deprecated="not deprecated">
  72931. </field>
  72932. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  72933. transient="false" volatile="false"
  72934. static="true" final="true" visibility="public"
  72935. deprecated="not deprecated">
  72936. </field>
  72937. </class>
  72938. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  72939. </package>
  72940. <package name="org.apache.hadoop.mapreduce.lib.map">
  72941. <!-- start class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  72942. <class name="InverseMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  72943. abstract="false"
  72944. static="false" final="false" visibility="public"
  72945. deprecated="not deprecated">
  72946. <constructor name="InverseMapper"
  72947. static="false" final="false" visibility="public"
  72948. deprecated="not deprecated">
  72949. </constructor>
  72950. <method name="map"
  72951. abstract="false" native="false" synchronized="false"
  72952. static="false" final="false" visibility="public"
  72953. deprecated="not deprecated">
  72954. <param name="key" type="java.lang.Object"/>
  72955. <param name="value" type="java.lang.Object"/>
  72956. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  72957. <exception name="IOException" type="java.io.IOException"/>
  72958. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72959. <doc>
  72960. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  72961. </doc>
  72962. </method>
  72963. <doc>
  72964. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  72965. </doc>
  72966. </class>
  72967. <!-- end class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  72968. <!-- start class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  72969. <class name="MultithreadedMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  72970. abstract="false"
  72971. static="false" final="false" visibility="public"
  72972. deprecated="not deprecated">
  72973. <constructor name="MultithreadedMapper"
  72974. static="false" final="false" visibility="public"
  72975. deprecated="not deprecated">
  72976. </constructor>
  72977. <method name="getNumberOfThreads" return="int"
  72978. abstract="false" native="false" synchronized="false"
  72979. static="true" final="false" visibility="public"
  72980. deprecated="not deprecated">
  72981. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72982. <doc>
  72983. <![CDATA[The number of threads in the thread pool that will run the map function.
  72984. @param job the job
  72985. @return the number of threads]]>
  72986. </doc>
  72987. </method>
  72988. <method name="setNumberOfThreads"
  72989. abstract="false" native="false" synchronized="false"
  72990. static="true" final="false" visibility="public"
  72991. deprecated="not deprecated">
  72992. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72993. <param name="threads" type="int"/>
  72994. <doc>
  72995. <![CDATA[Set the number of threads in the pool for running maps.
  72996. @param job the job to modify
  72997. @param threads the new number of threads]]>
  72998. </doc>
  72999. </method>
  73000. <method name="getMapperClass" return="java.lang.Class"
  73001. abstract="false" native="false" synchronized="false"
  73002. static="true" final="false" visibility="public"
  73003. deprecated="not deprecated">
  73004. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73005. <doc>
  73006. <![CDATA[Get the application's mapper class.
  73007. @param <K1> the map's input key type
  73008. @param <V1> the map's input value type
  73009. @param <K2> the map's output key type
  73010. @param <V2> the map's output value type
  73011. @param job the job
  73012. @return the mapper class to run]]>
  73013. </doc>
  73014. </method>
  73015. <method name="setMapperClass"
  73016. abstract="false" native="false" synchronized="false"
  73017. static="true" final="false" visibility="public"
  73018. deprecated="not deprecated">
  73019. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73020. <param name="cls" type="java.lang.Class"/>
  73021. <doc>
  73022. <![CDATA[Set the application's mapper class.
  73023. @param <K1> the map input key type
  73024. @param <V1> the map input value type
  73025. @param <K2> the map output key type
  73026. @param <V2> the map output value type
  73027. @param job the job to modify
  73028. @param cls the class to use as the mapper]]>
  73029. </doc>
  73030. </method>
  73031. <method name="run"
  73032. abstract="false" native="false" synchronized="false"
  73033. static="false" final="false" visibility="public"
  73034. deprecated="not deprecated">
  73035. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  73036. <exception name="IOException" type="java.io.IOException"/>
  73037. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73038. <doc>
  73039. <![CDATA[Run the application's maps using a thread pool.]]>
  73040. </doc>
  73041. </method>
  73042. <doc>
  73043. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapreduce.Mapper.
  73044. <p>
  73045. It can be used instead of the default implementation,
  73046. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  73047. bound in order to improve throughput.
  73048. <p>
  73049. Mapper implementations using this MapRunnable must be thread-safe.
  73050. <p>
  73051. The Map-Reduce job has to be configured with the mapper to use via
  73052. {@link #setMapperClass(Configuration, Class)} and
  73053. the number of thread the thread-pool can use with the
  73054. {@link #getNumberOfThreads(Configuration) method. The default
  73055. value is 10 threads.
  73056. <p>]]>
  73057. </doc>
  73058. </class>
  73059. <!-- end class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  73060. <!-- start class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  73061. <class name="TokenCounterMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  73062. abstract="false"
  73063. static="false" final="false" visibility="public"
  73064. deprecated="not deprecated">
  73065. <constructor name="TokenCounterMapper"
  73066. static="false" final="false" visibility="public"
  73067. deprecated="not deprecated">
  73068. </constructor>
  73069. <method name="map"
  73070. abstract="false" native="false" synchronized="false"
  73071. static="false" final="false" visibility="public"
  73072. deprecated="not deprecated">
  73073. <param name="key" type="java.lang.Object"/>
  73074. <param name="value" type="org.apache.hadoop.io.Text"/>
  73075. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  73076. <exception name="IOException" type="java.io.IOException"/>
  73077. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73078. </method>
  73079. <doc>
  73080. <![CDATA[Tokenize the input values and emit each word with a count of 1.]]>
  73081. </doc>
  73082. </class>
  73083. <!-- end class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  73084. </package>
  73085. <package name="org.apache.hadoop.mapreduce.lib.output">
  73086. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  73087. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  73088. abstract="false"
  73089. static="false" final="false" visibility="public"
  73090. deprecated="not deprecated">
  73091. <constructor name="FileOutputCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  73092. static="false" final="false" visibility="public"
  73093. deprecated="not deprecated">
  73094. <exception name="IOException" type="java.io.IOException"/>
  73095. <doc>
  73096. <![CDATA[Create a file output committer
  73097. @param outputPath the job's output path
  73098. @param context the task's context
  73099. @throws IOException]]>
  73100. </doc>
  73101. </constructor>
  73102. <method name="setupJob"
  73103. abstract="false" native="false" synchronized="false"
  73104. static="false" final="false" visibility="public"
  73105. deprecated="not deprecated">
  73106. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73107. <exception name="IOException" type="java.io.IOException"/>
  73108. <doc>
  73109. <![CDATA[Create the temporary directory that is the root of all of the task
  73110. work directories.
  73111. @param context the job's context]]>
  73112. </doc>
  73113. </method>
  73114. <method name="commitJob"
  73115. abstract="false" native="false" synchronized="false"
  73116. static="false" final="false" visibility="public"
  73117. deprecated="not deprecated">
  73118. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73119. <exception name="IOException" type="java.io.IOException"/>
  73120. <doc>
  73121. <![CDATA[Delete the temporary directory, including all of the work directories.
  73122. This is called for all jobs whose final run state is SUCCEEDED
  73123. @param context the job's context.]]>
  73124. </doc>
  73125. </method>
  73126. <method name="cleanupJob"
  73127. abstract="false" native="false" synchronized="false"
  73128. static="false" final="false" visibility="public"
  73129. deprecated="not deprecated">
  73130. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73131. <exception name="IOException" type="java.io.IOException"/>
  73132. </method>
  73133. <method name="abortJob"
  73134. abstract="false" native="false" synchronized="false"
  73135. static="false" final="false" visibility="public"
  73136. deprecated="not deprecated">
  73137. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73138. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  73139. <exception name="IOException" type="java.io.IOException"/>
  73140. <doc>
  73141. <![CDATA[Delete the temporary directory, including all of the work directories.
  73142. @param context the job's context
  73143. @param state final run state of the job, should be FAILED or KILLED]]>
  73144. </doc>
  73145. </method>
  73146. <method name="setupTask"
  73147. abstract="false" native="false" synchronized="false"
  73148. static="false" final="false" visibility="public"
  73149. deprecated="not deprecated">
  73150. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73151. <exception name="IOException" type="java.io.IOException"/>
  73152. <doc>
  73153. <![CDATA[No task setup required.]]>
  73154. </doc>
  73155. </method>
  73156. <method name="commitTask"
  73157. abstract="false" native="false" synchronized="false"
  73158. static="false" final="false" visibility="public"
  73159. deprecated="not deprecated">
  73160. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73161. <exception name="IOException" type="java.io.IOException"/>
  73162. <doc>
  73163. <![CDATA[Move the files from the work directory to the job output directory
  73164. @param context the task context]]>
  73165. </doc>
  73166. </method>
  73167. <method name="abortTask"
  73168. abstract="false" native="false" synchronized="false"
  73169. static="false" final="false" visibility="public"
  73170. deprecated="not deprecated">
  73171. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73172. <doc>
  73173. <![CDATA[Delete the work directory]]>
  73174. </doc>
  73175. </method>
  73176. <method name="needsTaskCommit" return="boolean"
  73177. abstract="false" native="false" synchronized="false"
  73178. static="false" final="false" visibility="public"
  73179. deprecated="not deprecated">
  73180. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73181. <exception name="IOException" type="java.io.IOException"/>
  73182. <doc>
  73183. <![CDATA[Did this task write any files in the work directory?
  73184. @param context the task's context]]>
  73185. </doc>
  73186. </method>
  73187. <method name="getWorkPath" return="org.apache.hadoop.fs.Path"
  73188. abstract="false" native="false" synchronized="false"
  73189. static="false" final="false" visibility="public"
  73190. deprecated="not deprecated">
  73191. <exception name="IOException" type="java.io.IOException"/>
  73192. <doc>
  73193. <![CDATA[Get the directory that the task should write results into
  73194. @return the work directory
  73195. @throws IOException]]>
  73196. </doc>
  73197. </method>
  73198. <field name="TEMP_DIR_NAME" type="java.lang.String"
  73199. transient="false" volatile="false"
  73200. static="true" final="true" visibility="protected"
  73201. deprecated="not deprecated">
  73202. <doc>
  73203. <![CDATA[Temporary directory name]]>
  73204. </doc>
  73205. </field>
  73206. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  73207. transient="false" volatile="false"
  73208. static="true" final="true" visibility="public"
  73209. deprecated="not deprecated">
  73210. </field>
  73211. <doc>
  73212. <![CDATA[An {@link OutputCommitter} that commits files specified
  73213. in job output directory i.e. ${mapred.output.dir}.]]>
  73214. </doc>
  73215. </class>
  73216. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  73217. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  73218. <class name="FileOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  73219. abstract="true"
  73220. static="false" final="false" visibility="public"
  73221. deprecated="not deprecated">
  73222. <constructor name="FileOutputFormat"
  73223. static="false" final="false" visibility="public"
  73224. deprecated="not deprecated">
  73225. </constructor>
  73226. <method name="setCompressOutput"
  73227. abstract="false" native="false" synchronized="false"
  73228. static="true" final="false" visibility="public"
  73229. deprecated="not deprecated">
  73230. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73231. <param name="compress" type="boolean"/>
  73232. <doc>
  73233. <![CDATA[Set whether the output of the job is compressed.
  73234. @param job the job to modify
  73235. @param compress should the output of the job be compressed?]]>
  73236. </doc>
  73237. </method>
  73238. <method name="getCompressOutput" return="boolean"
  73239. abstract="false" native="false" synchronized="false"
  73240. static="true" final="false" visibility="public"
  73241. deprecated="not deprecated">
  73242. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73243. <doc>
  73244. <![CDATA[Is the job output compressed?
  73245. @param job the Job to look in
  73246. @return <code>true</code> if the job output should be compressed,
  73247. <code>false</code> otherwise]]>
  73248. </doc>
  73249. </method>
  73250. <method name="setOutputCompressorClass"
  73251. abstract="false" native="false" synchronized="false"
  73252. static="true" final="false" visibility="public"
  73253. deprecated="not deprecated">
  73254. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73255. <param name="codecClass" type="java.lang.Class"/>
  73256. <doc>
  73257. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  73258. @param job the job to modify
  73259. @param codecClass the {@link CompressionCodec} to be used to
  73260. compress the job outputs]]>
  73261. </doc>
  73262. </method>
  73263. <method name="getOutputCompressorClass" return="java.lang.Class"
  73264. abstract="false" native="false" synchronized="false"
  73265. static="true" final="false" visibility="public"
  73266. deprecated="not deprecated">
  73267. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73268. <param name="defaultValue" type="java.lang.Class"/>
  73269. <doc>
  73270. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  73271. @param job the {@link Job} to look in
  73272. @param defaultValue the {@link CompressionCodec} to return if not set
  73273. @return the {@link CompressionCodec} to be used to compress the
  73274. job outputs
  73275. @throws IllegalArgumentException if the class was specified, but not found]]>
  73276. </doc>
  73277. </method>
  73278. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73279. abstract="true" native="false" synchronized="false"
  73280. static="false" final="false" visibility="public"
  73281. deprecated="not deprecated">
  73282. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73283. <exception name="IOException" type="java.io.IOException"/>
  73284. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73285. </method>
  73286. <method name="checkOutputSpecs"
  73287. abstract="false" native="false" synchronized="false"
  73288. static="false" final="false" visibility="public"
  73289. deprecated="not deprecated">
  73290. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73291. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  73292. <exception name="IOException" type="java.io.IOException"/>
  73293. </method>
  73294. <method name="setOutputPath"
  73295. abstract="false" native="false" synchronized="false"
  73296. static="true" final="false" visibility="public"
  73297. deprecated="not deprecated">
  73298. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73299. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  73300. <doc>
  73301. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  73302. @param job The job to modify
  73303. @param outputDir the {@link Path} of the output directory for
  73304. the map-reduce job.]]>
  73305. </doc>
  73306. </method>
  73307. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  73308. abstract="false" native="false" synchronized="false"
  73309. static="true" final="false" visibility="public"
  73310. deprecated="not deprecated">
  73311. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73312. <doc>
  73313. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  73314. @return the {@link Path} to the output directory for the map-reduce job.
  73315. @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)]]>
  73316. </doc>
  73317. </method>
  73318. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  73319. abstract="false" native="false" synchronized="false"
  73320. static="true" final="false" visibility="public"
  73321. deprecated="not deprecated">
  73322. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  73323. <exception name="IOException" type="java.io.IOException"/>
  73324. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73325. <doc>
  73326. <![CDATA[Get the {@link Path} to the task's temporary output directory
  73327. for the map-reduce job
  73328. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  73329. <p>Some applications need to create/write-to side-files, which differ from
  73330. the actual job-outputs.
  73331. <p>In such cases there could be issues with 2 instances of the same TIP
  73332. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  73333. same file (path) on HDFS. Hence the application-writer will have to pick
  73334. unique names per task-attempt (e.g. using the attemptid, say
  73335. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  73336. <p>To get around this the Map-Reduce framework helps the application-writer
  73337. out by maintaining a special
  73338. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  73339. sub-directory for each task-attempt on HDFS where the output of the
  73340. task-attempt goes. On successful completion of the task-attempt the files
  73341. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  73342. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  73343. framework discards the sub-directory of unsuccessful task-attempts. This
  73344. is completely transparent to the application.</p>
  73345. <p>The application-writer can take advantage of this by creating any
  73346. side-files required in a work directory during execution
  73347. of his task i.e. via
  73348. {@link #getWorkOutputPath(TaskInputOutputContext)}, and
  73349. the framework will move them out similarly - thus she doesn't have to pick
  73350. unique paths per task-attempt.</p>
  73351. <p>The entire discussion holds true for maps of jobs with
  73352. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  73353. goes directly to HDFS.</p>
  73354. @return the {@link Path} to the task's temporary output directory
  73355. for the map-reduce job.]]>
  73356. </doc>
  73357. </method>
  73358. <method name="getPathForWorkFile" return="org.apache.hadoop.fs.Path"
  73359. abstract="false" native="false" synchronized="false"
  73360. static="true" final="false" visibility="public"
  73361. deprecated="not deprecated">
  73362. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  73363. <param name="name" type="java.lang.String"/>
  73364. <param name="extension" type="java.lang.String"/>
  73365. <exception name="IOException" type="java.io.IOException"/>
  73366. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73367. <doc>
  73368. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  73369. the task within the job output directory.
  73370. <p>The path can be used to create custom files from within the map and
  73371. reduce tasks. The path name will be unique for each task. The path parent
  73372. will be the job output directory.</p>ls
  73373. <p>This method uses the {@link #getUniqueFile} method to make the file name
  73374. unique for the task.</p>
  73375. @param context the context for the task.
  73376. @param name the name for the file.
  73377. @param extension the extension for the file
  73378. @return a unique path accross all tasks of the job.]]>
  73379. </doc>
  73380. </method>
  73381. <method name="getUniqueFile" return="java.lang.String"
  73382. abstract="false" native="false" synchronized="true"
  73383. static="true" final="false" visibility="public"
  73384. deprecated="not deprecated">
  73385. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73386. <param name="name" type="java.lang.String"/>
  73387. <param name="extension" type="java.lang.String"/>
  73388. <doc>
  73389. <![CDATA[Generate a unique filename, based on the task id, name, and extension
  73390. @param context the task that is calling this
  73391. @param name the base filename
  73392. @param extension the filename extension
  73393. @return a string like $name-[mr]-$id$extension]]>
  73394. </doc>
  73395. </method>
  73396. <method name="getDefaultWorkFile" return="org.apache.hadoop.fs.Path"
  73397. abstract="false" native="false" synchronized="false"
  73398. static="false" final="false" visibility="public"
  73399. deprecated="not deprecated">
  73400. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73401. <param name="extension" type="java.lang.String"/>
  73402. <exception name="IOException" type="java.io.IOException"/>
  73403. <doc>
  73404. <![CDATA[Get the default path and filename for the output format.
  73405. @param context the task context
  73406. @param extension an extension to add to the filename
  73407. @return a full path $output/_temporary/$taskid/part-[mr]-$id
  73408. @throws IOException]]>
  73409. </doc>
  73410. </method>
  73411. <method name="getOutputName" return="java.lang.String"
  73412. abstract="false" native="false" synchronized="false"
  73413. static="true" final="false" visibility="protected"
  73414. deprecated="not deprecated">
  73415. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73416. <doc>
  73417. <![CDATA[Get the base output name for the output file.]]>
  73418. </doc>
  73419. </method>
  73420. <method name="setOutputName"
  73421. abstract="false" native="false" synchronized="false"
  73422. static="true" final="false" visibility="protected"
  73423. deprecated="not deprecated">
  73424. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73425. <param name="name" type="java.lang.String"/>
  73426. <doc>
  73427. <![CDATA[Set the base output name for output file to be created.]]>
  73428. </doc>
  73429. </method>
  73430. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73431. abstract="false" native="false" synchronized="true"
  73432. static="false" final="false" visibility="public"
  73433. deprecated="not deprecated">
  73434. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73435. <exception name="IOException" type="java.io.IOException"/>
  73436. </method>
  73437. <field name="BASE_OUTPUT_NAME" type="java.lang.String"
  73438. transient="false" volatile="false"
  73439. static="true" final="true" visibility="protected"
  73440. deprecated="not deprecated">
  73441. </field>
  73442. <field name="PART" type="java.lang.String"
  73443. transient="false" volatile="false"
  73444. static="true" final="true" visibility="protected"
  73445. deprecated="not deprecated">
  73446. </field>
  73447. <doc>
  73448. <![CDATA[A base class for {@link OutputFormat}s that read from {@link FileSystem}s.]]>
  73449. </doc>
  73450. </class>
  73451. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  73452. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  73453. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  73454. abstract="false"
  73455. static="true" final="true" visibility="public"
  73456. deprecated="not deprecated">
  73457. <method name="values" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter[]"
  73458. abstract="false" native="false" synchronized="false"
  73459. static="true" final="false" visibility="public"
  73460. deprecated="not deprecated">
  73461. </method>
  73462. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  73463. abstract="false" native="false" synchronized="false"
  73464. static="true" final="false" visibility="public"
  73465. deprecated="not deprecated">
  73466. <param name="name" type="java.lang.String"/>
  73467. </method>
  73468. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  73469. transient="false" volatile="false"
  73470. static="true" final="true" visibility="public"
  73471. deprecated="not deprecated">
  73472. </field>
  73473. </class>
  73474. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  73475. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  73476. <class name="FilterOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  73477. abstract="false"
  73478. static="false" final="false" visibility="public"
  73479. deprecated="not deprecated">
  73480. <constructor name="FilterOutputFormat"
  73481. static="false" final="false" visibility="public"
  73482. deprecated="not deprecated">
  73483. </constructor>
  73484. <constructor name="FilterOutputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  73485. static="false" final="false" visibility="public"
  73486. deprecated="not deprecated">
  73487. <doc>
  73488. <![CDATA[Create a FilterOutputFormat based on the underlying output format.
  73489. @param baseOut the underlying OutputFormat]]>
  73490. </doc>
  73491. </constructor>
  73492. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73493. abstract="false" native="false" synchronized="false"
  73494. static="false" final="false" visibility="public"
  73495. deprecated="not deprecated">
  73496. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73497. <exception name="IOException" type="java.io.IOException"/>
  73498. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73499. </method>
  73500. <method name="checkOutputSpecs"
  73501. abstract="false" native="false" synchronized="false"
  73502. static="false" final="false" visibility="public"
  73503. deprecated="not deprecated">
  73504. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73505. <exception name="IOException" type="java.io.IOException"/>
  73506. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73507. </method>
  73508. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73509. abstract="false" native="false" synchronized="false"
  73510. static="false" final="false" visibility="public"
  73511. deprecated="not deprecated">
  73512. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73513. <exception name="IOException" type="java.io.IOException"/>
  73514. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73515. </method>
  73516. <field name="baseOut" type="org.apache.hadoop.mapreduce.OutputFormat"
  73517. transient="false" volatile="false"
  73518. static="false" final="false" visibility="protected"
  73519. deprecated="not deprecated">
  73520. </field>
  73521. <doc>
  73522. <![CDATA[FilterOutputFormat is a convenience class that wraps OutputFormat.]]>
  73523. </doc>
  73524. </class>
  73525. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  73526. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  73527. <class name="FilterOutputFormat.FilterRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  73528. abstract="false"
  73529. static="true" final="false" visibility="public"
  73530. deprecated="not deprecated">
  73531. <constructor name="FilterOutputFormat.FilterRecordWriter"
  73532. static="false" final="false" visibility="public"
  73533. deprecated="not deprecated">
  73534. </constructor>
  73535. <constructor name="FilterOutputFormat.FilterRecordWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  73536. static="false" final="false" visibility="public"
  73537. deprecated="not deprecated">
  73538. </constructor>
  73539. <method name="write"
  73540. abstract="false" native="false" synchronized="false"
  73541. static="false" final="false" visibility="public"
  73542. deprecated="not deprecated">
  73543. <param name="key" type="java.lang.Object"/>
  73544. <param name="value" type="java.lang.Object"/>
  73545. <exception name="IOException" type="java.io.IOException"/>
  73546. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73547. </method>
  73548. <method name="close"
  73549. abstract="false" native="false" synchronized="false"
  73550. static="false" final="false" visibility="public"
  73551. deprecated="not deprecated">
  73552. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73553. <exception name="IOException" type="java.io.IOException"/>
  73554. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73555. </method>
  73556. <field name="rawWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  73557. transient="false" volatile="false"
  73558. static="false" final="false" visibility="protected"
  73559. deprecated="not deprecated">
  73560. </field>
  73561. <doc>
  73562. <![CDATA[<code>FilterRecordWriter</code> is a convenience wrapper
  73563. class that extends the {@link RecordWriter}.]]>
  73564. </doc>
  73565. </class>
  73566. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  73567. <!-- start class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  73568. <class name="LazyOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat"
  73569. abstract="false"
  73570. static="false" final="false" visibility="public"
  73571. deprecated="not deprecated">
  73572. <constructor name="LazyOutputFormat"
  73573. static="false" final="false" visibility="public"
  73574. deprecated="not deprecated">
  73575. </constructor>
  73576. <method name="setOutputFormatClass"
  73577. abstract="false" native="false" synchronized="false"
  73578. static="true" final="false" visibility="public"
  73579. deprecated="not deprecated">
  73580. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73581. <param name="theClass" type="java.lang.Class"/>
  73582. <doc>
  73583. <![CDATA[Set the underlying output format for LazyOutputFormat.
  73584. @param job the {@link Job} to modify
  73585. @param theClass the underlying class]]>
  73586. </doc>
  73587. </method>
  73588. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73589. abstract="false" native="false" synchronized="false"
  73590. static="false" final="false" visibility="public"
  73591. deprecated="not deprecated">
  73592. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73593. <exception name="IOException" type="java.io.IOException"/>
  73594. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73595. </method>
  73596. <method name="checkOutputSpecs"
  73597. abstract="false" native="false" synchronized="false"
  73598. static="false" final="false" visibility="public"
  73599. deprecated="not deprecated">
  73600. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73601. <exception name="IOException" type="java.io.IOException"/>
  73602. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73603. </method>
  73604. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73605. abstract="false" native="false" synchronized="false"
  73606. static="false" final="false" visibility="public"
  73607. deprecated="not deprecated">
  73608. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73609. <exception name="IOException" type="java.io.IOException"/>
  73610. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73611. </method>
  73612. <field name="OUTPUT_FORMAT" type="java.lang.String"
  73613. transient="false" volatile="false"
  73614. static="true" final="false" visibility="public"
  73615. deprecated="not deprecated">
  73616. </field>
  73617. <doc>
  73618. <![CDATA[A Convenience class that creates output lazily.]]>
  73619. </doc>
  73620. </class>
  73621. <!-- end class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  73622. <!-- start class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  73623. <class name="MultipleOutputs" extends="java.lang.Object"
  73624. abstract="false"
  73625. static="false" final="false" visibility="public"
  73626. deprecated="not deprecated">
  73627. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  73628. static="false" final="false" visibility="public"
  73629. deprecated="not deprecated">
  73630. <doc>
  73631. <![CDATA[Creates and initializes multiple outputs support,
  73632. it should be instantiated in the Mapper/Reducer setup method.
  73633. @param context the TaskInputOutputContext object]]>
  73634. </doc>
  73635. </constructor>
  73636. <method name="addNamedOutput"
  73637. abstract="false" native="false" synchronized="false"
  73638. static="true" final="false" visibility="public"
  73639. deprecated="not deprecated">
  73640. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73641. <param name="namedOutput" type="java.lang.String"/>
  73642. <param name="outputFormatClass" type="java.lang.Class"/>
  73643. <param name="keyClass" type="java.lang.Class"/>
  73644. <param name="valueClass" type="java.lang.Class"/>
  73645. <doc>
  73646. <![CDATA[Adds a named output for the job.
  73647. <p/>
  73648. @param job job to add the named output
  73649. @param namedOutput named output name, it has to be a word, letters
  73650. and numbers only, cannot be the word 'part' as
  73651. that is reserved for the default output.
  73652. @param outputFormatClass OutputFormat class.
  73653. @param keyClass key class
  73654. @param valueClass value class]]>
  73655. </doc>
  73656. </method>
  73657. <method name="setCountersEnabled"
  73658. abstract="false" native="false" synchronized="false"
  73659. static="true" final="false" visibility="public"
  73660. deprecated="not deprecated">
  73661. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73662. <param name="enabled" type="boolean"/>
  73663. <doc>
  73664. <![CDATA[Enables or disables counters for the named outputs.
  73665. The counters group is the {@link MultipleOutputs} class name.
  73666. The names of the counters are the same as the named outputs. These
  73667. counters count the number records written to each output name.
  73668. By default these counters are disabled.
  73669. @param job job to enable counters
  73670. @param enabled indicates if the counters will be enabled or not.]]>
  73671. </doc>
  73672. </method>
  73673. <method name="getCountersEnabled" return="boolean"
  73674. abstract="false" native="false" synchronized="false"
  73675. static="true" final="false" visibility="public"
  73676. deprecated="not deprecated">
  73677. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73678. <doc>
  73679. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  73680. By default these counters are disabled.
  73681. @param job the job
  73682. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  73683. </doc>
  73684. </method>
  73685. <method name="write"
  73686. abstract="false" native="false" synchronized="false"
  73687. static="false" final="false" visibility="public"
  73688. deprecated="not deprecated">
  73689. <param name="namedOutput" type="java.lang.String"/>
  73690. <param name="key" type="java.lang.Object"/>
  73691. <param name="value" type="java.lang.Object"/>
  73692. <exception name="IOException" type="java.io.IOException"/>
  73693. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73694. <doc>
  73695. <![CDATA[Write key and value to the namedOutput.
  73696. Output path is a unique file generated for the namedOutput.
  73697. For example, {namedOutput}-(m|r)-{part-number}
  73698. @param namedOutput the named output name
  73699. @param key the key
  73700. @param value the value]]>
  73701. </doc>
  73702. </method>
  73703. <method name="write"
  73704. abstract="false" native="false" synchronized="false"
  73705. static="false" final="false" visibility="public"
  73706. deprecated="not deprecated">
  73707. <param name="namedOutput" type="java.lang.String"/>
  73708. <param name="key" type="java.lang.Object"/>
  73709. <param name="value" type="java.lang.Object"/>
  73710. <param name="baseOutputPath" type="java.lang.String"/>
  73711. <exception name="IOException" type="java.io.IOException"/>
  73712. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73713. <doc>
  73714. <![CDATA[Write key and value to baseOutputPath using the namedOutput.
  73715. @param namedOutput the named output name
  73716. @param key the key
  73717. @param value the value
  73718. @param baseOutputPath base-output path to write the record to.
  73719. Note: Framework will generate unique filename for the baseOutputPath]]>
  73720. </doc>
  73721. </method>
  73722. <method name="write"
  73723. abstract="false" native="false" synchronized="false"
  73724. static="false" final="false" visibility="public"
  73725. deprecated="not deprecated">
  73726. <param name="key" type="java.lang.Object"/>
  73727. <param name="value" type="java.lang.Object"/>
  73728. <param name="baseOutputPath" type="java.lang.String"/>
  73729. <exception name="IOException" type="java.io.IOException"/>
  73730. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73731. <doc>
  73732. <![CDATA[Write key value to an output file name.
  73733. Gets the record writer from job's output format.
  73734. Job's output format should be a FileOutputFormat.
  73735. @param key the key
  73736. @param value the value
  73737. @param baseOutputPath base-output path to write the record to.
  73738. Note: Framework will generate unique filename for the baseOutputPath]]>
  73739. </doc>
  73740. </method>
  73741. <method name="close"
  73742. abstract="false" native="false" synchronized="false"
  73743. static="false" final="false" visibility="public"
  73744. deprecated="not deprecated">
  73745. <exception name="IOException" type="java.io.IOException"/>
  73746. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73747. <doc>
  73748. <![CDATA[Closes all the opened outputs.
  73749. This should be called from cleanup method of map/reduce task.
  73750. If overridden subclasses must invoke <code>super.close()</code> at the
  73751. end of their <code>close()</code>]]>
  73752. </doc>
  73753. </method>
  73754. <doc>
  73755. <![CDATA[The MultipleOutputs class simplifies writing output data
  73756. to multiple outputs
  73757. <p>
  73758. Case one: writing to additional outputs other than the job default output.
  73759. Each additional output, or named output, may be configured with its own
  73760. <code>OutputFormat</code>, with its own key class and with its own value
  73761. class.
  73762. <p>
  73763. Case two: to write data to different files provided by user
  73764. </p>
  73765. <p>
  73766. MultipleOutputs supports counters, by default they are disabled. The
  73767. counters group is the {@link MultipleOutputs} class name. The names of the
  73768. counters are the same as the output name. These count the number records
  73769. written to each output name.
  73770. </p>
  73771. Usage pattern for job submission:
  73772. <pre>
  73773. Job job = new Job();
  73774. FileInputFormat.setInputPath(job, inDir);
  73775. FileOutputFormat.setOutputPath(job, outDir);
  73776. job.setMapperClass(MOMap.class);
  73777. job.setReducerClass(MOReduce.class);
  73778. ...
  73779. // Defines additional single text based output 'text' for the job
  73780. MultipleOutputs.addNamedOutput(job, "text", TextOutputFormat.class,
  73781. LongWritable.class, Text.class);
  73782. // Defines additional sequence-file based output 'sequence' for the job
  73783. MultipleOutputs.addNamedOutput(job, "seq",
  73784. SequenceFileOutputFormat.class,
  73785. LongWritable.class, Text.class);
  73786. ...
  73787. job.waitForCompletion(true);
  73788. ...
  73789. </pre>
  73790. <p>
  73791. Usage in Reducer:
  73792. <pre>
  73793. <K, V> String generateFileName(K k, V v) {
  73794. return k.toString() + "_" + v.toString();
  73795. }
  73796. public class MOReduce extends
  73797. Reducer&lt;WritableComparable, Writable,WritableComparable, Writable&gt; {
  73798. private MultipleOutputs mos;
  73799. public void setup(Context context) {
  73800. ...
  73801. mos = new MultipleOutputs(context);
  73802. }
  73803. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  73804. Context context)
  73805. throws IOException {
  73806. ...
  73807. mos.write("text", , key, new Text("Hello"));
  73808. mos.write("seq", LongWritable(1), new Text("Bye"), "seq_a");
  73809. mos.write("seq", LongWritable(2), key, new Text("Chau"), "seq_b");
  73810. mos.write(key, new Text("value"), generateFileName(key, new Text("value")));
  73811. ...
  73812. }
  73813. public void cleanup(Context) throws IOException {
  73814. mos.close();
  73815. ...
  73816. }
  73817. }
  73818. </pre>]]>
  73819. </doc>
  73820. </class>
  73821. <!-- end class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  73822. <!-- start class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  73823. <class name="NullOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  73824. abstract="false"
  73825. static="false" final="false" visibility="public"
  73826. deprecated="not deprecated">
  73827. <constructor name="NullOutputFormat"
  73828. static="false" final="false" visibility="public"
  73829. deprecated="not deprecated">
  73830. </constructor>
  73831. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73832. abstract="false" native="false" synchronized="false"
  73833. static="false" final="false" visibility="public"
  73834. deprecated="not deprecated">
  73835. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73836. </method>
  73837. <method name="checkOutputSpecs"
  73838. abstract="false" native="false" synchronized="false"
  73839. static="false" final="false" visibility="public"
  73840. deprecated="not deprecated">
  73841. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73842. </method>
  73843. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  73844. abstract="false" native="false" synchronized="false"
  73845. static="false" final="false" visibility="public"
  73846. deprecated="not deprecated">
  73847. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73848. </method>
  73849. <doc>
  73850. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  73851. </doc>
  73852. </class>
  73853. <!-- end class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  73854. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  73855. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat"
  73856. abstract="false"
  73857. static="false" final="false" visibility="public"
  73858. deprecated="not deprecated">
  73859. <constructor name="SequenceFileAsBinaryOutputFormat"
  73860. static="false" final="false" visibility="public"
  73861. deprecated="not deprecated">
  73862. </constructor>
  73863. <method name="setSequenceFileOutputKeyClass"
  73864. abstract="false" native="false" synchronized="false"
  73865. static="true" final="false" visibility="public"
  73866. deprecated="not deprecated">
  73867. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73868. <param name="theClass" type="java.lang.Class"/>
  73869. <doc>
  73870. <![CDATA[Set the key class for the {@link SequenceFile}
  73871. <p>This allows the user to specify the key class to be different
  73872. from the actual class ({@link BytesWritable}) used for writing </p>
  73873. @param job the {@link Job} to modify
  73874. @param theClass the SequenceFile output key class.]]>
  73875. </doc>
  73876. </method>
  73877. <method name="setSequenceFileOutputValueClass"
  73878. abstract="false" native="false" synchronized="false"
  73879. static="true" final="false" visibility="public"
  73880. deprecated="not deprecated">
  73881. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73882. <param name="theClass" type="java.lang.Class"/>
  73883. <doc>
  73884. <![CDATA[Set the value class for the {@link SequenceFile}
  73885. <p>This allows the user to specify the value class to be different
  73886. from the actual class ({@link BytesWritable}) used for writing </p>
  73887. @param job the {@link Job} to modify
  73888. @param theClass the SequenceFile output key class.]]>
  73889. </doc>
  73890. </method>
  73891. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  73892. abstract="false" native="false" synchronized="false"
  73893. static="true" final="false" visibility="public"
  73894. deprecated="not deprecated">
  73895. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73896. <doc>
  73897. <![CDATA[Get the key class for the {@link SequenceFile}
  73898. @return the key class of the {@link SequenceFile}]]>
  73899. </doc>
  73900. </method>
  73901. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  73902. abstract="false" native="false" synchronized="false"
  73903. static="true" final="false" visibility="public"
  73904. deprecated="not deprecated">
  73905. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73906. <doc>
  73907. <![CDATA[Get the value class for the {@link SequenceFile}
  73908. @return the value class of the {@link SequenceFile}]]>
  73909. </doc>
  73910. </method>
  73911. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  73912. abstract="false" native="false" synchronized="false"
  73913. static="false" final="false" visibility="public"
  73914. deprecated="not deprecated">
  73915. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73916. <exception name="IOException" type="java.io.IOException"/>
  73917. </method>
  73918. <method name="getSequenceWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  73919. abstract="false" native="false" synchronized="false"
  73920. static="false" final="false" visibility="protected"
  73921. deprecated="not deprecated">
  73922. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73923. <param name="keyClass" type="java.lang.Class"/>
  73924. <param name="valueClass" type="java.lang.Class"/>
  73925. <exception name="IOException" type="java.io.IOException"/>
  73926. </method>
  73927. <method name="checkOutputSpecs"
  73928. abstract="false" native="false" synchronized="false"
  73929. static="false" final="false" visibility="public"
  73930. deprecated="not deprecated">
  73931. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73932. <exception name="IOException" type="java.io.IOException"/>
  73933. </method>
  73934. <field name="KEY_CLASS" type="java.lang.String"
  73935. transient="false" volatile="false"
  73936. static="true" final="false" visibility="public"
  73937. deprecated="not deprecated">
  73938. </field>
  73939. <field name="VALUE_CLASS" type="java.lang.String"
  73940. transient="false" volatile="false"
  73941. static="true" final="false" visibility="public"
  73942. deprecated="not deprecated">
  73943. </field>
  73944. <doc>
  73945. <![CDATA[An {@link org.apache.hadoop.mapreduce.OutputFormat} that writes keys,
  73946. values to {@link SequenceFile}s in binary(raw) format]]>
  73947. </doc>
  73948. </class>
  73949. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  73950. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  73951. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  73952. abstract="false"
  73953. static="true" final="false" visibility="public"
  73954. deprecated="not deprecated">
  73955. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  73956. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  73957. static="false" final="false" visibility="public"
  73958. deprecated="not deprecated">
  73959. </constructor>
  73960. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  73961. static="false" final="false" visibility="public"
  73962. deprecated="not deprecated">
  73963. </constructor>
  73964. <method name="reset"
  73965. abstract="false" native="false" synchronized="false"
  73966. static="false" final="false" visibility="public"
  73967. deprecated="not deprecated">
  73968. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  73969. </method>
  73970. <method name="writeUncompressedBytes"
  73971. abstract="false" native="false" synchronized="false"
  73972. static="false" final="false" visibility="public"
  73973. deprecated="not deprecated">
  73974. <param name="outStream" type="java.io.DataOutputStream"/>
  73975. <exception name="IOException" type="java.io.IOException"/>
  73976. </method>
  73977. <method name="writeCompressedBytes"
  73978. abstract="false" native="false" synchronized="false"
  73979. static="false" final="false" visibility="public"
  73980. deprecated="not deprecated">
  73981. <param name="outStream" type="java.io.DataOutputStream"/>
  73982. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  73983. <exception name="IOException" type="java.io.IOException"/>
  73984. </method>
  73985. <method name="getSize" return="int"
  73986. abstract="false" native="false" synchronized="false"
  73987. static="false" final="false" visibility="public"
  73988. deprecated="not deprecated">
  73989. </method>
  73990. <doc>
  73991. <![CDATA[Inner class used for appendRaw]]>
  73992. </doc>
  73993. </class>
  73994. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  73995. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  73996. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  73997. abstract="false"
  73998. static="false" final="false" visibility="public"
  73999. deprecated="not deprecated">
  74000. <constructor name="SequenceFileOutputFormat"
  74001. static="false" final="false" visibility="public"
  74002. deprecated="not deprecated">
  74003. </constructor>
  74004. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74005. abstract="false" native="false" synchronized="false"
  74006. static="false" final="false" visibility="public"
  74007. deprecated="not deprecated">
  74008. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74009. <exception name="IOException" type="java.io.IOException"/>
  74010. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74011. </method>
  74012. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  74013. abstract="false" native="false" synchronized="false"
  74014. static="true" final="false" visibility="public"
  74015. deprecated="not deprecated">
  74016. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74017. <doc>
  74018. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  74019. @param job the {@link Job}
  74020. @return the {@link CompressionType} for the output {@link SequenceFile},
  74021. defaulting to {@link CompressionType#RECORD}]]>
  74022. </doc>
  74023. </method>
  74024. <method name="setOutputCompressionType"
  74025. abstract="false" native="false" synchronized="false"
  74026. static="true" final="false" visibility="public"
  74027. deprecated="not deprecated">
  74028. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74029. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  74030. <doc>
  74031. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  74032. @param job the {@link Job} to modify
  74033. @param style the {@link CompressionType} for the output
  74034. {@link SequenceFile}]]>
  74035. </doc>
  74036. </method>
  74037. <doc>
  74038. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  74039. </doc>
  74040. </class>
  74041. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  74042. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  74043. <class name="TextOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  74044. abstract="false"
  74045. static="false" final="false" visibility="public"
  74046. deprecated="not deprecated">
  74047. <constructor name="TextOutputFormat"
  74048. static="false" final="false" visibility="public"
  74049. deprecated="not deprecated">
  74050. </constructor>
  74051. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74052. abstract="false" native="false" synchronized="false"
  74053. static="false" final="false" visibility="public"
  74054. deprecated="not deprecated">
  74055. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74056. <exception name="IOException" type="java.io.IOException"/>
  74057. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74058. </method>
  74059. <doc>
  74060. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  74061. </doc>
  74062. </class>
  74063. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  74064. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  74065. <class name="TextOutputFormat.LineRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  74066. abstract="false"
  74067. static="true" final="false" visibility="protected"
  74068. deprecated="not deprecated">
  74069. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  74070. static="false" final="false" visibility="public"
  74071. deprecated="not deprecated">
  74072. </constructor>
  74073. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  74074. static="false" final="false" visibility="public"
  74075. deprecated="not deprecated">
  74076. </constructor>
  74077. <method name="write"
  74078. abstract="false" native="false" synchronized="true"
  74079. static="false" final="false" visibility="public"
  74080. deprecated="not deprecated">
  74081. <param name="key" type="java.lang.Object"/>
  74082. <param name="value" type="java.lang.Object"/>
  74083. <exception name="IOException" type="java.io.IOException"/>
  74084. </method>
  74085. <method name="close"
  74086. abstract="false" native="false" synchronized="true"
  74087. static="false" final="false" visibility="public"
  74088. deprecated="not deprecated">
  74089. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74090. <exception name="IOException" type="java.io.IOException"/>
  74091. </method>
  74092. <field name="out" type="java.io.DataOutputStream"
  74093. transient="false" volatile="false"
  74094. static="false" final="false" visibility="protected"
  74095. deprecated="not deprecated">
  74096. </field>
  74097. </class>
  74098. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  74099. </package>
  74100. <package name="org.apache.hadoop.mapreduce.lib.partition">
  74101. <!-- start class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  74102. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74103. abstract="false"
  74104. static="false" final="false" visibility="public"
  74105. deprecated="not deprecated">
  74106. <implements name="org.apache.hadoop.conf.Configurable"/>
  74107. <constructor name="BinaryPartitioner"
  74108. static="false" final="false" visibility="public"
  74109. deprecated="not deprecated">
  74110. </constructor>
  74111. <method name="setOffsets"
  74112. abstract="false" native="false" synchronized="false"
  74113. static="true" final="false" visibility="public"
  74114. deprecated="not deprecated">
  74115. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74116. <param name="left" type="int"/>
  74117. <param name="right" type="int"/>
  74118. <doc>
  74119. <![CDATA[Set the subarray to be used for partitioning to
  74120. <code>bytes[left:(right+1)]</code> in Python syntax.
  74121. @param conf configuration object
  74122. @param left left Python-style offset
  74123. @param right right Python-style offset]]>
  74124. </doc>
  74125. </method>
  74126. <method name="setLeftOffset"
  74127. abstract="false" native="false" synchronized="false"
  74128. static="true" final="false" visibility="public"
  74129. deprecated="not deprecated">
  74130. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74131. <param name="offset" type="int"/>
  74132. <doc>
  74133. <![CDATA[Set the subarray to be used for partitioning to
  74134. <code>bytes[offset:]</code> in Python syntax.
  74135. @param conf configuration object
  74136. @param offset left Python-style offset]]>
  74137. </doc>
  74138. </method>
  74139. <method name="setRightOffset"
  74140. abstract="false" native="false" synchronized="false"
  74141. static="true" final="false" visibility="public"
  74142. deprecated="not deprecated">
  74143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74144. <param name="offset" type="int"/>
  74145. <doc>
  74146. <![CDATA[Set the subarray to be used for partitioning to
  74147. <code>bytes[:(offset+1)]</code> in Python syntax.
  74148. @param conf configuration object
  74149. @param offset right Python-style offset]]>
  74150. </doc>
  74151. </method>
  74152. <method name="setConf"
  74153. abstract="false" native="false" synchronized="false"
  74154. static="false" final="false" visibility="public"
  74155. deprecated="not deprecated">
  74156. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74157. </method>
  74158. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74159. abstract="false" native="false" synchronized="false"
  74160. static="false" final="false" visibility="public"
  74161. deprecated="not deprecated">
  74162. </method>
  74163. <method name="getPartition" return="int"
  74164. abstract="false" native="false" synchronized="false"
  74165. static="false" final="false" visibility="public"
  74166. deprecated="not deprecated">
  74167. <param name="key" type="org.apache.hadoop.io.BinaryComparable"/>
  74168. <param name="value" type="java.lang.Object"/>
  74169. <param name="numPartitions" type="int"/>
  74170. <doc>
  74171. <![CDATA[Use (the specified slice of the array returned by)
  74172. {@link BinaryComparable#getBytes()} to partition.]]>
  74173. </doc>
  74174. </method>
  74175. <doc>
  74176. <![CDATA[<p>Partition {@link BinaryComparable} keys using a configurable part of
  74177. the bytes array returned by {@link BinaryComparable#getBytes()}.</p>
  74178. <p>The subarray to be used for the partitioning can be defined by means
  74179. of the following properties:
  74180. <ul>
  74181. <li>
  74182. <i>mapred.binary.partitioner.left.offset</i>:
  74183. left offset in array (0 by default)
  74184. </li>
  74185. <li>
  74186. <i>mapred.binary.partitioner.right.offset</i>:
  74187. right offset in array (-1 by default)
  74188. </li>
  74189. </ul>
  74190. Like in Python, both negative and positive offsets are allowed, but
  74191. the meaning is slightly different. In case of an array of length 5,
  74192. for instance, the possible offsets are:
  74193. <pre><code>
  74194. +---+---+---+---+---+
  74195. | B | B | B | B | B |
  74196. +---+---+---+---+---+
  74197. 0 1 2 3 4
  74198. -5 -4 -3 -2 -1
  74199. </code></pre>
  74200. The first row of numbers gives the position of the offsets 0...5 in
  74201. the array; the second row gives the corresponding negative offsets.
  74202. Contrary to Python, the specified subarray has byte <code>i</code>
  74203. and <code>j</code> as first and last element, repectively, when
  74204. <code>i</code> and <code>j</code> are the left and right offset.
  74205. <p>For Hadoop programs written in Java, it is advisable to use one of
  74206. the following static convenience methods for setting the offsets:
  74207. <ul>
  74208. <li>{@link #setOffsets}</li>
  74209. <li>{@link #setLeftOffset}</li>
  74210. <li>{@link #setRightOffset}</li>
  74211. </ul></p>]]>
  74212. </doc>
  74213. </class>
  74214. <!-- end class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  74215. <!-- start class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  74216. <class name="HashPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74217. abstract="false"
  74218. static="false" final="false" visibility="public"
  74219. deprecated="not deprecated">
  74220. <constructor name="HashPartitioner"
  74221. static="false" final="false" visibility="public"
  74222. deprecated="not deprecated">
  74223. </constructor>
  74224. <method name="getPartition" return="int"
  74225. abstract="false" native="false" synchronized="false"
  74226. static="false" final="false" visibility="public"
  74227. deprecated="not deprecated">
  74228. <param name="key" type="java.lang.Object"/>
  74229. <param name="value" type="java.lang.Object"/>
  74230. <param name="numReduceTasks" type="int"/>
  74231. <doc>
  74232. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  74233. </doc>
  74234. </method>
  74235. <doc>
  74236. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  74237. </doc>
  74238. </class>
  74239. <!-- end class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  74240. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  74241. <class name="InputSampler" extends="org.apache.hadoop.conf.Configured"
  74242. abstract="false"
  74243. static="false" final="false" visibility="public"
  74244. deprecated="not deprecated">
  74245. <implements name="org.apache.hadoop.util.Tool"/>
  74246. <constructor name="InputSampler" type="org.apache.hadoop.conf.Configuration"
  74247. static="false" final="false" visibility="public"
  74248. deprecated="not deprecated">
  74249. </constructor>
  74250. <method name="writePartitionFile"
  74251. abstract="false" native="false" synchronized="false"
  74252. static="true" final="false" visibility="public"
  74253. deprecated="not deprecated">
  74254. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74255. <param name="sampler" type="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74256. <exception name="IOException" type="java.io.IOException"/>
  74257. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  74258. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74259. <doc>
  74260. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  74261. Queries the sampler for a sample keyset, sorts by the output key
  74262. comparator, selects the keys for each rank, and writes to the destination
  74263. returned from {@link TotalOrderPartitioner#getPartitionFile}.]]>
  74264. </doc>
  74265. </method>
  74266. <method name="run" return="int"
  74267. abstract="false" native="false" synchronized="false"
  74268. static="false" final="false" visibility="public"
  74269. deprecated="not deprecated">
  74270. <param name="args" type="java.lang.String[]"/>
  74271. <exception name="Exception" type="java.lang.Exception"/>
  74272. <doc>
  74273. <![CDATA[Driver for InputSampler from the command line.
  74274. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  74275. </doc>
  74276. </method>
  74277. <method name="main"
  74278. abstract="false" native="false" synchronized="false"
  74279. static="true" final="false" visibility="public"
  74280. deprecated="not deprecated">
  74281. <param name="args" type="java.lang.String[]"/>
  74282. <exception name="Exception" type="java.lang.Exception"/>
  74283. </method>
  74284. <doc>
  74285. <![CDATA[Utility for collecting samples and writing a partition file for
  74286. {@link TotalOrderPartitioner}.]]>
  74287. </doc>
  74288. </class>
  74289. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  74290. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  74291. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  74292. abstract="false"
  74293. static="true" final="false" visibility="public"
  74294. deprecated="not deprecated">
  74295. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74296. <constructor name="InputSampler.IntervalSampler" type="double"
  74297. static="false" final="false" visibility="public"
  74298. deprecated="not deprecated">
  74299. <doc>
  74300. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  74301. @param freq The frequency with which records will be emitted.]]>
  74302. </doc>
  74303. </constructor>
  74304. <constructor name="InputSampler.IntervalSampler" type="double, int"
  74305. static="false" final="false" visibility="public"
  74306. deprecated="not deprecated">
  74307. <doc>
  74308. <![CDATA[Create a new IntervalSampler.
  74309. @param freq The frequency with which records will be emitted.
  74310. @param maxSplitsSampled The maximum number of splits to examine.
  74311. @see #getSample]]>
  74312. </doc>
  74313. </constructor>
  74314. <method name="getSample" return="java.lang.Object[]"
  74315. abstract="false" native="false" synchronized="false"
  74316. static="false" final="false" visibility="public"
  74317. deprecated="not deprecated">
  74318. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74319. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74320. <exception name="IOException" type="java.io.IOException"/>
  74321. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74322. <doc>
  74323. <![CDATA[For each split sampled, emit when the ratio of the number of records
  74324. retained to the total record count is less than the specified
  74325. frequency.]]>
  74326. </doc>
  74327. </method>
  74328. <doc>
  74329. <![CDATA[Sample from s splits at regular intervals.
  74330. Useful for sorted data.]]>
  74331. </doc>
  74332. </class>
  74333. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  74334. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  74335. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  74336. abstract="false"
  74337. static="true" final="false" visibility="public"
  74338. deprecated="not deprecated">
  74339. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74340. <constructor name="InputSampler.RandomSampler" type="double, int"
  74341. static="false" final="false" visibility="public"
  74342. deprecated="not deprecated">
  74343. <doc>
  74344. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  74345. This will read every split at the client, which is very expensive.
  74346. @param freq Probability with which a key will be chosen.
  74347. @param numSamples Total number of samples to obtain from all selected
  74348. splits.]]>
  74349. </doc>
  74350. </constructor>
  74351. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  74352. static="false" final="false" visibility="public"
  74353. deprecated="not deprecated">
  74354. <doc>
  74355. <![CDATA[Create a new RandomSampler.
  74356. @param freq Probability with which a key will be chosen.
  74357. @param numSamples Total number of samples to obtain from all selected
  74358. splits.
  74359. @param maxSplitsSampled The maximum number of splits to examine.]]>
  74360. </doc>
  74361. </constructor>
  74362. <method name="getSample" return="java.lang.Object[]"
  74363. abstract="false" native="false" synchronized="false"
  74364. static="false" final="false" visibility="public"
  74365. deprecated="not deprecated">
  74366. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74367. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74368. <exception name="IOException" type="java.io.IOException"/>
  74369. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74370. <doc>
  74371. <![CDATA[Randomize the split order, then take the specified number of keys from
  74372. each split sampled, where each key is selected with the specified
  74373. probability and possibly replaced by a subsequently selected key when
  74374. the quota of keys from that split is satisfied.]]>
  74375. </doc>
  74376. </method>
  74377. <doc>
  74378. <![CDATA[Sample from random points in the input.
  74379. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  74380. each split.]]>
  74381. </doc>
  74382. </class>
  74383. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  74384. <!-- start interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  74385. <interface name="InputSampler.Sampler" abstract="true"
  74386. static="true" final="false" visibility="public"
  74387. deprecated="not deprecated">
  74388. <method name="getSample" return="java.lang.Object[]"
  74389. abstract="false" native="false" synchronized="false"
  74390. static="false" final="false" visibility="public"
  74391. deprecated="not deprecated">
  74392. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74393. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74394. <exception name="IOException" type="java.io.IOException"/>
  74395. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74396. <doc>
  74397. <![CDATA[For a given job, collect and return a subset of the keys from the
  74398. input data.]]>
  74399. </doc>
  74400. </method>
  74401. <doc>
  74402. <![CDATA[Interface to sample using an
  74403. {@link org.apache.hadoop.mapreduce.InputFormat}.]]>
  74404. </doc>
  74405. </interface>
  74406. <!-- end interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  74407. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  74408. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  74409. abstract="false"
  74410. static="true" final="false" visibility="public"
  74411. deprecated="not deprecated">
  74412. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  74413. <constructor name="InputSampler.SplitSampler" type="int"
  74414. static="false" final="false" visibility="public"
  74415. deprecated="not deprecated">
  74416. <doc>
  74417. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  74418. Takes the first numSamples / numSplits records from each split.
  74419. @param numSamples Total number of samples to obtain from all selected
  74420. splits.]]>
  74421. </doc>
  74422. </constructor>
  74423. <constructor name="InputSampler.SplitSampler" type="int, int"
  74424. static="false" final="false" visibility="public"
  74425. deprecated="not deprecated">
  74426. <doc>
  74427. <![CDATA[Create a new SplitSampler.
  74428. @param numSamples Total number of samples to obtain from all selected
  74429. splits.
  74430. @param maxSplitsSampled The maximum number of splits to examine.]]>
  74431. </doc>
  74432. </constructor>
  74433. <method name="getSample" return="java.lang.Object[]"
  74434. abstract="false" native="false" synchronized="false"
  74435. static="false" final="false" visibility="public"
  74436. deprecated="not deprecated">
  74437. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  74438. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74439. <exception name="IOException" type="java.io.IOException"/>
  74440. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74441. <doc>
  74442. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  74443. </doc>
  74444. </method>
  74445. <doc>
  74446. <![CDATA[Samples the first n records from s splits.
  74447. Inexpensive way to sample random data.]]>
  74448. </doc>
  74449. </class>
  74450. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  74451. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  74452. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  74453. abstract="false"
  74454. static="false" final="false" visibility="public"
  74455. deprecated="not deprecated">
  74456. <implements name="org.apache.hadoop.conf.Configurable"/>
  74457. <constructor name="KeyFieldBasedComparator"
  74458. static="false" final="false" visibility="public"
  74459. deprecated="not deprecated">
  74460. </constructor>
  74461. <method name="setConf"
  74462. abstract="false" native="false" synchronized="false"
  74463. static="false" final="false" visibility="public"
  74464. deprecated="not deprecated">
  74465. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74466. </method>
  74467. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74468. abstract="false" native="false" synchronized="false"
  74469. static="false" final="false" visibility="public"
  74470. deprecated="not deprecated">
  74471. </method>
  74472. <method name="compare" return="int"
  74473. abstract="false" native="false" synchronized="false"
  74474. static="false" final="false" visibility="public"
  74475. deprecated="not deprecated">
  74476. <param name="b1" type="byte[]"/>
  74477. <param name="s1" type="int"/>
  74478. <param name="l1" type="int"/>
  74479. <param name="b2" type="byte[]"/>
  74480. <param name="s2" type="int"/>
  74481. <param name="l2" type="int"/>
  74482. </method>
  74483. <method name="setKeyFieldComparatorOptions"
  74484. abstract="false" native="false" synchronized="false"
  74485. static="true" final="false" visibility="public"
  74486. deprecated="not deprecated">
  74487. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74488. <param name="keySpec" type="java.lang.String"/>
  74489. <doc>
  74490. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  74491. @param keySpec the key specification of the form -k pos1[,pos2], where,
  74492. pos is of the form f[.c][opts], where f is the number
  74493. of the key field to use, and c is the number of the first character from
  74494. the beginning of the field. Fields and character posns are numbered
  74495. starting with 1; a character position of zero in pos2 indicates the
  74496. field's last character. If '.c' is omitted from pos1, it defaults to 1
  74497. (the beginning of the field); if omitted from pos2, it defaults to 0
  74498. (the end of the field). opts are ordering options. The supported options
  74499. are:
  74500. -n, (Sort numerically)
  74501. -r, (Reverse the result of comparison)]]>
  74502. </doc>
  74503. </method>
  74504. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  74505. abstract="false" native="false" synchronized="false"
  74506. static="true" final="false" visibility="public"
  74507. deprecated="not deprecated">
  74508. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74509. <doc>
  74510. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  74511. </doc>
  74512. </method>
  74513. <field name="COMPARATOR_OPTIONS" type="java.lang.String"
  74514. transient="false" volatile="false"
  74515. static="true" final="false" visibility="public"
  74516. deprecated="not deprecated">
  74517. </field>
  74518. <doc>
  74519. <![CDATA[This comparator implementation provides a subset of the features provided
  74520. by the Unix/GNU Sort. In particular, the supported features are:
  74521. -n, (Sort numerically)
  74522. -r, (Reverse the result of comparison)
  74523. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  74524. of the field to use, and c is the number of the first character from the
  74525. beginning of the field. Fields and character posns are numbered starting
  74526. with 1; a character position of zero in pos2 indicates the field's last
  74527. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  74528. of the field); if omitted from pos2, it defaults to 0 (the end of the
  74529. field). opts are ordering options (any of 'nr' as described above).
  74530. We assume that the fields in the key are separated by
  74531. mapreduce.map.output.key.field.separator.]]>
  74532. </doc>
  74533. </class>
  74534. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  74535. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  74536. <class name="KeyFieldBasedPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74537. abstract="false"
  74538. static="false" final="false" visibility="public"
  74539. deprecated="not deprecated">
  74540. <implements name="org.apache.hadoop.conf.Configurable"/>
  74541. <constructor name="KeyFieldBasedPartitioner"
  74542. static="false" final="false" visibility="public"
  74543. deprecated="not deprecated">
  74544. </constructor>
  74545. <method name="setConf"
  74546. abstract="false" native="false" synchronized="false"
  74547. static="false" final="false" visibility="public"
  74548. deprecated="not deprecated">
  74549. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74550. </method>
  74551. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74552. abstract="false" native="false" synchronized="false"
  74553. static="false" final="false" visibility="public"
  74554. deprecated="not deprecated">
  74555. </method>
  74556. <method name="getPartition" return="int"
  74557. abstract="false" native="false" synchronized="false"
  74558. static="false" final="false" visibility="public"
  74559. deprecated="not deprecated">
  74560. <param name="key" type="java.lang.Object"/>
  74561. <param name="value" type="java.lang.Object"/>
  74562. <param name="numReduceTasks" type="int"/>
  74563. </method>
  74564. <method name="hashCode" return="int"
  74565. abstract="false" native="false" synchronized="false"
  74566. static="false" final="false" visibility="protected"
  74567. deprecated="not deprecated">
  74568. <param name="b" type="byte[]"/>
  74569. <param name="start" type="int"/>
  74570. <param name="end" type="int"/>
  74571. <param name="currentHash" type="int"/>
  74572. </method>
  74573. <method name="getPartition" return="int"
  74574. abstract="false" native="false" synchronized="false"
  74575. static="false" final="false" visibility="protected"
  74576. deprecated="not deprecated">
  74577. <param name="hash" type="int"/>
  74578. <param name="numReduceTasks" type="int"/>
  74579. </method>
  74580. <method name="setKeyFieldPartitionerOptions"
  74581. abstract="false" native="false" synchronized="false"
  74582. static="false" final="false" visibility="public"
  74583. deprecated="not deprecated">
  74584. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74585. <param name="keySpec" type="java.lang.String"/>
  74586. <doc>
  74587. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  74588. {@link Partitioner}
  74589. @param keySpec the key specification of the form -k pos1[,pos2], where,
  74590. pos is of the form f[.c][opts], where f is the number
  74591. of the key field to use, and c is the number of the first character from
  74592. the beginning of the field. Fields and character posns are numbered
  74593. starting with 1; a character position of zero in pos2 indicates the
  74594. field's last character. If '.c' is omitted from pos1, it defaults to 1
  74595. (the beginning of the field); if omitted from pos2, it defaults to 0
  74596. (the end of the field).]]>
  74597. </doc>
  74598. </method>
  74599. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  74600. abstract="false" native="false" synchronized="false"
  74601. static="false" final="false" visibility="public"
  74602. deprecated="not deprecated">
  74603. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74604. <doc>
  74605. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  74606. </doc>
  74607. </method>
  74608. <field name="PARTITIONER_OPTIONS" type="java.lang.String"
  74609. transient="false" volatile="false"
  74610. static="true" final="false" visibility="public"
  74611. deprecated="not deprecated">
  74612. </field>
  74613. <doc>
  74614. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  74615. {@link KeyFieldBasedComparator}.
  74616. The key specification supported is of the form -k pos1[,pos2], where,
  74617. pos is of the form f[.c][opts], where f is the number
  74618. of the key field to use, and c is the number of the first character from
  74619. the beginning of the field. Fields and character posns are numbered
  74620. starting with 1; a character position of zero in pos2 indicates the
  74621. field's last character. If '.c' is omitted from pos1, it defaults to 1
  74622. (the beginning of the field); if omitted from pos2, it defaults to 0
  74623. (the end of the field).]]>
  74624. </doc>
  74625. </class>
  74626. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  74627. <!-- start class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  74628. <class name="TotalOrderPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  74629. abstract="false"
  74630. static="false" final="false" visibility="public"
  74631. deprecated="not deprecated">
  74632. <implements name="org.apache.hadoop.conf.Configurable"/>
  74633. <constructor name="TotalOrderPartitioner"
  74634. static="false" final="false" visibility="public"
  74635. deprecated="not deprecated">
  74636. </constructor>
  74637. <method name="setConf"
  74638. abstract="false" native="false" synchronized="false"
  74639. static="false" final="false" visibility="public"
  74640. deprecated="not deprecated">
  74641. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74642. <doc>
  74643. <![CDATA[Read in the partition file and build indexing data structures.
  74644. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  74645. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  74646. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  74647. will be built. Otherwise, keys will be located using a binary search of
  74648. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  74649. defined for this job. The input file must be sorted with the same
  74650. comparator and contain {@link Job#getNumReduceTasks()} - 1 keys.]]>
  74651. </doc>
  74652. </method>
  74653. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  74654. abstract="false" native="false" synchronized="false"
  74655. static="false" final="false" visibility="public"
  74656. deprecated="not deprecated">
  74657. </method>
  74658. <method name="getPartition" return="int"
  74659. abstract="false" native="false" synchronized="false"
  74660. static="false" final="false" visibility="public"
  74661. deprecated="not deprecated">
  74662. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  74663. <param name="value" type="java.lang.Object"/>
  74664. <param name="numPartitions" type="int"/>
  74665. </method>
  74666. <method name="setPartitionFile"
  74667. abstract="false" native="false" synchronized="false"
  74668. static="true" final="false" visibility="public"
  74669. deprecated="not deprecated">
  74670. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74671. <param name="p" type="org.apache.hadoop.fs.Path"/>
  74672. <doc>
  74673. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  74674. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  74675. keys in the SequenceFile.]]>
  74676. </doc>
  74677. </method>
  74678. <method name="getPartitionFile" return="java.lang.String"
  74679. abstract="false" native="false" synchronized="false"
  74680. static="true" final="false" visibility="public"
  74681. deprecated="not deprecated">
  74682. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74683. <doc>
  74684. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  74685. @see #setPartitionFile(Configuration, Path)]]>
  74686. </doc>
  74687. </method>
  74688. <field name="DEFAULT_PATH" type="java.lang.String"
  74689. transient="false" volatile="false"
  74690. static="true" final="true" visibility="public"
  74691. deprecated="not deprecated">
  74692. </field>
  74693. <field name="PARTITIONER_PATH" type="java.lang.String"
  74694. transient="false" volatile="false"
  74695. static="true" final="true" visibility="public"
  74696. deprecated="not deprecated">
  74697. </field>
  74698. <field name="MAX_TRIE_DEPTH" type="java.lang.String"
  74699. transient="false" volatile="false"
  74700. static="true" final="true" visibility="public"
  74701. deprecated="not deprecated">
  74702. </field>
  74703. <field name="NATURAL_ORDER" type="java.lang.String"
  74704. transient="false" volatile="false"
  74705. static="true" final="true" visibility="public"
  74706. deprecated="not deprecated">
  74707. </field>
  74708. <doc>
  74709. <![CDATA[Partitioner effecting a total order by reading split points from
  74710. an externally generated source.]]>
  74711. </doc>
  74712. </class>
  74713. <!-- end class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  74714. </package>
  74715. <package name="org.apache.hadoop.mapreduce.lib.reduce">
  74716. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  74717. <class name="IntSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  74718. abstract="false"
  74719. static="false" final="false" visibility="public"
  74720. deprecated="not deprecated">
  74721. <constructor name="IntSumReducer"
  74722. static="false" final="false" visibility="public"
  74723. deprecated="not deprecated">
  74724. </constructor>
  74725. <method name="reduce"
  74726. abstract="false" native="false" synchronized="false"
  74727. static="false" final="false" visibility="public"
  74728. deprecated="not deprecated">
  74729. <param name="key" type="java.lang.Object"/>
  74730. <param name="values" type="java.lang.Iterable"/>
  74731. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  74732. <exception name="IOException" type="java.io.IOException"/>
  74733. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74734. </method>
  74735. </class>
  74736. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  74737. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  74738. <class name="LongSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  74739. abstract="false"
  74740. static="false" final="false" visibility="public"
  74741. deprecated="not deprecated">
  74742. <constructor name="LongSumReducer"
  74743. static="false" final="false" visibility="public"
  74744. deprecated="not deprecated">
  74745. </constructor>
  74746. <method name="reduce"
  74747. abstract="false" native="false" synchronized="false"
  74748. static="false" final="false" visibility="public"
  74749. deprecated="not deprecated">
  74750. <param name="key" type="java.lang.Object"/>
  74751. <param name="values" type="java.lang.Iterable"/>
  74752. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  74753. <exception name="IOException" type="java.io.IOException"/>
  74754. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74755. </method>
  74756. </class>
  74757. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  74758. </package>
  74759. <package name="org.apache.hadoop.mapreduce.security">
  74760. <!-- start class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  74761. <class name="SecureShuffleUtils" extends="java.lang.Object"
  74762. abstract="false"
  74763. static="false" final="false" visibility="public"
  74764. deprecated="not deprecated">
  74765. <constructor name="SecureShuffleUtils"
  74766. static="false" final="false" visibility="public"
  74767. deprecated="not deprecated">
  74768. </constructor>
  74769. <method name="generateHash" return="java.lang.String"
  74770. abstract="false" native="false" synchronized="false"
  74771. static="true" final="false" visibility="public"
  74772. deprecated="not deprecated">
  74773. <param name="msg" type="byte[]"/>
  74774. <param name="key" type="javax.crypto.SecretKey"/>
  74775. <doc>
  74776. <![CDATA[Base64 encoded hash of msg
  74777. @param msg]]>
  74778. </doc>
  74779. </method>
  74780. <method name="hashFromString" return="java.lang.String"
  74781. abstract="false" native="false" synchronized="false"
  74782. static="true" final="false" visibility="public"
  74783. deprecated="not deprecated">
  74784. <param name="enc_str" type="java.lang.String"/>
  74785. <param name="key" type="javax.crypto.SecretKey"/>
  74786. <exception name="IOException" type="java.io.IOException"/>
  74787. <doc>
  74788. <![CDATA[Aux util to calculate hash of a String
  74789. @param enc_str
  74790. @param key
  74791. @return Base64 encodedHash
  74792. @throws IOException]]>
  74793. </doc>
  74794. </method>
  74795. <method name="verifyReply"
  74796. abstract="false" native="false" synchronized="false"
  74797. static="true" final="false" visibility="public"
  74798. deprecated="not deprecated">
  74799. <param name="base64Hash" type="java.lang.String"/>
  74800. <param name="msg" type="java.lang.String"/>
  74801. <param name="key" type="javax.crypto.SecretKey"/>
  74802. <exception name="IOException" type="java.io.IOException"/>
  74803. <doc>
  74804. <![CDATA[verify that base64Hash is same as HMacHash(msg)
  74805. @param base64Hash (Base64 encoded hash)
  74806. @param msg
  74807. @throws IOException if not the same]]>
  74808. </doc>
  74809. </method>
  74810. <method name="buildMsgFrom" return="java.lang.String"
  74811. abstract="false" native="false" synchronized="false"
  74812. static="true" final="false" visibility="public"
  74813. deprecated="not deprecated">
  74814. <param name="url" type="java.net.URL"/>
  74815. <doc>
  74816. <![CDATA[Shuffle specific utils - build string for encoding from URL
  74817. @param url
  74818. @return string for encoding]]>
  74819. </doc>
  74820. </method>
  74821. <method name="buildMsgFrom" return="java.lang.String"
  74822. abstract="false" native="false" synchronized="false"
  74823. static="true" final="false" visibility="public"
  74824. deprecated="not deprecated">
  74825. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  74826. <doc>
  74827. <![CDATA[Shuffle specific utils - build string for encoding from URL
  74828. @param request
  74829. @return string for encoding]]>
  74830. </doc>
  74831. </method>
  74832. <method name="toHex" return="java.lang.String"
  74833. abstract="false" native="false" synchronized="false"
  74834. static="true" final="false" visibility="public"
  74835. deprecated="not deprecated">
  74836. <param name="ba" type="byte[]"/>
  74837. <doc>
  74838. <![CDATA[byte array to Hex String
  74839. @param ba
  74840. @return string with HEX value of the key]]>
  74841. </doc>
  74842. </method>
  74843. <field name="HTTP_HEADER_URL_HASH" type="java.lang.String"
  74844. transient="false" volatile="false"
  74845. static="true" final="true" visibility="public"
  74846. deprecated="not deprecated">
  74847. </field>
  74848. <field name="HTTP_HEADER_REPLY_URL_HASH" type="java.lang.String"
  74849. transient="false" volatile="false"
  74850. static="true" final="true" visibility="public"
  74851. deprecated="not deprecated">
  74852. </field>
  74853. <doc>
  74854. <![CDATA[utilities for generating kyes, hashes and verifying them for shuffle]]>
  74855. </doc>
  74856. </class>
  74857. <!-- end class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  74858. <!-- start class org.apache.hadoop.mapreduce.security.TokenCache -->
  74859. <class name="TokenCache" extends="java.lang.Object"
  74860. abstract="false"
  74861. static="false" final="false" visibility="public"
  74862. deprecated="not deprecated">
  74863. <constructor name="TokenCache"
  74864. static="false" final="false" visibility="public"
  74865. deprecated="not deprecated">
  74866. </constructor>
  74867. <method name="getSecretKey" return="byte[]"
  74868. abstract="false" native="false" synchronized="false"
  74869. static="true" final="false" visibility="public"
  74870. deprecated="not deprecated">
  74871. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  74872. <param name="alias" type="org.apache.hadoop.io.Text"/>
  74873. <doc>
  74874. <![CDATA[auxiliary method to get user's secret keys..
  74875. @param alias
  74876. @return secret key from the storage]]>
  74877. </doc>
  74878. </method>
  74879. <method name="obtainTokensForNamenodes"
  74880. abstract="false" native="false" synchronized="false"
  74881. static="true" final="false" visibility="public"
  74882. deprecated="not deprecated">
  74883. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  74884. <param name="ps" type="org.apache.hadoop.fs.Path[]"/>
  74885. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74886. <exception name="IOException" type="java.io.IOException"/>
  74887. <doc>
  74888. <![CDATA[Convenience method to obtain delegation tokens from namenodes
  74889. corresponding to the paths passed.
  74890. @param ps array of paths
  74891. @param conf configuration
  74892. @throws IOException]]>
  74893. </doc>
  74894. </method>
  74895. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  74896. abstract="false" native="false" synchronized="false"
  74897. static="true" final="false" visibility="public"
  74898. deprecated="not deprecated">
  74899. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  74900. <param name="namenode" type="java.lang.String"/>
  74901. <doc>
  74902. <![CDATA[@param namenode
  74903. @return delegation token]]>
  74904. </doc>
  74905. </method>
  74906. <method name="loadTokens" return="org.apache.hadoop.security.Credentials"
  74907. abstract="false" native="false" synchronized="false"
  74908. static="true" final="false" visibility="public"
  74909. deprecated="not deprecated">
  74910. <param name="jobTokenFile" type="java.lang.String"/>
  74911. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74912. <exception name="IOException" type="java.io.IOException"/>
  74913. <doc>
  74914. <![CDATA[load job token from a file
  74915. @param conf
  74916. @throws IOException]]>
  74917. </doc>
  74918. </method>
  74919. <method name="setJobToken"
  74920. abstract="false" native="false" synchronized="false"
  74921. static="true" final="false" visibility="public"
  74922. deprecated="not deprecated">
  74923. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  74924. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  74925. <doc>
  74926. <![CDATA[store job token
  74927. @param t]]>
  74928. </doc>
  74929. </method>
  74930. <method name="getJobToken" return="org.apache.hadoop.security.token.Token"
  74931. abstract="false" native="false" synchronized="false"
  74932. static="true" final="false" visibility="public"
  74933. deprecated="not deprecated">
  74934. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  74935. <doc>
  74936. <![CDATA[@return job token]]>
  74937. </doc>
  74938. </method>
  74939. <field name="JOB_TOKEN_HDFS_FILE" type="java.lang.String"
  74940. transient="false" volatile="false"
  74941. static="true" final="true" visibility="public"
  74942. deprecated="not deprecated">
  74943. <doc>
  74944. <![CDATA[file name used on HDFS for generated job token]]>
  74945. </doc>
  74946. </field>
  74947. <field name="JOB_TOKENS_FILENAME" type="java.lang.String"
  74948. transient="false" volatile="false"
  74949. static="true" final="true" visibility="public"
  74950. deprecated="not deprecated">
  74951. <doc>
  74952. <![CDATA[conf setting for job tokens cache file name]]>
  74953. </doc>
  74954. </field>
  74955. <doc>
  74956. <![CDATA[This class provides user facing APIs for transferring secrets from
  74957. the job client to the tasks.
  74958. The secrets can be stored just before submission of jobs and read during
  74959. the task execution.]]>
  74960. </doc>
  74961. </class>
  74962. <!-- end class org.apache.hadoop.mapreduce.security.TokenCache -->
  74963. </package>
  74964. <package name="org.apache.hadoop.mapreduce.security.token">
  74965. <!-- start class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  74966. <class name="DelegationTokenRenewal" extends="java.lang.Object"
  74967. abstract="false"
  74968. static="false" final="false" visibility="public"
  74969. deprecated="not deprecated">
  74970. <constructor name="DelegationTokenRenewal"
  74971. static="false" final="false" visibility="public"
  74972. deprecated="not deprecated">
  74973. </constructor>
  74974. <method name="registerDelegationTokensForRenewal"
  74975. abstract="false" native="false" synchronized="true"
  74976. static="true" final="false" visibility="public"
  74977. deprecated="not deprecated">
  74978. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  74979. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  74980. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  74981. <exception name="IOException" type="java.io.IOException"/>
  74982. </method>
  74983. <method name="close"
  74984. abstract="false" native="false" synchronized="false"
  74985. static="true" final="false" visibility="public"
  74986. deprecated="not deprecated">
  74987. <doc>
  74988. <![CDATA[removing all tokens renewals]]>
  74989. </doc>
  74990. </method>
  74991. <method name="removeDelegationTokenRenewalForJob"
  74992. abstract="false" native="false" synchronized="false"
  74993. static="true" final="false" visibility="public"
  74994. deprecated="not deprecated">
  74995. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  74996. <doc>
  74997. <![CDATA[removing DT for completed jobs
  74998. @param jobId]]>
  74999. </doc>
  75000. </method>
  75001. <field name="SCHEME" type="java.lang.String"
  75002. transient="false" volatile="false"
  75003. static="true" final="true" visibility="public"
  75004. deprecated="not deprecated">
  75005. </field>
  75006. </class>
  75007. <!-- end class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  75008. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  75009. <class name="JobTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  75010. abstract="false"
  75011. static="false" final="false" visibility="public"
  75012. deprecated="not deprecated">
  75013. <constructor name="JobTokenIdentifier"
  75014. static="false" final="false" visibility="public"
  75015. deprecated="not deprecated">
  75016. <doc>
  75017. <![CDATA[Default constructor]]>
  75018. </doc>
  75019. </constructor>
  75020. <constructor name="JobTokenIdentifier" type="org.apache.hadoop.io.Text"
  75021. static="false" final="false" visibility="public"
  75022. deprecated="not deprecated">
  75023. <doc>
  75024. <![CDATA[Create a job token identifier from a jobid
  75025. @param jobid the jobid to use]]>
  75026. </doc>
  75027. </constructor>
  75028. <method name="getKind" return="org.apache.hadoop.io.Text"
  75029. abstract="false" native="false" synchronized="false"
  75030. static="false" final="false" visibility="public"
  75031. deprecated="not deprecated">
  75032. <doc>
  75033. <![CDATA[{@inheritDoc}]]>
  75034. </doc>
  75035. </method>
  75036. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  75037. abstract="false" native="false" synchronized="false"
  75038. static="false" final="false" visibility="public"
  75039. deprecated="not deprecated">
  75040. <doc>
  75041. <![CDATA[{@inheritDoc}]]>
  75042. </doc>
  75043. </method>
  75044. <method name="getJobId" return="org.apache.hadoop.io.Text"
  75045. abstract="false" native="false" synchronized="false"
  75046. static="false" final="false" visibility="public"
  75047. deprecated="not deprecated">
  75048. <doc>
  75049. <![CDATA[Get the jobid
  75050. @return the jobid]]>
  75051. </doc>
  75052. </method>
  75053. <method name="readFields"
  75054. abstract="false" native="false" synchronized="false"
  75055. static="false" final="false" visibility="public"
  75056. deprecated="not deprecated">
  75057. <param name="in" type="java.io.DataInput"/>
  75058. <exception name="IOException" type="java.io.IOException"/>
  75059. <doc>
  75060. <![CDATA[{@inheritDoc}]]>
  75061. </doc>
  75062. </method>
  75063. <method name="write"
  75064. abstract="false" native="false" synchronized="false"
  75065. static="false" final="false" visibility="public"
  75066. deprecated="not deprecated">
  75067. <param name="out" type="java.io.DataOutput"/>
  75068. <exception name="IOException" type="java.io.IOException"/>
  75069. <doc>
  75070. <![CDATA[{@inheritDoc}]]>
  75071. </doc>
  75072. </method>
  75073. <field name="KIND_NAME" type="org.apache.hadoop.io.Text"
  75074. transient="false" volatile="false"
  75075. static="true" final="true" visibility="public"
  75076. deprecated="not deprecated">
  75077. </field>
  75078. <doc>
  75079. <![CDATA[The token identifier for job token]]>
  75080. </doc>
  75081. </class>
  75082. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  75083. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  75084. <class name="JobTokenIdentifier.Renewer" extends="org.apache.hadoop.security.token.Token.TrivialRenewer"
  75085. abstract="false"
  75086. static="true" final="false" visibility="public"
  75087. deprecated="not deprecated">
  75088. <constructor name="JobTokenIdentifier.Renewer"
  75089. static="false" final="false" visibility="public"
  75090. deprecated="not deprecated">
  75091. </constructor>
  75092. <method name="getKind" return="org.apache.hadoop.io.Text"
  75093. abstract="false" native="false" synchronized="false"
  75094. static="false" final="false" visibility="protected"
  75095. deprecated="not deprecated">
  75096. </method>
  75097. </class>
  75098. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  75099. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  75100. <class name="JobTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  75101. abstract="false"
  75102. static="false" final="false" visibility="public"
  75103. deprecated="not deprecated">
  75104. <constructor name="JobTokenSecretManager"
  75105. static="false" final="false" visibility="public"
  75106. deprecated="not deprecated">
  75107. <doc>
  75108. <![CDATA[Default constructor]]>
  75109. </doc>
  75110. </constructor>
  75111. <method name="createSecretKey" return="javax.crypto.SecretKey"
  75112. abstract="false" native="false" synchronized="false"
  75113. static="true" final="false" visibility="public"
  75114. deprecated="not deprecated">
  75115. <param name="key" type="byte[]"/>
  75116. <doc>
  75117. <![CDATA[Convert the byte[] to a secret key
  75118. @param key the byte[] to create the secret key from
  75119. @return the secret key]]>
  75120. </doc>
  75121. </method>
  75122. <method name="computeHash" return="byte[]"
  75123. abstract="false" native="false" synchronized="false"
  75124. static="true" final="false" visibility="public"
  75125. deprecated="not deprecated">
  75126. <param name="msg" type="byte[]"/>
  75127. <param name="key" type="javax.crypto.SecretKey"/>
  75128. <doc>
  75129. <![CDATA[Compute the HMAC hash of the message using the key
  75130. @param msg the message to hash
  75131. @param key the key to use
  75132. @return the computed hash]]>
  75133. </doc>
  75134. </method>
  75135. <method name="createPassword" return="byte[]"
  75136. abstract="false" native="false" synchronized="false"
  75137. static="false" final="false" visibility="public"
  75138. deprecated="not deprecated">
  75139. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  75140. <doc>
  75141. <![CDATA[Create a new password/secret for the given job token identifier.
  75142. @param identifier the job token identifier
  75143. @return token password/secret]]>
  75144. </doc>
  75145. </method>
  75146. <method name="addTokenForJob"
  75147. abstract="false" native="false" synchronized="false"
  75148. static="false" final="false" visibility="public"
  75149. deprecated="not deprecated">
  75150. <param name="jobId" type="java.lang.String"/>
  75151. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  75152. <doc>
  75153. <![CDATA[Add the job token of a job to cache
  75154. @param jobId the job that owns the token
  75155. @param token the job token]]>
  75156. </doc>
  75157. </method>
  75158. <method name="removeTokenForJob"
  75159. abstract="false" native="false" synchronized="false"
  75160. static="false" final="false" visibility="public"
  75161. deprecated="not deprecated">
  75162. <param name="jobId" type="java.lang.String"/>
  75163. <doc>
  75164. <![CDATA[Remove the cached job token of a job from cache
  75165. @param jobId the job whose token is to be removed]]>
  75166. </doc>
  75167. </method>
  75168. <method name="retrieveTokenSecret" return="javax.crypto.SecretKey"
  75169. abstract="false" native="false" synchronized="false"
  75170. static="false" final="false" visibility="public"
  75171. deprecated="not deprecated">
  75172. <param name="jobId" type="java.lang.String"/>
  75173. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  75174. <doc>
  75175. <![CDATA[Look up the token password/secret for the given jobId.
  75176. @param jobId the jobId to look up
  75177. @return token password/secret as SecretKey
  75178. @throws InvalidToken]]>
  75179. </doc>
  75180. </method>
  75181. <method name="retrievePassword" return="byte[]"
  75182. abstract="false" native="false" synchronized="false"
  75183. static="false" final="false" visibility="public"
  75184. deprecated="not deprecated">
  75185. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  75186. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  75187. <doc>
  75188. <![CDATA[Look up the token password/secret for the given job token identifier.
  75189. @param identifier the job token identifier to look up
  75190. @return token password/secret as byte[]
  75191. @throws InvalidToken]]>
  75192. </doc>
  75193. </method>
  75194. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"
  75195. abstract="false" native="false" synchronized="false"
  75196. static="false" final="false" visibility="public"
  75197. deprecated="not deprecated">
  75198. <doc>
  75199. <![CDATA[Create an empty job token identifier
  75200. @return a newly created empty job token identifier]]>
  75201. </doc>
  75202. </method>
  75203. <doc>
  75204. <![CDATA[SecretManager for job token. It can be used to cache generated job tokens.]]>
  75205. </doc>
  75206. </class>
  75207. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  75208. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  75209. <class name="JobTokenSelector" extends="java.lang.Object"
  75210. abstract="false"
  75211. static="false" final="false" visibility="public"
  75212. deprecated="not deprecated">
  75213. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  75214. <constructor name="JobTokenSelector"
  75215. static="false" final="false" visibility="public"
  75216. deprecated="not deprecated">
  75217. </constructor>
  75218. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  75219. abstract="false" native="false" synchronized="false"
  75220. static="false" final="false" visibility="public"
  75221. deprecated="not deprecated">
  75222. <param name="service" type="org.apache.hadoop.io.Text"/>
  75223. <param name="tokens" type="java.util.Collection"/>
  75224. </method>
  75225. <doc>
  75226. <![CDATA[Look through tokens to find the first job token that matches the service
  75227. and return it.]]>
  75228. </doc>
  75229. </class>
  75230. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  75231. </package>
  75232. <package name="org.apache.hadoop.mapreduce.security.token.delegation">
  75233. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  75234. <class name="DelegationTokenIdentifier" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  75235. abstract="false"
  75236. static="false" final="false" visibility="public"
  75237. deprecated="not deprecated">
  75238. <constructor name="DelegationTokenIdentifier"
  75239. static="false" final="false" visibility="public"
  75240. deprecated="not deprecated">
  75241. <doc>
  75242. <![CDATA[Create an empty delegation token identifier for reading into.]]>
  75243. </doc>
  75244. </constructor>
  75245. <constructor name="DelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  75246. static="false" final="false" visibility="public"
  75247. deprecated="not deprecated">
  75248. <doc>
  75249. <![CDATA[Create a new delegation token identifier
  75250. @param owner the effective username of the token owner
  75251. @param renewer the username of the renewer
  75252. @param realUser the real username of the token owner]]>
  75253. </doc>
  75254. </constructor>
  75255. <method name="getKind" return="org.apache.hadoop.io.Text"
  75256. abstract="false" native="false" synchronized="false"
  75257. static="false" final="false" visibility="public"
  75258. deprecated="not deprecated">
  75259. </method>
  75260. <field name="MAPREDUCE_DELEGATION_KIND" type="org.apache.hadoop.io.Text"
  75261. transient="false" volatile="false"
  75262. static="true" final="true" visibility="public"
  75263. deprecated="not deprecated">
  75264. </field>
  75265. <doc>
  75266. <![CDATA[A delegation token identifier that is specific to MapReduce.]]>
  75267. </doc>
  75268. </class>
  75269. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  75270. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  75271. <class name="DelegationTokenSecretManager" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager"
  75272. abstract="false"
  75273. static="false" final="false" visibility="public"
  75274. deprecated="not deprecated">
  75275. <constructor name="DelegationTokenSecretManager" type="long, long, long, long"
  75276. static="false" final="false" visibility="public"
  75277. deprecated="not deprecated">
  75278. <doc>
  75279. <![CDATA[Create a secret manager
  75280. @param delegationKeyUpdateInterval the number of seconds for rolling new
  75281. secret keys.
  75282. @param delegationTokenMaxLifetime the maximum lifetime of the delegation
  75283. tokens
  75284. @param delegationTokenRenewInterval how often the tokens must be renewed
  75285. @param delegationTokenRemoverScanInterval how often the tokens are scanned
  75286. for expired tokens]]>
  75287. </doc>
  75288. </constructor>
  75289. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier"
  75290. abstract="false" native="false" synchronized="false"
  75291. static="false" final="false" visibility="public"
  75292. deprecated="not deprecated">
  75293. </method>
  75294. <doc>
  75295. <![CDATA[A MapReduce specific delegation token secret manager.
  75296. The secret manager is responsible for generating and accepting the password
  75297. for each token.]]>
  75298. </doc>
  75299. </class>
  75300. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  75301. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  75302. <class name="DelegationTokenSelector" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector"
  75303. abstract="false"
  75304. static="false" final="false" visibility="public"
  75305. deprecated="not deprecated">
  75306. <constructor name="DelegationTokenSelector"
  75307. static="false" final="false" visibility="public"
  75308. deprecated="not deprecated">
  75309. </constructor>
  75310. <doc>
  75311. <![CDATA[A delegation token that is specialized for MapReduce]]>
  75312. </doc>
  75313. </class>
  75314. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  75315. </package>
  75316. <package name="org.apache.hadoop.mapreduce.server.jobtracker">
  75317. <!-- start class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  75318. <class name="TaskTracker" extends="java.lang.Object"
  75319. abstract="false"
  75320. static="false" final="false" visibility="public"
  75321. deprecated="not deprecated">
  75322. <constructor name="TaskTracker" type="java.lang.String"
  75323. static="false" final="false" visibility="public"
  75324. deprecated="not deprecated">
  75325. <doc>
  75326. <![CDATA[Create a new {@link TaskTracker}.
  75327. @param trackerName Unique identifier for the <code>TaskTracker</code>]]>
  75328. </doc>
  75329. </constructor>
  75330. <method name="getTrackerName" return="java.lang.String"
  75331. abstract="false" native="false" synchronized="false"
  75332. static="false" final="false" visibility="public"
  75333. deprecated="not deprecated">
  75334. <doc>
  75335. <![CDATA[Get the unique identifier for the {@link TaskTracker}
  75336. @return the unique identifier for the <code>TaskTracker</code>]]>
  75337. </doc>
  75338. </method>
  75339. <method name="getStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  75340. abstract="false" native="false" synchronized="false"
  75341. static="false" final="false" visibility="public"
  75342. deprecated="not deprecated">
  75343. <doc>
  75344. <![CDATA[Get the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  75345. @return the current <code>TaskTrackerStatus</code> of the
  75346. <code>TaskTracker</code>]]>
  75347. </doc>
  75348. </method>
  75349. <method name="setStatus"
  75350. abstract="false" native="false" synchronized="false"
  75351. static="false" final="false" visibility="public"
  75352. deprecated="not deprecated">
  75353. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  75354. <doc>
  75355. <![CDATA[Set the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  75356. @param status the current <code>TaskTrackerStatus</code> of the
  75357. <code>TaskTracker</code>]]>
  75358. </doc>
  75359. </method>
  75360. <method name="getAvailableSlots" return="int"
  75361. abstract="false" native="false" synchronized="false"
  75362. static="false" final="false" visibility="public"
  75363. deprecated="not deprecated">
  75364. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75365. <doc>
  75366. <![CDATA[Get the number of currently available slots on this tasktracker for the
  75367. given type of the task.
  75368. @param taskType the {@link TaskType} to check for number of available slots
  75369. @return the number of currently available slots for the given
  75370. <code>taskType</code>]]>
  75371. </doc>
  75372. </method>
  75373. <method name="getJobForFallowSlot" return="org.apache.hadoop.mapred.JobInProgress"
  75374. abstract="false" native="false" synchronized="false"
  75375. static="false" final="false" visibility="public"
  75376. deprecated="not deprecated">
  75377. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75378. <doc>
  75379. <![CDATA[Get the {@link JobInProgress} for which the fallow slot(s) are held.
  75380. @param taskType {@link TaskType} of the task
  75381. @return the task for which the fallow slot(s) are held,
  75382. <code>null</code> if there are no fallow slots]]>
  75383. </doc>
  75384. </method>
  75385. <method name="reserveSlots"
  75386. abstract="false" native="false" synchronized="false"
  75387. static="false" final="false" visibility="public"
  75388. deprecated="not deprecated">
  75389. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75390. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  75391. <param name="numSlots" type="int"/>
  75392. <doc>
  75393. <![CDATA[Reserve specified number of slots for a given <code>job</code>.
  75394. @param taskType {@link TaskType} of the task
  75395. @param job the job for which slots on this <code>TaskTracker</code>
  75396. are to be reserved
  75397. @param numSlots number of slots to be reserved]]>
  75398. </doc>
  75399. </method>
  75400. <method name="unreserveSlots"
  75401. abstract="false" native="false" synchronized="false"
  75402. static="false" final="false" visibility="public"
  75403. deprecated="not deprecated">
  75404. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  75405. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  75406. <doc>
  75407. <![CDATA[Free map slots on this <code>TaskTracker</code> which were reserved for
  75408. <code>taskType</code>.
  75409. @param taskType {@link TaskType} of the task
  75410. @param job job whose slots are being un-reserved]]>
  75411. </doc>
  75412. </method>
  75413. <method name="cancelAllReservations"
  75414. abstract="false" native="false" synchronized="false"
  75415. static="false" final="false" visibility="public"
  75416. deprecated="not deprecated">
  75417. <doc>
  75418. <![CDATA[Cleanup when the {@link TaskTracker} is declared as 'lost/blacklisted'
  75419. by the JobTracker.
  75420. The method assumes that the lock on the {@link JobTracker} is obtained
  75421. by the caller.]]>
  75422. </doc>
  75423. </method>
  75424. <doc>
  75425. <![CDATA[The representation of a single <code>TaskTracker</code> as seen by
  75426. the {@link JobTracker}.]]>
  75427. </doc>
  75428. </class>
  75429. <!-- end class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  75430. </package>
  75431. <package name="org.apache.hadoop.mapreduce.server.tasktracker">
  75432. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  75433. <class name="JVMInfo" extends="java.lang.Object"
  75434. abstract="false"
  75435. static="false" final="false" visibility="public"
  75436. deprecated="not deprecated">
  75437. <constructor name="JVMInfo" type="java.io.File, java.util.List"
  75438. static="false" final="false" visibility="public"
  75439. deprecated="not deprecated">
  75440. </constructor>
  75441. <method name="getLogLocation" return="java.io.File"
  75442. abstract="false" native="false" synchronized="false"
  75443. static="false" final="false" visibility="public"
  75444. deprecated="not deprecated">
  75445. </method>
  75446. <method name="getAllAttempts" return="java.util.List"
  75447. abstract="false" native="false" synchronized="false"
  75448. static="false" final="false" visibility="public"
  75449. deprecated="not deprecated">
  75450. </method>
  75451. </class>
  75452. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  75453. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  75454. <class name="Localizer" extends="java.lang.Object"
  75455. abstract="false"
  75456. static="false" final="false" visibility="public"
  75457. deprecated="not deprecated">
  75458. <constructor name="Localizer" type="org.apache.hadoop.fs.FileSystem, java.lang.String[]"
  75459. static="false" final="false" visibility="public"
  75460. deprecated="not deprecated">
  75461. <doc>
  75462. <![CDATA[Create a Localizer instance
  75463. @param fileSys
  75464. @param lDirs]]>
  75465. </doc>
  75466. </constructor>
  75467. <method name="initializeUserDirs"
  75468. abstract="false" native="false" synchronized="false"
  75469. static="false" final="false" visibility="public"
  75470. deprecated="not deprecated">
  75471. <param name="user" type="java.lang.String"/>
  75472. <exception name="IOException" type="java.io.IOException"/>
  75473. <doc>
  75474. <![CDATA[Initialize the local directories for a particular user on this TT. This
  75475. involves creation and setting permissions of the following directories
  75476. <ul>
  75477. <li>$mapred.local.dir/taskTracker/$user</li>
  75478. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  75479. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  75480. </ul>
  75481. @param user
  75482. @throws IOException]]>
  75483. </doc>
  75484. </method>
  75485. <method name="initializeAttemptDirs"
  75486. abstract="false" native="false" synchronized="false"
  75487. static="false" final="false" visibility="public"
  75488. deprecated="not deprecated">
  75489. <param name="user" type="java.lang.String"/>
  75490. <param name="jobId" type="java.lang.String"/>
  75491. <param name="attemptId" type="java.lang.String"/>
  75492. <exception name="IOException" type="java.io.IOException"/>
  75493. <doc>
  75494. <![CDATA[Create taskDirs on all the disks. Otherwise, in some cases, like when
  75495. LinuxTaskController is in use, child might wish to balance load across
  75496. disks but cannot itself create attempt directory because of the fact that
  75497. job directory is writable only by the TT.
  75498. @param user
  75499. @param jobId
  75500. @param attemptId
  75501. @throws IOException]]>
  75502. </doc>
  75503. </method>
  75504. <doc>
  75505. <![CDATA[NOTE: This class is internal only and not intended for users!!]]>
  75506. </doc>
  75507. </class>
  75508. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  75509. </package>
  75510. <package name="org.apache.hadoop.mapreduce.server.tasktracker.userlogs">
  75511. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  75512. <class name="DeleteJobEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75513. abstract="false"
  75514. static="false" final="false" visibility="public"
  75515. deprecated="not deprecated">
  75516. <constructor name="DeleteJobEvent" type="org.apache.hadoop.mapreduce.JobID"
  75517. static="false" final="false" visibility="public"
  75518. deprecated="not deprecated">
  75519. <doc>
  75520. <![CDATA[Create the event to delete job log directory.
  75521. @param jobid
  75522. The {@link JobID} whose logs should be deleted.]]>
  75523. </doc>
  75524. </constructor>
  75525. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  75526. abstract="false" native="false" synchronized="false"
  75527. static="false" final="false" visibility="public"
  75528. deprecated="not deprecated">
  75529. <doc>
  75530. <![CDATA[Get the jobid.
  75531. @return object of {@link JobID}]]>
  75532. </doc>
  75533. </method>
  75534. <doc>
  75535. <![CDATA[This is an {@link UserLogEvent} sent when job logs should be deleted.]]>
  75536. </doc>
  75537. </class>
  75538. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  75539. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  75540. <class name="JobCompletedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75541. abstract="false"
  75542. static="false" final="false" visibility="public"
  75543. deprecated="not deprecated">
  75544. <constructor name="JobCompletedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int"
  75545. static="false" final="false" visibility="public"
  75546. deprecated="not deprecated">
  75547. <doc>
  75548. <![CDATA[Create the event for job completion.
  75549. @param jobid
  75550. The completed {@link JobID} .
  75551. @param jobCompletionTime
  75552. The job completion time.
  75553. @param retainHours
  75554. The number of hours for which the job logs should be retained]]>
  75555. </doc>
  75556. </constructor>
  75557. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  75558. abstract="false" native="false" synchronized="false"
  75559. static="false" final="false" visibility="public"
  75560. deprecated="not deprecated">
  75561. <doc>
  75562. <![CDATA[Get the job id.
  75563. @return object of {@link JobID}]]>
  75564. </doc>
  75565. </method>
  75566. <method name="getJobCompletionTime" return="long"
  75567. abstract="false" native="false" synchronized="false"
  75568. static="false" final="false" visibility="public"
  75569. deprecated="not deprecated">
  75570. <doc>
  75571. <![CDATA[Get the job completion time-stamp in milli-seconds.
  75572. @return job completion time.]]>
  75573. </doc>
  75574. </method>
  75575. <method name="getRetainHours" return="int"
  75576. abstract="false" native="false" synchronized="false"
  75577. static="false" final="false" visibility="public"
  75578. deprecated="not deprecated">
  75579. <doc>
  75580. <![CDATA[Get the number of hours for which job logs should be retained.
  75581. @return retainHours]]>
  75582. </doc>
  75583. </method>
  75584. <doc>
  75585. <![CDATA[This is an {@link UserLogEvent} sent when the job completes]]>
  75586. </doc>
  75587. </class>
  75588. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  75589. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  75590. <class name="JobStartedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75591. abstract="false"
  75592. static="false" final="false" visibility="public"
  75593. deprecated="not deprecated">
  75594. <constructor name="JobStartedEvent" type="org.apache.hadoop.mapreduce.JobID"
  75595. static="false" final="false" visibility="public"
  75596. deprecated="not deprecated">
  75597. <doc>
  75598. <![CDATA[Create the event to inform the job has started.
  75599. @param jobid
  75600. The {@link JobID} which started]]>
  75601. </doc>
  75602. </constructor>
  75603. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  75604. abstract="false" native="false" synchronized="false"
  75605. static="false" final="false" visibility="public"
  75606. deprecated="not deprecated">
  75607. <doc>
  75608. <![CDATA[Get the job id.
  75609. @return object of {@link JobID}]]>
  75610. </doc>
  75611. </method>
  75612. <doc>
  75613. <![CDATA[This is an {@link UserLogEvent} sent when the job starts.]]>
  75614. </doc>
  75615. </class>
  75616. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  75617. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  75618. <class name="JvmFinishedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  75619. abstract="false"
  75620. static="false" final="false" visibility="public"
  75621. deprecated="not deprecated">
  75622. <constructor name="JvmFinishedEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  75623. static="false" final="false" visibility="public"
  75624. deprecated="not deprecated">
  75625. <doc>
  75626. <![CDATA[Create the event to inform that the jvm has finished.
  75627. @param jvmInfo
  75628. The finished {@link JVMInfo}]]>
  75629. </doc>
  75630. </constructor>
  75631. <method name="getJvmInfo" return="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  75632. abstract="false" native="false" synchronized="false"
  75633. static="false" final="false" visibility="public"
  75634. deprecated="not deprecated">
  75635. <doc>
  75636. <![CDATA[Get the jvm info.
  75637. @return object of {@link JVMInfo}]]>
  75638. </doc>
  75639. </method>
  75640. <doc>
  75641. <![CDATA[This is an {@link UserLogEvent} sent when the jvm finishes.]]>
  75642. </doc>
  75643. </class>
  75644. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  75645. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  75646. <class name="UserLogEvent" extends="java.lang.Object"
  75647. abstract="true"
  75648. static="false" final="false" visibility="public"
  75649. deprecated="not deprecated">
  75650. <constructor name="UserLogEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75651. static="false" final="false" visibility="protected"
  75652. deprecated="not deprecated">
  75653. </constructor>
  75654. <method name="getEventType" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75655. abstract="false" native="false" synchronized="false"
  75656. static="false" final="false" visibility="public"
  75657. deprecated="not deprecated">
  75658. <doc>
  75659. <![CDATA[Return the {@link EventType}.
  75660. @return the {@link EventType}.]]>
  75661. </doc>
  75662. </method>
  75663. <doc>
  75664. <![CDATA[A directive from the various components of {@link TaskTracker} to the
  75665. {@link UserLogManager} to inform about an event.]]>
  75666. </doc>
  75667. </class>
  75668. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  75669. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  75670. <class name="UserLogEvent.EventType" extends="java.lang.Enum"
  75671. abstract="false"
  75672. static="true" final="true" visibility="public"
  75673. deprecated="not deprecated">
  75674. <method name="values" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType[]"
  75675. abstract="false" native="false" synchronized="false"
  75676. static="true" final="false" visibility="public"
  75677. deprecated="not deprecated">
  75678. </method>
  75679. <method name="valueOf" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75680. abstract="false" native="false" synchronized="false"
  75681. static="true" final="false" visibility="public"
  75682. deprecated="not deprecated">
  75683. <param name="name" type="java.lang.String"/>
  75684. </method>
  75685. <field name="JVM_FINISHED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75686. transient="false" volatile="false"
  75687. static="true" final="true" visibility="public"
  75688. deprecated="not deprecated">
  75689. </field>
  75690. <field name="JOB_STARTED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75691. transient="false" volatile="false"
  75692. static="true" final="true" visibility="public"
  75693. deprecated="not deprecated">
  75694. </field>
  75695. <field name="JOB_COMPLETED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75696. transient="false" volatile="false"
  75697. static="true" final="true" visibility="public"
  75698. deprecated="not deprecated">
  75699. </field>
  75700. <field name="DELETE_JOB" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  75701. transient="false" volatile="false"
  75702. static="true" final="true" visibility="public"
  75703. deprecated="not deprecated">
  75704. </field>
  75705. </class>
  75706. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  75707. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  75708. <class name="UserLogManager" extends="java.lang.Object"
  75709. abstract="false"
  75710. static="false" final="false" visibility="public"
  75711. deprecated="not deprecated">
  75712. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  75713. static="false" final="false" visibility="public"
  75714. deprecated="not deprecated">
  75715. <exception name="IOException" type="java.io.IOException"/>
  75716. <doc>
  75717. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  75718. It should be explicitly started using {@link #start()} to start functioning
  75719. @param conf The {@link Configuration}
  75720. @param taskController The task controller to delete the log files
  75721. @throws IOException]]>
  75722. </doc>
  75723. </constructor>
  75724. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration"
  75725. static="false" final="false" visibility="public"
  75726. deprecated="not deprecated">
  75727. <exception name="IOException" type="java.io.IOException"/>
  75728. <doc>
  75729. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  75730. This constructor is there mainly for unit tests.
  75731. @param conf The {@link Configuration}
  75732. @throws IOException]]>
  75733. </doc>
  75734. </constructor>
  75735. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  75736. abstract="false" native="false" synchronized="false"
  75737. static="false" final="false" visibility="public"
  75738. deprecated="not deprecated">
  75739. <doc>
  75740. <![CDATA[Get the taskController for deleting logs.
  75741. @return the TaskController]]>
  75742. </doc>
  75743. </method>
  75744. <method name="start"
  75745. abstract="false" native="false" synchronized="false"
  75746. static="false" final="false" visibility="public"
  75747. deprecated="not deprecated">
  75748. <doc>
  75749. <![CDATA[Starts managing the logs]]>
  75750. </doc>
  75751. </method>
  75752. <method name="monitor"
  75753. abstract="false" native="false" synchronized="false"
  75754. static="false" final="false" visibility="protected"
  75755. deprecated="not deprecated">
  75756. <exception name="Exception" type="java.lang.Exception"/>
  75757. </method>
  75758. <method name="processEvent"
  75759. abstract="false" native="false" synchronized="false"
  75760. static="false" final="false" visibility="protected"
  75761. deprecated="not deprecated">
  75762. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  75763. <exception name="IOException" type="java.io.IOException"/>
  75764. </method>
  75765. <method name="clearOldUserLogs"
  75766. abstract="false" native="false" synchronized="false"
  75767. static="false" final="false" visibility="public"
  75768. deprecated="not deprecated">
  75769. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75770. <exception name="IOException" type="java.io.IOException"/>
  75771. <doc>
  75772. <![CDATA[Called during TaskTracker restart/re-init.
  75773. @param conf
  75774. TT's conf
  75775. @throws IOException]]>
  75776. </doc>
  75777. </method>
  75778. <method name="addLogEvent"
  75779. abstract="false" native="false" synchronized="false"
  75780. static="false" final="false" visibility="public"
  75781. deprecated="not deprecated">
  75782. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  75783. <doc>
  75784. <![CDATA[Add the {@link UserLogEvent} for processing.
  75785. @param event]]>
  75786. </doc>
  75787. </method>
  75788. <method name="getUserLogCleaner" return="org.apache.hadoop.mapred.UserLogCleaner"
  75789. abstract="false" native="false" synchronized="false"
  75790. static="false" final="false" visibility="public"
  75791. deprecated="not deprecated">
  75792. <doc>
  75793. <![CDATA[Get {@link UserLogCleaner}.
  75794. This method is called only from unit tests.
  75795. @return {@link UserLogCleaner}]]>
  75796. </doc>
  75797. </method>
  75798. <doc>
  75799. <![CDATA[This manages user logs on the {@link TaskTracker}.]]>
  75800. </doc>
  75801. </class>
  75802. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  75803. </package>
  75804. <package name="org.apache.hadoop.mapreduce.split">
  75805. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit -->
  75806. <class name="JobSplit" extends="java.lang.Object"
  75807. abstract="false"
  75808. static="false" final="false" visibility="public"
  75809. deprecated="not deprecated">
  75810. <constructor name="JobSplit"
  75811. static="false" final="false" visibility="public"
  75812. deprecated="not deprecated">
  75813. </constructor>
  75814. <field name="EMPTY_TASK_SPLIT" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo"
  75815. transient="false" volatile="false"
  75816. static="true" final="true" visibility="public"
  75817. deprecated="not deprecated">
  75818. </field>
  75819. <doc>
  75820. <![CDATA[This class groups the fundamental classes associated with
  75821. reading/writing splits. The split information is divided into
  75822. two parts based on the consumer of the information. The two
  75823. parts are the split meta information, and the raw split
  75824. information. The first part is consumed by the JobTracker to
  75825. create the tasks' locality data structures. The second part is
  75826. used by the maps at runtime to know what to do!
  75827. These pieces of information are written to two separate files.
  75828. The metainformation file is slurped by the JobTracker during
  75829. job initialization. A map task gets the meta information during
  75830. the launch and it reads the raw split bytes directly from the
  75831. file.]]>
  75832. </doc>
  75833. </class>
  75834. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit -->
  75835. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  75836. <class name="JobSplit.SplitMetaInfo" extends="java.lang.Object"
  75837. abstract="false"
  75838. static="true" final="false" visibility="public"
  75839. deprecated="not deprecated">
  75840. <implements name="org.apache.hadoop.io.Writable"/>
  75841. <constructor name="JobSplit.SplitMetaInfo"
  75842. static="false" final="false" visibility="public"
  75843. deprecated="not deprecated">
  75844. </constructor>
  75845. <constructor name="JobSplit.SplitMetaInfo" type="java.lang.String[], long, long"
  75846. static="false" final="false" visibility="public"
  75847. deprecated="not deprecated">
  75848. </constructor>
  75849. <constructor name="JobSplit.SplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  75850. static="false" final="false" visibility="public"
  75851. deprecated="not deprecated">
  75852. <exception name="IOException" type="java.io.IOException"/>
  75853. </constructor>
  75854. <method name="getLocations" return="java.lang.String[]"
  75855. abstract="false" native="false" synchronized="false"
  75856. static="false" final="false" visibility="public"
  75857. deprecated="not deprecated">
  75858. </method>
  75859. <method name="getStartOffset" return="long"
  75860. abstract="false" native="false" synchronized="false"
  75861. static="false" final="false" visibility="public"
  75862. deprecated="not deprecated">
  75863. </method>
  75864. <method name="getInputDataLength" return="long"
  75865. abstract="false" native="false" synchronized="false"
  75866. static="false" final="false" visibility="public"
  75867. deprecated="not deprecated">
  75868. </method>
  75869. <method name="setInputDataLocations"
  75870. abstract="false" native="false" synchronized="false"
  75871. static="false" final="false" visibility="public"
  75872. deprecated="not deprecated">
  75873. <param name="locations" type="java.lang.String[]"/>
  75874. </method>
  75875. <method name="setInputDataLength"
  75876. abstract="false" native="false" synchronized="false"
  75877. static="false" final="false" visibility="public"
  75878. deprecated="not deprecated">
  75879. <param name="length" type="long"/>
  75880. </method>
  75881. <method name="readFields"
  75882. abstract="false" native="false" synchronized="false"
  75883. static="false" final="false" visibility="public"
  75884. deprecated="not deprecated">
  75885. <param name="in" type="java.io.DataInput"/>
  75886. <exception name="IOException" type="java.io.IOException"/>
  75887. </method>
  75888. <method name="write"
  75889. abstract="false" native="false" synchronized="false"
  75890. static="false" final="false" visibility="public"
  75891. deprecated="not deprecated">
  75892. <param name="out" type="java.io.DataOutput"/>
  75893. <exception name="IOException" type="java.io.IOException"/>
  75894. </method>
  75895. <method name="toString" return="java.lang.String"
  75896. abstract="false" native="false" synchronized="false"
  75897. static="false" final="false" visibility="public"
  75898. deprecated="not deprecated">
  75899. </method>
  75900. <doc>
  75901. <![CDATA[This represents the meta information about the task split.
  75902. The main fields are
  75903. - start offset in actual split
  75904. - data length that will be processed in this split
  75905. - hosts on which this split is local]]>
  75906. </doc>
  75907. </class>
  75908. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  75909. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  75910. <class name="JobSplit.TaskSplitIndex" extends="java.lang.Object"
  75911. abstract="false"
  75912. static="true" final="false" visibility="public"
  75913. deprecated="not deprecated">
  75914. <constructor name="JobSplit.TaskSplitIndex"
  75915. static="false" final="false" visibility="public"
  75916. deprecated="not deprecated">
  75917. </constructor>
  75918. <constructor name="JobSplit.TaskSplitIndex" type="java.lang.String, long"
  75919. static="false" final="false" visibility="public"
  75920. deprecated="not deprecated">
  75921. </constructor>
  75922. <method name="getStartOffset" return="long"
  75923. abstract="false" native="false" synchronized="false"
  75924. static="false" final="false" visibility="public"
  75925. deprecated="not deprecated">
  75926. </method>
  75927. <method name="getSplitLocation" return="java.lang.String"
  75928. abstract="false" native="false" synchronized="false"
  75929. static="false" final="false" visibility="public"
  75930. deprecated="not deprecated">
  75931. </method>
  75932. <method name="readFields"
  75933. abstract="false" native="false" synchronized="false"
  75934. static="false" final="false" visibility="public"
  75935. deprecated="not deprecated">
  75936. <param name="in" type="java.io.DataInput"/>
  75937. <exception name="IOException" type="java.io.IOException"/>
  75938. </method>
  75939. <method name="write"
  75940. abstract="false" native="false" synchronized="false"
  75941. static="false" final="false" visibility="public"
  75942. deprecated="not deprecated">
  75943. <param name="out" type="java.io.DataOutput"/>
  75944. <exception name="IOException" type="java.io.IOException"/>
  75945. </method>
  75946. <doc>
  75947. <![CDATA[This represents the meta information about the task split that the
  75948. task gets]]>
  75949. </doc>
  75950. </class>
  75951. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  75952. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  75953. <class name="JobSplit.TaskSplitMetaInfo" extends="java.lang.Object"
  75954. abstract="false"
  75955. static="true" final="false" visibility="public"
  75956. deprecated="not deprecated">
  75957. <constructor name="JobSplit.TaskSplitMetaInfo"
  75958. static="false" final="false" visibility="public"
  75959. deprecated="not deprecated">
  75960. </constructor>
  75961. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex, java.lang.String[], long"
  75962. static="false" final="false" visibility="public"
  75963. deprecated="not deprecated">
  75964. </constructor>
  75965. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  75966. static="false" final="false" visibility="public"
  75967. deprecated="not deprecated">
  75968. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75969. <exception name="IOException" type="java.io.IOException"/>
  75970. </constructor>
  75971. <constructor name="JobSplit.TaskSplitMetaInfo" type="java.lang.String[], long, long"
  75972. static="false" final="false" visibility="public"
  75973. deprecated="not deprecated">
  75974. </constructor>
  75975. <method name="getSplitIndex" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex"
  75976. abstract="false" native="false" synchronized="false"
  75977. static="false" final="false" visibility="public"
  75978. deprecated="not deprecated">
  75979. </method>
  75980. <method name="getSplitLocation" return="java.lang.String"
  75981. abstract="false" native="false" synchronized="false"
  75982. static="false" final="false" visibility="public"
  75983. deprecated="not deprecated">
  75984. </method>
  75985. <method name="getInputDataLength" return="long"
  75986. abstract="false" native="false" synchronized="false"
  75987. static="false" final="false" visibility="public"
  75988. deprecated="not deprecated">
  75989. </method>
  75990. <method name="getLocations" return="java.lang.String[]"
  75991. abstract="false" native="false" synchronized="false"
  75992. static="false" final="false" visibility="public"
  75993. deprecated="not deprecated">
  75994. </method>
  75995. <method name="getStartOffset" return="long"
  75996. abstract="false" native="false" synchronized="false"
  75997. static="false" final="false" visibility="public"
  75998. deprecated="not deprecated">
  75999. </method>
  76000. <doc>
  76001. <![CDATA[This represents the meta information about the task split that the
  76002. JobTracker creates]]>
  76003. </doc>
  76004. </class>
  76005. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  76006. <!-- start class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  76007. <class name="JobSplitWriter" extends="java.lang.Object"
  76008. abstract="false"
  76009. static="false" final="false" visibility="public"
  76010. deprecated="not deprecated">
  76011. <constructor name="JobSplitWriter"
  76012. static="false" final="false" visibility="public"
  76013. deprecated="not deprecated">
  76014. </constructor>
  76015. <method name="createSplitFiles"
  76016. abstract="false" native="false" synchronized="false"
  76017. static="true" final="false" visibility="public"
  76018. deprecated="not deprecated">
  76019. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76020. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76021. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76022. <param name="splits" type="java.util.List"/>
  76023. <exception name="IOException" type="java.io.IOException"/>
  76024. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76025. </method>
  76026. <method name="createSplitFiles"
  76027. abstract="false" native="false" synchronized="false"
  76028. static="true" final="false" visibility="public"
  76029. deprecated="not deprecated">
  76030. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76031. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76032. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76033. <param name="splits" type="org.apache.hadoop.mapreduce.InputSplit[]"/>
  76034. <exception name="IOException" type="java.io.IOException"/>
  76035. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76036. </method>
  76037. <method name="createSplitFiles"
  76038. abstract="false" native="false" synchronized="false"
  76039. static="true" final="false" visibility="public"
  76040. deprecated="not deprecated">
  76041. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76042. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76043. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76044. <param name="splits" type="org.apache.hadoop.mapred.InputSplit[]"/>
  76045. <exception name="IOException" type="java.io.IOException"/>
  76046. </method>
  76047. <doc>
  76048. <![CDATA[The class that is used by the Job clients to write splits (both the meta
  76049. and the raw bytes parts)]]>
  76050. </doc>
  76051. </class>
  76052. <!-- end class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  76053. <!-- start class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  76054. <class name="SplitMetaInfoReader" extends="java.lang.Object"
  76055. abstract="false"
  76056. static="false" final="false" visibility="public"
  76057. deprecated="not deprecated">
  76058. <constructor name="SplitMetaInfoReader"
  76059. static="false" final="false" visibility="public"
  76060. deprecated="not deprecated">
  76061. </constructor>
  76062. <method name="readSplitMetaInfo" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo[]"
  76063. abstract="false" native="false" synchronized="false"
  76064. static="true" final="false" visibility="public"
  76065. deprecated="not deprecated">
  76066. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  76067. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  76068. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76069. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  76070. <exception name="IOException" type="java.io.IOException"/>
  76071. </method>
  76072. <doc>
  76073. <![CDATA[A (internal) utility that reads the split meta info and creates
  76074. split meta info objects]]>
  76075. </doc>
  76076. </class>
  76077. <!-- end class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  76078. </package>
  76079. <package name="org.apache.hadoop.tools">
  76080. <!-- start class org.apache.hadoop.tools.DistCh -->
  76081. <class name="DistCh" extends="org.apache.hadoop.tools.DistTool"
  76082. abstract="false"
  76083. static="false" final="false" visibility="public"
  76084. deprecated="not deprecated">
  76085. <method name="run" return="int"
  76086. abstract="false" native="false" synchronized="false"
  76087. static="false" final="false" visibility="public"
  76088. deprecated="not deprecated">
  76089. <param name="args" type="java.lang.String[]"/>
  76090. <exception name="Exception" type="java.lang.Exception"/>
  76091. <doc>
  76092. <![CDATA[This is the main driver for recursively changing files properties.]]>
  76093. </doc>
  76094. </method>
  76095. <method name="main"
  76096. abstract="false" native="false" synchronized="false"
  76097. static="true" final="false" visibility="public"
  76098. deprecated="not deprecated">
  76099. <param name="args" type="java.lang.String[]"/>
  76100. <exception name="Exception" type="java.lang.Exception"/>
  76101. </method>
  76102. <doc>
  76103. <![CDATA[A Map-reduce program to recursively change files properties
  76104. such as owner, group and permission.]]>
  76105. </doc>
  76106. </class>
  76107. <!-- end class org.apache.hadoop.tools.DistCh -->
  76108. <!-- start class org.apache.hadoop.tools.DistCp -->
  76109. <class name="DistCp" extends="java.lang.Object"
  76110. abstract="false"
  76111. static="false" final="false" visibility="public"
  76112. deprecated="not deprecated">
  76113. <implements name="org.apache.hadoop.util.Tool"/>
  76114. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  76115. static="false" final="false" visibility="public"
  76116. deprecated="not deprecated">
  76117. </constructor>
  76118. <method name="setConf"
  76119. abstract="false" native="false" synchronized="false"
  76120. static="false" final="false" visibility="public"
  76121. deprecated="not deprecated">
  76122. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76123. </method>
  76124. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76125. abstract="false" native="false" synchronized="false"
  76126. static="false" final="false" visibility="public"
  76127. deprecated="not deprecated">
  76128. </method>
  76129. <method name="copy"
  76130. abstract="false" native="false" synchronized="false"
  76131. static="true" final="false" visibility="public"
  76132. deprecated="not deprecated">
  76133. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76134. <param name="srcPath" type="java.lang.String"/>
  76135. <param name="destPath" type="java.lang.String"/>
  76136. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  76137. <param name="srcAsList" type="boolean"/>
  76138. <param name="ignoreReadFailures" type="boolean"/>
  76139. <exception name="IOException" type="java.io.IOException"/>
  76140. </method>
  76141. <method name="run" return="int"
  76142. abstract="false" native="false" synchronized="false"
  76143. static="false" final="false" visibility="public"
  76144. deprecated="not deprecated">
  76145. <param name="args" type="java.lang.String[]"/>
  76146. <doc>
  76147. <![CDATA[This is the main driver for recursively copying directories
  76148. across file systems. It takes at least two cmdline parameters. A source
  76149. URL and a destination URL. It then essentially does an "ls -lR" on the
  76150. source URL, and writes the output in a round-robin manner to all the map
  76151. input files. The mapper actually copies the files allotted to it. The
  76152. reduce is empty.]]>
  76153. </doc>
  76154. </method>
  76155. <method name="main"
  76156. abstract="false" native="false" synchronized="false"
  76157. static="true" final="false" visibility="public"
  76158. deprecated="not deprecated">
  76159. <param name="args" type="java.lang.String[]"/>
  76160. <exception name="Exception" type="java.lang.Exception"/>
  76161. </method>
  76162. <method name="getRandomId" return="java.lang.String"
  76163. abstract="false" native="false" synchronized="false"
  76164. static="true" final="false" visibility="public"
  76165. deprecated="not deprecated">
  76166. </method>
  76167. <field name="LOG" type="org.apache.commons.logging.Log"
  76168. transient="false" volatile="false"
  76169. static="true" final="true" visibility="public"
  76170. deprecated="not deprecated">
  76171. </field>
  76172. <doc>
  76173. <![CDATA[A Map-reduce program to recursively copy directories between
  76174. different file-systems.]]>
  76175. </doc>
  76176. </class>
  76177. <!-- end class org.apache.hadoop.tools.DistCp -->
  76178. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  76179. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  76180. abstract="false"
  76181. static="true" final="false" visibility="public"
  76182. deprecated="not deprecated">
  76183. <field name="ERROR_CODE" type="int"
  76184. transient="false" volatile="false"
  76185. static="true" final="true" visibility="public"
  76186. deprecated="not deprecated">
  76187. <doc>
  76188. <![CDATA[Error code for this exception]]>
  76189. </doc>
  76190. </field>
  76191. <doc>
  76192. <![CDATA[An exception class for duplicated source files.]]>
  76193. </doc>
  76194. </class>
  76195. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  76196. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  76197. <class name="HadoopArchives" extends="java.lang.Object"
  76198. abstract="false"
  76199. static="false" final="false" visibility="public"
  76200. deprecated="not deprecated">
  76201. <implements name="org.apache.hadoop.util.Tool"/>
  76202. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  76203. static="false" final="false" visibility="public"
  76204. deprecated="not deprecated">
  76205. </constructor>
  76206. <method name="setConf"
  76207. abstract="false" native="false" synchronized="false"
  76208. static="false" final="false" visibility="public"
  76209. deprecated="not deprecated">
  76210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76211. </method>
  76212. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76213. abstract="false" native="false" synchronized="false"
  76214. static="false" final="false" visibility="public"
  76215. deprecated="not deprecated">
  76216. </method>
  76217. <method name="run" return="int"
  76218. abstract="false" native="false" synchronized="false"
  76219. static="false" final="false" visibility="public"
  76220. deprecated="not deprecated">
  76221. <param name="args" type="java.lang.String[]"/>
  76222. <exception name="Exception" type="java.lang.Exception"/>
  76223. <doc>
  76224. <![CDATA[the main driver for creating the archives
  76225. it takes at least three command line parameters. The parent path,
  76226. The src and the dest. It does an lsr on the source paths.
  76227. The mapper created archuves and the reducer creates
  76228. the archive index.]]>
  76229. </doc>
  76230. </method>
  76231. <method name="main"
  76232. abstract="false" native="false" synchronized="false"
  76233. static="true" final="false" visibility="public"
  76234. deprecated="not deprecated">
  76235. <param name="args" type="java.lang.String[]"/>
  76236. <doc>
  76237. <![CDATA[the main functions]]>
  76238. </doc>
  76239. </method>
  76240. <field name="VERSION" type="int"
  76241. transient="false" volatile="false"
  76242. static="true" final="true" visibility="public"
  76243. deprecated="not deprecated">
  76244. </field>
  76245. <doc>
  76246. <![CDATA[a archive creation utility.
  76247. This class provides methods that can be used
  76248. to create hadoop archives. For understanding of
  76249. Hadoop archives look at {@link HarFileSystem}.]]>
  76250. </doc>
  76251. </class>
  76252. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  76253. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  76254. <class name="Logalyzer" extends="java.lang.Object"
  76255. abstract="false"
  76256. static="false" final="false" visibility="public"
  76257. deprecated="not deprecated">
  76258. <constructor name="Logalyzer"
  76259. static="false" final="false" visibility="public"
  76260. deprecated="not deprecated">
  76261. </constructor>
  76262. <method name="doArchive"
  76263. abstract="false" native="false" synchronized="false"
  76264. static="false" final="false" visibility="public"
  76265. deprecated="not deprecated">
  76266. <param name="logListURI" type="java.lang.String"/>
  76267. <param name="archiveDirectory" type="java.lang.String"/>
  76268. <exception name="IOException" type="java.io.IOException"/>
  76269. <doc>
  76270. <![CDATA[doArchive: Workhorse function to archive log-files.
  76271. @param logListURI : The uri which will serve list of log-files to archive.
  76272. @param archiveDirectory : The directory to store archived logfiles.
  76273. @throws IOException]]>
  76274. </doc>
  76275. </method>
  76276. <method name="doAnalyze"
  76277. abstract="false" native="false" synchronized="false"
  76278. static="false" final="false" visibility="public"
  76279. deprecated="not deprecated">
  76280. <param name="inputFilesDirectory" type="java.lang.String"/>
  76281. <param name="outputDirectory" type="java.lang.String"/>
  76282. <param name="grepPattern" type="java.lang.String"/>
  76283. <param name="sortColumns" type="java.lang.String"/>
  76284. <param name="columnSeparator" type="java.lang.String"/>
  76285. <exception name="IOException" type="java.io.IOException"/>
  76286. <doc>
  76287. <![CDATA[doAnalyze:
  76288. @param inputFilesDirectory : Directory containing the files to be analyzed.
  76289. @param outputDirectory : Directory to store analysis (output).
  76290. @param grepPattern : Pattern to *grep* for.
  76291. @param sortColumns : Sort specification for output.
  76292. @param columnSeparator : Column separator.
  76293. @throws IOException]]>
  76294. </doc>
  76295. </method>
  76296. <method name="main"
  76297. abstract="false" native="false" synchronized="false"
  76298. static="true" final="false" visibility="public"
  76299. deprecated="not deprecated">
  76300. <param name="args" type="java.lang.String[]"/>
  76301. </method>
  76302. <doc>
  76303. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  76304. <p>
  76305. This tool supports archiving and anaylzing (sort/grep) of log-files.
  76306. It takes as input
  76307. a) Input uri which will serve uris of the logs to be archived.
  76308. b) Output directory (not mandatory).
  76309. b) Directory on dfs to archive the logs.
  76310. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  76311. Usage:
  76312. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  76313. <p>]]>
  76314. </doc>
  76315. </class>
  76316. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  76317. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  76318. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  76319. abstract="false"
  76320. static="true" final="false" visibility="public"
  76321. deprecated="not deprecated">
  76322. <implements name="org.apache.hadoop.conf.Configurable"/>
  76323. <constructor name="Logalyzer.LogComparator"
  76324. static="false" final="false" visibility="public"
  76325. deprecated="not deprecated">
  76326. </constructor>
  76327. <method name="setConf"
  76328. abstract="false" native="false" synchronized="false"
  76329. static="false" final="false" visibility="public"
  76330. deprecated="not deprecated">
  76331. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76332. </method>
  76333. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76334. abstract="false" native="false" synchronized="false"
  76335. static="false" final="false" visibility="public"
  76336. deprecated="not deprecated">
  76337. </method>
  76338. <method name="compare" return="int"
  76339. abstract="false" native="false" synchronized="false"
  76340. static="false" final="false" visibility="public"
  76341. deprecated="not deprecated">
  76342. <param name="b1" type="byte[]"/>
  76343. <param name="s1" type="int"/>
  76344. <param name="l1" type="int"/>
  76345. <param name="b2" type="byte[]"/>
  76346. <param name="s2" type="int"/>
  76347. <param name="l2" type="int"/>
  76348. </method>
  76349. <doc>
  76350. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  76351. </doc>
  76352. </class>
  76353. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  76354. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  76355. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  76356. abstract="false"
  76357. static="true" final="false" visibility="public"
  76358. deprecated="not deprecated">
  76359. <implements name="org.apache.hadoop.mapred.Mapper"/>
  76360. <constructor name="Logalyzer.LogRegexMapper"
  76361. static="false" final="false" visibility="public"
  76362. deprecated="not deprecated">
  76363. </constructor>
  76364. <method name="configure"
  76365. abstract="false" native="false" synchronized="false"
  76366. static="false" final="false" visibility="public"
  76367. deprecated="not deprecated">
  76368. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  76369. </method>
  76370. <method name="map"
  76371. abstract="false" native="false" synchronized="false"
  76372. static="false" final="false" visibility="public"
  76373. deprecated="not deprecated">
  76374. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  76375. <param name="value" type="org.apache.hadoop.io.Text"/>
  76376. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  76377. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  76378. <exception name="IOException" type="java.io.IOException"/>
  76379. </method>
  76380. <doc>
  76381. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  76382. </doc>
  76383. </class>
  76384. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  76385. </package>
  76386. <package name="org.apache.hadoop.tools.rumen">
  76387. <!-- start class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  76388. <class name="AbstractClusterStory" extends="java.lang.Object"
  76389. abstract="true"
  76390. static="false" final="false" visibility="public"
  76391. deprecated="not deprecated">
  76392. <implements name="org.apache.hadoop.tools.rumen.ClusterStory"/>
  76393. <constructor name="AbstractClusterStory"
  76394. static="false" final="false" visibility="public"
  76395. deprecated="not deprecated">
  76396. </constructor>
  76397. <method name="getMachines" return="java.util.Set"
  76398. abstract="false" native="false" synchronized="false"
  76399. static="false" final="false" visibility="public"
  76400. deprecated="not deprecated">
  76401. </method>
  76402. <method name="getRacks" return="java.util.Set"
  76403. abstract="false" native="false" synchronized="true"
  76404. static="false" final="false" visibility="public"
  76405. deprecated="not deprecated">
  76406. </method>
  76407. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  76408. abstract="false" native="false" synchronized="true"
  76409. static="false" final="false" visibility="public"
  76410. deprecated="not deprecated">
  76411. <param name="expected" type="int"/>
  76412. <param name="random" type="java.util.Random"/>
  76413. </method>
  76414. <method name="buildMachineNodeMap"
  76415. abstract="false" native="false" synchronized="true"
  76416. static="false" final="false" visibility="protected"
  76417. deprecated="not deprecated">
  76418. </method>
  76419. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  76420. abstract="false" native="false" synchronized="false"
  76421. static="false" final="false" visibility="public"
  76422. deprecated="not deprecated">
  76423. <param name="name" type="java.lang.String"/>
  76424. </method>
  76425. <method name="distance" return="int"
  76426. abstract="false" native="false" synchronized="false"
  76427. static="false" final="false" visibility="public"
  76428. deprecated="not deprecated">
  76429. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  76430. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  76431. </method>
  76432. <method name="buildRackNodeMap"
  76433. abstract="false" native="false" synchronized="true"
  76434. static="false" final="false" visibility="protected"
  76435. deprecated="not deprecated">
  76436. </method>
  76437. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  76438. abstract="false" native="false" synchronized="false"
  76439. static="false" final="false" visibility="public"
  76440. deprecated="not deprecated">
  76441. <param name="name" type="java.lang.String"/>
  76442. </method>
  76443. <method name="getMaximumDistance" return="int"
  76444. abstract="false" native="false" synchronized="false"
  76445. static="false" final="false" visibility="public"
  76446. deprecated="not deprecated">
  76447. </method>
  76448. <method name="parseTopologyTree"
  76449. abstract="false" native="false" synchronized="true"
  76450. static="false" final="false" visibility="protected"
  76451. deprecated="not deprecated">
  76452. </method>
  76453. <field name="machineNodes" type="java.util.Set"
  76454. transient="false" volatile="false"
  76455. static="false" final="false" visibility="protected"
  76456. deprecated="not deprecated">
  76457. </field>
  76458. <field name="rackNodes" type="java.util.Set"
  76459. transient="false" volatile="false"
  76460. static="false" final="false" visibility="protected"
  76461. deprecated="not deprecated">
  76462. </field>
  76463. <field name="mNodesFlattened" type="org.apache.hadoop.tools.rumen.MachineNode[]"
  76464. transient="false" volatile="false"
  76465. static="false" final="false" visibility="protected"
  76466. deprecated="not deprecated">
  76467. </field>
  76468. <field name="mNodeMap" type="java.util.Map"
  76469. transient="false" volatile="false"
  76470. static="false" final="false" visibility="protected"
  76471. deprecated="not deprecated">
  76472. </field>
  76473. <field name="rNodeMap" type="java.util.Map"
  76474. transient="false" volatile="false"
  76475. static="false" final="false" visibility="protected"
  76476. deprecated="not deprecated">
  76477. </field>
  76478. <field name="maximumDistance" type="int"
  76479. transient="false" volatile="false"
  76480. static="false" final="false" visibility="protected"
  76481. deprecated="not deprecated">
  76482. </field>
  76483. <doc>
  76484. <![CDATA[{@link AbstractClusterStory} provides a partial implementation of
  76485. {@link ClusterStory} by parsing the topology tree.]]>
  76486. </doc>
  76487. </class>
  76488. <!-- end class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  76489. <!-- start class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  76490. <class name="CDFPiecewiseLinearRandomGenerator" extends="org.apache.hadoop.tools.rumen.CDFRandomGenerator"
  76491. abstract="false"
  76492. static="false" final="false" visibility="public"
  76493. deprecated="not deprecated">
  76494. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  76495. static="false" final="false" visibility="public"
  76496. deprecated="not deprecated">
  76497. <doc>
  76498. <![CDATA[@param cdf
  76499. builds a CDFRandomValue engine around this
  76500. {@link LoggedDiscreteCDF}, with a defaultly seeded RNG]]>
  76501. </doc>
  76502. </constructor>
  76503. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF, long"
  76504. static="false" final="false" visibility="public"
  76505. deprecated="not deprecated">
  76506. <doc>
  76507. <![CDATA[@param cdf
  76508. builds a CDFRandomValue engine around this
  76509. {@link LoggedDiscreteCDF}, with an explicitly seeded RNG
  76510. @param seed
  76511. the random number generator seed]]>
  76512. </doc>
  76513. </constructor>
  76514. <method name="valueAt" return="long"
  76515. abstract="false" native="false" synchronized="false"
  76516. static="false" final="false" visibility="public"
  76517. deprecated="not deprecated">
  76518. <param name="probability" type="double"/>
  76519. <doc>
  76520. <![CDATA[TODO This code assumes that the empirical minimum resp. maximum is the
  76521. epistomological minimum resp. maximum. This is probably okay for the
  76522. minimum, because that likely represents a task where everything went well,
  76523. but for the maximum we may want to develop a way of extrapolating past the
  76524. maximum.]]>
  76525. </doc>
  76526. </method>
  76527. </class>
  76528. <!-- end class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  76529. <!-- start class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  76530. <class name="CDFRandomGenerator" extends="java.lang.Object"
  76531. abstract="true"
  76532. static="false" final="false" visibility="public"
  76533. deprecated="not deprecated">
  76534. <method name="initializeTables"
  76535. abstract="false" native="false" synchronized="false"
  76536. static="false" final="true" visibility="protected"
  76537. deprecated="not deprecated">
  76538. <param name="cdf" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"/>
  76539. </method>
  76540. <method name="floorIndex" return="int"
  76541. abstract="false" native="false" synchronized="false"
  76542. static="false" final="false" visibility="protected"
  76543. deprecated="not deprecated">
  76544. <param name="probe" type="double"/>
  76545. </method>
  76546. <method name="getRankingAt" return="double"
  76547. abstract="false" native="false" synchronized="false"
  76548. static="false" final="false" visibility="protected"
  76549. deprecated="not deprecated">
  76550. <param name="index" type="int"/>
  76551. </method>
  76552. <method name="getDatumAt" return="long"
  76553. abstract="false" native="false" synchronized="false"
  76554. static="false" final="false" visibility="protected"
  76555. deprecated="not deprecated">
  76556. <param name="index" type="int"/>
  76557. </method>
  76558. <method name="randomValue" return="long"
  76559. abstract="false" native="false" synchronized="false"
  76560. static="false" final="false" visibility="public"
  76561. deprecated="not deprecated">
  76562. </method>
  76563. <method name="valueAt" return="long"
  76564. abstract="true" native="false" synchronized="false"
  76565. static="false" final="false" visibility="public"
  76566. deprecated="not deprecated">
  76567. <param name="probability" type="double"/>
  76568. </method>
  76569. <doc>
  76570. <![CDATA[An instance of this class generates random values that confirm to the
  76571. embedded {@link LoggedDiscreteCDF} . The discrete CDF is a pointwise
  76572. approximation of the "real" CDF. We therefore have a choice of interpolation
  76573. rules.
  76574. A concrete subclass of this abstract class will implement valueAt(double)
  76575. using a class-dependent interpolation rule.]]>
  76576. </doc>
  76577. </class>
  76578. <!-- end class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  76579. <!-- start interface org.apache.hadoop.tools.rumen.ClusterStory -->
  76580. <interface name="ClusterStory" abstract="true"
  76581. static="false" final="false" visibility="public"
  76582. deprecated="not deprecated">
  76583. <method name="getMachines" return="java.util.Set"
  76584. abstract="false" native="false" synchronized="false"
  76585. static="false" final="false" visibility="public"
  76586. deprecated="not deprecated">
  76587. <doc>
  76588. <![CDATA[Get all machines of the cluster.
  76589. @return A read-only set that contains all machines of the cluster.]]>
  76590. </doc>
  76591. </method>
  76592. <method name="getRacks" return="java.util.Set"
  76593. abstract="false" native="false" synchronized="false"
  76594. static="false" final="false" visibility="public"
  76595. deprecated="not deprecated">
  76596. <doc>
  76597. <![CDATA[Get all racks of the cluster.
  76598. @return A read-only set that contains all racks of the cluster.]]>
  76599. </doc>
  76600. </method>
  76601. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  76602. abstract="false" native="false" synchronized="false"
  76603. static="false" final="false" visibility="public"
  76604. deprecated="not deprecated">
  76605. <doc>
  76606. <![CDATA[Get the cluster topology tree.
  76607. @return The root node of the cluster topology tree.]]>
  76608. </doc>
  76609. </method>
  76610. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  76611. abstract="false" native="false" synchronized="false"
  76612. static="false" final="false" visibility="public"
  76613. deprecated="not deprecated">
  76614. <param name="expected" type="int"/>
  76615. <param name="random" type="java.util.Random"/>
  76616. <doc>
  76617. <![CDATA[Select a random set of machines.
  76618. @param expected The expected sample size.
  76619. @param random Random number generator to use.
  76620. @return An array of up to expected number of {@link MachineNode}s.]]>
  76621. </doc>
  76622. </method>
  76623. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  76624. abstract="false" native="false" synchronized="false"
  76625. static="false" final="false" visibility="public"
  76626. deprecated="not deprecated">
  76627. <param name="name" type="java.lang.String"/>
  76628. <doc>
  76629. <![CDATA[Get {@link MachineNode} by its host name.
  76630. @return The {@link MachineNode} with the same name. Or null if not found.]]>
  76631. </doc>
  76632. </method>
  76633. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  76634. abstract="false" native="false" synchronized="false"
  76635. static="false" final="false" visibility="public"
  76636. deprecated="not deprecated">
  76637. <param name="name" type="java.lang.String"/>
  76638. <doc>
  76639. <![CDATA[Get {@link RackNode} by its name.
  76640. @return The {@link RackNode} with the same name. Or null if not found.]]>
  76641. </doc>
  76642. </method>
  76643. <method name="distance" return="int"
  76644. abstract="false" native="false" synchronized="false"
  76645. static="false" final="false" visibility="public"
  76646. deprecated="not deprecated">
  76647. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  76648. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  76649. <doc>
  76650. <![CDATA[Determine the distance between two {@link Node}s. Currently, the distance
  76651. is loosely defined as the length of the longer path for either a or b to
  76652. reach their common ancestor.
  76653. @param a
  76654. @param b
  76655. @return The distance between {@link Node} a and {@link Node} b.]]>
  76656. </doc>
  76657. </method>
  76658. <method name="getMaximumDistance" return="int"
  76659. abstract="false" native="false" synchronized="false"
  76660. static="false" final="false" visibility="public"
  76661. deprecated="not deprecated">
  76662. <doc>
  76663. <![CDATA[Get the maximum distance possible between any two nodes.
  76664. @return the maximum distance possible between any two nodes.]]>
  76665. </doc>
  76666. </method>
  76667. <doc>
  76668. <![CDATA[{@link ClusterStory} represents all configurations of a MapReduce cluster,
  76669. including nodes, network topology, and slot configurations.]]>
  76670. </doc>
  76671. </interface>
  76672. <!-- end interface org.apache.hadoop.tools.rumen.ClusterStory -->
  76673. <!-- start class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  76674. <class name="ClusterTopologyReader" extends="java.lang.Object"
  76675. abstract="false"
  76676. static="false" final="false" visibility="public"
  76677. deprecated="not deprecated">
  76678. <constructor name="ClusterTopologyReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  76679. static="false" final="false" visibility="public"
  76680. deprecated="not deprecated">
  76681. <exception name="IOException" type="java.io.IOException"/>
  76682. <doc>
  76683. <![CDATA[Constructor.
  76684. @param path
  76685. Path to the JSON-encoded topology file, possibly compressed.
  76686. @param conf
  76687. @throws IOException]]>
  76688. </doc>
  76689. </constructor>
  76690. <constructor name="ClusterTopologyReader" type="java.io.InputStream"
  76691. static="false" final="false" visibility="public"
  76692. deprecated="not deprecated">
  76693. <exception name="IOException" type="java.io.IOException"/>
  76694. <doc>
  76695. <![CDATA[Constructor.
  76696. @param input
  76697. The input stream for the JSON-encoded topology data.]]>
  76698. </doc>
  76699. </constructor>
  76700. <method name="get" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  76701. abstract="false" native="false" synchronized="false"
  76702. static="false" final="false" visibility="public"
  76703. deprecated="not deprecated">
  76704. <doc>
  76705. <![CDATA[Get the {@link LoggedNetworkTopology} object.
  76706. @return The {@link LoggedNetworkTopology} object parsed from the input.]]>
  76707. </doc>
  76708. </method>
  76709. <doc>
  76710. <![CDATA[Reading JSON-encoded cluster topology and produce the parsed
  76711. {@link LoggedNetworkTopology} object.]]>
  76712. </doc>
  76713. </class>
  76714. <!-- end class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  76715. <!-- start interface org.apache.hadoop.tools.rumen.DeepCompare -->
  76716. <interface name="DeepCompare" abstract="true"
  76717. static="false" final="false" visibility="public"
  76718. deprecated="not deprecated">
  76719. <method name="deepCompare"
  76720. abstract="false" native="false" synchronized="false"
  76721. static="false" final="false" visibility="public"
  76722. deprecated="not deprecated">
  76723. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  76724. <param name="myLocation" type="org.apache.hadoop.tools.rumen.TreePath"/>
  76725. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  76726. <doc>
  76727. <![CDATA[@param other
  76728. the other comparand that's being compared to me
  76729. @param myLocation
  76730. the path that got to me. In the root, myLocation is null. To
  76731. process the scalar {@code foo} field of the root we will make a
  76732. recursive call with a {@link TreePath} whose {@code fieldName} is
  76733. {@code "bar"} and whose {@code index} is -1 and whose {@code
  76734. parent} is {@code null}. To process the plural {@code bar} field
  76735. of the root we will make a recursive call with a {@link TreePath}
  76736. whose fieldName is {@code "foo"} and whose {@code index} is -1 and
  76737. whose {@code parent} is also {@code null}.
  76738. @throws DeepInequalityException]]>
  76739. </doc>
  76740. </method>
  76741. <doc>
  76742. <![CDATA[Classes that implement this interface can deep-compare [for equality only,
  76743. not order] with another instance. They do a deep compare. If there is any
  76744. semantically significant difference, an implementer throws an Exception to be
  76745. thrown with a chain of causes describing the chain of field references and
  76746. indices that get you to the miscompared point.]]>
  76747. </doc>
  76748. </interface>
  76749. <!-- end interface org.apache.hadoop.tools.rumen.DeepCompare -->
  76750. <!-- start class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  76751. <class name="DeepInequalityException" extends="java.lang.Exception"
  76752. abstract="false"
  76753. static="false" final="false" visibility="public"
  76754. deprecated="not deprecated">
  76755. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath, java.lang.Throwable"
  76756. static="false" final="false" visibility="public"
  76757. deprecated="not deprecated">
  76758. <doc>
  76759. <![CDATA[@param message
  76760. an exception message
  76761. @param path
  76762. the path that gets from the root to the inequality
  76763. This is the constructor that I intend to have used for this
  76764. exception.]]>
  76765. </doc>
  76766. </constructor>
  76767. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath"
  76768. static="false" final="false" visibility="public"
  76769. deprecated="not deprecated">
  76770. <doc>
  76771. <![CDATA[@param message
  76772. an exception message
  76773. @param path
  76774. the path that gets from the root to the inequality
  76775. This is the constructor that I intend to have used for this
  76776. exception.]]>
  76777. </doc>
  76778. </constructor>
  76779. <doc>
  76780. <![CDATA[We use this exception class in the unit test, and we do a deep comparison
  76781. when we run the]]>
  76782. </doc>
  76783. </class>
  76784. <!-- end class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  76785. <!-- start class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  76786. <class name="DefaultInputDemuxer" extends="java.lang.Object"
  76787. abstract="false"
  76788. static="false" final="false" visibility="public"
  76789. deprecated="not deprecated">
  76790. <implements name="org.apache.hadoop.tools.rumen.InputDemuxer"/>
  76791. <constructor name="DefaultInputDemuxer"
  76792. static="false" final="false" visibility="public"
  76793. deprecated="not deprecated">
  76794. </constructor>
  76795. <method name="bindTo"
  76796. abstract="false" native="false" synchronized="false"
  76797. static="false" final="false" visibility="public"
  76798. deprecated="not deprecated">
  76799. <param name="path" type="org.apache.hadoop.fs.Path"/>
  76800. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76801. <exception name="IOException" type="java.io.IOException"/>
  76802. </method>
  76803. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  76804. abstract="false" native="false" synchronized="false"
  76805. static="false" final="false" visibility="public"
  76806. deprecated="not deprecated">
  76807. <exception name="IOException" type="java.io.IOException"/>
  76808. </method>
  76809. <method name="close"
  76810. abstract="false" native="false" synchronized="false"
  76811. static="false" final="false" visibility="public"
  76812. deprecated="not deprecated">
  76813. <exception name="IOException" type="java.io.IOException"/>
  76814. </method>
  76815. <doc>
  76816. <![CDATA[{@link DefaultInputDemuxer} acts as a pass-through demuxer. It just opens
  76817. each file and returns back the input stream. If the input is compressed, it
  76818. would return a decompression stream.]]>
  76819. </doc>
  76820. </class>
  76821. <!-- end class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  76822. <!-- start class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  76823. <class name="DefaultOutputter" extends="java.lang.Object"
  76824. abstract="false"
  76825. static="false" final="false" visibility="public"
  76826. deprecated="not deprecated">
  76827. <implements name="org.apache.hadoop.tools.rumen.Outputter"/>
  76828. <constructor name="DefaultOutputter"
  76829. static="false" final="false" visibility="public"
  76830. deprecated="not deprecated">
  76831. </constructor>
  76832. <method name="init"
  76833. abstract="false" native="false" synchronized="false"
  76834. static="false" final="false" visibility="public"
  76835. deprecated="not deprecated">
  76836. <param name="path" type="org.apache.hadoop.fs.Path"/>
  76837. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76838. <exception name="IOException" type="java.io.IOException"/>
  76839. </method>
  76840. <method name="output"
  76841. abstract="false" native="false" synchronized="false"
  76842. static="false" final="false" visibility="public"
  76843. deprecated="not deprecated">
  76844. <param name="object" type="java.lang.Object"/>
  76845. <exception name="IOException" type="java.io.IOException"/>
  76846. </method>
  76847. <method name="close"
  76848. abstract="false" native="false" synchronized="false"
  76849. static="false" final="false" visibility="public"
  76850. deprecated="not deprecated">
  76851. <exception name="IOException" type="java.io.IOException"/>
  76852. </method>
  76853. <doc>
  76854. <![CDATA[The default {@link Outputter} that outputs to a plain file. Compression
  76855. will be applied if the path has the right suffix.]]>
  76856. </doc>
  76857. </class>
  76858. <!-- end class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  76859. <!-- start class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  76860. <class name="DeskewedJobTraceReader" extends="java.lang.Object"
  76861. abstract="false"
  76862. static="false" final="false" visibility="public"
  76863. deprecated="not deprecated">
  76864. <implements name="java.io.Closeable"/>
  76865. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader, int, boolean"
  76866. static="false" final="false" visibility="public"
  76867. deprecated="not deprecated">
  76868. <exception name="IOException" type="java.io.IOException"/>
  76869. <doc>
  76870. <![CDATA[Constructor.
  76871. @param reader
  76872. the {@link JobTraceReader} that's being protected
  76873. @param skewBufferLength
  76874. [the number of late jobs that can preced a later out-of-order
  76875. earlier job
  76876. @throws IOException]]>
  76877. </doc>
  76878. </constructor>
  76879. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader"
  76880. static="false" final="false" visibility="public"
  76881. deprecated="not deprecated">
  76882. <exception name="IOException" type="java.io.IOException"/>
  76883. </constructor>
  76884. <method name="close"
  76885. abstract="false" native="false" synchronized="false"
  76886. static="false" final="false" visibility="public"
  76887. deprecated="not deprecated">
  76888. <exception name="IOException" type="java.io.IOException"/>
  76889. </method>
  76890. </class>
  76891. <!-- end class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  76892. <!-- start class org.apache.hadoop.tools.rumen.EventType -->
  76893. <class name="EventType" extends="java.lang.Enum"
  76894. abstract="false"
  76895. static="false" final="true" visibility="public"
  76896. deprecated="not deprecated">
  76897. <method name="values" return="org.apache.hadoop.tools.rumen.EventType[]"
  76898. abstract="false" native="false" synchronized="false"
  76899. static="true" final="false" visibility="public"
  76900. deprecated="not deprecated">
  76901. </method>
  76902. <method name="valueOf" return="org.apache.hadoop.tools.rumen.EventType"
  76903. abstract="false" native="false" synchronized="false"
  76904. static="true" final="false" visibility="public"
  76905. deprecated="not deprecated">
  76906. <param name="name" type="java.lang.String"/>
  76907. </method>
  76908. <field name="JOB_SUBMITTED" type="org.apache.hadoop.tools.rumen.EventType"
  76909. transient="false" volatile="false"
  76910. static="true" final="true" visibility="public"
  76911. deprecated="not deprecated">
  76912. </field>
  76913. <field name="JOB_INITED" type="org.apache.hadoop.tools.rumen.EventType"
  76914. transient="false" volatile="false"
  76915. static="true" final="true" visibility="public"
  76916. deprecated="not deprecated">
  76917. </field>
  76918. <field name="JOB_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  76919. transient="false" volatile="false"
  76920. static="true" final="true" visibility="public"
  76921. deprecated="not deprecated">
  76922. </field>
  76923. <field name="JOB_PRIORITY_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  76924. transient="false" volatile="false"
  76925. static="true" final="true" visibility="public"
  76926. deprecated="not deprecated">
  76927. </field>
  76928. <field name="JOB_STATUS_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  76929. transient="false" volatile="false"
  76930. static="true" final="true" visibility="public"
  76931. deprecated="not deprecated">
  76932. </field>
  76933. <field name="JOB_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  76934. transient="false" volatile="false"
  76935. static="true" final="true" visibility="public"
  76936. deprecated="not deprecated">
  76937. </field>
  76938. <field name="JOB_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  76939. transient="false" volatile="false"
  76940. static="true" final="true" visibility="public"
  76941. deprecated="not deprecated">
  76942. </field>
  76943. <field name="JOB_INFO_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  76944. transient="false" volatile="false"
  76945. static="true" final="true" visibility="public"
  76946. deprecated="not deprecated">
  76947. </field>
  76948. <field name="TASK_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  76949. transient="false" volatile="false"
  76950. static="true" final="true" visibility="public"
  76951. deprecated="not deprecated">
  76952. </field>
  76953. <field name="TASK_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  76954. transient="false" volatile="false"
  76955. static="true" final="true" visibility="public"
  76956. deprecated="not deprecated">
  76957. </field>
  76958. <field name="TASK_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  76959. transient="false" volatile="false"
  76960. static="true" final="true" visibility="public"
  76961. deprecated="not deprecated">
  76962. </field>
  76963. <field name="TASK_UPDATED" type="org.apache.hadoop.tools.rumen.EventType"
  76964. transient="false" volatile="false"
  76965. static="true" final="true" visibility="public"
  76966. deprecated="not deprecated">
  76967. </field>
  76968. <field name="MAP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  76969. transient="false" volatile="false"
  76970. static="true" final="true" visibility="public"
  76971. deprecated="not deprecated">
  76972. </field>
  76973. <field name="MAP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  76974. transient="false" volatile="false"
  76975. static="true" final="true" visibility="public"
  76976. deprecated="not deprecated">
  76977. </field>
  76978. <field name="MAP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  76979. transient="false" volatile="false"
  76980. static="true" final="true" visibility="public"
  76981. deprecated="not deprecated">
  76982. </field>
  76983. <field name="MAP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  76984. transient="false" volatile="false"
  76985. static="true" final="true" visibility="public"
  76986. deprecated="not deprecated">
  76987. </field>
  76988. <field name="REDUCE_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  76989. transient="false" volatile="false"
  76990. static="true" final="true" visibility="public"
  76991. deprecated="not deprecated">
  76992. </field>
  76993. <field name="REDUCE_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  76994. transient="false" volatile="false"
  76995. static="true" final="true" visibility="public"
  76996. deprecated="not deprecated">
  76997. </field>
  76998. <field name="REDUCE_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  76999. transient="false" volatile="false"
  77000. static="true" final="true" visibility="public"
  77001. deprecated="not deprecated">
  77002. </field>
  77003. <field name="REDUCE_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  77004. transient="false" volatile="false"
  77005. static="true" final="true" visibility="public"
  77006. deprecated="not deprecated">
  77007. </field>
  77008. <field name="SETUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  77009. transient="false" volatile="false"
  77010. static="true" final="true" visibility="public"
  77011. deprecated="not deprecated">
  77012. </field>
  77013. <field name="SETUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  77014. transient="false" volatile="false"
  77015. static="true" final="true" visibility="public"
  77016. deprecated="not deprecated">
  77017. </field>
  77018. <field name="SETUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  77019. transient="false" volatile="false"
  77020. static="true" final="true" visibility="public"
  77021. deprecated="not deprecated">
  77022. </field>
  77023. <field name="SETUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  77024. transient="false" volatile="false"
  77025. static="true" final="true" visibility="public"
  77026. deprecated="not deprecated">
  77027. </field>
  77028. <field name="CLEANUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  77029. transient="false" volatile="false"
  77030. static="true" final="true" visibility="public"
  77031. deprecated="not deprecated">
  77032. </field>
  77033. <field name="CLEANUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  77034. transient="false" volatile="false"
  77035. static="true" final="true" visibility="public"
  77036. deprecated="not deprecated">
  77037. </field>
  77038. <field name="CLEANUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  77039. transient="false" volatile="false"
  77040. static="true" final="true" visibility="public"
  77041. deprecated="not deprecated">
  77042. </field>
  77043. <field name="CLEANUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  77044. transient="false" volatile="false"
  77045. static="true" final="true" visibility="public"
  77046. deprecated="not deprecated">
  77047. </field>
  77048. </class>
  77049. <!-- end class org.apache.hadoop.tools.rumen.EventType -->
  77050. <!-- start class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  77051. <class name="Hadoop20JHParser" extends="java.lang.Object"
  77052. abstract="false"
  77053. static="false" final="false" visibility="public"
  77054. deprecated="not deprecated">
  77055. <implements name="org.apache.hadoop.tools.rumen.JobHistoryParser"/>
  77056. <constructor name="Hadoop20JHParser" type="java.io.InputStream"
  77057. static="false" final="false" visibility="public"
  77058. deprecated="not deprecated">
  77059. <exception name="IOException" type="java.io.IOException"/>
  77060. </constructor>
  77061. <method name="canParse" return="boolean"
  77062. abstract="false" native="false" synchronized="false"
  77063. static="true" final="false" visibility="public"
  77064. deprecated="not deprecated">
  77065. <param name="input" type="java.io.InputStream"/>
  77066. <exception name="IOException" type="java.io.IOException"/>
  77067. <doc>
  77068. <![CDATA[Can this parser parse the input?
  77069. @param input
  77070. @return Whether this parser can parse the input.
  77071. @throws IOException
  77072. We will deem a stream to be a good 0.20 job history stream if the
  77073. first line is exactly "Meta VERSION=\"1\" ."]]>
  77074. </doc>
  77075. </method>
  77076. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  77077. abstract="false" native="false" synchronized="false"
  77078. static="false" final="false" visibility="public"
  77079. deprecated="not deprecated">
  77080. </method>
  77081. <method name="close"
  77082. abstract="false" native="false" synchronized="false"
  77083. static="false" final="false" visibility="public"
  77084. deprecated="not deprecated">
  77085. <exception name="IOException" type="java.io.IOException"/>
  77086. </method>
  77087. <doc>
  77088. <![CDATA[{@link JobHistoryParser} to parse job histories for hadoop 0.20 (META=1).]]>
  77089. </doc>
  77090. </class>
  77091. <!-- end class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  77092. <!-- start class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  77093. <class name="HadoopLogsAnalyzer" extends="org.apache.hadoop.conf.Configured"
  77094. abstract="false"
  77095. static="false" final="false" visibility="public"
  77096. deprecated="not deprecated">
  77097. <implements name="org.apache.hadoop.util.Tool"/>
  77098. <constructor name="HadoopLogsAnalyzer"
  77099. static="false" final="false" visibility="public"
  77100. deprecated="not deprecated">
  77101. </constructor>
  77102. <method name="run" return="int"
  77103. abstract="false" native="false" synchronized="false"
  77104. static="false" final="false" visibility="public"
  77105. deprecated="not deprecated">
  77106. <param name="args" type="java.lang.String[]"/>
  77107. <exception name="IOException" type="java.io.IOException"/>
  77108. </method>
  77109. <method name="main"
  77110. abstract="false" native="false" synchronized="false"
  77111. static="true" final="false" visibility="public"
  77112. deprecated="not deprecated">
  77113. <param name="args" type="java.lang.String[]"/>
  77114. <doc>
  77115. <![CDATA[@param args
  77116. Last arg is the input file. That file can be a directory, in which
  77117. case you get all the files in sorted order. We will decompress
  77118. files whose nmes end in .gz .
  77119. switches: -c collect line types.
  77120. -d debug mode
  77121. -delays print out the delays [interval between job submit time and
  77122. launch time]
  77123. -runtimes print out the job runtimes
  77124. -spreads print out the ratio of 10%ile and 90%ile, of both the
  77125. successful map task attempt run times and the the successful
  77126. reduce task attempt run times
  77127. -tasktimes prints out individual task time distributions
  77128. collects all the line types and prints the first example of each
  77129. one]]>
  77130. </doc>
  77131. </method>
  77132. <doc>
  77133. <![CDATA[This is the main class for rumen log mining functionality.
  77134. It reads a directory of job tracker logs, and computes various information
  77135. about it. See {@code usage()}, below.]]>
  77136. </doc>
  77137. </class>
  77138. <!-- end class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  77139. <!-- start interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  77140. <interface name="HistoryEvent" abstract="true"
  77141. static="false" final="false" visibility="public"
  77142. deprecated="not deprecated">
  77143. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77144. abstract="false" native="false" synchronized="false"
  77145. static="false" final="false" visibility="public"
  77146. deprecated="not deprecated">
  77147. <doc>
  77148. <![CDATA[Return this event's type.]]>
  77149. </doc>
  77150. </method>
  77151. </interface>
  77152. <!-- end interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  77153. <!-- start interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  77154. <interface name="InputDemuxer" abstract="true"
  77155. static="false" final="false" visibility="public"
  77156. deprecated="not deprecated">
  77157. <implements name="java.io.Closeable"/>
  77158. <method name="bindTo"
  77159. abstract="false" native="false" synchronized="false"
  77160. static="false" final="false" visibility="public"
  77161. deprecated="not deprecated">
  77162. <param name="path" type="org.apache.hadoop.fs.Path"/>
  77163. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77164. <exception name="IOException" type="java.io.IOException"/>
  77165. <doc>
  77166. <![CDATA[Bind the {@link InputDemuxer} to a particular file.
  77167. @param path
  77168. The path to the find it should bind to.
  77169. @param conf
  77170. Configuration
  77171. @throws IOException
  77172. Returns true when the binding succeeds. If the file can be read
  77173. but is in the wrong format, returns false. IOException is
  77174. reserved for read errors.]]>
  77175. </doc>
  77176. </method>
  77177. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  77178. abstract="false" native="false" synchronized="false"
  77179. static="false" final="false" visibility="public"
  77180. deprecated="not deprecated">
  77181. <exception name="IOException" type="java.io.IOException"/>
  77182. <doc>
  77183. <![CDATA[Get the next <name, input> pair. The name should preserve the original job
  77184. history file or job conf file name. The input object should be closed
  77185. before calling getNext() again. The old input object would be invalid after
  77186. calling getNext() again.
  77187. @return the next <name, input> pair.]]>
  77188. </doc>
  77189. </method>
  77190. <doc>
  77191. <![CDATA[{@link InputDemuxer} dem-ultiplexes the input files into individual input
  77192. streams.]]>
  77193. </doc>
  77194. </interface>
  77195. <!-- end interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  77196. <!-- start class org.apache.hadoop.tools.rumen.JhCounter -->
  77197. <class name="JhCounter" extends="java.lang.Object"
  77198. abstract="false"
  77199. static="false" final="false" visibility="public"
  77200. deprecated="not deprecated">
  77201. <constructor name="JhCounter"
  77202. static="false" final="false" visibility="public"
  77203. deprecated="not deprecated">
  77204. </constructor>
  77205. <field name="name" type="java.lang.String"
  77206. transient="false" volatile="false"
  77207. static="false" final="false" visibility="public"
  77208. deprecated="not deprecated">
  77209. </field>
  77210. <field name="displayName" type="java.lang.String"
  77211. transient="false" volatile="false"
  77212. static="false" final="false" visibility="public"
  77213. deprecated="not deprecated">
  77214. </field>
  77215. <field name="value" type="long"
  77216. transient="false" volatile="false"
  77217. static="false" final="false" visibility="public"
  77218. deprecated="not deprecated">
  77219. </field>
  77220. </class>
  77221. <!-- end class org.apache.hadoop.tools.rumen.JhCounter -->
  77222. <!-- start class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  77223. <class name="JhCounterGroup" extends="java.lang.Object"
  77224. abstract="false"
  77225. static="false" final="false" visibility="public"
  77226. deprecated="not deprecated">
  77227. <constructor name="JhCounterGroup"
  77228. static="false" final="false" visibility="public"
  77229. deprecated="not deprecated">
  77230. </constructor>
  77231. <field name="name" type="java.lang.String"
  77232. transient="false" volatile="false"
  77233. static="false" final="false" visibility="public"
  77234. deprecated="not deprecated">
  77235. </field>
  77236. <field name="displayName" type="java.lang.String"
  77237. transient="false" volatile="false"
  77238. static="false" final="false" visibility="public"
  77239. deprecated="not deprecated">
  77240. </field>
  77241. <field name="counts" type="java.util.List"
  77242. transient="false" volatile="false"
  77243. static="false" final="false" visibility="public"
  77244. deprecated="not deprecated">
  77245. </field>
  77246. </class>
  77247. <!-- end class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  77248. <!-- start class org.apache.hadoop.tools.rumen.JhCounters -->
  77249. <class name="JhCounters" extends="java.lang.Object"
  77250. abstract="false"
  77251. static="false" final="false" visibility="public"
  77252. deprecated="not deprecated">
  77253. <field name="name" type="java.lang.String"
  77254. transient="false" volatile="false"
  77255. static="false" final="false" visibility="public"
  77256. deprecated="not deprecated">
  77257. </field>
  77258. <field name="groups" type="java.util.List"
  77259. transient="false" volatile="false"
  77260. static="false" final="false" visibility="public"
  77261. deprecated="not deprecated">
  77262. </field>
  77263. </class>
  77264. <!-- end class org.apache.hadoop.tools.rumen.JhCounters -->
  77265. <!-- start class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  77266. <class name="Job20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  77267. abstract="false"
  77268. static="false" final="false" visibility="public"
  77269. deprecated="not deprecated">
  77270. </class>
  77271. <!-- end class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  77272. <!-- start class org.apache.hadoop.tools.rumen.JobBuilder -->
  77273. <class name="JobBuilder" extends="java.lang.Object"
  77274. abstract="false"
  77275. static="false" final="false" visibility="public"
  77276. deprecated="not deprecated">
  77277. <constructor name="JobBuilder" type="java.lang.String"
  77278. static="false" final="false" visibility="public"
  77279. deprecated="not deprecated">
  77280. </constructor>
  77281. <method name="getJobID" 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="process"
  77287. abstract="false" native="false" synchronized="false"
  77288. static="false" final="false" visibility="public"
  77289. deprecated="not deprecated">
  77290. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77291. <doc>
  77292. <![CDATA[Process one {@link HistoryEvent}
  77293. @param event
  77294. The {@link HistoryEvent} to be processed.]]>
  77295. </doc>
  77296. </method>
  77297. <method name="process"
  77298. abstract="false" native="false" synchronized="false"
  77299. static="false" final="false" visibility="public"
  77300. deprecated="not deprecated">
  77301. <param name="conf" type="java.util.Properties"/>
  77302. <doc>
  77303. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  77304. to be called once. It is okay to process a conf before, during or after the
  77305. events.
  77306. @param conf
  77307. The job conf properties to be added.]]>
  77308. </doc>
  77309. </method>
  77310. <method name="build" return="org.apache.hadoop.tools.rumen.ParsedJob"
  77311. abstract="false" native="false" synchronized="false"
  77312. static="false" final="false" visibility="public"
  77313. deprecated="not deprecated">
  77314. <doc>
  77315. <![CDATA[Request the builder to build the final object. Once called, the
  77316. {@link JobBuilder} would accept no more events or job-conf properties.
  77317. @return Parsed {@link ParsedJob} object.]]>
  77318. </doc>
  77319. </method>
  77320. <doc>
  77321. <![CDATA[{@link JobBuilder} builds one job. It processes a sequence of
  77322. {@link HistoryEvent}s.]]>
  77323. </doc>
  77324. </class>
  77325. <!-- end class org.apache.hadoop.tools.rumen.JobBuilder -->
  77326. <!-- start class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  77327. <class name="JobConfigurationParser" extends="java.lang.Object"
  77328. abstract="false"
  77329. static="false" final="false" visibility="public"
  77330. deprecated="not deprecated">
  77331. <constructor name="JobConfigurationParser"
  77332. static="false" final="false" visibility="public"
  77333. deprecated="not deprecated">
  77334. </constructor>
  77335. <doc>
  77336. <![CDATA[{@link JobConfigurationParser} parses the job configuration xml file, and
  77337. extracts configuration properties. It parses the file using a
  77338. stream-parser and thus is more memory efficient. [This optimization may be
  77339. postponed for a future release]]]>
  77340. </doc>
  77341. </class>
  77342. <!-- end class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  77343. <!-- start class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  77344. <class name="JobConfPropertyNames" extends="java.lang.Enum"
  77345. abstract="false"
  77346. static="false" final="true" visibility="public"
  77347. deprecated="not deprecated">
  77348. <method name="values" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames[]"
  77349. abstract="false" native="false" synchronized="false"
  77350. static="true" final="false" visibility="public"
  77351. deprecated="not deprecated">
  77352. </method>
  77353. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77354. abstract="false" native="false" synchronized="false"
  77355. static="true" final="false" visibility="public"
  77356. deprecated="not deprecated">
  77357. <param name="name" type="java.lang.String"/>
  77358. </method>
  77359. <method name="getCandidates" return="java.lang.String[]"
  77360. abstract="false" native="false" synchronized="false"
  77361. static="false" final="false" visibility="public"
  77362. deprecated="not deprecated">
  77363. </method>
  77364. <field name="QUEUE_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77365. transient="false" volatile="false"
  77366. static="true" final="true" visibility="public"
  77367. deprecated="not deprecated">
  77368. </field>
  77369. <field name="JOB_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77370. transient="false" volatile="false"
  77371. static="true" final="true" visibility="public"
  77372. deprecated="not deprecated">
  77373. </field>
  77374. <field name="TASK_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77375. transient="false" volatile="false"
  77376. static="true" final="true" visibility="public"
  77377. deprecated="not deprecated">
  77378. </field>
  77379. <field name="MAP_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77380. transient="false" volatile="false"
  77381. static="true" final="true" visibility="public"
  77382. deprecated="not deprecated">
  77383. </field>
  77384. <field name="REDUCE_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  77385. transient="false" volatile="false"
  77386. static="true" final="true" visibility="public"
  77387. deprecated="not deprecated">
  77388. </field>
  77389. </class>
  77390. <!-- end class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  77391. <!-- start class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  77392. <class name="JobFinishedEvent" extends="java.lang.Object"
  77393. abstract="false"
  77394. static="false" final="false" visibility="public"
  77395. deprecated="not deprecated">
  77396. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77397. <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"
  77398. static="false" final="false" visibility="public"
  77399. deprecated="not deprecated">
  77400. <doc>
  77401. <![CDATA[Create an event to record successful job completion
  77402. @param id Job ID
  77403. @param finishTime Finish time of the job
  77404. @param finishedMaps The number of finished maps
  77405. @param finishedReduces The number of finished reduces
  77406. @param failedMaps The number of failed maps
  77407. @param failedReduces The number of failed reduces
  77408. @param mapCounters Map Counters for the job
  77409. @param reduceCounters Reduce Counters for the job
  77410. @param totalCounters Total Counters for the job]]>
  77411. </doc>
  77412. </constructor>
  77413. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77414. abstract="false" native="false" synchronized="false"
  77415. static="false" final="false" visibility="public"
  77416. deprecated="not deprecated">
  77417. </method>
  77418. <method name="getJobid" return="org.apache.hadoop.mapreduce.JobID"
  77419. abstract="false" native="false" synchronized="false"
  77420. static="false" final="false" visibility="public"
  77421. deprecated="not deprecated">
  77422. <doc>
  77423. <![CDATA[Get the Job ID]]>
  77424. </doc>
  77425. </method>
  77426. <method name="getFinishTime" return="long"
  77427. abstract="false" native="false" synchronized="false"
  77428. static="false" final="false" visibility="public"
  77429. deprecated="not deprecated">
  77430. <doc>
  77431. <![CDATA[Get the job finish time]]>
  77432. </doc>
  77433. </method>
  77434. <method name="getFinishedMaps" return="int"
  77435. abstract="false" native="false" synchronized="false"
  77436. static="false" final="false" visibility="public"
  77437. deprecated="not deprecated">
  77438. <doc>
  77439. <![CDATA[Get the number of finished maps for the job]]>
  77440. </doc>
  77441. </method>
  77442. <method name="getFinishedReduces" return="int"
  77443. abstract="false" native="false" synchronized="false"
  77444. static="false" final="false" visibility="public"
  77445. deprecated="not deprecated">
  77446. <doc>
  77447. <![CDATA[Get the number of finished reducers for the job]]>
  77448. </doc>
  77449. </method>
  77450. <method name="getFailedMaps" return="int"
  77451. abstract="false" native="false" synchronized="false"
  77452. static="false" final="false" visibility="public"
  77453. deprecated="not deprecated">
  77454. <doc>
  77455. <![CDATA[Get the number of failed maps for the job]]>
  77456. </doc>
  77457. </method>
  77458. <method name="getFailedReduces" return="int"
  77459. abstract="false" native="false" synchronized="false"
  77460. static="false" final="false" visibility="public"
  77461. deprecated="not deprecated">
  77462. <doc>
  77463. <![CDATA[Get the number of failed reducers for the job]]>
  77464. </doc>
  77465. </method>
  77466. <method name="getTotalCounters" return="org.apache.hadoop.mapreduce.Counters"
  77467. abstract="false" native="false" synchronized="false"
  77468. static="false" final="false" visibility="public"
  77469. deprecated="not deprecated">
  77470. <doc>
  77471. <![CDATA[Get the counters for the job]]>
  77472. </doc>
  77473. </method>
  77474. <method name="getMapCounters" return="org.apache.hadoop.mapreduce.Counters"
  77475. abstract="false" native="false" synchronized="false"
  77476. static="false" final="false" visibility="public"
  77477. deprecated="not deprecated">
  77478. <doc>
  77479. <![CDATA[Get the Map counters for the job]]>
  77480. </doc>
  77481. </method>
  77482. <method name="getReduceCounters" return="org.apache.hadoop.mapreduce.Counters"
  77483. abstract="false" native="false" synchronized="false"
  77484. static="false" final="false" visibility="public"
  77485. deprecated="not deprecated">
  77486. <doc>
  77487. <![CDATA[Get the reduce counters for the job]]>
  77488. </doc>
  77489. </method>
  77490. <doc>
  77491. <![CDATA[Event to record successful completion of job]]>
  77492. </doc>
  77493. </class>
  77494. <!-- end class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  77495. <!-- start interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  77496. <interface name="JobHistoryParser" abstract="true"
  77497. static="false" final="false" visibility="public"
  77498. deprecated="not deprecated">
  77499. <implements name="java.io.Closeable"/>
  77500. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  77501. abstract="false" native="false" synchronized="false"
  77502. static="false" final="false" visibility="public"
  77503. deprecated="not deprecated">
  77504. <exception name="IOException" type="java.io.IOException"/>
  77505. <doc>
  77506. <![CDATA[Get the next {@link HistoryEvent}
  77507. @return the next {@link HistoryEvent}. If no more events left, return null.
  77508. @throws IOException]]>
  77509. </doc>
  77510. </method>
  77511. <doc>
  77512. <![CDATA[{@link JobHistoryParser} defines the interface of a Job History file parser.]]>
  77513. </doc>
  77514. </interface>
  77515. <!-- end interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  77516. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  77517. <class name="JobHistoryParserFactory" extends="java.lang.Object"
  77518. abstract="false"
  77519. static="false" final="false" visibility="public"
  77520. deprecated="not deprecated">
  77521. <constructor name="JobHistoryParserFactory"
  77522. static="false" final="false" visibility="public"
  77523. deprecated="not deprecated">
  77524. </constructor>
  77525. <method name="getParser" return="org.apache.hadoop.tools.rumen.JobHistoryParser"
  77526. abstract="false" native="false" synchronized="false"
  77527. static="true" final="false" visibility="public"
  77528. deprecated="not deprecated">
  77529. <param name="ris" type="org.apache.hadoop.tools.rumen.RewindableInputStream"/>
  77530. <exception name="IOException" type="java.io.IOException"/>
  77531. </method>
  77532. <doc>
  77533. <![CDATA[{@link JobHistoryParserFactory} is a singleton class that attempts to
  77534. determine the version of job history and return a proper parser.]]>
  77535. </doc>
  77536. </class>
  77537. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  77538. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector -->
  77539. <class name="JobHistoryParserFactory.VersionDetector" extends="java.lang.Enum"
  77540. abstract="false"
  77541. static="true" final="false" visibility="public"
  77542. deprecated="not deprecated">
  77543. <method name="values" return="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector[]"
  77544. abstract="false" native="false" synchronized="false"
  77545. static="true" final="false" visibility="public"
  77546. deprecated="not deprecated">
  77547. </method>
  77548. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector"
  77549. abstract="false" native="false" synchronized="false"
  77550. static="true" final="false" visibility="public"
  77551. deprecated="not deprecated">
  77552. <param name="name" type="java.lang.String"/>
  77553. </method>
  77554. <field name="Hadoop20" type="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector"
  77555. transient="false" volatile="false"
  77556. static="true" final="true" visibility="public"
  77557. deprecated="not deprecated">
  77558. </field>
  77559. </class>
  77560. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector -->
  77561. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryUtils -->
  77562. <class name="JobHistoryUtils" extends="java.lang.Object"
  77563. abstract="false"
  77564. static="false" final="false" visibility="public"
  77565. deprecated="not deprecated">
  77566. <constructor name="JobHistoryUtils"
  77567. static="false" final="false" visibility="public"
  77568. deprecated="not deprecated">
  77569. </constructor>
  77570. </class>
  77571. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryUtils -->
  77572. <!-- start class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  77573. <class name="JobInfoChangeEvent" extends="java.lang.Object"
  77574. abstract="false"
  77575. static="false" final="false" visibility="public"
  77576. deprecated="not deprecated">
  77577. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77578. <constructor name="JobInfoChangeEvent" type="org.apache.hadoop.mapreduce.JobID, long, long"
  77579. static="false" final="false" visibility="public"
  77580. deprecated="not deprecated">
  77581. <doc>
  77582. <![CDATA[Create a event to record the submit and launch time of a job
  77583. @param id Job Id
  77584. @param submitTime Submit time of the job
  77585. @param launchTime Launch time of the job]]>
  77586. </doc>
  77587. </constructor>
  77588. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77589. abstract="false" native="false" synchronized="false"
  77590. static="false" final="false" visibility="public"
  77591. deprecated="not deprecated">
  77592. <doc>
  77593. <![CDATA[Get the Job ID]]>
  77594. </doc>
  77595. </method>
  77596. <method name="getSubmitTime" return="long"
  77597. abstract="false" native="false" synchronized="false"
  77598. static="false" final="false" visibility="public"
  77599. deprecated="not deprecated">
  77600. <doc>
  77601. <![CDATA[Get the Job submit time]]>
  77602. </doc>
  77603. </method>
  77604. <method name="getLaunchTime" return="long"
  77605. abstract="false" native="false" synchronized="false"
  77606. static="false" final="false" visibility="public"
  77607. deprecated="not deprecated">
  77608. <doc>
  77609. <![CDATA[Get the Job launch time]]>
  77610. </doc>
  77611. </method>
  77612. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77613. abstract="false" native="false" synchronized="false"
  77614. static="false" final="false" visibility="public"
  77615. deprecated="not deprecated">
  77616. </method>
  77617. <doc>
  77618. <![CDATA[Event to record changes in the submit and launch time of
  77619. a job]]>
  77620. </doc>
  77621. </class>
  77622. <!-- end class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  77623. <!-- start class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  77624. <class name="JobInitedEvent" extends="java.lang.Object"
  77625. abstract="false"
  77626. static="false" final="false" visibility="public"
  77627. deprecated="not deprecated">
  77628. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77629. <constructor name="JobInitedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  77630. static="false" final="false" visibility="public"
  77631. deprecated="not deprecated">
  77632. <doc>
  77633. <![CDATA[Create an event to record job initialization
  77634. @param id
  77635. @param launchTime
  77636. @param totalMaps
  77637. @param totalReduces
  77638. @param jobStatus]]>
  77639. </doc>
  77640. </constructor>
  77641. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77642. abstract="false" native="false" synchronized="false"
  77643. static="false" final="false" visibility="public"
  77644. deprecated="not deprecated">
  77645. <doc>
  77646. <![CDATA[Get the job ID]]>
  77647. </doc>
  77648. </method>
  77649. <method name="getLaunchTime" return="long"
  77650. abstract="false" native="false" synchronized="false"
  77651. static="false" final="false" visibility="public"
  77652. deprecated="not deprecated">
  77653. <doc>
  77654. <![CDATA[Get the launch time]]>
  77655. </doc>
  77656. </method>
  77657. <method name="getTotalMaps" return="int"
  77658. abstract="false" native="false" synchronized="false"
  77659. static="false" final="false" visibility="public"
  77660. deprecated="not deprecated">
  77661. <doc>
  77662. <![CDATA[Get the total number of maps]]>
  77663. </doc>
  77664. </method>
  77665. <method name="getTotalReduces" return="int"
  77666. abstract="false" native="false" synchronized="false"
  77667. static="false" final="false" visibility="public"
  77668. deprecated="not deprecated">
  77669. <doc>
  77670. <![CDATA[Get the total number of reduces]]>
  77671. </doc>
  77672. </method>
  77673. <method name="getStatus" return="java.lang.String"
  77674. abstract="false" native="false" synchronized="false"
  77675. static="false" final="false" visibility="public"
  77676. deprecated="not deprecated">
  77677. <doc>
  77678. <![CDATA[Get the status]]>
  77679. </doc>
  77680. </method>
  77681. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77682. abstract="false" native="false" synchronized="false"
  77683. static="false" final="false" visibility="public"
  77684. deprecated="not deprecated">
  77685. <doc>
  77686. <![CDATA[Get the event type]]>
  77687. </doc>
  77688. </method>
  77689. <doc>
  77690. <![CDATA[Event to record the initialization of a job]]>
  77691. </doc>
  77692. </class>
  77693. <!-- end class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  77694. <!-- start class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  77695. <class name="JobPriorityChangeEvent" extends="java.lang.Object"
  77696. abstract="false"
  77697. static="false" final="false" visibility="public"
  77698. deprecated="not deprecated">
  77699. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77700. <constructor name="JobPriorityChangeEvent" type="org.apache.hadoop.mapreduce.JobID, org.apache.hadoop.mapred.JobPriority"
  77701. static="false" final="false" visibility="public"
  77702. deprecated="not deprecated">
  77703. <doc>
  77704. <![CDATA[Generate an event to record changes in Job priority
  77705. @param id Job Id
  77706. @param priority The new priority of the job]]>
  77707. </doc>
  77708. </constructor>
  77709. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77710. abstract="false" native="false" synchronized="false"
  77711. static="false" final="false" visibility="public"
  77712. deprecated="not deprecated">
  77713. <doc>
  77714. <![CDATA[Get the Job ID]]>
  77715. </doc>
  77716. </method>
  77717. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  77718. abstract="false" native="false" synchronized="false"
  77719. static="false" final="false" visibility="public"
  77720. deprecated="not deprecated">
  77721. <doc>
  77722. <![CDATA[Get the job priority]]>
  77723. </doc>
  77724. </method>
  77725. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77726. abstract="false" native="false" synchronized="false"
  77727. static="false" final="false" visibility="public"
  77728. deprecated="not deprecated">
  77729. <doc>
  77730. <![CDATA[Get the event type]]>
  77731. </doc>
  77732. </method>
  77733. <doc>
  77734. <![CDATA[Event to record the change of priority of a job]]>
  77735. </doc>
  77736. </class>
  77737. <!-- end class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  77738. <!-- start class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  77739. <class name="JobStatusChangedEvent" extends="java.lang.Object"
  77740. abstract="false"
  77741. static="false" final="false" visibility="public"
  77742. deprecated="not deprecated">
  77743. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77744. <constructor name="JobStatusChangedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String"
  77745. static="false" final="false" visibility="public"
  77746. deprecated="not deprecated">
  77747. <doc>
  77748. <![CDATA[Create an event to record the change in the Job Status
  77749. @param id Job ID
  77750. @param jobStatus The new job status]]>
  77751. </doc>
  77752. </constructor>
  77753. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77754. abstract="false" native="false" synchronized="false"
  77755. static="false" final="false" visibility="public"
  77756. deprecated="not deprecated">
  77757. <doc>
  77758. <![CDATA[Get the Job Id]]>
  77759. </doc>
  77760. </method>
  77761. <method name="getStatus" return="java.lang.String"
  77762. abstract="false" native="false" synchronized="false"
  77763. static="false" final="false" visibility="public"
  77764. deprecated="not deprecated">
  77765. <doc>
  77766. <![CDATA[Get the event status]]>
  77767. </doc>
  77768. </method>
  77769. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  77770. abstract="false" native="false" synchronized="false"
  77771. static="false" final="false" visibility="public"
  77772. deprecated="not deprecated">
  77773. <doc>
  77774. <![CDATA[Get the event type]]>
  77775. </doc>
  77776. </method>
  77777. <doc>
  77778. <![CDATA[Event to record the change of status for a job]]>
  77779. </doc>
  77780. </class>
  77781. <!-- end class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  77782. <!-- start interface org.apache.hadoop.tools.rumen.JobStory -->
  77783. <interface name="JobStory" abstract="true"
  77784. static="false" final="false" visibility="public"
  77785. deprecated="not deprecated">
  77786. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  77787. abstract="false" native="false" synchronized="false"
  77788. static="false" final="false" visibility="public"
  77789. deprecated="not deprecated">
  77790. <doc>
  77791. <![CDATA[Get the {@link JobConf} for the job.
  77792. @return the <code>JobConf</code> for the job]]>
  77793. </doc>
  77794. </method>
  77795. <method name="getName" return="java.lang.String"
  77796. abstract="false" native="false" synchronized="false"
  77797. static="false" final="false" visibility="public"
  77798. deprecated="not deprecated">
  77799. <doc>
  77800. <![CDATA[Get the job name.
  77801. @return the job name]]>
  77802. </doc>
  77803. </method>
  77804. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  77805. abstract="false" native="false" synchronized="false"
  77806. static="false" final="false" visibility="public"
  77807. deprecated="not deprecated">
  77808. <doc>
  77809. <![CDATA[Get the job ID
  77810. @return the job ID]]>
  77811. </doc>
  77812. </method>
  77813. <method name="getUser" return="java.lang.String"
  77814. abstract="false" native="false" synchronized="false"
  77815. static="false" final="false" visibility="public"
  77816. deprecated="not deprecated">
  77817. <doc>
  77818. <![CDATA[Get the user who ran the job.
  77819. @return the user who ran the job]]>
  77820. </doc>
  77821. </method>
  77822. <method name="getSubmissionTime" return="long"
  77823. abstract="false" native="false" synchronized="false"
  77824. static="false" final="false" visibility="public"
  77825. deprecated="not deprecated">
  77826. <doc>
  77827. <![CDATA[Get the job submission time.
  77828. @return the job submission time]]>
  77829. </doc>
  77830. </method>
  77831. <method name="getNumberMaps" return="int"
  77832. abstract="false" native="false" synchronized="false"
  77833. static="false" final="false" visibility="public"
  77834. deprecated="not deprecated">
  77835. <doc>
  77836. <![CDATA[Get the number of maps in the {@link JobStory}.
  77837. @return the number of maps in the <code>Job</code>]]>
  77838. </doc>
  77839. </method>
  77840. <method name="getNumberReduces" return="int"
  77841. abstract="false" native="false" synchronized="false"
  77842. static="false" final="false" visibility="public"
  77843. deprecated="not deprecated">
  77844. <doc>
  77845. <![CDATA[Get the number of reduce in the {@link JobStory}.
  77846. @return the number of reduces in the <code>Job</code>]]>
  77847. </doc>
  77848. </method>
  77849. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  77850. abstract="false" native="false" synchronized="false"
  77851. static="false" final="false" visibility="public"
  77852. deprecated="not deprecated">
  77853. <doc>
  77854. <![CDATA[Get the input splits for the job.
  77855. @return the input splits for the job]]>
  77856. </doc>
  77857. </method>
  77858. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  77859. abstract="false" native="false" synchronized="false"
  77860. static="false" final="false" visibility="public"
  77861. deprecated="not deprecated">
  77862. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  77863. <param name="taskNumber" type="int"/>
  77864. <doc>
  77865. <![CDATA[Get {@link TaskInfo} for a given task.
  77866. @param taskType {@link TaskType} of the task
  77867. @param taskNumber Partition number of the task
  77868. @return the <code>TaskInfo</code> for the given task]]>
  77869. </doc>
  77870. </method>
  77871. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  77872. abstract="false" native="false" synchronized="false"
  77873. static="false" final="false" visibility="public"
  77874. deprecated="not deprecated">
  77875. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  77876. <param name="taskNumber" type="int"/>
  77877. <param name="taskAttemptNumber" type="int"/>
  77878. <doc>
  77879. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, without regard to
  77880. impact of locality (e.g. not needed to make scheduling decisions).
  77881. @param taskType {@link TaskType} of the task-attempt
  77882. @param taskNumber Partition number of the task-attempt
  77883. @param taskAttemptNumber Attempt number of the task
  77884. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  77885. </doc>
  77886. </method>
  77887. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  77888. abstract="false" native="false" synchronized="false"
  77889. static="false" final="false" visibility="public"
  77890. deprecated="not deprecated">
  77891. <param name="taskNumber" type="int"/>
  77892. <param name="taskAttemptNumber" type="int"/>
  77893. <param name="locality" type="int"/>
  77894. <doc>
  77895. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, considering impact
  77896. of locality.
  77897. @param taskNumber Partition number of the task-attempt
  77898. @param taskAttemptNumber Attempt number of the task
  77899. @param locality Data locality of the task as scheduled in simulation
  77900. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  77901. </doc>
  77902. </method>
  77903. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  77904. abstract="false" native="false" synchronized="false"
  77905. static="false" final="false" visibility="public"
  77906. deprecated="not deprecated">
  77907. <doc>
  77908. <![CDATA[Get the outcome of the job execution.
  77909. @return The outcome of the job execution.]]>
  77910. </doc>
  77911. </method>
  77912. <method name="getQueueName" return="java.lang.String"
  77913. abstract="false" native="false" synchronized="false"
  77914. static="false" final="false" visibility="public"
  77915. deprecated="not deprecated">
  77916. <doc>
  77917. <![CDATA[Get the queue where the job is submitted.
  77918. @return the queue where the job is submitted.]]>
  77919. </doc>
  77920. </method>
  77921. <doc>
  77922. <![CDATA[{@link JobStory} represents the runtime information available for a
  77923. completed Map-Reduce job.]]>
  77924. </doc>
  77925. </interface>
  77926. <!-- end interface org.apache.hadoop.tools.rumen.JobStory -->
  77927. <!-- start interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  77928. <interface name="JobStoryProducer" abstract="true"
  77929. static="false" final="false" visibility="public"
  77930. deprecated="not deprecated">
  77931. <implements name="java.io.Closeable"/>
  77932. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.JobStory"
  77933. abstract="false" native="false" synchronized="false"
  77934. static="false" final="false" visibility="public"
  77935. deprecated="not deprecated">
  77936. <exception name="IOException" type="java.io.IOException"/>
  77937. <doc>
  77938. <![CDATA[Get the next job.
  77939. @return The next job. Or null if no more job is available.
  77940. @throws IOException]]>
  77941. </doc>
  77942. </method>
  77943. <doc>
  77944. <![CDATA[{@link JobStoryProducer} produces the sequence of {@link JobStory}'s.]]>
  77945. </doc>
  77946. </interface>
  77947. <!-- end interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  77948. <!-- start class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  77949. <class name="JobSubmittedEvent" extends="java.lang.Object"
  77950. abstract="false"
  77951. static="false" final="false" visibility="public"
  77952. deprecated="not deprecated">
  77953. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  77954. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String"
  77955. static="false" final="false" visibility="public"
  77956. deprecated="Use
  77957. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  77958. Map, String)}
  77959. instead.">
  77960. <doc>
  77961. <![CDATA[@deprecated Use
  77962. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  77963. Map, String)}
  77964. instead.]]>
  77965. </doc>
  77966. </constructor>
  77967. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map"
  77968. static="false" final="false" visibility="public"
  77969. deprecated="Use
  77970. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  77971. Map, String)}
  77972. instead.">
  77973. <doc>
  77974. <![CDATA[@deprecated Use
  77975. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  77976. Map, String)}
  77977. instead.]]>
  77978. </doc>
  77979. </constructor>
  77980. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map, java.lang.String"
  77981. static="false" final="false" visibility="public"
  77982. deprecated="not deprecated">
  77983. <doc>
  77984. <![CDATA[Create an event to record job submission
  77985. @param id The job Id of the job
  77986. @param jobName Name of the job
  77987. @param userName Name of the user who submitted the job
  77988. @param submitTime Time of submission
  77989. @param jobConfPath Path of the Job Configuration file
  77990. @param jobACLs The configured acls for the job.
  77991. @param queue job queue name]]>
  77992. </doc>
  77993. </constructor>
  77994. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  77995. abstract="false" native="false" synchronized="false"
  77996. static="false" final="false" visibility="public"
  77997. deprecated="not deprecated">
  77998. <doc>
  77999. <![CDATA[Get the Job Id]]>
  78000. </doc>
  78001. </method>
  78002. <method name="getJobName" return="java.lang.String"
  78003. abstract="false" native="false" synchronized="false"
  78004. static="false" final="false" visibility="public"
  78005. deprecated="not deprecated">
  78006. <doc>
  78007. <![CDATA[Get the Job name]]>
  78008. </doc>
  78009. </method>
  78010. <method name="getUserName" return="java.lang.String"
  78011. abstract="false" native="false" synchronized="false"
  78012. static="false" final="false" visibility="public"
  78013. deprecated="not deprecated">
  78014. <doc>
  78015. <![CDATA[Get the user name]]>
  78016. </doc>
  78017. </method>
  78018. <method name="getSubmitTime" return="long"
  78019. abstract="false" native="false" synchronized="false"
  78020. static="false" final="false" visibility="public"
  78021. deprecated="not deprecated">
  78022. <doc>
  78023. <![CDATA[Get the submit time]]>
  78024. </doc>
  78025. </method>
  78026. <method name="getJobConfPath" return="java.lang.String"
  78027. abstract="false" native="false" synchronized="false"
  78028. static="false" final="false" visibility="public"
  78029. deprecated="not deprecated">
  78030. <doc>
  78031. <![CDATA[Get the Path for the Job Configuration file]]>
  78032. </doc>
  78033. </method>
  78034. <method name="getJobAcls" return="java.util.Map"
  78035. abstract="false" native="false" synchronized="false"
  78036. static="false" final="false" visibility="public"
  78037. deprecated="not deprecated">
  78038. <doc>
  78039. <![CDATA[Get the acls configured for the job]]>
  78040. </doc>
  78041. </method>
  78042. <method name="getJobQueueName" return="java.lang.String"
  78043. abstract="false" native="false" synchronized="false"
  78044. static="false" final="false" visibility="public"
  78045. deprecated="not deprecated">
  78046. </method>
  78047. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78048. abstract="false" native="false" synchronized="false"
  78049. static="false" final="false" visibility="public"
  78050. deprecated="not deprecated">
  78051. <doc>
  78052. <![CDATA[Get the event type]]>
  78053. </doc>
  78054. </method>
  78055. <doc>
  78056. <![CDATA[Event to record the submission of a job]]>
  78057. </doc>
  78058. </class>
  78059. <!-- end class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  78060. <!-- start class org.apache.hadoop.tools.rumen.JobTraceReader -->
  78061. <class name="JobTraceReader" extends="org.apache.hadoop.tools.rumen.JsonObjectMapperParser"
  78062. abstract="false"
  78063. static="false" final="false" visibility="public"
  78064. deprecated="not deprecated">
  78065. <constructor name="JobTraceReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  78066. static="false" final="false" visibility="public"
  78067. deprecated="not deprecated">
  78068. <exception name="IOException" type="java.io.IOException"/>
  78069. <doc>
  78070. <![CDATA[Constructor.
  78071. @param path
  78072. Path to the JSON trace file, possibly compressed.
  78073. @param conf
  78074. @throws IOException]]>
  78075. </doc>
  78076. </constructor>
  78077. <constructor name="JobTraceReader" type="java.io.InputStream"
  78078. static="false" final="false" visibility="public"
  78079. deprecated="not deprecated">
  78080. <exception name="IOException" type="java.io.IOException"/>
  78081. <doc>
  78082. <![CDATA[Constructor.
  78083. @param input
  78084. The input stream for the JSON trace.]]>
  78085. </doc>
  78086. </constructor>
  78087. <doc>
  78088. <![CDATA[Reading JSON-encoded job traces and produce {@link LoggedJob} instances.]]>
  78089. </doc>
  78090. </class>
  78091. <!-- end class org.apache.hadoop.tools.rumen.JobTraceReader -->
  78092. <!-- start class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  78093. <class name="JobUnsuccessfulCompletionEvent" extends="java.lang.Object"
  78094. abstract="false"
  78095. static="false" final="false" visibility="public"
  78096. deprecated="not deprecated">
  78097. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  78098. <constructor name="JobUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  78099. static="false" final="false" visibility="public"
  78100. deprecated="not deprecated">
  78101. <doc>
  78102. <![CDATA[Create an event to record unsuccessful completion (killed/failed) of jobs
  78103. @param id Job ID
  78104. @param finishTime Finish time of the job
  78105. @param finishedMaps Number of finished maps
  78106. @param finishedReduces Number of finished reduces
  78107. @param status Status of the job]]>
  78108. </doc>
  78109. </constructor>
  78110. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  78111. abstract="false" native="false" synchronized="false"
  78112. static="false" final="false" visibility="public"
  78113. deprecated="not deprecated">
  78114. <doc>
  78115. <![CDATA[Get the Job ID]]>
  78116. </doc>
  78117. </method>
  78118. <method name="getFinishTime" return="long"
  78119. abstract="false" native="false" synchronized="false"
  78120. static="false" final="false" visibility="public"
  78121. deprecated="not deprecated">
  78122. <doc>
  78123. <![CDATA[Get the job finish time]]>
  78124. </doc>
  78125. </method>
  78126. <method name="getFinishedMaps" return="int"
  78127. abstract="false" native="false" synchronized="false"
  78128. static="false" final="false" visibility="public"
  78129. deprecated="not deprecated">
  78130. <doc>
  78131. <![CDATA[Get the number of finished maps]]>
  78132. </doc>
  78133. </method>
  78134. <method name="getFinishedReduces" return="int"
  78135. abstract="false" native="false" synchronized="false"
  78136. static="false" final="false" visibility="public"
  78137. deprecated="not deprecated">
  78138. <doc>
  78139. <![CDATA[Get the number of finished reduces]]>
  78140. </doc>
  78141. </method>
  78142. <method name="getStatus" return="java.lang.String"
  78143. abstract="false" native="false" synchronized="false"
  78144. static="false" final="false" visibility="public"
  78145. deprecated="not deprecated">
  78146. <doc>
  78147. <![CDATA[Get the status]]>
  78148. </doc>
  78149. </method>
  78150. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  78151. abstract="false" native="false" synchronized="false"
  78152. static="false" final="false" visibility="public"
  78153. deprecated="not deprecated">
  78154. <doc>
  78155. <![CDATA[Get the event type]]>
  78156. </doc>
  78157. </method>
  78158. <doc>
  78159. <![CDATA[Event to record Failed and Killed completion of jobs]]>
  78160. </doc>
  78161. </class>
  78162. <!-- end class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  78163. <!-- start class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  78164. <class name="JsonObjectMapperWriter" extends="java.lang.Object"
  78165. abstract="false"
  78166. static="false" final="false" visibility="public"
  78167. deprecated="not deprecated">
  78168. <implements name="java.io.Closeable"/>
  78169. <constructor name="JsonObjectMapperWriter" type="java.io.OutputStream, boolean"
  78170. static="false" final="false" visibility="public"
  78171. deprecated="not deprecated">
  78172. <exception name="IOException" type="java.io.IOException"/>
  78173. </constructor>
  78174. <method name="write"
  78175. abstract="false" native="false" synchronized="false"
  78176. static="false" final="false" visibility="public"
  78177. deprecated="not deprecated">
  78178. <param name="object" type="java.lang.Object"/>
  78179. <exception name="IOException" type="java.io.IOException"/>
  78180. </method>
  78181. <method name="close"
  78182. abstract="false" native="false" synchronized="false"
  78183. static="false" final="false" visibility="public"
  78184. deprecated="not deprecated">
  78185. <exception name="IOException" type="java.io.IOException"/>
  78186. </method>
  78187. <doc>
  78188. <![CDATA[Simple wrapper around {@link JsonGenerator} to write objects in JSON format.
  78189. @param <T> The type of the objects to be written.]]>
  78190. </doc>
  78191. </class>
  78192. <!-- end class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  78193. <!-- start class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  78194. <class name="LoggedDiscreteCDF" extends="java.lang.Object"
  78195. abstract="false"
  78196. static="false" final="false" visibility="public"
  78197. deprecated="not deprecated">
  78198. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78199. <constructor name="LoggedDiscreteCDF"
  78200. static="false" final="false" visibility="public"
  78201. deprecated="not deprecated">
  78202. </constructor>
  78203. <method name="getMinimum" return="long"
  78204. abstract="false" native="false" synchronized="false"
  78205. static="false" final="false" visibility="public"
  78206. deprecated="not deprecated">
  78207. </method>
  78208. <method name="getRankings" return="java.util.List"
  78209. abstract="false" native="false" synchronized="false"
  78210. static="false" final="false" visibility="public"
  78211. deprecated="not deprecated">
  78212. </method>
  78213. <method name="getMaximum" return="long"
  78214. abstract="false" native="false" synchronized="false"
  78215. static="false" final="false" visibility="public"
  78216. deprecated="not deprecated">
  78217. </method>
  78218. <method name="getNumberValues" return="long"
  78219. abstract="false" native="false" synchronized="false"
  78220. static="false" final="false" visibility="public"
  78221. deprecated="not deprecated">
  78222. </method>
  78223. <method name="deepCompare"
  78224. abstract="false" native="false" synchronized="false"
  78225. static="false" final="false" visibility="public"
  78226. deprecated="not deprecated">
  78227. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78228. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78229. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78230. </method>
  78231. <doc>
  78232. <![CDATA[A {@link LoggedDiscreteCDF} is a discrete approximation of a cumulative
  78233. distribution function, with this class set up to meet the requirements of the
  78234. Jackson JSON parser/generator.
  78235. All of the public methods are simply accessors for the instance variables we
  78236. want to write out in the JSON files.]]>
  78237. </doc>
  78238. </class>
  78239. <!-- end class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  78240. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob -->
  78241. <class name="LoggedJob" extends="java.lang.Object"
  78242. abstract="false"
  78243. static="false" final="false" visibility="public"
  78244. deprecated="not deprecated">
  78245. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78246. <method name="getJobProperties" return="java.util.Properties"
  78247. abstract="false" native="false" synchronized="false"
  78248. static="false" final="false" visibility="public"
  78249. deprecated="not deprecated">
  78250. <doc>
  78251. <![CDATA[Get the configuration properties of the job.]]>
  78252. </doc>
  78253. </method>
  78254. <method name="setUnknownAttribute"
  78255. abstract="false" native="false" synchronized="false"
  78256. static="false" final="false" visibility="public"
  78257. deprecated="not deprecated">
  78258. <param name="attributeName" type="java.lang.String"/>
  78259. <param name="ignored" type="java.lang.Object"/>
  78260. </method>
  78261. <method name="getUser" return="java.lang.String"
  78262. abstract="false" native="false" synchronized="false"
  78263. static="false" final="false" visibility="public"
  78264. deprecated="not deprecated">
  78265. </method>
  78266. <method name="getJobID" return="java.lang.String"
  78267. abstract="false" native="false" synchronized="false"
  78268. static="false" final="false" visibility="public"
  78269. deprecated="not deprecated">
  78270. </method>
  78271. <method name="getPriority" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78272. abstract="false" native="false" synchronized="false"
  78273. static="false" final="false" visibility="public"
  78274. deprecated="not deprecated">
  78275. </method>
  78276. <method name="getComputonsPerMapInputByte" return="long"
  78277. abstract="false" native="false" synchronized="false"
  78278. static="false" final="false" visibility="public"
  78279. deprecated="not deprecated">
  78280. </method>
  78281. <method name="getComputonsPerMapOutputByte" return="long"
  78282. abstract="false" native="false" synchronized="false"
  78283. static="false" final="false" visibility="public"
  78284. deprecated="not deprecated">
  78285. </method>
  78286. <method name="getComputonsPerReduceInputByte" return="long"
  78287. abstract="false" native="false" synchronized="false"
  78288. static="false" final="false" visibility="public"
  78289. deprecated="not deprecated">
  78290. </method>
  78291. <method name="getComputonsPerReduceOutputByte" return="long"
  78292. abstract="false" native="false" synchronized="false"
  78293. static="false" final="false" visibility="public"
  78294. deprecated="not deprecated">
  78295. </method>
  78296. <method name="getSubmitTime" return="long"
  78297. abstract="false" native="false" synchronized="false"
  78298. static="false" final="false" visibility="public"
  78299. deprecated="not deprecated">
  78300. </method>
  78301. <method name="getLaunchTime" return="long"
  78302. abstract="false" native="false" synchronized="false"
  78303. static="false" final="false" visibility="public"
  78304. deprecated="not deprecated">
  78305. </method>
  78306. <method name="getFinishTime" return="long"
  78307. abstract="false" native="false" synchronized="false"
  78308. static="false" final="false" visibility="public"
  78309. deprecated="not deprecated">
  78310. </method>
  78311. <method name="getHeapMegabytes" return="int"
  78312. abstract="false" native="false" synchronized="false"
  78313. static="false" final="false" visibility="public"
  78314. deprecated="not deprecated">
  78315. </method>
  78316. <method name="getTotalMaps" return="int"
  78317. abstract="false" native="false" synchronized="false"
  78318. static="false" final="false" visibility="public"
  78319. deprecated="not deprecated">
  78320. </method>
  78321. <method name="getTotalReduces" return="int"
  78322. abstract="false" native="false" synchronized="false"
  78323. static="false" final="false" visibility="public"
  78324. deprecated="not deprecated">
  78325. </method>
  78326. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78327. abstract="false" native="false" synchronized="false"
  78328. static="false" final="false" visibility="public"
  78329. deprecated="not deprecated">
  78330. </method>
  78331. <method name="getJobtype" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78332. abstract="false" native="false" synchronized="false"
  78333. static="false" final="false" visibility="public"
  78334. deprecated="not deprecated">
  78335. </method>
  78336. <method name="getDirectDependantJobs" return="java.util.List"
  78337. abstract="false" native="false" synchronized="false"
  78338. static="false" final="false" visibility="public"
  78339. deprecated="not deprecated">
  78340. </method>
  78341. <method name="getMapTasks" return="java.util.List"
  78342. abstract="false" native="false" synchronized="false"
  78343. static="false" final="false" visibility="public"
  78344. deprecated="not deprecated">
  78345. </method>
  78346. <method name="getReduceTasks" return="java.util.List"
  78347. abstract="false" native="false" synchronized="false"
  78348. static="false" final="false" visibility="public"
  78349. deprecated="not deprecated">
  78350. </method>
  78351. <method name="getOtherTasks" return="java.util.List"
  78352. abstract="false" native="false" synchronized="false"
  78353. static="false" final="false" visibility="public"
  78354. deprecated="not deprecated">
  78355. </method>
  78356. <method name="getSuccessfulMapAttemptCDFs" return="java.util.ArrayList"
  78357. abstract="false" native="false" synchronized="false"
  78358. static="false" final="false" visibility="public"
  78359. deprecated="not deprecated">
  78360. </method>
  78361. <method name="getFailedMapAttemptCDFs" return="java.util.ArrayList"
  78362. abstract="false" native="false" synchronized="false"
  78363. static="false" final="false" visibility="public"
  78364. deprecated="not deprecated">
  78365. </method>
  78366. <method name="getSuccessfulReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  78367. abstract="false" native="false" synchronized="false"
  78368. static="false" final="false" visibility="public"
  78369. deprecated="not deprecated">
  78370. </method>
  78371. <method name="getFailedReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  78372. abstract="false" native="false" synchronized="false"
  78373. static="false" final="false" visibility="public"
  78374. deprecated="not deprecated">
  78375. </method>
  78376. <method name="getMapperTriesToSucceed" return="double[]"
  78377. abstract="false" native="false" synchronized="false"
  78378. static="false" final="false" visibility="public"
  78379. deprecated="not deprecated">
  78380. </method>
  78381. <method name="getFailedMapperFraction" return="double"
  78382. abstract="false" native="false" synchronized="false"
  78383. static="false" final="false" visibility="public"
  78384. deprecated="not deprecated">
  78385. </method>
  78386. <method name="getRelativeTime" return="long"
  78387. abstract="false" native="false" synchronized="false"
  78388. static="false" final="false" visibility="public"
  78389. deprecated="not deprecated">
  78390. </method>
  78391. <method name="getQueue" return="java.lang.String"
  78392. abstract="false" native="false" synchronized="false"
  78393. static="false" final="false" visibility="public"
  78394. deprecated="not deprecated">
  78395. <doc>
  78396. <![CDATA[@return job queue name if it is available in job history file or
  78397. job history conf file. Returns null otherwise.]]>
  78398. </doc>
  78399. </method>
  78400. <method name="getJobName" return="java.lang.String"
  78401. abstract="false" native="false" synchronized="false"
  78402. static="false" final="false" visibility="public"
  78403. deprecated="not deprecated">
  78404. </method>
  78405. <method name="getClusterMapMB" return="int"
  78406. abstract="false" native="false" synchronized="false"
  78407. static="false" final="false" visibility="public"
  78408. deprecated="not deprecated">
  78409. </method>
  78410. <method name="getClusterReduceMB" return="int"
  78411. abstract="false" native="false" synchronized="false"
  78412. static="false" final="false" visibility="public"
  78413. deprecated="not deprecated">
  78414. </method>
  78415. <method name="getJobMapMB" return="int"
  78416. abstract="false" native="false" synchronized="false"
  78417. static="false" final="false" visibility="public"
  78418. deprecated="not deprecated">
  78419. </method>
  78420. <method name="getJobReduceMB" return="int"
  78421. abstract="false" native="false" synchronized="false"
  78422. static="false" final="false" visibility="public"
  78423. deprecated="not deprecated">
  78424. </method>
  78425. <method name="deepCompare"
  78426. abstract="false" native="false" synchronized="false"
  78427. static="false" final="false" visibility="public"
  78428. deprecated="not deprecated">
  78429. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78430. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78431. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78432. </method>
  78433. <doc>
  78434. <![CDATA[A {@link LoggedDiscreteCDF} is a representation of an hadoop job, with the
  78435. details of this class set up to meet the requirements of the Jackson JSON
  78436. parser/generator.
  78437. All of the public methods are simply accessors for the instance variables we
  78438. want to write out in the JSON files.]]>
  78439. </doc>
  78440. </class>
  78441. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob -->
  78442. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  78443. <class name="LoggedJob.JobPriority" extends="java.lang.Enum"
  78444. abstract="false"
  78445. static="true" final="true" visibility="public"
  78446. deprecated="not deprecated">
  78447. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority[]"
  78448. abstract="false" native="false" synchronized="false"
  78449. static="true" final="false" visibility="public"
  78450. deprecated="not deprecated">
  78451. </method>
  78452. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78453. abstract="false" native="false" synchronized="false"
  78454. static="true" final="false" visibility="public"
  78455. deprecated="not deprecated">
  78456. <param name="name" type="java.lang.String"/>
  78457. </method>
  78458. <field name="VERY_LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78459. transient="false" volatile="false"
  78460. static="true" final="true" visibility="public"
  78461. deprecated="not deprecated">
  78462. </field>
  78463. <field name="LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78464. transient="false" volatile="false"
  78465. static="true" final="true" visibility="public"
  78466. deprecated="not deprecated">
  78467. </field>
  78468. <field name="NORMAL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78469. transient="false" volatile="false"
  78470. static="true" final="true" visibility="public"
  78471. deprecated="not deprecated">
  78472. </field>
  78473. <field name="HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78474. transient="false" volatile="false"
  78475. static="true" final="true" visibility="public"
  78476. deprecated="not deprecated">
  78477. </field>
  78478. <field name="VERY_HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  78479. transient="false" volatile="false"
  78480. static="true" final="true" visibility="public"
  78481. deprecated="not deprecated">
  78482. </field>
  78483. </class>
  78484. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  78485. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  78486. <class name="LoggedJob.JobType" extends="java.lang.Enum"
  78487. abstract="false"
  78488. static="true" final="true" visibility="public"
  78489. deprecated="not deprecated">
  78490. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType[]"
  78491. abstract="false" native="false" synchronized="false"
  78492. static="true" final="false" visibility="public"
  78493. deprecated="not deprecated">
  78494. </method>
  78495. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78496. abstract="false" native="false" synchronized="false"
  78497. static="true" final="false" visibility="public"
  78498. deprecated="not deprecated">
  78499. <param name="name" type="java.lang.String"/>
  78500. </method>
  78501. <field name="JAVA" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78502. transient="false" volatile="false"
  78503. static="true" final="true" visibility="public"
  78504. deprecated="not deprecated">
  78505. </field>
  78506. <field name="PIG" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78507. transient="false" volatile="false"
  78508. static="true" final="true" visibility="public"
  78509. deprecated="not deprecated">
  78510. </field>
  78511. <field name="STREAMING" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78512. transient="false" volatile="false"
  78513. static="true" final="true" visibility="public"
  78514. deprecated="not deprecated">
  78515. </field>
  78516. <field name="PIPES" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78517. transient="false" volatile="false"
  78518. static="true" final="true" visibility="public"
  78519. deprecated="not deprecated">
  78520. </field>
  78521. <field name="OVERALL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  78522. transient="false" volatile="false"
  78523. static="true" final="true" visibility="public"
  78524. deprecated="not deprecated">
  78525. </field>
  78526. </class>
  78527. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  78528. <!-- start class org.apache.hadoop.tools.rumen.LoggedLocation -->
  78529. <class name="LoggedLocation" extends="java.lang.Object"
  78530. abstract="false"
  78531. static="false" final="false" visibility="public"
  78532. deprecated="not deprecated">
  78533. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78534. <constructor name="LoggedLocation"
  78535. static="false" final="false" visibility="public"
  78536. deprecated="not deprecated">
  78537. </constructor>
  78538. <method name="getLayers" return="java.util.List"
  78539. abstract="false" native="false" synchronized="false"
  78540. static="false" final="false" visibility="public"
  78541. deprecated="not deprecated">
  78542. </method>
  78543. <method name="setUnknownAttribute"
  78544. abstract="false" native="false" synchronized="false"
  78545. static="false" final="false" visibility="public"
  78546. deprecated="not deprecated">
  78547. <param name="attributeName" type="java.lang.String"/>
  78548. <param name="ignored" type="java.lang.Object"/>
  78549. </method>
  78550. <method name="deepCompare"
  78551. abstract="false" native="false" synchronized="false"
  78552. static="false" final="false" visibility="public"
  78553. deprecated="not deprecated">
  78554. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78555. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78556. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78557. </method>
  78558. <doc>
  78559. <![CDATA[A {@link LoggedLocation} is a representation of a point in an hierarchical
  78560. network, represented as a series of membership names, broadest first.
  78561. For example, if your network has <i>hosts</i> grouped into <i>racks</i>, then
  78562. in onecluster you might have a node {@code node1} on rack {@code rack1}. This
  78563. would be represented with a ArrayList of two layers, with two {@link String}
  78564. s being {@code "rack1"} and {@code "node1"}.
  78565. The details of this class are set up to meet the requirements of the Jackson
  78566. JSON parser/generator.
  78567. All of the public methods are simply accessors for the instance variables we
  78568. want to write out in the JSON files.]]>
  78569. </doc>
  78570. </class>
  78571. <!-- end class org.apache.hadoop.tools.rumen.LoggedLocation -->
  78572. <!-- start class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  78573. <class name="LoggedNetworkTopology" extends="java.lang.Object"
  78574. abstract="false"
  78575. static="false" final="false" visibility="public"
  78576. deprecated="not deprecated">
  78577. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78578. <constructor name="LoggedNetworkTopology"
  78579. static="false" final="false" visibility="public"
  78580. deprecated="not deprecated">
  78581. </constructor>
  78582. <method name="setUnknownAttribute"
  78583. abstract="false" native="false" synchronized="false"
  78584. static="false" final="false" visibility="public"
  78585. deprecated="not deprecated">
  78586. <param name="attributeName" type="java.lang.String"/>
  78587. <param name="ignored" type="java.lang.Object"/>
  78588. </method>
  78589. <method name="getName" return="java.lang.String"
  78590. abstract="false" native="false" synchronized="false"
  78591. static="false" final="false" visibility="public"
  78592. deprecated="not deprecated">
  78593. </method>
  78594. <method name="getChildren" return="java.util.List"
  78595. abstract="false" native="false" synchronized="false"
  78596. static="false" final="false" visibility="public"
  78597. deprecated="not deprecated">
  78598. </method>
  78599. <method name="deepCompare"
  78600. abstract="false" native="false" synchronized="false"
  78601. static="false" final="false" visibility="public"
  78602. deprecated="not deprecated">
  78603. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78604. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78605. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78606. </method>
  78607. <doc>
  78608. <![CDATA[A {@link LoggedNetworkTopology} represents a tree that in turn represents a
  78609. hierarchy of hosts. The current version requires the tree to have all leaves
  78610. at the same level.
  78611. All of the public methods are simply accessors for the instance variables we
  78612. want to write out in the JSON files.]]>
  78613. </doc>
  78614. </class>
  78615. <!-- end class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  78616. <!-- start class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  78617. <class name="LoggedSingleRelativeRanking" extends="java.lang.Object"
  78618. abstract="false"
  78619. static="false" final="false" visibility="public"
  78620. deprecated="not deprecated">
  78621. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78622. <constructor name="LoggedSingleRelativeRanking"
  78623. static="false" final="false" visibility="public"
  78624. deprecated="not deprecated">
  78625. </constructor>
  78626. <method name="setUnknownAttribute"
  78627. abstract="false" native="false" synchronized="false"
  78628. static="false" final="false" visibility="public"
  78629. deprecated="not deprecated">
  78630. <param name="attributeName" type="java.lang.String"/>
  78631. <param name="ignored" type="java.lang.Object"/>
  78632. </method>
  78633. <method name="getRelativeRanking" return="double"
  78634. abstract="false" native="false" synchronized="false"
  78635. static="false" final="false" visibility="public"
  78636. deprecated="not deprecated">
  78637. </method>
  78638. <method name="getDatum" return="long"
  78639. abstract="false" native="false" synchronized="false"
  78640. static="false" final="false" visibility="public"
  78641. deprecated="not deprecated">
  78642. </method>
  78643. <method name="deepCompare"
  78644. abstract="false" native="false" synchronized="false"
  78645. static="false" final="false" visibility="public"
  78646. deprecated="not deprecated">
  78647. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78648. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78649. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78650. </method>
  78651. <doc>
  78652. <![CDATA[A {@link LoggedSingleRelativeRanking} represents an X-Y coordinate of a
  78653. single point in a discrete CDF.
  78654. All of the public methods are simply accessors for the instance variables we
  78655. want to write out in the JSON files.]]>
  78656. </doc>
  78657. </class>
  78658. <!-- end class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  78659. <!-- start class org.apache.hadoop.tools.rumen.LoggedTask -->
  78660. <class name="LoggedTask" extends="java.lang.Object"
  78661. abstract="false"
  78662. static="false" final="false" visibility="public"
  78663. deprecated="not deprecated">
  78664. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78665. <method name="setUnknownAttribute"
  78666. abstract="false" native="false" synchronized="false"
  78667. static="false" final="false" visibility="public"
  78668. deprecated="not deprecated">
  78669. <param name="attributeName" type="java.lang.String"/>
  78670. <param name="ignored" type="java.lang.Object"/>
  78671. </method>
  78672. <method name="getInputBytes" return="long"
  78673. abstract="false" native="false" synchronized="false"
  78674. static="false" final="false" visibility="public"
  78675. deprecated="not deprecated">
  78676. </method>
  78677. <method name="getInputRecords" return="long"
  78678. abstract="false" native="false" synchronized="false"
  78679. static="false" final="false" visibility="public"
  78680. deprecated="not deprecated">
  78681. </method>
  78682. <method name="getOutputBytes" return="long"
  78683. abstract="false" native="false" synchronized="false"
  78684. static="false" final="false" visibility="public"
  78685. deprecated="not deprecated">
  78686. </method>
  78687. <method name="getOutputRecords" return="long"
  78688. abstract="false" native="false" synchronized="false"
  78689. static="false" final="false" visibility="public"
  78690. deprecated="not deprecated">
  78691. </method>
  78692. <method name="getTaskID" return="java.lang.String"
  78693. abstract="false" native="false" synchronized="false"
  78694. static="false" final="false" visibility="public"
  78695. deprecated="not deprecated">
  78696. </method>
  78697. <method name="getStartTime" return="long"
  78698. abstract="false" native="false" synchronized="false"
  78699. static="false" final="false" visibility="public"
  78700. deprecated="not deprecated">
  78701. </method>
  78702. <method name="getFinishTime" return="long"
  78703. abstract="false" native="false" synchronized="false"
  78704. static="false" final="false" visibility="public"
  78705. deprecated="not deprecated">
  78706. </method>
  78707. <method name="getAttempts" return="java.util.List"
  78708. abstract="false" native="false" synchronized="false"
  78709. static="false" final="false" visibility="public"
  78710. deprecated="not deprecated">
  78711. </method>
  78712. <method name="getPreferredLocations" return="java.util.List"
  78713. abstract="false" native="false" synchronized="false"
  78714. static="false" final="false" visibility="public"
  78715. deprecated="not deprecated">
  78716. </method>
  78717. <method name="getTaskStatus" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78718. abstract="false" native="false" synchronized="false"
  78719. static="false" final="false" visibility="public"
  78720. deprecated="not deprecated">
  78721. </method>
  78722. <method name="getTaskType" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78723. abstract="false" native="false" synchronized="false"
  78724. static="false" final="false" visibility="public"
  78725. deprecated="not deprecated">
  78726. </method>
  78727. <method name="incorporateCounters"
  78728. abstract="false" native="false" synchronized="false"
  78729. static="false" final="false" visibility="public"
  78730. deprecated="not deprecated">
  78731. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  78732. </method>
  78733. <method name="deepCompare"
  78734. abstract="false" native="false" synchronized="false"
  78735. static="false" final="false" visibility="public"
  78736. deprecated="not deprecated">
  78737. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78738. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78739. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78740. </method>
  78741. <doc>
  78742. <![CDATA[A {@link LoggedTask} represents a [hadoop] task that is part of a hadoop job.
  78743. It knows about the [pssibly empty] sequence of attempts, its I/O footprint,
  78744. and its runtime.
  78745. All of the public methods are simply accessors for the instance variables we
  78746. want to write out in the JSON files.]]>
  78747. </doc>
  78748. </class>
  78749. <!-- end class org.apache.hadoop.tools.rumen.LoggedTask -->
  78750. <!-- start class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  78751. <class name="LoggedTaskAttempt" extends="java.lang.Object"
  78752. abstract="false"
  78753. static="false" final="false" visibility="public"
  78754. deprecated="not deprecated">
  78755. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78756. <method name="setUnknownAttribute"
  78757. abstract="false" native="false" synchronized="false"
  78758. static="false" final="false" visibility="public"
  78759. deprecated="not deprecated">
  78760. <param name="attributeName" type="java.lang.String"/>
  78761. <param name="ignored" type="java.lang.Object"/>
  78762. </method>
  78763. <method name="getShuffleFinished" return="long"
  78764. abstract="false" native="false" synchronized="false"
  78765. static="false" final="false" visibility="public"
  78766. deprecated="not deprecated">
  78767. </method>
  78768. <method name="getSortFinished" return="long"
  78769. abstract="false" native="false" synchronized="false"
  78770. static="false" final="false" visibility="public"
  78771. deprecated="not deprecated">
  78772. </method>
  78773. <method name="getAttemptID" return="java.lang.String"
  78774. abstract="false" native="false" synchronized="false"
  78775. static="false" final="false" visibility="public"
  78776. deprecated="not deprecated">
  78777. </method>
  78778. <method name="getResult" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  78779. abstract="false" native="false" synchronized="false"
  78780. static="false" final="false" visibility="public"
  78781. deprecated="not deprecated">
  78782. </method>
  78783. <method name="getStartTime" return="long"
  78784. abstract="false" native="false" synchronized="false"
  78785. static="false" final="false" visibility="public"
  78786. deprecated="not deprecated">
  78787. </method>
  78788. <method name="getFinishTime" return="long"
  78789. abstract="false" native="false" synchronized="false"
  78790. static="false" final="false" visibility="public"
  78791. deprecated="not deprecated">
  78792. </method>
  78793. <method name="getHostName" return="java.lang.String"
  78794. abstract="false" native="false" synchronized="false"
  78795. static="false" final="false" visibility="public"
  78796. deprecated="not deprecated">
  78797. </method>
  78798. <method name="getHdfsBytesRead" return="long"
  78799. abstract="false" native="false" synchronized="false"
  78800. static="false" final="false" visibility="public"
  78801. deprecated="not deprecated">
  78802. </method>
  78803. <method name="getHdfsBytesWritten" return="long"
  78804. abstract="false" native="false" synchronized="false"
  78805. static="false" final="false" visibility="public"
  78806. deprecated="not deprecated">
  78807. </method>
  78808. <method name="getFileBytesRead" return="long"
  78809. abstract="false" native="false" synchronized="false"
  78810. static="false" final="false" visibility="public"
  78811. deprecated="not deprecated">
  78812. </method>
  78813. <method name="getFileBytesWritten" return="long"
  78814. abstract="false" native="false" synchronized="false"
  78815. static="false" final="false" visibility="public"
  78816. deprecated="not deprecated">
  78817. </method>
  78818. <method name="getMapInputRecords" return="long"
  78819. abstract="false" native="false" synchronized="false"
  78820. static="false" final="false" visibility="public"
  78821. deprecated="not deprecated">
  78822. </method>
  78823. <method name="getMapOutputBytes" return="long"
  78824. abstract="false" native="false" synchronized="false"
  78825. static="false" final="false" visibility="public"
  78826. deprecated="not deprecated">
  78827. </method>
  78828. <method name="getMapOutputRecords" return="long"
  78829. abstract="false" native="false" synchronized="false"
  78830. static="false" final="false" visibility="public"
  78831. deprecated="not deprecated">
  78832. </method>
  78833. <method name="getCombineInputRecords" return="long"
  78834. abstract="false" native="false" synchronized="false"
  78835. static="false" final="false" visibility="public"
  78836. deprecated="not deprecated">
  78837. </method>
  78838. <method name="getReduceInputGroups" return="long"
  78839. abstract="false" native="false" synchronized="false"
  78840. static="false" final="false" visibility="public"
  78841. deprecated="not deprecated">
  78842. </method>
  78843. <method name="getReduceInputRecords" return="long"
  78844. abstract="false" native="false" synchronized="false"
  78845. static="false" final="false" visibility="public"
  78846. deprecated="not deprecated">
  78847. </method>
  78848. <method name="getReduceShuffleBytes" return="long"
  78849. abstract="false" native="false" synchronized="false"
  78850. static="false" final="false" visibility="public"
  78851. deprecated="not deprecated">
  78852. </method>
  78853. <method name="getReduceOutputRecords" return="long"
  78854. abstract="false" native="false" synchronized="false"
  78855. static="false" final="false" visibility="public"
  78856. deprecated="not deprecated">
  78857. </method>
  78858. <method name="getSpilledRecords" return="long"
  78859. abstract="false" native="false" synchronized="false"
  78860. static="false" final="false" visibility="public"
  78861. deprecated="not deprecated">
  78862. </method>
  78863. <method name="getLocation" return="org.apache.hadoop.tools.rumen.LoggedLocation"
  78864. abstract="false" native="false" synchronized="false"
  78865. static="false" final="false" visibility="public"
  78866. deprecated="not deprecated">
  78867. </method>
  78868. <method name="getMapInputBytes" return="long"
  78869. abstract="false" native="false" synchronized="false"
  78870. static="false" final="false" visibility="public"
  78871. deprecated="not deprecated">
  78872. </method>
  78873. <method name="incorporateCounters"
  78874. abstract="false" native="false" synchronized="false"
  78875. static="false" final="false" visibility="public"
  78876. deprecated="not deprecated">
  78877. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  78878. </method>
  78879. <method name="getResourceUsageMetrics" return="org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  78880. abstract="false" native="false" synchronized="false"
  78881. static="false" final="false" visibility="public"
  78882. deprecated="not deprecated">
  78883. </method>
  78884. <method name="deepCompare"
  78885. abstract="false" native="false" synchronized="false"
  78886. static="false" final="false" visibility="public"
  78887. deprecated="not deprecated">
  78888. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  78889. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  78890. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  78891. </method>
  78892. <doc>
  78893. <![CDATA[A {@link LoggedTaskAttempt} represents an attempt to run an hadoop task in a
  78894. hadoop job. Note that a task can have several attempts.
  78895. All of the public methods are simply accessors for the instance variables we
  78896. want to write out in the JSON files.]]>
  78897. </doc>
  78898. </class>
  78899. <!-- end class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  78900. <!-- start class org.apache.hadoop.tools.rumen.MachineNode -->
  78901. <class name="MachineNode" extends="org.apache.hadoop.tools.rumen.Node"
  78902. abstract="false"
  78903. static="false" final="true" visibility="public"
  78904. deprecated="not deprecated">
  78905. <method name="equals" return="boolean"
  78906. abstract="false" native="false" synchronized="false"
  78907. static="false" final="false" visibility="public"
  78908. deprecated="not deprecated">
  78909. <param name="obj" type="java.lang.Object"/>
  78910. </method>
  78911. <method name="hashCode" return="int"
  78912. abstract="false" native="false" synchronized="false"
  78913. static="false" final="false" visibility="public"
  78914. deprecated="not deprecated">
  78915. </method>
  78916. <method name="getMemory" return="long"
  78917. abstract="false" native="false" synchronized="false"
  78918. static="false" final="false" visibility="public"
  78919. deprecated="not deprecated">
  78920. <doc>
  78921. <![CDATA[Get the available physical RAM of the node.
  78922. @return The available physical RAM of the node, in KB.]]>
  78923. </doc>
  78924. </method>
  78925. <method name="getMapSlots" return="int"
  78926. abstract="false" native="false" synchronized="false"
  78927. static="false" final="false" visibility="public"
  78928. deprecated="not deprecated">
  78929. <doc>
  78930. <![CDATA[Get the number of map slots of the node.
  78931. @return The number of map slots of the node.]]>
  78932. </doc>
  78933. </method>
  78934. <method name="getReduceSlots" return="int"
  78935. abstract="false" native="false" synchronized="false"
  78936. static="false" final="false" visibility="public"
  78937. deprecated="not deprecated">
  78938. <doc>
  78939. <![CDATA[Get the number of reduce slots of the node.
  78940. @return The number of reduce slots fo the node.]]>
  78941. </doc>
  78942. </method>
  78943. <method name="getMemoryPerMapSlot" return="long"
  78944. abstract="false" native="false" synchronized="false"
  78945. static="false" final="false" visibility="public"
  78946. deprecated="not deprecated">
  78947. <doc>
  78948. <![CDATA[Get the amount of RAM reserved for each map slot.
  78949. @return the amount of RAM reserved for each map slot, in KB.]]>
  78950. </doc>
  78951. </method>
  78952. <method name="getMemoryPerReduceSlot" return="long"
  78953. abstract="false" native="false" synchronized="false"
  78954. static="false" final="false" visibility="public"
  78955. deprecated="not deprecated">
  78956. <doc>
  78957. <![CDATA[Get the amount of RAM reserved for each reduce slot.
  78958. @return the amount of RAM reserved for each reduce slot, in KB.]]>
  78959. </doc>
  78960. </method>
  78961. <method name="getNumCores" return="int"
  78962. abstract="false" native="false" synchronized="false"
  78963. static="false" final="false" visibility="public"
  78964. deprecated="not deprecated">
  78965. <doc>
  78966. <![CDATA[Get the number of cores of the node.
  78967. @return the number of cores of the node.]]>
  78968. </doc>
  78969. </method>
  78970. <method name="getRackNode" return="org.apache.hadoop.tools.rumen.RackNode"
  78971. abstract="false" native="false" synchronized="false"
  78972. static="false" final="false" visibility="public"
  78973. deprecated="not deprecated">
  78974. <doc>
  78975. <![CDATA[Get the rack node that the machine belongs to.
  78976. @return The rack node that the machine belongs to. Returns null if the
  78977. machine does not belong to any rack.]]>
  78978. </doc>
  78979. </method>
  78980. <method name="addChild" return="boolean"
  78981. abstract="false" native="false" synchronized="true"
  78982. static="false" final="false" visibility="public"
  78983. deprecated="not deprecated">
  78984. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  78985. </method>
  78986. <doc>
  78987. <![CDATA[{@link MachineNode} represents the configuration of a cluster node.
  78988. {@link MachineNode} should be constructed by {@link MachineNode.Builder}.]]>
  78989. </doc>
  78990. </class>
  78991. <!-- end class org.apache.hadoop.tools.rumen.MachineNode -->
  78992. <!-- start class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  78993. <class name="MachineNode.Builder" extends="java.lang.Object"
  78994. abstract="false"
  78995. static="true" final="true" visibility="public"
  78996. deprecated="not deprecated">
  78997. <constructor name="MachineNode.Builder" type="java.lang.String, int"
  78998. static="false" final="false" visibility="public"
  78999. deprecated="not deprecated">
  79000. <doc>
  79001. <![CDATA[Start building a new NodeInfo object.
  79002. @param name
  79003. Unique name of the node. Typically the fully qualified domain
  79004. name.]]>
  79005. </doc>
  79006. </constructor>
  79007. <method name="setMemory" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79008. abstract="false" native="false" synchronized="false"
  79009. static="false" final="false" visibility="public"
  79010. deprecated="not deprecated">
  79011. <param name="memory" type="long"/>
  79012. <doc>
  79013. <![CDATA[Set the physical memory of the node.
  79014. @param memory Available RAM in KB.]]>
  79015. </doc>
  79016. </method>
  79017. <method name="setMapSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79018. abstract="false" native="false" synchronized="false"
  79019. static="false" final="false" visibility="public"
  79020. deprecated="not deprecated">
  79021. <param name="mapSlots" type="int"/>
  79022. <doc>
  79023. <![CDATA[Set the number of map slot for the node.
  79024. @param mapSlots The number of map slots for the node.]]>
  79025. </doc>
  79026. </method>
  79027. <method name="setReduceSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79028. abstract="false" native="false" synchronized="false"
  79029. static="false" final="false" visibility="public"
  79030. deprecated="not deprecated">
  79031. <param name="reduceSlots" type="int"/>
  79032. <doc>
  79033. <![CDATA[Set the number of reduce slot for the node.
  79034. @param reduceSlots The number of reduce slots for the node.]]>
  79035. </doc>
  79036. </method>
  79037. <method name="setMemoryPerMapSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79038. abstract="false" native="false" synchronized="false"
  79039. static="false" final="false" visibility="public"
  79040. deprecated="not deprecated">
  79041. <param name="memoryPerMapSlot" type="long"/>
  79042. <doc>
  79043. <![CDATA[Set the amount of RAM reserved for each map slot.
  79044. @param memoryPerMapSlot The amount of RAM reserved for each map slot, in KB.]]>
  79045. </doc>
  79046. </method>
  79047. <method name="setMemoryPerReduceSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79048. abstract="false" native="false" synchronized="false"
  79049. static="false" final="false" visibility="public"
  79050. deprecated="not deprecated">
  79051. <param name="memoryPerReduceSlot" type="long"/>
  79052. <doc>
  79053. <![CDATA[Set the amount of RAM reserved for each reduce slot.
  79054. @param memoryPerReduceSlot The amount of RAM reserved for each reduce slot, in KB.]]>
  79055. </doc>
  79056. </method>
  79057. <method name="setNumCores" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79058. abstract="false" native="false" synchronized="false"
  79059. static="false" final="false" visibility="public"
  79060. deprecated="not deprecated">
  79061. <param name="numCores" type="int"/>
  79062. <doc>
  79063. <![CDATA[Set the number of cores for the node.
  79064. @param numCores Number of cores for the node.]]>
  79065. </doc>
  79066. </method>
  79067. <method name="cloneFrom" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  79068. abstract="false" native="false" synchronized="false"
  79069. static="false" final="false" visibility="public"
  79070. deprecated="not deprecated">
  79071. <param name="ref" type="org.apache.hadoop.tools.rumen.MachineNode"/>
  79072. <doc>
  79073. <![CDATA[Clone the settings from a reference {@link MachineNode} object.
  79074. @param ref The reference {@link MachineNode} object.]]>
  79075. </doc>
  79076. </method>
  79077. <method name="build" return="org.apache.hadoop.tools.rumen.MachineNode"
  79078. abstract="false" native="false" synchronized="false"
  79079. static="false" final="false" visibility="public"
  79080. deprecated="not deprecated">
  79081. <doc>
  79082. <![CDATA[Build the {@link MachineNode} object.
  79083. @return The {@link MachineNode} object being built.]]>
  79084. </doc>
  79085. </method>
  79086. <doc>
  79087. <![CDATA[Builder for a NodeInfo object]]>
  79088. </doc>
  79089. </class>
  79090. <!-- end class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  79091. <!-- start class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  79092. <class name="MapAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  79093. abstract="false"
  79094. static="false" final="false" visibility="public"
  79095. deprecated="not deprecated">
  79096. <constructor name="MapAttempt20LineHistoryEventEmitter"
  79097. static="false" final="false" visibility="protected"
  79098. deprecated="not deprecated">
  79099. </constructor>
  79100. </class>
  79101. <!-- end class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  79102. <!-- start class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  79103. <class name="MapAttemptFinishedEvent" extends="java.lang.Object"
  79104. abstract="false"
  79105. static="false" final="false" visibility="public"
  79106. deprecated="not deprecated">
  79107. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  79108. <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"
  79109. static="false" final="false" visibility="public"
  79110. deprecated="not deprecated">
  79111. <doc>
  79112. <![CDATA[Create an event for successful completion of map attempts
  79113. @param id Task Attempt ID
  79114. @param taskType Type of the task
  79115. @param taskStatus Status of the task
  79116. @param mapFinishTime Finish time of the map phase
  79117. @param finishTime Finish time of the attempt
  79118. @param hostname Name of the host where the map executed
  79119. @param state State string for the attempt
  79120. @param counters Counters for the attempt]]>
  79121. </doc>
  79122. </constructor>
  79123. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  79124. abstract="false" native="false" synchronized="false"
  79125. static="false" final="false" visibility="public"
  79126. deprecated="not deprecated">
  79127. <doc>
  79128. <![CDATA[Get the task ID]]>
  79129. </doc>
  79130. </method>
  79131. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  79132. abstract="false" native="false" synchronized="false"
  79133. static="false" final="false" visibility="public"
  79134. deprecated="not deprecated">
  79135. <doc>
  79136. <![CDATA[Get the attempt id]]>
  79137. </doc>
  79138. </method>
  79139. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  79140. abstract="false" native="false" synchronized="false"
  79141. static="false" final="false" visibility="public"
  79142. deprecated="not deprecated">
  79143. <doc>
  79144. <![CDATA[Get the task type]]>
  79145. </doc>
  79146. </method>
  79147. <method name="getTaskStatus" return="java.lang.String"
  79148. abstract="false" native="false" synchronized="false"
  79149. static="false" final="false" visibility="public"
  79150. deprecated="not deprecated">
  79151. <doc>
  79152. <![CDATA[Get the task status]]>
  79153. </doc>
  79154. </method>
  79155. <method name="getMapFinishTime" return="long"
  79156. abstract="false" native="false" synchronized="false"
  79157. static="false" final="false" visibility="public"
  79158. deprecated="not deprecated">
  79159. <doc>
  79160. <![CDATA[Get the map phase finish time]]>
  79161. </doc>
  79162. </method>
  79163. <method name="getFinishTime" return="long"
  79164. abstract="false" native="false" synchronized="false"
  79165. static="false" final="false" visibility="public"
  79166. deprecated="not deprecated">
  79167. <doc>
  79168. <![CDATA[Get the attempt finish time]]>
  79169. </doc>
  79170. </method>
  79171. <method name="getHostname" return="java.lang.String"
  79172. abstract="false" native="false" synchronized="false"
  79173. static="false" final="false" visibility="public"
  79174. deprecated="not deprecated">
  79175. <doc>
  79176. <![CDATA[Get the host name]]>
  79177. </doc>
  79178. </method>
  79179. <method name="getState" return="java.lang.String"
  79180. abstract="false" native="false" synchronized="false"
  79181. static="false" final="false" visibility="public"
  79182. deprecated="not deprecated">
  79183. <doc>
  79184. <![CDATA[Get the state string]]>
  79185. </doc>
  79186. </method>
  79187. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  79188. abstract="false" native="false" synchronized="false"
  79189. static="false" final="false" visibility="public"
  79190. deprecated="not deprecated">
  79191. <doc>
  79192. <![CDATA[Get the counters]]>
  79193. </doc>
  79194. </method>
  79195. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  79196. abstract="false" native="false" synchronized="false"
  79197. static="false" final="false" visibility="public"
  79198. deprecated="not deprecated">
  79199. <doc>
  79200. <![CDATA[Get the event type]]>
  79201. </doc>
  79202. </method>
  79203. <doc>
  79204. <![CDATA[Event to record successful completion of a map attempt]]>
  79205. </doc>
  79206. </class>
  79207. <!-- end class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  79208. <!-- start class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  79209. <class name="MapTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  79210. abstract="false"
  79211. static="false" final="false" visibility="public"
  79212. deprecated="not deprecated">
  79213. <constructor name="MapTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long"
  79214. static="false" final="false" visibility="public"
  79215. deprecated="not deprecated">
  79216. </constructor>
  79217. <method name="getRuntime" return="long"
  79218. abstract="false" native="false" synchronized="false"
  79219. static="false" final="false" visibility="public"
  79220. deprecated="not deprecated">
  79221. </method>
  79222. <method name="getMapRuntime" return="long"
  79223. abstract="false" native="false" synchronized="false"
  79224. static="false" final="false" visibility="public"
  79225. deprecated="not deprecated">
  79226. <doc>
  79227. <![CDATA[Get the runtime for the <b>map</b> phase of the map-task attempt.
  79228. @return the runtime for the <b>map</b> phase of the map-task attempt]]>
  79229. </doc>
  79230. </method>
  79231. <doc>
  79232. <![CDATA[{@link MapTaskAttemptInfo} represents the information with regard to a
  79233. map task attempt.]]>
  79234. </doc>
  79235. </class>
  79236. <!-- end class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  79237. <!-- start class org.apache.hadoop.tools.rumen.Node -->
  79238. <class name="Node" extends="java.lang.Object"
  79239. abstract="false"
  79240. static="false" final="false" visibility="public"
  79241. deprecated="not deprecated">
  79242. <implements name="java.lang.Comparable"/>
  79243. <constructor name="Node" type="java.lang.String, int"
  79244. static="false" final="false" visibility="public"
  79245. deprecated="not deprecated">
  79246. <doc>
  79247. <![CDATA[@param name
  79248. A unique name to identify a node in the cluster.
  79249. @param level
  79250. The level of the node in the cluster]]>
  79251. </doc>
  79252. </constructor>
  79253. <method name="getName" return="java.lang.String"
  79254. abstract="false" native="false" synchronized="false"
  79255. static="false" final="false" visibility="public"
  79256. deprecated="not deprecated">
  79257. <doc>
  79258. <![CDATA[Get the name of the node.
  79259. @return The name of the node.]]>
  79260. </doc>
  79261. </method>
  79262. <method name="getLevel" return="int"
  79263. abstract="false" native="false" synchronized="false"
  79264. static="false" final="false" visibility="public"
  79265. deprecated="not deprecated">
  79266. <doc>
  79267. <![CDATA[Get the level of the node.
  79268. @return The level of the node.]]>
  79269. </doc>
  79270. </method>
  79271. <method name="addChild" return="boolean"
  79272. abstract="false" native="false" synchronized="true"
  79273. static="false" final="false" visibility="public"
  79274. deprecated="not deprecated">
  79275. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  79276. <doc>
  79277. <![CDATA[Add a child node to this node.
  79278. @param child The child node to be added. The child node should currently not be belong to another cluster topology.
  79279. @return Boolean indicating whether the node is successfully added.]]>
  79280. </doc>
  79281. </method>
  79282. <method name="hasChildren" return="boolean"
  79283. abstract="false" native="false" synchronized="true"
  79284. static="false" final="false" visibility="public"
  79285. deprecated="not deprecated">
  79286. <doc>
  79287. <![CDATA[Does this node have any children?
  79288. @return Boolean indicate whether this node has any children.]]>
  79289. </doc>
  79290. </method>
  79291. <method name="getChildren" return="java.util.Set"
  79292. abstract="false" native="false" synchronized="true"
  79293. static="false" final="false" visibility="public"
  79294. deprecated="not deprecated">
  79295. <doc>
  79296. <![CDATA[Get the children of this node.
  79297. @return The children of this node. If no child, an empty set will be
  79298. returned. The returned set is read-only.]]>
  79299. </doc>
  79300. </method>
  79301. <method name="getParent" return="org.apache.hadoop.tools.rumen.Node"
  79302. abstract="false" native="false" synchronized="false"
  79303. static="false" final="false" visibility="public"
  79304. deprecated="not deprecated">
  79305. <doc>
  79306. <![CDATA[Get the parent node.
  79307. @return the parent node. If root node, return null.]]>
  79308. </doc>
  79309. </method>
  79310. <method name="hashCode" return="int"
  79311. abstract="false" native="false" synchronized="false"
  79312. static="false" final="false" visibility="public"
  79313. deprecated="not deprecated">
  79314. </method>
  79315. <method name="equals" return="boolean"
  79316. abstract="false" native="false" synchronized="false"
  79317. static="false" final="false" visibility="public"
  79318. deprecated="not deprecated">
  79319. <param name="obj" type="java.lang.Object"/>
  79320. </method>
  79321. <method name="toString" return="java.lang.String"
  79322. abstract="false" native="false" synchronized="false"
  79323. static="false" final="false" visibility="public"
  79324. deprecated="not deprecated">
  79325. </method>
  79326. <method name="compareTo" return="int"
  79327. abstract="false" native="false" synchronized="false"
  79328. static="false" final="false" visibility="public"
  79329. deprecated="not deprecated">
  79330. <param name="o" type="org.apache.hadoop.tools.rumen.Node"/>
  79331. </method>
  79332. <doc>
  79333. <![CDATA[{@link Node} represents a node in the cluster topology. A node can be a
  79334. {@link MachineNode}, or a {@link RackNode}, etc.]]>
  79335. </doc>
  79336. </class>
  79337. <!-- end class org.apache.hadoop.tools.rumen.Node -->
  79338. <!-- start interface org.apache.hadoop.tools.rumen.Outputter -->
  79339. <interface name="Outputter" abstract="true"
  79340. static="false" final="false" visibility="public"
  79341. deprecated="not deprecated">
  79342. <implements name="java.io.Closeable"/>
  79343. <method name="init"
  79344. abstract="false" native="false" synchronized="false"
  79345. static="false" final="false" visibility="public"
  79346. deprecated="not deprecated">
  79347. <param name="path" type="org.apache.hadoop.fs.Path"/>
  79348. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  79349. <exception name="IOException" type="java.io.IOException"/>
  79350. <doc>
  79351. <![CDATA[Initialize the {@link Outputter} to a specific path.
  79352. @param path The {@link Path} to the output file.
  79353. @param conf Configuration
  79354. @throws IOException]]>
  79355. </doc>
  79356. </method>
  79357. <method name="output"
  79358. abstract="false" native="false" synchronized="false"
  79359. static="false" final="false" visibility="public"
  79360. deprecated="not deprecated">
  79361. <param name="object" type="java.lang.Object"/>
  79362. <exception name="IOException" type="java.io.IOException"/>
  79363. <doc>
  79364. <![CDATA[Output an object.
  79365. @param object The objecte.
  79366. @throws IOException]]>
  79367. </doc>
  79368. </method>
  79369. <doc>
  79370. <![CDATA[Interface to output a sequence of objects of type T.]]>
  79371. </doc>
  79372. </interface>
  79373. <!-- end interface org.apache.hadoop.tools.rumen.Outputter -->
  79374. <!-- start class org.apache.hadoop.tools.rumen.ParsedJob -->
  79375. <class name="ParsedJob" extends="org.apache.hadoop.tools.rumen.LoggedJob"
  79376. abstract="false"
  79377. static="false" final="false" visibility="public"
  79378. deprecated="not deprecated">
  79379. <method name="obtainTotalCounters" return="java.util.Map"
  79380. abstract="false" native="false" synchronized="false"
  79381. static="false" final="false" visibility="public"
  79382. deprecated="not deprecated">
  79383. <doc>
  79384. <![CDATA[@return the job total counters]]>
  79385. </doc>
  79386. </method>
  79387. <method name="obtainMapCounters" return="java.util.Map"
  79388. abstract="false" native="false" synchronized="false"
  79389. static="false" final="false" visibility="public"
  79390. deprecated="not deprecated">
  79391. <doc>
  79392. <![CDATA[@return the job level map tasks' counters]]>
  79393. </doc>
  79394. </method>
  79395. <method name="obtainReduceCounters" return="java.util.Map"
  79396. abstract="false" native="false" synchronized="false"
  79397. static="false" final="false" visibility="public"
  79398. deprecated="not deprecated">
  79399. <doc>
  79400. <![CDATA[@return the job level reduce tasks' counters]]>
  79401. </doc>
  79402. </method>
  79403. <method name="obtainJobConfpath" return="java.lang.String"
  79404. abstract="false" native="false" synchronized="false"
  79405. static="false" final="false" visibility="public"
  79406. deprecated="not deprecated">
  79407. <doc>
  79408. <![CDATA[@return the job conf path in staging dir on hdfs]]>
  79409. </doc>
  79410. </method>
  79411. <method name="obtainJobAcls" return="java.util.Map"
  79412. abstract="false" native="false" synchronized="false"
  79413. static="false" final="false" visibility="public"
  79414. deprecated="not deprecated">
  79415. <doc>
  79416. <![CDATA[@return the job acls]]>
  79417. </doc>
  79418. </method>
  79419. <method name="obtainMapTasks" return="java.util.List"
  79420. abstract="false" native="false" synchronized="false"
  79421. static="false" final="false" visibility="public"
  79422. deprecated="not deprecated">
  79423. <doc>
  79424. <![CDATA[@return the list of map tasks of this job]]>
  79425. </doc>
  79426. </method>
  79427. <method name="obtainReduceTasks" return="java.util.List"
  79428. abstract="false" native="false" synchronized="false"
  79429. static="false" final="false" visibility="public"
  79430. deprecated="not deprecated">
  79431. <doc>
  79432. <![CDATA[@return the list of reduce tasks of this job]]>
  79433. </doc>
  79434. </method>
  79435. <method name="obtainOtherTasks" return="java.util.List"
  79436. abstract="false" native="false" synchronized="false"
  79437. static="false" final="false" visibility="public"
  79438. deprecated="not deprecated">
  79439. <doc>
  79440. <![CDATA[@return the list of other tasks of this job]]>
  79441. </doc>
  79442. </method>
  79443. <doc>
  79444. <![CDATA[This is a wrapper class around {@link LoggedJob}. This provides also the
  79445. extra information about the job obtained from job history which is not
  79446. written to the JSON trace file.]]>
  79447. </doc>
  79448. </class>
  79449. <!-- end class org.apache.hadoop.tools.rumen.ParsedJob -->
  79450. <!-- start class org.apache.hadoop.tools.rumen.ParsedTask -->
  79451. <class name="ParsedTask" extends="org.apache.hadoop.tools.rumen.LoggedTask"
  79452. abstract="false"
  79453. static="false" final="false" visibility="public"
  79454. deprecated="not deprecated">
  79455. <method name="incorporateCounters"
  79456. abstract="false" native="false" synchronized="false"
  79457. static="false" final="false" visibility="public"
  79458. deprecated="not deprecated">
  79459. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  79460. </method>
  79461. <method name="putCounters"
  79462. abstract="false" native="false" synchronized="false"
  79463. static="false" final="false" visibility="public"
  79464. deprecated="not deprecated">
  79465. <param name="counters" type="java.util.Map"/>
  79466. <doc>
  79467. <![CDATA[Set the task counters]]>
  79468. </doc>
  79469. </method>
  79470. <method name="obtainCounters" return="java.util.Map"
  79471. abstract="false" native="false" synchronized="false"
  79472. static="false" final="false" visibility="public"
  79473. deprecated="not deprecated">
  79474. <doc>
  79475. <![CDATA[@return the task counters]]>
  79476. </doc>
  79477. </method>
  79478. <method name="putDiagnosticInfo"
  79479. abstract="false" native="false" synchronized="false"
  79480. static="false" final="false" visibility="public"
  79481. deprecated="not deprecated">
  79482. <param name="msg" type="java.lang.String"/>
  79483. <doc>
  79484. <![CDATA[Set the task diagnostic-info]]>
  79485. </doc>
  79486. </method>
  79487. <method name="obtainDiagnosticInfo" return="java.lang.String"
  79488. abstract="false" native="false" synchronized="false"
  79489. static="false" final="false" visibility="public"
  79490. deprecated="not deprecated">
  79491. <doc>
  79492. <![CDATA[@return the diagnostic-info of this task.
  79493. If the task is successful, returns null.]]>
  79494. </doc>
  79495. </method>
  79496. <method name="putFailedDueToAttemptId"
  79497. abstract="false" native="false" synchronized="false"
  79498. static="false" final="false" visibility="public"
  79499. deprecated="not deprecated">
  79500. <param name="attempt" type="java.lang.String"/>
  79501. <doc>
  79502. <![CDATA[Set the failed-due-to-attemptId info of this task.]]>
  79503. </doc>
  79504. </method>
  79505. <method name="obtainFailedDueToAttemptId" return="java.lang.String"
  79506. abstract="false" native="false" synchronized="false"
  79507. static="false" final="false" visibility="public"
  79508. deprecated="not deprecated">
  79509. <doc>
  79510. <![CDATA[@return the failed-due-to-attemptId info of this task.
  79511. If the task is successful, returns null.]]>
  79512. </doc>
  79513. </method>
  79514. <method name="obtainTaskAttempts" return="java.util.List"
  79515. abstract="false" native="false" synchronized="false"
  79516. static="false" final="false" visibility="public"
  79517. deprecated="not deprecated">
  79518. </method>
  79519. <doc>
  79520. <![CDATA[This is a wrapper class around {@link LoggedTask}. This provides also the
  79521. extra information about the task obtained from job history which is not
  79522. written to the JSON trace file.]]>
  79523. </doc>
  79524. </class>
  79525. <!-- end class org.apache.hadoop.tools.rumen.ParsedTask -->
  79526. <!-- start class org.apache.hadoop.tools.rumen.ParsedTaskAttempt -->
  79527. <class name="ParsedTaskAttempt" extends="org.apache.hadoop.tools.rumen.LoggedTaskAttempt"
  79528. abstract="false"
  79529. static="false" final="false" visibility="public"
  79530. deprecated="not deprecated">
  79531. <method name="incorporateCounters"
  79532. abstract="false" native="false" synchronized="false"
  79533. static="false" final="false" visibility="public"
  79534. deprecated="not deprecated">
  79535. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  79536. <doc>
  79537. <![CDATA[incorporate event counters]]>
  79538. </doc>
  79539. </method>
  79540. <method name="putCounters"
  79541. abstract="false" native="false" synchronized="false"
  79542. static="false" final="false" visibility="public"
  79543. deprecated="not deprecated">
  79544. <param name="counters" type="java.util.Map"/>
  79545. <doc>
  79546. <![CDATA[Set the task attempt counters]]>
  79547. </doc>
  79548. </method>
  79549. <method name="obtainCounters" return="java.util.Map"
  79550. abstract="false" native="false" synchronized="false"
  79551. static="false" final="false" visibility="public"
  79552. deprecated="not deprecated">
  79553. <doc>
  79554. <![CDATA[@return the task attempt counters]]>
  79555. </doc>
  79556. </method>
  79557. <method name="putDiagnosticInfo"
  79558. abstract="false" native="false" synchronized="false"
  79559. static="false" final="false" visibility="public"
  79560. deprecated="not deprecated">
  79561. <param name="msg" type="java.lang.String"/>
  79562. <doc>
  79563. <![CDATA[Set the task attempt diagnostic-info]]>
  79564. </doc>
  79565. </method>
  79566. <method name="obtainDiagnosticInfo" return="java.lang.String"
  79567. abstract="false" native="false" synchronized="false"
  79568. static="false" final="false" visibility="public"
  79569. deprecated="not deprecated">
  79570. <doc>
  79571. <![CDATA[@return the diagnostic-info of this task attempt.
  79572. If the attempt is successful, returns null.]]>
  79573. </doc>
  79574. </method>
  79575. <method name="obtainTrackerName" return="java.lang.String"
  79576. abstract="false" native="false" synchronized="false"
  79577. static="false" final="false" visibility="public"
  79578. deprecated="not deprecated">
  79579. <doc>
  79580. <![CDATA[@return the tracker name where the attempt was run.]]>
  79581. </doc>
  79582. </method>
  79583. <method name="obtainHttpPort" return="java.lang.Integer"
  79584. abstract="false" native="false" synchronized="false"
  79585. static="false" final="false" visibility="public"
  79586. deprecated="not deprecated">
  79587. <doc>
  79588. <![CDATA[@return http port if set. Returns null otherwise.]]>
  79589. </doc>
  79590. </method>
  79591. <method name="obtainStateString" return="java.lang.String"
  79592. abstract="false" native="false" synchronized="false"
  79593. static="false" final="false" visibility="public"
  79594. deprecated="not deprecated">
  79595. <doc>
  79596. <![CDATA[@return state string of the task attempt.]]>
  79597. </doc>
  79598. </method>
  79599. <doc>
  79600. <![CDATA[This is a wrapper class around {@link LoggedTaskAttempt}. This provides
  79601. also the extra information about the task attempt obtained from
  79602. job history which is not written to the JSON trace file.]]>
  79603. </doc>
  79604. </class>
  79605. <!-- end class org.apache.hadoop.tools.rumen.ParsedTaskAttempt -->
  79606. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  79607. <class name="Pre21JobHistoryConstants" extends="java.lang.Object"
  79608. abstract="false"
  79609. static="false" final="false" visibility="public"
  79610. deprecated="not deprecated">
  79611. <constructor name="Pre21JobHistoryConstants"
  79612. static="false" final="false" visibility="public"
  79613. deprecated="not deprecated">
  79614. </constructor>
  79615. </class>
  79616. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  79617. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  79618. <class name="Pre21JobHistoryConstants.Values" extends="java.lang.Enum"
  79619. abstract="false"
  79620. static="true" final="true" visibility="public"
  79621. deprecated="not deprecated">
  79622. <method name="values" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values[]"
  79623. abstract="false" native="false" synchronized="false"
  79624. static="true" final="false" visibility="public"
  79625. deprecated="not deprecated">
  79626. </method>
  79627. <method name="valueOf" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79628. abstract="false" native="false" synchronized="false"
  79629. static="true" final="false" visibility="public"
  79630. deprecated="not deprecated">
  79631. <param name="name" type="java.lang.String"/>
  79632. </method>
  79633. <field name="SUCCESS" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79634. transient="false" volatile="false"
  79635. static="true" final="true" visibility="public"
  79636. deprecated="not deprecated">
  79637. </field>
  79638. <field name="FAILED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79639. transient="false" volatile="false"
  79640. static="true" final="true" visibility="public"
  79641. deprecated="not deprecated">
  79642. </field>
  79643. <field name="KILLED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79644. transient="false" volatile="false"
  79645. static="true" final="true" visibility="public"
  79646. deprecated="not deprecated">
  79647. </field>
  79648. <field name="MAP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79649. transient="false" volatile="false"
  79650. static="true" final="true" visibility="public"
  79651. deprecated="not deprecated">
  79652. </field>
  79653. <field name="REDUCE" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79654. transient="false" volatile="false"
  79655. static="true" final="true" visibility="public"
  79656. deprecated="not deprecated">
  79657. </field>
  79658. <field name="CLEANUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79659. transient="false" volatile="false"
  79660. static="true" final="true" visibility="public"
  79661. deprecated="not deprecated">
  79662. </field>
  79663. <field name="RUNNING" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79664. transient="false" volatile="false"
  79665. static="true" final="true" visibility="public"
  79666. deprecated="not deprecated">
  79667. </field>
  79668. <field name="PREP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79669. transient="false" volatile="false"
  79670. static="true" final="true" visibility="public"
  79671. deprecated="not deprecated">
  79672. </field>
  79673. <field name="SETUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  79674. transient="false" volatile="false"
  79675. static="true" final="true" visibility="public"
  79676. deprecated="not deprecated">
  79677. </field>
  79678. <doc>
  79679. <![CDATA[This enum contains some of the values commonly used by history log events.
  79680. since values in history can only be strings - Values.name() is used in
  79681. most places in history file.]]>
  79682. </doc>
  79683. </class>
  79684. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  79685. <!-- start class org.apache.hadoop.tools.rumen.RackNode -->
  79686. <class name="RackNode" extends="org.apache.hadoop.tools.rumen.Node"
  79687. abstract="false"
  79688. static="false" final="true" visibility="public"
  79689. deprecated="not deprecated">
  79690. <constructor name="RackNode" type="java.lang.String, int"
  79691. static="false" final="false" visibility="public"
  79692. deprecated="not deprecated">
  79693. </constructor>
  79694. <method name="addChild" return="boolean"
  79695. abstract="false" native="false" synchronized="true"
  79696. static="false" final="false" visibility="public"
  79697. deprecated="not deprecated">
  79698. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  79699. </method>
  79700. <method name="getMachinesInRack" return="java.util.Set"
  79701. abstract="false" native="false" synchronized="false"
  79702. static="false" final="false" visibility="public"
  79703. deprecated="not deprecated">
  79704. <doc>
  79705. <![CDATA[Get the machine nodes that belong to the rack.
  79706. @return The machine nodes that belong to the rack.]]>
  79707. </doc>
  79708. </method>
  79709. <doc>
  79710. <![CDATA[{@link RackNode} represents a rack node in the cluster topology.]]>
  79711. </doc>
  79712. </class>
  79713. <!-- end class org.apache.hadoop.tools.rumen.RackNode -->
  79714. <!-- start class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  79715. <class name="RandomSeedGenerator" extends="java.lang.Object"
  79716. abstract="false"
  79717. static="false" final="false" visibility="public"
  79718. deprecated="not deprecated">
  79719. <constructor name="RandomSeedGenerator"
  79720. static="false" final="false" visibility="public"
  79721. deprecated="not deprecated">
  79722. </constructor>
  79723. <method name="getSeed" return="long"
  79724. abstract="false" native="false" synchronized="false"
  79725. static="true" final="false" visibility="public"
  79726. deprecated="not deprecated">
  79727. <param name="streamId" type="java.lang.String"/>
  79728. <param name="masterSeed" type="long"/>
  79729. <doc>
  79730. <![CDATA[Generates a new random seed.
  79731. @param streamId a string identifying the stream of random numbers
  79732. @param masterSeed higher level master random seed
  79733. @return the random seed. Different (streamId, masterSeed) pairs result in
  79734. (vastly) different random seeds.]]>
  79735. </doc>
  79736. </method>
  79737. <doc>
  79738. <![CDATA[The purpose of this class is to generate new random seeds from a master
  79739. seed. This is needed to make the Random().next*() calls in rumen and mumak
  79740. deterministic so that mumak simulations become deterministically replayable.
  79741. In these tools we need many independent streams of random numbers, some of
  79742. which are created dynamically. We seed these streams with the sub-seeds
  79743. returned by RandomSeedGenerator.
  79744. For a slightly more complicated approach to generating multiple streams of
  79745. random numbers with better theoretical guarantees, see
  79746. P. L'Ecuyer, R. Simard, E. J. Chen, and W. D. Kelton,
  79747. ``An Objected-Oriented Random-Number Package with Many Long Streams and
  79748. Substreams'', Operations Research, 50, 6 (2002), 1073--1075
  79749. http://www.iro.umontreal.ca/~lecuyer/papers.html
  79750. http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/]]>
  79751. </doc>
  79752. </class>
  79753. <!-- end class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  79754. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  79755. <class name="ReduceAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  79756. abstract="false"
  79757. static="false" final="false" visibility="public"
  79758. deprecated="not deprecated">
  79759. </class>
  79760. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  79761. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  79762. <class name="ReduceAttemptFinishedEvent" extends="java.lang.Object"
  79763. abstract="false"
  79764. static="false" final="false" visibility="public"
  79765. deprecated="not deprecated">
  79766. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  79767. <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"
  79768. static="false" final="false" visibility="public"
  79769. deprecated="not deprecated">
  79770. <doc>
  79771. <![CDATA[Create an event to record completion of a reduce attempt
  79772. @param id Attempt Id
  79773. @param taskType Type of task
  79774. @param taskStatus Status of the task
  79775. @param shuffleFinishTime Finish time of the shuffle phase
  79776. @param sortFinishTime Finish time of the sort phase
  79777. @param finishTime Finish time of the attempt
  79778. @param hostname Name of the host where the attempt executed
  79779. @param state State of the attempt
  79780. @param counters Counters for the attempt]]>
  79781. </doc>
  79782. </constructor>
  79783. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  79784. abstract="false" native="false" synchronized="false"
  79785. static="false" final="false" visibility="public"
  79786. deprecated="not deprecated">
  79787. <doc>
  79788. <![CDATA[Get the Task ID]]>
  79789. </doc>
  79790. </method>
  79791. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  79792. abstract="false" native="false" synchronized="false"
  79793. static="false" final="false" visibility="public"
  79794. deprecated="not deprecated">
  79795. <doc>
  79796. <![CDATA[Get the attempt id]]>
  79797. </doc>
  79798. </method>
  79799. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  79800. abstract="false" native="false" synchronized="false"
  79801. static="false" final="false" visibility="public"
  79802. deprecated="not deprecated">
  79803. <doc>
  79804. <![CDATA[Get the task type]]>
  79805. </doc>
  79806. </method>
  79807. <method name="getTaskStatus" return="java.lang.String"
  79808. abstract="false" native="false" synchronized="false"
  79809. static="false" final="false" visibility="public"
  79810. deprecated="not deprecated">
  79811. <doc>
  79812. <![CDATA[Get the task status]]>
  79813. </doc>
  79814. </method>
  79815. <method name="getSortFinishTime" return="long"
  79816. abstract="false" native="false" synchronized="false"
  79817. static="false" final="false" visibility="public"
  79818. deprecated="not deprecated">
  79819. <doc>
  79820. <![CDATA[Get the finish time of the sort phase]]>
  79821. </doc>
  79822. </method>
  79823. <method name="getShuffleFinishTime" return="long"
  79824. abstract="false" native="false" synchronized="false"
  79825. static="false" final="false" visibility="public"
  79826. deprecated="not deprecated">
  79827. <doc>
  79828. <![CDATA[Get the finish time of the shuffle phase]]>
  79829. </doc>
  79830. </method>
  79831. <method name="getFinishTime" return="long"
  79832. abstract="false" native="false" synchronized="false"
  79833. static="false" final="false" visibility="public"
  79834. deprecated="not deprecated">
  79835. <doc>
  79836. <![CDATA[Get the finish time of the attempt]]>
  79837. </doc>
  79838. </method>
  79839. <method name="getHostname" return="java.lang.String"
  79840. abstract="false" native="false" synchronized="false"
  79841. static="false" final="false" visibility="public"
  79842. deprecated="not deprecated">
  79843. <doc>
  79844. <![CDATA[Get the name of the host where the attempt ran]]>
  79845. </doc>
  79846. </method>
  79847. <method name="getState" return="java.lang.String"
  79848. abstract="false" native="false" synchronized="false"
  79849. static="false" final="false" visibility="public"
  79850. deprecated="not deprecated">
  79851. <doc>
  79852. <![CDATA[Get the state string]]>
  79853. </doc>
  79854. </method>
  79855. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  79856. abstract="false" native="false" synchronized="false"
  79857. static="false" final="false" visibility="public"
  79858. deprecated="not deprecated">
  79859. <doc>
  79860. <![CDATA[Get the counters for the attempt]]>
  79861. </doc>
  79862. </method>
  79863. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  79864. abstract="false" native="false" synchronized="false"
  79865. static="false" final="false" visibility="public"
  79866. deprecated="not deprecated">
  79867. <doc>
  79868. <![CDATA[Get the event type]]>
  79869. </doc>
  79870. </method>
  79871. <doc>
  79872. <![CDATA[Event to record successful completion of a reduce attempt]]>
  79873. </doc>
  79874. </class>
  79875. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  79876. <!-- start class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  79877. <class name="ReduceTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  79878. abstract="false"
  79879. static="false" final="false" visibility="public"
  79880. deprecated="not deprecated">
  79881. <constructor name="ReduceTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long, long, long"
  79882. static="false" final="false" visibility="public"
  79883. deprecated="not deprecated">
  79884. </constructor>
  79885. <method name="getReduceRuntime" return="long"
  79886. abstract="false" native="false" synchronized="false"
  79887. static="false" final="false" visibility="public"
  79888. deprecated="not deprecated">
  79889. <doc>
  79890. <![CDATA[Get the runtime for the <b>reduce</b> phase of the reduce task-attempt.
  79891. @return the runtime for the <b>reduce</b> phase of the reduce task-attempt]]>
  79892. </doc>
  79893. </method>
  79894. <method name="getShuffleRuntime" return="long"
  79895. abstract="false" native="false" synchronized="false"
  79896. static="false" final="false" visibility="public"
  79897. deprecated="not deprecated">
  79898. <doc>
  79899. <![CDATA[Get the runtime for the <b>shuffle</b> phase of the reduce task-attempt.
  79900. @return the runtime for the <b>shuffle</b> phase of the reduce task-attempt]]>
  79901. </doc>
  79902. </method>
  79903. <method name="getMergeRuntime" return="long"
  79904. abstract="false" native="false" synchronized="false"
  79905. static="false" final="false" visibility="public"
  79906. deprecated="not deprecated">
  79907. <doc>
  79908. <![CDATA[Get the runtime for the <b>merge</b> phase of the reduce task-attempt
  79909. @return the runtime for the <b>merge</b> phase of the reduce task-attempt]]>
  79910. </doc>
  79911. </method>
  79912. <method name="getRuntime" return="long"
  79913. abstract="false" native="false" synchronized="false"
  79914. static="false" final="false" visibility="public"
  79915. deprecated="not deprecated">
  79916. </method>
  79917. <doc>
  79918. <![CDATA[{@link ReduceTaskAttemptInfo} represents the information with regard to a
  79919. reduce task attempt.]]>
  79920. </doc>
  79921. </class>
  79922. <!-- end class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  79923. <!-- start class org.apache.hadoop.tools.rumen.ResourceUsageMetrics -->
  79924. <class name="ResourceUsageMetrics" extends="java.lang.Object"
  79925. abstract="false"
  79926. static="false" final="false" visibility="public"
  79927. deprecated="not deprecated">
  79928. <implements name="org.apache.hadoop.io.Writable"/>
  79929. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  79930. <constructor name="ResourceUsageMetrics"
  79931. static="false" final="false" visibility="public"
  79932. deprecated="not deprecated">
  79933. </constructor>
  79934. <method name="getCumulativeCpuUsage" return="long"
  79935. abstract="false" native="false" synchronized="false"
  79936. static="false" final="false" visibility="public"
  79937. deprecated="not deprecated">
  79938. <doc>
  79939. <![CDATA[Get the cumulative CPU usage.]]>
  79940. </doc>
  79941. </method>
  79942. <method name="setCumulativeCpuUsage"
  79943. abstract="false" native="false" synchronized="false"
  79944. static="false" final="false" visibility="public"
  79945. deprecated="not deprecated">
  79946. <param name="usage" type="long"/>
  79947. <doc>
  79948. <![CDATA[Set the cumulative CPU usage.]]>
  79949. </doc>
  79950. </method>
  79951. <method name="getVirtualMemoryUsage" return="long"
  79952. abstract="false" native="false" synchronized="false"
  79953. static="false" final="false" visibility="public"
  79954. deprecated="not deprecated">
  79955. <doc>
  79956. <![CDATA[Get the virtual memory usage.]]>
  79957. </doc>
  79958. </method>
  79959. <method name="setVirtualMemoryUsage"
  79960. abstract="false" native="false" synchronized="false"
  79961. static="false" final="false" visibility="public"
  79962. deprecated="not deprecated">
  79963. <param name="usage" type="long"/>
  79964. <doc>
  79965. <![CDATA[Set the virtual memory usage.]]>
  79966. </doc>
  79967. </method>
  79968. <method name="getPhysicalMemoryUsage" return="long"
  79969. abstract="false" native="false" synchronized="false"
  79970. static="false" final="false" visibility="public"
  79971. deprecated="not deprecated">
  79972. <doc>
  79973. <![CDATA[Get the physical memory usage.]]>
  79974. </doc>
  79975. </method>
  79976. <method name="setPhysicalMemoryUsage"
  79977. abstract="false" native="false" synchronized="false"
  79978. static="false" final="false" visibility="public"
  79979. deprecated="not deprecated">
  79980. <param name="usage" type="long"/>
  79981. <doc>
  79982. <![CDATA[Set the physical memory usage.]]>
  79983. </doc>
  79984. </method>
  79985. <method name="getHeapUsage" return="long"
  79986. abstract="false" native="false" synchronized="false"
  79987. static="false" final="false" visibility="public"
  79988. deprecated="not deprecated">
  79989. <doc>
  79990. <![CDATA[Get the total heap usage.]]>
  79991. </doc>
  79992. </method>
  79993. <method name="setHeapUsage"
  79994. abstract="false" native="false" synchronized="false"
  79995. static="false" final="false" visibility="public"
  79996. deprecated="not deprecated">
  79997. <param name="usage" type="long"/>
  79998. <doc>
  79999. <![CDATA[Set the total heap usage.]]>
  80000. </doc>
  80001. </method>
  80002. <method name="size" return="int"
  80003. abstract="false" native="false" synchronized="false"
  80004. static="false" final="false" visibility="public"
  80005. deprecated="not deprecated">
  80006. <doc>
  80007. <![CDATA[Returns the size of the serialized data]]>
  80008. </doc>
  80009. </method>
  80010. <method name="readFields"
  80011. abstract="false" native="false" synchronized="false"
  80012. static="false" final="false" visibility="public"
  80013. deprecated="not deprecated">
  80014. <param name="in" type="java.io.DataInput"/>
  80015. <exception name="IOException" type="java.io.IOException"/>
  80016. </method>
  80017. <method name="write"
  80018. abstract="false" native="false" synchronized="false"
  80019. static="false" final="false" visibility="public"
  80020. deprecated="not deprecated">
  80021. <param name="out" type="java.io.DataOutput"/>
  80022. <exception name="IOException" type="java.io.IOException"/>
  80023. </method>
  80024. <method name="deepCompare"
  80025. abstract="false" native="false" synchronized="false"
  80026. static="false" final="false" visibility="public"
  80027. deprecated="not deprecated">
  80028. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  80029. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  80030. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  80031. </method>
  80032. <doc>
  80033. <![CDATA[Captures the resource usage metrics.]]>
  80034. </doc>
  80035. </class>
  80036. <!-- end class org.apache.hadoop.tools.rumen.ResourceUsageMetrics -->
  80037. <!-- start class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  80038. <class name="RewindableInputStream" extends="java.io.InputStream"
  80039. abstract="false"
  80040. static="false" final="false" visibility="public"
  80041. deprecated="not deprecated">
  80042. <constructor name="RewindableInputStream" type="java.io.InputStream"
  80043. static="false" final="false" visibility="public"
  80044. deprecated="not deprecated">
  80045. <doc>
  80046. <![CDATA[Constructor.
  80047. @param input]]>
  80048. </doc>
  80049. </constructor>
  80050. <constructor name="RewindableInputStream" type="java.io.InputStream, int"
  80051. static="false" final="false" visibility="public"
  80052. deprecated="not deprecated">
  80053. <doc>
  80054. <![CDATA[Constructor
  80055. @param input
  80056. input stream.
  80057. @param maxBytesToRemember
  80058. Maximum number of bytes we need to remember at the beginning of
  80059. the stream. If {@link #rewind()} is called after so many bytes are
  80060. read from the stream, {@link #rewind()} would fail.]]>
  80061. </doc>
  80062. </constructor>
  80063. <method name="read" return="int"
  80064. abstract="false" native="false" synchronized="false"
  80065. static="false" final="false" visibility="public"
  80066. deprecated="not deprecated">
  80067. <exception name="IOException" type="java.io.IOException"/>
  80068. </method>
  80069. <method name="read" return="int"
  80070. abstract="false" native="false" synchronized="false"
  80071. static="false" final="false" visibility="public"
  80072. deprecated="not deprecated">
  80073. <param name="buffer" type="byte[]"/>
  80074. <param name="offset" type="int"/>
  80075. <param name="length" type="int"/>
  80076. <exception name="IOException" type="java.io.IOException"/>
  80077. </method>
  80078. <method name="close"
  80079. abstract="false" native="false" synchronized="false"
  80080. static="false" final="false" visibility="public"
  80081. deprecated="not deprecated">
  80082. <exception name="IOException" type="java.io.IOException"/>
  80083. </method>
  80084. <method name="rewind" return="java.io.InputStream"
  80085. abstract="false" native="false" synchronized="false"
  80086. static="false" final="false" visibility="public"
  80087. deprecated="not deprecated">
  80088. <exception name="IOException" type="java.io.IOException"/>
  80089. </method>
  80090. <doc>
  80091. <![CDATA[A simple wrapper class to make any input stream "rewindable". It could be
  80092. made more memory efficient by grow the internal buffer adaptively.]]>
  80093. </doc>
  80094. </class>
  80095. <!-- end class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  80096. <!-- start class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  80097. <class name="Task20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  80098. abstract="false"
  80099. static="false" final="false" visibility="public"
  80100. deprecated="not deprecated">
  80101. <constructor name="Task20LineHistoryEventEmitter"
  80102. static="false" final="false" visibility="protected"
  80103. deprecated="not deprecated">
  80104. </constructor>
  80105. </class>
  80106. <!-- end class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  80107. <!-- start class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  80108. <class name="TaskAttempt20LineEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  80109. abstract="true"
  80110. static="false" final="false" visibility="public"
  80111. deprecated="not deprecated">
  80112. <constructor name="TaskAttempt20LineEventEmitter"
  80113. static="false" final="false" visibility="protected"
  80114. deprecated="not deprecated">
  80115. </constructor>
  80116. </class>
  80117. <!-- end class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  80118. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  80119. <class name="TaskAttemptFinishedEvent" extends="java.lang.Object"
  80120. abstract="false"
  80121. static="false" final="false" visibility="public"
  80122. deprecated="not deprecated">
  80123. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80124. <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"
  80125. static="false" final="false" visibility="public"
  80126. deprecated="not deprecated">
  80127. <doc>
  80128. <![CDATA[Create an event to record successful finishes for setup and cleanup
  80129. attempts
  80130. @param id Attempt ID
  80131. @param taskType Type of task
  80132. @param taskStatus Status of task
  80133. @param finishTime Finish time of attempt
  80134. @param hostname Host where the attempt executed
  80135. @param state State string
  80136. @param counters Counters for the attempt]]>
  80137. </doc>
  80138. </constructor>
  80139. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80140. abstract="false" native="false" synchronized="false"
  80141. static="false" final="false" visibility="public"
  80142. deprecated="not deprecated">
  80143. <doc>
  80144. <![CDATA[Get the task ID]]>
  80145. </doc>
  80146. </method>
  80147. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80148. abstract="false" native="false" synchronized="false"
  80149. static="false" final="false" visibility="public"
  80150. deprecated="not deprecated">
  80151. <doc>
  80152. <![CDATA[Get the task attempt id]]>
  80153. </doc>
  80154. </method>
  80155. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80156. abstract="false" native="false" synchronized="false"
  80157. static="false" final="false" visibility="public"
  80158. deprecated="not deprecated">
  80159. <doc>
  80160. <![CDATA[Get the task type]]>
  80161. </doc>
  80162. </method>
  80163. <method name="getTaskStatus" return="java.lang.String"
  80164. abstract="false" native="false" synchronized="false"
  80165. static="false" final="false" visibility="public"
  80166. deprecated="not deprecated">
  80167. <doc>
  80168. <![CDATA[Get the task status]]>
  80169. </doc>
  80170. </method>
  80171. <method name="getFinishTime" return="long"
  80172. abstract="false" native="false" synchronized="false"
  80173. static="false" final="false" visibility="public"
  80174. deprecated="not deprecated">
  80175. <doc>
  80176. <![CDATA[Get the attempt finish time]]>
  80177. </doc>
  80178. </method>
  80179. <method name="getHostname" return="java.lang.String"
  80180. abstract="false" native="false" synchronized="false"
  80181. static="false" final="false" visibility="public"
  80182. deprecated="not deprecated">
  80183. <doc>
  80184. <![CDATA[Get the host where the attempt executed]]>
  80185. </doc>
  80186. </method>
  80187. <method name="getState" return="java.lang.String"
  80188. abstract="false" native="false" synchronized="false"
  80189. static="false" final="false" visibility="public"
  80190. deprecated="not deprecated">
  80191. <doc>
  80192. <![CDATA[Get the state string]]>
  80193. </doc>
  80194. </method>
  80195. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  80196. abstract="false" native="false" synchronized="false"
  80197. static="false" final="false" visibility="public"
  80198. deprecated="not deprecated">
  80199. <doc>
  80200. <![CDATA[Get the counters for the attempt]]>
  80201. </doc>
  80202. </method>
  80203. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80204. abstract="false" native="false" synchronized="false"
  80205. static="false" final="false" visibility="public"
  80206. deprecated="not deprecated">
  80207. <doc>
  80208. <![CDATA[Get the event type]]>
  80209. </doc>
  80210. </method>
  80211. <doc>
  80212. <![CDATA[Event to record successful task completion]]>
  80213. </doc>
  80214. </class>
  80215. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  80216. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  80217. <class name="TaskAttemptInfo" extends="java.lang.Object"
  80218. abstract="true"
  80219. static="false" final="false" visibility="public"
  80220. deprecated="not deprecated">
  80221. <constructor name="TaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo"
  80222. static="false" final="false" visibility="protected"
  80223. deprecated="not deprecated">
  80224. </constructor>
  80225. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  80226. abstract="false" native="false" synchronized="false"
  80227. static="false" final="false" visibility="public"
  80228. deprecated="not deprecated">
  80229. <doc>
  80230. <![CDATA[Get the final {@link State} of the task-attempt.
  80231. @return the final <code>State</code> of the task-attempt]]>
  80232. </doc>
  80233. </method>
  80234. <method name="getRuntime" return="long"
  80235. abstract="true" native="false" synchronized="false"
  80236. static="false" final="false" visibility="public"
  80237. deprecated="not deprecated">
  80238. <doc>
  80239. <![CDATA[Get the total runtime for the task-attempt.
  80240. @return the total runtime for the task-attempt]]>
  80241. </doc>
  80242. </method>
  80243. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  80244. abstract="false" native="false" synchronized="false"
  80245. static="false" final="false" visibility="public"
  80246. deprecated="not deprecated">
  80247. <doc>
  80248. <![CDATA[Get the {@link TaskInfo} for the given task-attempt.
  80249. @return the <code>TaskInfo</code> for the given task-attempt]]>
  80250. </doc>
  80251. </method>
  80252. <field name="state" type="org.apache.hadoop.mapred.TaskStatus.State"
  80253. transient="false" volatile="false"
  80254. static="false" final="true" visibility="protected"
  80255. deprecated="not deprecated">
  80256. </field>
  80257. <field name="taskInfo" type="org.apache.hadoop.tools.rumen.TaskInfo"
  80258. transient="false" volatile="false"
  80259. static="false" final="true" visibility="protected"
  80260. deprecated="not deprecated">
  80261. </field>
  80262. <doc>
  80263. <![CDATA[{@link TaskAttemptInfo} is a collection of statistics about a particular
  80264. task-attempt gleaned from job-history of the job.]]>
  80265. </doc>
  80266. </class>
  80267. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  80268. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  80269. <class name="TaskAttemptStartedEvent" extends="java.lang.Object"
  80270. abstract="false"
  80271. static="false" final="false" visibility="public"
  80272. deprecated="not deprecated">
  80273. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80274. <constructor name="TaskAttemptStartedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, long, java.lang.String, int"
  80275. static="false" final="false" visibility="public"
  80276. deprecated="not deprecated">
  80277. <doc>
  80278. <![CDATA[Create an event to record the start of an attempt
  80279. @param attemptId Id of the attempt
  80280. @param taskType Type of task
  80281. @param startTime Start time of the attempt
  80282. @param trackerName Name of the Task Tracker where attempt is running
  80283. @param httpPort The port number of the tracker]]>
  80284. </doc>
  80285. </constructor>
  80286. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80287. abstract="false" native="false" synchronized="false"
  80288. static="false" final="false" visibility="public"
  80289. deprecated="not deprecated">
  80290. <doc>
  80291. <![CDATA[Get the task id]]>
  80292. </doc>
  80293. </method>
  80294. <method name="getTrackerName" return="java.lang.String"
  80295. abstract="false" native="false" synchronized="false"
  80296. static="false" final="false" visibility="public"
  80297. deprecated="not deprecated">
  80298. <doc>
  80299. <![CDATA[Get the tracker name]]>
  80300. </doc>
  80301. </method>
  80302. <method name="getStartTime" return="long"
  80303. abstract="false" native="false" synchronized="false"
  80304. static="false" final="false" visibility="public"
  80305. deprecated="not deprecated">
  80306. <doc>
  80307. <![CDATA[Get the start time]]>
  80308. </doc>
  80309. </method>
  80310. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80311. abstract="false" native="false" synchronized="false"
  80312. static="false" final="false" visibility="public"
  80313. deprecated="not deprecated">
  80314. <doc>
  80315. <![CDATA[Get the task type]]>
  80316. </doc>
  80317. </method>
  80318. <method name="getHttpPort" return="int"
  80319. abstract="false" native="false" synchronized="false"
  80320. static="false" final="false" visibility="public"
  80321. deprecated="not deprecated">
  80322. <doc>
  80323. <![CDATA[Get the HTTP port]]>
  80324. </doc>
  80325. </method>
  80326. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80327. abstract="false" native="false" synchronized="false"
  80328. static="false" final="false" visibility="public"
  80329. deprecated="not deprecated">
  80330. <doc>
  80331. <![CDATA[Get the attempt id]]>
  80332. </doc>
  80333. </method>
  80334. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80335. abstract="false" native="false" synchronized="false"
  80336. static="false" final="false" visibility="public"
  80337. deprecated="not deprecated">
  80338. <doc>
  80339. <![CDATA[Get the event type]]>
  80340. </doc>
  80341. </method>
  80342. <doc>
  80343. <![CDATA[Event to record start of a task attempt]]>
  80344. </doc>
  80345. </class>
  80346. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  80347. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  80348. <class name="TaskAttemptUnsuccessfulCompletionEvent" extends="java.lang.Object"
  80349. abstract="false"
  80350. static="false" final="false" visibility="public"
  80351. deprecated="not deprecated">
  80352. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80353. <constructor name="TaskAttemptUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String"
  80354. static="false" final="false" visibility="public"
  80355. deprecated="not deprecated">
  80356. <doc>
  80357. <![CDATA[Create an event to record the unsuccessful completion of attempts
  80358. @param id Attempt ID
  80359. @param taskType Type of the task
  80360. @param status Status of the attempt
  80361. @param finishTime Finish time of the attempt
  80362. @param hostname Name of the host where the attempt executed
  80363. @param error Error string]]>
  80364. </doc>
  80365. </constructor>
  80366. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80367. abstract="false" native="false" synchronized="false"
  80368. static="false" final="false" visibility="public"
  80369. deprecated="not deprecated">
  80370. <doc>
  80371. <![CDATA[Get the task id]]>
  80372. </doc>
  80373. </method>
  80374. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80375. abstract="false" native="false" synchronized="false"
  80376. static="false" final="false" visibility="public"
  80377. deprecated="not deprecated">
  80378. <doc>
  80379. <![CDATA[Get the task type]]>
  80380. </doc>
  80381. </method>
  80382. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80383. abstract="false" native="false" synchronized="false"
  80384. static="false" final="false" visibility="public"
  80385. deprecated="not deprecated">
  80386. <doc>
  80387. <![CDATA[Get the attempt id]]>
  80388. </doc>
  80389. </method>
  80390. <method name="getFinishTime" return="long"
  80391. abstract="false" native="false" synchronized="false"
  80392. static="false" final="false" visibility="public"
  80393. deprecated="not deprecated">
  80394. <doc>
  80395. <![CDATA[Get the finish time]]>
  80396. </doc>
  80397. </method>
  80398. <method name="getHostname" return="java.lang.String"
  80399. abstract="false" native="false" synchronized="false"
  80400. static="false" final="false" visibility="public"
  80401. deprecated="not deprecated">
  80402. <doc>
  80403. <![CDATA[Get the name of the host where the attempt executed]]>
  80404. </doc>
  80405. </method>
  80406. <method name="getError" return="java.lang.String"
  80407. abstract="false" native="false" synchronized="false"
  80408. static="false" final="false" visibility="public"
  80409. deprecated="not deprecated">
  80410. <doc>
  80411. <![CDATA[Get the error string]]>
  80412. </doc>
  80413. </method>
  80414. <method name="getTaskStatus" return="java.lang.String"
  80415. abstract="false" native="false" synchronized="false"
  80416. static="false" final="false" visibility="public"
  80417. deprecated="not deprecated">
  80418. <doc>
  80419. <![CDATA[Get the task status]]>
  80420. </doc>
  80421. </method>
  80422. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80423. abstract="false" native="false" synchronized="false"
  80424. static="false" final="false" visibility="public"
  80425. deprecated="not deprecated">
  80426. <doc>
  80427. <![CDATA[Get the event type]]>
  80428. </doc>
  80429. </method>
  80430. <doc>
  80431. <![CDATA[Event to record unsuccessful (Killed/Failed) completion of task attempts]]>
  80432. </doc>
  80433. </class>
  80434. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  80435. <!-- start class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  80436. <class name="TaskFailedEvent" extends="java.lang.Object"
  80437. abstract="false"
  80438. static="false" final="false" visibility="public"
  80439. deprecated="not deprecated">
  80440. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80441. <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"
  80442. static="false" final="false" visibility="public"
  80443. deprecated="not deprecated">
  80444. <doc>
  80445. <![CDATA[Create an event to record task failure
  80446. @param id Task ID
  80447. @param finishTime Finish time of the task
  80448. @param taskType Type of the task
  80449. @param error Error String
  80450. @param status Status
  80451. @param failedDueToAttempt The attempt id due to which the task failed]]>
  80452. </doc>
  80453. </constructor>
  80454. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80455. abstract="false" native="false" synchronized="false"
  80456. static="false" final="false" visibility="public"
  80457. deprecated="not deprecated">
  80458. <doc>
  80459. <![CDATA[Get the task id]]>
  80460. </doc>
  80461. </method>
  80462. <method name="getError" return="java.lang.String"
  80463. abstract="false" native="false" synchronized="false"
  80464. static="false" final="false" visibility="public"
  80465. deprecated="not deprecated">
  80466. <doc>
  80467. <![CDATA[Get the error string]]>
  80468. </doc>
  80469. </method>
  80470. <method name="getFinishTime" return="long"
  80471. abstract="false" native="false" synchronized="false"
  80472. static="false" final="false" visibility="public"
  80473. deprecated="not deprecated">
  80474. <doc>
  80475. <![CDATA[Get the finish time of the attempt]]>
  80476. </doc>
  80477. </method>
  80478. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80479. abstract="false" native="false" synchronized="false"
  80480. static="false" final="false" visibility="public"
  80481. deprecated="not deprecated">
  80482. <doc>
  80483. <![CDATA[Get the task type]]>
  80484. </doc>
  80485. </method>
  80486. <method name="getFailedAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  80487. abstract="false" native="false" synchronized="false"
  80488. static="false" final="false" visibility="public"
  80489. deprecated="not deprecated">
  80490. <doc>
  80491. <![CDATA[Get the attempt id due to which the task failed]]>
  80492. </doc>
  80493. </method>
  80494. <method name="getTaskStatus" return="java.lang.String"
  80495. abstract="false" native="false" synchronized="false"
  80496. static="false" final="false" visibility="public"
  80497. deprecated="not deprecated">
  80498. <doc>
  80499. <![CDATA[Get the task status]]>
  80500. </doc>
  80501. </method>
  80502. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80503. abstract="false" native="false" synchronized="false"
  80504. static="false" final="false" visibility="public"
  80505. deprecated="not deprecated">
  80506. <doc>
  80507. <![CDATA[Get the event type]]>
  80508. </doc>
  80509. </method>
  80510. <doc>
  80511. <![CDATA[Event to record the failure of a task]]>
  80512. </doc>
  80513. </class>
  80514. <!-- end class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  80515. <!-- start class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  80516. <class name="TaskFinishedEvent" extends="java.lang.Object"
  80517. abstract="false"
  80518. static="false" final="false" visibility="public"
  80519. deprecated="not deprecated">
  80520. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80521. <constructor name="TaskFinishedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  80522. static="false" final="false" visibility="public"
  80523. deprecated="not deprecated">
  80524. <doc>
  80525. <![CDATA[Create an event to record the successful completion of a task
  80526. @param id Task ID
  80527. @param finishTime Finish time of the task
  80528. @param taskType Type of the task
  80529. @param status Status string
  80530. @param counters Counters for the task]]>
  80531. </doc>
  80532. </constructor>
  80533. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80534. abstract="false" native="false" synchronized="false"
  80535. static="false" final="false" visibility="public"
  80536. deprecated="not deprecated">
  80537. <doc>
  80538. <![CDATA[Get task id]]>
  80539. </doc>
  80540. </method>
  80541. <method name="getFinishTime" return="long"
  80542. abstract="false" native="false" synchronized="false"
  80543. static="false" final="false" visibility="public"
  80544. deprecated="not deprecated">
  80545. <doc>
  80546. <![CDATA[Get the task finish time]]>
  80547. </doc>
  80548. </method>
  80549. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  80550. abstract="false" native="false" synchronized="false"
  80551. static="false" final="false" visibility="public"
  80552. deprecated="not deprecated">
  80553. <doc>
  80554. <![CDATA[Get task counters]]>
  80555. </doc>
  80556. </method>
  80557. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80558. abstract="false" native="false" synchronized="false"
  80559. static="false" final="false" visibility="public"
  80560. deprecated="not deprecated">
  80561. <doc>
  80562. <![CDATA[Get task type]]>
  80563. </doc>
  80564. </method>
  80565. <method name="getTaskStatus" return="java.lang.String"
  80566. abstract="false" native="false" synchronized="false"
  80567. static="false" final="false" visibility="public"
  80568. deprecated="not deprecated">
  80569. <doc>
  80570. <![CDATA[Get task status]]>
  80571. </doc>
  80572. </method>
  80573. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80574. abstract="false" native="false" synchronized="false"
  80575. static="false" final="false" visibility="public"
  80576. deprecated="not deprecated">
  80577. <doc>
  80578. <![CDATA[Get event type]]>
  80579. </doc>
  80580. </method>
  80581. <doc>
  80582. <![CDATA[Event to record the successful completion of a task]]>
  80583. </doc>
  80584. </class>
  80585. <!-- end class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  80586. <!-- start class org.apache.hadoop.tools.rumen.TaskInfo -->
  80587. <class name="TaskInfo" extends="java.lang.Object"
  80588. abstract="false"
  80589. static="false" final="false" visibility="public"
  80590. deprecated="not deprecated">
  80591. <constructor name="TaskInfo" type="long, int, long, int, long"
  80592. static="false" final="false" visibility="public"
  80593. deprecated="not deprecated">
  80594. </constructor>
  80595. <constructor name="TaskInfo" type="long, int, long, int, long, org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  80596. static="false" final="false" visibility="public"
  80597. deprecated="not deprecated">
  80598. </constructor>
  80599. <method name="getInputBytes" return="long"
  80600. abstract="false" native="false" synchronized="false"
  80601. static="false" final="false" visibility="public"
  80602. deprecated="not deprecated">
  80603. <doc>
  80604. <![CDATA[@return Raw bytes read from the FileSystem into the task. Note that this
  80605. may not always match the input bytes to the task.]]>
  80606. </doc>
  80607. </method>
  80608. <method name="getInputRecords" return="int"
  80609. abstract="false" native="false" synchronized="false"
  80610. static="false" final="false" visibility="public"
  80611. deprecated="not deprecated">
  80612. <doc>
  80613. <![CDATA[@return Number of records input to this task.]]>
  80614. </doc>
  80615. </method>
  80616. <method name="getOutputBytes" return="long"
  80617. abstract="false" native="false" synchronized="false"
  80618. static="false" final="false" visibility="public"
  80619. deprecated="not deprecated">
  80620. <doc>
  80621. <![CDATA[@return Raw bytes written to the destination FileSystem. Note that this may
  80622. not match output bytes.]]>
  80623. </doc>
  80624. </method>
  80625. <method name="getOutputRecords" return="int"
  80626. abstract="false" native="false" synchronized="false"
  80627. static="false" final="false" visibility="public"
  80628. deprecated="not deprecated">
  80629. <doc>
  80630. <![CDATA[@return Number of records output from this task.]]>
  80631. </doc>
  80632. </method>
  80633. <method name="getTaskMemory" return="long"
  80634. abstract="false" native="false" synchronized="false"
  80635. static="false" final="false" visibility="public"
  80636. deprecated="not deprecated">
  80637. <doc>
  80638. <![CDATA[@return Memory used by the task leq the heap size.]]>
  80639. </doc>
  80640. </method>
  80641. <method name="getResourceUsageMetrics" return="org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  80642. abstract="false" native="false" synchronized="false"
  80643. static="false" final="false" visibility="public"
  80644. deprecated="not deprecated">
  80645. <doc>
  80646. <![CDATA[@return Resource usage metrics]]>
  80647. </doc>
  80648. </method>
  80649. </class>
  80650. <!-- end class org.apache.hadoop.tools.rumen.TaskInfo -->
  80651. <!-- start class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  80652. <class name="TaskStartedEvent" extends="java.lang.Object"
  80653. abstract="false"
  80654. static="false" final="false" visibility="public"
  80655. deprecated="not deprecated">
  80656. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80657. <constructor name="TaskStartedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String"
  80658. static="false" final="false" visibility="public"
  80659. deprecated="not deprecated">
  80660. <doc>
  80661. <![CDATA[Create an event to record start of a task
  80662. @param id Task Id
  80663. @param startTime Start time of the task
  80664. @param taskType Type of the task
  80665. @param splitLocations Split locations, applicable for map tasks]]>
  80666. </doc>
  80667. </constructor>
  80668. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80669. abstract="false" native="false" synchronized="false"
  80670. static="false" final="false" visibility="public"
  80671. deprecated="not deprecated">
  80672. <doc>
  80673. <![CDATA[Get the task id]]>
  80674. </doc>
  80675. </method>
  80676. <method name="getSplitLocations" return="java.lang.String"
  80677. abstract="false" native="false" synchronized="false"
  80678. static="false" final="false" visibility="public"
  80679. deprecated="not deprecated">
  80680. <doc>
  80681. <![CDATA[Get the split locations, applicable for map tasks]]>
  80682. </doc>
  80683. </method>
  80684. <method name="getStartTime" return="long"
  80685. abstract="false" native="false" synchronized="false"
  80686. static="false" final="false" visibility="public"
  80687. deprecated="not deprecated">
  80688. <doc>
  80689. <![CDATA[Get the start time of the task]]>
  80690. </doc>
  80691. </method>
  80692. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  80693. abstract="false" native="false" synchronized="false"
  80694. static="false" final="false" visibility="public"
  80695. deprecated="not deprecated">
  80696. <doc>
  80697. <![CDATA[Get the task type]]>
  80698. </doc>
  80699. </method>
  80700. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80701. abstract="false" native="false" synchronized="false"
  80702. static="false" final="false" visibility="public"
  80703. deprecated="not deprecated">
  80704. <doc>
  80705. <![CDATA[Get the event type]]>
  80706. </doc>
  80707. </method>
  80708. <doc>
  80709. <![CDATA[Event to record the start of a task]]>
  80710. </doc>
  80711. </class>
  80712. <!-- end class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  80713. <!-- start class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  80714. <class name="TaskUpdatedEvent" extends="java.lang.Object"
  80715. abstract="false"
  80716. static="false" final="false" visibility="public"
  80717. deprecated="not deprecated">
  80718. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80719. <constructor name="TaskUpdatedEvent" type="org.apache.hadoop.mapreduce.TaskID, long"
  80720. static="false" final="false" visibility="public"
  80721. deprecated="not deprecated">
  80722. <doc>
  80723. <![CDATA[Create an event to record task updates
  80724. @param id Id of the task
  80725. @param finishTime Finish time of the task]]>
  80726. </doc>
  80727. </constructor>
  80728. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  80729. abstract="false" native="false" synchronized="false"
  80730. static="false" final="false" visibility="public"
  80731. deprecated="not deprecated">
  80732. <doc>
  80733. <![CDATA[Get the task ID]]>
  80734. </doc>
  80735. </method>
  80736. <method name="getFinishTime" return="long"
  80737. abstract="false" native="false" synchronized="false"
  80738. static="false" final="false" visibility="public"
  80739. deprecated="not deprecated">
  80740. <doc>
  80741. <![CDATA[Get the task finish time]]>
  80742. </doc>
  80743. </method>
  80744. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80745. abstract="false" native="false" synchronized="false"
  80746. static="false" final="false" visibility="public"
  80747. deprecated="not deprecated">
  80748. <doc>
  80749. <![CDATA[Get the event type]]>
  80750. </doc>
  80751. </method>
  80752. <doc>
  80753. <![CDATA[Event to record updates to a task]]>
  80754. </doc>
  80755. </class>
  80756. <!-- end class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  80757. <!-- start class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  80758. <class name="TopologyBuilder" extends="java.lang.Object"
  80759. abstract="false"
  80760. static="false" final="false" visibility="public"
  80761. deprecated="not deprecated">
  80762. <constructor name="TopologyBuilder"
  80763. static="false" final="false" visibility="public"
  80764. deprecated="not deprecated">
  80765. </constructor>
  80766. <method name="process"
  80767. abstract="false" native="false" synchronized="false"
  80768. static="false" final="false" visibility="public"
  80769. deprecated="not deprecated">
  80770. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  80771. <doc>
  80772. <![CDATA[Process one {@link HistoryEvent}
  80773. @param event
  80774. The {@link HistoryEvent} to be processed.]]>
  80775. </doc>
  80776. </method>
  80777. <method name="process"
  80778. abstract="false" native="false" synchronized="false"
  80779. static="false" final="false" visibility="public"
  80780. deprecated="not deprecated">
  80781. <param name="conf" type="java.util.Properties"/>
  80782. <doc>
  80783. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  80784. to be called once.
  80785. @param conf
  80786. The job conf properties to be added.]]>
  80787. </doc>
  80788. </method>
  80789. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  80790. abstract="false" native="false" synchronized="false"
  80791. static="false" final="false" visibility="public"
  80792. deprecated="not deprecated">
  80793. <doc>
  80794. <![CDATA[Request the builder to build the final object. Once called, the
  80795. {@link TopologyBuilder} would accept no more events or job-conf properties.
  80796. @return Parsed {@link LoggedNetworkTopology} object.]]>
  80797. </doc>
  80798. </method>
  80799. <doc>
  80800. <![CDATA[Building the cluster topology.]]>
  80801. </doc>
  80802. </class>
  80803. <!-- end class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  80804. <!-- start class org.apache.hadoop.tools.rumen.TraceBuilder -->
  80805. <class name="TraceBuilder" extends="org.apache.hadoop.conf.Configured"
  80806. abstract="false"
  80807. static="false" final="false" visibility="public"
  80808. deprecated="not deprecated">
  80809. <implements name="org.apache.hadoop.util.Tool"/>
  80810. <constructor name="TraceBuilder"
  80811. static="false" final="false" visibility="public"
  80812. deprecated="not deprecated">
  80813. </constructor>
  80814. <method name="main"
  80815. abstract="false" native="false" synchronized="false"
  80816. static="true" final="false" visibility="public"
  80817. deprecated="not deprecated">
  80818. <param name="args" type="java.lang.String[]"/>
  80819. </method>
  80820. <method name="run" return="int"
  80821. abstract="false" native="false" synchronized="false"
  80822. static="false" final="false" visibility="public"
  80823. deprecated="not deprecated">
  80824. <param name="args" type="java.lang.String[]"/>
  80825. <exception name="Exception" type="java.lang.Exception"/>
  80826. </method>
  80827. <doc>
  80828. <![CDATA[The main driver of the Rumen Parser.]]>
  80829. </doc>
  80830. </class>
  80831. <!-- end class org.apache.hadoop.tools.rumen.TraceBuilder -->
  80832. <!-- start class org.apache.hadoop.tools.rumen.TreePath -->
  80833. <class name="TreePath" extends="java.lang.Object"
  80834. abstract="false"
  80835. static="false" final="false" visibility="public"
  80836. deprecated="not deprecated">
  80837. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String"
  80838. static="false" final="false" visibility="public"
  80839. deprecated="not deprecated">
  80840. </constructor>
  80841. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String, int"
  80842. static="false" final="false" visibility="public"
  80843. deprecated="not deprecated">
  80844. </constructor>
  80845. <method name="toString" return="java.lang.String"
  80846. abstract="false" native="false" synchronized="false"
  80847. static="false" final="false" visibility="public"
  80848. deprecated="not deprecated">
  80849. </method>
  80850. <doc>
  80851. <![CDATA[This describes a path from a node to the root. We use it when we compare two
  80852. trees during rumen unit tests. If the trees are not identical, this chain
  80853. will be converted to a string which describes the path from the root to the
  80854. fields that did not compare.]]>
  80855. </doc>
  80856. </class>
  80857. <!-- end class org.apache.hadoop.tools.rumen.TreePath -->
  80858. <!-- start class org.apache.hadoop.tools.rumen.ZombieCluster -->
  80859. <class name="ZombieCluster" extends="org.apache.hadoop.tools.rumen.AbstractClusterStory"
  80860. abstract="false"
  80861. static="false" final="false" visibility="public"
  80862. deprecated="not deprecated">
  80863. <constructor name="ZombieCluster" type="org.apache.hadoop.tools.rumen.LoggedNetworkTopology, org.apache.hadoop.tools.rumen.MachineNode"
  80864. static="false" final="false" visibility="public"
  80865. deprecated="not deprecated">
  80866. <doc>
  80867. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  80868. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  80869. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  80870. @param topology
  80871. The network topology.
  80872. @param defaultNode
  80873. The default node setting.]]>
  80874. </doc>
  80875. </constructor>
  80876. <constructor name="ZombieCluster" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.MachineNode, org.apache.hadoop.conf.Configuration"
  80877. static="false" final="false" visibility="public"
  80878. deprecated="not deprecated">
  80879. <exception name="IOException" type="java.io.IOException"/>
  80880. <doc>
  80881. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  80882. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  80883. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  80884. @param path Path to the JSON-encoded topology file.
  80885. @param conf
  80886. @param defaultNode
  80887. The default node setting.
  80888. @throws IOException]]>
  80889. </doc>
  80890. </constructor>
  80891. <constructor name="ZombieCluster" type="java.io.InputStream, org.apache.hadoop.tools.rumen.MachineNode"
  80892. static="false" final="false" visibility="public"
  80893. deprecated="not deprecated">
  80894. <exception name="IOException" type="java.io.IOException"/>
  80895. <doc>
  80896. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  80897. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  80898. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  80899. @param input The input stream for the JSON-encoded topology file.
  80900. @param defaultNode
  80901. The default node setting.
  80902. @throws IOException]]>
  80903. </doc>
  80904. </constructor>
  80905. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  80906. abstract="false" native="false" synchronized="false"
  80907. static="false" final="false" visibility="public"
  80908. deprecated="not deprecated">
  80909. </method>
  80910. <doc>
  80911. <![CDATA[{@link ZombieCluster} rebuilds the cluster topology using the information
  80912. obtained from job history logs.]]>
  80913. </doc>
  80914. </class>
  80915. <!-- end class org.apache.hadoop.tools.rumen.ZombieCluster -->
  80916. <!-- start class org.apache.hadoop.tools.rumen.ZombieJob -->
  80917. <class name="ZombieJob" extends="java.lang.Object"
  80918. abstract="false"
  80919. static="false" final="false" visibility="public"
  80920. deprecated="not deprecated">
  80921. <implements name="org.apache.hadoop.tools.rumen.JobStory"/>
  80922. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory, long"
  80923. static="false" final="false" visibility="public"
  80924. deprecated="not deprecated">
  80925. <doc>
  80926. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  80927. {@link LoggedJob} passed in this parameter
  80928. @param job
  80929. The dead job this ZombieJob instance is based on.
  80930. @param cluster
  80931. The cluster topology where the dead job ran on. This argument can
  80932. be null if we do not have knowledge of the cluster topology.
  80933. @param seed
  80934. Seed for the random number generator for filling in information
  80935. not available from the ZombieJob.]]>
  80936. </doc>
  80937. </constructor>
  80938. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory"
  80939. static="false" final="false" visibility="public"
  80940. deprecated="not deprecated">
  80941. <doc>
  80942. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  80943. {@link LoggedJob} passed in this parameter
  80944. @param job
  80945. The dead job this ZombieJob instance is based on.
  80946. @param cluster
  80947. The cluster topology where the dead job ran on. This argument can
  80948. be null if we do not have knowledge of the cluster topology.]]>
  80949. </doc>
  80950. </constructor>
  80951. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  80952. abstract="false" native="false" synchronized="true"
  80953. static="false" final="false" visibility="public"
  80954. deprecated="not deprecated">
  80955. </method>
  80956. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  80957. abstract="false" native="false" synchronized="false"
  80958. static="false" final="false" visibility="public"
  80959. deprecated="not deprecated">
  80960. </method>
  80961. <method name="getName" return="java.lang.String"
  80962. abstract="false" native="false" synchronized="false"
  80963. static="false" final="false" visibility="public"
  80964. deprecated="not deprecated">
  80965. </method>
  80966. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  80967. abstract="false" native="false" synchronized="false"
  80968. static="false" final="false" visibility="public"
  80969. deprecated="not deprecated">
  80970. </method>
  80971. <method name="getNumberMaps" return="int"
  80972. abstract="false" native="false" synchronized="false"
  80973. static="false" final="false" visibility="public"
  80974. deprecated="not deprecated">
  80975. </method>
  80976. <method name="getNumberReduces" return="int"
  80977. abstract="false" native="false" synchronized="false"
  80978. static="false" final="false" visibility="public"
  80979. deprecated="not deprecated">
  80980. </method>
  80981. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  80982. abstract="false" native="false" synchronized="false"
  80983. static="false" final="false" visibility="public"
  80984. deprecated="not deprecated">
  80985. </method>
  80986. <method name="getSubmissionTime" return="long"
  80987. abstract="false" native="false" synchronized="false"
  80988. static="false" final="false" visibility="public"
  80989. deprecated="not deprecated">
  80990. </method>
  80991. <method name="getQueueName" return="java.lang.String"
  80992. abstract="false" native="false" synchronized="false"
  80993. static="false" final="false" visibility="public"
  80994. deprecated="not deprecated">
  80995. </method>
  80996. <method name="getNumLoggedMaps" return="int"
  80997. abstract="false" native="false" synchronized="false"
  80998. static="false" final="false" visibility="public"
  80999. deprecated="not deprecated">
  81000. <doc>
  81001. <![CDATA[Getting the number of map tasks that are actually logged in the trace.
  81002. @return The number of map tasks that are actually logged in the trace.]]>
  81003. </doc>
  81004. </method>
  81005. <method name="getNumLoggedReduces" return="int"
  81006. abstract="false" native="false" synchronized="false"
  81007. static="false" final="false" visibility="public"
  81008. deprecated="not deprecated">
  81009. <doc>
  81010. <![CDATA[Getting the number of reduce tasks that are actually logged in the trace.
  81011. @return The number of map tasks that are actually logged in the trace.]]>
  81012. </doc>
  81013. </method>
  81014. <method name="getUser" return="java.lang.String"
  81015. abstract="false" native="false" synchronized="false"
  81016. static="false" final="false" visibility="public"
  81017. deprecated="not deprecated">
  81018. </method>
  81019. <method name="getLoggedJob" return="org.apache.hadoop.tools.rumen.LoggedJob"
  81020. abstract="false" native="false" synchronized="false"
  81021. static="false" final="false" visibility="public"
  81022. deprecated="not deprecated">
  81023. <doc>
  81024. <![CDATA[Get the underlining {@link LoggedJob} object read directly from the trace.
  81025. This is mainly for debugging.
  81026. @return the underlining {@link LoggedJob} object]]>
  81027. </doc>
  81028. </method>
  81029. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  81030. abstract="false" native="false" synchronized="false"
  81031. static="false" final="false" visibility="public"
  81032. deprecated="not deprecated">
  81033. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  81034. <param name="taskNumber" type="int"/>
  81035. <param name="taskAttemptNumber" type="int"/>
  81036. <doc>
  81037. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  81038. taskType, taskNumber, and taskAttemptNumber. This function does not care
  81039. about locality, and follows the following decision logic: 1. Make up a
  81040. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  81041. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  81042. trace, 3. Otherwise (final state is SUCCEEDED or FAILED), construct the
  81043. {@link TaskAttemptInfo} from the trace.]]>
  81044. </doc>
  81045. </method>
  81046. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  81047. abstract="false" native="false" synchronized="false"
  81048. static="false" final="false" visibility="public"
  81049. deprecated="not deprecated">
  81050. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  81051. <param name="taskNumber" type="int"/>
  81052. </method>
  81053. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  81054. abstract="false" native="false" synchronized="false"
  81055. static="false" final="false" visibility="public"
  81056. deprecated="not deprecated">
  81057. <param name="taskNumber" type="int"/>
  81058. <param name="taskAttemptNumber" type="int"/>
  81059. <param name="locality" type="int"/>
  81060. <doc>
  81061. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  81062. taskType, taskNumber, and taskAttemptNumber. This function considers
  81063. locality, and follows the following decision logic: 1. Make up a
  81064. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  81065. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  81066. trace, 3. If final state is FAILED, construct a {@link TaskAttemptInfo}
  81067. from the trace, without considering locality. 4. If final state is
  81068. SUCCEEDED, construct a {@link TaskAttemptInfo} from the trace, with runtime
  81069. scaled according to locality in simulation and locality in trace.]]>
  81070. </doc>
  81071. </method>
  81072. <doc>
  81073. <![CDATA[{@link ZombieJob} is a layer above {@link LoggedJob} raw JSON objects.
  81074. Each {@link ZombieJob} object represents a job in job history. For everything
  81075. that exists in job history, contents are returned unchanged faithfully. To
  81076. get input splits of a non-exist task, a non-exist task attempt, or an
  81077. ill-formed task attempt, proper objects are made up from statistical
  81078. sketches.]]>
  81079. </doc>
  81080. </class>
  81081. <!-- end class org.apache.hadoop.tools.rumen.ZombieJob -->
  81082. <!-- start class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  81083. <class name="ZombieJobProducer" extends="java.lang.Object"
  81084. abstract="false"
  81085. static="false" final="false" visibility="public"
  81086. deprecated="not deprecated">
  81087. <implements name="org.apache.hadoop.tools.rumen.JobStoryProducer"/>
  81088. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration"
  81089. static="false" final="false" visibility="public"
  81090. deprecated="not deprecated">
  81091. <exception name="IOException" type="java.io.IOException"/>
  81092. <doc>
  81093. <![CDATA[Constructor
  81094. @param path
  81095. Path to the JSON trace file, possibly compressed.
  81096. @param cluster
  81097. The topology of the cluster that corresponds to the jobs in the
  81098. trace. The argument can be null if we do not have knowledge of the
  81099. cluster topology.
  81100. @param conf
  81101. @throws IOException]]>
  81102. </doc>
  81103. </constructor>
  81104. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration, long"
  81105. static="false" final="false" visibility="public"
  81106. deprecated="not deprecated">
  81107. <exception name="IOException" type="java.io.IOException"/>
  81108. <doc>
  81109. <![CDATA[Constructor
  81110. @param path
  81111. Path to the JSON trace file, possibly compressed.
  81112. @param cluster
  81113. The topology of the cluster that corresponds to the jobs in the
  81114. trace. The argument can be null if we do not have knowledge of the
  81115. cluster topology.
  81116. @param conf
  81117. @param randomSeed
  81118. use a deterministic seed.
  81119. @throws IOException]]>
  81120. </doc>
  81121. </constructor>
  81122. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster"
  81123. static="false" final="false" visibility="public"
  81124. deprecated="not deprecated">
  81125. <exception name="IOException" type="java.io.IOException"/>
  81126. <doc>
  81127. <![CDATA[Constructor
  81128. @param input
  81129. The input stream for the JSON trace.
  81130. @param cluster
  81131. The topology of the cluster that corresponds to the jobs in the
  81132. trace. The argument can be null if we do not have knowledge of the
  81133. cluster topology.
  81134. @throws IOException]]>
  81135. </doc>
  81136. </constructor>
  81137. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster, long"
  81138. static="false" final="false" visibility="public"
  81139. deprecated="not deprecated">
  81140. <exception name="IOException" type="java.io.IOException"/>
  81141. <doc>
  81142. <![CDATA[Constructor
  81143. @param input
  81144. The input stream for the JSON trace.
  81145. @param cluster
  81146. The topology of the cluster that corresponds to the jobs in the
  81147. trace. The argument can be null if we do not have knowledge of the
  81148. cluster topology.
  81149. @param randomSeed
  81150. use a deterministic seed.
  81151. @throws IOException]]>
  81152. </doc>
  81153. </constructor>
  81154. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.ZombieJob"
  81155. abstract="false" native="false" synchronized="false"
  81156. static="false" final="false" visibility="public"
  81157. deprecated="not deprecated">
  81158. <exception name="IOException" type="java.io.IOException"/>
  81159. </method>
  81160. <method name="close"
  81161. abstract="false" native="false" synchronized="false"
  81162. static="false" final="false" visibility="public"
  81163. deprecated="not deprecated">
  81164. <exception name="IOException" type="java.io.IOException"/>
  81165. </method>
  81166. <doc>
  81167. <![CDATA[Producing {@link JobStory}s from job trace.]]>
  81168. </doc>
  81169. </class>
  81170. <!-- end class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  81171. </package>
  81172. </api>