hadoop-core_0.20.0.xml 1.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308
  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 Sun May 31 20:29:52 PDT 2009 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop-core 0.20.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /home/gkesavan/release-0.20.0/build/ivy/lib/Hadoop/jdiff/jdiff-1.0.9.jar:/home/gkesavan/release-0.20.0/build/ivy/lib/Hadoop/jdiff/xerces-1.4.4.jar -classpath /home/gkesavan/release-0.20.0/build/classes:/home/gkesavan/release-0.20.0/lib/commons-cli-2.0-SNAPSHOT.jar:/home/gkesavan/release-0.20.0/lib/hsqldb-1.8.0.10.jar:/home/gkesavan/release-0.20.0/lib/jsp-2.1/jsp-2.1.jar:/home/gkesavan/release-0.20.0/lib/jsp-2.1/jsp-api-2.1.jar:/home/gkesavan/release-0.20.0/lib/kfs-0.2.2.jar:/home/gkesavan/release-0.20.0/conf:/home/gkesavan/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.0.4.jar:/home/gkesavan/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar:/home/gkesavan/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.0.1.jar:/home/gkesavan/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.3.jar:/home/gkesavan/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/home/gkesavan/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.6.1.jar:/home/gkesavan/.ivy2/cache/commons-net/commons-net/jars/commons-net-1.4.1.jar:/home/gkesavan/.ivy2/cache/org.mortbay.jetty/servlet-api-2.5/jars/servlet-api-2.5-6.1.14.jar:/home/gkesavan/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/home/gkesavan/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.14.jar:/home/gkesavan/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.14.jar:/home/gkesavan/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/home/gkesavan/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/home/gkesavan/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/home/gkesavan/.ivy2/cache/junit/junit/jars/junit-3.8.1.jar:/home/gkesavan/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.0.4.jar:/home/gkesavan/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.4.3.jar:/home/gkesavan/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/home/gkesavan/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.4.3.jar:/home/gkesavan/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/home/gkesavan/.ivy2/cache/xerces/xerces/jars/xerces-1.4.4.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-launcher.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-resolver.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-starteam.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-netrexx.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-testutil.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-jai.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-swing.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-jmf.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-bcel.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-jdepend.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-jsch.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-bsf.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-antlr.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-weblogic.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-junit.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-log4j.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/xercesImpl.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-oro.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-trax.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-nodeps.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-commons-logging.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-regexp.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-stylebook.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-javamail.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-commons-net.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/xml-apis.jar:/home/gkesavan/tools/jdk1.6.0_07-32bit/lib/tools.jar -sourcepath /home/gkesavan/release-0.20.0/src/core -apidir /home/gkesavan/release-0.20.0/lib/jdiff -apiname Hadoop-core 0.20.1-dev -->
  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. <doc>
  61. <![CDATA[A package attribute that captures the version of Hadoop that was compiled.]]>
  62. </doc>
  63. </interface>
  64. <!-- end interface org.apache.hadoop.HadoopVersionAnnotation -->
  65. </package>
  66. <package name="org.apache.hadoop.conf">
  67. <!-- start interface org.apache.hadoop.conf.Configurable -->
  68. <interface name="Configurable" abstract="true"
  69. static="false" final="false" visibility="public"
  70. deprecated="not deprecated">
  71. <method name="setConf"
  72. abstract="false" native="false" synchronized="false"
  73. static="false" final="false" visibility="public"
  74. deprecated="not deprecated">
  75. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76. <doc>
  77. <![CDATA[Set the configuration to be used by this object.]]>
  78. </doc>
  79. </method>
  80. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  81. abstract="false" native="false" synchronized="false"
  82. static="false" final="false" visibility="public"
  83. deprecated="not deprecated">
  84. <doc>
  85. <![CDATA[Return the configuration used by this object.]]>
  86. </doc>
  87. </method>
  88. <doc>
  89. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  90. </doc>
  91. </interface>
  92. <!-- end interface org.apache.hadoop.conf.Configurable -->
  93. <!-- start class org.apache.hadoop.conf.Configuration -->
  94. <class name="Configuration" extends="java.lang.Object"
  95. abstract="false"
  96. static="false" final="false" visibility="public"
  97. deprecated="not deprecated">
  98. <implements name="java.lang.Iterable"/>
  99. <implements name="org.apache.hadoop.io.Writable"/>
  100. <constructor name="Configuration"
  101. static="false" final="false" visibility="public"
  102. deprecated="not deprecated">
  103. <doc>
  104. <![CDATA[A new configuration.]]>
  105. </doc>
  106. </constructor>
  107. <constructor name="Configuration" type="boolean"
  108. static="false" final="false" visibility="public"
  109. deprecated="not deprecated">
  110. <doc>
  111. <![CDATA[A new configuration where the behavior of reading from the default
  112. resources can be turned off.
  113. If the parameter {@code loadDefaults} is false, the new instance
  114. will not load resources from the default files.
  115. @param loadDefaults specifies whether to load from the default files]]>
  116. </doc>
  117. </constructor>
  118. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  119. static="false" final="false" visibility="public"
  120. deprecated="not deprecated">
  121. <doc>
  122. <![CDATA[A new configuration with the same settings cloned from another.
  123. @param other the configuration from which to clone settings.]]>
  124. </doc>
  125. </constructor>
  126. <method name="addDefaultResource"
  127. abstract="false" native="false" synchronized="true"
  128. static="true" final="false" visibility="public"
  129. deprecated="not deprecated">
  130. <param name="name" type="java.lang.String"/>
  131. <doc>
  132. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  133. added.
  134. @param name file name. File should be present in the classpath.]]>
  135. </doc>
  136. </method>
  137. <method name="addResource"
  138. abstract="false" native="false" synchronized="false"
  139. static="false" final="false" visibility="public"
  140. deprecated="not deprecated">
  141. <param name="name" type="java.lang.String"/>
  142. <doc>
  143. <![CDATA[Add a configuration resource.
  144. The properties of this resource will override properties of previously
  145. added resources, unless they were marked <a href="#Final">final</a>.
  146. @param name resource to be added, the classpath is examined for a file
  147. with that name.]]>
  148. </doc>
  149. </method>
  150. <method name="addResource"
  151. abstract="false" native="false" synchronized="false"
  152. static="false" final="false" visibility="public"
  153. deprecated="not deprecated">
  154. <param name="url" type="java.net.URL"/>
  155. <doc>
  156. <![CDATA[Add a configuration resource.
  157. The properties of this resource will override properties of previously
  158. added resources, unless they were marked <a href="#Final">final</a>.
  159. @param url url of the resource to be added, the local filesystem is
  160. examined directly to find the resource, without referring to
  161. the classpath.]]>
  162. </doc>
  163. </method>
  164. <method name="addResource"
  165. abstract="false" native="false" synchronized="false"
  166. static="false" final="false" visibility="public"
  167. deprecated="not deprecated">
  168. <param name="file" type="org.apache.hadoop.fs.Path"/>
  169. <doc>
  170. <![CDATA[Add a configuration resource.
  171. The properties of this resource will override properties of previously
  172. added resources, unless they were marked <a href="#Final">final</a>.
  173. @param file file-path of resource to be added, the local filesystem is
  174. examined directly to find the resource, without referring to
  175. the classpath.]]>
  176. </doc>
  177. </method>
  178. <method name="addResource"
  179. abstract="false" native="false" synchronized="false"
  180. static="false" final="false" visibility="public"
  181. deprecated="not deprecated">
  182. <param name="in" type="java.io.InputStream"/>
  183. <doc>
  184. <![CDATA[Add a configuration resource.
  185. The properties of this resource will override properties of previously
  186. added resources, unless they were marked <a href="#Final">final</a>.
  187. @param in InputStream to deserialize the object from.]]>
  188. </doc>
  189. </method>
  190. <method name="reloadConfiguration"
  191. abstract="false" native="false" synchronized="true"
  192. static="false" final="false" visibility="public"
  193. deprecated="not deprecated">
  194. <doc>
  195. <![CDATA[Reload configuration from previously added resources.
  196. This method will clear all the configuration read from the added
  197. resources, and final parameters. This will make the resources to
  198. be read again before accessing the values. Values that are added
  199. via set methods will overlay values read from the resources.]]>
  200. </doc>
  201. </method>
  202. <method name="get" return="java.lang.String"
  203. abstract="false" native="false" synchronized="false"
  204. static="false" final="false" visibility="public"
  205. deprecated="not deprecated">
  206. <param name="name" type="java.lang.String"/>
  207. <doc>
  208. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  209. no such property exists.
  210. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  211. before being returned.
  212. @param name the property name.
  213. @return the value of the <code>name</code> property,
  214. or null if no such property exists.]]>
  215. </doc>
  216. </method>
  217. <method name="getRaw" return="java.lang.String"
  218. abstract="false" native="false" synchronized="false"
  219. static="false" final="false" visibility="public"
  220. deprecated="not deprecated">
  221. <param name="name" type="java.lang.String"/>
  222. <doc>
  223. <![CDATA[Get the value of the <code>name</code> property, without doing
  224. <a href="#VariableExpansion">variable expansion</a>.
  225. @param name the property name.
  226. @return the value of the <code>name</code> property,
  227. or null if no such property exists.]]>
  228. </doc>
  229. </method>
  230. <method name="set"
  231. abstract="false" native="false" synchronized="false"
  232. static="false" final="false" visibility="public"
  233. deprecated="not deprecated">
  234. <param name="name" type="java.lang.String"/>
  235. <param name="value" type="java.lang.String"/>
  236. <doc>
  237. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  238. @param name property name.
  239. @param value property value.]]>
  240. </doc>
  241. </method>
  242. <method name="setIfUnset"
  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. <param name="value" type="java.lang.String"/>
  248. <doc>
  249. <![CDATA[Sets a property if it is currently unset.
  250. @param name the property name
  251. @param value the new value]]>
  252. </doc>
  253. </method>
  254. <method name="get" return="java.lang.String"
  255. abstract="false" native="false" synchronized="false"
  256. static="false" final="false" visibility="public"
  257. deprecated="not deprecated">
  258. <param name="name" type="java.lang.String"/>
  259. <param name="defaultValue" type="java.lang.String"/>
  260. <doc>
  261. <![CDATA[Get the value of the <code>name</code> property. If no such property
  262. exists, then <code>defaultValue</code> is returned.
  263. @param name property name.
  264. @param defaultValue default value.
  265. @return property value, or <code>defaultValue</code> if the property
  266. doesn't exist.]]>
  267. </doc>
  268. </method>
  269. <method name="getInt" return="int"
  270. abstract="false" native="false" synchronized="false"
  271. static="false" final="false" visibility="public"
  272. deprecated="not deprecated">
  273. <param name="name" type="java.lang.String"/>
  274. <param name="defaultValue" type="int"/>
  275. <doc>
  276. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  277. If no such property exists, or if the specified value is not a valid
  278. <code>int</code>, then <code>defaultValue</code> is returned.
  279. @param name property name.
  280. @param defaultValue default value.
  281. @return property value as an <code>int</code>,
  282. or <code>defaultValue</code>.]]>
  283. </doc>
  284. </method>
  285. <method name="setInt"
  286. abstract="false" native="false" synchronized="false"
  287. static="false" final="false" visibility="public"
  288. deprecated="not deprecated">
  289. <param name="name" type="java.lang.String"/>
  290. <param name="value" type="int"/>
  291. <doc>
  292. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  293. @param name property name.
  294. @param value <code>int</code> value of the property.]]>
  295. </doc>
  296. </method>
  297. <method name="getLong" return="long"
  298. abstract="false" native="false" synchronized="false"
  299. static="false" final="false" visibility="public"
  300. deprecated="not deprecated">
  301. <param name="name" type="java.lang.String"/>
  302. <param name="defaultValue" type="long"/>
  303. <doc>
  304. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  305. If no such property is specified, or if the specified value is not a valid
  306. <code>long</code>, then <code>defaultValue</code> is returned.
  307. @param name property name.
  308. @param defaultValue default value.
  309. @return property value as a <code>long</code>,
  310. or <code>defaultValue</code>.]]>
  311. </doc>
  312. </method>
  313. <method name="setLong"
  314. abstract="false" native="false" synchronized="false"
  315. static="false" final="false" visibility="public"
  316. deprecated="not deprecated">
  317. <param name="name" type="java.lang.String"/>
  318. <param name="value" type="long"/>
  319. <doc>
  320. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  321. @param name property name.
  322. @param value <code>long</code> value of the property.]]>
  323. </doc>
  324. </method>
  325. <method name="getFloat" return="float"
  326. abstract="false" native="false" synchronized="false"
  327. static="false" final="false" visibility="public"
  328. deprecated="not deprecated">
  329. <param name="name" type="java.lang.String"/>
  330. <param name="defaultValue" type="float"/>
  331. <doc>
  332. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  333. If no such property is specified, or if the specified value is not a valid
  334. <code>float</code>, then <code>defaultValue</code> is returned.
  335. @param name property name.
  336. @param defaultValue default value.
  337. @return property value as a <code>float</code>,
  338. or <code>defaultValue</code>.]]>
  339. </doc>
  340. </method>
  341. <method name="setFloat"
  342. abstract="false" native="false" synchronized="false"
  343. static="false" final="false" visibility="public"
  344. deprecated="not deprecated">
  345. <param name="name" type="java.lang.String"/>
  346. <param name="value" type="float"/>
  347. <doc>
  348. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  349. @param name property name.
  350. @param value property value.]]>
  351. </doc>
  352. </method>
  353. <method name="getBoolean" return="boolean"
  354. abstract="false" native="false" synchronized="false"
  355. static="false" final="false" visibility="public"
  356. deprecated="not deprecated">
  357. <param name="name" type="java.lang.String"/>
  358. <param name="defaultValue" type="boolean"/>
  359. <doc>
  360. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  361. If no such property is specified, or if the specified value is not a valid
  362. <code>boolean</code>, then <code>defaultValue</code> is returned.
  363. @param name property name.
  364. @param defaultValue default value.
  365. @return property value as a <code>boolean</code>,
  366. or <code>defaultValue</code>.]]>
  367. </doc>
  368. </method>
  369. <method name="setBoolean"
  370. abstract="false" native="false" synchronized="false"
  371. static="false" final="false" visibility="public"
  372. deprecated="not deprecated">
  373. <param name="name" type="java.lang.String"/>
  374. <param name="value" type="boolean"/>
  375. <doc>
  376. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  377. @param name property name.
  378. @param value <code>boolean</code> value of the property.]]>
  379. </doc>
  380. </method>
  381. <method name="setBooleanIfUnset"
  382. abstract="false" native="false" synchronized="false"
  383. static="false" final="false" visibility="public"
  384. deprecated="not deprecated">
  385. <param name="name" type="java.lang.String"/>
  386. <param name="value" type="boolean"/>
  387. <doc>
  388. <![CDATA[Set the given property, if it is currently unset.
  389. @param name property name
  390. @param value new value]]>
  391. </doc>
  392. </method>
  393. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  394. abstract="false" native="false" synchronized="false"
  395. static="false" final="false" visibility="public"
  396. deprecated="not deprecated">
  397. <param name="name" type="java.lang.String"/>
  398. <param name="defaultValue" type="java.lang.String"/>
  399. <doc>
  400. <![CDATA[Parse the given attribute as a set of integer ranges
  401. @param name the attribute name
  402. @param defaultValue the default value if it is not set
  403. @return a new set of ranges from the configured value]]>
  404. </doc>
  405. </method>
  406. <method name="getStringCollection" return="java.util.Collection"
  407. abstract="false" native="false" synchronized="false"
  408. static="false" final="false" visibility="public"
  409. deprecated="not deprecated">
  410. <param name="name" type="java.lang.String"/>
  411. <doc>
  412. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  413. a collection of <code>String</code>s.
  414. If no such property is specified then empty collection is returned.
  415. <p>
  416. This is an optimized version of {@link #getStrings(String)}
  417. @param name property name.
  418. @return property value as a collection of <code>String</code>s.]]>
  419. </doc>
  420. </method>
  421. <method name="getStrings" return="java.lang.String[]"
  422. abstract="false" native="false" synchronized="false"
  423. static="false" final="false" visibility="public"
  424. deprecated="not deprecated">
  425. <param name="name" type="java.lang.String"/>
  426. <doc>
  427. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  428. an array of <code>String</code>s.
  429. If no such property is specified then <code>null</code> is returned.
  430. @param name property name.
  431. @return property value as an array of <code>String</code>s,
  432. or <code>null</code>.]]>
  433. </doc>
  434. </method>
  435. <method name="getStrings" return="java.lang.String[]"
  436. abstract="false" native="false" synchronized="false"
  437. static="false" final="false" visibility="public"
  438. deprecated="not deprecated">
  439. <param name="name" type="java.lang.String"/>
  440. <param name="defaultValue" type="java.lang.String[]"/>
  441. <doc>
  442. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  443. an array of <code>String</code>s.
  444. If no such property is specified then default value is returned.
  445. @param name property name.
  446. @param defaultValue The default value
  447. @return property value as an array of <code>String</code>s,
  448. or default value.]]>
  449. </doc>
  450. </method>
  451. <method name="setStrings"
  452. abstract="false" native="false" synchronized="false"
  453. static="false" final="false" visibility="public"
  454. deprecated="not deprecated">
  455. <param name="name" type="java.lang.String"/>
  456. <param name="values" type="java.lang.String[]"/>
  457. <doc>
  458. <![CDATA[Set the array of string values for the <code>name</code> property as
  459. as comma delimited values.
  460. @param name property name.
  461. @param values The values]]>
  462. </doc>
  463. </method>
  464. <method name="getClassByName" return="java.lang.Class"
  465. abstract="false" native="false" synchronized="false"
  466. static="false" final="false" visibility="public"
  467. deprecated="not deprecated">
  468. <param name="name" type="java.lang.String"/>
  469. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  470. <doc>
  471. <![CDATA[Load a class by name.
  472. @param name the class name.
  473. @return the class object.
  474. @throws ClassNotFoundException if the class is not found.]]>
  475. </doc>
  476. </method>
  477. <method name="getClasses" return="java.lang.Class[]"
  478. abstract="false" native="false" synchronized="false"
  479. static="false" final="false" visibility="public"
  480. deprecated="not deprecated">
  481. <param name="name" type="java.lang.String"/>
  482. <param name="defaultValue" type="java.lang.Class[]"/>
  483. <doc>
  484. <![CDATA[Get the value of the <code>name</code> property
  485. as an array of <code>Class</code>.
  486. The value of the property specifies a list of comma separated class names.
  487. If no such property is specified, then <code>defaultValue</code> is
  488. returned.
  489. @param name the property name.
  490. @param defaultValue default value.
  491. @return property value as a <code>Class[]</code>,
  492. or <code>defaultValue</code>.]]>
  493. </doc>
  494. </method>
  495. <method name="getClass" return="java.lang.Class"
  496. abstract="false" native="false" synchronized="false"
  497. static="false" final="false" visibility="public"
  498. deprecated="not deprecated">
  499. <param name="name" type="java.lang.String"/>
  500. <param name="defaultValue" type="java.lang.Class"/>
  501. <doc>
  502. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  503. If no such property is specified, then <code>defaultValue</code> is
  504. returned.
  505. @param name the class name.
  506. @param defaultValue default value.
  507. @return property value as a <code>Class</code>,
  508. or <code>defaultValue</code>.]]>
  509. </doc>
  510. </method>
  511. <method name="getClass" return="java.lang.Class"
  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.Class"/>
  517. <param name="xface" type="java.lang.Class"/>
  518. <doc>
  519. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  520. implementing the interface specified by <code>xface</code>.
  521. If no such property is specified, then <code>defaultValue</code> is
  522. returned.
  523. An exception is thrown if the returned class does not implement the named
  524. interface.
  525. @param name the class name.
  526. @param defaultValue default value.
  527. @param xface the interface implemented by the named class.
  528. @return property value as a <code>Class</code>,
  529. or <code>defaultValue</code>.]]>
  530. </doc>
  531. </method>
  532. <method name="setClass"
  533. abstract="false" native="false" synchronized="false"
  534. static="false" final="false" visibility="public"
  535. deprecated="not deprecated">
  536. <param name="name" type="java.lang.String"/>
  537. <param name="theClass" type="java.lang.Class"/>
  538. <param name="xface" type="java.lang.Class"/>
  539. <doc>
  540. <![CDATA[Set the value of the <code>name</code> property to the name of a
  541. <code>theClass</code> implementing the given interface <code>xface</code>.
  542. An exception is thrown if <code>theClass</code> does not implement the
  543. interface <code>xface</code>.
  544. @param name property name.
  545. @param theClass property value.
  546. @param xface the interface implemented by the named class.]]>
  547. </doc>
  548. </method>
  549. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  550. abstract="false" native="false" synchronized="false"
  551. static="false" final="false" visibility="public"
  552. deprecated="not deprecated">
  553. <param name="dirsProp" type="java.lang.String"/>
  554. <param name="path" type="java.lang.String"/>
  555. <exception name="IOException" type="java.io.IOException"/>
  556. <doc>
  557. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  558. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  559. then one is chosen based on <i>path</i>'s hash code. If the selected
  560. directory does not exist, an attempt is made to create it.
  561. @param dirsProp directory in which to locate the file.
  562. @param path file-path.
  563. @return local file under the directory with the given path.]]>
  564. </doc>
  565. </method>
  566. <method name="getFile" return="java.io.File"
  567. abstract="false" native="false" synchronized="false"
  568. static="false" final="false" visibility="public"
  569. deprecated="not deprecated">
  570. <param name="dirsProp" type="java.lang.String"/>
  571. <param name="path" type="java.lang.String"/>
  572. <exception name="IOException" type="java.io.IOException"/>
  573. <doc>
  574. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  575. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  576. then one is chosen based on <i>path</i>'s hash code. If the selected
  577. directory does not exist, an attempt is made to create it.
  578. @param dirsProp directory in which to locate the file.
  579. @param path file-path.
  580. @return local file under the directory with the given path.]]>
  581. </doc>
  582. </method>
  583. <method name="getResource" return="java.net.URL"
  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. <doc>
  589. <![CDATA[Get the {@link URL} for the named resource.
  590. @param name resource name.
  591. @return the url for the named resource.]]>
  592. </doc>
  593. </method>
  594. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  595. abstract="false" native="false" synchronized="false"
  596. static="false" final="false" visibility="public"
  597. deprecated="not deprecated">
  598. <param name="name" type="java.lang.String"/>
  599. <doc>
  600. <![CDATA[Get an input stream attached to the configuration resource with the
  601. given <code>name</code>.
  602. @param name configuration resource name.
  603. @return an input stream attached to the resource.]]>
  604. </doc>
  605. </method>
  606. <method name="getConfResourceAsReader" return="java.io.Reader"
  607. abstract="false" native="false" synchronized="false"
  608. static="false" final="false" visibility="public"
  609. deprecated="not deprecated">
  610. <param name="name" type="java.lang.String"/>
  611. <doc>
  612. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  613. given <code>name</code>.
  614. @param name configuration resource name.
  615. @return a reader attached to the resource.]]>
  616. </doc>
  617. </method>
  618. <method name="size" return="int"
  619. abstract="false" native="false" synchronized="false"
  620. static="false" final="false" visibility="public"
  621. deprecated="not deprecated">
  622. <doc>
  623. <![CDATA[Return the number of keys in the configuration.
  624. @return number of keys in the configuration.]]>
  625. </doc>
  626. </method>
  627. <method name="clear"
  628. abstract="false" native="false" synchronized="false"
  629. static="false" final="false" visibility="public"
  630. deprecated="not deprecated">
  631. <doc>
  632. <![CDATA[Clears all keys from the configuration.]]>
  633. </doc>
  634. </method>
  635. <method name="iterator" return="java.util.Iterator"
  636. abstract="false" native="false" synchronized="false"
  637. static="false" final="false" visibility="public"
  638. deprecated="not deprecated">
  639. <doc>
  640. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  641. key-value pairs in the configuration.
  642. @return an iterator over the entries.]]>
  643. </doc>
  644. </method>
  645. <method name="writeXml"
  646. abstract="false" native="false" synchronized="false"
  647. static="false" final="false" visibility="public"
  648. deprecated="not deprecated">
  649. <param name="out" type="java.io.OutputStream"/>
  650. <exception name="IOException" type="java.io.IOException"/>
  651. <doc>
  652. <![CDATA[Write out the non-default properties in this configuration to the give
  653. {@link OutputStream}.
  654. @param out the output stream to write to.]]>
  655. </doc>
  656. </method>
  657. <method name="getClassLoader" return="java.lang.ClassLoader"
  658. abstract="false" native="false" synchronized="false"
  659. static="false" final="false" visibility="public"
  660. deprecated="not deprecated">
  661. <doc>
  662. <![CDATA[Get the {@link ClassLoader} for this job.
  663. @return the correct class loader.]]>
  664. </doc>
  665. </method>
  666. <method name="setClassLoader"
  667. abstract="false" native="false" synchronized="false"
  668. static="false" final="false" visibility="public"
  669. deprecated="not deprecated">
  670. <param name="classLoader" type="java.lang.ClassLoader"/>
  671. <doc>
  672. <![CDATA[Set the class loader that will be used to load the various objects.
  673. @param classLoader the new class loader.]]>
  674. </doc>
  675. </method>
  676. <method name="toString" return="java.lang.String"
  677. abstract="false" native="false" synchronized="false"
  678. static="false" final="false" visibility="public"
  679. deprecated="not deprecated">
  680. </method>
  681. <method name="setQuietMode"
  682. abstract="false" native="false" synchronized="true"
  683. static="false" final="false" visibility="public"
  684. deprecated="not deprecated">
  685. <param name="quietmode" type="boolean"/>
  686. <doc>
  687. <![CDATA[Set the quietness-mode.
  688. In the quiet-mode, error and informational messages might not be logged.
  689. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  690. to turn it off.]]>
  691. </doc>
  692. </method>
  693. <method name="main"
  694. abstract="false" native="false" synchronized="false"
  695. static="true" final="false" visibility="public"
  696. deprecated="not deprecated">
  697. <param name="args" type="java.lang.String[]"/>
  698. <exception name="Exception" type="java.lang.Exception"/>
  699. <doc>
  700. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  701. </doc>
  702. </method>
  703. <method name="readFields"
  704. abstract="false" native="false" synchronized="false"
  705. static="false" final="false" visibility="public"
  706. deprecated="not deprecated">
  707. <param name="in" type="java.io.DataInput"/>
  708. <exception name="IOException" type="java.io.IOException"/>
  709. </method>
  710. <method name="write"
  711. abstract="false" native="false" synchronized="false"
  712. static="false" final="false" visibility="public"
  713. deprecated="not deprecated">
  714. <param name="out" type="java.io.DataOutput"/>
  715. <exception name="IOException" type="java.io.IOException"/>
  716. </method>
  717. <doc>
  718. <![CDATA[Provides access to configuration parameters.
  719. <h4 id="Resources">Resources</h4>
  720. <p>Configurations are specified by resources. A resource contains a set of
  721. name/value pairs as XML data. Each resource is named by either a
  722. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  723. then the classpath is examined for a file with that name. If named by a
  724. <code>Path</code>, then the local filesystem is examined directly, without
  725. referring to the classpath.
  726. <p>Unless explicitly turned off, Hadoop by default specifies two
  727. resources, loaded in-order from the classpath: <ol>
  728. <li><tt><a href="{@docRoot}/../core-default.html">core-default.xml</a>
  729. </tt>: Read-only defaults for hadoop.</li>
  730. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  731. installation.</li>
  732. </ol>
  733. Applications may add additional resources, which are loaded
  734. subsequent to these resources in the order they are added.
  735. <h4 id="FinalParams">Final Parameters</h4>
  736. <p>Configuration parameters may be declared <i>final</i>.
  737. Once a resource declares a value final, no subsequently-loaded
  738. resource can alter that value.
  739. For example, one might define a final parameter with:
  740. <tt><pre>
  741. &lt;property&gt;
  742. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  743. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  744. <b>&lt;final&gt;true&lt;/final&gt;</b>
  745. &lt;/property&gt;</pre></tt>
  746. Administrators typically define parameters as final in
  747. <tt>core-site.xml</tt> for values that user applications may not alter.
  748. <h4 id="VariableExpansion">Variable Expansion</h4>
  749. <p>Value strings are first processed for <i>variable expansion</i>. The
  750. available properties are:<ol>
  751. <li>Other properties defined in this Configuration; and, if a name is
  752. undefined here,</li>
  753. <li>Properties in {@link System#getProperties()}.</li>
  754. </ol>
  755. <p>For example, if a configuration resource contains the following property
  756. definitions:
  757. <tt><pre>
  758. &lt;property&gt;
  759. &lt;name&gt;basedir&lt;/name&gt;
  760. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  761. &lt;/property&gt;
  762. &lt;property&gt;
  763. &lt;name&gt;tempdir&lt;/name&gt;
  764. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  765. &lt;/property&gt;</pre></tt>
  766. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  767. will be resolved to another property in this Configuration, while
  768. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  769. of the System property with that name.]]>
  770. </doc>
  771. </class>
  772. <!-- end class org.apache.hadoop.conf.Configuration -->
  773. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  774. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  775. abstract="false"
  776. static="true" final="false" visibility="public"
  777. deprecated="not deprecated">
  778. <constructor name="Configuration.IntegerRanges"
  779. static="false" final="false" visibility="public"
  780. deprecated="not deprecated">
  781. </constructor>
  782. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  783. static="false" final="false" visibility="public"
  784. deprecated="not deprecated">
  785. </constructor>
  786. <method name="isIncluded" return="boolean"
  787. abstract="false" native="false" synchronized="false"
  788. static="false" final="false" visibility="public"
  789. deprecated="not deprecated">
  790. <param name="value" type="int"/>
  791. <doc>
  792. <![CDATA[Is the given value in the set of ranges
  793. @param value the value to check
  794. @return is the value in the ranges?]]>
  795. </doc>
  796. </method>
  797. <method name="toString" return="java.lang.String"
  798. abstract="false" native="false" synchronized="false"
  799. static="false" final="false" visibility="public"
  800. deprecated="not deprecated">
  801. </method>
  802. <doc>
  803. <![CDATA[A class that represents a set of positive integer ranges. It parses
  804. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  805. the lower/upper bounds are separated by dash. Either the lower or upper
  806. bound may be omitted meaning all values up to or over. So the string
  807. above means 2, 3, 5, and 7, 8, 9, ...]]>
  808. </doc>
  809. </class>
  810. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  811. <!-- start class org.apache.hadoop.conf.Configured -->
  812. <class name="Configured" extends="java.lang.Object"
  813. abstract="false"
  814. static="false" final="false" visibility="public"
  815. deprecated="not deprecated">
  816. <implements name="org.apache.hadoop.conf.Configurable"/>
  817. <constructor name="Configured"
  818. static="false" final="false" visibility="public"
  819. deprecated="not deprecated">
  820. <doc>
  821. <![CDATA[Construct a Configured.]]>
  822. </doc>
  823. </constructor>
  824. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  825. static="false" final="false" visibility="public"
  826. deprecated="not deprecated">
  827. <doc>
  828. <![CDATA[Construct a Configured.]]>
  829. </doc>
  830. </constructor>
  831. <method name="setConf"
  832. abstract="false" native="false" synchronized="false"
  833. static="false" final="false" visibility="public"
  834. deprecated="not deprecated">
  835. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  836. </method>
  837. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  838. abstract="false" native="false" synchronized="false"
  839. static="false" final="false" visibility="public"
  840. deprecated="not deprecated">
  841. </method>
  842. <doc>
  843. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  844. </doc>
  845. </class>
  846. <!-- end class org.apache.hadoop.conf.Configured -->
  847. <doc>
  848. <![CDATA[Configuration of system parameters.]]>
  849. </doc>
  850. </package>
  851. <package name="org.apache.hadoop.filecache">
  852. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  853. <class name="DistributedCache" extends="java.lang.Object"
  854. abstract="false"
  855. static="false" final="false" visibility="public"
  856. deprecated="not deprecated">
  857. <constructor name="DistributedCache"
  858. static="false" final="false" visibility="public"
  859. deprecated="not deprecated">
  860. </constructor>
  861. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  862. abstract="false" native="false" synchronized="false"
  863. static="true" final="false" visibility="public"
  864. deprecated="not deprecated">
  865. <param name="cache" type="java.net.URI"/>
  866. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  867. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  868. <param name="fileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  869. <param name="isArchive" type="boolean"/>
  870. <param name="confFileStamp" type="long"/>
  871. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  872. <exception name="IOException" type="java.io.IOException"/>
  873. <doc>
  874. <![CDATA[Get the locally cached file or archive; it could either be
  875. previously cached (and valid) or copy it from the {@link FileSystem} now.
  876. @param cache the cache to be localized, this should be specified as
  877. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  878. or hostname:port is provided the file is assumed to be in the filesystem
  879. being used in the Configuration
  880. @param conf The Confguration file which contains the filesystem
  881. @param baseDir The base cache Dir where you wnat to localize the files/archives
  882. @param fileStatus The file status on the dfs.
  883. @param isArchive if the cache is an archive or a file. In case it is an
  884. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  885. be unzipped/unjarred/untarred automatically
  886. and the directory where the archive is unzipped/unjarred/untarred is
  887. returned as the Path.
  888. In case of a file, the path to the file is returned
  889. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  890. file to be cached hasn't changed since the job started
  891. @param currentWorkDir this is the directory where you would want to create symlinks
  892. for the locally cached files/archives
  893. @return the path to directory where the archives are unjarred in case of archives,
  894. the path to the file where the file is copied locally
  895. @throws IOException]]>
  896. </doc>
  897. </method>
  898. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  899. abstract="false" native="false" synchronized="false"
  900. static="true" final="false" visibility="public"
  901. deprecated="not deprecated">
  902. <param name="cache" type="java.net.URI"/>
  903. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  904. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  905. <param name="fileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  906. <param name="isArchive" type="boolean"/>
  907. <param name="confFileStamp" type="long"/>
  908. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  909. <param name="honorSymLinkConf" type="boolean"/>
  910. <exception name="IOException" type="java.io.IOException"/>
  911. <doc>
  912. <![CDATA[Get the locally cached file or archive; it could either be
  913. previously cached (and valid) or copy it from the {@link FileSystem} now.
  914. @param cache the cache to be localized, this should be specified as
  915. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  916. or hostname:port is provided the file is assumed to be in the filesystem
  917. being used in the Configuration
  918. @param conf The Confguration file which contains the filesystem
  919. @param baseDir The base cache Dir where you wnat to localize the files/archives
  920. @param fileStatus The file status on the dfs.
  921. @param isArchive if the cache is an archive or a file. In case it is an
  922. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  923. be unzipped/unjarred/untarred automatically
  924. and the directory where the archive is unzipped/unjarred/untarred is
  925. returned as the Path.
  926. In case of a file, the path to the file is returned
  927. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  928. file to be cached hasn't changed since the job started
  929. @param currentWorkDir this is the directory where you would want to create symlinks
  930. for the locally cached files/archives
  931. @param honorSymLinkConf if this is false, then the symlinks are not
  932. created even if conf says so (this is required for an optimization in task
  933. launches
  934. @return the path to directory where the archives are unjarred in case of archives,
  935. the path to the file where the file is copied locally
  936. @throws IOException]]>
  937. </doc>
  938. </method>
  939. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  940. abstract="false" native="false" synchronized="false"
  941. static="true" final="false" visibility="public"
  942. deprecated="not deprecated">
  943. <param name="cache" type="java.net.URI"/>
  944. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  945. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  946. <param name="isArchive" type="boolean"/>
  947. <param name="confFileStamp" type="long"/>
  948. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  949. <exception name="IOException" type="java.io.IOException"/>
  950. <doc>
  951. <![CDATA[Get the locally cached file or archive; it could either be
  952. previously cached (and valid) or copy it from the {@link FileSystem} now.
  953. @param cache the cache to be localized, this should be specified as
  954. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  955. or hostname:port is provided the file is assumed to be in the filesystem
  956. being used in the Configuration
  957. @param conf The Confguration file which contains the filesystem
  958. @param baseDir The base cache Dir where you wnat to localize the files/archives
  959. @param isArchive if the cache is an archive or a file. In case it is an
  960. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  961. be unzipped/unjarred/untarred automatically
  962. and the directory where the archive is unzipped/unjarred/untarred
  963. is returned as the Path.
  964. In case of a file, the path to the file is returned
  965. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  966. file to be cached hasn't changed since the job started
  967. @param currentWorkDir this is the directory where you would want to create symlinks
  968. for the locally cached files/archives
  969. @return the path to directory where the archives are unjarred in case of archives,
  970. the path to the file where the file is copied locally
  971. @throws IOException]]>
  972. </doc>
  973. </method>
  974. <method name="releaseCache"
  975. abstract="false" native="false" synchronized="false"
  976. static="true" final="false" visibility="public"
  977. deprecated="not deprecated">
  978. <param name="cache" type="java.net.URI"/>
  979. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  980. <exception name="IOException" type="java.io.IOException"/>
  981. <doc>
  982. <![CDATA[This is the opposite of getlocalcache. When you are done with
  983. using the cache, you need to release the cache
  984. @param cache The cache URI to be released
  985. @param conf configuration which contains the filesystem the cache
  986. is contained in.
  987. @throws IOException]]>
  988. </doc>
  989. </method>
  990. <method name="makeRelative" return="java.lang.String"
  991. abstract="false" native="false" synchronized="false"
  992. static="true" final="false" visibility="public"
  993. deprecated="not deprecated">
  994. <param name="cache" type="java.net.URI"/>
  995. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  996. <exception name="IOException" type="java.io.IOException"/>
  997. </method>
  998. <method name="getTimestamp" return="long"
  999. abstract="false" native="false" synchronized="false"
  1000. static="true" final="false" visibility="public"
  1001. deprecated="not deprecated">
  1002. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1003. <param name="cache" type="java.net.URI"/>
  1004. <exception name="IOException" type="java.io.IOException"/>
  1005. <doc>
  1006. <![CDATA[Returns mtime of a given cache file on hdfs.
  1007. @param conf configuration
  1008. @param cache cache file
  1009. @return mtime of a given cache file on hdfs
  1010. @throws IOException]]>
  1011. </doc>
  1012. </method>
  1013. <method name="createAllSymlink"
  1014. abstract="false" native="false" synchronized="false"
  1015. static="true" final="false" visibility="public"
  1016. deprecated="not deprecated">
  1017. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1018. <param name="jobCacheDir" type="java.io.File"/>
  1019. <param name="workDir" type="java.io.File"/>
  1020. <exception name="IOException" type="java.io.IOException"/>
  1021. <doc>
  1022. <![CDATA[This method create symlinks for all files in a given dir in another directory
  1023. @param conf the configuration
  1024. @param jobCacheDir the target directory for creating symlinks
  1025. @param workDir the directory in which the symlinks are created
  1026. @throws IOException]]>
  1027. </doc>
  1028. </method>
  1029. <method name="setCacheArchives"
  1030. abstract="false" native="false" synchronized="false"
  1031. static="true" final="false" visibility="public"
  1032. deprecated="not deprecated">
  1033. <param name="archives" type="java.net.URI[]"/>
  1034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1035. <doc>
  1036. <![CDATA[Set the configuration with the given set of archives
  1037. @param archives The list of archives that need to be localized
  1038. @param conf Configuration which will be changed]]>
  1039. </doc>
  1040. </method>
  1041. <method name="setCacheFiles"
  1042. abstract="false" native="false" synchronized="false"
  1043. static="true" final="false" visibility="public"
  1044. deprecated="not deprecated">
  1045. <param name="files" type="java.net.URI[]"/>
  1046. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1047. <doc>
  1048. <![CDATA[Set the configuration with the given set of files
  1049. @param files The list of files that need to be localized
  1050. @param conf Configuration which will be changed]]>
  1051. </doc>
  1052. </method>
  1053. <method name="getCacheArchives" return="java.net.URI[]"
  1054. abstract="false" native="false" synchronized="false"
  1055. static="true" final="false" visibility="public"
  1056. deprecated="not deprecated">
  1057. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1058. <exception name="IOException" type="java.io.IOException"/>
  1059. <doc>
  1060. <![CDATA[Get cache archives set in the Configuration
  1061. @param conf The configuration which contains the archives
  1062. @return A URI array of the caches set in the Configuration
  1063. @throws IOException]]>
  1064. </doc>
  1065. </method>
  1066. <method name="getCacheFiles" return="java.net.URI[]"
  1067. abstract="false" native="false" synchronized="false"
  1068. static="true" final="false" visibility="public"
  1069. deprecated="not deprecated">
  1070. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1071. <exception name="IOException" type="java.io.IOException"/>
  1072. <doc>
  1073. <![CDATA[Get cache files set in the Configuration
  1074. @param conf The configuration which contains the files
  1075. @return A URI array of the files set in the Configuration
  1076. @throws IOException]]>
  1077. </doc>
  1078. </method>
  1079. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  1080. abstract="false" native="false" synchronized="false"
  1081. static="true" final="false" visibility="public"
  1082. deprecated="not deprecated">
  1083. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1084. <exception name="IOException" type="java.io.IOException"/>
  1085. <doc>
  1086. <![CDATA[Return the path array of the localized caches
  1087. @param conf Configuration that contains the localized archives
  1088. @return A path array of localized caches
  1089. @throws IOException]]>
  1090. </doc>
  1091. </method>
  1092. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  1093. abstract="false" native="false" synchronized="false"
  1094. static="true" final="false" visibility="public"
  1095. deprecated="not deprecated">
  1096. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1097. <exception name="IOException" type="java.io.IOException"/>
  1098. <doc>
  1099. <![CDATA[Return the path array of the localized files
  1100. @param conf Configuration that contains the localized files
  1101. @return A path array of localized files
  1102. @throws IOException]]>
  1103. </doc>
  1104. </method>
  1105. <method name="getArchiveTimestamps" return="java.lang.String[]"
  1106. abstract="false" native="false" synchronized="false"
  1107. static="true" final="false" visibility="public"
  1108. deprecated="not deprecated">
  1109. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1110. <doc>
  1111. <![CDATA[Get the timestamps of the archives
  1112. @param conf The configuration which stored the timestamps
  1113. @return a string array of timestamps
  1114. @throws IOException]]>
  1115. </doc>
  1116. </method>
  1117. <method name="getFileTimestamps" return="java.lang.String[]"
  1118. abstract="false" native="false" synchronized="false"
  1119. static="true" final="false" visibility="public"
  1120. deprecated="not deprecated">
  1121. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1122. <doc>
  1123. <![CDATA[Get the timestamps of the files
  1124. @param conf The configuration which stored the timestamps
  1125. @return a string array of timestamps
  1126. @throws IOException]]>
  1127. </doc>
  1128. </method>
  1129. <method name="setArchiveTimestamps"
  1130. abstract="false" native="false" synchronized="false"
  1131. static="true" final="false" visibility="public"
  1132. deprecated="not deprecated">
  1133. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1134. <param name="timestamps" type="java.lang.String"/>
  1135. <doc>
  1136. <![CDATA[This is to check the timestamp of the archives to be localized
  1137. @param conf Configuration which stores the timestamp's
  1138. @param timestamps comma separated list of timestamps of archives.
  1139. The order should be the same as the order in which the archives are added.]]>
  1140. </doc>
  1141. </method>
  1142. <method name="setFileTimestamps"
  1143. abstract="false" native="false" synchronized="false"
  1144. static="true" final="false" visibility="public"
  1145. deprecated="not deprecated">
  1146. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1147. <param name="timestamps" type="java.lang.String"/>
  1148. <doc>
  1149. <![CDATA[This is to check the timestamp of the files to be localized
  1150. @param conf Configuration which stores the timestamp's
  1151. @param timestamps comma separated list of timestamps of files.
  1152. The order should be the same as the order in which the files are added.]]>
  1153. </doc>
  1154. </method>
  1155. <method name="setLocalArchives"
  1156. abstract="false" native="false" synchronized="false"
  1157. static="true" final="false" visibility="public"
  1158. deprecated="not deprecated">
  1159. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1160. <param name="str" type="java.lang.String"/>
  1161. <doc>
  1162. <![CDATA[Set the conf to contain the location for localized archives
  1163. @param conf The conf to modify to contain the localized caches
  1164. @param str a comma separated list of local archives]]>
  1165. </doc>
  1166. </method>
  1167. <method name="setLocalFiles"
  1168. abstract="false" native="false" synchronized="false"
  1169. static="true" final="false" visibility="public"
  1170. deprecated="not deprecated">
  1171. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1172. <param name="str" type="java.lang.String"/>
  1173. <doc>
  1174. <![CDATA[Set the conf to contain the location for localized files
  1175. @param conf The conf to modify to contain the localized caches
  1176. @param str a comma separated list of local files]]>
  1177. </doc>
  1178. </method>
  1179. <method name="addCacheArchive"
  1180. abstract="false" native="false" synchronized="false"
  1181. static="true" final="false" visibility="public"
  1182. deprecated="not deprecated">
  1183. <param name="uri" type="java.net.URI"/>
  1184. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1185. <doc>
  1186. <![CDATA[Add a archives to be localized to the conf
  1187. @param uri The uri of the cache to be localized
  1188. @param conf Configuration to add the cache to]]>
  1189. </doc>
  1190. </method>
  1191. <method name="addCacheFile"
  1192. abstract="false" native="false" synchronized="false"
  1193. static="true" final="false" visibility="public"
  1194. deprecated="not deprecated">
  1195. <param name="uri" type="java.net.URI"/>
  1196. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1197. <doc>
  1198. <![CDATA[Add a file to be localized to the conf
  1199. @param uri The uri of the cache to be localized
  1200. @param conf Configuration to add the cache to]]>
  1201. </doc>
  1202. </method>
  1203. <method name="addFileToClassPath"
  1204. abstract="false" native="false" synchronized="false"
  1205. static="true" final="false" visibility="public"
  1206. deprecated="not deprecated">
  1207. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1208. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1209. <exception name="IOException" type="java.io.IOException"/>
  1210. <doc>
  1211. <![CDATA[Add an file path to the current set of classpath entries It adds the file
  1212. to cache as well.
  1213. @param file Path of the file to be added
  1214. @param conf Configuration that contains the classpath setting]]>
  1215. </doc>
  1216. </method>
  1217. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  1218. abstract="false" native="false" synchronized="false"
  1219. static="true" final="false" visibility="public"
  1220. deprecated="not deprecated">
  1221. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1222. <doc>
  1223. <![CDATA[Get the file entries in classpath as an array of Path
  1224. @param conf Configuration that contains the classpath setting]]>
  1225. </doc>
  1226. </method>
  1227. <method name="addArchiveToClassPath"
  1228. abstract="false" native="false" synchronized="false"
  1229. static="true" final="false" visibility="public"
  1230. deprecated="not deprecated">
  1231. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  1232. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1233. <exception name="IOException" type="java.io.IOException"/>
  1234. <doc>
  1235. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  1236. archive to cache as well.
  1237. @param archive Path of the archive to be added
  1238. @param conf Configuration that contains the classpath setting]]>
  1239. </doc>
  1240. </method>
  1241. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  1242. abstract="false" native="false" synchronized="false"
  1243. static="true" final="false" visibility="public"
  1244. deprecated="not deprecated">
  1245. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1246. <doc>
  1247. <![CDATA[Get the archive entries in classpath as an array of Path
  1248. @param conf Configuration that contains the classpath setting]]>
  1249. </doc>
  1250. </method>
  1251. <method name="createSymlink"
  1252. abstract="false" native="false" synchronized="false"
  1253. static="true" final="false" visibility="public"
  1254. deprecated="not deprecated">
  1255. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1256. <doc>
  1257. <![CDATA[This method allows you to create symlinks in the current working directory
  1258. of the task to all the cache files/archives
  1259. @param conf the jobconf]]>
  1260. </doc>
  1261. </method>
  1262. <method name="getSymlink" return="boolean"
  1263. abstract="false" native="false" synchronized="false"
  1264. static="true" final="false" visibility="public"
  1265. deprecated="not deprecated">
  1266. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1267. <doc>
  1268. <![CDATA[This method checks to see if symlinks are to be create for the
  1269. localized cache files in the current working directory
  1270. @param conf the jobconf
  1271. @return true if symlinks are to be created- else return false]]>
  1272. </doc>
  1273. </method>
  1274. <method name="checkURIs" return="boolean"
  1275. abstract="false" native="false" synchronized="false"
  1276. static="true" final="false" visibility="public"
  1277. deprecated="not deprecated">
  1278. <param name="uriFiles" type="java.net.URI[]"/>
  1279. <param name="uriArchives" type="java.net.URI[]"/>
  1280. <doc>
  1281. <![CDATA[This method checks if there is a conflict in the fragment names
  1282. of the uris. Also makes sure that each uri has a fragment. It
  1283. is only to be called if you want to create symlinks for
  1284. the various archives and files.
  1285. @param uriFiles The uri array of urifiles
  1286. @param uriArchives the uri array of uri archives]]>
  1287. </doc>
  1288. </method>
  1289. <method name="purgeCache"
  1290. abstract="false" native="false" synchronized="false"
  1291. static="true" final="false" visibility="public"
  1292. deprecated="not deprecated">
  1293. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1294. <exception name="IOException" type="java.io.IOException"/>
  1295. <doc>
  1296. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  1297. should only be used when the server is reinitializing, because the users
  1298. are going to lose their files.]]>
  1299. </doc>
  1300. </method>
  1301. <doc>
  1302. <![CDATA[Distribute application-specific large, read-only files efficiently.
  1303. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  1304. framework to cache files (text, archives, jars etc.) needed by applications.
  1305. </p>
  1306. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  1307. via the {@link org.apache.hadoop.mapred.JobConf}.
  1308. The <code>DistributedCache</code> assumes that the
  1309. files specified via hdfs:// urls are already present on the
  1310. {@link FileSystem} at the path specified by the url.</p>
  1311. <p>The framework will copy the necessary files on to the slave node before
  1312. any tasks for the job are executed on that node. Its efficiency stems from
  1313. the fact that the files are only copied once per job and the ability to
  1314. cache archives which are un-archived on the slaves.</p>
  1315. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  1316. data/text files and/or more complex types such as archives, jars etc.
  1317. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  1318. Jars may be optionally added to the classpath of the tasks, a rudimentary
  1319. software distribution mechanism. Files have execution permissions.
  1320. Optionally users can also direct it to symlink the distributed cache file(s)
  1321. into the working directory of the task.</p>
  1322. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  1323. files. Clearly the cache files should not be modified by the application
  1324. or externally while the job is executing.</p>
  1325. <p>Here is an illustrative example on how to use the
  1326. <code>DistributedCache</code>:</p>
  1327. <p><blockquote><pre>
  1328. // Setting up the cache for the application
  1329. 1. Copy the requisite files to the <code>FileSystem</code>:
  1330. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  1331. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  1332. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  1333. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  1334. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  1335. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  1336. 2. Setup the application's <code>JobConf</code>:
  1337. JobConf job = new JobConf();
  1338. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  1339. job);
  1340. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  1341. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  1342. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  1343. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  1344. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  1345. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  1346. or {@link org.apache.hadoop.mapred.Reducer}:
  1347. public static class MapClass extends MapReduceBase
  1348. implements Mapper&lt;K, V, K, V&gt; {
  1349. private Path[] localArchives;
  1350. private Path[] localFiles;
  1351. public void configure(JobConf job) {
  1352. // Get the cached archives/files
  1353. localArchives = DistributedCache.getLocalCacheArchives(job);
  1354. localFiles = DistributedCache.getLocalCacheFiles(job);
  1355. }
  1356. public void map(K key, V value,
  1357. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  1358. throws IOException {
  1359. // Use data from the cached archives/files here
  1360. // ...
  1361. // ...
  1362. output.collect(k, v);
  1363. }
  1364. }
  1365. </pre></blockquote></p>
  1366. @see org.apache.hadoop.mapred.JobConf
  1367. @see org.apache.hadoop.mapred.JobClient]]>
  1368. </doc>
  1369. </class>
  1370. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  1371. </package>
  1372. <package name="org.apache.hadoop.fs">
  1373. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1374. <class name="BlockLocation" extends="java.lang.Object"
  1375. abstract="false"
  1376. static="false" final="false" visibility="public"
  1377. deprecated="not deprecated">
  1378. <implements name="org.apache.hadoop.io.Writable"/>
  1379. <constructor name="BlockLocation"
  1380. static="false" final="false" visibility="public"
  1381. deprecated="not deprecated">
  1382. <doc>
  1383. <![CDATA[Default Constructor]]>
  1384. </doc>
  1385. </constructor>
  1386. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1387. static="false" final="false" visibility="public"
  1388. deprecated="not deprecated">
  1389. <doc>
  1390. <![CDATA[Constructor with host, name, offset and length]]>
  1391. </doc>
  1392. </constructor>
  1393. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  1394. static="false" final="false" visibility="public"
  1395. deprecated="not deprecated">
  1396. <doc>
  1397. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  1398. </doc>
  1399. </constructor>
  1400. <method name="getHosts" return="java.lang.String[]"
  1401. abstract="false" native="false" synchronized="false"
  1402. static="false" final="false" visibility="public"
  1403. deprecated="not deprecated">
  1404. <exception name="IOException" type="java.io.IOException"/>
  1405. <doc>
  1406. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1407. </doc>
  1408. </method>
  1409. <method name="getNames" return="java.lang.String[]"
  1410. abstract="false" native="false" synchronized="false"
  1411. static="false" final="false" visibility="public"
  1412. deprecated="not deprecated">
  1413. <exception name="IOException" type="java.io.IOException"/>
  1414. <doc>
  1415. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1416. </doc>
  1417. </method>
  1418. <method name="getTopologyPaths" return="java.lang.String[]"
  1419. abstract="false" native="false" synchronized="false"
  1420. static="false" final="false" visibility="public"
  1421. deprecated="not deprecated">
  1422. <exception name="IOException" type="java.io.IOException"/>
  1423. <doc>
  1424. <![CDATA[Get the list of network topology paths for each of the hosts.
  1425. The last component of the path is the host.]]>
  1426. </doc>
  1427. </method>
  1428. <method name="getOffset" return="long"
  1429. abstract="false" native="false" synchronized="false"
  1430. static="false" final="false" visibility="public"
  1431. deprecated="not deprecated">
  1432. <doc>
  1433. <![CDATA[Get the start offset of file associated with this block]]>
  1434. </doc>
  1435. </method>
  1436. <method name="getLength" return="long"
  1437. abstract="false" native="false" synchronized="false"
  1438. static="false" final="false" visibility="public"
  1439. deprecated="not deprecated">
  1440. <doc>
  1441. <![CDATA[Get the length of the block]]>
  1442. </doc>
  1443. </method>
  1444. <method name="setOffset"
  1445. abstract="false" native="false" synchronized="false"
  1446. static="false" final="false" visibility="public"
  1447. deprecated="not deprecated">
  1448. <param name="offset" type="long"/>
  1449. <doc>
  1450. <![CDATA[Set the start offset of file associated with this block]]>
  1451. </doc>
  1452. </method>
  1453. <method name="setLength"
  1454. abstract="false" native="false" synchronized="false"
  1455. static="false" final="false" visibility="public"
  1456. deprecated="not deprecated">
  1457. <param name="length" type="long"/>
  1458. <doc>
  1459. <![CDATA[Set the length of block]]>
  1460. </doc>
  1461. </method>
  1462. <method name="setHosts"
  1463. abstract="false" native="false" synchronized="false"
  1464. static="false" final="false" visibility="public"
  1465. deprecated="not deprecated">
  1466. <param name="hosts" type="java.lang.String[]"/>
  1467. <exception name="IOException" type="java.io.IOException"/>
  1468. <doc>
  1469. <![CDATA[Set the hosts hosting this block]]>
  1470. </doc>
  1471. </method>
  1472. <method name="setNames"
  1473. abstract="false" native="false" synchronized="false"
  1474. static="false" final="false" visibility="public"
  1475. deprecated="not deprecated">
  1476. <param name="names" type="java.lang.String[]"/>
  1477. <exception name="IOException" type="java.io.IOException"/>
  1478. <doc>
  1479. <![CDATA[Set the names (host:port) hosting this block]]>
  1480. </doc>
  1481. </method>
  1482. <method name="setTopologyPaths"
  1483. abstract="false" native="false" synchronized="false"
  1484. static="false" final="false" visibility="public"
  1485. deprecated="not deprecated">
  1486. <param name="topologyPaths" type="java.lang.String[]"/>
  1487. <exception name="IOException" type="java.io.IOException"/>
  1488. <doc>
  1489. <![CDATA[Set the network topology paths of the hosts]]>
  1490. </doc>
  1491. </method>
  1492. <method name="write"
  1493. abstract="false" native="false" synchronized="false"
  1494. static="false" final="false" visibility="public"
  1495. deprecated="not deprecated">
  1496. <param name="out" type="java.io.DataOutput"/>
  1497. <exception name="IOException" type="java.io.IOException"/>
  1498. <doc>
  1499. <![CDATA[Implement write of Writable]]>
  1500. </doc>
  1501. </method>
  1502. <method name="readFields"
  1503. abstract="false" native="false" synchronized="false"
  1504. static="false" final="false" visibility="public"
  1505. deprecated="not deprecated">
  1506. <param name="in" type="java.io.DataInput"/>
  1507. <exception name="IOException" type="java.io.IOException"/>
  1508. <doc>
  1509. <![CDATA[Implement readFields of Writable]]>
  1510. </doc>
  1511. </method>
  1512. <method name="toString" return="java.lang.String"
  1513. abstract="false" native="false" synchronized="false"
  1514. static="false" final="false" visibility="public"
  1515. deprecated="not deprecated">
  1516. </method>
  1517. </class>
  1518. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1519. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  1520. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  1521. abstract="false"
  1522. static="false" final="false" visibility="public"
  1523. deprecated="not deprecated">
  1524. <implements name="org.apache.hadoop.fs.Seekable"/>
  1525. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  1526. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  1527. static="false" final="false" visibility="public"
  1528. deprecated="not deprecated">
  1529. <doc>
  1530. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  1531. with the specified buffer size,
  1532. and saves its argument, the input stream
  1533. <code>in</code>, for later use. An internal
  1534. buffer array of length <code>size</code>
  1535. is created and stored in <code>buf</code>.
  1536. @param in the underlying input stream.
  1537. @param size the buffer size.
  1538. @exception IllegalArgumentException if size <= 0.]]>
  1539. </doc>
  1540. </constructor>
  1541. <method name="getPos" return="long"
  1542. abstract="false" native="false" synchronized="false"
  1543. static="false" final="false" visibility="public"
  1544. deprecated="not deprecated">
  1545. <exception name="IOException" type="java.io.IOException"/>
  1546. </method>
  1547. <method name="skip" return="long"
  1548. abstract="false" native="false" synchronized="false"
  1549. static="false" final="false" visibility="public"
  1550. deprecated="not deprecated">
  1551. <param name="n" type="long"/>
  1552. <exception name="IOException" type="java.io.IOException"/>
  1553. </method>
  1554. <method name="seek"
  1555. abstract="false" native="false" synchronized="false"
  1556. static="false" final="false" visibility="public"
  1557. deprecated="not deprecated">
  1558. <param name="pos" type="long"/>
  1559. <exception name="IOException" type="java.io.IOException"/>
  1560. </method>
  1561. <method name="seekToNewSource" return="boolean"
  1562. abstract="false" native="false" synchronized="false"
  1563. static="false" final="false" visibility="public"
  1564. deprecated="not deprecated">
  1565. <param name="targetPos" type="long"/>
  1566. <exception name="IOException" type="java.io.IOException"/>
  1567. </method>
  1568. <method name="read" return="int"
  1569. abstract="false" native="false" synchronized="false"
  1570. static="false" final="false" visibility="public"
  1571. deprecated="not deprecated">
  1572. <param name="position" type="long"/>
  1573. <param name="buffer" type="byte[]"/>
  1574. <param name="offset" type="int"/>
  1575. <param name="length" type="int"/>
  1576. <exception name="IOException" type="java.io.IOException"/>
  1577. </method>
  1578. <method name="readFully"
  1579. abstract="false" native="false" synchronized="false"
  1580. static="false" final="false" visibility="public"
  1581. deprecated="not deprecated">
  1582. <param name="position" type="long"/>
  1583. <param name="buffer" type="byte[]"/>
  1584. <param name="offset" type="int"/>
  1585. <param name="length" type="int"/>
  1586. <exception name="IOException" type="java.io.IOException"/>
  1587. </method>
  1588. <method name="readFully"
  1589. abstract="false" native="false" synchronized="false"
  1590. static="false" final="false" visibility="public"
  1591. deprecated="not deprecated">
  1592. <param name="position" type="long"/>
  1593. <param name="buffer" type="byte[]"/>
  1594. <exception name="IOException" type="java.io.IOException"/>
  1595. </method>
  1596. <doc>
  1597. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  1598. </doc>
  1599. </class>
  1600. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  1601. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1602. <class name="ChecksumException" extends="java.io.IOException"
  1603. abstract="false"
  1604. static="false" final="false" visibility="public"
  1605. deprecated="not deprecated">
  1606. <constructor name="ChecksumException" type="java.lang.String, long"
  1607. static="false" final="false" visibility="public"
  1608. deprecated="not deprecated">
  1609. </constructor>
  1610. <method name="getPos" return="long"
  1611. abstract="false" native="false" synchronized="false"
  1612. static="false" final="false" visibility="public"
  1613. deprecated="not deprecated">
  1614. </method>
  1615. <doc>
  1616. <![CDATA[Thrown for checksum errors.]]>
  1617. </doc>
  1618. </class>
  1619. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1620. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1621. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1622. abstract="true"
  1623. static="false" final="false" visibility="public"
  1624. deprecated="not deprecated">
  1625. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1626. static="false" final="false" visibility="public"
  1627. deprecated="not deprecated">
  1628. </constructor>
  1629. <method name="getApproxChkSumLength" return="double"
  1630. abstract="false" native="false" synchronized="false"
  1631. static="true" final="false" visibility="public"
  1632. deprecated="not deprecated">
  1633. <param name="size" type="long"/>
  1634. </method>
  1635. <method name="setConf"
  1636. abstract="false" native="false" synchronized="false"
  1637. static="false" final="false" visibility="public"
  1638. deprecated="not deprecated">
  1639. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1640. </method>
  1641. <method name="setVerifyChecksum"
  1642. abstract="false" native="false" synchronized="false"
  1643. static="false" final="false" visibility="public"
  1644. deprecated="not deprecated">
  1645. <param name="verifyChecksum" type="boolean"/>
  1646. <doc>
  1647. <![CDATA[Set whether to verify checksum.]]>
  1648. </doc>
  1649. </method>
  1650. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1651. abstract="false" native="false" synchronized="false"
  1652. static="false" final="false" visibility="public"
  1653. deprecated="not deprecated">
  1654. <doc>
  1655. <![CDATA[get the raw file system]]>
  1656. </doc>
  1657. </method>
  1658. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1659. abstract="false" native="false" synchronized="false"
  1660. static="false" final="false" visibility="public"
  1661. deprecated="not deprecated">
  1662. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1663. <doc>
  1664. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1665. </doc>
  1666. </method>
  1667. <method name="isChecksumFile" return="boolean"
  1668. abstract="false" native="false" synchronized="false"
  1669. static="true" final="false" visibility="public"
  1670. deprecated="not deprecated">
  1671. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1672. <doc>
  1673. <![CDATA[Return true iff file is a checksum file name.]]>
  1674. </doc>
  1675. </method>
  1676. <method name="getChecksumFileLength" return="long"
  1677. abstract="false" native="false" synchronized="false"
  1678. static="false" final="false" visibility="public"
  1679. deprecated="not deprecated">
  1680. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1681. <param name="fileSize" type="long"/>
  1682. <doc>
  1683. <![CDATA[Return the length of the checksum file given the size of the
  1684. actual file.]]>
  1685. </doc>
  1686. </method>
  1687. <method name="getBytesPerSum" return="int"
  1688. abstract="false" native="false" synchronized="false"
  1689. static="false" final="false" visibility="public"
  1690. deprecated="not deprecated">
  1691. <doc>
  1692. <![CDATA[Return the bytes Per Checksum]]>
  1693. </doc>
  1694. </method>
  1695. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1696. abstract="false" native="false" synchronized="false"
  1697. static="false" final="false" visibility="public"
  1698. deprecated="not deprecated">
  1699. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1700. <param name="bufferSize" type="int"/>
  1701. <exception name="IOException" type="java.io.IOException"/>
  1702. <doc>
  1703. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1704. @param f the file name to open
  1705. @param bufferSize the size of the buffer to be used.]]>
  1706. </doc>
  1707. </method>
  1708. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1709. abstract="false" native="false" synchronized="false"
  1710. static="false" final="false" visibility="public"
  1711. deprecated="not deprecated">
  1712. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1713. <param name="bufferSize" type="int"/>
  1714. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1715. <exception name="IOException" type="java.io.IOException"/>
  1716. <doc>
  1717. <![CDATA[{@inheritDoc}]]>
  1718. </doc>
  1719. </method>
  1720. <method name="getChecksumLength" return="long"
  1721. abstract="false" native="false" synchronized="false"
  1722. static="true" final="false" visibility="public"
  1723. deprecated="not deprecated">
  1724. <param name="size" type="long"/>
  1725. <param name="bytesPerSum" type="int"/>
  1726. <doc>
  1727. <![CDATA[Calculated the length of the checksum file in bytes.
  1728. @param size the length of the data file in bytes
  1729. @param bytesPerSum the number of bytes in a checksum block
  1730. @return the number of bytes in the checksum file]]>
  1731. </doc>
  1732. </method>
  1733. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1734. abstract="false" native="false" synchronized="false"
  1735. static="false" final="false" visibility="public"
  1736. deprecated="not deprecated">
  1737. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1738. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1739. <param name="overwrite" type="boolean"/>
  1740. <param name="bufferSize" type="int"/>
  1741. <param name="replication" type="short"/>
  1742. <param name="blockSize" type="long"/>
  1743. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1744. <exception name="IOException" type="java.io.IOException"/>
  1745. <doc>
  1746. <![CDATA[{@inheritDoc}]]>
  1747. </doc>
  1748. </method>
  1749. <method name="setReplication" return="boolean"
  1750. abstract="false" native="false" synchronized="false"
  1751. static="false" final="false" visibility="public"
  1752. deprecated="not deprecated">
  1753. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1754. <param name="replication" type="short"/>
  1755. <exception name="IOException" type="java.io.IOException"/>
  1756. <doc>
  1757. <![CDATA[Set replication for an existing file.
  1758. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  1759. @param src file name
  1760. @param replication new replication
  1761. @throws IOException
  1762. @return true if successful;
  1763. false if file does not exist or is a directory]]>
  1764. </doc>
  1765. </method>
  1766. <method name="rename" return="boolean"
  1767. abstract="false" native="false" synchronized="false"
  1768. static="false" final="false" visibility="public"
  1769. deprecated="not deprecated">
  1770. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1771. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1772. <exception name="IOException" type="java.io.IOException"/>
  1773. <doc>
  1774. <![CDATA[Rename files/dirs]]>
  1775. </doc>
  1776. </method>
  1777. <method name="delete" return="boolean"
  1778. abstract="false" native="false" synchronized="false"
  1779. static="false" final="false" visibility="public"
  1780. deprecated="not deprecated">
  1781. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1782. <param name="recursive" type="boolean"/>
  1783. <exception name="IOException" type="java.io.IOException"/>
  1784. <doc>
  1785. <![CDATA[Implement the delete(Path, boolean) in checksum
  1786. file system.]]>
  1787. </doc>
  1788. </method>
  1789. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1790. abstract="false" native="false" synchronized="false"
  1791. static="false" final="false" visibility="public"
  1792. deprecated="not deprecated">
  1793. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1794. <exception name="IOException" type="java.io.IOException"/>
  1795. <doc>
  1796. <![CDATA[List the statuses of the files/directories in the given path if the path is
  1797. a directory.
  1798. @param f
  1799. given path
  1800. @return the statuses of the files/directories in the given patch
  1801. @throws IOException]]>
  1802. </doc>
  1803. </method>
  1804. <method name="mkdirs" return="boolean"
  1805. abstract="false" native="false" synchronized="false"
  1806. static="false" final="false" visibility="public"
  1807. deprecated="not deprecated">
  1808. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1809. <exception name="IOException" type="java.io.IOException"/>
  1810. </method>
  1811. <method name="copyFromLocalFile"
  1812. abstract="false" native="false" synchronized="false"
  1813. static="false" final="false" visibility="public"
  1814. deprecated="not deprecated">
  1815. <param name="delSrc" type="boolean"/>
  1816. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1817. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1818. <exception name="IOException" type="java.io.IOException"/>
  1819. </method>
  1820. <method name="copyToLocalFile"
  1821. abstract="false" native="false" synchronized="false"
  1822. static="false" final="false" visibility="public"
  1823. deprecated="not deprecated">
  1824. <param name="delSrc" type="boolean"/>
  1825. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1826. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1827. <exception name="IOException" type="java.io.IOException"/>
  1828. <doc>
  1829. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1830. Copy it from FS control to the local dst name.]]>
  1831. </doc>
  1832. </method>
  1833. <method name="copyToLocalFile"
  1834. abstract="false" native="false" synchronized="false"
  1835. static="false" final="false" visibility="public"
  1836. deprecated="not deprecated">
  1837. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1838. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1839. <param name="copyCrc" type="boolean"/>
  1840. <exception name="IOException" type="java.io.IOException"/>
  1841. <doc>
  1842. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1843. Copy it from FS control to the local dst name.
  1844. If src and dst are directories, the copyCrc parameter
  1845. determines whether to copy CRC files.]]>
  1846. </doc>
  1847. </method>
  1848. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  1849. abstract="false" native="false" synchronized="false"
  1850. static="false" final="false" visibility="public"
  1851. deprecated="not deprecated">
  1852. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1853. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1854. <exception name="IOException" type="java.io.IOException"/>
  1855. </method>
  1856. <method name="completeLocalOutput"
  1857. abstract="false" native="false" synchronized="false"
  1858. static="false" final="false" visibility="public"
  1859. deprecated="not deprecated">
  1860. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1861. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1862. <exception name="IOException" type="java.io.IOException"/>
  1863. </method>
  1864. <method name="reportChecksumFailure" return="boolean"
  1865. abstract="false" native="false" synchronized="false"
  1866. static="false" final="false" visibility="public"
  1867. deprecated="not deprecated">
  1868. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1869. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1870. <param name="inPos" type="long"/>
  1871. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1872. <param name="sumsPos" type="long"/>
  1873. <doc>
  1874. <![CDATA[Report a checksum error to the file system.
  1875. @param f the file name containing the error
  1876. @param in the stream open on the file
  1877. @param inPos the position of the beginning of the bad data in the file
  1878. @param sums the stream open on the checksum file
  1879. @param sumsPos the position of the beginning of the bad data in the checksum file
  1880. @return if retry is neccessary]]>
  1881. </doc>
  1882. </method>
  1883. <doc>
  1884. <![CDATA[Abstract Checksumed FileSystem.
  1885. It provide a basice implementation of a Checksumed FileSystem,
  1886. which creates a checksum file for each raw file.
  1887. It generates & verifies checksums at the client side.]]>
  1888. </doc>
  1889. </class>
  1890. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  1891. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1892. <class name="ContentSummary" extends="java.lang.Object"
  1893. abstract="false"
  1894. static="false" final="false" visibility="public"
  1895. deprecated="not deprecated">
  1896. <implements name="org.apache.hadoop.io.Writable"/>
  1897. <constructor name="ContentSummary"
  1898. static="false" final="false" visibility="public"
  1899. deprecated="not deprecated">
  1900. <doc>
  1901. <![CDATA[Constructor]]>
  1902. </doc>
  1903. </constructor>
  1904. <constructor name="ContentSummary" type="long, long, long"
  1905. static="false" final="false" visibility="public"
  1906. deprecated="not deprecated">
  1907. <doc>
  1908. <![CDATA[Constructor]]>
  1909. </doc>
  1910. </constructor>
  1911. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1912. static="false" final="false" visibility="public"
  1913. deprecated="not deprecated">
  1914. <doc>
  1915. <![CDATA[Constructor]]>
  1916. </doc>
  1917. </constructor>
  1918. <method name="getLength" return="long"
  1919. abstract="false" native="false" synchronized="false"
  1920. static="false" final="false" visibility="public"
  1921. deprecated="not deprecated">
  1922. <doc>
  1923. <![CDATA[@return the length]]>
  1924. </doc>
  1925. </method>
  1926. <method name="getDirectoryCount" return="long"
  1927. abstract="false" native="false" synchronized="false"
  1928. static="false" final="false" visibility="public"
  1929. deprecated="not deprecated">
  1930. <doc>
  1931. <![CDATA[@return the directory count]]>
  1932. </doc>
  1933. </method>
  1934. <method name="getFileCount" return="long"
  1935. abstract="false" native="false" synchronized="false"
  1936. static="false" final="false" visibility="public"
  1937. deprecated="not deprecated">
  1938. <doc>
  1939. <![CDATA[@return the file count]]>
  1940. </doc>
  1941. </method>
  1942. <method name="getQuota" return="long"
  1943. abstract="false" native="false" synchronized="false"
  1944. static="false" final="false" visibility="public"
  1945. deprecated="not deprecated">
  1946. <doc>
  1947. <![CDATA[Return the directory quota]]>
  1948. </doc>
  1949. </method>
  1950. <method name="getSpaceConsumed" return="long"
  1951. abstract="false" native="false" synchronized="false"
  1952. static="false" final="false" visibility="public"
  1953. deprecated="not deprecated">
  1954. <doc>
  1955. <![CDATA[Retuns (disk) space consumed]]>
  1956. </doc>
  1957. </method>
  1958. <method name="getSpaceQuota" return="long"
  1959. abstract="false" native="false" synchronized="false"
  1960. static="false" final="false" visibility="public"
  1961. deprecated="not deprecated">
  1962. <doc>
  1963. <![CDATA[Returns (disk) space quota]]>
  1964. </doc>
  1965. </method>
  1966. <method name="write"
  1967. abstract="false" native="false" synchronized="false"
  1968. static="false" final="false" visibility="public"
  1969. deprecated="not deprecated">
  1970. <param name="out" type="java.io.DataOutput"/>
  1971. <exception name="IOException" type="java.io.IOException"/>
  1972. <doc>
  1973. <![CDATA[{@inheritDoc}]]>
  1974. </doc>
  1975. </method>
  1976. <method name="readFields"
  1977. abstract="false" native="false" synchronized="false"
  1978. static="false" final="false" visibility="public"
  1979. deprecated="not deprecated">
  1980. <param name="in" type="java.io.DataInput"/>
  1981. <exception name="IOException" type="java.io.IOException"/>
  1982. <doc>
  1983. <![CDATA[{@inheritDoc}]]>
  1984. </doc>
  1985. </method>
  1986. <method name="getHeader" return="java.lang.String"
  1987. abstract="false" native="false" synchronized="false"
  1988. static="true" final="false" visibility="public"
  1989. deprecated="not deprecated">
  1990. <param name="qOption" type="boolean"/>
  1991. <doc>
  1992. <![CDATA[Return the header of the output.
  1993. if qOption is false, output directory count, file count, and content size;
  1994. if qOption is true, output quota and remaining quota as well.
  1995. @param qOption a flag indicating if quota needs to be printed or not
  1996. @return the header of the output]]>
  1997. </doc>
  1998. </method>
  1999. <method name="toString" return="java.lang.String"
  2000. abstract="false" native="false" synchronized="false"
  2001. static="false" final="false" visibility="public"
  2002. deprecated="not deprecated">
  2003. <doc>
  2004. <![CDATA[{@inheritDoc}]]>
  2005. </doc>
  2006. </method>
  2007. <method name="toString" return="java.lang.String"
  2008. abstract="false" native="false" synchronized="false"
  2009. static="false" final="false" visibility="public"
  2010. deprecated="not deprecated">
  2011. <param name="qOption" type="boolean"/>
  2012. <doc>
  2013. <![CDATA[Return the string representation of the object in the output format.
  2014. if qOption is false, output directory count, file count, and content size;
  2015. if qOption is true, output quota and remaining quota as well.
  2016. @param qOption a flag indicating if quota needs to be printed or not
  2017. @return the string representation of the object]]>
  2018. </doc>
  2019. </method>
  2020. <doc>
  2021. <![CDATA[Store the summary of a content (a directory or a file).]]>
  2022. </doc>
  2023. </class>
  2024. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  2025. <!-- start class org.apache.hadoop.fs.DF -->
  2026. <class name="DF" extends="org.apache.hadoop.util.Shell"
  2027. abstract="false"
  2028. static="false" final="false" visibility="public"
  2029. deprecated="not deprecated">
  2030. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  2031. static="false" final="false" visibility="public"
  2032. deprecated="not deprecated">
  2033. <exception name="IOException" type="java.io.IOException"/>
  2034. </constructor>
  2035. <constructor name="DF" type="java.io.File, long"
  2036. static="false" final="false" visibility="public"
  2037. deprecated="not deprecated">
  2038. <exception name="IOException" type="java.io.IOException"/>
  2039. </constructor>
  2040. <method name="getDirPath" return="java.lang.String"
  2041. abstract="false" native="false" synchronized="false"
  2042. static="false" final="false" visibility="public"
  2043. deprecated="not deprecated">
  2044. </method>
  2045. <method name="getFilesystem" return="java.lang.String"
  2046. abstract="false" native="false" synchronized="false"
  2047. static="false" final="false" visibility="public"
  2048. deprecated="not deprecated">
  2049. <exception name="IOException" type="java.io.IOException"/>
  2050. </method>
  2051. <method name="getCapacity" return="long"
  2052. abstract="false" native="false" synchronized="false"
  2053. static="false" final="false" visibility="public"
  2054. deprecated="not deprecated">
  2055. <exception name="IOException" type="java.io.IOException"/>
  2056. </method>
  2057. <method name="getUsed" return="long"
  2058. abstract="false" native="false" synchronized="false"
  2059. static="false" final="false" visibility="public"
  2060. deprecated="not deprecated">
  2061. <exception name="IOException" type="java.io.IOException"/>
  2062. </method>
  2063. <method name="getAvailable" return="long"
  2064. abstract="false" native="false" synchronized="false"
  2065. static="false" final="false" visibility="public"
  2066. deprecated="not deprecated">
  2067. <exception name="IOException" type="java.io.IOException"/>
  2068. </method>
  2069. <method name="getPercentUsed" return="int"
  2070. abstract="false" native="false" synchronized="false"
  2071. static="false" final="false" visibility="public"
  2072. deprecated="not deprecated">
  2073. <exception name="IOException" type="java.io.IOException"/>
  2074. </method>
  2075. <method name="getMount" return="java.lang.String"
  2076. abstract="false" native="false" synchronized="false"
  2077. static="false" final="false" visibility="public"
  2078. deprecated="not deprecated">
  2079. <exception name="IOException" type="java.io.IOException"/>
  2080. </method>
  2081. <method name="toString" return="java.lang.String"
  2082. abstract="false" native="false" synchronized="false"
  2083. static="false" final="false" visibility="public"
  2084. deprecated="not deprecated">
  2085. </method>
  2086. <method name="getExecString" return="java.lang.String[]"
  2087. abstract="false" native="false" synchronized="false"
  2088. static="false" final="false" visibility="protected"
  2089. deprecated="not deprecated">
  2090. </method>
  2091. <method name="parseExecResult"
  2092. abstract="false" native="false" synchronized="false"
  2093. static="false" final="false" visibility="protected"
  2094. deprecated="not deprecated">
  2095. <param name="lines" type="java.io.BufferedReader"/>
  2096. <exception name="IOException" type="java.io.IOException"/>
  2097. </method>
  2098. <method name="main"
  2099. abstract="false" native="false" synchronized="false"
  2100. static="true" final="false" visibility="public"
  2101. deprecated="not deprecated">
  2102. <param name="args" type="java.lang.String[]"/>
  2103. <exception name="Exception" type="java.lang.Exception"/>
  2104. </method>
  2105. <field name="DF_INTERVAL_DEFAULT" type="long"
  2106. transient="false" volatile="false"
  2107. static="true" final="true" visibility="public"
  2108. deprecated="not deprecated">
  2109. </field>
  2110. <doc>
  2111. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program.
  2112. Tested on Linux, FreeBSD, Cygwin.]]>
  2113. </doc>
  2114. </class>
  2115. <!-- end class org.apache.hadoop.fs.DF -->
  2116. <!-- start class org.apache.hadoop.fs.DU -->
  2117. <class name="DU" extends="org.apache.hadoop.util.Shell"
  2118. abstract="false"
  2119. static="false" final="false" visibility="public"
  2120. deprecated="not deprecated">
  2121. <constructor name="DU" type="java.io.File, long"
  2122. static="false" final="false" visibility="public"
  2123. deprecated="not deprecated">
  2124. <exception name="IOException" type="java.io.IOException"/>
  2125. <doc>
  2126. <![CDATA[Keeps track of disk usage.
  2127. @param path the path to check disk usage in
  2128. @param interval refresh the disk usage at this interval
  2129. @throws IOException if we fail to refresh the disk usage]]>
  2130. </doc>
  2131. </constructor>
  2132. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  2133. static="false" final="false" visibility="public"
  2134. deprecated="not deprecated">
  2135. <exception name="IOException" type="java.io.IOException"/>
  2136. <doc>
  2137. <![CDATA[Keeps track of disk usage.
  2138. @param path the path to check disk usage in
  2139. @param conf configuration object
  2140. @throws IOException if we fail to refresh the disk usage]]>
  2141. </doc>
  2142. </constructor>
  2143. <method name="decDfsUsed"
  2144. abstract="false" native="false" synchronized="false"
  2145. static="false" final="false" visibility="public"
  2146. deprecated="not deprecated">
  2147. <param name="value" type="long"/>
  2148. <doc>
  2149. <![CDATA[Decrease how much disk space we use.
  2150. @param value decrease by this value]]>
  2151. </doc>
  2152. </method>
  2153. <method name="incDfsUsed"
  2154. abstract="false" native="false" synchronized="false"
  2155. static="false" final="false" visibility="public"
  2156. deprecated="not deprecated">
  2157. <param name="value" type="long"/>
  2158. <doc>
  2159. <![CDATA[Increase how much disk space we use.
  2160. @param value increase by this value]]>
  2161. </doc>
  2162. </method>
  2163. <method name="getUsed" return="long"
  2164. abstract="false" native="false" synchronized="false"
  2165. static="false" final="false" visibility="public"
  2166. deprecated="not deprecated">
  2167. <exception name="IOException" type="java.io.IOException"/>
  2168. <doc>
  2169. <![CDATA[@return disk space used
  2170. @throws IOException if the shell command fails]]>
  2171. </doc>
  2172. </method>
  2173. <method name="getDirPath" return="java.lang.String"
  2174. abstract="false" native="false" synchronized="false"
  2175. static="false" final="false" visibility="public"
  2176. deprecated="not deprecated">
  2177. <doc>
  2178. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  2179. </doc>
  2180. </method>
  2181. <method name="start"
  2182. abstract="false" native="false" synchronized="false"
  2183. static="false" final="false" visibility="public"
  2184. deprecated="not deprecated">
  2185. <doc>
  2186. <![CDATA[Start the disk usage checking thread.]]>
  2187. </doc>
  2188. </method>
  2189. <method name="shutdown"
  2190. abstract="false" native="false" synchronized="false"
  2191. static="false" final="false" visibility="public"
  2192. deprecated="not deprecated">
  2193. <doc>
  2194. <![CDATA[Shut down the refreshing thread.]]>
  2195. </doc>
  2196. </method>
  2197. <method name="toString" return="java.lang.String"
  2198. abstract="false" native="false" synchronized="false"
  2199. static="false" final="false" visibility="public"
  2200. deprecated="not deprecated">
  2201. </method>
  2202. <method name="getExecString" return="java.lang.String[]"
  2203. abstract="false" native="false" synchronized="false"
  2204. static="false" final="false" visibility="protected"
  2205. deprecated="not deprecated">
  2206. </method>
  2207. <method name="parseExecResult"
  2208. abstract="false" native="false" synchronized="false"
  2209. static="false" final="false" visibility="protected"
  2210. deprecated="not deprecated">
  2211. <param name="lines" type="java.io.BufferedReader"/>
  2212. <exception name="IOException" type="java.io.IOException"/>
  2213. </method>
  2214. <method name="main"
  2215. abstract="false" native="false" synchronized="false"
  2216. static="true" final="false" visibility="public"
  2217. deprecated="not deprecated">
  2218. <param name="args" type="java.lang.String[]"/>
  2219. <exception name="Exception" type="java.lang.Exception"/>
  2220. </method>
  2221. <doc>
  2222. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  2223. </doc>
  2224. </class>
  2225. <!-- end class org.apache.hadoop.fs.DU -->
  2226. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2227. <class name="FileChecksum" extends="java.lang.Object"
  2228. abstract="true"
  2229. static="false" final="false" visibility="public"
  2230. deprecated="not deprecated">
  2231. <implements name="org.apache.hadoop.io.Writable"/>
  2232. <constructor name="FileChecksum"
  2233. static="false" final="false" visibility="public"
  2234. deprecated="not deprecated">
  2235. </constructor>
  2236. <method name="getAlgorithmName" return="java.lang.String"
  2237. abstract="true" native="false" synchronized="false"
  2238. static="false" final="false" visibility="public"
  2239. deprecated="not deprecated">
  2240. <doc>
  2241. <![CDATA[The checksum algorithm name]]>
  2242. </doc>
  2243. </method>
  2244. <method name="getLength" return="int"
  2245. abstract="true" native="false" synchronized="false"
  2246. static="false" final="false" visibility="public"
  2247. deprecated="not deprecated">
  2248. <doc>
  2249. <![CDATA[The length of the checksum in bytes]]>
  2250. </doc>
  2251. </method>
  2252. <method name="getBytes" return="byte[]"
  2253. abstract="true" native="false" synchronized="false"
  2254. static="false" final="false" visibility="public"
  2255. deprecated="not deprecated">
  2256. <doc>
  2257. <![CDATA[The value of the checksum in bytes]]>
  2258. </doc>
  2259. </method>
  2260. <method name="equals" return="boolean"
  2261. abstract="false" native="false" synchronized="false"
  2262. static="false" final="false" visibility="public"
  2263. deprecated="not deprecated">
  2264. <param name="other" type="java.lang.Object"/>
  2265. <doc>
  2266. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2267. </doc>
  2268. </method>
  2269. <method name="hashCode" return="int"
  2270. abstract="false" native="false" synchronized="false"
  2271. static="false" final="false" visibility="public"
  2272. deprecated="not deprecated">
  2273. <doc>
  2274. <![CDATA[{@inheritDoc}]]>
  2275. </doc>
  2276. </method>
  2277. <doc>
  2278. <![CDATA[An abstract class representing file checksums for files.]]>
  2279. </doc>
  2280. </class>
  2281. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2282. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2283. <class name="FileStatus" extends="java.lang.Object"
  2284. abstract="false"
  2285. static="false" final="false" visibility="public"
  2286. deprecated="not deprecated">
  2287. <implements name="org.apache.hadoop.io.Writable"/>
  2288. <implements name="java.lang.Comparable"/>
  2289. <constructor name="FileStatus"
  2290. static="false" final="false" visibility="public"
  2291. deprecated="not deprecated">
  2292. </constructor>
  2293. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2294. static="false" final="false" visibility="public"
  2295. deprecated="not deprecated">
  2296. </constructor>
  2297. <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"
  2298. static="false" final="false" visibility="public"
  2299. deprecated="not deprecated">
  2300. </constructor>
  2301. <method name="getLen" return="long"
  2302. abstract="false" native="false" synchronized="false"
  2303. static="false" final="false" visibility="public"
  2304. deprecated="not deprecated">
  2305. </method>
  2306. <method name="isDir" return="boolean"
  2307. abstract="false" native="false" synchronized="false"
  2308. static="false" final="false" visibility="public"
  2309. deprecated="not deprecated">
  2310. <doc>
  2311. <![CDATA[Is this a directory?
  2312. @return true if this is a directory]]>
  2313. </doc>
  2314. </method>
  2315. <method name="getBlockSize" return="long"
  2316. abstract="false" native="false" synchronized="false"
  2317. static="false" final="false" visibility="public"
  2318. deprecated="not deprecated">
  2319. <doc>
  2320. <![CDATA[Get the block size of the file.
  2321. @return the number of bytes]]>
  2322. </doc>
  2323. </method>
  2324. <method name="getReplication" return="short"
  2325. abstract="false" native="false" synchronized="false"
  2326. static="false" final="false" visibility="public"
  2327. deprecated="not deprecated">
  2328. <doc>
  2329. <![CDATA[Get the replication factor of a file.
  2330. @return the replication factor of a file.]]>
  2331. </doc>
  2332. </method>
  2333. <method name="getModificationTime" return="long"
  2334. abstract="false" native="false" synchronized="false"
  2335. static="false" final="false" visibility="public"
  2336. deprecated="not deprecated">
  2337. <doc>
  2338. <![CDATA[Get the modification time of the file.
  2339. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2340. </doc>
  2341. </method>
  2342. <method name="getAccessTime" return="long"
  2343. abstract="false" native="false" synchronized="false"
  2344. static="false" final="false" visibility="public"
  2345. deprecated="not deprecated">
  2346. <doc>
  2347. <![CDATA[Get the access time of the file.
  2348. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2349. </doc>
  2350. </method>
  2351. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2352. abstract="false" native="false" synchronized="false"
  2353. static="false" final="false" visibility="public"
  2354. deprecated="not deprecated">
  2355. <doc>
  2356. <![CDATA[Get FsPermission associated with the file.
  2357. @return permssion. If a filesystem does not have a notion of permissions
  2358. or if permissions could not be determined, then default
  2359. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2360. </doc>
  2361. </method>
  2362. <method name="getOwner" return="java.lang.String"
  2363. abstract="false" native="false" synchronized="false"
  2364. static="false" final="false" visibility="public"
  2365. deprecated="not deprecated">
  2366. <doc>
  2367. <![CDATA[Get the owner of the file.
  2368. @return owner of the file. The string could be empty if there is no
  2369. notion of owner of a file in a filesystem or if it could not
  2370. be determined (rare).]]>
  2371. </doc>
  2372. </method>
  2373. <method name="getGroup" return="java.lang.String"
  2374. abstract="false" native="false" synchronized="false"
  2375. static="false" final="false" visibility="public"
  2376. deprecated="not deprecated">
  2377. <doc>
  2378. <![CDATA[Get the group associated with the file.
  2379. @return group for the file. The string could be empty if there is no
  2380. notion of group of a file in a filesystem or if it could not
  2381. be determined (rare).]]>
  2382. </doc>
  2383. </method>
  2384. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2385. abstract="false" native="false" synchronized="false"
  2386. static="false" final="false" visibility="public"
  2387. deprecated="not deprecated">
  2388. </method>
  2389. <method name="setPermission"
  2390. abstract="false" native="false" synchronized="false"
  2391. static="false" final="false" visibility="protected"
  2392. deprecated="not deprecated">
  2393. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2394. <doc>
  2395. <![CDATA[Sets permission.
  2396. @param permission if permission is null, default value is set]]>
  2397. </doc>
  2398. </method>
  2399. <method name="setOwner"
  2400. abstract="false" native="false" synchronized="false"
  2401. static="false" final="false" visibility="protected"
  2402. deprecated="not deprecated">
  2403. <param name="owner" type="java.lang.String"/>
  2404. <doc>
  2405. <![CDATA[Sets owner.
  2406. @param owner if it is null, default value is set]]>
  2407. </doc>
  2408. </method>
  2409. <method name="setGroup"
  2410. abstract="false" native="false" synchronized="false"
  2411. static="false" final="false" visibility="protected"
  2412. deprecated="not deprecated">
  2413. <param name="group" type="java.lang.String"/>
  2414. <doc>
  2415. <![CDATA[Sets group.
  2416. @param group if it is null, default value is set]]>
  2417. </doc>
  2418. </method>
  2419. <method name="write"
  2420. abstract="false" native="false" synchronized="false"
  2421. static="false" final="false" visibility="public"
  2422. deprecated="not deprecated">
  2423. <param name="out" type="java.io.DataOutput"/>
  2424. <exception name="IOException" type="java.io.IOException"/>
  2425. </method>
  2426. <method name="readFields"
  2427. abstract="false" native="false" synchronized="false"
  2428. static="false" final="false" visibility="public"
  2429. deprecated="not deprecated">
  2430. <param name="in" type="java.io.DataInput"/>
  2431. <exception name="IOException" type="java.io.IOException"/>
  2432. </method>
  2433. <method name="compareTo" return="int"
  2434. abstract="false" native="false" synchronized="false"
  2435. static="false" final="false" visibility="public"
  2436. deprecated="not deprecated">
  2437. <param name="o" type="java.lang.Object"/>
  2438. <doc>
  2439. <![CDATA[Compare this object to another object
  2440. @param o the object to be compared.
  2441. @return a negative integer, zero, or a positive integer as this object
  2442. is less than, equal to, or greater than the specified object.
  2443. @throws ClassCastException if the specified object's is not of
  2444. type FileStatus]]>
  2445. </doc>
  2446. </method>
  2447. <method name="equals" return="boolean"
  2448. abstract="false" native="false" synchronized="false"
  2449. static="false" final="false" visibility="public"
  2450. deprecated="not deprecated">
  2451. <param name="o" type="java.lang.Object"/>
  2452. <doc>
  2453. <![CDATA[Compare if this object is equal to another object
  2454. @param o the object to be compared.
  2455. @return true if two file status has the same path name; false if not.]]>
  2456. </doc>
  2457. </method>
  2458. <method name="hashCode" return="int"
  2459. abstract="false" native="false" synchronized="false"
  2460. static="false" final="false" visibility="public"
  2461. deprecated="not deprecated">
  2462. <doc>
  2463. <![CDATA[Returns a hash code value for the object, which is defined as
  2464. the hash code of the path name.
  2465. @return a hash code value for the path name.]]>
  2466. </doc>
  2467. </method>
  2468. <doc>
  2469. <![CDATA[Interface that represents the client side information for a file.]]>
  2470. </doc>
  2471. </class>
  2472. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2473. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2474. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2475. abstract="true"
  2476. static="false" final="false" visibility="public"
  2477. deprecated="not deprecated">
  2478. <implements name="java.io.Closeable"/>
  2479. <constructor name="FileSystem"
  2480. static="false" final="false" visibility="protected"
  2481. deprecated="not deprecated">
  2482. </constructor>
  2483. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2484. abstract="false" native="false" synchronized="false"
  2485. static="true" final="false" visibility="public"
  2486. deprecated="not deprecated">
  2487. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2488. <exception name="IOException" type="java.io.IOException"/>
  2489. <doc>
  2490. <![CDATA[Returns the configured filesystem implementation.]]>
  2491. </doc>
  2492. </method>
  2493. <method name="getDefaultUri" return="java.net.URI"
  2494. abstract="false" native="false" synchronized="false"
  2495. static="true" final="false" visibility="public"
  2496. deprecated="not deprecated">
  2497. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2498. <doc>
  2499. <![CDATA[Get the default filesystem URI from a configuration.
  2500. @param conf the configuration to access
  2501. @return the uri of the default filesystem]]>
  2502. </doc>
  2503. </method>
  2504. <method name="setDefaultUri"
  2505. abstract="false" native="false" synchronized="false"
  2506. static="true" final="false" visibility="public"
  2507. deprecated="not deprecated">
  2508. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2509. <param name="uri" type="java.net.URI"/>
  2510. <doc>
  2511. <![CDATA[Set the default filesystem URI in a configuration.
  2512. @param conf the configuration to alter
  2513. @param uri the new default filesystem uri]]>
  2514. </doc>
  2515. </method>
  2516. <method name="setDefaultUri"
  2517. abstract="false" native="false" synchronized="false"
  2518. static="true" final="false" visibility="public"
  2519. deprecated="not deprecated">
  2520. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2521. <param name="uri" type="java.lang.String"/>
  2522. <doc>
  2523. <![CDATA[Set the default filesystem URI in a configuration.
  2524. @param conf the configuration to alter
  2525. @param uri the new default filesystem uri]]>
  2526. </doc>
  2527. </method>
  2528. <method name="initialize"
  2529. abstract="false" native="false" synchronized="false"
  2530. static="false" final="false" visibility="public"
  2531. deprecated="not deprecated">
  2532. <param name="name" type="java.net.URI"/>
  2533. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2534. <exception name="IOException" type="java.io.IOException"/>
  2535. <doc>
  2536. <![CDATA[Called after a new FileSystem instance is constructed.
  2537. @param name a uri whose authority section names the host, port, etc.
  2538. for this FileSystem
  2539. @param conf the configuration]]>
  2540. </doc>
  2541. </method>
  2542. <method name="getUri" return="java.net.URI"
  2543. abstract="true" native="false" synchronized="false"
  2544. static="false" final="false" visibility="public"
  2545. deprecated="not deprecated">
  2546. <doc>
  2547. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2548. </doc>
  2549. </method>
  2550. <method name="getName" return="java.lang.String"
  2551. abstract="false" native="false" synchronized="false"
  2552. static="false" final="false" visibility="public"
  2553. deprecated="call #getUri() instead.">
  2554. <doc>
  2555. <![CDATA[@deprecated call #getUri() instead.]]>
  2556. </doc>
  2557. </method>
  2558. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2559. abstract="false" native="false" synchronized="false"
  2560. static="true" final="false" visibility="public"
  2561. deprecated="call #get(URI,Configuration) instead.">
  2562. <param name="name" type="java.lang.String"/>
  2563. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2564. <exception name="IOException" type="java.io.IOException"/>
  2565. <doc>
  2566. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2567. </doc>
  2568. </method>
  2569. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2570. abstract="false" native="false" synchronized="false"
  2571. static="true" final="false" visibility="public"
  2572. deprecated="not deprecated">
  2573. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2574. <exception name="IOException" type="java.io.IOException"/>
  2575. <doc>
  2576. <![CDATA[Get the local file syste
  2577. @param conf the configuration to configure the file system with
  2578. @return a LocalFileSystem]]>
  2579. </doc>
  2580. </method>
  2581. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2582. abstract="false" native="false" synchronized="false"
  2583. static="true" final="false" visibility="public"
  2584. deprecated="not deprecated">
  2585. <param name="uri" type="java.net.URI"/>
  2586. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2587. <exception name="IOException" type="java.io.IOException"/>
  2588. <doc>
  2589. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2590. of the URI determines a configuration property name,
  2591. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2592. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2593. </doc>
  2594. </method>
  2595. <method name="closeAll"
  2596. abstract="false" native="false" synchronized="false"
  2597. static="true" final="false" visibility="public"
  2598. deprecated="not deprecated">
  2599. <exception name="IOException" type="java.io.IOException"/>
  2600. <doc>
  2601. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2602. used anymore.
  2603. @throws IOException]]>
  2604. </doc>
  2605. </method>
  2606. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2607. abstract="false" native="false" synchronized="false"
  2608. static="false" final="false" visibility="public"
  2609. deprecated="not deprecated">
  2610. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2611. <doc>
  2612. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2613. </doc>
  2614. </method>
  2615. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2616. abstract="false" native="false" synchronized="false"
  2617. static="true" final="false" visibility="public"
  2618. deprecated="not deprecated">
  2619. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2620. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2621. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2622. <exception name="IOException" type="java.io.IOException"/>
  2623. <doc>
  2624. <![CDATA[create a file with the provided permission
  2625. The permission of the file is set to be the provided permission as in
  2626. setPermission, not permission&~umask
  2627. It is implemented using two RPCs. It is understood that it is inefficient,
  2628. but the implementation is thread-safe. The other option is to change the
  2629. value of umask in configuration to be 0, but it is not thread-safe.
  2630. @param fs file system handle
  2631. @param file the name of the file to be created
  2632. @param permission the permission of the file
  2633. @return an output stream
  2634. @throws IOException]]>
  2635. </doc>
  2636. </method>
  2637. <method name="mkdirs" return="boolean"
  2638. abstract="false" native="false" synchronized="false"
  2639. static="true" final="false" visibility="public"
  2640. deprecated="not deprecated">
  2641. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2642. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2643. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2644. <exception name="IOException" type="java.io.IOException"/>
  2645. <doc>
  2646. <![CDATA[create a directory with the provided permission
  2647. The permission of the directory is set to be the provided permission as in
  2648. setPermission, not permission&~umask
  2649. @see #create(FileSystem, Path, FsPermission)
  2650. @param fs file system handle
  2651. @param dir the name of the directory to be created
  2652. @param permission the permission of the directory
  2653. @return true if the directory creation succeeds; false otherwise
  2654. @throws IOException]]>
  2655. </doc>
  2656. </method>
  2657. <method name="checkPath"
  2658. abstract="false" native="false" synchronized="false"
  2659. static="false" final="false" visibility="protected"
  2660. deprecated="not deprecated">
  2661. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2662. <doc>
  2663. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2664. </doc>
  2665. </method>
  2666. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2667. abstract="false" native="false" synchronized="false"
  2668. static="false" final="false" visibility="public"
  2669. deprecated="not deprecated">
  2670. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2671. <param name="start" type="long"/>
  2672. <param name="len" type="long"/>
  2673. <exception name="IOException" type="java.io.IOException"/>
  2674. <doc>
  2675. <![CDATA[Return an array containing hostnames, offset and size of
  2676. portions of the given file. For a nonexistent
  2677. file or regions, null will be returned.
  2678. This call is most helpful with DFS, where it returns
  2679. hostnames of machines that contain the given file.
  2680. The FileSystem will simply return an elt containing 'localhost'.]]>
  2681. </doc>
  2682. </method>
  2683. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2684. abstract="true" native="false" synchronized="false"
  2685. static="false" final="false" visibility="public"
  2686. deprecated="not deprecated">
  2687. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2688. <param name="bufferSize" type="int"/>
  2689. <exception name="IOException" type="java.io.IOException"/>
  2690. <doc>
  2691. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2692. @param f the file name to open
  2693. @param bufferSize the size of the buffer to be used.]]>
  2694. </doc>
  2695. </method>
  2696. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2697. abstract="false" native="false" synchronized="false"
  2698. static="false" final="false" visibility="public"
  2699. deprecated="not deprecated">
  2700. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2701. <exception name="IOException" type="java.io.IOException"/>
  2702. <doc>
  2703. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2704. @param f the file to open]]>
  2705. </doc>
  2706. </method>
  2707. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2708. abstract="false" native="false" synchronized="false"
  2709. static="false" final="false" visibility="public"
  2710. deprecated="not deprecated">
  2711. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2712. <exception name="IOException" type="java.io.IOException"/>
  2713. <doc>
  2714. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2715. Files are overwritten by default.]]>
  2716. </doc>
  2717. </method>
  2718. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2719. abstract="false" native="false" synchronized="false"
  2720. static="false" final="false" visibility="public"
  2721. deprecated="not deprecated">
  2722. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2723. <param name="overwrite" type="boolean"/>
  2724. <exception name="IOException" type="java.io.IOException"/>
  2725. <doc>
  2726. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2727. </doc>
  2728. </method>
  2729. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2730. abstract="false" native="false" synchronized="false"
  2731. static="false" final="false" visibility="public"
  2732. deprecated="not deprecated">
  2733. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2734. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2735. <exception name="IOException" type="java.io.IOException"/>
  2736. <doc>
  2737. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2738. reporting.
  2739. Files are overwritten by default.]]>
  2740. </doc>
  2741. </method>
  2742. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2743. abstract="false" native="false" synchronized="false"
  2744. static="false" final="false" visibility="public"
  2745. deprecated="not deprecated">
  2746. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2747. <param name="replication" type="short"/>
  2748. <exception name="IOException" type="java.io.IOException"/>
  2749. <doc>
  2750. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2751. Files are overwritten by default.]]>
  2752. </doc>
  2753. </method>
  2754. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2755. abstract="false" native="false" synchronized="false"
  2756. static="false" final="false" visibility="public"
  2757. deprecated="not deprecated">
  2758. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2759. <param name="replication" type="short"/>
  2760. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2761. <exception name="IOException" type="java.io.IOException"/>
  2762. <doc>
  2763. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2764. reporting.
  2765. Files are overwritten by default.]]>
  2766. </doc>
  2767. </method>
  2768. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2769. abstract="false" native="false" synchronized="false"
  2770. static="false" final="false" visibility="public"
  2771. deprecated="not deprecated">
  2772. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2773. <param name="overwrite" type="boolean"/>
  2774. <param name="bufferSize" type="int"/>
  2775. <exception name="IOException" type="java.io.IOException"/>
  2776. <doc>
  2777. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2778. @param f the file name to open
  2779. @param overwrite if a file with this name already exists, then if true,
  2780. the file will be overwritten, and if false an error will be thrown.
  2781. @param bufferSize the size of the buffer to be used.]]>
  2782. </doc>
  2783. </method>
  2784. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2785. abstract="false" native="false" synchronized="false"
  2786. static="false" final="false" visibility="public"
  2787. deprecated="not deprecated">
  2788. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2789. <param name="overwrite" type="boolean"/>
  2790. <param name="bufferSize" type="int"/>
  2791. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2792. <exception name="IOException" type="java.io.IOException"/>
  2793. <doc>
  2794. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2795. reporting.
  2796. @param f the file name to open
  2797. @param overwrite if a file with this name already exists, then if true,
  2798. the file will be overwritten, and if false an error will be thrown.
  2799. @param bufferSize the size of the buffer to be used.]]>
  2800. </doc>
  2801. </method>
  2802. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2803. abstract="false" native="false" synchronized="false"
  2804. static="false" final="false" visibility="public"
  2805. deprecated="not deprecated">
  2806. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2807. <param name="overwrite" type="boolean"/>
  2808. <param name="bufferSize" type="int"/>
  2809. <param name="replication" type="short"/>
  2810. <param name="blockSize" type="long"/>
  2811. <exception name="IOException" type="java.io.IOException"/>
  2812. <doc>
  2813. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2814. @param f the file name to open
  2815. @param overwrite if a file with this name already exists, then if true,
  2816. the file will be overwritten, and if false an error will be thrown.
  2817. @param bufferSize the size of the buffer to be used.
  2818. @param replication required block replication for the file.]]>
  2819. </doc>
  2820. </method>
  2821. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2822. abstract="false" native="false" synchronized="false"
  2823. static="false" final="false" visibility="public"
  2824. deprecated="not deprecated">
  2825. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2826. <param name="overwrite" type="boolean"/>
  2827. <param name="bufferSize" type="int"/>
  2828. <param name="replication" type="short"/>
  2829. <param name="blockSize" type="long"/>
  2830. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2831. <exception name="IOException" type="java.io.IOException"/>
  2832. <doc>
  2833. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2834. reporting.
  2835. @param f the file name to open
  2836. @param overwrite if a file with this name already exists, then if true,
  2837. the file will be overwritten, and if false an error will be thrown.
  2838. @param bufferSize the size of the buffer to be used.
  2839. @param replication required block replication for the file.]]>
  2840. </doc>
  2841. </method>
  2842. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2843. abstract="true" native="false" synchronized="false"
  2844. static="false" final="false" visibility="public"
  2845. deprecated="not deprecated">
  2846. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2847. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2848. <param name="overwrite" type="boolean"/>
  2849. <param name="bufferSize" type="int"/>
  2850. <param name="replication" type="short"/>
  2851. <param name="blockSize" type="long"/>
  2852. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2853. <exception name="IOException" type="java.io.IOException"/>
  2854. <doc>
  2855. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2856. reporting.
  2857. @param f the file name to open
  2858. @param permission
  2859. @param overwrite if a file with this name already exists, then if true,
  2860. the file will be overwritten, and if false an error will be thrown.
  2861. @param bufferSize the size of the buffer to be used.
  2862. @param replication required block replication for the file.
  2863. @param blockSize
  2864. @param progress
  2865. @throws IOException
  2866. @see #setPermission(Path, FsPermission)]]>
  2867. </doc>
  2868. </method>
  2869. <method name="createNewFile" return="boolean"
  2870. abstract="false" native="false" synchronized="false"
  2871. static="false" final="false" visibility="public"
  2872. deprecated="not deprecated">
  2873. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2874. <exception name="IOException" type="java.io.IOException"/>
  2875. <doc>
  2876. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2877. create fails, or if it already existed, return false.]]>
  2878. </doc>
  2879. </method>
  2880. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2881. abstract="false" native="false" synchronized="false"
  2882. static="false" final="false" visibility="public"
  2883. deprecated="not deprecated">
  2884. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2885. <exception name="IOException" type="java.io.IOException"/>
  2886. <doc>
  2887. <![CDATA[Append to an existing file (optional operation).
  2888. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2889. @param f the existing file to be appended.
  2890. @throws IOException]]>
  2891. </doc>
  2892. </method>
  2893. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2894. abstract="false" native="false" synchronized="false"
  2895. static="false" final="false" visibility="public"
  2896. deprecated="not deprecated">
  2897. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2898. <param name="bufferSize" type="int"/>
  2899. <exception name="IOException" type="java.io.IOException"/>
  2900. <doc>
  2901. <![CDATA[Append to an existing file (optional operation).
  2902. Same as append(f, bufferSize, null).
  2903. @param f the existing file to be appended.
  2904. @param bufferSize the size of the buffer to be used.
  2905. @throws IOException]]>
  2906. </doc>
  2907. </method>
  2908. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2909. abstract="true" native="false" synchronized="false"
  2910. static="false" final="false" visibility="public"
  2911. deprecated="not deprecated">
  2912. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2913. <param name="bufferSize" type="int"/>
  2914. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2915. <exception name="IOException" type="java.io.IOException"/>
  2916. <doc>
  2917. <![CDATA[Append to an existing file (optional operation).
  2918. @param f the existing file to be appended.
  2919. @param bufferSize the size of the buffer to be used.
  2920. @param progress for reporting progress if it is not null.
  2921. @throws IOException]]>
  2922. </doc>
  2923. </method>
  2924. <method name="getReplication" return="short"
  2925. abstract="false" native="false" synchronized="false"
  2926. static="false" final="false" visibility="public"
  2927. deprecated="Use getFileStatus() instead">
  2928. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2929. <exception name="IOException" type="java.io.IOException"/>
  2930. <doc>
  2931. <![CDATA[Get replication.
  2932. @deprecated Use getFileStatus() instead
  2933. @param src file name
  2934. @return file replication
  2935. @throws IOException]]>
  2936. </doc>
  2937. </method>
  2938. <method name="setReplication" return="boolean"
  2939. abstract="false" native="false" synchronized="false"
  2940. static="false" final="false" visibility="public"
  2941. deprecated="not deprecated">
  2942. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2943. <param name="replication" type="short"/>
  2944. <exception name="IOException" type="java.io.IOException"/>
  2945. <doc>
  2946. <![CDATA[Set replication for an existing file.
  2947. @param src file name
  2948. @param replication new replication
  2949. @throws IOException
  2950. @return true if successful;
  2951. false if file does not exist or is a directory]]>
  2952. </doc>
  2953. </method>
  2954. <method name="rename" return="boolean"
  2955. abstract="true" native="false" synchronized="false"
  2956. static="false" final="false" visibility="public"
  2957. deprecated="not deprecated">
  2958. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2959. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2960. <exception name="IOException" type="java.io.IOException"/>
  2961. <doc>
  2962. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2963. or remote DFS.]]>
  2964. </doc>
  2965. </method>
  2966. <method name="delete" return="boolean"
  2967. abstract="true" native="false" synchronized="false"
  2968. static="false" final="false" visibility="public"
  2969. deprecated="Use delete(Path, boolean) instead">
  2970. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2971. <exception name="IOException" type="java.io.IOException"/>
  2972. <doc>
  2973. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2974. </doc>
  2975. </method>
  2976. <method name="delete" return="boolean"
  2977. abstract="true" native="false" synchronized="false"
  2978. static="false" final="false" visibility="public"
  2979. deprecated="not deprecated">
  2980. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2981. <param name="recursive" type="boolean"/>
  2982. <exception name="IOException" type="java.io.IOException"/>
  2983. <doc>
  2984. <![CDATA[Delete a file.
  2985. @param f the path to delete.
  2986. @param recursive if path is a directory and set to
  2987. true, the directory is deleted else throws an exception. In
  2988. case of a file the recursive can be set to either true or false.
  2989. @return true if delete is successful else false.
  2990. @throws IOException]]>
  2991. </doc>
  2992. </method>
  2993. <method name="deleteOnExit" return="boolean"
  2994. abstract="false" native="false" synchronized="false"
  2995. static="false" final="false" visibility="public"
  2996. deprecated="not deprecated">
  2997. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2998. <exception name="IOException" type="java.io.IOException"/>
  2999. <doc>
  3000. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  3001. When the JVM shuts down,
  3002. all FileSystem objects will be closed automatically.
  3003. Then,
  3004. the marked path will be deleted as a result of closing the FileSystem.
  3005. The path has to exist in the file system.
  3006. @param f the path to delete.
  3007. @return true if deleteOnExit is successful, otherwise false.
  3008. @throws IOException]]>
  3009. </doc>
  3010. </method>
  3011. <method name="processDeleteOnExit"
  3012. abstract="false" native="false" synchronized="false"
  3013. static="false" final="false" visibility="protected"
  3014. deprecated="not deprecated">
  3015. <doc>
  3016. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  3017. deletes all files in the specified paths.]]>
  3018. </doc>
  3019. </method>
  3020. <method name="exists" return="boolean"
  3021. abstract="false" native="false" synchronized="false"
  3022. static="false" final="false" visibility="public"
  3023. deprecated="not deprecated">
  3024. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3025. <exception name="IOException" type="java.io.IOException"/>
  3026. <doc>
  3027. <![CDATA[Check if exists.
  3028. @param f source file]]>
  3029. </doc>
  3030. </method>
  3031. <method name="isDirectory" return="boolean"
  3032. abstract="false" native="false" synchronized="false"
  3033. static="false" final="false" visibility="public"
  3034. deprecated="Use getFileStatus() instead">
  3035. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3036. <exception name="IOException" type="java.io.IOException"/>
  3037. <doc>
  3038. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3039. </doc>
  3040. </method>
  3041. <method name="isFile" return="boolean"
  3042. abstract="false" native="false" synchronized="false"
  3043. static="false" final="false" visibility="public"
  3044. deprecated="not deprecated">
  3045. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3046. <exception name="IOException" type="java.io.IOException"/>
  3047. <doc>
  3048. <![CDATA[True iff the named path is a regular file.]]>
  3049. </doc>
  3050. </method>
  3051. <method name="getLength" return="long"
  3052. abstract="false" native="false" synchronized="false"
  3053. static="false" final="false" visibility="public"
  3054. deprecated="Use getFileStatus() instead">
  3055. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3056. <exception name="IOException" type="java.io.IOException"/>
  3057. <doc>
  3058. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3059. </doc>
  3060. </method>
  3061. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  3062. abstract="false" native="false" synchronized="false"
  3063. static="false" final="false" visibility="public"
  3064. deprecated="not deprecated">
  3065. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3066. <exception name="IOException" type="java.io.IOException"/>
  3067. <doc>
  3068. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  3069. </doc>
  3070. </method>
  3071. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3072. abstract="true" native="false" synchronized="false"
  3073. static="false" final="false" visibility="public"
  3074. deprecated="not deprecated">
  3075. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3076. <exception name="IOException" type="java.io.IOException"/>
  3077. <doc>
  3078. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3079. a directory.
  3080. @param f
  3081. given path
  3082. @return the statuses of the files/directories in the given patch
  3083. @throws IOException]]>
  3084. </doc>
  3085. </method>
  3086. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3087. abstract="false" native="false" synchronized="false"
  3088. static="false" final="false" visibility="public"
  3089. deprecated="not deprecated">
  3090. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3091. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3092. <exception name="IOException" type="java.io.IOException"/>
  3093. <doc>
  3094. <![CDATA[Filter files/directories in the given path using the user-supplied path
  3095. filter.
  3096. @param f
  3097. a path name
  3098. @param filter
  3099. the user-supplied path filter
  3100. @return an array of FileStatus objects for the files under the given path
  3101. after applying the filter
  3102. @throws IOException
  3103. if encounter any problem while fetching the status]]>
  3104. </doc>
  3105. </method>
  3106. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3107. abstract="false" native="false" synchronized="false"
  3108. static="false" final="false" visibility="public"
  3109. deprecated="not deprecated">
  3110. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3111. <exception name="IOException" type="java.io.IOException"/>
  3112. <doc>
  3113. <![CDATA[Filter files/directories in the given list of paths using default
  3114. path filter.
  3115. @param files
  3116. a list of paths
  3117. @return a list of statuses for the files under the given paths after
  3118. applying the filter default Path filter
  3119. @exception IOException]]>
  3120. </doc>
  3121. </method>
  3122. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3123. abstract="false" native="false" synchronized="false"
  3124. static="false" final="false" visibility="public"
  3125. deprecated="not deprecated">
  3126. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3127. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3128. <exception name="IOException" type="java.io.IOException"/>
  3129. <doc>
  3130. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3131. path filter.
  3132. @param files
  3133. a list of paths
  3134. @param filter
  3135. the user-supplied path filter
  3136. @return a list of statuses for the files under the given paths after
  3137. applying the filter
  3138. @exception IOException]]>
  3139. </doc>
  3140. </method>
  3141. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3142. abstract="false" native="false" synchronized="false"
  3143. static="false" final="false" visibility="public"
  3144. deprecated="not deprecated">
  3145. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3146. <exception name="IOException" type="java.io.IOException"/>
  3147. <doc>
  3148. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3149. files. Results are sorted by their names.
  3150. <p>
  3151. A filename pattern is composed of <i>regular</i> characters and
  3152. <i>special pattern matching</i> characters, which are:
  3153. <dl>
  3154. <dd>
  3155. <dl>
  3156. <p>
  3157. <dt> <tt> ? </tt>
  3158. <dd> Matches any single character.
  3159. <p>
  3160. <dt> <tt> * </tt>
  3161. <dd> Matches zero or more characters.
  3162. <p>
  3163. <dt> <tt> [<i>abc</i>] </tt>
  3164. <dd> Matches a single character from character set
  3165. <tt>{<i>a,b,c</i>}</tt>.
  3166. <p>
  3167. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3168. <dd> Matches a single character from the character range
  3169. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3170. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3171. <p>
  3172. <dt> <tt> [^<i>a</i>] </tt>
  3173. <dd> Matches a single character that is not from character set or range
  3174. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3175. immediately to the right of the opening bracket.
  3176. <p>
  3177. <dt> <tt> \<i>c</i> </tt>
  3178. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3179. <p>
  3180. <dt> <tt> {ab,cd} </tt>
  3181. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3182. <p>
  3183. <dt> <tt> {ab,c{de,fh}} </tt>
  3184. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3185. </dl>
  3186. </dd>
  3187. </dl>
  3188. @param pathPattern a regular expression specifying a pth pattern
  3189. @return an array of paths that match the path pattern
  3190. @throws IOException]]>
  3191. </doc>
  3192. </method>
  3193. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3194. abstract="false" native="false" synchronized="false"
  3195. static="false" final="false" visibility="public"
  3196. deprecated="not deprecated">
  3197. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3198. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3199. <exception name="IOException" type="java.io.IOException"/>
  3200. <doc>
  3201. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3202. and is accepted by the user-supplied path filter. Results are sorted by
  3203. their path names.
  3204. Return null if pathPattern has no glob and the path does not exist.
  3205. Return an empty array if pathPattern has a glob and no path matches it.
  3206. @param pathPattern
  3207. a regular expression specifying the path pattern
  3208. @param filter
  3209. a user-supplied path filter
  3210. @return an array of FileStatus objects
  3211. @throws IOException if any I/O error occurs when fetching file status]]>
  3212. </doc>
  3213. </method>
  3214. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3215. abstract="false" native="false" synchronized="false"
  3216. static="false" final="false" visibility="public"
  3217. deprecated="not deprecated">
  3218. <doc>
  3219. <![CDATA[Return the current user's home directory in this filesystem.
  3220. The default implementation returns "/user/$USER/".]]>
  3221. </doc>
  3222. </method>
  3223. <method name="setWorkingDirectory"
  3224. abstract="true" native="false" synchronized="false"
  3225. static="false" final="false" visibility="public"
  3226. deprecated="not deprecated">
  3227. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3228. <doc>
  3229. <![CDATA[Set the current working directory for the given file system. All relative
  3230. paths will be resolved relative to it.
  3231. @param new_dir]]>
  3232. </doc>
  3233. </method>
  3234. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3235. abstract="true" native="false" synchronized="false"
  3236. static="false" final="false" visibility="public"
  3237. deprecated="not deprecated">
  3238. <doc>
  3239. <![CDATA[Get the current working directory for the given file system
  3240. @return the directory pathname]]>
  3241. </doc>
  3242. </method>
  3243. <method name="mkdirs" return="boolean"
  3244. abstract="false" native="false" synchronized="false"
  3245. static="false" final="false" visibility="public"
  3246. deprecated="not deprecated">
  3247. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3248. <exception name="IOException" type="java.io.IOException"/>
  3249. <doc>
  3250. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3251. </doc>
  3252. </method>
  3253. <method name="mkdirs" return="boolean"
  3254. abstract="true" native="false" synchronized="false"
  3255. static="false" final="false" visibility="public"
  3256. deprecated="not deprecated">
  3257. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3258. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3259. <exception name="IOException" type="java.io.IOException"/>
  3260. <doc>
  3261. <![CDATA[Make the given file and all non-existent parents into
  3262. directories. Has the semantics of Unix 'mkdir -p'.
  3263. Existence of the directory hierarchy is not an error.]]>
  3264. </doc>
  3265. </method>
  3266. <method name="copyFromLocalFile"
  3267. abstract="false" native="false" synchronized="false"
  3268. static="false" final="false" visibility="public"
  3269. deprecated="not deprecated">
  3270. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3271. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3272. <exception name="IOException" type="java.io.IOException"/>
  3273. <doc>
  3274. <![CDATA[The src file is on the local disk. Add it to FS at
  3275. the given dst name and the source is kept intact afterwards]]>
  3276. </doc>
  3277. </method>
  3278. <method name="moveFromLocalFile"
  3279. abstract="false" native="false" synchronized="false"
  3280. static="false" final="false" visibility="public"
  3281. deprecated="not deprecated">
  3282. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3283. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3284. <exception name="IOException" type="java.io.IOException"/>
  3285. <doc>
  3286. <![CDATA[The src files is on the local disk. Add it to FS at
  3287. the given dst name, removing the source afterwards.]]>
  3288. </doc>
  3289. </method>
  3290. <method name="moveFromLocalFile"
  3291. abstract="false" native="false" synchronized="false"
  3292. static="false" final="false" visibility="public"
  3293. deprecated="not deprecated">
  3294. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3295. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3296. <exception name="IOException" type="java.io.IOException"/>
  3297. <doc>
  3298. <![CDATA[The src file is on the local disk. Add it to FS at
  3299. the given dst name, removing the source afterwards.]]>
  3300. </doc>
  3301. </method>
  3302. <method name="copyFromLocalFile"
  3303. abstract="false" native="false" synchronized="false"
  3304. static="false" final="false" visibility="public"
  3305. deprecated="not deprecated">
  3306. <param name="delSrc" type="boolean"/>
  3307. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3308. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3309. <exception name="IOException" type="java.io.IOException"/>
  3310. <doc>
  3311. <![CDATA[The src file is on the local disk. Add it to FS at
  3312. the given dst name.
  3313. delSrc indicates if the source should be removed]]>
  3314. </doc>
  3315. </method>
  3316. <method name="copyFromLocalFile"
  3317. abstract="false" native="false" synchronized="false"
  3318. static="false" final="false" visibility="public"
  3319. deprecated="not deprecated">
  3320. <param name="delSrc" type="boolean"/>
  3321. <param name="overwrite" type="boolean"/>
  3322. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3323. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3324. <exception name="IOException" type="java.io.IOException"/>
  3325. <doc>
  3326. <![CDATA[The src files are on the local disk. Add it to FS at
  3327. the given dst name.
  3328. delSrc indicates if the source should be removed]]>
  3329. </doc>
  3330. </method>
  3331. <method name="copyFromLocalFile"
  3332. abstract="false" native="false" synchronized="false"
  3333. static="false" final="false" visibility="public"
  3334. deprecated="not deprecated">
  3335. <param name="delSrc" type="boolean"/>
  3336. <param name="overwrite" type="boolean"/>
  3337. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3338. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3339. <exception name="IOException" type="java.io.IOException"/>
  3340. <doc>
  3341. <![CDATA[The src file is on the local disk. Add it to FS at
  3342. the given dst name.
  3343. delSrc indicates if the source should be removed]]>
  3344. </doc>
  3345. </method>
  3346. <method name="copyToLocalFile"
  3347. abstract="false" native="false" synchronized="false"
  3348. static="false" final="false" visibility="public"
  3349. deprecated="not deprecated">
  3350. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3351. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3352. <exception name="IOException" type="java.io.IOException"/>
  3353. <doc>
  3354. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3355. Copy it from FS control to the local dst name.]]>
  3356. </doc>
  3357. </method>
  3358. <method name="moveToLocalFile"
  3359. abstract="false" native="false" synchronized="false"
  3360. static="false" final="false" visibility="public"
  3361. deprecated="not deprecated">
  3362. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3363. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3364. <exception name="IOException" type="java.io.IOException"/>
  3365. <doc>
  3366. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3367. Copy it from FS control to the local dst name.
  3368. Remove the source afterwards]]>
  3369. </doc>
  3370. </method>
  3371. <method name="copyToLocalFile"
  3372. abstract="false" native="false" synchronized="false"
  3373. static="false" final="false" visibility="public"
  3374. deprecated="not deprecated">
  3375. <param name="delSrc" type="boolean"/>
  3376. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3377. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3378. <exception name="IOException" type="java.io.IOException"/>
  3379. <doc>
  3380. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3381. Copy it from FS control to the local dst name.
  3382. delSrc indicates if the src will be removed or not.]]>
  3383. </doc>
  3384. </method>
  3385. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3386. abstract="false" native="false" synchronized="false"
  3387. static="false" final="false" visibility="public"
  3388. deprecated="not deprecated">
  3389. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3390. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3391. <exception name="IOException" type="java.io.IOException"/>
  3392. <doc>
  3393. <![CDATA[Returns a local File that the user can write output to. The caller
  3394. provides both the eventual FS target name and the local working
  3395. file. If the FS is local, we write directly into the target. If
  3396. the FS is remote, we write into the tmp local area.]]>
  3397. </doc>
  3398. </method>
  3399. <method name="completeLocalOutput"
  3400. abstract="false" native="false" synchronized="false"
  3401. static="false" final="false" visibility="public"
  3402. deprecated="not deprecated">
  3403. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3404. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3405. <exception name="IOException" type="java.io.IOException"/>
  3406. <doc>
  3407. <![CDATA[Called when we're all done writing to the target. A local FS will
  3408. do nothing, because we've written to exactly the right place. A remote
  3409. FS will copy the contents of tmpLocalFile to the correct target at
  3410. fsOutputFile.]]>
  3411. </doc>
  3412. </method>
  3413. <method name="close"
  3414. abstract="false" native="false" synchronized="false"
  3415. static="false" final="false" visibility="public"
  3416. deprecated="not deprecated">
  3417. <exception name="IOException" type="java.io.IOException"/>
  3418. <doc>
  3419. <![CDATA[No more filesystem operations are needed. Will
  3420. release any held locks.]]>
  3421. </doc>
  3422. </method>
  3423. <method name="getUsed" return="long"
  3424. abstract="false" native="false" synchronized="false"
  3425. static="false" final="false" visibility="public"
  3426. deprecated="not deprecated">
  3427. <exception name="IOException" type="java.io.IOException"/>
  3428. <doc>
  3429. <![CDATA[Return the total size of all files in the filesystem.]]>
  3430. </doc>
  3431. </method>
  3432. <method name="getBlockSize" return="long"
  3433. abstract="false" native="false" synchronized="false"
  3434. static="false" final="false" visibility="public"
  3435. deprecated="Use getFileStatus() instead">
  3436. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3437. <exception name="IOException" type="java.io.IOException"/>
  3438. <doc>
  3439. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3440. </doc>
  3441. </method>
  3442. <method name="getDefaultBlockSize" return="long"
  3443. abstract="false" native="false" synchronized="false"
  3444. static="false" final="false" visibility="public"
  3445. deprecated="not deprecated">
  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. </doc>
  3450. </method>
  3451. <method name="getDefaultReplication" return="short"
  3452. abstract="false" native="false" synchronized="false"
  3453. static="false" final="false" visibility="public"
  3454. deprecated="not deprecated">
  3455. <doc>
  3456. <![CDATA[Get the default replication.]]>
  3457. </doc>
  3458. </method>
  3459. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3460. abstract="true" native="false" synchronized="false"
  3461. static="false" final="false" visibility="public"
  3462. deprecated="not deprecated">
  3463. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3464. <exception name="IOException" type="java.io.IOException"/>
  3465. <doc>
  3466. <![CDATA[Return a file status object that represents the path.
  3467. @param f The path we want information from
  3468. @return a FileStatus object
  3469. @throws FileNotFoundException when the path does not exist;
  3470. IOException see specific implementation]]>
  3471. </doc>
  3472. </method>
  3473. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3474. abstract="false" 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[Get the checksum of a file.
  3481. @param f The file path
  3482. @return The file checksum. The default return value is null,
  3483. which indicates that no checksum algorithm is implemented
  3484. in the corresponding FileSystem.]]>
  3485. </doc>
  3486. </method>
  3487. <method name="setVerifyChecksum"
  3488. abstract="false" native="false" synchronized="false"
  3489. static="false" final="false" visibility="public"
  3490. deprecated="not deprecated">
  3491. <param name="verifyChecksum" type="boolean"/>
  3492. <doc>
  3493. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3494. corresponding FileSystem supports checksum. By default doesn't do anything.
  3495. @param verifyChecksum]]>
  3496. </doc>
  3497. </method>
  3498. <method name="setPermission"
  3499. abstract="false" native="false" synchronized="false"
  3500. static="false" final="false" visibility="public"
  3501. deprecated="not deprecated">
  3502. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3503. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3504. <exception name="IOException" type="java.io.IOException"/>
  3505. <doc>
  3506. <![CDATA[Set permission of a path.
  3507. @param p
  3508. @param permission]]>
  3509. </doc>
  3510. </method>
  3511. <method name="setOwner"
  3512. abstract="false" native="false" synchronized="false"
  3513. static="false" final="false" visibility="public"
  3514. deprecated="not deprecated">
  3515. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3516. <param name="username" type="java.lang.String"/>
  3517. <param name="groupname" type="java.lang.String"/>
  3518. <exception name="IOException" type="java.io.IOException"/>
  3519. <doc>
  3520. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3521. The parameters username and groupname cannot both be null.
  3522. @param p The path
  3523. @param username If it is null, the original username remains unchanged.
  3524. @param groupname If it is null, the original groupname remains unchanged.]]>
  3525. </doc>
  3526. </method>
  3527. <method name="setTimes"
  3528. abstract="false" native="false" synchronized="false"
  3529. static="false" final="false" visibility="public"
  3530. deprecated="not deprecated">
  3531. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3532. <param name="mtime" type="long"/>
  3533. <param name="atime" type="long"/>
  3534. <exception name="IOException" type="java.io.IOException"/>
  3535. <doc>
  3536. <![CDATA[Set access time of a file
  3537. @param p The path
  3538. @param mtime Set the modification time of this file.
  3539. The number of milliseconds since Jan 1, 1970.
  3540. A value of -1 means that this call should not set modification time.
  3541. @param atime Set the access time of this file.
  3542. The number of milliseconds since Jan 1, 1970.
  3543. A value of -1 means that this call should not set access time.]]>
  3544. </doc>
  3545. </method>
  3546. <method name="getStatistics" return="java.util.Map"
  3547. abstract="false" native="false" synchronized="true"
  3548. static="true" final="false" visibility="public"
  3549. deprecated="use {@link #getAllStatistics} instead">
  3550. <doc>
  3551. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3552. @return a Map having a key as URI scheme and value as Statistics object
  3553. @deprecated use {@link #getAllStatistics} instead]]>
  3554. </doc>
  3555. </method>
  3556. <method name="getAllStatistics" return="java.util.List"
  3557. abstract="false" native="false" synchronized="true"
  3558. static="true" final="false" visibility="public"
  3559. deprecated="not deprecated">
  3560. <doc>
  3561. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3562. </doc>
  3563. </method>
  3564. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3565. abstract="false" native="false" synchronized="true"
  3566. static="true" final="false" visibility="public"
  3567. deprecated="not deprecated">
  3568. <param name="scheme" type="java.lang.String"/>
  3569. <param name="cls" type="java.lang.Class"/>
  3570. <doc>
  3571. <![CDATA[Get the statistics for a particular file system
  3572. @param cls the class to lookup
  3573. @return a statistics object]]>
  3574. </doc>
  3575. </method>
  3576. <method name="clearStatistics"
  3577. abstract="false" native="false" synchronized="true"
  3578. static="true" final="false" visibility="public"
  3579. deprecated="not deprecated">
  3580. </method>
  3581. <method name="printStatistics"
  3582. abstract="false" native="false" synchronized="true"
  3583. static="true" final="false" visibility="public"
  3584. deprecated="not deprecated">
  3585. <exception name="IOException" type="java.io.IOException"/>
  3586. </method>
  3587. <field name="LOG" type="org.apache.commons.logging.Log"
  3588. transient="false" volatile="false"
  3589. static="true" final="true" visibility="public"
  3590. deprecated="not deprecated">
  3591. </field>
  3592. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3593. transient="false" volatile="false"
  3594. static="false" final="false" visibility="protected"
  3595. deprecated="not deprecated">
  3596. <doc>
  3597. <![CDATA[The statistics for this file system.]]>
  3598. </doc>
  3599. </field>
  3600. <doc>
  3601. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3602. may be implemented as a distributed filesystem, or as a "local"
  3603. one that reflects the locally-connected disk. The local version
  3604. exists for small Hadoop instances and for testing.
  3605. <p>
  3606. All user code that may potentially use the Hadoop Distributed
  3607. File System should be written to use a FileSystem object. The
  3608. Hadoop DFS is a multi-machine system that appears as a single
  3609. disk. It's useful because of its fault tolerance and potentially
  3610. very large capacity.
  3611. <p>
  3612. The local implementation is {@link LocalFileSystem} and distributed
  3613. implementation is DistributedFileSystem.]]>
  3614. </doc>
  3615. </class>
  3616. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3617. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3618. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3619. abstract="false"
  3620. static="true" final="true" visibility="public"
  3621. deprecated="not deprecated">
  3622. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3623. static="false" final="false" visibility="public"
  3624. deprecated="not deprecated">
  3625. </constructor>
  3626. <method name="incrementBytesRead"
  3627. abstract="false" native="false" synchronized="false"
  3628. static="false" final="false" visibility="public"
  3629. deprecated="not deprecated">
  3630. <param name="newBytes" type="long"/>
  3631. <doc>
  3632. <![CDATA[Increment the bytes read in the statistics
  3633. @param newBytes the additional bytes read]]>
  3634. </doc>
  3635. </method>
  3636. <method name="incrementBytesWritten"
  3637. abstract="false" native="false" synchronized="false"
  3638. static="false" final="false" visibility="public"
  3639. deprecated="not deprecated">
  3640. <param name="newBytes" type="long"/>
  3641. <doc>
  3642. <![CDATA[Increment the bytes written in the statistics
  3643. @param newBytes the additional bytes written]]>
  3644. </doc>
  3645. </method>
  3646. <method name="getBytesRead" return="long"
  3647. abstract="false" native="false" synchronized="false"
  3648. static="false" final="false" visibility="public"
  3649. deprecated="not deprecated">
  3650. <doc>
  3651. <![CDATA[Get the total number of bytes read
  3652. @return the number of bytes]]>
  3653. </doc>
  3654. </method>
  3655. <method name="getBytesWritten" return="long"
  3656. abstract="false" native="false" synchronized="false"
  3657. static="false" final="false" visibility="public"
  3658. deprecated="not deprecated">
  3659. <doc>
  3660. <![CDATA[Get the total number of bytes written
  3661. @return the number of bytes]]>
  3662. </doc>
  3663. </method>
  3664. <method name="toString" return="java.lang.String"
  3665. abstract="false" native="false" synchronized="false"
  3666. static="false" final="false" visibility="public"
  3667. deprecated="not deprecated">
  3668. </method>
  3669. <method name="reset"
  3670. abstract="false" native="false" synchronized="false"
  3671. static="false" final="false" visibility="public"
  3672. deprecated="not deprecated">
  3673. <doc>
  3674. <![CDATA[Reset the counts of bytes to 0.]]>
  3675. </doc>
  3676. </method>
  3677. <method name="getScheme" return="java.lang.String"
  3678. abstract="false" native="false" synchronized="false"
  3679. static="false" final="false" visibility="public"
  3680. deprecated="not deprecated">
  3681. <doc>
  3682. <![CDATA[Get the uri scheme associated with this statistics object.
  3683. @return the schema associated with this set of statistics]]>
  3684. </doc>
  3685. </method>
  3686. </class>
  3687. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3688. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3689. <class name="FileUtil" extends="java.lang.Object"
  3690. abstract="false"
  3691. static="false" final="false" visibility="public"
  3692. deprecated="not deprecated">
  3693. <constructor name="FileUtil"
  3694. static="false" final="false" visibility="public"
  3695. deprecated="not deprecated">
  3696. </constructor>
  3697. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3698. abstract="false" native="false" synchronized="false"
  3699. static="true" final="false" visibility="public"
  3700. deprecated="not deprecated">
  3701. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3702. <doc>
  3703. <![CDATA[convert an array of FileStatus to an array of Path
  3704. @param stats
  3705. an array of FileStatus objects
  3706. @return an array of paths corresponding to the input]]>
  3707. </doc>
  3708. </method>
  3709. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3710. abstract="false" native="false" synchronized="false"
  3711. static="true" final="false" visibility="public"
  3712. deprecated="not deprecated">
  3713. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3714. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3715. <doc>
  3716. <![CDATA[convert an array of FileStatus to an array of Path.
  3717. If stats if null, return path
  3718. @param stats
  3719. an array of FileStatus objects
  3720. @param path
  3721. default path to return in stats is null
  3722. @return an array of paths corresponding to the input]]>
  3723. </doc>
  3724. </method>
  3725. <method name="fullyDelete" return="boolean"
  3726. abstract="false" native="false" synchronized="false"
  3727. static="true" final="false" visibility="public"
  3728. deprecated="not deprecated">
  3729. <param name="dir" type="java.io.File"/>
  3730. <exception name="IOException" type="java.io.IOException"/>
  3731. <doc>
  3732. <![CDATA[Delete a directory and all its contents. If
  3733. we return false, the directory may be partially-deleted.]]>
  3734. </doc>
  3735. </method>
  3736. <method name="fullyDelete"
  3737. abstract="false" native="false" synchronized="false"
  3738. static="true" final="false" visibility="public"
  3739. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3740. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3741. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3742. <exception name="IOException" type="java.io.IOException"/>
  3743. <doc>
  3744. <![CDATA[Recursively delete a directory.
  3745. @param fs {@link FileSystem} on which the path is present
  3746. @param dir directory to recursively delete
  3747. @throws IOException
  3748. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3749. </doc>
  3750. </method>
  3751. <method name="copy" return="boolean"
  3752. abstract="false" native="false" synchronized="false"
  3753. static="true" final="false" visibility="public"
  3754. deprecated="not deprecated">
  3755. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3756. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3757. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3758. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3759. <param name="deleteSource" type="boolean"/>
  3760. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3761. <exception name="IOException" type="java.io.IOException"/>
  3762. <doc>
  3763. <![CDATA[Copy files between FileSystems.]]>
  3764. </doc>
  3765. </method>
  3766. <method name="copy" return="boolean"
  3767. abstract="false" native="false" synchronized="false"
  3768. static="true" final="false" visibility="public"
  3769. deprecated="not deprecated">
  3770. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3771. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3772. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3773. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3774. <param name="deleteSource" type="boolean"/>
  3775. <param name="overwrite" type="boolean"/>
  3776. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3777. <exception name="IOException" type="java.io.IOException"/>
  3778. </method>
  3779. <method name="copy" return="boolean"
  3780. abstract="false" native="false" synchronized="false"
  3781. static="true" final="false" visibility="public"
  3782. deprecated="not deprecated">
  3783. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3784. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3785. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3786. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3787. <param name="deleteSource" type="boolean"/>
  3788. <param name="overwrite" type="boolean"/>
  3789. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3790. <exception name="IOException" type="java.io.IOException"/>
  3791. <doc>
  3792. <![CDATA[Copy files between FileSystems.]]>
  3793. </doc>
  3794. </method>
  3795. <method name="copyMerge" return="boolean"
  3796. abstract="false" native="false" synchronized="false"
  3797. static="true" final="false" visibility="public"
  3798. deprecated="not deprecated">
  3799. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3800. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3801. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3802. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3803. <param name="deleteSource" type="boolean"/>
  3804. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3805. <param name="addString" type="java.lang.String"/>
  3806. <exception name="IOException" type="java.io.IOException"/>
  3807. <doc>
  3808. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3809. </doc>
  3810. </method>
  3811. <method name="copy" return="boolean"
  3812. abstract="false" native="false" synchronized="false"
  3813. static="true" final="false" visibility="public"
  3814. deprecated="not deprecated">
  3815. <param name="src" type="java.io.File"/>
  3816. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3817. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3818. <param name="deleteSource" type="boolean"/>
  3819. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3820. <exception name="IOException" type="java.io.IOException"/>
  3821. <doc>
  3822. <![CDATA[Copy local files to a FileSystem.]]>
  3823. </doc>
  3824. </method>
  3825. <method name="copy" return="boolean"
  3826. abstract="false" native="false" synchronized="false"
  3827. static="true" final="false" visibility="public"
  3828. deprecated="not deprecated">
  3829. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3830. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3831. <param name="dst" type="java.io.File"/>
  3832. <param name="deleteSource" type="boolean"/>
  3833. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3834. <exception name="IOException" type="java.io.IOException"/>
  3835. <doc>
  3836. <![CDATA[Copy FileSystem files to local files.]]>
  3837. </doc>
  3838. </method>
  3839. <method name="makeShellPath" return="java.lang.String"
  3840. abstract="false" native="false" synchronized="false"
  3841. static="true" final="false" visibility="public"
  3842. deprecated="not deprecated">
  3843. <param name="filename" type="java.lang.String"/>
  3844. <exception name="IOException" type="java.io.IOException"/>
  3845. <doc>
  3846. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3847. @param filename The filename to convert
  3848. @return The unix pathname
  3849. @throws IOException on windows, there can be problems with the subprocess]]>
  3850. </doc>
  3851. </method>
  3852. <method name="makeShellPath" return="java.lang.String"
  3853. abstract="false" native="false" synchronized="false"
  3854. static="true" final="false" visibility="public"
  3855. deprecated="not deprecated">
  3856. <param name="file" type="java.io.File"/>
  3857. <exception name="IOException" type="java.io.IOException"/>
  3858. <doc>
  3859. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3860. @param file The filename to convert
  3861. @return The unix pathname
  3862. @throws IOException on windows, there can be problems with the subprocess]]>
  3863. </doc>
  3864. </method>
  3865. <method name="makeShellPath" return="java.lang.String"
  3866. abstract="false" native="false" synchronized="false"
  3867. static="true" final="false" visibility="public"
  3868. deprecated="not deprecated">
  3869. <param name="file" type="java.io.File"/>
  3870. <param name="makeCanonicalPath" type="boolean"/>
  3871. <exception name="IOException" type="java.io.IOException"/>
  3872. <doc>
  3873. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3874. @param file The filename to convert
  3875. @param makeCanonicalPath
  3876. Whether to make canonical path for the file passed
  3877. @return The unix pathname
  3878. @throws IOException on windows, there can be problems with the subprocess]]>
  3879. </doc>
  3880. </method>
  3881. <method name="getDU" return="long"
  3882. abstract="false" native="false" synchronized="false"
  3883. static="true" final="false" visibility="public"
  3884. deprecated="not deprecated">
  3885. <param name="dir" type="java.io.File"/>
  3886. <doc>
  3887. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  3888. implementation.
  3889. @param dir
  3890. The input dir to get the disk space of this local dir
  3891. @return The total disk space of the input local directory]]>
  3892. </doc>
  3893. </method>
  3894. <method name="unZip"
  3895. abstract="false" native="false" synchronized="false"
  3896. static="true" final="false" visibility="public"
  3897. deprecated="not deprecated">
  3898. <param name="inFile" type="java.io.File"/>
  3899. <param name="unzipDir" type="java.io.File"/>
  3900. <exception name="IOException" type="java.io.IOException"/>
  3901. <doc>
  3902. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  3903. passed as the second parameter
  3904. @param inFile The zip file as input
  3905. @param unzipDir The unzip directory where to unzip the zip file.
  3906. @throws IOException]]>
  3907. </doc>
  3908. </method>
  3909. <method name="unTar"
  3910. abstract="false" native="false" synchronized="false"
  3911. static="true" final="false" visibility="public"
  3912. deprecated="not deprecated">
  3913. <param name="inFile" type="java.io.File"/>
  3914. <param name="untarDir" type="java.io.File"/>
  3915. <exception name="IOException" type="java.io.IOException"/>
  3916. <doc>
  3917. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  3918. passed as the second parameter
  3919. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  3920. @param inFile The tar file as input.
  3921. @param untarDir The untar directory where to untar the tar file.
  3922. @throws IOException]]>
  3923. </doc>
  3924. </method>
  3925. <method name="symLink" return="int"
  3926. abstract="false" native="false" synchronized="false"
  3927. static="true" final="false" visibility="public"
  3928. deprecated="not deprecated">
  3929. <param name="target" type="java.lang.String"/>
  3930. <param name="linkname" type="java.lang.String"/>
  3931. <exception name="IOException" type="java.io.IOException"/>
  3932. <doc>
  3933. <![CDATA[Create a soft link between a src and destination
  3934. only on a local disk. HDFS does not support this
  3935. @param target the target for symlink
  3936. @param linkname the symlink
  3937. @return value returned by the command]]>
  3938. </doc>
  3939. </method>
  3940. <method name="chmod" return="int"
  3941. abstract="false" native="false" synchronized="false"
  3942. static="true" final="false" visibility="public"
  3943. deprecated="not deprecated">
  3944. <param name="filename" type="java.lang.String"/>
  3945. <param name="perm" type="java.lang.String"/>
  3946. <exception name="IOException" type="java.io.IOException"/>
  3947. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  3948. <doc>
  3949. <![CDATA[Change the permissions on a filename.
  3950. @param filename the name of the file to change
  3951. @param perm the permission string
  3952. @return the exit code from the command
  3953. @throws IOException
  3954. @throws InterruptedException]]>
  3955. </doc>
  3956. </method>
  3957. <method name="createLocalTempFile" return="java.io.File"
  3958. abstract="false" native="false" synchronized="false"
  3959. static="true" final="true" visibility="public"
  3960. deprecated="not deprecated">
  3961. <param name="basefile" type="java.io.File"/>
  3962. <param name="prefix" type="java.lang.String"/>
  3963. <param name="isDeleteOnExit" type="boolean"/>
  3964. <exception name="IOException" type="java.io.IOException"/>
  3965. <doc>
  3966. <![CDATA[Create a tmp file for a base file.
  3967. @param basefile the base file of the tmp
  3968. @param prefix file name prefix of tmp
  3969. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  3970. @return a newly created tmp file
  3971. @exception IOException If a tmp file cannot created
  3972. @see java.io.File#createTempFile(String, String, File)
  3973. @see java.io.File#deleteOnExit()]]>
  3974. </doc>
  3975. </method>
  3976. <method name="replaceFile"
  3977. abstract="false" native="false" synchronized="false"
  3978. static="true" final="false" visibility="public"
  3979. deprecated="not deprecated">
  3980. <param name="src" type="java.io.File"/>
  3981. <param name="target" type="java.io.File"/>
  3982. <exception name="IOException" type="java.io.IOException"/>
  3983. <doc>
  3984. <![CDATA[Move the src file to the name specified by target.
  3985. @param src the source file
  3986. @param target the target file
  3987. @exception IOException If this operation fails]]>
  3988. </doc>
  3989. </method>
  3990. <doc>
  3991. <![CDATA[A collection of file-processing util methods]]>
  3992. </doc>
  3993. </class>
  3994. <!-- end class org.apache.hadoop.fs.FileUtil -->
  3995. <!-- start class org.apache.hadoop.fs.FileUtil.HardLink -->
  3996. <class name="FileUtil.HardLink" extends="java.lang.Object"
  3997. abstract="false"
  3998. static="true" final="false" visibility="public"
  3999. deprecated="not deprecated">
  4000. <constructor name="FileUtil.HardLink"
  4001. static="false" final="false" visibility="public"
  4002. deprecated="not deprecated">
  4003. </constructor>
  4004. <method name="createHardLink"
  4005. abstract="false" native="false" synchronized="false"
  4006. static="true" final="false" visibility="public"
  4007. deprecated="not deprecated">
  4008. <param name="target" type="java.io.File"/>
  4009. <param name="linkName" type="java.io.File"/>
  4010. <exception name="IOException" type="java.io.IOException"/>
  4011. <doc>
  4012. <![CDATA[Creates a hardlink]]>
  4013. </doc>
  4014. </method>
  4015. <method name="getLinkCount" return="int"
  4016. abstract="false" native="false" synchronized="false"
  4017. static="true" final="false" visibility="public"
  4018. deprecated="not deprecated">
  4019. <param name="fileName" type="java.io.File"/>
  4020. <exception name="IOException" type="java.io.IOException"/>
  4021. <doc>
  4022. <![CDATA[Retrieves the number of links to the specified file.]]>
  4023. </doc>
  4024. </method>
  4025. <doc>
  4026. <![CDATA[Class for creating hardlinks.
  4027. Supports Unix, Cygwin, WindXP.]]>
  4028. </doc>
  4029. </class>
  4030. <!-- end class org.apache.hadoop.fs.FileUtil.HardLink -->
  4031. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  4032. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  4033. abstract="false"
  4034. static="false" final="false" visibility="public"
  4035. deprecated="not deprecated">
  4036. <constructor name="FilterFileSystem"
  4037. static="false" final="false" visibility="public"
  4038. deprecated="not deprecated">
  4039. </constructor>
  4040. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4041. static="false" final="false" visibility="public"
  4042. deprecated="not deprecated">
  4043. </constructor>
  4044. <method name="initialize"
  4045. abstract="false" native="false" synchronized="false"
  4046. static="false" final="false" visibility="public"
  4047. deprecated="not deprecated">
  4048. <param name="name" type="java.net.URI"/>
  4049. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4050. <exception name="IOException" type="java.io.IOException"/>
  4051. <doc>
  4052. <![CDATA[Called after a new FileSystem instance is constructed.
  4053. @param name a uri whose authority section names the host, port, etc.
  4054. for this FileSystem
  4055. @param conf the configuration]]>
  4056. </doc>
  4057. </method>
  4058. <method name="getUri" return="java.net.URI"
  4059. abstract="false" native="false" synchronized="false"
  4060. static="false" final="false" visibility="public"
  4061. deprecated="not deprecated">
  4062. <doc>
  4063. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4064. </doc>
  4065. </method>
  4066. <method name="getName" return="java.lang.String"
  4067. abstract="false" native="false" synchronized="false"
  4068. static="false" final="false" visibility="public"
  4069. deprecated="call #getUri() instead.">
  4070. <doc>
  4071. <![CDATA[@deprecated call #getUri() instead.]]>
  4072. </doc>
  4073. </method>
  4074. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4075. abstract="false" native="false" synchronized="false"
  4076. static="false" final="false" visibility="public"
  4077. deprecated="not deprecated">
  4078. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4079. <doc>
  4080. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4081. </doc>
  4082. </method>
  4083. <method name="checkPath"
  4084. abstract="false" native="false" synchronized="false"
  4085. static="false" final="false" visibility="protected"
  4086. deprecated="not deprecated">
  4087. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4088. <doc>
  4089. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4090. </doc>
  4091. </method>
  4092. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4093. abstract="false" native="false" synchronized="false"
  4094. static="false" final="false" visibility="public"
  4095. deprecated="not deprecated">
  4096. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4097. <param name="start" type="long"/>
  4098. <param name="len" type="long"/>
  4099. <exception name="IOException" type="java.io.IOException"/>
  4100. </method>
  4101. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4102. abstract="false" native="false" synchronized="false"
  4103. static="false" final="false" visibility="public"
  4104. deprecated="not deprecated">
  4105. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4106. <param name="bufferSize" type="int"/>
  4107. <exception name="IOException" type="java.io.IOException"/>
  4108. <doc>
  4109. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4110. @param f the file name to open
  4111. @param bufferSize the size of the buffer to be used.]]>
  4112. </doc>
  4113. </method>
  4114. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4115. abstract="false" native="false" synchronized="false"
  4116. static="false" final="false" visibility="public"
  4117. deprecated="not deprecated">
  4118. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4119. <param name="bufferSize" type="int"/>
  4120. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4121. <exception name="IOException" type="java.io.IOException"/>
  4122. <doc>
  4123. <![CDATA[{@inheritDoc}]]>
  4124. </doc>
  4125. </method>
  4126. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4127. abstract="false" native="false" synchronized="false"
  4128. static="false" final="false" visibility="public"
  4129. deprecated="not deprecated">
  4130. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4131. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4132. <param name="overwrite" type="boolean"/>
  4133. <param name="bufferSize" type="int"/>
  4134. <param name="replication" type="short"/>
  4135. <param name="blockSize" type="long"/>
  4136. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4137. <exception name="IOException" type="java.io.IOException"/>
  4138. <doc>
  4139. <![CDATA[{@inheritDoc}]]>
  4140. </doc>
  4141. </method>
  4142. <method name="setReplication" return="boolean"
  4143. abstract="false" native="false" synchronized="false"
  4144. static="false" final="false" visibility="public"
  4145. deprecated="not deprecated">
  4146. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4147. <param name="replication" type="short"/>
  4148. <exception name="IOException" type="java.io.IOException"/>
  4149. <doc>
  4150. <![CDATA[Set replication for an existing file.
  4151. @param src file name
  4152. @param replication new replication
  4153. @throws IOException
  4154. @return true if successful;
  4155. false if file does not exist or is a directory]]>
  4156. </doc>
  4157. </method>
  4158. <method name="rename" return="boolean"
  4159. abstract="false" native="false" synchronized="false"
  4160. static="false" final="false" visibility="public"
  4161. deprecated="not deprecated">
  4162. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4163. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4164. <exception name="IOException" type="java.io.IOException"/>
  4165. <doc>
  4166. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4167. or remote DFS.]]>
  4168. </doc>
  4169. </method>
  4170. <method name="delete" return="boolean"
  4171. abstract="false" native="false" synchronized="false"
  4172. static="false" final="false" visibility="public"
  4173. deprecated="not deprecated">
  4174. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4175. <exception name="IOException" type="java.io.IOException"/>
  4176. <doc>
  4177. <![CDATA[Delete a file]]>
  4178. </doc>
  4179. </method>
  4180. <method name="delete" return="boolean"
  4181. abstract="false" native="false" synchronized="false"
  4182. static="false" final="false" visibility="public"
  4183. deprecated="not deprecated">
  4184. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4185. <param name="recursive" type="boolean"/>
  4186. <exception name="IOException" type="java.io.IOException"/>
  4187. <doc>
  4188. <![CDATA[Delete a file]]>
  4189. </doc>
  4190. </method>
  4191. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4192. abstract="false" native="false" synchronized="false"
  4193. static="false" final="false" visibility="public"
  4194. deprecated="not deprecated">
  4195. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4196. <exception name="IOException" type="java.io.IOException"/>
  4197. <doc>
  4198. <![CDATA[List files in a directory.]]>
  4199. </doc>
  4200. </method>
  4201. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4202. abstract="false" native="false" synchronized="false"
  4203. static="false" final="false" visibility="public"
  4204. deprecated="not deprecated">
  4205. </method>
  4206. <method name="setWorkingDirectory"
  4207. abstract="false" native="false" synchronized="false"
  4208. static="false" final="false" visibility="public"
  4209. deprecated="not deprecated">
  4210. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4211. <doc>
  4212. <![CDATA[Set the current working directory for the given file system. All relative
  4213. paths will be resolved relative to it.
  4214. @param newDir]]>
  4215. </doc>
  4216. </method>
  4217. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4218. abstract="false" native="false" synchronized="false"
  4219. static="false" final="false" visibility="public"
  4220. deprecated="not deprecated">
  4221. <doc>
  4222. <![CDATA[Get the current working directory for the given file system
  4223. @return the directory pathname]]>
  4224. </doc>
  4225. </method>
  4226. <method name="mkdirs" return="boolean"
  4227. abstract="false" native="false" synchronized="false"
  4228. static="false" final="false" visibility="public"
  4229. deprecated="not deprecated">
  4230. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4231. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4232. <exception name="IOException" type="java.io.IOException"/>
  4233. <doc>
  4234. <![CDATA[{@inheritDoc}]]>
  4235. </doc>
  4236. </method>
  4237. <method name="copyFromLocalFile"
  4238. abstract="false" native="false" synchronized="false"
  4239. static="false" final="false" visibility="public"
  4240. deprecated="not deprecated">
  4241. <param name="delSrc" type="boolean"/>
  4242. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4243. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4244. <exception name="IOException" type="java.io.IOException"/>
  4245. <doc>
  4246. <![CDATA[The src file is on the local disk. Add it to FS at
  4247. the given dst name.
  4248. delSrc indicates if the source should be removed]]>
  4249. </doc>
  4250. </method>
  4251. <method name="copyToLocalFile"
  4252. abstract="false" native="false" synchronized="false"
  4253. static="false" final="false" visibility="public"
  4254. deprecated="not deprecated">
  4255. <param name="delSrc" type="boolean"/>
  4256. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4257. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4258. <exception name="IOException" type="java.io.IOException"/>
  4259. <doc>
  4260. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4261. Copy it from FS control to the local dst name.
  4262. delSrc indicates if the src will be removed or not.]]>
  4263. </doc>
  4264. </method>
  4265. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4266. abstract="false" native="false" synchronized="false"
  4267. static="false" final="false" visibility="public"
  4268. deprecated="not deprecated">
  4269. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4270. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4271. <exception name="IOException" type="java.io.IOException"/>
  4272. <doc>
  4273. <![CDATA[Returns a local File that the user can write output to. The caller
  4274. provides both the eventual FS target name and the local working
  4275. file. If the FS is local, we write directly into the target. If
  4276. the FS is remote, we write into the tmp local area.]]>
  4277. </doc>
  4278. </method>
  4279. <method name="completeLocalOutput"
  4280. abstract="false" native="false" synchronized="false"
  4281. static="false" final="false" visibility="public"
  4282. deprecated="not deprecated">
  4283. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4284. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4285. <exception name="IOException" type="java.io.IOException"/>
  4286. <doc>
  4287. <![CDATA[Called when we're all done writing to the target. A local FS will
  4288. do nothing, because we've written to exactly the right place. A remote
  4289. FS will copy the contents of tmpLocalFile to the correct target at
  4290. fsOutputFile.]]>
  4291. </doc>
  4292. </method>
  4293. <method name="getDefaultBlockSize" return="long"
  4294. abstract="false" native="false" synchronized="false"
  4295. static="false" final="false" visibility="public"
  4296. deprecated="not deprecated">
  4297. <doc>
  4298. <![CDATA[Return the number of bytes that large input files should be optimally
  4299. be split into to minimize i/o time.]]>
  4300. </doc>
  4301. </method>
  4302. <method name="getDefaultReplication" return="short"
  4303. abstract="false" native="false" synchronized="false"
  4304. static="false" final="false" visibility="public"
  4305. deprecated="not deprecated">
  4306. <doc>
  4307. <![CDATA[Get the default replication.]]>
  4308. </doc>
  4309. </method>
  4310. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4311. abstract="false" native="false" synchronized="false"
  4312. static="false" final="false" visibility="public"
  4313. deprecated="not deprecated">
  4314. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4315. <exception name="IOException" type="java.io.IOException"/>
  4316. <doc>
  4317. <![CDATA[Get file status.]]>
  4318. </doc>
  4319. </method>
  4320. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4321. abstract="false" native="false" synchronized="false"
  4322. static="false" final="false" visibility="public"
  4323. deprecated="not deprecated">
  4324. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4325. <exception name="IOException" type="java.io.IOException"/>
  4326. <doc>
  4327. <![CDATA[{@inheritDoc}]]>
  4328. </doc>
  4329. </method>
  4330. <method name="setVerifyChecksum"
  4331. abstract="false" native="false" synchronized="false"
  4332. static="false" final="false" visibility="public"
  4333. deprecated="not deprecated">
  4334. <param name="verifyChecksum" type="boolean"/>
  4335. <doc>
  4336. <![CDATA[{@inheritDoc}]]>
  4337. </doc>
  4338. </method>
  4339. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4340. abstract="false" native="false" synchronized="false"
  4341. static="false" final="false" visibility="public"
  4342. deprecated="not deprecated">
  4343. </method>
  4344. <method name="close"
  4345. abstract="false" native="false" synchronized="false"
  4346. static="false" final="false" visibility="public"
  4347. deprecated="not deprecated">
  4348. <exception name="IOException" type="java.io.IOException"/>
  4349. </method>
  4350. <method name="setOwner"
  4351. abstract="false" native="false" synchronized="false"
  4352. static="false" final="false" visibility="public"
  4353. deprecated="not deprecated">
  4354. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4355. <param name="username" type="java.lang.String"/>
  4356. <param name="groupname" type="java.lang.String"/>
  4357. <exception name="IOException" type="java.io.IOException"/>
  4358. <doc>
  4359. <![CDATA[{@inheritDoc}]]>
  4360. </doc>
  4361. </method>
  4362. <method name="setPermission"
  4363. abstract="false" native="false" synchronized="false"
  4364. static="false" final="false" visibility="public"
  4365. deprecated="not deprecated">
  4366. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4367. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4368. <exception name="IOException" type="java.io.IOException"/>
  4369. <doc>
  4370. <![CDATA[{@inheritDoc}]]>
  4371. </doc>
  4372. </method>
  4373. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4374. transient="false" volatile="false"
  4375. static="false" final="false" visibility="protected"
  4376. deprecated="not deprecated">
  4377. </field>
  4378. <doc>
  4379. <![CDATA[A <code>FilterFileSystem</code> contains
  4380. some other file system, which it uses as
  4381. its basic file system, possibly transforming
  4382. the data along the way or providing additional
  4383. functionality. The class <code>FilterFileSystem</code>
  4384. itself simply overrides all methods of
  4385. <code>FileSystem</code> with versions that
  4386. pass all requests to the contained file
  4387. system. Subclasses of <code>FilterFileSystem</code>
  4388. may further override some of these methods
  4389. and may also provide additional methods
  4390. and fields.]]>
  4391. </doc>
  4392. </class>
  4393. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4394. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4395. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4396. abstract="false"
  4397. static="false" final="false" visibility="public"
  4398. deprecated="not deprecated">
  4399. <implements name="org.apache.hadoop.fs.Seekable"/>
  4400. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4401. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4402. static="false" final="false" visibility="public"
  4403. deprecated="not deprecated">
  4404. <exception name="IOException" type="java.io.IOException"/>
  4405. </constructor>
  4406. <method name="seek"
  4407. abstract="false" native="false" synchronized="true"
  4408. static="false" final="false" visibility="public"
  4409. deprecated="not deprecated">
  4410. <param name="desired" type="long"/>
  4411. <exception name="IOException" type="java.io.IOException"/>
  4412. </method>
  4413. <method name="getPos" return="long"
  4414. abstract="false" native="false" synchronized="false"
  4415. static="false" final="false" visibility="public"
  4416. deprecated="not deprecated">
  4417. <exception name="IOException" type="java.io.IOException"/>
  4418. </method>
  4419. <method name="read" return="int"
  4420. abstract="false" native="false" synchronized="false"
  4421. static="false" final="false" visibility="public"
  4422. deprecated="not deprecated">
  4423. <param name="position" type="long"/>
  4424. <param name="buffer" type="byte[]"/>
  4425. <param name="offset" type="int"/>
  4426. <param name="length" type="int"/>
  4427. <exception name="IOException" type="java.io.IOException"/>
  4428. </method>
  4429. <method name="readFully"
  4430. abstract="false" native="false" synchronized="false"
  4431. static="false" final="false" visibility="public"
  4432. deprecated="not deprecated">
  4433. <param name="position" type="long"/>
  4434. <param name="buffer" type="byte[]"/>
  4435. <param name="offset" type="int"/>
  4436. <param name="length" type="int"/>
  4437. <exception name="IOException" type="java.io.IOException"/>
  4438. </method>
  4439. <method name="readFully"
  4440. abstract="false" native="false" synchronized="false"
  4441. static="false" final="false" visibility="public"
  4442. deprecated="not deprecated">
  4443. <param name="position" type="long"/>
  4444. <param name="buffer" type="byte[]"/>
  4445. <exception name="IOException" type="java.io.IOException"/>
  4446. </method>
  4447. <method name="seekToNewSource" return="boolean"
  4448. abstract="false" native="false" synchronized="false"
  4449. static="false" final="false" visibility="public"
  4450. deprecated="not deprecated">
  4451. <param name="targetPos" type="long"/>
  4452. <exception name="IOException" type="java.io.IOException"/>
  4453. </method>
  4454. <doc>
  4455. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4456. and buffers input through a {@link BufferedInputStream}.]]>
  4457. </doc>
  4458. </class>
  4459. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4460. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4461. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4462. abstract="false"
  4463. static="false" final="false" visibility="public"
  4464. deprecated="not deprecated">
  4465. <implements name="org.apache.hadoop.fs.Syncable"/>
  4466. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4467. static="false" final="false" visibility="public"
  4468. deprecated="not deprecated">
  4469. <exception name="IOException" type="java.io.IOException"/>
  4470. </constructor>
  4471. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4472. static="false" final="false" visibility="public"
  4473. deprecated="not deprecated">
  4474. <exception name="IOException" type="java.io.IOException"/>
  4475. </constructor>
  4476. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4477. static="false" final="false" visibility="public"
  4478. deprecated="not deprecated">
  4479. <exception name="IOException" type="java.io.IOException"/>
  4480. </constructor>
  4481. <method name="getPos" return="long"
  4482. abstract="false" native="false" synchronized="false"
  4483. static="false" final="false" visibility="public"
  4484. deprecated="not deprecated">
  4485. <exception name="IOException" type="java.io.IOException"/>
  4486. </method>
  4487. <method name="close"
  4488. abstract="false" native="false" synchronized="false"
  4489. static="false" final="false" visibility="public"
  4490. deprecated="not deprecated">
  4491. <exception name="IOException" type="java.io.IOException"/>
  4492. </method>
  4493. <method name="getWrappedStream" return="java.io.OutputStream"
  4494. abstract="false" native="false" synchronized="false"
  4495. static="false" final="false" visibility="public"
  4496. deprecated="not deprecated">
  4497. </method>
  4498. <method name="sync"
  4499. abstract="false" native="false" synchronized="false"
  4500. static="false" final="false" visibility="public"
  4501. deprecated="not deprecated">
  4502. <exception name="IOException" type="java.io.IOException"/>
  4503. <doc>
  4504. <![CDATA[{@inheritDoc}]]>
  4505. </doc>
  4506. </method>
  4507. <doc>
  4508. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4509. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4510. file.]]>
  4511. </doc>
  4512. </class>
  4513. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4514. <!-- start class org.apache.hadoop.fs.FSError -->
  4515. <class name="FSError" extends="java.lang.Error"
  4516. abstract="false"
  4517. static="false" final="false" visibility="public"
  4518. deprecated="not deprecated">
  4519. <doc>
  4520. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4521. in the native filesystem.]]>
  4522. </doc>
  4523. </class>
  4524. <!-- end class org.apache.hadoop.fs.FSError -->
  4525. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4526. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4527. abstract="true"
  4528. static="false" final="false" visibility="public"
  4529. deprecated="not deprecated">
  4530. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4531. static="false" final="false" visibility="protected"
  4532. deprecated="not deprecated">
  4533. <doc>
  4534. <![CDATA[Constructor
  4535. @param file The name of the file to be read
  4536. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4537. </doc>
  4538. </constructor>
  4539. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4540. static="false" final="false" visibility="protected"
  4541. deprecated="not deprecated">
  4542. <doc>
  4543. <![CDATA[Constructor
  4544. @param file The name of the file to be read
  4545. @param numOfRetries Number of read retries when ChecksumError occurs
  4546. @param sum the type of Checksum engine
  4547. @param chunkSize maximun chunk size
  4548. @param checksumSize the number byte of each checksum]]>
  4549. </doc>
  4550. </constructor>
  4551. <method name="readChunk" return="int"
  4552. abstract="true" native="false" synchronized="false"
  4553. static="false" final="false" visibility="protected"
  4554. deprecated="not deprecated">
  4555. <param name="pos" type="long"/>
  4556. <param name="buf" type="byte[]"/>
  4557. <param name="offset" type="int"/>
  4558. <param name="len" type="int"/>
  4559. <param name="checksum" type="byte[]"/>
  4560. <exception name="IOException" type="java.io.IOException"/>
  4561. <doc>
  4562. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4563. and checksum into <code>checksum</code>.
  4564. The method is used for implementing read, therefore, it should be optimized
  4565. for sequential reading
  4566. @param pos chunkPos
  4567. @param buf desitination buffer
  4568. @param offset offset in buf at which to store data
  4569. @param len maximun number of bytes to read
  4570. @return number of bytes read]]>
  4571. </doc>
  4572. </method>
  4573. <method name="getChunkPosition" return="long"
  4574. abstract="true" native="false" synchronized="false"
  4575. static="false" final="false" visibility="protected"
  4576. deprecated="not deprecated">
  4577. <param name="pos" type="long"/>
  4578. <doc>
  4579. <![CDATA[Return position of beginning of chunk containing pos.
  4580. @param pos a postion in the file
  4581. @return the starting position of the chunk which contains the byte]]>
  4582. </doc>
  4583. </method>
  4584. <method name="needChecksum" return="boolean"
  4585. abstract="false" native="false" synchronized="true"
  4586. static="false" final="false" visibility="protected"
  4587. deprecated="not deprecated">
  4588. <doc>
  4589. <![CDATA[Return true if there is a need for checksum verification]]>
  4590. </doc>
  4591. </method>
  4592. <method name="read" return="int"
  4593. abstract="false" native="false" synchronized="true"
  4594. static="false" final="false" visibility="public"
  4595. deprecated="not deprecated">
  4596. <exception name="IOException" type="java.io.IOException"/>
  4597. <doc>
  4598. <![CDATA[Read one checksum-verified byte
  4599. @return the next byte of data, or <code>-1</code> if the end of the
  4600. stream is reached.
  4601. @exception IOException if an I/O error occurs.]]>
  4602. </doc>
  4603. </method>
  4604. <method name="read" return="int"
  4605. abstract="false" native="false" synchronized="true"
  4606. static="false" final="false" visibility="public"
  4607. deprecated="not deprecated">
  4608. <param name="b" type="byte[]"/>
  4609. <param name="off" type="int"/>
  4610. <param name="len" type="int"/>
  4611. <exception name="IOException" type="java.io.IOException"/>
  4612. <doc>
  4613. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4614. the specified byte array, starting at the given offset.
  4615. <p> This method implements the general contract of the corresponding
  4616. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4617. the <code>{@link InputStream}</code> class. As an additional
  4618. convenience, it attempts to read as many bytes as possible by repeatedly
  4619. invoking the <code>read</code> method of the underlying stream. This
  4620. iterated <code>read</code> continues until one of the following
  4621. conditions becomes true: <ul>
  4622. <li> The specified number of bytes have been read,
  4623. <li> The <code>read</code> method of the underlying stream returns
  4624. <code>-1</code>, indicating end-of-file.
  4625. </ul> If the first <code>read</code> on the underlying stream returns
  4626. <code>-1</code> to indicate end-of-file then this method returns
  4627. <code>-1</code>. Otherwise this method returns the number of bytes
  4628. actually read.
  4629. @param b destination buffer.
  4630. @param off offset at which to start storing bytes.
  4631. @param len maximum number of bytes to read.
  4632. @return the number of bytes read, or <code>-1</code> if the end of
  4633. the stream has been reached.
  4634. @exception IOException if an I/O error occurs.
  4635. ChecksumException if any checksum error occurs]]>
  4636. </doc>
  4637. </method>
  4638. <method name="checksum2long" return="long"
  4639. abstract="false" native="false" synchronized="false"
  4640. static="true" final="false" visibility="public"
  4641. deprecated="not deprecated">
  4642. <param name="checksum" type="byte[]"/>
  4643. <doc>
  4644. <![CDATA[Convert a checksum byte array to a long]]>
  4645. </doc>
  4646. </method>
  4647. <method name="getPos" return="long"
  4648. abstract="false" native="false" synchronized="true"
  4649. static="false" final="false" visibility="public"
  4650. deprecated="not deprecated">
  4651. <exception name="IOException" type="java.io.IOException"/>
  4652. </method>
  4653. <method name="available" return="int"
  4654. abstract="false" native="false" synchronized="true"
  4655. static="false" final="false" visibility="public"
  4656. deprecated="not deprecated">
  4657. <exception name="IOException" type="java.io.IOException"/>
  4658. </method>
  4659. <method name="skip" return="long"
  4660. abstract="false" native="false" synchronized="true"
  4661. static="false" final="false" visibility="public"
  4662. deprecated="not deprecated">
  4663. <param name="n" type="long"/>
  4664. <exception name="IOException" type="java.io.IOException"/>
  4665. <doc>
  4666. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4667. input stream.
  4668. <p>This method may skip more bytes than are remaining in the backing
  4669. file. This produces no exception and the number of bytes skipped
  4670. may include some number of bytes that were beyond the EOF of the
  4671. backing file. Attempting to read from the stream after skipping past
  4672. the end will result in -1 indicating the end of the file.
  4673. <p>If <code>n</code> is negative, no bytes are skipped.
  4674. @param n the number of bytes to be skipped.
  4675. @return the actual number of bytes skipped.
  4676. @exception IOException if an I/O error occurs.
  4677. ChecksumException if the chunk to skip to is corrupted]]>
  4678. </doc>
  4679. </method>
  4680. <method name="seek"
  4681. abstract="false" native="false" synchronized="true"
  4682. static="false" final="false" visibility="public"
  4683. deprecated="not deprecated">
  4684. <param name="pos" type="long"/>
  4685. <exception name="IOException" type="java.io.IOException"/>
  4686. <doc>
  4687. <![CDATA[Seek to the given position in the stream.
  4688. The next read() will be from that position.
  4689. <p>This method may seek past the end of the file.
  4690. This produces no exception and an attempt to read from
  4691. the stream will result in -1 indicating the end of the file.
  4692. @param pos the postion to seek to.
  4693. @exception IOException if an I/O error occurs.
  4694. ChecksumException if the chunk to seek to is corrupted]]>
  4695. </doc>
  4696. </method>
  4697. <method name="readFully" return="int"
  4698. abstract="false" native="false" synchronized="false"
  4699. static="true" final="false" visibility="protected"
  4700. deprecated="not deprecated">
  4701. <param name="stm" type="java.io.InputStream"/>
  4702. <param name="buf" type="byte[]"/>
  4703. <param name="offset" type="int"/>
  4704. <param name="len" type="int"/>
  4705. <exception name="IOException" type="java.io.IOException"/>
  4706. <doc>
  4707. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4708. <code>stm</code>
  4709. @param stm an input stream
  4710. @param buf destiniation buffer
  4711. @param offset offset at which to store data
  4712. @param len number of bytes to read
  4713. @return actual number of bytes read
  4714. @throws IOException if there is any IO error]]>
  4715. </doc>
  4716. </method>
  4717. <method name="set"
  4718. abstract="false" native="false" synchronized="true"
  4719. static="false" final="true" visibility="protected"
  4720. deprecated="not deprecated">
  4721. <param name="verifyChecksum" type="boolean"/>
  4722. <param name="sum" type="java.util.zip.Checksum"/>
  4723. <param name="maxChunkSize" type="int"/>
  4724. <param name="checksumSize" type="int"/>
  4725. <doc>
  4726. <![CDATA[Set the checksum related parameters
  4727. @param verifyChecksum whether to verify checksum
  4728. @param sum which type of checksum to use
  4729. @param maxChunkSize maximun chunk size
  4730. @param checksumSize checksum size]]>
  4731. </doc>
  4732. </method>
  4733. <method name="markSupported" return="boolean"
  4734. abstract="false" native="false" synchronized="false"
  4735. static="false" final="true" visibility="public"
  4736. deprecated="not deprecated">
  4737. </method>
  4738. <method name="mark"
  4739. abstract="false" native="false" synchronized="false"
  4740. static="false" final="true" visibility="public"
  4741. deprecated="not deprecated">
  4742. <param name="readlimit" type="int"/>
  4743. </method>
  4744. <method name="reset"
  4745. abstract="false" native="false" synchronized="false"
  4746. static="false" final="true" visibility="public"
  4747. deprecated="not deprecated">
  4748. <exception name="IOException" type="java.io.IOException"/>
  4749. </method>
  4750. <field name="LOG" type="org.apache.commons.logging.Log"
  4751. transient="false" volatile="false"
  4752. static="true" final="true" visibility="public"
  4753. deprecated="not deprecated">
  4754. </field>
  4755. <field name="file" type="org.apache.hadoop.fs.Path"
  4756. transient="false" volatile="false"
  4757. static="false" final="false" visibility="protected"
  4758. deprecated="not deprecated">
  4759. <doc>
  4760. <![CDATA[The file name from which data is read from]]>
  4761. </doc>
  4762. </field>
  4763. <doc>
  4764. <![CDATA[This is a generic input stream for verifying checksums for
  4765. data before it is read by a user.]]>
  4766. </doc>
  4767. </class>
  4768. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4769. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4770. <class name="FSInputStream" extends="java.io.InputStream"
  4771. abstract="true"
  4772. static="false" final="false" visibility="public"
  4773. deprecated="not deprecated">
  4774. <implements name="org.apache.hadoop.fs.Seekable"/>
  4775. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4776. <constructor name="FSInputStream"
  4777. static="false" final="false" visibility="public"
  4778. deprecated="not deprecated">
  4779. </constructor>
  4780. <method name="seek"
  4781. abstract="true" native="false" synchronized="false"
  4782. static="false" final="false" visibility="public"
  4783. deprecated="not deprecated">
  4784. <param name="pos" type="long"/>
  4785. <exception name="IOException" type="java.io.IOException"/>
  4786. <doc>
  4787. <![CDATA[Seek to the given offset from the start of the file.
  4788. The next read() will be from that location. Can't
  4789. seek past the end of the file.]]>
  4790. </doc>
  4791. </method>
  4792. <method name="getPos" return="long"
  4793. abstract="true" native="false" synchronized="false"
  4794. static="false" final="false" visibility="public"
  4795. deprecated="not deprecated">
  4796. <exception name="IOException" type="java.io.IOException"/>
  4797. <doc>
  4798. <![CDATA[Return the current offset from the start of the file]]>
  4799. </doc>
  4800. </method>
  4801. <method name="seekToNewSource" return="boolean"
  4802. abstract="true" native="false" synchronized="false"
  4803. static="false" final="false" visibility="public"
  4804. deprecated="not deprecated">
  4805. <param name="targetPos" type="long"/>
  4806. <exception name="IOException" type="java.io.IOException"/>
  4807. <doc>
  4808. <![CDATA[Seeks a different copy of the data. Returns true if
  4809. found a new source, false otherwise.]]>
  4810. </doc>
  4811. </method>
  4812. <method name="read" return="int"
  4813. abstract="false" native="false" synchronized="false"
  4814. static="false" final="false" visibility="public"
  4815. deprecated="not deprecated">
  4816. <param name="position" type="long"/>
  4817. <param name="buffer" type="byte[]"/>
  4818. <param name="offset" type="int"/>
  4819. <param name="length" type="int"/>
  4820. <exception name="IOException" type="java.io.IOException"/>
  4821. </method>
  4822. <method name="readFully"
  4823. abstract="false" native="false" synchronized="false"
  4824. static="false" final="false" visibility="public"
  4825. deprecated="not deprecated">
  4826. <param name="position" type="long"/>
  4827. <param name="buffer" type="byte[]"/>
  4828. <param name="offset" type="int"/>
  4829. <param name="length" type="int"/>
  4830. <exception name="IOException" type="java.io.IOException"/>
  4831. </method>
  4832. <method name="readFully"
  4833. abstract="false" native="false" synchronized="false"
  4834. static="false" final="false" visibility="public"
  4835. deprecated="not deprecated">
  4836. <param name="position" type="long"/>
  4837. <param name="buffer" type="byte[]"/>
  4838. <exception name="IOException" type="java.io.IOException"/>
  4839. </method>
  4840. <doc>
  4841. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  4842. of RAF-style seek ability.]]>
  4843. </doc>
  4844. </class>
  4845. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  4846. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  4847. <class name="FSOutputSummer" extends="java.io.OutputStream"
  4848. abstract="true"
  4849. static="false" final="false" visibility="public"
  4850. deprecated="not deprecated">
  4851. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  4852. static="false" final="false" visibility="protected"
  4853. deprecated="not deprecated">
  4854. </constructor>
  4855. <method name="writeChunk"
  4856. abstract="true" native="false" synchronized="false"
  4857. static="false" final="false" visibility="protected"
  4858. deprecated="not deprecated">
  4859. <param name="b" type="byte[]"/>
  4860. <param name="offset" type="int"/>
  4861. <param name="len" type="int"/>
  4862. <param name="checksum" type="byte[]"/>
  4863. <exception name="IOException" type="java.io.IOException"/>
  4864. </method>
  4865. <method name="write"
  4866. abstract="false" native="false" synchronized="true"
  4867. static="false" final="false" visibility="public"
  4868. deprecated="not deprecated">
  4869. <param name="b" type="int"/>
  4870. <exception name="IOException" type="java.io.IOException"/>
  4871. <doc>
  4872. <![CDATA[Write one byte]]>
  4873. </doc>
  4874. </method>
  4875. <method name="write"
  4876. abstract="false" native="false" synchronized="true"
  4877. static="false" final="false" visibility="public"
  4878. deprecated="not deprecated">
  4879. <param name="b" type="byte[]"/>
  4880. <param name="off" type="int"/>
  4881. <param name="len" type="int"/>
  4882. <exception name="IOException" type="java.io.IOException"/>
  4883. <doc>
  4884. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  4885. starting at offset <code>off</code> and generate a checksum for
  4886. each data chunk.
  4887. <p> This method stores bytes from the given array into this
  4888. stream's buffer before it gets checksumed. The buffer gets checksumed
  4889. and flushed to the underlying output stream when all data
  4890. in a checksum chunk are in the buffer. If the buffer is empty and
  4891. requested length is at least as large as the size of next checksum chunk
  4892. size, this method will checksum and write the chunk directly
  4893. to the underlying output stream. Thus it avoids uneccessary data copy.
  4894. @param b the data.
  4895. @param off the start offset in the data.
  4896. @param len the number of bytes to write.
  4897. @exception IOException if an I/O error occurs.]]>
  4898. </doc>
  4899. </method>
  4900. <method name="flushBuffer"
  4901. abstract="false" native="false" synchronized="true"
  4902. static="false" final="false" visibility="protected"
  4903. deprecated="not deprecated">
  4904. <exception name="IOException" type="java.io.IOException"/>
  4905. </method>
  4906. <method name="flushBuffer"
  4907. abstract="false" native="false" synchronized="true"
  4908. static="false" final="false" visibility="protected"
  4909. deprecated="not deprecated">
  4910. <param name="keep" type="boolean"/>
  4911. <exception name="IOException" type="java.io.IOException"/>
  4912. </method>
  4913. <method name="convertToByteStream" return="byte[]"
  4914. abstract="false" native="false" synchronized="false"
  4915. static="true" final="false" visibility="public"
  4916. deprecated="not deprecated">
  4917. <param name="sum" type="java.util.zip.Checksum"/>
  4918. <param name="checksumSize" type="int"/>
  4919. <doc>
  4920. <![CDATA[Converts a checksum integer value to a byte stream]]>
  4921. </doc>
  4922. </method>
  4923. <method name="resetChecksumChunk"
  4924. abstract="false" native="false" synchronized="true"
  4925. static="false" final="false" visibility="protected"
  4926. deprecated="not deprecated">
  4927. <param name="size" type="int"/>
  4928. <doc>
  4929. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  4930. </doc>
  4931. </method>
  4932. <doc>
  4933. <![CDATA[This is a generic output stream for generating checksums for
  4934. data before it is written to the underlying stream]]>
  4935. </doc>
  4936. </class>
  4937. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  4938. <!-- start class org.apache.hadoop.fs.FsShell -->
  4939. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  4940. abstract="false"
  4941. static="false" final="false" visibility="public"
  4942. deprecated="not deprecated">
  4943. <implements name="org.apache.hadoop.util.Tool"/>
  4944. <constructor name="FsShell"
  4945. static="false" final="false" visibility="public"
  4946. deprecated="not deprecated">
  4947. </constructor>
  4948. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  4949. static="false" final="false" visibility="public"
  4950. deprecated="not deprecated">
  4951. </constructor>
  4952. <method name="init"
  4953. abstract="false" native="false" synchronized="false"
  4954. static="false" final="false" visibility="protected"
  4955. deprecated="not deprecated">
  4956. <exception name="IOException" type="java.io.IOException"/>
  4957. </method>
  4958. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  4959. abstract="false" native="false" synchronized="false"
  4960. static="false" final="false" visibility="public"
  4961. deprecated="not deprecated">
  4962. <doc>
  4963. <![CDATA[Returns the Trash object associated with this shell.]]>
  4964. </doc>
  4965. </method>
  4966. <method name="byteDesc" return="java.lang.String"
  4967. abstract="false" native="false" synchronized="false"
  4968. static="true" final="false" visibility="public"
  4969. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  4970. <param name="len" type="long"/>
  4971. <doc>
  4972. <![CDATA[Return an abbreviated English-language desc of the byte length
  4973. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  4974. </doc>
  4975. </method>
  4976. <method name="limitDecimalTo2" return="java.lang.String"
  4977. abstract="false" native="false" synchronized="true"
  4978. static="true" final="false" visibility="public"
  4979. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  4980. <param name="d" type="double"/>
  4981. <doc>
  4982. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  4983. </doc>
  4984. </method>
  4985. <method name="run" return="int"
  4986. abstract="false" native="false" synchronized="false"
  4987. static="false" final="false" visibility="public"
  4988. deprecated="not deprecated">
  4989. <param name="argv" type="java.lang.String[]"/>
  4990. <exception name="Exception" type="java.lang.Exception"/>
  4991. <doc>
  4992. <![CDATA[run]]>
  4993. </doc>
  4994. </method>
  4995. <method name="close"
  4996. abstract="false" native="false" synchronized="false"
  4997. static="false" final="false" visibility="public"
  4998. deprecated="not deprecated">
  4999. <exception name="IOException" type="java.io.IOException"/>
  5000. </method>
  5001. <method name="main"
  5002. abstract="false" native="false" synchronized="false"
  5003. static="true" final="false" visibility="public"
  5004. deprecated="not deprecated">
  5005. <param name="argv" type="java.lang.String[]"/>
  5006. <exception name="Exception" type="java.lang.Exception"/>
  5007. <doc>
  5008. <![CDATA[main() has some simple utility methods]]>
  5009. </doc>
  5010. </method>
  5011. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  5012. transient="false" volatile="false"
  5013. static="false" final="false" visibility="protected"
  5014. deprecated="not deprecated">
  5015. </field>
  5016. <field name="dateForm" type="java.text.SimpleDateFormat"
  5017. transient="false" volatile="false"
  5018. static="true" final="true" visibility="public"
  5019. deprecated="not deprecated">
  5020. </field>
  5021. <field name="modifFmt" type="java.text.SimpleDateFormat"
  5022. transient="false" volatile="false"
  5023. static="true" final="true" visibility="protected"
  5024. deprecated="not deprecated">
  5025. </field>
  5026. <doc>
  5027. <![CDATA[Provide command line access to a FileSystem.]]>
  5028. </doc>
  5029. </class>
  5030. <!-- end class org.apache.hadoop.fs.FsShell -->
  5031. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5032. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  5033. abstract="false"
  5034. static="false" final="false" visibility="public"
  5035. deprecated="not deprecated">
  5036. <implements name="java.net.URLStreamHandlerFactory"/>
  5037. <constructor name="FsUrlStreamHandlerFactory"
  5038. static="false" final="false" visibility="public"
  5039. deprecated="not deprecated">
  5040. </constructor>
  5041. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  5042. static="false" final="false" visibility="public"
  5043. deprecated="not deprecated">
  5044. </constructor>
  5045. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  5046. abstract="false" native="false" synchronized="false"
  5047. static="false" final="false" visibility="public"
  5048. deprecated="not deprecated">
  5049. <param name="protocol" type="java.lang.String"/>
  5050. </method>
  5051. <doc>
  5052. <![CDATA[Factory for URL stream handlers.
  5053. There is only one handler whose job is to create UrlConnections. A
  5054. FsUrlConnection relies on FileSystem to choose the appropriate FS
  5055. implementation.
  5056. Before returning our handler, we make sure that FileSystem knows an
  5057. implementation for the requested scheme/protocol.]]>
  5058. </doc>
  5059. </class>
  5060. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5061. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5062. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5063. abstract="false"
  5064. static="false" final="false" visibility="public"
  5065. deprecated="not deprecated">
  5066. <constructor name="HarFileSystem"
  5067. static="false" final="false" visibility="public"
  5068. deprecated="not deprecated">
  5069. <doc>
  5070. <![CDATA[public construction of harfilesystem]]>
  5071. </doc>
  5072. </constructor>
  5073. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5074. static="false" final="false" visibility="public"
  5075. deprecated="not deprecated">
  5076. <doc>
  5077. <![CDATA[Constructor to create a HarFileSystem with an
  5078. underlying filesystem.
  5079. @param fs]]>
  5080. </doc>
  5081. </constructor>
  5082. <method name="initialize"
  5083. abstract="false" native="false" synchronized="false"
  5084. static="false" final="false" visibility="public"
  5085. deprecated="not deprecated">
  5086. <param name="name" type="java.net.URI"/>
  5087. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5088. <exception name="IOException" type="java.io.IOException"/>
  5089. <doc>
  5090. <![CDATA[Initialize a Har filesystem per har archive. The
  5091. archive home directory is the top level directory
  5092. in the filesystem that contains the HAR archive.
  5093. Be careful with this method, you do not want to go
  5094. on creating new Filesystem instances per call to
  5095. path.getFileSystem().
  5096. the uri of Har is
  5097. har://underlyingfsscheme-host:port/archivepath.
  5098. or
  5099. har:///archivepath. This assumes the underlying filesystem
  5100. to be used in case not specified.]]>
  5101. </doc>
  5102. </method>
  5103. <method name="getHarVersion" return="int"
  5104. abstract="false" native="false" synchronized="false"
  5105. static="false" final="false" visibility="public"
  5106. deprecated="not deprecated">
  5107. <exception name="IOException" type="java.io.IOException"/>
  5108. </method>
  5109. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5110. abstract="false" native="false" synchronized="false"
  5111. static="false" final="false" visibility="public"
  5112. deprecated="not deprecated">
  5113. <doc>
  5114. <![CDATA[return the top level archive.]]>
  5115. </doc>
  5116. </method>
  5117. <method name="getUri" return="java.net.URI"
  5118. abstract="false" native="false" synchronized="false"
  5119. static="false" final="false" visibility="public"
  5120. deprecated="not deprecated">
  5121. <doc>
  5122. <![CDATA[Returns the uri of this filesystem.
  5123. The uri is of the form
  5124. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5125. </doc>
  5126. </method>
  5127. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5128. abstract="false" native="false" synchronized="false"
  5129. static="false" final="false" visibility="public"
  5130. deprecated="not deprecated">
  5131. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5132. </method>
  5133. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5134. abstract="false" native="false" synchronized="false"
  5135. static="false" final="false" visibility="public"
  5136. deprecated="not deprecated">
  5137. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5138. <param name="start" type="long"/>
  5139. <param name="len" type="long"/>
  5140. <exception name="IOException" type="java.io.IOException"/>
  5141. <doc>
  5142. <![CDATA[get block locations from the underlying fs
  5143. @param file the input filestatus to get block locations
  5144. @param start the start in the file
  5145. @param len the length in the file
  5146. @return block locations for this segment of file
  5147. @throws IOException]]>
  5148. </doc>
  5149. </method>
  5150. <method name="getHarHash" return="int"
  5151. abstract="false" native="false" synchronized="false"
  5152. static="true" final="false" visibility="public"
  5153. deprecated="not deprecated">
  5154. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5155. <doc>
  5156. <![CDATA[the hash of the path p inside iniside
  5157. the filesystem
  5158. @param p the path in the harfilesystem
  5159. @return the hash code of the path.]]>
  5160. </doc>
  5161. </method>
  5162. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5163. abstract="false" native="false" synchronized="false"
  5164. static="false" final="false" visibility="public"
  5165. deprecated="not deprecated">
  5166. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5167. <exception name="IOException" type="java.io.IOException"/>
  5168. <doc>
  5169. <![CDATA[return the filestatus of files in har archive.
  5170. The permission returned are that of the archive
  5171. index files. The permissions are not persisted
  5172. while creating a hadoop archive.
  5173. @param f the path in har filesystem
  5174. @return filestatus.
  5175. @throws IOException]]>
  5176. </doc>
  5177. </method>
  5178. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5179. abstract="false" native="false" synchronized="false"
  5180. static="false" final="false" visibility="public"
  5181. deprecated="not deprecated">
  5182. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5183. <param name="bufferSize" type="int"/>
  5184. <exception name="IOException" type="java.io.IOException"/>
  5185. <doc>
  5186. <![CDATA[Returns a har input stream which fakes end of
  5187. file. It reads the index files to get the part
  5188. file name and the size and start of the file.]]>
  5189. </doc>
  5190. </method>
  5191. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5192. abstract="false" native="false" synchronized="false"
  5193. static="false" final="false" visibility="public"
  5194. deprecated="not deprecated">
  5195. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5196. <param name="bufferSize" type="int"/>
  5197. <exception name="IOException" type="java.io.IOException"/>
  5198. </method>
  5199. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5200. abstract="false" native="false" synchronized="false"
  5201. static="false" final="false" visibility="public"
  5202. deprecated="not deprecated">
  5203. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5204. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5205. <param name="overwrite" type="boolean"/>
  5206. <param name="bufferSize" type="int"/>
  5207. <param name="replication" type="short"/>
  5208. <param name="blockSize" type="long"/>
  5209. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5210. <exception name="IOException" type="java.io.IOException"/>
  5211. </method>
  5212. <method name="close"
  5213. abstract="false" native="false" synchronized="false"
  5214. static="false" final="false" visibility="public"
  5215. deprecated="not deprecated">
  5216. <exception name="IOException" type="java.io.IOException"/>
  5217. </method>
  5218. <method name="setReplication" return="boolean"
  5219. abstract="false" native="false" synchronized="false"
  5220. static="false" final="false" visibility="public"
  5221. deprecated="not deprecated">
  5222. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5223. <param name="replication" type="short"/>
  5224. <exception name="IOException" type="java.io.IOException"/>
  5225. <doc>
  5226. <![CDATA[Not implemented.]]>
  5227. </doc>
  5228. </method>
  5229. <method name="delete" return="boolean"
  5230. abstract="false" native="false" synchronized="false"
  5231. static="false" final="false" visibility="public"
  5232. deprecated="not deprecated">
  5233. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5234. <param name="recursive" type="boolean"/>
  5235. <exception name="IOException" type="java.io.IOException"/>
  5236. <doc>
  5237. <![CDATA[Not implemented.]]>
  5238. </doc>
  5239. </method>
  5240. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5241. abstract="false" native="false" synchronized="false"
  5242. static="false" final="false" visibility="public"
  5243. deprecated="not deprecated">
  5244. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5245. <exception name="IOException" type="java.io.IOException"/>
  5246. <doc>
  5247. <![CDATA[liststatus returns the children of a directory
  5248. after looking up the index files.]]>
  5249. </doc>
  5250. </method>
  5251. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5252. abstract="false" native="false" synchronized="false"
  5253. static="false" final="false" visibility="public"
  5254. deprecated="not deprecated">
  5255. <doc>
  5256. <![CDATA[return the top level archive path.]]>
  5257. </doc>
  5258. </method>
  5259. <method name="setWorkingDirectory"
  5260. abstract="false" native="false" synchronized="false"
  5261. static="false" final="false" visibility="public"
  5262. deprecated="not deprecated">
  5263. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5264. </method>
  5265. <method name="mkdirs" return="boolean"
  5266. abstract="false" native="false" synchronized="false"
  5267. static="false" final="false" visibility="public"
  5268. deprecated="not deprecated">
  5269. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5270. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5271. <exception name="IOException" type="java.io.IOException"/>
  5272. <doc>
  5273. <![CDATA[not implemented.]]>
  5274. </doc>
  5275. </method>
  5276. <method name="copyFromLocalFile"
  5277. abstract="false" native="false" synchronized="false"
  5278. static="false" final="false" visibility="public"
  5279. deprecated="not deprecated">
  5280. <param name="delSrc" type="boolean"/>
  5281. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5282. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5283. <exception name="IOException" type="java.io.IOException"/>
  5284. <doc>
  5285. <![CDATA[not implemented.]]>
  5286. </doc>
  5287. </method>
  5288. <method name="copyToLocalFile"
  5289. abstract="false" native="false" synchronized="false"
  5290. static="false" final="false" visibility="public"
  5291. deprecated="not deprecated">
  5292. <param name="delSrc" type="boolean"/>
  5293. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5294. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5295. <exception name="IOException" type="java.io.IOException"/>
  5296. <doc>
  5297. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5298. </doc>
  5299. </method>
  5300. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5301. abstract="false" native="false" synchronized="false"
  5302. static="false" final="false" visibility="public"
  5303. deprecated="not deprecated">
  5304. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5305. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5306. <exception name="IOException" type="java.io.IOException"/>
  5307. <doc>
  5308. <![CDATA[not implemented.]]>
  5309. </doc>
  5310. </method>
  5311. <method name="completeLocalOutput"
  5312. abstract="false" native="false" synchronized="false"
  5313. static="false" final="false" visibility="public"
  5314. deprecated="not deprecated">
  5315. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5316. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5317. <exception name="IOException" type="java.io.IOException"/>
  5318. <doc>
  5319. <![CDATA[not implemented.]]>
  5320. </doc>
  5321. </method>
  5322. <method name="setOwner"
  5323. abstract="false" native="false" synchronized="false"
  5324. static="false" final="false" visibility="public"
  5325. deprecated="not deprecated">
  5326. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5327. <param name="username" type="java.lang.String"/>
  5328. <param name="groupname" type="java.lang.String"/>
  5329. <exception name="IOException" type="java.io.IOException"/>
  5330. <doc>
  5331. <![CDATA[not implemented.]]>
  5332. </doc>
  5333. </method>
  5334. <method name="setPermission"
  5335. abstract="false" native="false" synchronized="false"
  5336. static="false" final="false" visibility="public"
  5337. deprecated="not deprecated">
  5338. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5339. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5340. <exception name="IOException" type="java.io.IOException"/>
  5341. <doc>
  5342. <![CDATA[Not implemented.]]>
  5343. </doc>
  5344. </method>
  5345. <field name="VERSION" type="int"
  5346. transient="false" volatile="false"
  5347. static="true" final="true" visibility="public"
  5348. deprecated="not deprecated">
  5349. </field>
  5350. <doc>
  5351. <![CDATA[This is an implementation of the Hadoop Archive
  5352. Filesystem. This archive Filesystem has index files
  5353. of the form _index* and has contents of the form
  5354. part-*. The index files store the indexes of the
  5355. real files. The index files are of the form _masterindex
  5356. and _index. The master index is a level of indirection
  5357. in to the index file to make the look ups faster. the index
  5358. file is sorted with hash code of the paths that it contains
  5359. and the master index contains pointers to the positions in
  5360. index for ranges of hashcodes.]]>
  5361. </doc>
  5362. </class>
  5363. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5364. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5365. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5366. abstract="false"
  5367. static="false" final="false" visibility="public"
  5368. deprecated="not deprecated">
  5369. <constructor name="InMemoryFileSystem"
  5370. static="false" final="false" visibility="public"
  5371. deprecated="not deprecated">
  5372. </constructor>
  5373. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5374. static="false" final="false" visibility="public"
  5375. deprecated="not deprecated">
  5376. </constructor>
  5377. <method name="reserveSpaceWithCheckSum" return="boolean"
  5378. abstract="false" native="false" synchronized="false"
  5379. static="false" final="false" visibility="public"
  5380. deprecated="not deprecated">
  5381. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5382. <param name="size" type="long"/>
  5383. <doc>
  5384. <![CDATA[Register a file with its size. This will also register a checksum for the
  5385. file that the user is trying to create. This is required since none of
  5386. the FileSystem APIs accept the size of the file as argument. But since it
  5387. is required for us to apriori know the size of the file we are going to
  5388. create, the user must call this method for each file he wants to create
  5389. and reserve memory for that file. We either succeed in reserving memory
  5390. for both the main file and the checksum file and return true, or return
  5391. false.]]>
  5392. </doc>
  5393. </method>
  5394. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5395. abstract="false" native="false" synchronized="false"
  5396. static="false" final="false" visibility="public"
  5397. deprecated="not deprecated">
  5398. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5399. </method>
  5400. <method name="getNumFiles" return="int"
  5401. abstract="false" native="false" synchronized="false"
  5402. static="false" final="false" visibility="public"
  5403. deprecated="not deprecated">
  5404. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5405. </method>
  5406. <method name="getFSSize" return="long"
  5407. abstract="false" native="false" synchronized="false"
  5408. static="false" final="false" visibility="public"
  5409. deprecated="not deprecated">
  5410. </method>
  5411. <method name="getPercentUsed" return="float"
  5412. abstract="false" native="false" synchronized="false"
  5413. static="false" final="false" visibility="public"
  5414. deprecated="not deprecated">
  5415. </method>
  5416. <doc>
  5417. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5418. that the file lengths are known ahead of time and the total lengths of all
  5419. the files is below a certain number (like 100 MB, configurable). Use the API
  5420. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5421. the API for reserving space in the FS. The uri of this filesystem starts with
  5422. ramfs:// .]]>
  5423. </doc>
  5424. </class>
  5425. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5426. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5427. <class name="LocalDirAllocator" extends="java.lang.Object"
  5428. abstract="false"
  5429. static="false" final="false" visibility="public"
  5430. deprecated="not deprecated">
  5431. <constructor name="LocalDirAllocator" type="java.lang.String"
  5432. static="false" final="false" visibility="public"
  5433. deprecated="not deprecated">
  5434. <doc>
  5435. <![CDATA[Create an allocator object
  5436. @param contextCfgItemName]]>
  5437. </doc>
  5438. </constructor>
  5439. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5440. abstract="false" native="false" synchronized="false"
  5441. static="false" final="false" visibility="public"
  5442. deprecated="not deprecated">
  5443. <param name="pathStr" type="java.lang.String"/>
  5444. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5445. <exception name="IOException" type="java.io.IOException"/>
  5446. <doc>
  5447. <![CDATA[Get a path from the local FS. This method should be used if the size of
  5448. the file is not known apriori. We go round-robin over the set of disks
  5449. (via the configured dirs) and return the first complete path where
  5450. we could create the parent directory of the passed path.
  5451. @param pathStr the requested path (this will be created on the first
  5452. available disk)
  5453. @param conf the Configuration object
  5454. @return the complete path to the file on a local disk
  5455. @throws IOException]]>
  5456. </doc>
  5457. </method>
  5458. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5459. abstract="false" native="false" synchronized="false"
  5460. static="false" final="false" visibility="public"
  5461. deprecated="not deprecated">
  5462. <param name="pathStr" type="java.lang.String"/>
  5463. <param name="size" type="long"/>
  5464. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5465. <exception name="IOException" type="java.io.IOException"/>
  5466. <doc>
  5467. <![CDATA[Get a path from the local FS. Pass size as -1 if not known apriori. We
  5468. round-robin over the set of disks (via the configured dirs) and return
  5469. the first complete path which has enough space
  5470. @param pathStr the requested path (this will be created on the first
  5471. available disk)
  5472. @param size the size of the file that is going to be written
  5473. @param conf the Configuration object
  5474. @return the complete path to the file on a local disk
  5475. @throws IOException]]>
  5476. </doc>
  5477. </method>
  5478. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5479. abstract="false" native="false" synchronized="false"
  5480. static="false" final="false" visibility="public"
  5481. deprecated="not deprecated">
  5482. <param name="pathStr" type="java.lang.String"/>
  5483. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5484. <exception name="IOException" type="java.io.IOException"/>
  5485. <doc>
  5486. <![CDATA[Get a path from the local FS for reading. We search through all the
  5487. configured dirs for the file's existence and return the complete
  5488. path to the file when we find one
  5489. @param pathStr the requested file (this will be searched)
  5490. @param conf the Configuration object
  5491. @return the complete path to the file on a local disk
  5492. @throws IOException]]>
  5493. </doc>
  5494. </method>
  5495. <method name="createTmpFileForWrite" return="java.io.File"
  5496. abstract="false" native="false" synchronized="false"
  5497. static="false" final="false" visibility="public"
  5498. deprecated="not deprecated">
  5499. <param name="pathStr" type="java.lang.String"/>
  5500. <param name="size" type="long"/>
  5501. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5502. <exception name="IOException" type="java.io.IOException"/>
  5503. <doc>
  5504. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  5505. apriori. We round-robin over the set of disks (via the configured dirs)
  5506. and select the first complete path which has enough space. A file is
  5507. created on this directory. The file is guaranteed to go away when the
  5508. JVM exits.
  5509. @param pathStr prefix for the temporary file
  5510. @param size the size of the file that is going to be written
  5511. @param conf the Configuration object
  5512. @return a unique temporary file
  5513. @throws IOException]]>
  5514. </doc>
  5515. </method>
  5516. <method name="isContextValid" return="boolean"
  5517. abstract="false" native="false" synchronized="false"
  5518. static="true" final="false" visibility="public"
  5519. deprecated="not deprecated">
  5520. <param name="contextCfgItemName" type="java.lang.String"/>
  5521. <doc>
  5522. <![CDATA[Method to check whether a context is valid
  5523. @param contextCfgItemName
  5524. @return true/false]]>
  5525. </doc>
  5526. </method>
  5527. <method name="ifExists" return="boolean"
  5528. abstract="false" native="false" synchronized="false"
  5529. static="false" final="false" visibility="public"
  5530. deprecated="not deprecated">
  5531. <param name="pathStr" type="java.lang.String"/>
  5532. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5533. <doc>
  5534. <![CDATA[We search through all the configured dirs for the file's existence
  5535. and return true when we find
  5536. @param pathStr the requested file (this will be searched)
  5537. @param conf the Configuration object
  5538. @return true if files exist. false otherwise
  5539. @throws IOException]]>
  5540. </doc>
  5541. </method>
  5542. <doc>
  5543. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  5544. files. The way it works is that it is kept track what disk was last
  5545. allocated for a file write. For the current request, the next disk from
  5546. the set of disks would be allocated if the free space on the disk is
  5547. sufficient enough to accomodate the file that is being considered for
  5548. creation. If the space requirements cannot be met, the next disk in order
  5549. would be tried and so on till a disk is found with sufficient capacity.
  5550. Once a disk with sufficient space is identified, a check is done to make
  5551. sure that the disk is writable. Also, there is an API provided that doesn't
  5552. take the space requirements into consideration but just checks whether the
  5553. disk under consideration is writable (this should be used for cases where
  5554. the file size is not known apriori). An API is provided to read a path that
  5555. was created earlier. That API works by doing a scan of all the disks for the
  5556. input pathname.
  5557. This implementation also provides the functionality of having multiple
  5558. allocators per JVM (one for each unique functionality or context, like
  5559. mapred, dfs-client, etc.). It ensures that there is only one instance of
  5560. an allocator per context per JVM.
  5561. Note:
  5562. 1. The contexts referred above are actually the configuration items defined
  5563. in the Configuration class like "mapred.local.dir" (for which we want to
  5564. control the dir allocations). The context-strings are exactly those
  5565. configuration items.
  5566. 2. This implementation does not take into consideration cases where
  5567. a disk becomes read-only or goes out of space while a file is being written
  5568. to (disks are shared between multiple processes, and so the latter situation
  5569. is probable).
  5570. 3. In the class implementation, "Disk" is referred to as "Dir", which
  5571. actually points to the configured directory on the Disk which will be the
  5572. parent for all file write/read allocations.]]>
  5573. </doc>
  5574. </class>
  5575. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  5576. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  5577. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5578. abstract="false"
  5579. static="false" final="false" visibility="public"
  5580. deprecated="not deprecated">
  5581. <constructor name="LocalFileSystem"
  5582. static="false" final="false" visibility="public"
  5583. deprecated="not deprecated">
  5584. </constructor>
  5585. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5586. static="false" final="false" visibility="public"
  5587. deprecated="not deprecated">
  5588. </constructor>
  5589. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  5590. abstract="false" native="false" synchronized="false"
  5591. static="false" final="false" visibility="public"
  5592. deprecated="not deprecated">
  5593. </method>
  5594. <method name="pathToFile" return="java.io.File"
  5595. abstract="false" native="false" synchronized="false"
  5596. static="false" final="false" visibility="public"
  5597. deprecated="not deprecated">
  5598. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5599. <doc>
  5600. <![CDATA[Convert a path to a File.]]>
  5601. </doc>
  5602. </method>
  5603. <method name="copyFromLocalFile"
  5604. abstract="false" native="false" synchronized="false"
  5605. static="false" final="false" visibility="public"
  5606. deprecated="not deprecated">
  5607. <param name="delSrc" type="boolean"/>
  5608. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5609. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5610. <exception name="IOException" type="java.io.IOException"/>
  5611. </method>
  5612. <method name="copyToLocalFile"
  5613. abstract="false" native="false" synchronized="false"
  5614. static="false" final="false" visibility="public"
  5615. deprecated="not deprecated">
  5616. <param name="delSrc" type="boolean"/>
  5617. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5618. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5619. <exception name="IOException" type="java.io.IOException"/>
  5620. </method>
  5621. <method name="reportChecksumFailure" return="boolean"
  5622. abstract="false" native="false" synchronized="false"
  5623. static="false" final="false" visibility="public"
  5624. deprecated="not deprecated">
  5625. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5626. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5627. <param name="inPos" type="long"/>
  5628. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5629. <param name="sumsPos" type="long"/>
  5630. <doc>
  5631. <![CDATA[Moves files to a bad file directory on the same device, so that their
  5632. storage will not be reused.]]>
  5633. </doc>
  5634. </method>
  5635. <doc>
  5636. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  5637. </doc>
  5638. </class>
  5639. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  5640. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  5641. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  5642. abstract="false"
  5643. static="false" final="false" visibility="public"
  5644. deprecated="not deprecated">
  5645. <constructor name="MD5MD5CRC32FileChecksum"
  5646. static="false" final="false" visibility="public"
  5647. deprecated="not deprecated">
  5648. <doc>
  5649. <![CDATA[Same as this(0, 0, null)]]>
  5650. </doc>
  5651. </constructor>
  5652. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  5653. static="false" final="false" visibility="public"
  5654. deprecated="not deprecated">
  5655. <doc>
  5656. <![CDATA[Create a MD5FileChecksum]]>
  5657. </doc>
  5658. </constructor>
  5659. <method name="getAlgorithmName" return="java.lang.String"
  5660. abstract="false" native="false" synchronized="false"
  5661. static="false" final="false" visibility="public"
  5662. deprecated="not deprecated">
  5663. <doc>
  5664. <![CDATA[{@inheritDoc}]]>
  5665. </doc>
  5666. </method>
  5667. <method name="getLength" return="int"
  5668. abstract="false" native="false" synchronized="false"
  5669. static="false" final="false" visibility="public"
  5670. deprecated="not deprecated">
  5671. <doc>
  5672. <![CDATA[{@inheritDoc}]]>
  5673. </doc>
  5674. </method>
  5675. <method name="getBytes" return="byte[]"
  5676. abstract="false" native="false" synchronized="false"
  5677. static="false" final="false" visibility="public"
  5678. deprecated="not deprecated">
  5679. <doc>
  5680. <![CDATA[{@inheritDoc}]]>
  5681. </doc>
  5682. </method>
  5683. <method name="readFields"
  5684. abstract="false" native="false" synchronized="false"
  5685. static="false" final="false" visibility="public"
  5686. deprecated="not deprecated">
  5687. <param name="in" type="java.io.DataInput"/>
  5688. <exception name="IOException" type="java.io.IOException"/>
  5689. <doc>
  5690. <![CDATA[{@inheritDoc}]]>
  5691. </doc>
  5692. </method>
  5693. <method name="write"
  5694. abstract="false" native="false" synchronized="false"
  5695. static="false" final="false" visibility="public"
  5696. deprecated="not deprecated">
  5697. <param name="out" type="java.io.DataOutput"/>
  5698. <exception name="IOException" type="java.io.IOException"/>
  5699. <doc>
  5700. <![CDATA[{@inheritDoc}]]>
  5701. </doc>
  5702. </method>
  5703. <method name="write"
  5704. abstract="false" native="false" synchronized="false"
  5705. static="true" final="false" visibility="public"
  5706. deprecated="not deprecated">
  5707. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  5708. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  5709. <exception name="IOException" type="java.io.IOException"/>
  5710. <doc>
  5711. <![CDATA[Write that object to xml output.]]>
  5712. </doc>
  5713. </method>
  5714. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  5715. abstract="false" native="false" synchronized="false"
  5716. static="true" final="false" visibility="public"
  5717. deprecated="not deprecated">
  5718. <param name="attrs" type="org.xml.sax.Attributes"/>
  5719. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  5720. <doc>
  5721. <![CDATA[Return the object represented in the attributes.]]>
  5722. </doc>
  5723. </method>
  5724. <method name="toString" return="java.lang.String"
  5725. abstract="false" native="false" synchronized="false"
  5726. static="false" final="false" visibility="public"
  5727. deprecated="not deprecated">
  5728. <doc>
  5729. <![CDATA[{@inheritDoc}]]>
  5730. </doc>
  5731. </method>
  5732. <field name="LENGTH" type="int"
  5733. transient="false" volatile="false"
  5734. static="true" final="true" visibility="public"
  5735. deprecated="not deprecated">
  5736. </field>
  5737. <doc>
  5738. <![CDATA[MD5 of MD5 of CRC32.]]>
  5739. </doc>
  5740. </class>
  5741. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  5742. <!-- start class org.apache.hadoop.fs.Path -->
  5743. <class name="Path" extends="java.lang.Object"
  5744. abstract="false"
  5745. static="false" final="false" visibility="public"
  5746. deprecated="not deprecated">
  5747. <implements name="java.lang.Comparable"/>
  5748. <constructor name="Path" type="java.lang.String, java.lang.String"
  5749. static="false" final="false" visibility="public"
  5750. deprecated="not deprecated">
  5751. <doc>
  5752. <![CDATA[Resolve a child path against a parent path.]]>
  5753. </doc>
  5754. </constructor>
  5755. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  5756. static="false" final="false" visibility="public"
  5757. deprecated="not deprecated">
  5758. <doc>
  5759. <![CDATA[Resolve a child path against a parent path.]]>
  5760. </doc>
  5761. </constructor>
  5762. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  5763. static="false" final="false" visibility="public"
  5764. deprecated="not deprecated">
  5765. <doc>
  5766. <![CDATA[Resolve a child path against a parent path.]]>
  5767. </doc>
  5768. </constructor>
  5769. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  5770. static="false" final="false" visibility="public"
  5771. deprecated="not deprecated">
  5772. <doc>
  5773. <![CDATA[Resolve a child path against a parent path.]]>
  5774. </doc>
  5775. </constructor>
  5776. <constructor name="Path" type="java.lang.String"
  5777. static="false" final="false" visibility="public"
  5778. deprecated="not deprecated">
  5779. <doc>
  5780. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  5781. unescaped elements and some additional normalization.]]>
  5782. </doc>
  5783. </constructor>
  5784. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  5785. static="false" final="false" visibility="public"
  5786. deprecated="not deprecated">
  5787. <doc>
  5788. <![CDATA[Construct a Path from components.]]>
  5789. </doc>
  5790. </constructor>
  5791. <method name="toUri" return="java.net.URI"
  5792. abstract="false" native="false" synchronized="false"
  5793. static="false" final="false" visibility="public"
  5794. deprecated="not deprecated">
  5795. <doc>
  5796. <![CDATA[Convert this to a URI.]]>
  5797. </doc>
  5798. </method>
  5799. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  5800. abstract="false" native="false" synchronized="false"
  5801. static="false" final="false" visibility="public"
  5802. deprecated="not deprecated">
  5803. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5804. <exception name="IOException" type="java.io.IOException"/>
  5805. <doc>
  5806. <![CDATA[Return the FileSystem that owns this Path.]]>
  5807. </doc>
  5808. </method>
  5809. <method name="isAbsolute" return="boolean"
  5810. abstract="false" native="false" synchronized="false"
  5811. static="false" final="false" visibility="public"
  5812. deprecated="not deprecated">
  5813. <doc>
  5814. <![CDATA[True if the directory of this path is absolute.]]>
  5815. </doc>
  5816. </method>
  5817. <method name="getName" return="java.lang.String"
  5818. abstract="false" native="false" synchronized="false"
  5819. static="false" final="false" visibility="public"
  5820. deprecated="not deprecated">
  5821. <doc>
  5822. <![CDATA[Returns the final component of this path.]]>
  5823. </doc>
  5824. </method>
  5825. <method name="getParent" return="org.apache.hadoop.fs.Path"
  5826. abstract="false" native="false" synchronized="false"
  5827. static="false" final="false" visibility="public"
  5828. deprecated="not deprecated">
  5829. <doc>
  5830. <![CDATA[Returns the parent of a path or null if at root.]]>
  5831. </doc>
  5832. </method>
  5833. <method name="suffix" return="org.apache.hadoop.fs.Path"
  5834. abstract="false" native="false" synchronized="false"
  5835. static="false" final="false" visibility="public"
  5836. deprecated="not deprecated">
  5837. <param name="suffix" type="java.lang.String"/>
  5838. <doc>
  5839. <![CDATA[Adds a suffix to the final name in the path.]]>
  5840. </doc>
  5841. </method>
  5842. <method name="toString" return="java.lang.String"
  5843. abstract="false" native="false" synchronized="false"
  5844. static="false" final="false" visibility="public"
  5845. deprecated="not deprecated">
  5846. </method>
  5847. <method name="equals" return="boolean"
  5848. abstract="false" native="false" synchronized="false"
  5849. static="false" final="false" visibility="public"
  5850. deprecated="not deprecated">
  5851. <param name="o" type="java.lang.Object"/>
  5852. </method>
  5853. <method name="hashCode" return="int"
  5854. abstract="false" native="false" synchronized="false"
  5855. static="false" final="false" visibility="public"
  5856. deprecated="not deprecated">
  5857. </method>
  5858. <method name="compareTo" return="int"
  5859. abstract="false" native="false" synchronized="false"
  5860. static="false" final="false" visibility="public"
  5861. deprecated="not deprecated">
  5862. <param name="o" type="java.lang.Object"/>
  5863. </method>
  5864. <method name="depth" return="int"
  5865. abstract="false" native="false" synchronized="false"
  5866. static="false" final="false" visibility="public"
  5867. deprecated="not deprecated">
  5868. <doc>
  5869. <![CDATA[Return the number of elements in this path.]]>
  5870. </doc>
  5871. </method>
  5872. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5873. abstract="false" native="false" synchronized="false"
  5874. static="false" final="false" visibility="public"
  5875. deprecated="not deprecated">
  5876. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  5877. <doc>
  5878. <![CDATA[Returns a qualified path object.]]>
  5879. </doc>
  5880. </method>
  5881. <field name="SEPARATOR" type="java.lang.String"
  5882. transient="false" volatile="false"
  5883. static="true" final="true" visibility="public"
  5884. deprecated="not deprecated">
  5885. <doc>
  5886. <![CDATA[The directory separator, a slash.]]>
  5887. </doc>
  5888. </field>
  5889. <field name="SEPARATOR_CHAR" type="char"
  5890. transient="false" volatile="false"
  5891. static="true" final="true" visibility="public"
  5892. deprecated="not deprecated">
  5893. </field>
  5894. <field name="CUR_DIR" type="java.lang.String"
  5895. transient="false" volatile="false"
  5896. static="true" final="true" visibility="public"
  5897. deprecated="not deprecated">
  5898. </field>
  5899. <doc>
  5900. <![CDATA[Names a file or directory in a {@link FileSystem}.
  5901. Path strings use slash as the directory separator. A path string is
  5902. absolute if it begins with a slash.]]>
  5903. </doc>
  5904. </class>
  5905. <!-- end class org.apache.hadoop.fs.Path -->
  5906. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  5907. <interface name="PathFilter" abstract="true"
  5908. static="false" final="false" visibility="public"
  5909. deprecated="not deprecated">
  5910. <method name="accept" return="boolean"
  5911. abstract="false" native="false" synchronized="false"
  5912. static="false" final="false" visibility="public"
  5913. deprecated="not deprecated">
  5914. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5915. <doc>
  5916. <![CDATA[Tests whether or not the specified abstract pathname should be
  5917. included in a pathname list.
  5918. @param path The abstract pathname to be tested
  5919. @return <code>true</code> if and only if <code>pathname</code>
  5920. should be included]]>
  5921. </doc>
  5922. </method>
  5923. </interface>
  5924. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  5925. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  5926. <interface name="PositionedReadable" abstract="true"
  5927. static="false" final="false" visibility="public"
  5928. deprecated="not deprecated">
  5929. <method name="read" return="int"
  5930. abstract="false" native="false" synchronized="false"
  5931. static="false" final="false" visibility="public"
  5932. deprecated="not deprecated">
  5933. <param name="position" type="long"/>
  5934. <param name="buffer" type="byte[]"/>
  5935. <param name="offset" type="int"/>
  5936. <param name="length" type="int"/>
  5937. <exception name="IOException" type="java.io.IOException"/>
  5938. <doc>
  5939. <![CDATA[Read upto the specified number of bytes, from a given
  5940. position within a file, and return the number of bytes read. This does not
  5941. change the current offset of a file, and is thread-safe.]]>
  5942. </doc>
  5943. </method>
  5944. <method name="readFully"
  5945. abstract="false" native="false" synchronized="false"
  5946. static="false" final="false" visibility="public"
  5947. deprecated="not deprecated">
  5948. <param name="position" type="long"/>
  5949. <param name="buffer" type="byte[]"/>
  5950. <param name="offset" type="int"/>
  5951. <param name="length" type="int"/>
  5952. <exception name="IOException" type="java.io.IOException"/>
  5953. <doc>
  5954. <![CDATA[Read the specified number of bytes, from a given
  5955. position within a file. This does not
  5956. change the current offset of a file, and is thread-safe.]]>
  5957. </doc>
  5958. </method>
  5959. <method name="readFully"
  5960. abstract="false" native="false" synchronized="false"
  5961. static="false" final="false" visibility="public"
  5962. deprecated="not deprecated">
  5963. <param name="position" type="long"/>
  5964. <param name="buffer" type="byte[]"/>
  5965. <exception name="IOException" type="java.io.IOException"/>
  5966. <doc>
  5967. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  5968. position within a file. This does not
  5969. change the current offset of a file, and is thread-safe.]]>
  5970. </doc>
  5971. </method>
  5972. <doc>
  5973. <![CDATA[Stream that permits positional reading.]]>
  5974. </doc>
  5975. </interface>
  5976. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  5977. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  5978. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  5979. abstract="false"
  5980. static="false" final="false" visibility="public"
  5981. deprecated="not deprecated">
  5982. <constructor name="RawLocalFileSystem"
  5983. static="false" final="false" visibility="public"
  5984. deprecated="not deprecated">
  5985. </constructor>
  5986. <method name="pathToFile" return="java.io.File"
  5987. abstract="false" native="false" synchronized="false"
  5988. static="false" final="false" visibility="public"
  5989. deprecated="not deprecated">
  5990. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5991. <doc>
  5992. <![CDATA[Convert a path to a File.]]>
  5993. </doc>
  5994. </method>
  5995. <method name="getUri" return="java.net.URI"
  5996. abstract="false" native="false" synchronized="false"
  5997. static="false" final="false" visibility="public"
  5998. deprecated="not deprecated">
  5999. </method>
  6000. <method name="initialize"
  6001. abstract="false" native="false" synchronized="false"
  6002. static="false" final="false" visibility="public"
  6003. deprecated="not deprecated">
  6004. <param name="uri" type="java.net.URI"/>
  6005. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6006. <exception name="IOException" type="java.io.IOException"/>
  6007. </method>
  6008. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6009. abstract="false" native="false" synchronized="false"
  6010. static="false" final="false" visibility="public"
  6011. deprecated="not deprecated">
  6012. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6013. <param name="bufferSize" type="int"/>
  6014. <exception name="IOException" type="java.io.IOException"/>
  6015. </method>
  6016. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6017. abstract="false" native="false" synchronized="false"
  6018. static="false" final="false" visibility="public"
  6019. deprecated="not deprecated">
  6020. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6021. <param name="bufferSize" type="int"/>
  6022. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6023. <exception name="IOException" type="java.io.IOException"/>
  6024. <doc>
  6025. <![CDATA[{@inheritDoc}]]>
  6026. </doc>
  6027. </method>
  6028. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6029. abstract="false" native="false" synchronized="false"
  6030. static="false" final="false" visibility="public"
  6031. deprecated="not deprecated">
  6032. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6033. <param name="overwrite" type="boolean"/>
  6034. <param name="bufferSize" type="int"/>
  6035. <param name="replication" type="short"/>
  6036. <param name="blockSize" type="long"/>
  6037. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6038. <exception name="IOException" type="java.io.IOException"/>
  6039. <doc>
  6040. <![CDATA[{@inheritDoc}]]>
  6041. </doc>
  6042. </method>
  6043. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6044. abstract="false" native="false" synchronized="false"
  6045. static="false" final="false" visibility="public"
  6046. deprecated="not deprecated">
  6047. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6048. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6049. <param name="overwrite" type="boolean"/>
  6050. <param name="bufferSize" type="int"/>
  6051. <param name="replication" type="short"/>
  6052. <param name="blockSize" type="long"/>
  6053. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6054. <exception name="IOException" type="java.io.IOException"/>
  6055. <doc>
  6056. <![CDATA[{@inheritDoc}]]>
  6057. </doc>
  6058. </method>
  6059. <method name="rename" return="boolean"
  6060. abstract="false" native="false" synchronized="false"
  6061. static="false" final="false" visibility="public"
  6062. deprecated="not deprecated">
  6063. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6064. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6065. <exception name="IOException" type="java.io.IOException"/>
  6066. </method>
  6067. <method name="delete" return="boolean"
  6068. abstract="false" native="false" synchronized="false"
  6069. static="false" final="false" visibility="public"
  6070. deprecated="not deprecated">
  6071. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6072. <exception name="IOException" type="java.io.IOException"/>
  6073. </method>
  6074. <method name="delete" return="boolean"
  6075. abstract="false" native="false" synchronized="false"
  6076. static="false" final="false" visibility="public"
  6077. deprecated="not deprecated">
  6078. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6079. <param name="recursive" type="boolean"/>
  6080. <exception name="IOException" type="java.io.IOException"/>
  6081. </method>
  6082. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6083. abstract="false" native="false" synchronized="false"
  6084. static="false" final="false" visibility="public"
  6085. deprecated="not deprecated">
  6086. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6087. <exception name="IOException" type="java.io.IOException"/>
  6088. </method>
  6089. <method name="mkdirs" return="boolean"
  6090. abstract="false" native="false" synchronized="false"
  6091. static="false" final="false" visibility="public"
  6092. deprecated="not deprecated">
  6093. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6094. <exception name="IOException" type="java.io.IOException"/>
  6095. <doc>
  6096. <![CDATA[Creates the specified directory hierarchy. Does not
  6097. treat existence as an error.]]>
  6098. </doc>
  6099. </method>
  6100. <method name="mkdirs" return="boolean"
  6101. abstract="false" native="false" synchronized="false"
  6102. static="false" final="false" visibility="public"
  6103. deprecated="not deprecated">
  6104. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6105. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6106. <exception name="IOException" type="java.io.IOException"/>
  6107. <doc>
  6108. <![CDATA[{@inheritDoc}]]>
  6109. </doc>
  6110. </method>
  6111. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6112. abstract="false" native="false" synchronized="false"
  6113. static="false" final="false" visibility="public"
  6114. deprecated="not deprecated">
  6115. </method>
  6116. <method name="setWorkingDirectory"
  6117. abstract="false" native="false" synchronized="false"
  6118. static="false" final="false" visibility="public"
  6119. deprecated="not deprecated">
  6120. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6121. <doc>
  6122. <![CDATA[Set the working directory to the given directory.]]>
  6123. </doc>
  6124. </method>
  6125. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6126. abstract="false" native="false" synchronized="false"
  6127. static="false" final="false" visibility="public"
  6128. deprecated="not deprecated">
  6129. </method>
  6130. <method name="moveFromLocalFile"
  6131. abstract="false" native="false" synchronized="false"
  6132. static="false" final="false" visibility="public"
  6133. deprecated="not deprecated">
  6134. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6135. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6136. <exception name="IOException" type="java.io.IOException"/>
  6137. </method>
  6138. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6139. abstract="false" native="false" synchronized="false"
  6140. static="false" final="false" visibility="public"
  6141. deprecated="not deprecated">
  6142. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6143. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6144. <exception name="IOException" type="java.io.IOException"/>
  6145. </method>
  6146. <method name="completeLocalOutput"
  6147. abstract="false" native="false" synchronized="false"
  6148. static="false" final="false" visibility="public"
  6149. deprecated="not deprecated">
  6150. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6151. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6152. <exception name="IOException" type="java.io.IOException"/>
  6153. </method>
  6154. <method name="close"
  6155. abstract="false" native="false" synchronized="false"
  6156. static="false" final="false" visibility="public"
  6157. deprecated="not deprecated">
  6158. <exception name="IOException" type="java.io.IOException"/>
  6159. </method>
  6160. <method name="toString" return="java.lang.String"
  6161. abstract="false" native="false" synchronized="false"
  6162. static="false" final="false" visibility="public"
  6163. deprecated="not deprecated">
  6164. </method>
  6165. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6166. abstract="false" native="false" synchronized="false"
  6167. static="false" final="false" visibility="public"
  6168. deprecated="not deprecated">
  6169. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6170. <exception name="IOException" type="java.io.IOException"/>
  6171. </method>
  6172. <method name="setOwner"
  6173. abstract="false" native="false" synchronized="false"
  6174. static="false" final="false" visibility="public"
  6175. deprecated="not deprecated">
  6176. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6177. <param name="username" type="java.lang.String"/>
  6178. <param name="groupname" type="java.lang.String"/>
  6179. <exception name="IOException" type="java.io.IOException"/>
  6180. <doc>
  6181. <![CDATA[Use the command chown to set owner.]]>
  6182. </doc>
  6183. </method>
  6184. <method name="setPermission"
  6185. abstract="false" native="false" synchronized="false"
  6186. static="false" final="false" visibility="public"
  6187. deprecated="not deprecated">
  6188. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6189. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6190. <exception name="IOException" type="java.io.IOException"/>
  6191. <doc>
  6192. <![CDATA[Use the command chmod to set permission.]]>
  6193. </doc>
  6194. </method>
  6195. <doc>
  6196. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6197. </doc>
  6198. </class>
  6199. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6200. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6201. <interface name="Seekable" abstract="true"
  6202. static="false" final="false" visibility="public"
  6203. deprecated="not deprecated">
  6204. <method name="seek"
  6205. abstract="false" native="false" synchronized="false"
  6206. static="false" final="false" visibility="public"
  6207. deprecated="not deprecated">
  6208. <param name="pos" type="long"/>
  6209. <exception name="IOException" type="java.io.IOException"/>
  6210. <doc>
  6211. <![CDATA[Seek to the given offset from the start of the file.
  6212. The next read() will be from that location. Can't
  6213. seek past the end of the file.]]>
  6214. </doc>
  6215. </method>
  6216. <method name="getPos" return="long"
  6217. abstract="false" native="false" synchronized="false"
  6218. static="false" final="false" visibility="public"
  6219. deprecated="not deprecated">
  6220. <exception name="IOException" type="java.io.IOException"/>
  6221. <doc>
  6222. <![CDATA[Return the current offset from the start of the file]]>
  6223. </doc>
  6224. </method>
  6225. <method name="seekToNewSource" return="boolean"
  6226. abstract="false" native="false" synchronized="false"
  6227. static="false" final="false" visibility="public"
  6228. deprecated="not deprecated">
  6229. <param name="targetPos" type="long"/>
  6230. <exception name="IOException" type="java.io.IOException"/>
  6231. <doc>
  6232. <![CDATA[Seeks a different copy of the data. Returns true if
  6233. found a new source, false otherwise.]]>
  6234. </doc>
  6235. </method>
  6236. <doc>
  6237. <![CDATA[Stream that permits seeking.]]>
  6238. </doc>
  6239. </interface>
  6240. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6241. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6242. <interface name="Syncable" abstract="true"
  6243. static="false" final="false" visibility="public"
  6244. deprecated="not deprecated">
  6245. <method name="sync"
  6246. abstract="false" native="false" synchronized="false"
  6247. static="false" final="false" visibility="public"
  6248. deprecated="not deprecated">
  6249. <exception name="IOException" type="java.io.IOException"/>
  6250. <doc>
  6251. <![CDATA[Synchronize all buffer with the underlying devices.
  6252. @throws IOException]]>
  6253. </doc>
  6254. </method>
  6255. <doc>
  6256. <![CDATA[This interface declare the sync() operation.]]>
  6257. </doc>
  6258. </interface>
  6259. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6260. <!-- start class org.apache.hadoop.fs.Trash -->
  6261. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6262. abstract="false"
  6263. static="false" final="false" visibility="public"
  6264. deprecated="not deprecated">
  6265. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6266. static="false" final="false" visibility="public"
  6267. deprecated="not deprecated">
  6268. <exception name="IOException" type="java.io.IOException"/>
  6269. <doc>
  6270. <![CDATA[Construct a trash can accessor.
  6271. @param conf a Configuration]]>
  6272. </doc>
  6273. </constructor>
  6274. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6275. static="false" final="false" visibility="public"
  6276. deprecated="not deprecated">
  6277. <exception name="IOException" type="java.io.IOException"/>
  6278. <doc>
  6279. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6280. </doc>
  6281. </constructor>
  6282. <method name="moveToTrash" return="boolean"
  6283. abstract="false" native="false" synchronized="false"
  6284. static="false" final="false" visibility="public"
  6285. deprecated="not deprecated">
  6286. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6287. <exception name="IOException" type="java.io.IOException"/>
  6288. <doc>
  6289. <![CDATA[Move a file or directory to the current trash directory.
  6290. @return false if the item is already in the trash or trash is disabled]]>
  6291. </doc>
  6292. </method>
  6293. <method name="checkpoint"
  6294. abstract="false" native="false" synchronized="false"
  6295. static="false" final="false" visibility="public"
  6296. deprecated="not deprecated">
  6297. <exception name="IOException" type="java.io.IOException"/>
  6298. <doc>
  6299. <![CDATA[Create a trash checkpoint.]]>
  6300. </doc>
  6301. </method>
  6302. <method name="expunge"
  6303. abstract="false" native="false" synchronized="false"
  6304. static="false" final="false" visibility="public"
  6305. deprecated="not deprecated">
  6306. <exception name="IOException" type="java.io.IOException"/>
  6307. <doc>
  6308. <![CDATA[Delete old checkpoints.]]>
  6309. </doc>
  6310. </method>
  6311. <method name="getEmptier" return="java.lang.Runnable"
  6312. abstract="false" native="false" synchronized="false"
  6313. static="false" final="false" visibility="public"
  6314. deprecated="not deprecated">
  6315. <exception name="IOException" type="java.io.IOException"/>
  6316. <doc>
  6317. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6318. users, intended to be run by the superuser. Only one checkpoint is kept
  6319. at a time.]]>
  6320. </doc>
  6321. </method>
  6322. <method name="main"
  6323. abstract="false" native="false" synchronized="false"
  6324. static="true" final="false" visibility="public"
  6325. deprecated="not deprecated">
  6326. <param name="args" type="java.lang.String[]"/>
  6327. <exception name="Exception" type="java.lang.Exception"/>
  6328. <doc>
  6329. <![CDATA[Run an emptier.]]>
  6330. </doc>
  6331. </method>
  6332. <doc>
  6333. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6334. directory, a subdirectory of their home directory named ".Trash". Files are
  6335. initially moved to a <i>current</i> sub-directory of the trash directory.
  6336. Within that sub-directory their original path is preserved. Periodically
  6337. one may checkpoint the current trash and remove older checkpoints. (This
  6338. design permits trash management without enumeration of the full trash
  6339. content, without date support in the filesystem, and without clock
  6340. synchronization.)]]>
  6341. </doc>
  6342. </class>
  6343. <!-- end class org.apache.hadoop.fs.Trash -->
  6344. <doc>
  6345. <![CDATA[An abstract file system API.]]>
  6346. </doc>
  6347. </package>
  6348. <package name="org.apache.hadoop.fs.ftp">
  6349. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  6350. <class name="FTPException" extends="java.lang.RuntimeException"
  6351. abstract="false"
  6352. static="false" final="false" visibility="public"
  6353. deprecated="not deprecated">
  6354. <constructor name="FTPException" type="java.lang.String"
  6355. static="false" final="false" visibility="public"
  6356. deprecated="not deprecated">
  6357. </constructor>
  6358. <constructor name="FTPException" type="java.lang.Throwable"
  6359. static="false" final="false" visibility="public"
  6360. deprecated="not deprecated">
  6361. </constructor>
  6362. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  6363. static="false" final="false" visibility="public"
  6364. deprecated="not deprecated">
  6365. </constructor>
  6366. <doc>
  6367. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  6368. </doc>
  6369. </class>
  6370. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  6371. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6372. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6373. abstract="false"
  6374. static="false" final="false" visibility="public"
  6375. deprecated="not deprecated">
  6376. <constructor name="FTPFileSystem"
  6377. static="false" final="false" visibility="public"
  6378. deprecated="not deprecated">
  6379. </constructor>
  6380. <method name="initialize"
  6381. abstract="false" native="false" synchronized="false"
  6382. static="false" final="false" visibility="public"
  6383. deprecated="not deprecated">
  6384. <param name="uri" type="java.net.URI"/>
  6385. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6386. <exception name="IOException" type="java.io.IOException"/>
  6387. </method>
  6388. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6389. abstract="false" native="false" synchronized="false"
  6390. static="false" final="false" visibility="public"
  6391. deprecated="not deprecated">
  6392. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6393. <param name="bufferSize" type="int"/>
  6394. <exception name="IOException" type="java.io.IOException"/>
  6395. </method>
  6396. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6397. abstract="false" native="false" synchronized="false"
  6398. static="false" final="false" visibility="public"
  6399. deprecated="not deprecated">
  6400. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6401. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6402. <param name="overwrite" type="boolean"/>
  6403. <param name="bufferSize" type="int"/>
  6404. <param name="replication" type="short"/>
  6405. <param name="blockSize" type="long"/>
  6406. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6407. <exception name="IOException" type="java.io.IOException"/>
  6408. <doc>
  6409. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  6410. this class or else the invocation will block.]]>
  6411. </doc>
  6412. </method>
  6413. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6414. abstract="false" native="false" synchronized="false"
  6415. static="false" final="false" visibility="public"
  6416. deprecated="not deprecated">
  6417. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6418. <param name="bufferSize" type="int"/>
  6419. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6420. <exception name="IOException" type="java.io.IOException"/>
  6421. <doc>
  6422. <![CDATA[This optional operation is not yet supported.]]>
  6423. </doc>
  6424. </method>
  6425. <method name="delete" return="boolean"
  6426. abstract="false" native="false" synchronized="false"
  6427. static="false" final="false" visibility="public"
  6428. deprecated="Use delete(Path, boolean) instead">
  6429. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6430. <exception name="IOException" type="java.io.IOException"/>
  6431. <doc>
  6432. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  6433. </doc>
  6434. </method>
  6435. <method name="delete" return="boolean"
  6436. abstract="false" native="false" synchronized="false"
  6437. static="false" final="false" visibility="public"
  6438. deprecated="not deprecated">
  6439. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6440. <param name="recursive" type="boolean"/>
  6441. <exception name="IOException" type="java.io.IOException"/>
  6442. </method>
  6443. <method name="getUri" return="java.net.URI"
  6444. abstract="false" native="false" synchronized="false"
  6445. static="false" final="false" visibility="public"
  6446. deprecated="not deprecated">
  6447. </method>
  6448. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6449. abstract="false" native="false" synchronized="false"
  6450. static="false" final="false" visibility="public"
  6451. deprecated="not deprecated">
  6452. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6453. <exception name="IOException" type="java.io.IOException"/>
  6454. </method>
  6455. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6456. abstract="false" native="false" synchronized="false"
  6457. static="false" final="false" visibility="public"
  6458. deprecated="not deprecated">
  6459. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6460. <exception name="IOException" type="java.io.IOException"/>
  6461. </method>
  6462. <method name="mkdirs" return="boolean"
  6463. abstract="false" native="false" synchronized="false"
  6464. static="false" final="false" visibility="public"
  6465. deprecated="not deprecated">
  6466. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6467. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6468. <exception name="IOException" type="java.io.IOException"/>
  6469. </method>
  6470. <method name="rename" return="boolean"
  6471. abstract="false" native="false" synchronized="false"
  6472. static="false" final="false" visibility="public"
  6473. deprecated="not deprecated">
  6474. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6475. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6476. <exception name="IOException" type="java.io.IOException"/>
  6477. </method>
  6478. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6479. abstract="false" native="false" synchronized="false"
  6480. static="false" final="false" visibility="public"
  6481. deprecated="not deprecated">
  6482. </method>
  6483. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6484. abstract="false" native="false" synchronized="false"
  6485. static="false" final="false" visibility="public"
  6486. deprecated="not deprecated">
  6487. </method>
  6488. <method name="setWorkingDirectory"
  6489. abstract="false" native="false" synchronized="false"
  6490. static="false" final="false" visibility="public"
  6491. deprecated="not deprecated">
  6492. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6493. </method>
  6494. <field name="LOG" type="org.apache.commons.logging.Log"
  6495. transient="false" volatile="false"
  6496. static="true" final="true" visibility="public"
  6497. deprecated="not deprecated">
  6498. </field>
  6499. <field name="DEFAULT_BUFFER_SIZE" type="int"
  6500. transient="false" volatile="false"
  6501. static="true" final="true" visibility="public"
  6502. deprecated="not deprecated">
  6503. </field>
  6504. <field name="DEFAULT_BLOCK_SIZE" type="int"
  6505. transient="false" volatile="false"
  6506. static="true" final="true" visibility="public"
  6507. deprecated="not deprecated">
  6508. </field>
  6509. <doc>
  6510. <![CDATA[<p>
  6511. A {@link FileSystem} backed by an FTP client provided by <a
  6512. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  6513. </p>]]>
  6514. </doc>
  6515. </class>
  6516. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6517. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6518. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  6519. abstract="false"
  6520. static="false" final="false" visibility="public"
  6521. deprecated="not deprecated">
  6522. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  6523. static="false" final="false" visibility="public"
  6524. deprecated="not deprecated">
  6525. </constructor>
  6526. <method name="getPos" return="long"
  6527. abstract="false" native="false" synchronized="false"
  6528. static="false" final="false" visibility="public"
  6529. deprecated="not deprecated">
  6530. <exception name="IOException" type="java.io.IOException"/>
  6531. </method>
  6532. <method name="seek"
  6533. abstract="false" native="false" synchronized="false"
  6534. static="false" final="false" visibility="public"
  6535. deprecated="not deprecated">
  6536. <param name="pos" type="long"/>
  6537. <exception name="IOException" type="java.io.IOException"/>
  6538. </method>
  6539. <method name="seekToNewSource" return="boolean"
  6540. abstract="false" native="false" synchronized="false"
  6541. static="false" final="false" visibility="public"
  6542. deprecated="not deprecated">
  6543. <param name="targetPos" type="long"/>
  6544. <exception name="IOException" type="java.io.IOException"/>
  6545. </method>
  6546. <method name="read" return="int"
  6547. abstract="false" native="false" synchronized="true"
  6548. static="false" final="false" visibility="public"
  6549. deprecated="not deprecated">
  6550. <exception name="IOException" type="java.io.IOException"/>
  6551. </method>
  6552. <method name="read" return="int"
  6553. abstract="false" native="false" synchronized="true"
  6554. static="false" final="false" visibility="public"
  6555. deprecated="not deprecated">
  6556. <param name="buf" type="byte[]"/>
  6557. <param name="off" type="int"/>
  6558. <param name="len" type="int"/>
  6559. <exception name="IOException" type="java.io.IOException"/>
  6560. </method>
  6561. <method name="close"
  6562. abstract="false" native="false" synchronized="true"
  6563. static="false" final="false" visibility="public"
  6564. deprecated="not deprecated">
  6565. <exception name="IOException" type="java.io.IOException"/>
  6566. </method>
  6567. <method name="markSupported" return="boolean"
  6568. abstract="false" native="false" synchronized="false"
  6569. static="false" final="false" visibility="public"
  6570. deprecated="not deprecated">
  6571. </method>
  6572. <method name="mark"
  6573. abstract="false" native="false" synchronized="false"
  6574. static="false" final="false" visibility="public"
  6575. deprecated="not deprecated">
  6576. <param name="readLimit" type="int"/>
  6577. </method>
  6578. <method name="reset"
  6579. abstract="false" native="false" synchronized="false"
  6580. static="false" final="false" visibility="public"
  6581. deprecated="not deprecated">
  6582. <exception name="IOException" type="java.io.IOException"/>
  6583. </method>
  6584. </class>
  6585. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6586. </package>
  6587. <package name="org.apache.hadoop.fs.kfs">
  6588. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  6589. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6590. abstract="false"
  6591. static="false" final="false" visibility="public"
  6592. deprecated="not deprecated">
  6593. <constructor name="KosmosFileSystem"
  6594. static="false" final="false" visibility="public"
  6595. deprecated="not deprecated">
  6596. </constructor>
  6597. <method name="getUri" return="java.net.URI"
  6598. abstract="false" native="false" synchronized="false"
  6599. static="false" final="false" visibility="public"
  6600. deprecated="not deprecated">
  6601. </method>
  6602. <method name="initialize"
  6603. abstract="false" native="false" synchronized="false"
  6604. static="false" final="false" visibility="public"
  6605. deprecated="not deprecated">
  6606. <param name="uri" type="java.net.URI"/>
  6607. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6608. <exception name="IOException" type="java.io.IOException"/>
  6609. </method>
  6610. <method name="getName" return="java.lang.String"
  6611. abstract="false" native="false" synchronized="false"
  6612. static="false" final="false" visibility="public"
  6613. deprecated="not deprecated">
  6614. </method>
  6615. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6616. abstract="false" native="false" synchronized="false"
  6617. static="false" final="false" visibility="public"
  6618. deprecated="not deprecated">
  6619. </method>
  6620. <method name="setWorkingDirectory"
  6621. abstract="false" native="false" synchronized="false"
  6622. static="false" final="false" visibility="public"
  6623. deprecated="not deprecated">
  6624. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6625. </method>
  6626. <method name="mkdirs" return="boolean"
  6627. abstract="false" native="false" synchronized="false"
  6628. static="false" final="false" visibility="public"
  6629. deprecated="not deprecated">
  6630. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6631. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6632. <exception name="IOException" type="java.io.IOException"/>
  6633. </method>
  6634. <method name="isDirectory" return="boolean"
  6635. abstract="false" native="false" synchronized="false"
  6636. static="false" final="false" visibility="public"
  6637. deprecated="not deprecated">
  6638. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6639. <exception name="IOException" type="java.io.IOException"/>
  6640. </method>
  6641. <method name="isFile" return="boolean"
  6642. abstract="false" native="false" synchronized="false"
  6643. static="false" final="false" visibility="public"
  6644. deprecated="not deprecated">
  6645. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6646. <exception name="IOException" type="java.io.IOException"/>
  6647. </method>
  6648. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6649. abstract="false" native="false" synchronized="false"
  6650. static="false" final="false" visibility="public"
  6651. deprecated="not deprecated">
  6652. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6653. <exception name="IOException" type="java.io.IOException"/>
  6654. </method>
  6655. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6656. abstract="false" native="false" synchronized="false"
  6657. static="false" final="false" visibility="public"
  6658. deprecated="not deprecated">
  6659. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6660. <exception name="IOException" type="java.io.IOException"/>
  6661. </method>
  6662. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6663. abstract="false" native="false" synchronized="false"
  6664. static="false" final="false" visibility="public"
  6665. deprecated="not deprecated">
  6666. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6667. <param name="bufferSize" type="int"/>
  6668. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6669. <exception name="IOException" type="java.io.IOException"/>
  6670. <doc>
  6671. <![CDATA[This optional operation is not yet supported.]]>
  6672. </doc>
  6673. </method>
  6674. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6675. abstract="false" native="false" synchronized="false"
  6676. static="false" final="false" visibility="public"
  6677. deprecated="not deprecated">
  6678. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6679. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6680. <param name="overwrite" type="boolean"/>
  6681. <param name="bufferSize" type="int"/>
  6682. <param name="replication" type="short"/>
  6683. <param name="blockSize" type="long"/>
  6684. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6685. <exception name="IOException" type="java.io.IOException"/>
  6686. </method>
  6687. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6688. abstract="false" native="false" synchronized="false"
  6689. static="false" final="false" visibility="public"
  6690. deprecated="not deprecated">
  6691. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6692. <param name="bufferSize" type="int"/>
  6693. <exception name="IOException" type="java.io.IOException"/>
  6694. </method>
  6695. <method name="rename" return="boolean"
  6696. abstract="false" native="false" synchronized="false"
  6697. static="false" final="false" visibility="public"
  6698. deprecated="not deprecated">
  6699. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6700. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6701. <exception name="IOException" type="java.io.IOException"/>
  6702. </method>
  6703. <method name="delete" return="boolean"
  6704. abstract="false" native="false" synchronized="false"
  6705. static="false" final="false" visibility="public"
  6706. deprecated="not deprecated">
  6707. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6708. <param name="recursive" type="boolean"/>
  6709. <exception name="IOException" type="java.io.IOException"/>
  6710. </method>
  6711. <method name="delete" return="boolean"
  6712. abstract="false" native="false" synchronized="false"
  6713. static="false" final="false" visibility="public"
  6714. deprecated="not deprecated">
  6715. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6716. <exception name="IOException" type="java.io.IOException"/>
  6717. </method>
  6718. <method name="getLength" return="long"
  6719. abstract="false" native="false" synchronized="false"
  6720. static="false" final="false" visibility="public"
  6721. deprecated="not deprecated">
  6722. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6723. <exception name="IOException" type="java.io.IOException"/>
  6724. </method>
  6725. <method name="getReplication" return="short"
  6726. abstract="false" native="false" synchronized="false"
  6727. static="false" final="false" visibility="public"
  6728. deprecated="not deprecated">
  6729. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6730. <exception name="IOException" type="java.io.IOException"/>
  6731. </method>
  6732. <method name="getDefaultReplication" return="short"
  6733. abstract="false" native="false" synchronized="false"
  6734. static="false" final="false" visibility="public"
  6735. deprecated="not deprecated">
  6736. </method>
  6737. <method name="setReplication" return="boolean"
  6738. abstract="false" native="false" synchronized="false"
  6739. static="false" final="false" visibility="public"
  6740. deprecated="not deprecated">
  6741. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6742. <param name="replication" type="short"/>
  6743. <exception name="IOException" type="java.io.IOException"/>
  6744. </method>
  6745. <method name="getDefaultBlockSize" return="long"
  6746. abstract="false" native="false" synchronized="false"
  6747. static="false" final="false" visibility="public"
  6748. deprecated="not deprecated">
  6749. </method>
  6750. <method name="lock"
  6751. abstract="false" native="false" synchronized="false"
  6752. static="false" final="false" visibility="public"
  6753. deprecated="not deprecated">
  6754. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6755. <param name="shared" type="boolean"/>
  6756. <exception name="IOException" type="java.io.IOException"/>
  6757. </method>
  6758. <method name="release"
  6759. abstract="false" native="false" synchronized="false"
  6760. static="false" final="false" visibility="public"
  6761. deprecated="not deprecated">
  6762. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6763. <exception name="IOException" type="java.io.IOException"/>
  6764. </method>
  6765. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  6766. abstract="false" native="false" synchronized="false"
  6767. static="false" final="false" visibility="public"
  6768. deprecated="not deprecated">
  6769. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  6770. <param name="start" type="long"/>
  6771. <param name="len" type="long"/>
  6772. <exception name="IOException" type="java.io.IOException"/>
  6773. <doc>
  6774. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  6775. locations of the various chunks of the file file from KFS.]]>
  6776. </doc>
  6777. </method>
  6778. <method name="copyFromLocalFile"
  6779. abstract="false" native="false" synchronized="false"
  6780. static="false" final="false" visibility="public"
  6781. deprecated="not deprecated">
  6782. <param name="delSrc" type="boolean"/>
  6783. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6784. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6785. <exception name="IOException" type="java.io.IOException"/>
  6786. </method>
  6787. <method name="copyToLocalFile"
  6788. abstract="false" native="false" synchronized="false"
  6789. static="false" final="false" visibility="public"
  6790. deprecated="not deprecated">
  6791. <param name="delSrc" type="boolean"/>
  6792. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6793. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6794. <exception name="IOException" type="java.io.IOException"/>
  6795. </method>
  6796. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6797. abstract="false" native="false" synchronized="false"
  6798. static="false" final="false" visibility="public"
  6799. deprecated="not deprecated">
  6800. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6801. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6802. <exception name="IOException" type="java.io.IOException"/>
  6803. </method>
  6804. <method name="completeLocalOutput"
  6805. abstract="false" native="false" synchronized="false"
  6806. static="false" final="false" visibility="public"
  6807. deprecated="not deprecated">
  6808. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6809. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6810. <exception name="IOException" type="java.io.IOException"/>
  6811. </method>
  6812. <doc>
  6813. <![CDATA[A FileSystem backed by KFS.]]>
  6814. </doc>
  6815. </class>
  6816. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  6817. <doc>
  6818. <![CDATA[<h1>A client for the Kosmos filesystem (KFS)</h1>
  6819. <h3>Introduction</h3>
  6820. This pages describes how to use Kosmos Filesystem
  6821. (<a href="http://kosmosfs.sourceforge.net"> KFS </a>) as a backing
  6822. store with Hadoop. This page assumes that you have downloaded the
  6823. KFS software and installed necessary binaries as outlined in the KFS
  6824. documentation.
  6825. <h3>Steps</h3>
  6826. <ul>
  6827. <li>In the Hadoop conf directory edit core-site.xml,
  6828. add the following:
  6829. <pre>
  6830. &lt;property&gt;
  6831. &lt;name&gt;fs.kfs.impl&lt;/name&gt;
  6832. &lt;value&gt;org.apache.hadoop.fs.kfs.KosmosFileSystem&lt;/value&gt;
  6833. &lt;description&gt;The FileSystem for kfs: uris.&lt;/description&gt;
  6834. &lt;/property&gt;
  6835. </pre>
  6836. <li>In the Hadoop conf directory edit core-site.xml,
  6837. adding the following (with appropriate values for
  6838. &lt;server&gt; and &lt;port&gt;):
  6839. <pre>
  6840. &lt;property&gt;
  6841. &lt;name&gt;fs.default.name&lt;/name&gt;
  6842. &lt;value&gt;kfs://&lt;server:port&gt;&lt;/value&gt;
  6843. &lt;/property&gt;
  6844. &lt;property&gt;
  6845. &lt;name&gt;fs.kfs.metaServerHost&lt;/name&gt;
  6846. &lt;value&gt;&lt;server&gt;&lt;/value&gt;
  6847. &lt;description&gt;The location of the KFS meta server.&lt;/description&gt;
  6848. &lt;/property&gt;
  6849. &lt;property&gt;
  6850. &lt;name&gt;fs.kfs.metaServerPort&lt;/name&gt;
  6851. &lt;value&gt;&lt;port&gt;&lt;/value&gt;
  6852. &lt;description&gt;The location of the meta server's port.&lt;/description&gt;
  6853. &lt;/property&gt;
  6854. </pre>
  6855. </li>
  6856. <li>Copy KFS's <i> kfs-0.1.jar </i> to Hadoop's lib directory. This step
  6857. enables Hadoop's to load the KFS specific modules. Note
  6858. that, kfs-0.1.jar was built when you compiled KFS source
  6859. code. This jar file contains code that calls KFS's client
  6860. library code via JNI; the native code is in KFS's <i>
  6861. libkfsClient.so </i> library.
  6862. </li>
  6863. <li> When the Hadoop map/reduce trackers start up, those
  6864. processes (on local as well as remote nodes) will now need to load
  6865. KFS's <i> libkfsClient.so </i> library. To simplify this process, it is advisable to
  6866. store libkfsClient.so in an NFS accessible directory (similar to where
  6867. Hadoop binaries/scripts are stored); then, modify Hadoop's
  6868. conf/hadoop-env.sh adding the following line and providing suitable
  6869. value for &lt;path&gt;:
  6870. <pre>
  6871. export LD_LIBRARY_PATH=&lt;path&gt;
  6872. </pre>
  6873. <li>Start only the map/reduce trackers
  6874. <br />
  6875. example: execute Hadoop's bin/start-mapred.sh</li>
  6876. </ul>
  6877. <br/>
  6878. If the map/reduce job trackers start up, all file-I/O is done to KFS.]]>
  6879. </doc>
  6880. </package>
  6881. <package name="org.apache.hadoop.fs.permission">
  6882. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  6883. <class name="AccessControlException" extends="java.io.IOException"
  6884. abstract="false"
  6885. static="false" final="false" visibility="public"
  6886. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  6887. instead.">
  6888. <constructor name="AccessControlException"
  6889. static="false" final="false" visibility="public"
  6890. deprecated="not deprecated">
  6891. <doc>
  6892. <![CDATA[Default constructor is needed for unwrapping from
  6893. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  6894. </doc>
  6895. </constructor>
  6896. <constructor name="AccessControlException" type="java.lang.String"
  6897. static="false" final="false" visibility="public"
  6898. deprecated="not deprecated">
  6899. <doc>
  6900. <![CDATA[Constructs an {@link AccessControlException}
  6901. with the specified detail message.
  6902. @param s the detail message.]]>
  6903. </doc>
  6904. </constructor>
  6905. <constructor name="AccessControlException" type="java.lang.Throwable"
  6906. static="false" final="false" visibility="public"
  6907. deprecated="not deprecated">
  6908. <doc>
  6909. <![CDATA[Constructs a new exception with the specified cause and a detail
  6910. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  6911. typically contains the class and detail message of <tt>cause</tt>).
  6912. @param cause the cause (which is saved for later retrieval by the
  6913. {@link #getCause()} method). (A <tt>null</tt> value is
  6914. permitted, and indicates that the cause is nonexistent or
  6915. unknown.)]]>
  6916. </doc>
  6917. </constructor>
  6918. <doc>
  6919. <![CDATA[An exception class for access control related issues.
  6920. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  6921. instead.]]>
  6922. </doc>
  6923. </class>
  6924. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  6925. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  6926. <class name="FsAction" extends="java.lang.Enum"
  6927. abstract="false"
  6928. static="false" final="true" visibility="public"
  6929. deprecated="not deprecated">
  6930. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  6931. abstract="false" native="false" synchronized="false"
  6932. static="true" final="false" visibility="public"
  6933. deprecated="not deprecated">
  6934. </method>
  6935. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  6936. abstract="false" native="false" synchronized="false"
  6937. static="true" final="false" visibility="public"
  6938. deprecated="not deprecated">
  6939. <param name="name" type="java.lang.String"/>
  6940. </method>
  6941. <method name="implies" return="boolean"
  6942. abstract="false" native="false" synchronized="false"
  6943. static="false" final="false" visibility="public"
  6944. deprecated="not deprecated">
  6945. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6946. <doc>
  6947. <![CDATA[Return true if this action implies that action.
  6948. @param that]]>
  6949. </doc>
  6950. </method>
  6951. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  6952. abstract="false" native="false" synchronized="false"
  6953. static="false" final="false" visibility="public"
  6954. deprecated="not deprecated">
  6955. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6956. <doc>
  6957. <![CDATA[AND operation.]]>
  6958. </doc>
  6959. </method>
  6960. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  6961. abstract="false" native="false" synchronized="false"
  6962. static="false" final="false" visibility="public"
  6963. deprecated="not deprecated">
  6964. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6965. <doc>
  6966. <![CDATA[OR operation.]]>
  6967. </doc>
  6968. </method>
  6969. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  6970. abstract="false" native="false" synchronized="false"
  6971. static="false" final="false" visibility="public"
  6972. deprecated="not deprecated">
  6973. <doc>
  6974. <![CDATA[NOT operation.]]>
  6975. </doc>
  6976. </method>
  6977. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  6978. transient="false" volatile="false"
  6979. static="true" final="true" visibility="public"
  6980. deprecated="not deprecated">
  6981. </field>
  6982. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  6983. transient="false" volatile="false"
  6984. static="true" final="true" visibility="public"
  6985. deprecated="not deprecated">
  6986. </field>
  6987. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  6988. transient="false" volatile="false"
  6989. static="true" final="true" visibility="public"
  6990. deprecated="not deprecated">
  6991. </field>
  6992. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  6993. transient="false" volatile="false"
  6994. static="true" final="true" visibility="public"
  6995. deprecated="not deprecated">
  6996. </field>
  6997. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  6998. transient="false" volatile="false"
  6999. static="true" final="true" visibility="public"
  7000. deprecated="not deprecated">
  7001. </field>
  7002. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7003. transient="false" volatile="false"
  7004. static="true" final="true" visibility="public"
  7005. deprecated="not deprecated">
  7006. </field>
  7007. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7008. transient="false" volatile="false"
  7009. static="true" final="true" visibility="public"
  7010. deprecated="not deprecated">
  7011. </field>
  7012. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  7013. transient="false" volatile="false"
  7014. static="true" final="true" visibility="public"
  7015. deprecated="not deprecated">
  7016. </field>
  7017. <field name="SYMBOL" type="java.lang.String"
  7018. transient="false" volatile="false"
  7019. static="false" final="true" visibility="public"
  7020. deprecated="not deprecated">
  7021. <doc>
  7022. <![CDATA[Symbolic representation]]>
  7023. </doc>
  7024. </field>
  7025. <doc>
  7026. <![CDATA[File system actions, e.g. read, write, etc.]]>
  7027. </doc>
  7028. </class>
  7029. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  7030. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  7031. <class name="FsPermission" extends="java.lang.Object"
  7032. abstract="false"
  7033. static="false" final="false" visibility="public"
  7034. deprecated="not deprecated">
  7035. <implements name="org.apache.hadoop.io.Writable"/>
  7036. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  7037. static="false" final="false" visibility="public"
  7038. deprecated="not deprecated">
  7039. <doc>
  7040. <![CDATA[Construct by the given {@link FsAction}.
  7041. @param u user action
  7042. @param g group action
  7043. @param o other action]]>
  7044. </doc>
  7045. </constructor>
  7046. <constructor name="FsPermission" type="short"
  7047. static="false" final="false" visibility="public"
  7048. deprecated="not deprecated">
  7049. <doc>
  7050. <![CDATA[Construct by the given mode.
  7051. @param mode
  7052. @see #toShort()]]>
  7053. </doc>
  7054. </constructor>
  7055. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  7056. static="false" final="false" visibility="public"
  7057. deprecated="not deprecated">
  7058. <doc>
  7059. <![CDATA[Copy constructor
  7060. @param other other permission]]>
  7061. </doc>
  7062. </constructor>
  7063. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  7064. abstract="false" native="false" synchronized="false"
  7065. static="true" final="false" visibility="public"
  7066. deprecated="not deprecated">
  7067. <param name="permission" type="short"/>
  7068. <doc>
  7069. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7070. </doc>
  7071. </method>
  7072. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7073. abstract="false" native="false" synchronized="false"
  7074. static="false" final="false" visibility="public"
  7075. deprecated="not deprecated">
  7076. <doc>
  7077. <![CDATA[Return user {@link FsAction}.]]>
  7078. </doc>
  7079. </method>
  7080. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7081. abstract="false" native="false" synchronized="false"
  7082. static="false" final="false" visibility="public"
  7083. deprecated="not deprecated">
  7084. <doc>
  7085. <![CDATA[Return group {@link FsAction}.]]>
  7086. </doc>
  7087. </method>
  7088. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7089. abstract="false" native="false" synchronized="false"
  7090. static="false" final="false" visibility="public"
  7091. deprecated="not deprecated">
  7092. <doc>
  7093. <![CDATA[Return other {@link FsAction}.]]>
  7094. </doc>
  7095. </method>
  7096. <method name="fromShort"
  7097. abstract="false" native="false" synchronized="false"
  7098. static="false" final="false" visibility="public"
  7099. deprecated="not deprecated">
  7100. <param name="n" type="short"/>
  7101. </method>
  7102. <method name="write"
  7103. abstract="false" native="false" synchronized="false"
  7104. static="false" final="false" visibility="public"
  7105. deprecated="not deprecated">
  7106. <param name="out" type="java.io.DataOutput"/>
  7107. <exception name="IOException" type="java.io.IOException"/>
  7108. <doc>
  7109. <![CDATA[{@inheritDoc}]]>
  7110. </doc>
  7111. </method>
  7112. <method name="readFields"
  7113. abstract="false" native="false" synchronized="false"
  7114. static="false" final="false" visibility="public"
  7115. deprecated="not deprecated">
  7116. <param name="in" type="java.io.DataInput"/>
  7117. <exception name="IOException" type="java.io.IOException"/>
  7118. <doc>
  7119. <![CDATA[{@inheritDoc}]]>
  7120. </doc>
  7121. </method>
  7122. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7123. abstract="false" native="false" synchronized="false"
  7124. static="true" final="false" visibility="public"
  7125. deprecated="not deprecated">
  7126. <param name="in" type="java.io.DataInput"/>
  7127. <exception name="IOException" type="java.io.IOException"/>
  7128. <doc>
  7129. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7130. </doc>
  7131. </method>
  7132. <method name="toShort" return="short"
  7133. abstract="false" native="false" synchronized="false"
  7134. static="false" final="false" visibility="public"
  7135. deprecated="not deprecated">
  7136. <doc>
  7137. <![CDATA[Encode the object to a short.]]>
  7138. </doc>
  7139. </method>
  7140. <method name="equals" return="boolean"
  7141. abstract="false" native="false" synchronized="false"
  7142. static="false" final="false" visibility="public"
  7143. deprecated="not deprecated">
  7144. <param name="obj" type="java.lang.Object"/>
  7145. <doc>
  7146. <![CDATA[{@inheritDoc}]]>
  7147. </doc>
  7148. </method>
  7149. <method name="hashCode" return="int"
  7150. abstract="false" native="false" synchronized="false"
  7151. static="false" final="false" visibility="public"
  7152. deprecated="not deprecated">
  7153. <doc>
  7154. <![CDATA[{@inheritDoc}]]>
  7155. </doc>
  7156. </method>
  7157. <method name="toString" return="java.lang.String"
  7158. abstract="false" native="false" synchronized="false"
  7159. static="false" final="false" visibility="public"
  7160. deprecated="not deprecated">
  7161. <doc>
  7162. <![CDATA[{@inheritDoc}]]>
  7163. </doc>
  7164. </method>
  7165. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7166. abstract="false" native="false" synchronized="false"
  7167. static="false" final="false" visibility="public"
  7168. deprecated="not deprecated">
  7169. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7170. <doc>
  7171. <![CDATA[Apply a umask to this permission and return a new one]]>
  7172. </doc>
  7173. </method>
  7174. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7175. abstract="false" native="false" synchronized="false"
  7176. static="true" final="false" visibility="public"
  7177. deprecated="not deprecated">
  7178. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7179. <doc>
  7180. <![CDATA[Get the user file creation mask (umask)]]>
  7181. </doc>
  7182. </method>
  7183. <method name="setUMask"
  7184. abstract="false" native="false" synchronized="false"
  7185. static="true" final="false" visibility="public"
  7186. deprecated="not deprecated">
  7187. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7188. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7189. <doc>
  7190. <![CDATA[Set the user file creation mask (umask)]]>
  7191. </doc>
  7192. </method>
  7193. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7194. abstract="false" native="false" synchronized="false"
  7195. static="true" final="false" visibility="public"
  7196. deprecated="not deprecated">
  7197. <doc>
  7198. <![CDATA[Get the default permission.]]>
  7199. </doc>
  7200. </method>
  7201. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7202. abstract="false" native="false" synchronized="false"
  7203. static="true" final="false" visibility="public"
  7204. deprecated="not deprecated">
  7205. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7206. <doc>
  7207. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7208. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7209. </doc>
  7210. </method>
  7211. <field name="UMASK_LABEL" type="java.lang.String"
  7212. transient="false" volatile="false"
  7213. static="true" final="true" visibility="public"
  7214. deprecated="not deprecated">
  7215. <doc>
  7216. <![CDATA[umask property label]]>
  7217. </doc>
  7218. </field>
  7219. <field name="DEFAULT_UMASK" type="int"
  7220. transient="false" volatile="false"
  7221. static="true" final="true" visibility="public"
  7222. deprecated="not deprecated">
  7223. </field>
  7224. <doc>
  7225. <![CDATA[A class for file/directory permissions.]]>
  7226. </doc>
  7227. </class>
  7228. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7229. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7230. <class name="PermissionStatus" extends="java.lang.Object"
  7231. abstract="false"
  7232. static="false" final="false" visibility="public"
  7233. deprecated="not deprecated">
  7234. <implements name="org.apache.hadoop.io.Writable"/>
  7235. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7236. static="false" final="false" visibility="public"
  7237. deprecated="not deprecated">
  7238. <doc>
  7239. <![CDATA[Constructor]]>
  7240. </doc>
  7241. </constructor>
  7242. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7243. abstract="false" native="false" synchronized="false"
  7244. static="true" final="false" visibility="public"
  7245. deprecated="not deprecated">
  7246. <param name="user" type="java.lang.String"/>
  7247. <param name="group" type="java.lang.String"/>
  7248. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7249. <doc>
  7250. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7251. </doc>
  7252. </method>
  7253. <method name="getUserName" return="java.lang.String"
  7254. abstract="false" native="false" synchronized="false"
  7255. static="false" final="false" visibility="public"
  7256. deprecated="not deprecated">
  7257. <doc>
  7258. <![CDATA[Return user name]]>
  7259. </doc>
  7260. </method>
  7261. <method name="getGroupName" return="java.lang.String"
  7262. abstract="false" native="false" synchronized="false"
  7263. static="false" final="false" visibility="public"
  7264. deprecated="not deprecated">
  7265. <doc>
  7266. <![CDATA[Return group name]]>
  7267. </doc>
  7268. </method>
  7269. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7270. abstract="false" native="false" synchronized="false"
  7271. static="false" final="false" visibility="public"
  7272. deprecated="not deprecated">
  7273. <doc>
  7274. <![CDATA[Return permission]]>
  7275. </doc>
  7276. </method>
  7277. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7278. abstract="false" native="false" synchronized="false"
  7279. static="false" final="false" visibility="public"
  7280. deprecated="not deprecated">
  7281. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7282. <doc>
  7283. <![CDATA[Apply umask.
  7284. @see FsPermission#applyUMask(FsPermission)]]>
  7285. </doc>
  7286. </method>
  7287. <method name="readFields"
  7288. abstract="false" native="false" synchronized="false"
  7289. static="false" final="false" visibility="public"
  7290. deprecated="not deprecated">
  7291. <param name="in" type="java.io.DataInput"/>
  7292. <exception name="IOException" type="java.io.IOException"/>
  7293. <doc>
  7294. <![CDATA[{@inheritDoc}]]>
  7295. </doc>
  7296. </method>
  7297. <method name="write"
  7298. abstract="false" native="false" synchronized="false"
  7299. static="false" final="false" visibility="public"
  7300. deprecated="not deprecated">
  7301. <param name="out" type="java.io.DataOutput"/>
  7302. <exception name="IOException" type="java.io.IOException"/>
  7303. <doc>
  7304. <![CDATA[{@inheritDoc}]]>
  7305. </doc>
  7306. </method>
  7307. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7308. abstract="false" native="false" synchronized="false"
  7309. static="true" final="false" visibility="public"
  7310. deprecated="not deprecated">
  7311. <param name="in" type="java.io.DataInput"/>
  7312. <exception name="IOException" type="java.io.IOException"/>
  7313. <doc>
  7314. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7315. </doc>
  7316. </method>
  7317. <method name="write"
  7318. abstract="false" native="false" synchronized="false"
  7319. static="true" final="false" visibility="public"
  7320. deprecated="not deprecated">
  7321. <param name="out" type="java.io.DataOutput"/>
  7322. <param name="username" type="java.lang.String"/>
  7323. <param name="groupname" type="java.lang.String"/>
  7324. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7325. <exception name="IOException" type="java.io.IOException"/>
  7326. <doc>
  7327. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7328. </doc>
  7329. </method>
  7330. <method name="toString" return="java.lang.String"
  7331. abstract="false" native="false" synchronized="false"
  7332. static="false" final="false" visibility="public"
  7333. deprecated="not deprecated">
  7334. <doc>
  7335. <![CDATA[{@inheritDoc}]]>
  7336. </doc>
  7337. </method>
  7338. <doc>
  7339. <![CDATA[Store permission related information.]]>
  7340. </doc>
  7341. </class>
  7342. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7343. </package>
  7344. <package name="org.apache.hadoop.fs.s3">
  7345. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7346. <class name="Block" extends="java.lang.Object"
  7347. abstract="false"
  7348. static="false" final="false" visibility="public"
  7349. deprecated="not deprecated">
  7350. <constructor name="Block" type="long, long"
  7351. static="false" final="false" visibility="public"
  7352. deprecated="not deprecated">
  7353. </constructor>
  7354. <method name="getId" return="long"
  7355. abstract="false" native="false" synchronized="false"
  7356. static="false" final="false" visibility="public"
  7357. deprecated="not deprecated">
  7358. </method>
  7359. <method name="getLength" return="long"
  7360. abstract="false" native="false" synchronized="false"
  7361. static="false" final="false" visibility="public"
  7362. deprecated="not deprecated">
  7363. </method>
  7364. <method name="toString" return="java.lang.String"
  7365. abstract="false" native="false" synchronized="false"
  7366. static="false" final="false" visibility="public"
  7367. deprecated="not deprecated">
  7368. </method>
  7369. <doc>
  7370. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  7371. </doc>
  7372. </class>
  7373. <!-- end class org.apache.hadoop.fs.s3.Block -->
  7374. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7375. <interface name="FileSystemStore" abstract="true"
  7376. static="false" final="false" visibility="public"
  7377. deprecated="not deprecated">
  7378. <method name="initialize"
  7379. abstract="false" native="false" synchronized="false"
  7380. static="false" final="false" visibility="public"
  7381. deprecated="not deprecated">
  7382. <param name="uri" type="java.net.URI"/>
  7383. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7384. <exception name="IOException" type="java.io.IOException"/>
  7385. </method>
  7386. <method name="getVersion" return="java.lang.String"
  7387. abstract="false" native="false" synchronized="false"
  7388. static="false" final="false" visibility="public"
  7389. deprecated="not deprecated">
  7390. <exception name="IOException" type="java.io.IOException"/>
  7391. </method>
  7392. <method name="storeINode"
  7393. abstract="false" native="false" synchronized="false"
  7394. static="false" final="false" visibility="public"
  7395. deprecated="not deprecated">
  7396. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7397. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  7398. <exception name="IOException" type="java.io.IOException"/>
  7399. </method>
  7400. <method name="storeBlock"
  7401. abstract="false" native="false" synchronized="false"
  7402. static="false" final="false" visibility="public"
  7403. deprecated="not deprecated">
  7404. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7405. <param name="file" type="java.io.File"/>
  7406. <exception name="IOException" type="java.io.IOException"/>
  7407. </method>
  7408. <method name="inodeExists" return="boolean"
  7409. abstract="false" native="false" synchronized="false"
  7410. static="false" final="false" visibility="public"
  7411. deprecated="not deprecated">
  7412. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7413. <exception name="IOException" type="java.io.IOException"/>
  7414. </method>
  7415. <method name="blockExists" return="boolean"
  7416. abstract="false" native="false" synchronized="false"
  7417. static="false" final="false" visibility="public"
  7418. deprecated="not deprecated">
  7419. <param name="blockId" type="long"/>
  7420. <exception name="IOException" type="java.io.IOException"/>
  7421. </method>
  7422. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  7423. abstract="false" native="false" synchronized="false"
  7424. static="false" final="false" visibility="public"
  7425. deprecated="not deprecated">
  7426. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7427. <exception name="IOException" type="java.io.IOException"/>
  7428. </method>
  7429. <method name="retrieveBlock" return="java.io.File"
  7430. abstract="false" native="false" synchronized="false"
  7431. static="false" final="false" visibility="public"
  7432. deprecated="not deprecated">
  7433. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7434. <param name="byteRangeStart" type="long"/>
  7435. <exception name="IOException" type="java.io.IOException"/>
  7436. </method>
  7437. <method name="deleteINode"
  7438. abstract="false" native="false" synchronized="false"
  7439. static="false" final="false" visibility="public"
  7440. deprecated="not deprecated">
  7441. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7442. <exception name="IOException" type="java.io.IOException"/>
  7443. </method>
  7444. <method name="deleteBlock"
  7445. abstract="false" native="false" synchronized="false"
  7446. static="false" final="false" visibility="public"
  7447. deprecated="not deprecated">
  7448. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7449. <exception name="IOException" type="java.io.IOException"/>
  7450. </method>
  7451. <method name="listSubPaths" return="java.util.Set"
  7452. abstract="false" native="false" synchronized="false"
  7453. static="false" final="false" visibility="public"
  7454. deprecated="not deprecated">
  7455. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7456. <exception name="IOException" type="java.io.IOException"/>
  7457. </method>
  7458. <method name="listDeepSubPaths" return="java.util.Set"
  7459. abstract="false" native="false" synchronized="false"
  7460. static="false" final="false" visibility="public"
  7461. deprecated="not deprecated">
  7462. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7463. <exception name="IOException" type="java.io.IOException"/>
  7464. </method>
  7465. <method name="purge"
  7466. abstract="false" native="false" synchronized="false"
  7467. static="false" final="false" visibility="public"
  7468. deprecated="not deprecated">
  7469. <exception name="IOException" type="java.io.IOException"/>
  7470. <doc>
  7471. <![CDATA[Delete everything. Used for testing.
  7472. @throws IOException]]>
  7473. </doc>
  7474. </method>
  7475. <method name="dump"
  7476. abstract="false" native="false" synchronized="false"
  7477. static="false" final="false" visibility="public"
  7478. deprecated="not deprecated">
  7479. <exception name="IOException" type="java.io.IOException"/>
  7480. <doc>
  7481. <![CDATA[Diagnostic method to dump all INodes to the console.
  7482. @throws IOException]]>
  7483. </doc>
  7484. </method>
  7485. <doc>
  7486. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  7487. </doc>
  7488. </interface>
  7489. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7490. <!-- start class org.apache.hadoop.fs.s3.INode -->
  7491. <class name="INode" extends="java.lang.Object"
  7492. abstract="false"
  7493. static="false" final="false" visibility="public"
  7494. deprecated="not deprecated">
  7495. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  7496. static="false" final="false" visibility="public"
  7497. deprecated="not deprecated">
  7498. </constructor>
  7499. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  7500. abstract="false" native="false" synchronized="false"
  7501. static="false" final="false" visibility="public"
  7502. deprecated="not deprecated">
  7503. </method>
  7504. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  7505. abstract="false" native="false" synchronized="false"
  7506. static="false" final="false" visibility="public"
  7507. deprecated="not deprecated">
  7508. </method>
  7509. <method name="isDirectory" return="boolean"
  7510. abstract="false" native="false" synchronized="false"
  7511. static="false" final="false" visibility="public"
  7512. deprecated="not deprecated">
  7513. </method>
  7514. <method name="isFile" return="boolean"
  7515. abstract="false" native="false" synchronized="false"
  7516. static="false" final="false" visibility="public"
  7517. deprecated="not deprecated">
  7518. </method>
  7519. <method name="getSerializedLength" return="long"
  7520. abstract="false" native="false" synchronized="false"
  7521. static="false" final="false" visibility="public"
  7522. deprecated="not deprecated">
  7523. </method>
  7524. <method name="serialize" return="java.io.InputStream"
  7525. abstract="false" native="false" synchronized="false"
  7526. static="false" final="false" visibility="public"
  7527. deprecated="not deprecated">
  7528. <exception name="IOException" type="java.io.IOException"/>
  7529. </method>
  7530. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  7531. abstract="false" native="false" synchronized="false"
  7532. static="true" final="false" visibility="public"
  7533. deprecated="not deprecated">
  7534. <param name="in" type="java.io.InputStream"/>
  7535. <exception name="IOException" type="java.io.IOException"/>
  7536. </method>
  7537. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  7538. transient="false" volatile="false"
  7539. static="true" final="true" visibility="public"
  7540. deprecated="not deprecated">
  7541. </field>
  7542. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  7543. transient="false" volatile="false"
  7544. static="true" final="true" visibility="public"
  7545. deprecated="not deprecated">
  7546. </field>
  7547. <doc>
  7548. <![CDATA[Holds file metadata including type (regular file, or directory),
  7549. and the list of blocks that are pointers to the data.]]>
  7550. </doc>
  7551. </class>
  7552. <!-- end class org.apache.hadoop.fs.s3.INode -->
  7553. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  7554. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  7555. abstract="false"
  7556. static="false" final="false" visibility="public"
  7557. deprecated="not deprecated">
  7558. <implements name="org.apache.hadoop.util.Tool"/>
  7559. <constructor name="MigrationTool"
  7560. static="false" final="false" visibility="public"
  7561. deprecated="not deprecated">
  7562. </constructor>
  7563. <method name="main"
  7564. abstract="false" native="false" synchronized="false"
  7565. static="true" final="false" visibility="public"
  7566. deprecated="not deprecated">
  7567. <param name="args" type="java.lang.String[]"/>
  7568. <exception name="Exception" type="java.lang.Exception"/>
  7569. </method>
  7570. <method name="run" return="int"
  7571. abstract="false" native="false" synchronized="false"
  7572. static="false" final="false" visibility="public"
  7573. deprecated="not deprecated">
  7574. <param name="args" type="java.lang.String[]"/>
  7575. <exception name="Exception" type="java.lang.Exception"/>
  7576. </method>
  7577. <method name="initialize"
  7578. abstract="false" native="false" synchronized="false"
  7579. static="false" final="false" visibility="public"
  7580. deprecated="not deprecated">
  7581. <param name="uri" type="java.net.URI"/>
  7582. <exception name="IOException" type="java.io.IOException"/>
  7583. </method>
  7584. <doc>
  7585. <![CDATA[<p>
  7586. This class is a tool for migrating data from an older to a newer version
  7587. of an S3 filesystem.
  7588. </p>
  7589. <p>
  7590. All files in the filesystem are migrated by re-writing the block metadata
  7591. - no datafiles are touched.
  7592. </p>]]>
  7593. </doc>
  7594. </class>
  7595. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  7596. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  7597. <class name="S3Credentials" extends="java.lang.Object"
  7598. abstract="false"
  7599. static="false" final="false" visibility="public"
  7600. deprecated="not deprecated">
  7601. <constructor name="S3Credentials"
  7602. static="false" final="false" visibility="public"
  7603. deprecated="not deprecated">
  7604. </constructor>
  7605. <method name="initialize"
  7606. abstract="false" native="false" synchronized="false"
  7607. static="false" final="false" visibility="public"
  7608. deprecated="not deprecated">
  7609. <param name="uri" type="java.net.URI"/>
  7610. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7611. <doc>
  7612. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  7613. determined.]]>
  7614. </doc>
  7615. </method>
  7616. <method name="getAccessKey" return="java.lang.String"
  7617. abstract="false" native="false" synchronized="false"
  7618. static="false" final="false" visibility="public"
  7619. deprecated="not deprecated">
  7620. </method>
  7621. <method name="getSecretAccessKey" return="java.lang.String"
  7622. abstract="false" native="false" synchronized="false"
  7623. static="false" final="false" visibility="public"
  7624. deprecated="not deprecated">
  7625. </method>
  7626. <doc>
  7627. <![CDATA[<p>
  7628. Extracts AWS credentials from the filesystem URI or configuration.
  7629. </p>]]>
  7630. </doc>
  7631. </class>
  7632. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  7633. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  7634. <class name="S3Exception" extends="java.lang.RuntimeException"
  7635. abstract="false"
  7636. static="false" final="false" visibility="public"
  7637. deprecated="not deprecated">
  7638. <constructor name="S3Exception" type="java.lang.Throwable"
  7639. static="false" final="false" visibility="public"
  7640. deprecated="not deprecated">
  7641. </constructor>
  7642. <doc>
  7643. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  7644. </doc>
  7645. </class>
  7646. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  7647. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  7648. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7649. abstract="false"
  7650. static="false" final="false" visibility="public"
  7651. deprecated="not deprecated">
  7652. <constructor name="S3FileSystem"
  7653. static="false" final="false" visibility="public"
  7654. deprecated="not deprecated">
  7655. </constructor>
  7656. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  7657. static="false" final="false" visibility="public"
  7658. deprecated="not deprecated">
  7659. </constructor>
  7660. <method name="getUri" return="java.net.URI"
  7661. abstract="false" native="false" synchronized="false"
  7662. static="false" final="false" visibility="public"
  7663. deprecated="not deprecated">
  7664. </method>
  7665. <method name="initialize"
  7666. abstract="false" native="false" synchronized="false"
  7667. static="false" final="false" visibility="public"
  7668. deprecated="not deprecated">
  7669. <param name="uri" type="java.net.URI"/>
  7670. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7671. <exception name="IOException" type="java.io.IOException"/>
  7672. </method>
  7673. <method name="getName" return="java.lang.String"
  7674. abstract="false" native="false" synchronized="false"
  7675. static="false" final="false" visibility="public"
  7676. deprecated="not deprecated">
  7677. </method>
  7678. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7679. abstract="false" native="false" synchronized="false"
  7680. static="false" final="false" visibility="public"
  7681. deprecated="not deprecated">
  7682. </method>
  7683. <method name="setWorkingDirectory"
  7684. abstract="false" native="false" synchronized="false"
  7685. static="false" final="false" visibility="public"
  7686. deprecated="not deprecated">
  7687. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7688. </method>
  7689. <method name="mkdirs" return="boolean"
  7690. abstract="false" native="false" synchronized="false"
  7691. static="false" final="false" visibility="public"
  7692. deprecated="not deprecated">
  7693. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7694. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7695. <exception name="IOException" type="java.io.IOException"/>
  7696. <doc>
  7697. <![CDATA[@param permission Currently ignored.]]>
  7698. </doc>
  7699. </method>
  7700. <method name="isFile" return="boolean"
  7701. abstract="false" native="false" synchronized="false"
  7702. static="false" final="false" visibility="public"
  7703. deprecated="not deprecated">
  7704. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7705. <exception name="IOException" type="java.io.IOException"/>
  7706. </method>
  7707. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7708. abstract="false" native="false" synchronized="false"
  7709. static="false" final="false" visibility="public"
  7710. deprecated="not deprecated">
  7711. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7712. <exception name="IOException" type="java.io.IOException"/>
  7713. </method>
  7714. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7715. abstract="false" native="false" synchronized="false"
  7716. static="false" final="false" visibility="public"
  7717. deprecated="not deprecated">
  7718. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7719. <param name="bufferSize" type="int"/>
  7720. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7721. <exception name="IOException" type="java.io.IOException"/>
  7722. <doc>
  7723. <![CDATA[This optional operation is not yet supported.]]>
  7724. </doc>
  7725. </method>
  7726. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7727. abstract="false" native="false" synchronized="false"
  7728. static="false" final="false" visibility="public"
  7729. deprecated="not deprecated">
  7730. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7731. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7732. <param name="overwrite" type="boolean"/>
  7733. <param name="bufferSize" type="int"/>
  7734. <param name="replication" type="short"/>
  7735. <param name="blockSize" type="long"/>
  7736. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7737. <exception name="IOException" type="java.io.IOException"/>
  7738. <doc>
  7739. <![CDATA[@param permission Currently ignored.]]>
  7740. </doc>
  7741. </method>
  7742. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7743. abstract="false" native="false" synchronized="false"
  7744. static="false" final="false" visibility="public"
  7745. deprecated="not deprecated">
  7746. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7747. <param name="bufferSize" type="int"/>
  7748. <exception name="IOException" type="java.io.IOException"/>
  7749. </method>
  7750. <method name="rename" return="boolean"
  7751. abstract="false" native="false" synchronized="false"
  7752. static="false" final="false" visibility="public"
  7753. deprecated="not deprecated">
  7754. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7755. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7756. <exception name="IOException" type="java.io.IOException"/>
  7757. </method>
  7758. <method name="delete" return="boolean"
  7759. abstract="false" native="false" synchronized="false"
  7760. static="false" final="false" visibility="public"
  7761. deprecated="not deprecated">
  7762. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7763. <param name="recursive" type="boolean"/>
  7764. <exception name="IOException" type="java.io.IOException"/>
  7765. </method>
  7766. <method name="delete" return="boolean"
  7767. abstract="false" native="false" synchronized="false"
  7768. static="false" final="false" visibility="public"
  7769. deprecated="not deprecated">
  7770. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7771. <exception name="IOException" type="java.io.IOException"/>
  7772. </method>
  7773. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7774. abstract="false" native="false" synchronized="false"
  7775. static="false" final="false" visibility="public"
  7776. deprecated="not deprecated">
  7777. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7778. <exception name="IOException" type="java.io.IOException"/>
  7779. <doc>
  7780. <![CDATA[FileStatus for S3 file systems.]]>
  7781. </doc>
  7782. </method>
  7783. <doc>
  7784. <![CDATA[<p>
  7785. A block-based {@link FileSystem} backed by
  7786. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  7787. </p>
  7788. @see NativeS3FileSystem]]>
  7789. </doc>
  7790. </class>
  7791. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  7792. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  7793. <class name="S3FileSystemException" extends="java.io.IOException"
  7794. abstract="false"
  7795. static="false" final="false" visibility="public"
  7796. deprecated="not deprecated">
  7797. <constructor name="S3FileSystemException" type="java.lang.String"
  7798. static="false" final="false" visibility="public"
  7799. deprecated="not deprecated">
  7800. </constructor>
  7801. <doc>
  7802. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  7803. </doc>
  7804. </class>
  7805. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  7806. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  7807. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  7808. abstract="false"
  7809. static="false" final="false" visibility="public"
  7810. deprecated="not deprecated">
  7811. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  7812. static="false" final="false" visibility="public"
  7813. deprecated="not deprecated">
  7814. </constructor>
  7815. <doc>
  7816. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  7817. in {@link S3FileSystem}.]]>
  7818. </doc>
  7819. </class>
  7820. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  7821. <doc>
  7822. <![CDATA[<p>A distributed, block-based implementation of {@link
  7823. org.apache.hadoop.fs.FileSystem} that uses <a href="http://aws.amazon.com/s3">Amazon S3</a>
  7824. as a backing store.</p>
  7825. <p>
  7826. Files are stored in S3 as blocks (represented by
  7827. {@link org.apache.hadoop.fs.s3.Block}), which have an ID and a length.
  7828. Block metadata is stored in S3 as a small record (represented by
  7829. {@link org.apache.hadoop.fs.s3.INode}) using the URL-encoded
  7830. path string as a key. Inodes record the file type (regular file or directory) and the list of blocks.
  7831. This design makes it easy to seek to any given position in a file by reading the inode data to compute
  7832. which block to access, then using S3's support for
  7833. <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2">HTTP Range</a> headers
  7834. to start streaming from the correct position.
  7835. Renames are also efficient since only the inode is moved (by a DELETE followed by a PUT since
  7836. S3 does not support renames).
  7837. </p>
  7838. <p>
  7839. For a single file <i>/dir1/file1</i> which takes two blocks of storage, the file structure in S3
  7840. would be something like this:
  7841. </p>
  7842. <pre>
  7843. /
  7844. /dir1
  7845. /dir1/file1
  7846. block-6415776850131549260
  7847. block-3026438247347758425
  7848. </pre>
  7849. <p>
  7850. Inodes start with a leading <code>/</code>, while blocks are prefixed with <code>block-</code>.
  7851. </p>]]>
  7852. </doc>
  7853. </package>
  7854. <package name="org.apache.hadoop.fs.s3native">
  7855. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  7856. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7857. abstract="false"
  7858. static="false" final="false" visibility="public"
  7859. deprecated="not deprecated">
  7860. <constructor name="NativeS3FileSystem"
  7861. static="false" final="false" visibility="public"
  7862. deprecated="not deprecated">
  7863. </constructor>
  7864. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  7865. static="false" final="false" visibility="public"
  7866. deprecated="not deprecated">
  7867. </constructor>
  7868. <method name="initialize"
  7869. abstract="false" native="false" synchronized="false"
  7870. static="false" final="false" visibility="public"
  7871. deprecated="not deprecated">
  7872. <param name="uri" type="java.net.URI"/>
  7873. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7874. <exception name="IOException" type="java.io.IOException"/>
  7875. </method>
  7876. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7877. abstract="false" native="false" synchronized="false"
  7878. static="false" final="false" visibility="public"
  7879. deprecated="not deprecated">
  7880. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7881. <param name="bufferSize" type="int"/>
  7882. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7883. <exception name="IOException" type="java.io.IOException"/>
  7884. <doc>
  7885. <![CDATA[This optional operation is not yet supported.]]>
  7886. </doc>
  7887. </method>
  7888. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7889. abstract="false" native="false" synchronized="false"
  7890. static="false" final="false" visibility="public"
  7891. deprecated="not deprecated">
  7892. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7893. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7894. <param name="overwrite" type="boolean"/>
  7895. <param name="bufferSize" type="int"/>
  7896. <param name="replication" type="short"/>
  7897. <param name="blockSize" type="long"/>
  7898. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7899. <exception name="IOException" type="java.io.IOException"/>
  7900. </method>
  7901. <method name="delete" return="boolean"
  7902. abstract="false" native="false" synchronized="false"
  7903. static="false" final="false" visibility="public"
  7904. deprecated="not deprecated">
  7905. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7906. <exception name="IOException" type="java.io.IOException"/>
  7907. </method>
  7908. <method name="delete" return="boolean"
  7909. abstract="false" native="false" synchronized="false"
  7910. static="false" final="false" visibility="public"
  7911. deprecated="not deprecated">
  7912. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7913. <param name="recursive" type="boolean"/>
  7914. <exception name="IOException" type="java.io.IOException"/>
  7915. </method>
  7916. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7917. abstract="false" native="false" synchronized="false"
  7918. static="false" final="false" visibility="public"
  7919. deprecated="not deprecated">
  7920. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7921. <exception name="IOException" type="java.io.IOException"/>
  7922. </method>
  7923. <method name="getUri" return="java.net.URI"
  7924. abstract="false" native="false" synchronized="false"
  7925. static="false" final="false" visibility="public"
  7926. deprecated="not deprecated">
  7927. </method>
  7928. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7929. abstract="false" native="false" synchronized="false"
  7930. static="false" final="false" visibility="public"
  7931. deprecated="not deprecated">
  7932. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7933. <exception name="IOException" type="java.io.IOException"/>
  7934. <doc>
  7935. <![CDATA[<p>
  7936. If <code>f</code> is a file, this method will make a single call to S3.
  7937. If <code>f</code> is a directory, this method will make a maximum of
  7938. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  7939. files and directories contained directly in <code>f</code>.
  7940. </p>]]>
  7941. </doc>
  7942. </method>
  7943. <method name="mkdirs" return="boolean"
  7944. abstract="false" native="false" synchronized="false"
  7945. static="false" final="false" visibility="public"
  7946. deprecated="not deprecated">
  7947. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7948. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7949. <exception name="IOException" type="java.io.IOException"/>
  7950. </method>
  7951. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7952. abstract="false" native="false" synchronized="false"
  7953. static="false" final="false" visibility="public"
  7954. deprecated="not deprecated">
  7955. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7956. <param name="bufferSize" type="int"/>
  7957. <exception name="IOException" type="java.io.IOException"/>
  7958. </method>
  7959. <method name="rename" return="boolean"
  7960. abstract="false" native="false" synchronized="false"
  7961. static="false" final="false" visibility="public"
  7962. deprecated="not deprecated">
  7963. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7964. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7965. <exception name="IOException" type="java.io.IOException"/>
  7966. </method>
  7967. <method name="setWorkingDirectory"
  7968. abstract="false" native="false" synchronized="false"
  7969. static="false" final="false" visibility="public"
  7970. deprecated="not deprecated">
  7971. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7972. <doc>
  7973. <![CDATA[Set the working directory to the given directory.]]>
  7974. </doc>
  7975. </method>
  7976. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7977. abstract="false" native="false" synchronized="false"
  7978. static="false" final="false" visibility="public"
  7979. deprecated="not deprecated">
  7980. </method>
  7981. <field name="LOG" type="org.apache.commons.logging.Log"
  7982. transient="false" volatile="false"
  7983. static="true" final="true" visibility="public"
  7984. deprecated="not deprecated">
  7985. </field>
  7986. <doc>
  7987. <![CDATA[<p>
  7988. A {@link FileSystem} for reading and writing files stored on
  7989. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  7990. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  7991. stores files on S3 in their
  7992. native form so they can be read by other S3 tools.
  7993. </p>
  7994. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  7995. </doc>
  7996. </class>
  7997. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  7998. <doc>
  7999. <![CDATA[<p>
  8000. A distributed implementation of {@link
  8001. org.apache.hadoop.fs.FileSystem} for reading and writing files on
  8002. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8003. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem}, which is block-based,
  8004. this implementation stores
  8005. files on S3 in their native form for interoperability with other S3 tools.
  8006. </p>]]>
  8007. </doc>
  8008. </package>
  8009. <package name="org.apache.hadoop.fs.shell">
  8010. <!-- start class org.apache.hadoop.fs.shell.Command -->
  8011. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  8012. abstract="true"
  8013. static="false" final="false" visibility="public"
  8014. deprecated="not deprecated">
  8015. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  8016. static="false" final="false" visibility="protected"
  8017. deprecated="not deprecated">
  8018. <doc>
  8019. <![CDATA[Constructor]]>
  8020. </doc>
  8021. </constructor>
  8022. <method name="getCommandName" return="java.lang.String"
  8023. abstract="true" native="false" synchronized="false"
  8024. static="false" final="false" visibility="public"
  8025. deprecated="not deprecated">
  8026. <doc>
  8027. <![CDATA[Return the command's name excluding the leading character -]]>
  8028. </doc>
  8029. </method>
  8030. <method name="run"
  8031. abstract="true" native="false" synchronized="false"
  8032. static="false" final="false" visibility="protected"
  8033. deprecated="not deprecated">
  8034. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8035. <exception name="IOException" type="java.io.IOException"/>
  8036. <doc>
  8037. <![CDATA[Execute the command on the input path
  8038. @param path the input path
  8039. @throws IOException if any error occurs]]>
  8040. </doc>
  8041. </method>
  8042. <method name="runAll" return="int"
  8043. abstract="false" native="false" synchronized="false"
  8044. static="false" final="false" visibility="public"
  8045. deprecated="not deprecated">
  8046. <doc>
  8047. <![CDATA[For each source path, execute the command
  8048. @return 0 if it runs successfully; -1 if it fails]]>
  8049. </doc>
  8050. </method>
  8051. <field name="args" type="java.lang.String[]"
  8052. transient="false" volatile="false"
  8053. static="false" final="false" visibility="protected"
  8054. deprecated="not deprecated">
  8055. </field>
  8056. <doc>
  8057. <![CDATA[An abstract class for the execution of a file system command]]>
  8058. </doc>
  8059. </class>
  8060. <!-- end class org.apache.hadoop.fs.shell.Command -->
  8061. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  8062. <class name="CommandFormat" extends="java.lang.Object"
  8063. abstract="false"
  8064. static="false" final="false" visibility="public"
  8065. deprecated="not deprecated">
  8066. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  8067. static="false" final="false" visibility="public"
  8068. deprecated="not deprecated">
  8069. <doc>
  8070. <![CDATA[constructor]]>
  8071. </doc>
  8072. </constructor>
  8073. <method name="parse" return="java.util.List"
  8074. abstract="false" native="false" synchronized="false"
  8075. static="false" final="false" visibility="public"
  8076. deprecated="not deprecated">
  8077. <param name="args" type="java.lang.String[]"/>
  8078. <param name="pos" type="int"/>
  8079. <doc>
  8080. <![CDATA[Parse parameters starting from the given position
  8081. @param args an array of input arguments
  8082. @param pos the position at which starts to parse
  8083. @return a list of parameters]]>
  8084. </doc>
  8085. </method>
  8086. <method name="getOpt" return="boolean"
  8087. abstract="false" native="false" synchronized="false"
  8088. static="false" final="false" visibility="public"
  8089. deprecated="not deprecated">
  8090. <param name="option" type="java.lang.String"/>
  8091. <doc>
  8092. <![CDATA[Return if the option is set or not
  8093. @param option String representation of an option
  8094. @return true is the option is set; false otherwise]]>
  8095. </doc>
  8096. </method>
  8097. <doc>
  8098. <![CDATA[Parse the args of a command and check the format of args.]]>
  8099. </doc>
  8100. </class>
  8101. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  8102. <!-- start class org.apache.hadoop.fs.shell.Count -->
  8103. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  8104. abstract="false"
  8105. static="false" final="false" visibility="public"
  8106. deprecated="not deprecated">
  8107. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  8108. static="false" final="false" visibility="public"
  8109. deprecated="not deprecated">
  8110. <doc>
  8111. <![CDATA[Constructor
  8112. @param cmd the count command
  8113. @param pos the starting index of the arguments]]>
  8114. </doc>
  8115. </constructor>
  8116. <method name="matches" return="boolean"
  8117. abstract="false" native="false" synchronized="false"
  8118. static="true" final="false" visibility="public"
  8119. deprecated="not deprecated">
  8120. <param name="cmd" type="java.lang.String"/>
  8121. <doc>
  8122. <![CDATA[Check if a command is the count command
  8123. @param cmd A string representation of a command starting with "-"
  8124. @return true if this is a count command; false otherwise]]>
  8125. </doc>
  8126. </method>
  8127. <method name="getCommandName" return="java.lang.String"
  8128. abstract="false" native="false" synchronized="false"
  8129. static="false" final="false" visibility="public"
  8130. deprecated="not deprecated">
  8131. </method>
  8132. <method name="run"
  8133. abstract="false" native="false" synchronized="false"
  8134. static="false" final="false" visibility="protected"
  8135. deprecated="not deprecated">
  8136. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8137. <exception name="IOException" type="java.io.IOException"/>
  8138. </method>
  8139. <field name="NAME" type="java.lang.String"
  8140. transient="false" volatile="false"
  8141. static="true" final="true" visibility="public"
  8142. deprecated="not deprecated">
  8143. </field>
  8144. <field name="USAGE" type="java.lang.String"
  8145. transient="false" volatile="false"
  8146. static="true" final="true" visibility="public"
  8147. deprecated="not deprecated">
  8148. </field>
  8149. <field name="DESCRIPTION" type="java.lang.String"
  8150. transient="false" volatile="false"
  8151. static="true" final="true" visibility="public"
  8152. deprecated="not deprecated">
  8153. </field>
  8154. <doc>
  8155. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8156. </doc>
  8157. </class>
  8158. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8159. </package>
  8160. <package name="org.apache.hadoop.http">
  8161. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8162. <interface name="FilterContainer" abstract="true"
  8163. static="false" final="false" visibility="public"
  8164. deprecated="not deprecated">
  8165. <method name="addFilter"
  8166. abstract="false" native="false" synchronized="false"
  8167. static="false" final="false" visibility="public"
  8168. deprecated="not deprecated">
  8169. <param name="name" type="java.lang.String"/>
  8170. <param name="classname" type="java.lang.String"/>
  8171. <param name="parameters" type="java.util.Map"/>
  8172. <doc>
  8173. <![CDATA[Add a filter to the container.
  8174. @param name Filter name
  8175. @param classname Filter class name
  8176. @param parameters a map from parameter names to initial values]]>
  8177. </doc>
  8178. </method>
  8179. <method name="addGlobalFilter"
  8180. abstract="false" native="false" synchronized="false"
  8181. static="false" final="false" visibility="public"
  8182. deprecated="not deprecated">
  8183. <param name="name" type="java.lang.String"/>
  8184. <param name="classname" type="java.lang.String"/>
  8185. <param name="parameters" type="java.util.Map"/>
  8186. <doc>
  8187. <![CDATA[Add a global filter to the container.
  8188. @param name filter name
  8189. @param classname filter class name
  8190. @param parameters a map from parameter names to initial values]]>
  8191. </doc>
  8192. </method>
  8193. <doc>
  8194. <![CDATA[A container class for javax.servlet.Filter.]]>
  8195. </doc>
  8196. </interface>
  8197. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8198. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8199. <class name="FilterInitializer" extends="java.lang.Object"
  8200. abstract="true"
  8201. static="false" final="false" visibility="public"
  8202. deprecated="not deprecated">
  8203. <constructor name="FilterInitializer"
  8204. static="false" final="false" visibility="public"
  8205. deprecated="not deprecated">
  8206. </constructor>
  8207. <doc>
  8208. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8209. </doc>
  8210. </class>
  8211. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8212. <!-- start class org.apache.hadoop.http.HttpServer -->
  8213. <class name="HttpServer" extends="java.lang.Object"
  8214. abstract="false"
  8215. static="false" final="false" visibility="public"
  8216. deprecated="not deprecated">
  8217. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8218. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8219. static="false" final="false" visibility="public"
  8220. deprecated="not deprecated">
  8221. <exception name="IOException" type="java.io.IOException"/>
  8222. <doc>
  8223. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8224. </doc>
  8225. </constructor>
  8226. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8227. static="false" final="false" visibility="public"
  8228. deprecated="not deprecated">
  8229. <exception name="IOException" type="java.io.IOException"/>
  8230. <doc>
  8231. <![CDATA[Create a status server on the given port.
  8232. The jsp scripts are taken from src/webapps/<name>.
  8233. @param name The name of the server
  8234. @param port The port to use on the server
  8235. @param findPort whether the server should start at the given port and
  8236. increment by 1 until it finds a free port.
  8237. @param conf Configuration]]>
  8238. </doc>
  8239. </constructor>
  8240. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  8241. abstract="false" native="false" synchronized="false"
  8242. static="false" final="false" visibility="protected"
  8243. deprecated="not deprecated">
  8244. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8245. <exception name="IOException" type="java.io.IOException"/>
  8246. <doc>
  8247. <![CDATA[Create a required listener for the Jetty instance listening on the port
  8248. provided. This wrapper and all subclasses must create at least one
  8249. listener.]]>
  8250. </doc>
  8251. </method>
  8252. <method name="addDefaultApps"
  8253. abstract="false" native="false" synchronized="false"
  8254. static="false" final="false" visibility="protected"
  8255. deprecated="not deprecated">
  8256. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  8257. <param name="appDir" type="java.lang.String"/>
  8258. <exception name="IOException" type="java.io.IOException"/>
  8259. <doc>
  8260. <![CDATA[Add default apps.
  8261. @param appDir The application directory
  8262. @throws IOException]]>
  8263. </doc>
  8264. </method>
  8265. <method name="addDefaultServlets"
  8266. abstract="false" native="false" synchronized="false"
  8267. static="false" final="false" visibility="protected"
  8268. deprecated="not deprecated">
  8269. <doc>
  8270. <![CDATA[Add default servlets.]]>
  8271. </doc>
  8272. </method>
  8273. <method name="addContext"
  8274. abstract="false" native="false" synchronized="false"
  8275. static="false" final="false" visibility="public"
  8276. deprecated="not deprecated">
  8277. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  8278. <param name="isFiltered" type="boolean"/>
  8279. <exception name="IOException" type="java.io.IOException"/>
  8280. </method>
  8281. <method name="addContext"
  8282. abstract="false" native="false" synchronized="false"
  8283. static="false" final="false" visibility="protected"
  8284. deprecated="not deprecated">
  8285. <param name="pathSpec" type="java.lang.String"/>
  8286. <param name="dir" type="java.lang.String"/>
  8287. <param name="isFiltered" type="boolean"/>
  8288. <exception name="IOException" type="java.io.IOException"/>
  8289. <doc>
  8290. <![CDATA[Add a context
  8291. @param pathSpec The path spec for the context
  8292. @param dir The directory containing the context
  8293. @param isFiltered if true, the servlet is added to the filter path mapping
  8294. @throws IOException]]>
  8295. </doc>
  8296. </method>
  8297. <method name="setAttribute"
  8298. abstract="false" native="false" synchronized="false"
  8299. static="false" final="false" visibility="public"
  8300. deprecated="not deprecated">
  8301. <param name="name" type="java.lang.String"/>
  8302. <param name="value" type="java.lang.Object"/>
  8303. <doc>
  8304. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8305. pages as "application.getAttribute(name)".
  8306. @param name The name of the attribute
  8307. @param value The value of the attribute]]>
  8308. </doc>
  8309. </method>
  8310. <method name="addServlet"
  8311. abstract="false" native="false" synchronized="false"
  8312. static="false" final="false" visibility="public"
  8313. deprecated="not deprecated">
  8314. <param name="name" type="java.lang.String"/>
  8315. <param name="pathSpec" type="java.lang.String"/>
  8316. <param name="clazz" type="java.lang.Class"/>
  8317. <doc>
  8318. <![CDATA[Add a servlet in the server.
  8319. @param name The name of the servlet (can be passed as null)
  8320. @param pathSpec The path spec for the servlet
  8321. @param clazz The servlet class]]>
  8322. </doc>
  8323. </method>
  8324. <method name="addInternalServlet"
  8325. abstract="false" native="false" synchronized="false"
  8326. static="false" final="false" visibility="public"
  8327. deprecated="this is a temporary method">
  8328. <param name="name" type="java.lang.String"/>
  8329. <param name="pathSpec" type="java.lang.String"/>
  8330. <param name="clazz" type="java.lang.Class"/>
  8331. <doc>
  8332. <![CDATA[Add an internal servlet in the server.
  8333. @param name The name of the servlet (can be passed as null)
  8334. @param pathSpec The path spec for the servlet
  8335. @param clazz The servlet class
  8336. @deprecated this is a temporary method]]>
  8337. </doc>
  8338. </method>
  8339. <method name="addFilter"
  8340. abstract="false" native="false" synchronized="false"
  8341. static="false" final="false" visibility="public"
  8342. deprecated="not deprecated">
  8343. <param name="name" type="java.lang.String"/>
  8344. <param name="classname" type="java.lang.String"/>
  8345. <param name="parameters" type="java.util.Map"/>
  8346. <doc>
  8347. <![CDATA[{@inheritDoc}]]>
  8348. </doc>
  8349. </method>
  8350. <method name="addGlobalFilter"
  8351. abstract="false" native="false" synchronized="false"
  8352. static="false" final="false" visibility="public"
  8353. deprecated="not deprecated">
  8354. <param name="name" type="java.lang.String"/>
  8355. <param name="classname" type="java.lang.String"/>
  8356. <param name="parameters" type="java.util.Map"/>
  8357. <doc>
  8358. <![CDATA[{@inheritDoc}]]>
  8359. </doc>
  8360. </method>
  8361. <method name="defineFilter"
  8362. abstract="false" native="false" synchronized="false"
  8363. static="false" final="false" visibility="protected"
  8364. deprecated="not deprecated">
  8365. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  8366. <param name="name" type="java.lang.String"/>
  8367. <param name="classname" type="java.lang.String"/>
  8368. <param name="parameters" type="java.util.Map"/>
  8369. <param name="urls" type="java.lang.String[]"/>
  8370. <doc>
  8371. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  8372. </doc>
  8373. </method>
  8374. <method name="addFilterPathMapping"
  8375. abstract="false" native="false" synchronized="false"
  8376. static="false" final="false" visibility="protected"
  8377. deprecated="not deprecated">
  8378. <param name="pathSpec" type="java.lang.String"/>
  8379. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  8380. <doc>
  8381. <![CDATA[Add the path spec to the filter path mapping.
  8382. @param pathSpec The path spec
  8383. @param webAppCtx The WebApplicationContext to add to]]>
  8384. </doc>
  8385. </method>
  8386. <method name="getAttribute" return="java.lang.Object"
  8387. abstract="false" native="false" synchronized="false"
  8388. static="false" final="false" visibility="public"
  8389. deprecated="not deprecated">
  8390. <param name="name" type="java.lang.String"/>
  8391. <doc>
  8392. <![CDATA[Get the value in the webapp context.
  8393. @param name The name of the attribute
  8394. @return The value of the attribute]]>
  8395. </doc>
  8396. </method>
  8397. <method name="getWebAppsPath" return="java.lang.String"
  8398. abstract="false" native="false" synchronized="false"
  8399. static="false" final="false" visibility="protected"
  8400. deprecated="not deprecated">
  8401. <exception name="IOException" type="java.io.IOException"/>
  8402. <doc>
  8403. <![CDATA[Get the pathname to the webapps files.
  8404. @return the pathname as a URL
  8405. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  8406. </doc>
  8407. </method>
  8408. <method name="getPort" return="int"
  8409. abstract="false" native="false" synchronized="false"
  8410. static="false" final="false" visibility="public"
  8411. deprecated="not deprecated">
  8412. <doc>
  8413. <![CDATA[Get the port that the server is on
  8414. @return the port]]>
  8415. </doc>
  8416. </method>
  8417. <method name="setThreads"
  8418. abstract="false" native="false" synchronized="false"
  8419. static="false" final="false" visibility="public"
  8420. deprecated="not deprecated">
  8421. <param name="min" type="int"/>
  8422. <param name="max" type="int"/>
  8423. <doc>
  8424. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  8425. </doc>
  8426. </method>
  8427. <method name="addSslListener"
  8428. abstract="false" native="false" synchronized="false"
  8429. static="false" final="false" visibility="public"
  8430. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  8431. <param name="addr" type="java.net.InetSocketAddress"/>
  8432. <param name="keystore" type="java.lang.String"/>
  8433. <param name="storPass" type="java.lang.String"/>
  8434. <param name="keyPass" type="java.lang.String"/>
  8435. <exception name="IOException" type="java.io.IOException"/>
  8436. <doc>
  8437. <![CDATA[Configure an ssl listener on the server.
  8438. @param addr address to listen on
  8439. @param keystore location of the keystore
  8440. @param storPass password for the keystore
  8441. @param keyPass password for the key
  8442. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  8443. </doc>
  8444. </method>
  8445. <method name="addSslListener"
  8446. abstract="false" native="false" synchronized="false"
  8447. static="false" final="false" visibility="public"
  8448. deprecated="not deprecated">
  8449. <param name="addr" type="java.net.InetSocketAddress"/>
  8450. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  8451. <param name="needClientAuth" type="boolean"/>
  8452. <exception name="IOException" type="java.io.IOException"/>
  8453. <doc>
  8454. <![CDATA[Configure an ssl listener on the server.
  8455. @param addr address to listen on
  8456. @param sslConf conf to retrieve ssl options
  8457. @param needClientAuth whether client authentication is required]]>
  8458. </doc>
  8459. </method>
  8460. <method name="start"
  8461. abstract="false" native="false" synchronized="false"
  8462. static="false" final="false" visibility="public"
  8463. deprecated="not deprecated">
  8464. <exception name="IOException" type="java.io.IOException"/>
  8465. <doc>
  8466. <![CDATA[Start the server. Does not wait for the server to start.]]>
  8467. </doc>
  8468. </method>
  8469. <method name="stop"
  8470. abstract="false" native="false" synchronized="false"
  8471. static="false" final="false" visibility="public"
  8472. deprecated="not deprecated">
  8473. <exception name="Exception" type="java.lang.Exception"/>
  8474. <doc>
  8475. <![CDATA[stop the server]]>
  8476. </doc>
  8477. </method>
  8478. <method name="join"
  8479. abstract="false" native="false" synchronized="false"
  8480. static="false" final="false" visibility="public"
  8481. deprecated="not deprecated">
  8482. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8483. </method>
  8484. <field name="LOG" type="org.apache.commons.logging.Log"
  8485. transient="false" volatile="false"
  8486. static="true" final="true" visibility="public"
  8487. deprecated="not deprecated">
  8488. </field>
  8489. <field name="webServer" type="org.mortbay.jetty.Server"
  8490. transient="false" volatile="false"
  8491. static="false" final="true" visibility="protected"
  8492. deprecated="not deprecated">
  8493. </field>
  8494. <field name="listener" type="org.mortbay.jetty.Connector"
  8495. transient="false" volatile="false"
  8496. static="false" final="true" visibility="protected"
  8497. deprecated="not deprecated">
  8498. </field>
  8499. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  8500. transient="false" volatile="false"
  8501. static="false" final="true" visibility="protected"
  8502. deprecated="not deprecated">
  8503. </field>
  8504. <field name="findPort" type="boolean"
  8505. transient="false" volatile="false"
  8506. static="false" final="true" visibility="protected"
  8507. deprecated="not deprecated">
  8508. </field>
  8509. <field name="defaultContexts" type="java.util.Map"
  8510. transient="false" volatile="false"
  8511. static="false" final="true" visibility="protected"
  8512. deprecated="not deprecated">
  8513. </field>
  8514. <field name="filterNames" type="java.util.List"
  8515. transient="false" volatile="false"
  8516. static="false" final="true" visibility="protected"
  8517. deprecated="not deprecated">
  8518. </field>
  8519. <doc>
  8520. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  8521. is to serve up status information for the server.
  8522. There are three contexts:
  8523. "/logs/" -> points to the log directory
  8524. "/static/" -> points to common static files (src/webapps/static)
  8525. "/" -> the jsp server code from (src/webapps/<name>)]]>
  8526. </doc>
  8527. </class>
  8528. <!-- end class org.apache.hadoop.http.HttpServer -->
  8529. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  8530. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  8531. abstract="false"
  8532. static="true" final="false" visibility="public"
  8533. deprecated="not deprecated">
  8534. <constructor name="HttpServer.StackServlet"
  8535. static="false" final="false" visibility="public"
  8536. deprecated="not deprecated">
  8537. </constructor>
  8538. <method name="doGet"
  8539. abstract="false" native="false" synchronized="false"
  8540. static="false" final="false" visibility="public"
  8541. deprecated="not deprecated">
  8542. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8543. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8544. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8545. <exception name="IOException" type="java.io.IOException"/>
  8546. </method>
  8547. <doc>
  8548. <![CDATA[A very simple servlet to serve up a text representation of the current
  8549. stack traces. It both returns the stacks to the caller and logs them.
  8550. Currently the stack traces are done sequentially rather than exactly the
  8551. same data.]]>
  8552. </doc>
  8553. </class>
  8554. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  8555. </package>
  8556. <package name="org.apache.hadoop.io">
  8557. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  8558. <class name="AbstractMapWritable" extends="java.lang.Object"
  8559. abstract="true"
  8560. static="false" final="false" visibility="public"
  8561. deprecated="not deprecated">
  8562. <implements name="org.apache.hadoop.io.Writable"/>
  8563. <implements name="org.apache.hadoop.conf.Configurable"/>
  8564. <constructor name="AbstractMapWritable"
  8565. static="false" final="false" visibility="protected"
  8566. deprecated="not deprecated">
  8567. <doc>
  8568. <![CDATA[constructor.]]>
  8569. </doc>
  8570. </constructor>
  8571. <method name="addToMap"
  8572. abstract="false" native="false" synchronized="true"
  8573. static="false" final="false" visibility="protected"
  8574. deprecated="not deprecated">
  8575. <param name="clazz" type="java.lang.Class"/>
  8576. <doc>
  8577. <![CDATA[Add a Class to the maps if it is not already present.]]>
  8578. </doc>
  8579. </method>
  8580. <method name="getClass" return="java.lang.Class"
  8581. abstract="false" native="false" synchronized="false"
  8582. static="false" final="false" visibility="protected"
  8583. deprecated="not deprecated">
  8584. <param name="id" type="byte"/>
  8585. <doc>
  8586. <![CDATA[@return the Class class for the specified id]]>
  8587. </doc>
  8588. </method>
  8589. <method name="getId" return="byte"
  8590. abstract="false" native="false" synchronized="false"
  8591. static="false" final="false" visibility="protected"
  8592. deprecated="not deprecated">
  8593. <param name="clazz" type="java.lang.Class"/>
  8594. <doc>
  8595. <![CDATA[@return the id for the specified Class]]>
  8596. </doc>
  8597. </method>
  8598. <method name="copy"
  8599. abstract="false" native="false" synchronized="true"
  8600. static="false" final="false" visibility="protected"
  8601. deprecated="not deprecated">
  8602. <param name="other" type="org.apache.hadoop.io.Writable"/>
  8603. <doc>
  8604. <![CDATA[Used by child copy constructors.]]>
  8605. </doc>
  8606. </method>
  8607. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  8608. abstract="false" native="false" synchronized="false"
  8609. static="false" final="false" visibility="public"
  8610. deprecated="not deprecated">
  8611. <doc>
  8612. <![CDATA[@return the conf]]>
  8613. </doc>
  8614. </method>
  8615. <method name="setConf"
  8616. abstract="false" native="false" synchronized="false"
  8617. static="false" final="false" visibility="public"
  8618. deprecated="not deprecated">
  8619. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8620. <doc>
  8621. <![CDATA[@param conf the conf to set]]>
  8622. </doc>
  8623. </method>
  8624. <method name="write"
  8625. abstract="false" native="false" synchronized="false"
  8626. static="false" final="false" visibility="public"
  8627. deprecated="not deprecated">
  8628. <param name="out" type="java.io.DataOutput"/>
  8629. <exception name="IOException" type="java.io.IOException"/>
  8630. <doc>
  8631. <![CDATA[{@inheritDoc}]]>
  8632. </doc>
  8633. </method>
  8634. <method name="readFields"
  8635. abstract="false" native="false" synchronized="false"
  8636. static="false" final="false" visibility="public"
  8637. deprecated="not deprecated">
  8638. <param name="in" type="java.io.DataInput"/>
  8639. <exception name="IOException" type="java.io.IOException"/>
  8640. <doc>
  8641. <![CDATA[{@inheritDoc}]]>
  8642. </doc>
  8643. </method>
  8644. <doc>
  8645. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  8646. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  8647. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  8648. maps travel with the class instead of being static.
  8649. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  8650. in any specific map instance.]]>
  8651. </doc>
  8652. </class>
  8653. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  8654. <!-- start class org.apache.hadoop.io.ArrayFile -->
  8655. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  8656. abstract="false"
  8657. static="false" final="false" visibility="public"
  8658. deprecated="not deprecated">
  8659. <constructor name="ArrayFile"
  8660. static="false" final="false" visibility="protected"
  8661. deprecated="not deprecated">
  8662. </constructor>
  8663. <doc>
  8664. <![CDATA[A dense file-based mapping from integers to values.]]>
  8665. </doc>
  8666. </class>
  8667. <!-- end class org.apache.hadoop.io.ArrayFile -->
  8668. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  8669. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  8670. abstract="false"
  8671. static="true" final="false" visibility="public"
  8672. deprecated="not deprecated">
  8673. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  8674. static="false" final="false" visibility="public"
  8675. deprecated="not deprecated">
  8676. <exception name="IOException" type="java.io.IOException"/>
  8677. <doc>
  8678. <![CDATA[Construct an array reader for the named file.]]>
  8679. </doc>
  8680. </constructor>
  8681. <method name="seek"
  8682. abstract="false" native="false" synchronized="true"
  8683. static="false" final="false" visibility="public"
  8684. deprecated="not deprecated">
  8685. <param name="n" type="long"/>
  8686. <exception name="IOException" type="java.io.IOException"/>
  8687. <doc>
  8688. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  8689. </doc>
  8690. </method>
  8691. <method name="next" return="org.apache.hadoop.io.Writable"
  8692. abstract="false" native="false" synchronized="true"
  8693. static="false" final="false" visibility="public"
  8694. deprecated="not deprecated">
  8695. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8696. <exception name="IOException" type="java.io.IOException"/>
  8697. <doc>
  8698. <![CDATA[Read and return the next value in the file.]]>
  8699. </doc>
  8700. </method>
  8701. <method name="key" return="long"
  8702. abstract="false" native="false" synchronized="true"
  8703. static="false" final="false" visibility="public"
  8704. deprecated="not deprecated">
  8705. <exception name="IOException" type="java.io.IOException"/>
  8706. <doc>
  8707. <![CDATA[Returns the key associated with the most recent call to {@link
  8708. #seek(long)}, {@link #next(Writable)}, or {@link
  8709. #get(long,Writable)}.]]>
  8710. </doc>
  8711. </method>
  8712. <method name="get" return="org.apache.hadoop.io.Writable"
  8713. abstract="false" native="false" synchronized="true"
  8714. static="false" final="false" visibility="public"
  8715. deprecated="not deprecated">
  8716. <param name="n" type="long"/>
  8717. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8718. <exception name="IOException" type="java.io.IOException"/>
  8719. <doc>
  8720. <![CDATA[Return the <code>n</code>th value in the file.]]>
  8721. </doc>
  8722. </method>
  8723. <doc>
  8724. <![CDATA[Provide access to an existing array file.]]>
  8725. </doc>
  8726. </class>
  8727. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  8728. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  8729. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  8730. abstract="false"
  8731. static="true" final="false" visibility="public"
  8732. deprecated="not deprecated">
  8733. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  8734. static="false" final="false" visibility="public"
  8735. deprecated="not deprecated">
  8736. <exception name="IOException" type="java.io.IOException"/>
  8737. <doc>
  8738. <![CDATA[Create the named file for values of the named class.]]>
  8739. </doc>
  8740. </constructor>
  8741. <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"
  8742. static="false" final="false" visibility="public"
  8743. deprecated="not deprecated">
  8744. <exception name="IOException" type="java.io.IOException"/>
  8745. <doc>
  8746. <![CDATA[Create the named file for values of the named class.]]>
  8747. </doc>
  8748. </constructor>
  8749. <method name="append"
  8750. abstract="false" native="false" synchronized="true"
  8751. static="false" final="false" visibility="public"
  8752. deprecated="not deprecated">
  8753. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8754. <exception name="IOException" type="java.io.IOException"/>
  8755. <doc>
  8756. <![CDATA[Append a value to the file.]]>
  8757. </doc>
  8758. </method>
  8759. <doc>
  8760. <![CDATA[Write a new array file.]]>
  8761. </doc>
  8762. </class>
  8763. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  8764. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  8765. <class name="ArrayWritable" extends="java.lang.Object"
  8766. abstract="false"
  8767. static="false" final="false" visibility="public"
  8768. deprecated="not deprecated">
  8769. <implements name="org.apache.hadoop.io.Writable"/>
  8770. <constructor name="ArrayWritable" type="java.lang.Class"
  8771. static="false" final="false" visibility="public"
  8772. deprecated="not deprecated">
  8773. </constructor>
  8774. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  8775. static="false" final="false" visibility="public"
  8776. deprecated="not deprecated">
  8777. </constructor>
  8778. <constructor name="ArrayWritable" type="java.lang.String[]"
  8779. static="false" final="false" visibility="public"
  8780. deprecated="not deprecated">
  8781. </constructor>
  8782. <method name="getValueClass" return="java.lang.Class"
  8783. abstract="false" native="false" synchronized="false"
  8784. static="false" final="false" visibility="public"
  8785. deprecated="not deprecated">
  8786. </method>
  8787. <method name="toStrings" return="java.lang.String[]"
  8788. abstract="false" native="false" synchronized="false"
  8789. static="false" final="false" visibility="public"
  8790. deprecated="not deprecated">
  8791. </method>
  8792. <method name="toArray" return="java.lang.Object"
  8793. abstract="false" native="false" synchronized="false"
  8794. static="false" final="false" visibility="public"
  8795. deprecated="not deprecated">
  8796. </method>
  8797. <method name="set"
  8798. abstract="false" native="false" synchronized="false"
  8799. static="false" final="false" visibility="public"
  8800. deprecated="not deprecated">
  8801. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  8802. </method>
  8803. <method name="get" return="org.apache.hadoop.io.Writable[]"
  8804. abstract="false" native="false" synchronized="false"
  8805. static="false" final="false" visibility="public"
  8806. deprecated="not deprecated">
  8807. </method>
  8808. <method name="readFields"
  8809. abstract="false" native="false" synchronized="false"
  8810. static="false" final="false" visibility="public"
  8811. deprecated="not deprecated">
  8812. <param name="in" type="java.io.DataInput"/>
  8813. <exception name="IOException" type="java.io.IOException"/>
  8814. </method>
  8815. <method name="write"
  8816. abstract="false" native="false" synchronized="false"
  8817. static="false" final="false" visibility="public"
  8818. deprecated="not deprecated">
  8819. <param name="out" type="java.io.DataOutput"/>
  8820. <exception name="IOException" type="java.io.IOException"/>
  8821. </method>
  8822. <doc>
  8823. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  8824. writable must all be instances of the same class. If this writable will be
  8825. the input for a Reducer, you will need to create a subclass that sets the
  8826. value to be of the proper type.
  8827. For example:
  8828. <code>
  8829. public class IntArrayWritable extends ArrayWritable {
  8830. public IntArrayWritable() {
  8831. super(IntWritable.class);
  8832. }
  8833. }
  8834. </code>]]>
  8835. </doc>
  8836. </class>
  8837. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  8838. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  8839. <class name="BinaryComparable" extends="java.lang.Object"
  8840. abstract="true"
  8841. static="false" final="false" visibility="public"
  8842. deprecated="not deprecated">
  8843. <implements name="java.lang.Comparable"/>
  8844. <constructor name="BinaryComparable"
  8845. static="false" final="false" visibility="public"
  8846. deprecated="not deprecated">
  8847. </constructor>
  8848. <method name="getLength" return="int"
  8849. abstract="true" native="false" synchronized="false"
  8850. static="false" final="false" visibility="public"
  8851. deprecated="not deprecated">
  8852. <doc>
  8853. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  8854. </doc>
  8855. </method>
  8856. <method name="getBytes" return="byte[]"
  8857. abstract="true" native="false" synchronized="false"
  8858. static="false" final="false" visibility="public"
  8859. deprecated="not deprecated">
  8860. <doc>
  8861. <![CDATA[Return representative byte array for this instance.]]>
  8862. </doc>
  8863. </method>
  8864. <method name="compareTo" return="int"
  8865. abstract="false" native="false" synchronized="false"
  8866. static="false" final="false" visibility="public"
  8867. deprecated="not deprecated">
  8868. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  8869. <doc>
  8870. <![CDATA[Compare bytes from {#getBytes()}.
  8871. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  8872. </doc>
  8873. </method>
  8874. <method name="compareTo" return="int"
  8875. abstract="false" native="false" synchronized="false"
  8876. static="false" final="false" visibility="public"
  8877. deprecated="not deprecated">
  8878. <param name="other" type="byte[]"/>
  8879. <param name="off" type="int"/>
  8880. <param name="len" type="int"/>
  8881. <doc>
  8882. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  8883. </doc>
  8884. </method>
  8885. <method name="equals" return="boolean"
  8886. abstract="false" native="false" synchronized="false"
  8887. static="false" final="false" visibility="public"
  8888. deprecated="not deprecated">
  8889. <param name="other" type="java.lang.Object"/>
  8890. <doc>
  8891. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  8892. </doc>
  8893. </method>
  8894. <method name="hashCode" return="int"
  8895. abstract="false" native="false" synchronized="false"
  8896. static="false" final="false" visibility="public"
  8897. deprecated="not deprecated">
  8898. <doc>
  8899. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  8900. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  8901. </doc>
  8902. </method>
  8903. <doc>
  8904. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  8905. types supporting ordering/permutation by a representative set of bytes.]]>
  8906. </doc>
  8907. </class>
  8908. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  8909. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  8910. <class name="BloomMapFile" extends="java.lang.Object"
  8911. abstract="false"
  8912. static="false" final="false" visibility="public"
  8913. deprecated="not deprecated">
  8914. <constructor name="BloomMapFile"
  8915. static="false" final="false" visibility="public"
  8916. deprecated="not deprecated">
  8917. </constructor>
  8918. <method name="delete"
  8919. abstract="false" native="false" synchronized="false"
  8920. static="true" final="false" visibility="public"
  8921. deprecated="not deprecated">
  8922. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8923. <param name="name" type="java.lang.String"/>
  8924. <exception name="IOException" type="java.io.IOException"/>
  8925. </method>
  8926. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  8927. transient="false" volatile="false"
  8928. static="true" final="true" visibility="public"
  8929. deprecated="not deprecated">
  8930. </field>
  8931. <field name="HASH_COUNT" type="int"
  8932. transient="false" volatile="false"
  8933. static="true" final="true" visibility="public"
  8934. deprecated="not deprecated">
  8935. </field>
  8936. <doc>
  8937. <![CDATA[This class extends {@link MapFile} and provides very much the same
  8938. functionality. However, it uses dynamic Bloom filters to provide
  8939. quick membership test for keys, and it offers a fast version of
  8940. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  8941. case of sparsely populated MapFile-s.]]>
  8942. </doc>
  8943. </class>
  8944. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  8945. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  8946. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  8947. abstract="false"
  8948. static="true" final="false" visibility="public"
  8949. deprecated="not deprecated">
  8950. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  8951. static="false" final="false" visibility="public"
  8952. deprecated="not deprecated">
  8953. <exception name="IOException" type="java.io.IOException"/>
  8954. </constructor>
  8955. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  8956. static="false" final="false" visibility="public"
  8957. deprecated="not deprecated">
  8958. <exception name="IOException" type="java.io.IOException"/>
  8959. </constructor>
  8960. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  8961. static="false" final="false" visibility="public"
  8962. deprecated="not deprecated">
  8963. <exception name="IOException" type="java.io.IOException"/>
  8964. </constructor>
  8965. <method name="probablyHasKey" return="boolean"
  8966. abstract="false" native="false" synchronized="false"
  8967. static="false" final="false" visibility="public"
  8968. deprecated="not deprecated">
  8969. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  8970. <exception name="IOException" type="java.io.IOException"/>
  8971. <doc>
  8972. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  8973. performed using a Bloom filter, so the result has always non-zero
  8974. probability of false positives.
  8975. @param key key to check
  8976. @return false iff key doesn't exist, true if key probably exists.
  8977. @throws IOException]]>
  8978. </doc>
  8979. </method>
  8980. <method name="get" return="org.apache.hadoop.io.Writable"
  8981. abstract="false" native="false" synchronized="true"
  8982. static="false" final="false" visibility="public"
  8983. deprecated="not deprecated">
  8984. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  8985. <param name="val" type="org.apache.hadoop.io.Writable"/>
  8986. <exception name="IOException" type="java.io.IOException"/>
  8987. <doc>
  8988. <![CDATA[Fast version of the
  8989. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  8990. it checks the Bloom filter for the existence of the key, and only if
  8991. present it performs the real get operation. This yields significant
  8992. performance improvements for get operations on sparsely populated files.]]>
  8993. </doc>
  8994. </method>
  8995. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  8996. abstract="false" native="false" synchronized="false"
  8997. static="false" final="false" visibility="public"
  8998. deprecated="not deprecated">
  8999. <doc>
  9000. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  9001. @return a Bloom filter (see {@link Filter})]]>
  9002. </doc>
  9003. </method>
  9004. </class>
  9005. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  9006. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  9007. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9008. abstract="false"
  9009. static="true" final="false" visibility="public"
  9010. deprecated="not deprecated">
  9011. <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"
  9012. static="false" final="false" visibility="public"
  9013. deprecated="not deprecated">
  9014. <exception name="IOException" type="java.io.IOException"/>
  9015. </constructor>
  9016. <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"
  9017. static="false" final="false" visibility="public"
  9018. deprecated="not deprecated">
  9019. <exception name="IOException" type="java.io.IOException"/>
  9020. </constructor>
  9021. <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"
  9022. static="false" final="false" visibility="public"
  9023. deprecated="not deprecated">
  9024. <exception name="IOException" type="java.io.IOException"/>
  9025. </constructor>
  9026. <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"
  9027. static="false" final="false" visibility="public"
  9028. deprecated="not deprecated">
  9029. <exception name="IOException" type="java.io.IOException"/>
  9030. </constructor>
  9031. <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"
  9032. static="false" final="false" visibility="public"
  9033. deprecated="not deprecated">
  9034. <exception name="IOException" type="java.io.IOException"/>
  9035. </constructor>
  9036. <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"
  9037. static="false" final="false" visibility="public"
  9038. deprecated="not deprecated">
  9039. <exception name="IOException" type="java.io.IOException"/>
  9040. </constructor>
  9041. <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"
  9042. static="false" final="false" visibility="public"
  9043. deprecated="not deprecated">
  9044. <exception name="IOException" type="java.io.IOException"/>
  9045. </constructor>
  9046. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  9047. static="false" final="false" visibility="public"
  9048. deprecated="not deprecated">
  9049. <exception name="IOException" type="java.io.IOException"/>
  9050. </constructor>
  9051. <method name="append"
  9052. abstract="false" native="false" synchronized="true"
  9053. static="false" final="false" visibility="public"
  9054. deprecated="not deprecated">
  9055. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9056. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9057. <exception name="IOException" type="java.io.IOException"/>
  9058. </method>
  9059. <method name="close"
  9060. abstract="false" native="false" synchronized="true"
  9061. static="false" final="false" visibility="public"
  9062. deprecated="not deprecated">
  9063. <exception name="IOException" type="java.io.IOException"/>
  9064. </method>
  9065. </class>
  9066. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  9067. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  9068. <class name="BooleanWritable" extends="java.lang.Object"
  9069. abstract="false"
  9070. static="false" final="false" visibility="public"
  9071. deprecated="not deprecated">
  9072. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9073. <constructor name="BooleanWritable"
  9074. static="false" final="false" visibility="public"
  9075. deprecated="not deprecated">
  9076. </constructor>
  9077. <constructor name="BooleanWritable" type="boolean"
  9078. static="false" final="false" visibility="public"
  9079. deprecated="not deprecated">
  9080. </constructor>
  9081. <method name="set"
  9082. abstract="false" native="false" synchronized="false"
  9083. static="false" final="false" visibility="public"
  9084. deprecated="not deprecated">
  9085. <param name="value" type="boolean"/>
  9086. <doc>
  9087. <![CDATA[Set the value of the BooleanWritable]]>
  9088. </doc>
  9089. </method>
  9090. <method name="get" return="boolean"
  9091. abstract="false" native="false" synchronized="false"
  9092. static="false" final="false" visibility="public"
  9093. deprecated="not deprecated">
  9094. <doc>
  9095. <![CDATA[Returns the value of the BooleanWritable]]>
  9096. </doc>
  9097. </method>
  9098. <method name="readFields"
  9099. abstract="false" native="false" synchronized="false"
  9100. static="false" final="false" visibility="public"
  9101. deprecated="not deprecated">
  9102. <param name="in" type="java.io.DataInput"/>
  9103. <exception name="IOException" type="java.io.IOException"/>
  9104. </method>
  9105. <method name="write"
  9106. abstract="false" native="false" synchronized="false"
  9107. static="false" final="false" visibility="public"
  9108. deprecated="not deprecated">
  9109. <param name="out" type="java.io.DataOutput"/>
  9110. <exception name="IOException" type="java.io.IOException"/>
  9111. </method>
  9112. <method name="equals" return="boolean"
  9113. abstract="false" native="false" synchronized="false"
  9114. static="false" final="false" visibility="public"
  9115. deprecated="not deprecated">
  9116. <param name="o" type="java.lang.Object"/>
  9117. </method>
  9118. <method name="hashCode" return="int"
  9119. abstract="false" native="false" synchronized="false"
  9120. static="false" final="false" visibility="public"
  9121. deprecated="not deprecated">
  9122. </method>
  9123. <method name="compareTo" return="int"
  9124. abstract="false" native="false" synchronized="false"
  9125. static="false" final="false" visibility="public"
  9126. deprecated="not deprecated">
  9127. <param name="o" type="java.lang.Object"/>
  9128. </method>
  9129. <method name="toString" return="java.lang.String"
  9130. abstract="false" native="false" synchronized="false"
  9131. static="false" final="false" visibility="public"
  9132. deprecated="not deprecated">
  9133. </method>
  9134. <doc>
  9135. <![CDATA[A WritableComparable for booleans.]]>
  9136. </doc>
  9137. </class>
  9138. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  9139. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9140. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9141. abstract="false"
  9142. static="true" final="false" visibility="public"
  9143. deprecated="not deprecated">
  9144. <constructor name="BooleanWritable.Comparator"
  9145. static="false" final="false" visibility="public"
  9146. deprecated="not deprecated">
  9147. </constructor>
  9148. <method name="compare" return="int"
  9149. abstract="false" native="false" synchronized="false"
  9150. static="false" final="false" visibility="public"
  9151. deprecated="not deprecated">
  9152. <param name="b1" type="byte[]"/>
  9153. <param name="s1" type="int"/>
  9154. <param name="l1" type="int"/>
  9155. <param name="b2" type="byte[]"/>
  9156. <param name="s2" type="int"/>
  9157. <param name="l2" type="int"/>
  9158. </method>
  9159. <doc>
  9160. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  9161. </doc>
  9162. </class>
  9163. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9164. <!-- start class org.apache.hadoop.io.BytesWritable -->
  9165. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  9166. abstract="false"
  9167. static="false" final="false" visibility="public"
  9168. deprecated="not deprecated">
  9169. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9170. <constructor name="BytesWritable"
  9171. static="false" final="false" visibility="public"
  9172. deprecated="not deprecated">
  9173. <doc>
  9174. <![CDATA[Create a zero-size sequence.]]>
  9175. </doc>
  9176. </constructor>
  9177. <constructor name="BytesWritable" type="byte[]"
  9178. static="false" final="false" visibility="public"
  9179. deprecated="not deprecated">
  9180. <doc>
  9181. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  9182. @param bytes This array becomes the backing storage for the object.]]>
  9183. </doc>
  9184. </constructor>
  9185. <method name="getBytes" return="byte[]"
  9186. abstract="false" native="false" synchronized="false"
  9187. static="false" final="false" visibility="public"
  9188. deprecated="not deprecated">
  9189. <doc>
  9190. <![CDATA[Get the data from the BytesWritable.
  9191. @return The data is only valid between 0 and getLength() - 1.]]>
  9192. </doc>
  9193. </method>
  9194. <method name="get" return="byte[]"
  9195. abstract="false" native="false" synchronized="false"
  9196. static="false" final="false" visibility="public"
  9197. deprecated="Use {@link #getBytes()} instead.">
  9198. <doc>
  9199. <![CDATA[Get the data from the BytesWritable.
  9200. @deprecated Use {@link #getBytes()} instead.]]>
  9201. </doc>
  9202. </method>
  9203. <method name="getLength" return="int"
  9204. abstract="false" native="false" synchronized="false"
  9205. static="false" final="false" visibility="public"
  9206. deprecated="not deprecated">
  9207. <doc>
  9208. <![CDATA[Get the current size of the buffer.]]>
  9209. </doc>
  9210. </method>
  9211. <method name="getSize" return="int"
  9212. abstract="false" native="false" synchronized="false"
  9213. static="false" final="false" visibility="public"
  9214. deprecated="Use {@link #getLength()} instead.">
  9215. <doc>
  9216. <![CDATA[Get the current size of the buffer.
  9217. @deprecated Use {@link #getLength()} instead.]]>
  9218. </doc>
  9219. </method>
  9220. <method name="setSize"
  9221. abstract="false" native="false" synchronized="false"
  9222. static="false" final="false" visibility="public"
  9223. deprecated="not deprecated">
  9224. <param name="size" type="int"/>
  9225. <doc>
  9226. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  9227. and any new values are undefined. The capacity is changed if it is
  9228. necessary.
  9229. @param size The new number of bytes]]>
  9230. </doc>
  9231. </method>
  9232. <method name="getCapacity" return="int"
  9233. abstract="false" native="false" synchronized="false"
  9234. static="false" final="false" visibility="public"
  9235. deprecated="not deprecated">
  9236. <doc>
  9237. <![CDATA[Get the capacity, which is the maximum size that could handled without
  9238. resizing the backing storage.
  9239. @return The number of bytes]]>
  9240. </doc>
  9241. </method>
  9242. <method name="setCapacity"
  9243. abstract="false" native="false" synchronized="false"
  9244. static="false" final="false" visibility="public"
  9245. deprecated="not deprecated">
  9246. <param name="new_cap" type="int"/>
  9247. <doc>
  9248. <![CDATA[Change the capacity of the backing storage.
  9249. The data is preserved.
  9250. @param new_cap The new capacity in bytes.]]>
  9251. </doc>
  9252. </method>
  9253. <method name="set"
  9254. abstract="false" native="false" synchronized="false"
  9255. static="false" final="false" visibility="public"
  9256. deprecated="not deprecated">
  9257. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  9258. <doc>
  9259. <![CDATA[Set the BytesWritable to the contents of the given newData.
  9260. @param newData the value to set this BytesWritable to.]]>
  9261. </doc>
  9262. </method>
  9263. <method name="set"
  9264. abstract="false" native="false" synchronized="false"
  9265. static="false" final="false" visibility="public"
  9266. deprecated="not deprecated">
  9267. <param name="newData" type="byte[]"/>
  9268. <param name="offset" type="int"/>
  9269. <param name="length" type="int"/>
  9270. <doc>
  9271. <![CDATA[Set the value to a copy of the given byte range
  9272. @param newData the new values to copy in
  9273. @param offset the offset in newData to start at
  9274. @param length the number of bytes to copy]]>
  9275. </doc>
  9276. </method>
  9277. <method name="readFields"
  9278. abstract="false" native="false" synchronized="false"
  9279. static="false" final="false" visibility="public"
  9280. deprecated="not deprecated">
  9281. <param name="in" type="java.io.DataInput"/>
  9282. <exception name="IOException" type="java.io.IOException"/>
  9283. </method>
  9284. <method name="write"
  9285. abstract="false" native="false" synchronized="false"
  9286. static="false" final="false" visibility="public"
  9287. deprecated="not deprecated">
  9288. <param name="out" type="java.io.DataOutput"/>
  9289. <exception name="IOException" type="java.io.IOException"/>
  9290. </method>
  9291. <method name="hashCode" return="int"
  9292. abstract="false" native="false" synchronized="false"
  9293. static="false" final="false" visibility="public"
  9294. deprecated="not deprecated">
  9295. </method>
  9296. <method name="equals" return="boolean"
  9297. abstract="false" native="false" synchronized="false"
  9298. static="false" final="false" visibility="public"
  9299. deprecated="not deprecated">
  9300. <param name="right_obj" type="java.lang.Object"/>
  9301. <doc>
  9302. <![CDATA[Are the two byte sequences equal?]]>
  9303. </doc>
  9304. </method>
  9305. <method name="toString" return="java.lang.String"
  9306. abstract="false" native="false" synchronized="false"
  9307. static="false" final="false" visibility="public"
  9308. deprecated="not deprecated">
  9309. <doc>
  9310. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  9311. </doc>
  9312. </method>
  9313. <doc>
  9314. <![CDATA[A byte sequence that is usable as a key or value.
  9315. It is resizable and distinguishes between the size of the seqeunce and
  9316. the current capacity. The hash function is the front of the md5 of the
  9317. buffer. The sort order is the same as memcmp.]]>
  9318. </doc>
  9319. </class>
  9320. <!-- end class org.apache.hadoop.io.BytesWritable -->
  9321. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  9322. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9323. abstract="false"
  9324. static="true" final="false" visibility="public"
  9325. deprecated="not deprecated">
  9326. <constructor name="BytesWritable.Comparator"
  9327. static="false" final="false" visibility="public"
  9328. deprecated="not deprecated">
  9329. </constructor>
  9330. <method name="compare" return="int"
  9331. abstract="false" native="false" synchronized="false"
  9332. static="false" final="false" visibility="public"
  9333. deprecated="not deprecated">
  9334. <param name="b1" type="byte[]"/>
  9335. <param name="s1" type="int"/>
  9336. <param name="l1" type="int"/>
  9337. <param name="b2" type="byte[]"/>
  9338. <param name="s2" type="int"/>
  9339. <param name="l2" type="int"/>
  9340. <doc>
  9341. <![CDATA[Compare the buffers in serialized form.]]>
  9342. </doc>
  9343. </method>
  9344. <doc>
  9345. <![CDATA[A Comparator optimized for BytesWritable.]]>
  9346. </doc>
  9347. </class>
  9348. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  9349. <!-- start class org.apache.hadoop.io.ByteWritable -->
  9350. <class name="ByteWritable" extends="java.lang.Object"
  9351. abstract="false"
  9352. static="false" final="false" visibility="public"
  9353. deprecated="not deprecated">
  9354. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9355. <constructor name="ByteWritable"
  9356. static="false" final="false" visibility="public"
  9357. deprecated="not deprecated">
  9358. </constructor>
  9359. <constructor name="ByteWritable" type="byte"
  9360. static="false" final="false" visibility="public"
  9361. deprecated="not deprecated">
  9362. </constructor>
  9363. <method name="set"
  9364. abstract="false" native="false" synchronized="false"
  9365. static="false" final="false" visibility="public"
  9366. deprecated="not deprecated">
  9367. <param name="value" type="byte"/>
  9368. <doc>
  9369. <![CDATA[Set the value of this ByteWritable.]]>
  9370. </doc>
  9371. </method>
  9372. <method name="get" return="byte"
  9373. abstract="false" native="false" synchronized="false"
  9374. static="false" final="false" visibility="public"
  9375. deprecated="not deprecated">
  9376. <doc>
  9377. <![CDATA[Return the value of this ByteWritable.]]>
  9378. </doc>
  9379. </method>
  9380. <method name="readFields"
  9381. abstract="false" native="false" synchronized="false"
  9382. static="false" final="false" visibility="public"
  9383. deprecated="not deprecated">
  9384. <param name="in" type="java.io.DataInput"/>
  9385. <exception name="IOException" type="java.io.IOException"/>
  9386. </method>
  9387. <method name="write"
  9388. abstract="false" native="false" synchronized="false"
  9389. static="false" final="false" visibility="public"
  9390. deprecated="not deprecated">
  9391. <param name="out" type="java.io.DataOutput"/>
  9392. <exception name="IOException" type="java.io.IOException"/>
  9393. </method>
  9394. <method name="equals" return="boolean"
  9395. abstract="false" native="false" synchronized="false"
  9396. static="false" final="false" visibility="public"
  9397. deprecated="not deprecated">
  9398. <param name="o" type="java.lang.Object"/>
  9399. <doc>
  9400. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  9401. </doc>
  9402. </method>
  9403. <method name="hashCode" return="int"
  9404. abstract="false" native="false" synchronized="false"
  9405. static="false" final="false" visibility="public"
  9406. deprecated="not deprecated">
  9407. </method>
  9408. <method name="compareTo" return="int"
  9409. abstract="false" native="false" synchronized="false"
  9410. static="false" final="false" visibility="public"
  9411. deprecated="not deprecated">
  9412. <param name="o" type="java.lang.Object"/>
  9413. <doc>
  9414. <![CDATA[Compares two ByteWritables.]]>
  9415. </doc>
  9416. </method>
  9417. <method name="toString" return="java.lang.String"
  9418. abstract="false" native="false" synchronized="false"
  9419. static="false" final="false" visibility="public"
  9420. deprecated="not deprecated">
  9421. </method>
  9422. <doc>
  9423. <![CDATA[A WritableComparable for a single byte.]]>
  9424. </doc>
  9425. </class>
  9426. <!-- end class org.apache.hadoop.io.ByteWritable -->
  9427. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  9428. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9429. abstract="false"
  9430. static="true" final="false" visibility="public"
  9431. deprecated="not deprecated">
  9432. <constructor name="ByteWritable.Comparator"
  9433. static="false" final="false" visibility="public"
  9434. deprecated="not deprecated">
  9435. </constructor>
  9436. <method name="compare" return="int"
  9437. abstract="false" native="false" synchronized="false"
  9438. static="false" final="false" visibility="public"
  9439. deprecated="not deprecated">
  9440. <param name="b1" type="byte[]"/>
  9441. <param name="s1" type="int"/>
  9442. <param name="l1" type="int"/>
  9443. <param name="b2" type="byte[]"/>
  9444. <param name="s2" type="int"/>
  9445. <param name="l2" type="int"/>
  9446. </method>
  9447. <doc>
  9448. <![CDATA[A Comparator optimized for ByteWritable.]]>
  9449. </doc>
  9450. </class>
  9451. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  9452. <!-- start interface org.apache.hadoop.io.Closeable -->
  9453. <interface name="Closeable" abstract="true"
  9454. static="false" final="false" visibility="public"
  9455. deprecated="use java.io.Closeable">
  9456. <implements name="java.io.Closeable"/>
  9457. <doc>
  9458. <![CDATA[@deprecated use java.io.Closeable]]>
  9459. </doc>
  9460. </interface>
  9461. <!-- end interface org.apache.hadoop.io.Closeable -->
  9462. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  9463. <class name="CompressedWritable" extends="java.lang.Object"
  9464. abstract="true"
  9465. static="false" final="false" visibility="public"
  9466. deprecated="not deprecated">
  9467. <implements name="org.apache.hadoop.io.Writable"/>
  9468. <constructor name="CompressedWritable"
  9469. static="false" final="false" visibility="public"
  9470. deprecated="not deprecated">
  9471. </constructor>
  9472. <method name="readFields"
  9473. abstract="false" native="false" synchronized="false"
  9474. static="false" final="true" visibility="public"
  9475. deprecated="not deprecated">
  9476. <param name="in" type="java.io.DataInput"/>
  9477. <exception name="IOException" type="java.io.IOException"/>
  9478. </method>
  9479. <method name="ensureInflated"
  9480. abstract="false" native="false" synchronized="false"
  9481. static="false" final="false" visibility="protected"
  9482. deprecated="not deprecated">
  9483. <doc>
  9484. <![CDATA[Must be called by all methods which access fields to ensure that the data
  9485. has been uncompressed.]]>
  9486. </doc>
  9487. </method>
  9488. <method name="readFieldsCompressed"
  9489. abstract="true" native="false" synchronized="false"
  9490. static="false" final="false" visibility="protected"
  9491. deprecated="not deprecated">
  9492. <param name="in" type="java.io.DataInput"/>
  9493. <exception name="IOException" type="java.io.IOException"/>
  9494. <doc>
  9495. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  9496. </doc>
  9497. </method>
  9498. <method name="write"
  9499. abstract="false" native="false" synchronized="false"
  9500. static="false" final="true" visibility="public"
  9501. deprecated="not deprecated">
  9502. <param name="out" type="java.io.DataOutput"/>
  9503. <exception name="IOException" type="java.io.IOException"/>
  9504. </method>
  9505. <method name="writeCompressed"
  9506. abstract="true" native="false" synchronized="false"
  9507. static="false" final="false" visibility="protected"
  9508. deprecated="not deprecated">
  9509. <param name="out" type="java.io.DataOutput"/>
  9510. <exception name="IOException" type="java.io.IOException"/>
  9511. <doc>
  9512. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  9513. </doc>
  9514. </method>
  9515. <doc>
  9516. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  9517. inflate on field access. This is useful for large objects whose fields are
  9518. not be altered during a map or reduce operation: leaving the field data
  9519. compressed makes copying the instance from one file to another much
  9520. faster.]]>
  9521. </doc>
  9522. </class>
  9523. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  9524. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  9525. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  9526. abstract="false"
  9527. static="false" final="false" visibility="public"
  9528. deprecated="not deprecated">
  9529. <constructor name="DataInputBuffer"
  9530. static="false" final="false" visibility="public"
  9531. deprecated="not deprecated">
  9532. <doc>
  9533. <![CDATA[Constructs a new empty buffer.]]>
  9534. </doc>
  9535. </constructor>
  9536. <method name="reset"
  9537. abstract="false" native="false" synchronized="false"
  9538. static="false" final="false" visibility="public"
  9539. deprecated="not deprecated">
  9540. <param name="input" type="byte[]"/>
  9541. <param name="length" type="int"/>
  9542. <doc>
  9543. <![CDATA[Resets the data that the buffer reads.]]>
  9544. </doc>
  9545. </method>
  9546. <method name="reset"
  9547. abstract="false" native="false" synchronized="false"
  9548. static="false" final="false" visibility="public"
  9549. deprecated="not deprecated">
  9550. <param name="input" type="byte[]"/>
  9551. <param name="start" type="int"/>
  9552. <param name="length" type="int"/>
  9553. <doc>
  9554. <![CDATA[Resets the data that the buffer reads.]]>
  9555. </doc>
  9556. </method>
  9557. <method name="getData" return="byte[]"
  9558. abstract="false" native="false" synchronized="false"
  9559. static="false" final="false" visibility="public"
  9560. deprecated="not deprecated">
  9561. </method>
  9562. <method name="getPosition" return="int"
  9563. abstract="false" native="false" synchronized="false"
  9564. static="false" final="false" visibility="public"
  9565. deprecated="not deprecated">
  9566. <doc>
  9567. <![CDATA[Returns the current position in the input.]]>
  9568. </doc>
  9569. </method>
  9570. <method name="getLength" return="int"
  9571. abstract="false" native="false" synchronized="false"
  9572. static="false" final="false" visibility="public"
  9573. deprecated="not deprecated">
  9574. <doc>
  9575. <![CDATA[Returns the length of the input.]]>
  9576. </doc>
  9577. </method>
  9578. <doc>
  9579. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  9580. buffer.
  9581. <p>This saves memory over creating a new DataInputStream and
  9582. ByteArrayInputStream each time data is read.
  9583. <p>Typical usage is something like the following:<pre>
  9584. DataInputBuffer buffer = new DataInputBuffer();
  9585. while (... loop condition ...) {
  9586. byte[] data = ... get data ...;
  9587. int dataLength = ... get data length ...;
  9588. buffer.reset(data, dataLength);
  9589. ... read buffer using DataInput methods ...
  9590. }
  9591. </pre>]]>
  9592. </doc>
  9593. </class>
  9594. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  9595. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  9596. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  9597. abstract="false"
  9598. static="false" final="false" visibility="public"
  9599. deprecated="not deprecated">
  9600. <constructor name="DataOutputBuffer"
  9601. static="false" final="false" visibility="public"
  9602. deprecated="not deprecated">
  9603. <doc>
  9604. <![CDATA[Constructs a new empty buffer.]]>
  9605. </doc>
  9606. </constructor>
  9607. <constructor name="DataOutputBuffer" type="int"
  9608. static="false" final="false" visibility="public"
  9609. deprecated="not deprecated">
  9610. </constructor>
  9611. <method name="getData" return="byte[]"
  9612. abstract="false" native="false" synchronized="false"
  9613. static="false" final="false" visibility="public"
  9614. deprecated="not deprecated">
  9615. <doc>
  9616. <![CDATA[Returns the current contents of the buffer.
  9617. Data is only valid to {@link #getLength()}.]]>
  9618. </doc>
  9619. </method>
  9620. <method name="getLength" return="int"
  9621. abstract="false" native="false" synchronized="false"
  9622. static="false" final="false" visibility="public"
  9623. deprecated="not deprecated">
  9624. <doc>
  9625. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  9626. </doc>
  9627. </method>
  9628. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  9629. abstract="false" native="false" synchronized="false"
  9630. static="false" final="false" visibility="public"
  9631. deprecated="not deprecated">
  9632. <doc>
  9633. <![CDATA[Resets the buffer to empty.]]>
  9634. </doc>
  9635. </method>
  9636. <method name="write"
  9637. abstract="false" native="false" synchronized="false"
  9638. static="false" final="false" visibility="public"
  9639. deprecated="not deprecated">
  9640. <param name="in" type="java.io.DataInput"/>
  9641. <param name="length" type="int"/>
  9642. <exception name="IOException" type="java.io.IOException"/>
  9643. <doc>
  9644. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  9645. </doc>
  9646. </method>
  9647. <method name="writeTo"
  9648. abstract="false" native="false" synchronized="false"
  9649. static="false" final="false" visibility="public"
  9650. deprecated="not deprecated">
  9651. <param name="out" type="java.io.OutputStream"/>
  9652. <exception name="IOException" type="java.io.IOException"/>
  9653. <doc>
  9654. <![CDATA[Write to a file stream]]>
  9655. </doc>
  9656. </method>
  9657. <doc>
  9658. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  9659. buffer.
  9660. <p>This saves memory over creating a new DataOutputStream and
  9661. ByteArrayOutputStream each time data is written.
  9662. <p>Typical usage is something like the following:<pre>
  9663. DataOutputBuffer buffer = new DataOutputBuffer();
  9664. while (... loop condition ...) {
  9665. buffer.reset();
  9666. ... write buffer using DataOutput methods ...
  9667. byte[] data = buffer.getData();
  9668. int dataLength = buffer.getLength();
  9669. ... write data to its ultimate destination ...
  9670. }
  9671. </pre>]]>
  9672. </doc>
  9673. </class>
  9674. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  9675. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  9676. <class name="DefaultStringifier" extends="java.lang.Object"
  9677. abstract="false"
  9678. static="false" final="false" visibility="public"
  9679. deprecated="not deprecated">
  9680. <implements name="org.apache.hadoop.io.Stringifier"/>
  9681. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  9682. static="false" final="false" visibility="public"
  9683. deprecated="not deprecated">
  9684. </constructor>
  9685. <method name="fromString" return="java.lang.Object"
  9686. abstract="false" native="false" synchronized="false"
  9687. static="false" final="false" visibility="public"
  9688. deprecated="not deprecated">
  9689. <param name="str" type="java.lang.String"/>
  9690. <exception name="IOException" type="java.io.IOException"/>
  9691. </method>
  9692. <method name="toString" return="java.lang.String"
  9693. abstract="false" native="false" synchronized="false"
  9694. static="false" final="false" visibility="public"
  9695. deprecated="not deprecated">
  9696. <param name="obj" type="java.lang.Object"/>
  9697. <exception name="IOException" type="java.io.IOException"/>
  9698. </method>
  9699. <method name="close"
  9700. abstract="false" native="false" synchronized="false"
  9701. static="false" final="false" visibility="public"
  9702. deprecated="not deprecated">
  9703. <exception name="IOException" type="java.io.IOException"/>
  9704. </method>
  9705. <method name="store"
  9706. abstract="false" native="false" synchronized="false"
  9707. static="true" final="false" visibility="public"
  9708. deprecated="not deprecated">
  9709. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9710. <param name="item" type="java.lang.Object"/>
  9711. <param name="keyName" type="java.lang.String"/>
  9712. <exception name="IOException" type="java.io.IOException"/>
  9713. <doc>
  9714. <![CDATA[Stores the item in the configuration with the given keyName.
  9715. @param <K> the class of the item
  9716. @param conf the configuration to store
  9717. @param item the object to be stored
  9718. @param keyName the name of the key to use
  9719. @throws IOException : forwards Exceptions from the underlying
  9720. {@link Serialization} classes.]]>
  9721. </doc>
  9722. </method>
  9723. <method name="load" return="java.lang.Object"
  9724. abstract="false" native="false" synchronized="false"
  9725. static="true" final="false" visibility="public"
  9726. deprecated="not deprecated">
  9727. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9728. <param name="keyName" type="java.lang.String"/>
  9729. <param name="itemClass" type="java.lang.Class"/>
  9730. <exception name="IOException" type="java.io.IOException"/>
  9731. <doc>
  9732. <![CDATA[Restores the object from the configuration.
  9733. @param <K> the class of the item
  9734. @param conf the configuration to use
  9735. @param keyName the name of the key to use
  9736. @param itemClass the class of the item
  9737. @return restored object
  9738. @throws IOException : forwards Exceptions from the underlying
  9739. {@link Serialization} classes.]]>
  9740. </doc>
  9741. </method>
  9742. <method name="storeArray"
  9743. abstract="false" native="false" synchronized="false"
  9744. static="true" final="false" visibility="public"
  9745. deprecated="not deprecated">
  9746. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9747. <param name="items" type="java.lang.Object[]"/>
  9748. <param name="keyName" type="java.lang.String"/>
  9749. <exception name="IOException" type="java.io.IOException"/>
  9750. <doc>
  9751. <![CDATA[Stores the array of items in the configuration with the given keyName.
  9752. @param <K> the class of the item
  9753. @param conf the configuration to use
  9754. @param items the objects to be stored
  9755. @param keyName the name of the key to use
  9756. @throws IndexOutOfBoundsException if the items array is empty
  9757. @throws IOException : forwards Exceptions from the underlying
  9758. {@link Serialization} classes.]]>
  9759. </doc>
  9760. </method>
  9761. <method name="loadArray" return="java.lang.Object[]"
  9762. abstract="false" native="false" synchronized="false"
  9763. static="true" final="false" visibility="public"
  9764. deprecated="not deprecated">
  9765. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9766. <param name="keyName" type="java.lang.String"/>
  9767. <param name="itemClass" type="java.lang.Class"/>
  9768. <exception name="IOException" type="java.io.IOException"/>
  9769. <doc>
  9770. <![CDATA[Restores the array of objects from the configuration.
  9771. @param <K> the class of the item
  9772. @param conf the configuration to use
  9773. @param keyName the name of the key to use
  9774. @param itemClass the class of the item
  9775. @return restored object
  9776. @throws IOException : forwards Exceptions from the underlying
  9777. {@link Serialization} classes.]]>
  9778. </doc>
  9779. </method>
  9780. <doc>
  9781. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  9782. interface which stringifies the objects using base64 encoding of the
  9783. serialized version of the objects. The {@link Serializer} and
  9784. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  9785. <br>
  9786. DefaultStringifier offers convenience methods to store/load objects to/from
  9787. the configuration.
  9788. @param <T> the class of the objects to stringify]]>
  9789. </doc>
  9790. </class>
  9791. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  9792. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  9793. <class name="DoubleWritable" extends="java.lang.Object"
  9794. abstract="false"
  9795. static="false" final="false" visibility="public"
  9796. deprecated="not deprecated">
  9797. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9798. <constructor name="DoubleWritable"
  9799. static="false" final="false" visibility="public"
  9800. deprecated="not deprecated">
  9801. </constructor>
  9802. <constructor name="DoubleWritable" type="double"
  9803. static="false" final="false" visibility="public"
  9804. deprecated="not deprecated">
  9805. </constructor>
  9806. <method name="readFields"
  9807. abstract="false" native="false" synchronized="false"
  9808. static="false" final="false" visibility="public"
  9809. deprecated="not deprecated">
  9810. <param name="in" type="java.io.DataInput"/>
  9811. <exception name="IOException" type="java.io.IOException"/>
  9812. </method>
  9813. <method name="write"
  9814. abstract="false" native="false" synchronized="false"
  9815. static="false" final="false" visibility="public"
  9816. deprecated="not deprecated">
  9817. <param name="out" type="java.io.DataOutput"/>
  9818. <exception name="IOException" type="java.io.IOException"/>
  9819. </method>
  9820. <method name="set"
  9821. abstract="false" native="false" synchronized="false"
  9822. static="false" final="false" visibility="public"
  9823. deprecated="not deprecated">
  9824. <param name="value" type="double"/>
  9825. </method>
  9826. <method name="get" return="double"
  9827. abstract="false" native="false" synchronized="false"
  9828. static="false" final="false" visibility="public"
  9829. deprecated="not deprecated">
  9830. </method>
  9831. <method name="equals" return="boolean"
  9832. abstract="false" native="false" synchronized="false"
  9833. static="false" final="false" visibility="public"
  9834. deprecated="not deprecated">
  9835. <param name="o" type="java.lang.Object"/>
  9836. <doc>
  9837. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  9838. </doc>
  9839. </method>
  9840. <method name="hashCode" return="int"
  9841. abstract="false" native="false" synchronized="false"
  9842. static="false" final="false" visibility="public"
  9843. deprecated="not deprecated">
  9844. </method>
  9845. <method name="compareTo" return="int"
  9846. abstract="false" native="false" synchronized="false"
  9847. static="false" final="false" visibility="public"
  9848. deprecated="not deprecated">
  9849. <param name="o" type="java.lang.Object"/>
  9850. </method>
  9851. <method name="toString" return="java.lang.String"
  9852. abstract="false" native="false" synchronized="false"
  9853. static="false" final="false" visibility="public"
  9854. deprecated="not deprecated">
  9855. </method>
  9856. <doc>
  9857. <![CDATA[Writable for Double values.]]>
  9858. </doc>
  9859. </class>
  9860. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  9861. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  9862. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9863. abstract="false"
  9864. static="true" final="false" visibility="public"
  9865. deprecated="not deprecated">
  9866. <constructor name="DoubleWritable.Comparator"
  9867. static="false" final="false" visibility="public"
  9868. deprecated="not deprecated">
  9869. </constructor>
  9870. <method name="compare" return="int"
  9871. abstract="false" native="false" synchronized="false"
  9872. static="false" final="false" visibility="public"
  9873. deprecated="not deprecated">
  9874. <param name="b1" type="byte[]"/>
  9875. <param name="s1" type="int"/>
  9876. <param name="l1" type="int"/>
  9877. <param name="b2" type="byte[]"/>
  9878. <param name="s2" type="int"/>
  9879. <param name="l2" type="int"/>
  9880. </method>
  9881. <doc>
  9882. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  9883. </doc>
  9884. </class>
  9885. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  9886. <!-- start class org.apache.hadoop.io.FloatWritable -->
  9887. <class name="FloatWritable" extends="java.lang.Object"
  9888. abstract="false"
  9889. static="false" final="false" visibility="public"
  9890. deprecated="not deprecated">
  9891. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9892. <constructor name="FloatWritable"
  9893. static="false" final="false" visibility="public"
  9894. deprecated="not deprecated">
  9895. </constructor>
  9896. <constructor name="FloatWritable" type="float"
  9897. static="false" final="false" visibility="public"
  9898. deprecated="not deprecated">
  9899. </constructor>
  9900. <method name="set"
  9901. abstract="false" native="false" synchronized="false"
  9902. static="false" final="false" visibility="public"
  9903. deprecated="not deprecated">
  9904. <param name="value" type="float"/>
  9905. <doc>
  9906. <![CDATA[Set the value of this FloatWritable.]]>
  9907. </doc>
  9908. </method>
  9909. <method name="get" return="float"
  9910. abstract="false" native="false" synchronized="false"
  9911. static="false" final="false" visibility="public"
  9912. deprecated="not deprecated">
  9913. <doc>
  9914. <![CDATA[Return the value of this FloatWritable.]]>
  9915. </doc>
  9916. </method>
  9917. <method name="readFields"
  9918. abstract="false" native="false" synchronized="false"
  9919. static="false" final="false" visibility="public"
  9920. deprecated="not deprecated">
  9921. <param name="in" type="java.io.DataInput"/>
  9922. <exception name="IOException" type="java.io.IOException"/>
  9923. </method>
  9924. <method name="write"
  9925. abstract="false" native="false" synchronized="false"
  9926. static="false" final="false" visibility="public"
  9927. deprecated="not deprecated">
  9928. <param name="out" type="java.io.DataOutput"/>
  9929. <exception name="IOException" type="java.io.IOException"/>
  9930. </method>
  9931. <method name="equals" return="boolean"
  9932. abstract="false" native="false" synchronized="false"
  9933. static="false" final="false" visibility="public"
  9934. deprecated="not deprecated">
  9935. <param name="o" type="java.lang.Object"/>
  9936. <doc>
  9937. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  9938. </doc>
  9939. </method>
  9940. <method name="hashCode" return="int"
  9941. abstract="false" native="false" synchronized="false"
  9942. static="false" final="false" visibility="public"
  9943. deprecated="not deprecated">
  9944. </method>
  9945. <method name="compareTo" return="int"
  9946. abstract="false" native="false" synchronized="false"
  9947. static="false" final="false" visibility="public"
  9948. deprecated="not deprecated">
  9949. <param name="o" type="java.lang.Object"/>
  9950. <doc>
  9951. <![CDATA[Compares two FloatWritables.]]>
  9952. </doc>
  9953. </method>
  9954. <method name="toString" return="java.lang.String"
  9955. abstract="false" native="false" synchronized="false"
  9956. static="false" final="false" visibility="public"
  9957. deprecated="not deprecated">
  9958. </method>
  9959. <doc>
  9960. <![CDATA[A WritableComparable for floats.]]>
  9961. </doc>
  9962. </class>
  9963. <!-- end class org.apache.hadoop.io.FloatWritable -->
  9964. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  9965. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9966. abstract="false"
  9967. static="true" final="false" visibility="public"
  9968. deprecated="not deprecated">
  9969. <constructor name="FloatWritable.Comparator"
  9970. static="false" final="false" visibility="public"
  9971. deprecated="not deprecated">
  9972. </constructor>
  9973. <method name="compare" return="int"
  9974. abstract="false" native="false" synchronized="false"
  9975. static="false" final="false" visibility="public"
  9976. deprecated="not deprecated">
  9977. <param name="b1" type="byte[]"/>
  9978. <param name="s1" type="int"/>
  9979. <param name="l1" type="int"/>
  9980. <param name="b2" type="byte[]"/>
  9981. <param name="s2" type="int"/>
  9982. <param name="l2" type="int"/>
  9983. </method>
  9984. <doc>
  9985. <![CDATA[A Comparator optimized for FloatWritable.]]>
  9986. </doc>
  9987. </class>
  9988. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  9989. <!-- start class org.apache.hadoop.io.GenericWritable -->
  9990. <class name="GenericWritable" extends="java.lang.Object"
  9991. abstract="true"
  9992. static="false" final="false" visibility="public"
  9993. deprecated="not deprecated">
  9994. <implements name="org.apache.hadoop.io.Writable"/>
  9995. <implements name="org.apache.hadoop.conf.Configurable"/>
  9996. <constructor name="GenericWritable"
  9997. static="false" final="false" visibility="public"
  9998. deprecated="not deprecated">
  9999. </constructor>
  10000. <method name="set"
  10001. abstract="false" native="false" synchronized="false"
  10002. static="false" final="false" visibility="public"
  10003. deprecated="not deprecated">
  10004. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  10005. <doc>
  10006. <![CDATA[Set the instance that is wrapped.
  10007. @param obj]]>
  10008. </doc>
  10009. </method>
  10010. <method name="get" return="org.apache.hadoop.io.Writable"
  10011. abstract="false" native="false" synchronized="false"
  10012. static="false" final="false" visibility="public"
  10013. deprecated="not deprecated">
  10014. <doc>
  10015. <![CDATA[Return the wrapped instance.]]>
  10016. </doc>
  10017. </method>
  10018. <method name="toString" return="java.lang.String"
  10019. abstract="false" native="false" synchronized="false"
  10020. static="false" final="false" visibility="public"
  10021. deprecated="not deprecated">
  10022. </method>
  10023. <method name="readFields"
  10024. abstract="false" native="false" synchronized="false"
  10025. static="false" final="false" visibility="public"
  10026. deprecated="not deprecated">
  10027. <param name="in" type="java.io.DataInput"/>
  10028. <exception name="IOException" type="java.io.IOException"/>
  10029. </method>
  10030. <method name="write"
  10031. abstract="false" native="false" synchronized="false"
  10032. static="false" final="false" visibility="public"
  10033. deprecated="not deprecated">
  10034. <param name="out" type="java.io.DataOutput"/>
  10035. <exception name="IOException" type="java.io.IOException"/>
  10036. </method>
  10037. <method name="getTypes" return="java.lang.Class[]"
  10038. abstract="true" native="false" synchronized="false"
  10039. static="false" final="false" visibility="protected"
  10040. deprecated="not deprecated">
  10041. <doc>
  10042. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  10043. to return a constant array of classes.]]>
  10044. </doc>
  10045. </method>
  10046. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10047. abstract="false" native="false" synchronized="false"
  10048. static="false" final="false" visibility="public"
  10049. deprecated="not deprecated">
  10050. </method>
  10051. <method name="setConf"
  10052. abstract="false" native="false" synchronized="false"
  10053. static="false" final="false" visibility="public"
  10054. deprecated="not deprecated">
  10055. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10056. </method>
  10057. <doc>
  10058. <![CDATA[A wrapper for Writable instances.
  10059. <p>
  10060. When two sequence files, which have same Key type but different Value
  10061. types, are mapped out to reduce, multiple Value types is not allowed.
  10062. In this case, this class can help you wrap instances with different types.
  10063. </p>
  10064. <p>
  10065. Compared with <code>ObjectWritable</code>, this class is much more effective,
  10066. because <code>ObjectWritable</code> will append the class declaration as a String
  10067. into the output file in every Key-Value pair.
  10068. </p>
  10069. <p>
  10070. Generic Writable implements {@link Configurable} interface, so that it will be
  10071. configured by the framework. The configuration is passed to the wrapped objects
  10072. implementing {@link Configurable} interface <i>before deserialization</i>.
  10073. </p>
  10074. how to use it: <br>
  10075. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  10076. 2. Implements the abstract method <code>getTypes()</code>, defines
  10077. the classes which will be wrapped in GenericObject in application.
  10078. Attention: this classes defined in <code>getTypes()</code> method, must
  10079. implement <code>Writable</code> interface.
  10080. <br><br>
  10081. The code looks like this:
  10082. <blockquote><pre>
  10083. public class GenericObject extends GenericWritable {
  10084. private static Class[] CLASSES = {
  10085. ClassType1.class,
  10086. ClassType2.class,
  10087. ClassType3.class,
  10088. };
  10089. protected Class[] getTypes() {
  10090. return CLASSES;
  10091. }
  10092. }
  10093. </pre></blockquote>
  10094. @since Nov 8, 2006]]>
  10095. </doc>
  10096. </class>
  10097. <!-- end class org.apache.hadoop.io.GenericWritable -->
  10098. <!-- start class org.apache.hadoop.io.InputBuffer -->
  10099. <class name="InputBuffer" extends="java.io.FilterInputStream"
  10100. abstract="false"
  10101. static="false" final="false" visibility="public"
  10102. deprecated="not deprecated">
  10103. <constructor name="InputBuffer"
  10104. static="false" final="false" visibility="public"
  10105. deprecated="not deprecated">
  10106. <doc>
  10107. <![CDATA[Constructs a new empty buffer.]]>
  10108. </doc>
  10109. </constructor>
  10110. <method name="reset"
  10111. abstract="false" native="false" synchronized="false"
  10112. static="false" final="false" visibility="public"
  10113. deprecated="not deprecated">
  10114. <param name="input" type="byte[]"/>
  10115. <param name="length" type="int"/>
  10116. <doc>
  10117. <![CDATA[Resets the data that the buffer reads.]]>
  10118. </doc>
  10119. </method>
  10120. <method name="reset"
  10121. abstract="false" native="false" synchronized="false"
  10122. static="false" final="false" visibility="public"
  10123. deprecated="not deprecated">
  10124. <param name="input" type="byte[]"/>
  10125. <param name="start" type="int"/>
  10126. <param name="length" type="int"/>
  10127. <doc>
  10128. <![CDATA[Resets the data that the buffer reads.]]>
  10129. </doc>
  10130. </method>
  10131. <method name="getPosition" return="int"
  10132. abstract="false" native="false" synchronized="false"
  10133. static="false" final="false" visibility="public"
  10134. deprecated="not deprecated">
  10135. <doc>
  10136. <![CDATA[Returns the current position in the input.]]>
  10137. </doc>
  10138. </method>
  10139. <method name="getLength" return="int"
  10140. abstract="false" native="false" synchronized="false"
  10141. static="false" final="false" visibility="public"
  10142. deprecated="not deprecated">
  10143. <doc>
  10144. <![CDATA[Returns the length of the input.]]>
  10145. </doc>
  10146. </method>
  10147. <doc>
  10148. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  10149. buffer.
  10150. <p>This saves memory over creating a new InputStream and
  10151. ByteArrayInputStream each time data is read.
  10152. <p>Typical usage is something like the following:<pre>
  10153. InputBuffer buffer = new InputBuffer();
  10154. while (... loop condition ...) {
  10155. byte[] data = ... get data ...;
  10156. int dataLength = ... get data length ...;
  10157. buffer.reset(data, dataLength);
  10158. ... read buffer using InputStream methods ...
  10159. }
  10160. </pre>
  10161. @see DataInputBuffer
  10162. @see DataOutput]]>
  10163. </doc>
  10164. </class>
  10165. <!-- end class org.apache.hadoop.io.InputBuffer -->
  10166. <!-- start class org.apache.hadoop.io.IntWritable -->
  10167. <class name="IntWritable" extends="java.lang.Object"
  10168. abstract="false"
  10169. static="false" final="false" visibility="public"
  10170. deprecated="not deprecated">
  10171. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10172. <constructor name="IntWritable"
  10173. static="false" final="false" visibility="public"
  10174. deprecated="not deprecated">
  10175. </constructor>
  10176. <constructor name="IntWritable" type="int"
  10177. static="false" final="false" visibility="public"
  10178. deprecated="not deprecated">
  10179. </constructor>
  10180. <method name="set"
  10181. abstract="false" native="false" synchronized="false"
  10182. static="false" final="false" visibility="public"
  10183. deprecated="not deprecated">
  10184. <param name="value" type="int"/>
  10185. <doc>
  10186. <![CDATA[Set the value of this IntWritable.]]>
  10187. </doc>
  10188. </method>
  10189. <method name="get" return="int"
  10190. abstract="false" native="false" synchronized="false"
  10191. static="false" final="false" visibility="public"
  10192. deprecated="not deprecated">
  10193. <doc>
  10194. <![CDATA[Return the value of this IntWritable.]]>
  10195. </doc>
  10196. </method>
  10197. <method name="readFields"
  10198. abstract="false" native="false" synchronized="false"
  10199. static="false" final="false" visibility="public"
  10200. deprecated="not deprecated">
  10201. <param name="in" type="java.io.DataInput"/>
  10202. <exception name="IOException" type="java.io.IOException"/>
  10203. </method>
  10204. <method name="write"
  10205. abstract="false" native="false" synchronized="false"
  10206. static="false" final="false" visibility="public"
  10207. deprecated="not deprecated">
  10208. <param name="out" type="java.io.DataOutput"/>
  10209. <exception name="IOException" type="java.io.IOException"/>
  10210. </method>
  10211. <method name="equals" return="boolean"
  10212. abstract="false" native="false" synchronized="false"
  10213. static="false" final="false" visibility="public"
  10214. deprecated="not deprecated">
  10215. <param name="o" type="java.lang.Object"/>
  10216. <doc>
  10217. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  10218. </doc>
  10219. </method>
  10220. <method name="hashCode" return="int"
  10221. abstract="false" native="false" synchronized="false"
  10222. static="false" final="false" visibility="public"
  10223. deprecated="not deprecated">
  10224. </method>
  10225. <method name="compareTo" return="int"
  10226. abstract="false" native="false" synchronized="false"
  10227. static="false" final="false" visibility="public"
  10228. deprecated="not deprecated">
  10229. <param name="o" type="java.lang.Object"/>
  10230. <doc>
  10231. <![CDATA[Compares two IntWritables.]]>
  10232. </doc>
  10233. </method>
  10234. <method name="toString" return="java.lang.String"
  10235. abstract="false" native="false" synchronized="false"
  10236. static="false" final="false" visibility="public"
  10237. deprecated="not deprecated">
  10238. </method>
  10239. <doc>
  10240. <![CDATA[A WritableComparable for ints.]]>
  10241. </doc>
  10242. </class>
  10243. <!-- end class org.apache.hadoop.io.IntWritable -->
  10244. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  10245. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10246. abstract="false"
  10247. static="true" final="false" visibility="public"
  10248. deprecated="not deprecated">
  10249. <constructor name="IntWritable.Comparator"
  10250. static="false" final="false" visibility="public"
  10251. deprecated="not deprecated">
  10252. </constructor>
  10253. <method name="compare" return="int"
  10254. abstract="false" native="false" synchronized="false"
  10255. static="false" final="false" visibility="public"
  10256. deprecated="not deprecated">
  10257. <param name="b1" type="byte[]"/>
  10258. <param name="s1" type="int"/>
  10259. <param name="l1" type="int"/>
  10260. <param name="b2" type="byte[]"/>
  10261. <param name="s2" type="int"/>
  10262. <param name="l2" type="int"/>
  10263. </method>
  10264. <doc>
  10265. <![CDATA[A Comparator optimized for IntWritable.]]>
  10266. </doc>
  10267. </class>
  10268. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  10269. <!-- start class org.apache.hadoop.io.IOUtils -->
  10270. <class name="IOUtils" extends="java.lang.Object"
  10271. abstract="false"
  10272. static="false" final="false" visibility="public"
  10273. deprecated="not deprecated">
  10274. <constructor name="IOUtils"
  10275. static="false" final="false" visibility="public"
  10276. deprecated="not deprecated">
  10277. </constructor>
  10278. <method name="copyBytes"
  10279. abstract="false" native="false" synchronized="false"
  10280. static="true" final="false" visibility="public"
  10281. deprecated="not deprecated">
  10282. <param name="in" type="java.io.InputStream"/>
  10283. <param name="out" type="java.io.OutputStream"/>
  10284. <param name="buffSize" type="int"/>
  10285. <param name="close" type="boolean"/>
  10286. <exception name="IOException" type="java.io.IOException"/>
  10287. <doc>
  10288. <![CDATA[Copies from one stream to another.
  10289. @param in InputStrem to read from
  10290. @param out OutputStream to write to
  10291. @param buffSize the size of the buffer
  10292. @param close whether or not close the InputStream and
  10293. OutputStream at the end. The streams are closed in the finally clause.]]>
  10294. </doc>
  10295. </method>
  10296. <method name="copyBytes"
  10297. abstract="false" native="false" synchronized="false"
  10298. static="true" final="false" visibility="public"
  10299. deprecated="not deprecated">
  10300. <param name="in" type="java.io.InputStream"/>
  10301. <param name="out" type="java.io.OutputStream"/>
  10302. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10303. <exception name="IOException" type="java.io.IOException"/>
  10304. <doc>
  10305. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  10306. at the end</strong>.
  10307. @param in InputStrem to read from
  10308. @param out OutputStream to write to
  10309. @param conf the Configuration object]]>
  10310. </doc>
  10311. </method>
  10312. <method name="copyBytes"
  10313. abstract="false" native="false" synchronized="false"
  10314. static="true" final="false" visibility="public"
  10315. deprecated="not deprecated">
  10316. <param name="in" type="java.io.InputStream"/>
  10317. <param name="out" type="java.io.OutputStream"/>
  10318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10319. <param name="close" type="boolean"/>
  10320. <exception name="IOException" type="java.io.IOException"/>
  10321. <doc>
  10322. <![CDATA[Copies from one stream to another.
  10323. @param in InputStrem to read from
  10324. @param out OutputStream to write to
  10325. @param conf the Configuration object
  10326. @param close whether or not close the InputStream and
  10327. OutputStream at the end. The streams are closed in the finally clause.]]>
  10328. </doc>
  10329. </method>
  10330. <method name="readFully"
  10331. abstract="false" native="false" synchronized="false"
  10332. static="true" final="false" visibility="public"
  10333. deprecated="not deprecated">
  10334. <param name="in" type="java.io.InputStream"/>
  10335. <param name="buf" type="byte[]"/>
  10336. <param name="off" type="int"/>
  10337. <param name="len" type="int"/>
  10338. <exception name="IOException" type="java.io.IOException"/>
  10339. <doc>
  10340. <![CDATA[Reads len bytes in a loop.
  10341. @param in The InputStream to read from
  10342. @param buf The buffer to fill
  10343. @param off offset from the buffer
  10344. @param len the length of bytes to read
  10345. @throws IOException if it could not read requested number of bytes
  10346. for any reason (including EOF)]]>
  10347. </doc>
  10348. </method>
  10349. <method name="skipFully"
  10350. abstract="false" native="false" synchronized="false"
  10351. static="true" final="false" visibility="public"
  10352. deprecated="not deprecated">
  10353. <param name="in" type="java.io.InputStream"/>
  10354. <param name="len" type="long"/>
  10355. <exception name="IOException" type="java.io.IOException"/>
  10356. <doc>
  10357. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  10358. @param in The InputStream to skip bytes from
  10359. @param len number of bytes to skip.
  10360. @throws IOException if it could not skip requested number of bytes
  10361. for any reason (including EOF)]]>
  10362. </doc>
  10363. </method>
  10364. <method name="cleanup"
  10365. abstract="false" native="false" synchronized="false"
  10366. static="true" final="false" visibility="public"
  10367. deprecated="not deprecated">
  10368. <param name="log" type="org.apache.commons.logging.Log"/>
  10369. <param name="closeables" type="java.io.Closeable[]"/>
  10370. <doc>
  10371. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  10372. null pointers. Must only be used for cleanup in exception handlers.
  10373. @param log the log to record problems to at debug level. Can be null.
  10374. @param closeables the objects to close]]>
  10375. </doc>
  10376. </method>
  10377. <method name="closeStream"
  10378. abstract="false" native="false" synchronized="false"
  10379. static="true" final="false" visibility="public"
  10380. deprecated="not deprecated">
  10381. <param name="stream" type="java.io.Closeable"/>
  10382. <doc>
  10383. <![CDATA[Closes the stream ignoring {@link IOException}.
  10384. Must only be called in cleaning up from exception handlers.
  10385. @param stream the Stream to close]]>
  10386. </doc>
  10387. </method>
  10388. <method name="closeSocket"
  10389. abstract="false" native="false" synchronized="false"
  10390. static="true" final="false" visibility="public"
  10391. deprecated="not deprecated">
  10392. <param name="sock" type="java.net.Socket"/>
  10393. <doc>
  10394. <![CDATA[Closes the socket ignoring {@link IOException}
  10395. @param sock the Socket to close]]>
  10396. </doc>
  10397. </method>
  10398. <doc>
  10399. <![CDATA[An utility class for I/O related functionality.]]>
  10400. </doc>
  10401. </class>
  10402. <!-- end class org.apache.hadoop.io.IOUtils -->
  10403. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  10404. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  10405. abstract="false"
  10406. static="true" final="false" visibility="public"
  10407. deprecated="not deprecated">
  10408. <constructor name="IOUtils.NullOutputStream"
  10409. static="false" final="false" visibility="public"
  10410. deprecated="not deprecated">
  10411. </constructor>
  10412. <method name="write"
  10413. abstract="false" native="false" synchronized="false"
  10414. static="false" final="false" visibility="public"
  10415. deprecated="not deprecated">
  10416. <param name="b" type="byte[]"/>
  10417. <param name="off" type="int"/>
  10418. <param name="len" type="int"/>
  10419. <exception name="IOException" type="java.io.IOException"/>
  10420. </method>
  10421. <method name="write"
  10422. abstract="false" native="false" synchronized="false"
  10423. static="false" final="false" visibility="public"
  10424. deprecated="not deprecated">
  10425. <param name="b" type="int"/>
  10426. <exception name="IOException" type="java.io.IOException"/>
  10427. </method>
  10428. <doc>
  10429. <![CDATA[/dev/null of OutputStreams.]]>
  10430. </doc>
  10431. </class>
  10432. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  10433. <!-- start class org.apache.hadoop.io.LongWritable -->
  10434. <class name="LongWritable" extends="java.lang.Object"
  10435. abstract="false"
  10436. static="false" final="false" visibility="public"
  10437. deprecated="not deprecated">
  10438. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10439. <constructor name="LongWritable"
  10440. static="false" final="false" visibility="public"
  10441. deprecated="not deprecated">
  10442. </constructor>
  10443. <constructor name="LongWritable" type="long"
  10444. static="false" final="false" visibility="public"
  10445. deprecated="not deprecated">
  10446. </constructor>
  10447. <method name="set"
  10448. abstract="false" native="false" synchronized="false"
  10449. static="false" final="false" visibility="public"
  10450. deprecated="not deprecated">
  10451. <param name="value" type="long"/>
  10452. <doc>
  10453. <![CDATA[Set the value of this LongWritable.]]>
  10454. </doc>
  10455. </method>
  10456. <method name="get" return="long"
  10457. abstract="false" native="false" synchronized="false"
  10458. static="false" final="false" visibility="public"
  10459. deprecated="not deprecated">
  10460. <doc>
  10461. <![CDATA[Return the value of this LongWritable.]]>
  10462. </doc>
  10463. </method>
  10464. <method name="readFields"
  10465. abstract="false" native="false" synchronized="false"
  10466. static="false" final="false" visibility="public"
  10467. deprecated="not deprecated">
  10468. <param name="in" type="java.io.DataInput"/>
  10469. <exception name="IOException" type="java.io.IOException"/>
  10470. </method>
  10471. <method name="write"
  10472. abstract="false" native="false" synchronized="false"
  10473. static="false" final="false" visibility="public"
  10474. deprecated="not deprecated">
  10475. <param name="out" type="java.io.DataOutput"/>
  10476. <exception name="IOException" type="java.io.IOException"/>
  10477. </method>
  10478. <method name="equals" return="boolean"
  10479. abstract="false" native="false" synchronized="false"
  10480. static="false" final="false" visibility="public"
  10481. deprecated="not deprecated">
  10482. <param name="o" type="java.lang.Object"/>
  10483. <doc>
  10484. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  10485. </doc>
  10486. </method>
  10487. <method name="hashCode" return="int"
  10488. abstract="false" native="false" synchronized="false"
  10489. static="false" final="false" visibility="public"
  10490. deprecated="not deprecated">
  10491. </method>
  10492. <method name="compareTo" return="int"
  10493. abstract="false" native="false" synchronized="false"
  10494. static="false" final="false" visibility="public"
  10495. deprecated="not deprecated">
  10496. <param name="o" type="java.lang.Object"/>
  10497. <doc>
  10498. <![CDATA[Compares two LongWritables.]]>
  10499. </doc>
  10500. </method>
  10501. <method name="toString" return="java.lang.String"
  10502. abstract="false" native="false" synchronized="false"
  10503. static="false" final="false" visibility="public"
  10504. deprecated="not deprecated">
  10505. </method>
  10506. <doc>
  10507. <![CDATA[A WritableComparable for longs.]]>
  10508. </doc>
  10509. </class>
  10510. <!-- end class org.apache.hadoop.io.LongWritable -->
  10511. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  10512. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10513. abstract="false"
  10514. static="true" final="false" visibility="public"
  10515. deprecated="not deprecated">
  10516. <constructor name="LongWritable.Comparator"
  10517. static="false" final="false" visibility="public"
  10518. deprecated="not deprecated">
  10519. </constructor>
  10520. <method name="compare" return="int"
  10521. abstract="false" native="false" synchronized="false"
  10522. static="false" final="false" visibility="public"
  10523. deprecated="not deprecated">
  10524. <param name="b1" type="byte[]"/>
  10525. <param name="s1" type="int"/>
  10526. <param name="l1" type="int"/>
  10527. <param name="b2" type="byte[]"/>
  10528. <param name="s2" type="int"/>
  10529. <param name="l2" type="int"/>
  10530. </method>
  10531. <doc>
  10532. <![CDATA[A Comparator optimized for LongWritable.]]>
  10533. </doc>
  10534. </class>
  10535. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  10536. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  10537. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  10538. abstract="false"
  10539. static="true" final="false" visibility="public"
  10540. deprecated="not deprecated">
  10541. <constructor name="LongWritable.DecreasingComparator"
  10542. static="false" final="false" visibility="public"
  10543. deprecated="not deprecated">
  10544. </constructor>
  10545. <method name="compare" return="int"
  10546. abstract="false" native="false" synchronized="false"
  10547. static="false" final="false" visibility="public"
  10548. deprecated="not deprecated">
  10549. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  10550. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  10551. </method>
  10552. <method name="compare" return="int"
  10553. abstract="false" native="false" synchronized="false"
  10554. static="false" final="false" visibility="public"
  10555. deprecated="not deprecated">
  10556. <param name="b1" type="byte[]"/>
  10557. <param name="s1" type="int"/>
  10558. <param name="l1" type="int"/>
  10559. <param name="b2" type="byte[]"/>
  10560. <param name="s2" type="int"/>
  10561. <param name="l2" type="int"/>
  10562. </method>
  10563. <doc>
  10564. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  10565. </doc>
  10566. </class>
  10567. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  10568. <!-- start class org.apache.hadoop.io.MapFile -->
  10569. <class name="MapFile" extends="java.lang.Object"
  10570. abstract="false"
  10571. static="false" final="false" visibility="public"
  10572. deprecated="not deprecated">
  10573. <constructor name="MapFile"
  10574. static="false" final="false" visibility="protected"
  10575. deprecated="not deprecated">
  10576. </constructor>
  10577. <method name="rename"
  10578. abstract="false" native="false" synchronized="false"
  10579. static="true" final="false" visibility="public"
  10580. deprecated="not deprecated">
  10581. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10582. <param name="oldName" type="java.lang.String"/>
  10583. <param name="newName" type="java.lang.String"/>
  10584. <exception name="IOException" type="java.io.IOException"/>
  10585. <doc>
  10586. <![CDATA[Renames an existing map directory.]]>
  10587. </doc>
  10588. </method>
  10589. <method name="delete"
  10590. abstract="false" native="false" synchronized="false"
  10591. static="true" final="false" visibility="public"
  10592. deprecated="not deprecated">
  10593. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10594. <param name="name" type="java.lang.String"/>
  10595. <exception name="IOException" type="java.io.IOException"/>
  10596. <doc>
  10597. <![CDATA[Deletes the named map file.]]>
  10598. </doc>
  10599. </method>
  10600. <method name="fix" return="long"
  10601. abstract="false" native="false" synchronized="false"
  10602. static="true" final="false" visibility="public"
  10603. deprecated="not deprecated">
  10604. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10605. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  10606. <param name="keyClass" type="java.lang.Class"/>
  10607. <param name="valueClass" type="java.lang.Class"/>
  10608. <param name="dryrun" type="boolean"/>
  10609. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10610. <exception name="Exception" type="java.lang.Exception"/>
  10611. <doc>
  10612. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  10613. @param fs filesystem
  10614. @param dir directory containing the MapFile data and index
  10615. @param keyClass key class (has to be a subclass of Writable)
  10616. @param valueClass value class (has to be a subclass of Writable)
  10617. @param dryrun do not perform any changes, just report what needs to be done
  10618. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  10619. @throws Exception]]>
  10620. </doc>
  10621. </method>
  10622. <method name="main"
  10623. abstract="false" native="false" synchronized="false"
  10624. static="true" final="false" visibility="public"
  10625. deprecated="not deprecated">
  10626. <param name="args" type="java.lang.String[]"/>
  10627. <exception name="Exception" type="java.lang.Exception"/>
  10628. </method>
  10629. <field name="INDEX_FILE_NAME" type="java.lang.String"
  10630. transient="false" volatile="false"
  10631. static="true" final="true" visibility="public"
  10632. deprecated="not deprecated">
  10633. <doc>
  10634. <![CDATA[The name of the index file.]]>
  10635. </doc>
  10636. </field>
  10637. <field name="DATA_FILE_NAME" type="java.lang.String"
  10638. transient="false" volatile="false"
  10639. static="true" final="true" visibility="public"
  10640. deprecated="not deprecated">
  10641. <doc>
  10642. <![CDATA[The name of the data file.]]>
  10643. </doc>
  10644. </field>
  10645. <doc>
  10646. <![CDATA[A file-based map from keys to values.
  10647. <p>A map is a directory containing two files, the <code>data</code> file,
  10648. containing all keys and values in the map, and a smaller <code>index</code>
  10649. file, containing a fraction of the keys. The fraction is determined by
  10650. {@link Writer#getIndexInterval()}.
  10651. <p>The index file is read entirely into memory. Thus key implementations
  10652. should try to keep themselves small.
  10653. <p>Map files are created by adding entries in-order. To maintain a large
  10654. database, perform updates by copying the previous version of a database and
  10655. merging in a sorted change list, to create a new version of the database in
  10656. a new file. Sorting large change lists can be done with {@link
  10657. SequenceFile.Sorter}.]]>
  10658. </doc>
  10659. </class>
  10660. <!-- end class org.apache.hadoop.io.MapFile -->
  10661. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  10662. <class name="MapFile.Reader" extends="java.lang.Object"
  10663. abstract="false"
  10664. static="true" final="false" visibility="public"
  10665. deprecated="not deprecated">
  10666. <implements name="java.io.Closeable"/>
  10667. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  10668. static="false" final="false" visibility="public"
  10669. deprecated="not deprecated">
  10670. <exception name="IOException" type="java.io.IOException"/>
  10671. <doc>
  10672. <![CDATA[Construct a map reader for the named map.]]>
  10673. </doc>
  10674. </constructor>
  10675. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  10676. static="false" final="false" visibility="public"
  10677. deprecated="not deprecated">
  10678. <exception name="IOException" type="java.io.IOException"/>
  10679. <doc>
  10680. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  10681. </doc>
  10682. </constructor>
  10683. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  10684. static="false" final="false" visibility="protected"
  10685. deprecated="not deprecated">
  10686. <exception name="IOException" type="java.io.IOException"/>
  10687. <doc>
  10688. <![CDATA[Hook to allow subclasses to defer opening streams until further
  10689. initialization is complete.
  10690. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  10691. </doc>
  10692. </constructor>
  10693. <method name="getKeyClass" return="java.lang.Class"
  10694. abstract="false" native="false" synchronized="false"
  10695. static="false" final="false" visibility="public"
  10696. deprecated="not deprecated">
  10697. <doc>
  10698. <![CDATA[Returns the class of keys in this file.]]>
  10699. </doc>
  10700. </method>
  10701. <method name="getValueClass" return="java.lang.Class"
  10702. abstract="false" native="false" synchronized="false"
  10703. static="false" final="false" visibility="public"
  10704. deprecated="not deprecated">
  10705. <doc>
  10706. <![CDATA[Returns the class of values in this file.]]>
  10707. </doc>
  10708. </method>
  10709. <method name="open"
  10710. abstract="false" native="false" synchronized="true"
  10711. static="false" final="false" visibility="protected"
  10712. deprecated="not deprecated">
  10713. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10714. <param name="dirName" type="java.lang.String"/>
  10715. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  10716. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10717. <exception name="IOException" type="java.io.IOException"/>
  10718. </method>
  10719. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  10720. abstract="false" native="false" synchronized="false"
  10721. static="false" final="false" visibility="protected"
  10722. deprecated="not deprecated">
  10723. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10724. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  10725. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10726. <exception name="IOException" type="java.io.IOException"/>
  10727. <doc>
  10728. <![CDATA[Override this method to specialize the type of
  10729. {@link SequenceFile.Reader} returned.]]>
  10730. </doc>
  10731. </method>
  10732. <method name="reset"
  10733. abstract="false" native="false" synchronized="true"
  10734. static="false" final="false" visibility="public"
  10735. deprecated="not deprecated">
  10736. <exception name="IOException" type="java.io.IOException"/>
  10737. <doc>
  10738. <![CDATA[Re-positions the reader before its first key.]]>
  10739. </doc>
  10740. </method>
  10741. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  10742. abstract="false" native="false" synchronized="true"
  10743. static="false" final="false" visibility="public"
  10744. deprecated="not deprecated">
  10745. <exception name="IOException" type="java.io.IOException"/>
  10746. <doc>
  10747. <![CDATA[Get the key at approximately the middle of the file.
  10748. @throws IOException]]>
  10749. </doc>
  10750. </method>
  10751. <method name="finalKey"
  10752. abstract="false" native="false" synchronized="true"
  10753. static="false" final="false" visibility="public"
  10754. deprecated="not deprecated">
  10755. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10756. <exception name="IOException" type="java.io.IOException"/>
  10757. <doc>
  10758. <![CDATA[Reads the final key from the file.
  10759. @param key key to read into]]>
  10760. </doc>
  10761. </method>
  10762. <method name="seek" return="boolean"
  10763. abstract="false" native="false" synchronized="true"
  10764. static="false" final="false" visibility="public"
  10765. deprecated="not deprecated">
  10766. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10767. <exception name="IOException" type="java.io.IOException"/>
  10768. <doc>
  10769. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  10770. first entry after the named key. Returns true iff the named key exists
  10771. in this map.]]>
  10772. </doc>
  10773. </method>
  10774. <method name="next" return="boolean"
  10775. abstract="false" native="false" synchronized="true"
  10776. static="false" final="false" visibility="public"
  10777. deprecated="not deprecated">
  10778. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10779. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10780. <exception name="IOException" type="java.io.IOException"/>
  10781. <doc>
  10782. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  10783. <code>val</code>. Returns true if such a pair exists and false when at
  10784. the end of the map]]>
  10785. </doc>
  10786. </method>
  10787. <method name="get" return="org.apache.hadoop.io.Writable"
  10788. abstract="false" native="false" synchronized="true"
  10789. static="false" final="false" visibility="public"
  10790. deprecated="not deprecated">
  10791. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10792. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10793. <exception name="IOException" type="java.io.IOException"/>
  10794. <doc>
  10795. <![CDATA[Return the value for the named key, or null if none exists.]]>
  10796. </doc>
  10797. </method>
  10798. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  10799. abstract="false" native="false" synchronized="true"
  10800. static="false" final="false" visibility="public"
  10801. deprecated="not deprecated">
  10802. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10803. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10804. <exception name="IOException" type="java.io.IOException"/>
  10805. <doc>
  10806. <![CDATA[Finds the record that is the closest match to the specified key.
  10807. Returns <code>key</code> or if it does not exist, at the first entry
  10808. after the named key.
  10809. - * @param key - key that we're trying to find
  10810. - * @param val - data value if key is found
  10811. - * @return - the key that was the closest match or null if eof.]]>
  10812. </doc>
  10813. </method>
  10814. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  10815. abstract="false" native="false" synchronized="true"
  10816. static="false" final="false" visibility="public"
  10817. deprecated="not deprecated">
  10818. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10819. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10820. <param name="before" type="boolean"/>
  10821. <exception name="IOException" type="java.io.IOException"/>
  10822. <doc>
  10823. <![CDATA[Finds the record that is the closest match to the specified key.
  10824. @param key - key that we're trying to find
  10825. @param val - data value if key is found
  10826. @param before - IF true, and <code>key</code> does not exist, return
  10827. the first entry that falls just before the <code>key</code>. Otherwise,
  10828. return the record that sorts just after.
  10829. @return - the key that was the closest match or null if eof.]]>
  10830. </doc>
  10831. </method>
  10832. <method name="close"
  10833. abstract="false" native="false" synchronized="true"
  10834. static="false" final="false" visibility="public"
  10835. deprecated="not deprecated">
  10836. <exception name="IOException" type="java.io.IOException"/>
  10837. <doc>
  10838. <![CDATA[Close the map.]]>
  10839. </doc>
  10840. </method>
  10841. <doc>
  10842. <![CDATA[Provide access to an existing map.]]>
  10843. </doc>
  10844. </class>
  10845. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  10846. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  10847. <class name="MapFile.Writer" extends="java.lang.Object"
  10848. abstract="false"
  10849. static="true" final="false" visibility="public"
  10850. deprecated="not deprecated">
  10851. <implements name="java.io.Closeable"/>
  10852. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  10853. static="false" final="false" visibility="public"
  10854. deprecated="not deprecated">
  10855. <exception name="IOException" type="java.io.IOException"/>
  10856. <doc>
  10857. <![CDATA[Create the named map for keys of the named class.]]>
  10858. </doc>
  10859. </constructor>
  10860. <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"
  10861. static="false" final="false" visibility="public"
  10862. deprecated="not deprecated">
  10863. <exception name="IOException" type="java.io.IOException"/>
  10864. <doc>
  10865. <![CDATA[Create the named map for keys of the named class.]]>
  10866. </doc>
  10867. </constructor>
  10868. <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"
  10869. static="false" final="false" visibility="public"
  10870. deprecated="not deprecated">
  10871. <exception name="IOException" type="java.io.IOException"/>
  10872. <doc>
  10873. <![CDATA[Create the named map for keys of the named class.]]>
  10874. </doc>
  10875. </constructor>
  10876. <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"
  10877. static="false" final="false" visibility="public"
  10878. deprecated="not deprecated">
  10879. <exception name="IOException" type="java.io.IOException"/>
  10880. <doc>
  10881. <![CDATA[Create the named map for keys of the named class.]]>
  10882. </doc>
  10883. </constructor>
  10884. <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"
  10885. static="false" final="false" visibility="public"
  10886. deprecated="not deprecated">
  10887. <exception name="IOException" type="java.io.IOException"/>
  10888. <doc>
  10889. <![CDATA[Create the named map using the named key comparator.]]>
  10890. </doc>
  10891. </constructor>
  10892. <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"
  10893. static="false" final="false" visibility="public"
  10894. deprecated="not deprecated">
  10895. <exception name="IOException" type="java.io.IOException"/>
  10896. <doc>
  10897. <![CDATA[Create the named map using the named key comparator.]]>
  10898. </doc>
  10899. </constructor>
  10900. <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"
  10901. static="false" final="false" visibility="public"
  10902. deprecated="not deprecated">
  10903. <exception name="IOException" type="java.io.IOException"/>
  10904. <doc>
  10905. <![CDATA[Create the named map using the named key comparator.]]>
  10906. </doc>
  10907. </constructor>
  10908. <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"
  10909. static="false" final="false" visibility="public"
  10910. deprecated="not deprecated">
  10911. <exception name="IOException" type="java.io.IOException"/>
  10912. <doc>
  10913. <![CDATA[Create the named map using the named key comparator.]]>
  10914. </doc>
  10915. </constructor>
  10916. <method name="getIndexInterval" return="int"
  10917. abstract="false" native="false" synchronized="false"
  10918. static="false" final="false" visibility="public"
  10919. deprecated="not deprecated">
  10920. <doc>
  10921. <![CDATA[The number of entries that are added before an index entry is added.]]>
  10922. </doc>
  10923. </method>
  10924. <method name="setIndexInterval"
  10925. abstract="false" native="false" synchronized="false"
  10926. static="false" final="false" visibility="public"
  10927. deprecated="not deprecated">
  10928. <param name="interval" type="int"/>
  10929. <doc>
  10930. <![CDATA[Sets the index interval.
  10931. @see #getIndexInterval()]]>
  10932. </doc>
  10933. </method>
  10934. <method name="setIndexInterval"
  10935. abstract="false" native="false" synchronized="false"
  10936. static="true" final="false" visibility="public"
  10937. deprecated="not deprecated">
  10938. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10939. <param name="interval" type="int"/>
  10940. <doc>
  10941. <![CDATA[Sets the index interval and stores it in conf
  10942. @see #getIndexInterval()]]>
  10943. </doc>
  10944. </method>
  10945. <method name="close"
  10946. abstract="false" native="false" synchronized="true"
  10947. static="false" final="false" visibility="public"
  10948. deprecated="not deprecated">
  10949. <exception name="IOException" type="java.io.IOException"/>
  10950. <doc>
  10951. <![CDATA[Close the map.]]>
  10952. </doc>
  10953. </method>
  10954. <method name="append"
  10955. abstract="false" native="false" synchronized="true"
  10956. static="false" final="false" visibility="public"
  10957. deprecated="not deprecated">
  10958. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10959. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10960. <exception name="IOException" type="java.io.IOException"/>
  10961. <doc>
  10962. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  10963. to the previous key added to the map.]]>
  10964. </doc>
  10965. </method>
  10966. <doc>
  10967. <![CDATA[Writes a new map.]]>
  10968. </doc>
  10969. </class>
  10970. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  10971. <!-- start class org.apache.hadoop.io.MapWritable -->
  10972. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  10973. abstract="false"
  10974. static="false" final="false" visibility="public"
  10975. deprecated="not deprecated">
  10976. <implements name="java.util.Map"/>
  10977. <constructor name="MapWritable"
  10978. static="false" final="false" visibility="public"
  10979. deprecated="not deprecated">
  10980. <doc>
  10981. <![CDATA[Default constructor.]]>
  10982. </doc>
  10983. </constructor>
  10984. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  10985. static="false" final="false" visibility="public"
  10986. deprecated="not deprecated">
  10987. <doc>
  10988. <![CDATA[Copy constructor.
  10989. @param other the map to copy from]]>
  10990. </doc>
  10991. </constructor>
  10992. <method name="clear"
  10993. abstract="false" native="false" synchronized="false"
  10994. static="false" final="false" visibility="public"
  10995. deprecated="not deprecated">
  10996. <doc>
  10997. <![CDATA[{@inheritDoc}]]>
  10998. </doc>
  10999. </method>
  11000. <method name="containsKey" return="boolean"
  11001. abstract="false" native="false" synchronized="false"
  11002. static="false" final="false" visibility="public"
  11003. deprecated="not deprecated">
  11004. <param name="key" type="java.lang.Object"/>
  11005. <doc>
  11006. <![CDATA[{@inheritDoc}]]>
  11007. </doc>
  11008. </method>
  11009. <method name="containsValue" return="boolean"
  11010. abstract="false" native="false" synchronized="false"
  11011. static="false" final="false" visibility="public"
  11012. deprecated="not deprecated">
  11013. <param name="value" type="java.lang.Object"/>
  11014. <doc>
  11015. <![CDATA[{@inheritDoc}]]>
  11016. </doc>
  11017. </method>
  11018. <method name="entrySet" return="java.util.Set"
  11019. abstract="false" native="false" synchronized="false"
  11020. static="false" final="false" visibility="public"
  11021. deprecated="not deprecated">
  11022. <doc>
  11023. <![CDATA[{@inheritDoc}]]>
  11024. </doc>
  11025. </method>
  11026. <method name="get" return="org.apache.hadoop.io.Writable"
  11027. abstract="false" native="false" synchronized="false"
  11028. static="false" final="false" visibility="public"
  11029. deprecated="not deprecated">
  11030. <param name="key" type="java.lang.Object"/>
  11031. <doc>
  11032. <![CDATA[{@inheritDoc}]]>
  11033. </doc>
  11034. </method>
  11035. <method name="isEmpty" return="boolean"
  11036. abstract="false" native="false" synchronized="false"
  11037. static="false" final="false" visibility="public"
  11038. deprecated="not deprecated">
  11039. <doc>
  11040. <![CDATA[{@inheritDoc}]]>
  11041. </doc>
  11042. </method>
  11043. <method name="keySet" return="java.util.Set"
  11044. abstract="false" native="false" synchronized="false"
  11045. static="false" final="false" visibility="public"
  11046. deprecated="not deprecated">
  11047. <doc>
  11048. <![CDATA[{@inheritDoc}]]>
  11049. </doc>
  11050. </method>
  11051. <method name="put" return="org.apache.hadoop.io.Writable"
  11052. abstract="false" native="false" synchronized="false"
  11053. static="false" final="false" visibility="public"
  11054. deprecated="not deprecated">
  11055. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11056. <param name="value" type="org.apache.hadoop.io.Writable"/>
  11057. <doc>
  11058. <![CDATA[{@inheritDoc}]]>
  11059. </doc>
  11060. </method>
  11061. <method name="putAll"
  11062. abstract="false" native="false" synchronized="false"
  11063. static="false" final="false" visibility="public"
  11064. deprecated="not deprecated">
  11065. <param name="t" type="java.util.Map"/>
  11066. <doc>
  11067. <![CDATA[{@inheritDoc}]]>
  11068. </doc>
  11069. </method>
  11070. <method name="remove" return="org.apache.hadoop.io.Writable"
  11071. abstract="false" native="false" synchronized="false"
  11072. static="false" final="false" visibility="public"
  11073. deprecated="not deprecated">
  11074. <param name="key" type="java.lang.Object"/>
  11075. <doc>
  11076. <![CDATA[{@inheritDoc}]]>
  11077. </doc>
  11078. </method>
  11079. <method name="size" return="int"
  11080. abstract="false" native="false" synchronized="false"
  11081. static="false" final="false" visibility="public"
  11082. deprecated="not deprecated">
  11083. <doc>
  11084. <![CDATA[{@inheritDoc}]]>
  11085. </doc>
  11086. </method>
  11087. <method name="values" return="java.util.Collection"
  11088. abstract="false" native="false" synchronized="false"
  11089. static="false" final="false" visibility="public"
  11090. deprecated="not deprecated">
  11091. <doc>
  11092. <![CDATA[{@inheritDoc}]]>
  11093. </doc>
  11094. </method>
  11095. <method name="write"
  11096. abstract="false" native="false" synchronized="false"
  11097. static="false" final="false" visibility="public"
  11098. deprecated="not deprecated">
  11099. <param name="out" type="java.io.DataOutput"/>
  11100. <exception name="IOException" type="java.io.IOException"/>
  11101. <doc>
  11102. <![CDATA[{@inheritDoc}]]>
  11103. </doc>
  11104. </method>
  11105. <method name="readFields"
  11106. abstract="false" native="false" synchronized="false"
  11107. static="false" final="false" visibility="public"
  11108. deprecated="not deprecated">
  11109. <param name="in" type="java.io.DataInput"/>
  11110. <exception name="IOException" type="java.io.IOException"/>
  11111. <doc>
  11112. <![CDATA[{@inheritDoc}]]>
  11113. </doc>
  11114. </method>
  11115. <doc>
  11116. <![CDATA[A Writable Map.]]>
  11117. </doc>
  11118. </class>
  11119. <!-- end class org.apache.hadoop.io.MapWritable -->
  11120. <!-- start class org.apache.hadoop.io.MD5Hash -->
  11121. <class name="MD5Hash" extends="java.lang.Object"
  11122. abstract="false"
  11123. static="false" final="false" visibility="public"
  11124. deprecated="not deprecated">
  11125. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11126. <constructor name="MD5Hash"
  11127. static="false" final="false" visibility="public"
  11128. deprecated="not deprecated">
  11129. <doc>
  11130. <![CDATA[Constructs an MD5Hash.]]>
  11131. </doc>
  11132. </constructor>
  11133. <constructor name="MD5Hash" type="java.lang.String"
  11134. static="false" final="false" visibility="public"
  11135. deprecated="not deprecated">
  11136. <doc>
  11137. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  11138. </doc>
  11139. </constructor>
  11140. <constructor name="MD5Hash" type="byte[]"
  11141. static="false" final="false" visibility="public"
  11142. deprecated="not deprecated">
  11143. <doc>
  11144. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  11145. </doc>
  11146. </constructor>
  11147. <method name="readFields"
  11148. abstract="false" native="false" synchronized="false"
  11149. static="false" final="false" visibility="public"
  11150. deprecated="not deprecated">
  11151. <param name="in" type="java.io.DataInput"/>
  11152. <exception name="IOException" type="java.io.IOException"/>
  11153. </method>
  11154. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  11155. abstract="false" native="false" synchronized="false"
  11156. static="true" final="false" visibility="public"
  11157. deprecated="not deprecated">
  11158. <param name="in" type="java.io.DataInput"/>
  11159. <exception name="IOException" type="java.io.IOException"/>
  11160. <doc>
  11161. <![CDATA[Constructs, reads and returns an instance.]]>
  11162. </doc>
  11163. </method>
  11164. <method name="write"
  11165. abstract="false" native="false" synchronized="false"
  11166. static="false" final="false" visibility="public"
  11167. deprecated="not deprecated">
  11168. <param name="out" type="java.io.DataOutput"/>
  11169. <exception name="IOException" type="java.io.IOException"/>
  11170. </method>
  11171. <method name="set"
  11172. abstract="false" native="false" synchronized="false"
  11173. static="false" final="false" visibility="public"
  11174. deprecated="not deprecated">
  11175. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  11176. <doc>
  11177. <![CDATA[Copy the contents of another instance into this instance.]]>
  11178. </doc>
  11179. </method>
  11180. <method name="getDigest" return="byte[]"
  11181. abstract="false" native="false" synchronized="false"
  11182. static="false" final="false" visibility="public"
  11183. deprecated="not deprecated">
  11184. <doc>
  11185. <![CDATA[Returns the digest bytes.]]>
  11186. </doc>
  11187. </method>
  11188. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11189. abstract="false" native="false" synchronized="false"
  11190. static="true" final="false" visibility="public"
  11191. deprecated="not deprecated">
  11192. <param name="data" type="byte[]"/>
  11193. <doc>
  11194. <![CDATA[Construct a hash value for a byte array.]]>
  11195. </doc>
  11196. </method>
  11197. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11198. abstract="false" native="false" synchronized="false"
  11199. static="true" final="false" visibility="public"
  11200. deprecated="not deprecated">
  11201. <param name="in" type="java.io.InputStream"/>
  11202. <exception name="IOException" type="java.io.IOException"/>
  11203. <doc>
  11204. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  11205. </doc>
  11206. </method>
  11207. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11208. abstract="false" native="false" synchronized="false"
  11209. static="true" final="false" visibility="public"
  11210. deprecated="not deprecated">
  11211. <param name="data" type="byte[]"/>
  11212. <param name="start" type="int"/>
  11213. <param name="len" type="int"/>
  11214. <doc>
  11215. <![CDATA[Construct a hash value for a byte array.]]>
  11216. </doc>
  11217. </method>
  11218. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11219. abstract="false" native="false" synchronized="false"
  11220. static="true" final="false" visibility="public"
  11221. deprecated="not deprecated">
  11222. <param name="string" type="java.lang.String"/>
  11223. <doc>
  11224. <![CDATA[Construct a hash value for a String.]]>
  11225. </doc>
  11226. </method>
  11227. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11228. abstract="false" native="false" synchronized="false"
  11229. static="true" final="false" visibility="public"
  11230. deprecated="not deprecated">
  11231. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  11232. <doc>
  11233. <![CDATA[Construct a hash value for a String.]]>
  11234. </doc>
  11235. </method>
  11236. <method name="halfDigest" return="long"
  11237. abstract="false" native="false" synchronized="false"
  11238. static="false" final="false" visibility="public"
  11239. deprecated="not deprecated">
  11240. <doc>
  11241. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  11242. </doc>
  11243. </method>
  11244. <method name="quarterDigest" return="int"
  11245. abstract="false" native="false" synchronized="false"
  11246. static="false" final="false" visibility="public"
  11247. deprecated="not deprecated">
  11248. <doc>
  11249. <![CDATA[Return a 32-bit digest of the MD5.
  11250. @return the first 4 bytes of the md5]]>
  11251. </doc>
  11252. </method>
  11253. <method name="equals" return="boolean"
  11254. abstract="false" native="false" synchronized="false"
  11255. static="false" final="false" visibility="public"
  11256. deprecated="not deprecated">
  11257. <param name="o" type="java.lang.Object"/>
  11258. <doc>
  11259. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  11260. same values.]]>
  11261. </doc>
  11262. </method>
  11263. <method name="hashCode" return="int"
  11264. abstract="false" native="false" synchronized="false"
  11265. static="false" final="false" visibility="public"
  11266. deprecated="not deprecated">
  11267. <doc>
  11268. <![CDATA[Returns a hash code value for this object.
  11269. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  11270. </doc>
  11271. </method>
  11272. <method name="compareTo" return="int"
  11273. abstract="false" native="false" synchronized="false"
  11274. static="false" final="false" visibility="public"
  11275. deprecated="not deprecated">
  11276. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  11277. <doc>
  11278. <![CDATA[Compares this object with the specified object for order.]]>
  11279. </doc>
  11280. </method>
  11281. <method name="toString" return="java.lang.String"
  11282. abstract="false" native="false" synchronized="false"
  11283. static="false" final="false" visibility="public"
  11284. deprecated="not deprecated">
  11285. <doc>
  11286. <![CDATA[Returns a string representation of this object.]]>
  11287. </doc>
  11288. </method>
  11289. <method name="setDigest"
  11290. abstract="false" native="false" synchronized="false"
  11291. static="false" final="false" visibility="public"
  11292. deprecated="not deprecated">
  11293. <param name="hex" type="java.lang.String"/>
  11294. <doc>
  11295. <![CDATA[Sets the digest value from a hex string.]]>
  11296. </doc>
  11297. </method>
  11298. <field name="MD5_LEN" type="int"
  11299. transient="false" volatile="false"
  11300. static="true" final="true" visibility="public"
  11301. deprecated="not deprecated">
  11302. </field>
  11303. <doc>
  11304. <![CDATA[A Writable for MD5 hash values.]]>
  11305. </doc>
  11306. </class>
  11307. <!-- end class org.apache.hadoop.io.MD5Hash -->
  11308. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  11309. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11310. abstract="false"
  11311. static="true" final="false" visibility="public"
  11312. deprecated="not deprecated">
  11313. <constructor name="MD5Hash.Comparator"
  11314. static="false" final="false" visibility="public"
  11315. deprecated="not deprecated">
  11316. </constructor>
  11317. <method name="compare" return="int"
  11318. abstract="false" native="false" synchronized="false"
  11319. static="false" final="false" visibility="public"
  11320. deprecated="not deprecated">
  11321. <param name="b1" type="byte[]"/>
  11322. <param name="s1" type="int"/>
  11323. <param name="l1" type="int"/>
  11324. <param name="b2" type="byte[]"/>
  11325. <param name="s2" type="int"/>
  11326. <param name="l2" type="int"/>
  11327. </method>
  11328. <doc>
  11329. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  11330. </doc>
  11331. </class>
  11332. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  11333. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  11334. <class name="MultipleIOException" extends="java.io.IOException"
  11335. abstract="false"
  11336. static="false" final="false" visibility="public"
  11337. deprecated="not deprecated">
  11338. <method name="getExceptions" return="java.util.List"
  11339. abstract="false" native="false" synchronized="false"
  11340. static="false" final="false" visibility="public"
  11341. deprecated="not deprecated">
  11342. <doc>
  11343. <![CDATA[@return the underlying exceptions]]>
  11344. </doc>
  11345. </method>
  11346. <method name="createIOException" return="java.io.IOException"
  11347. abstract="false" native="false" synchronized="false"
  11348. static="true" final="false" visibility="public"
  11349. deprecated="not deprecated">
  11350. <param name="exceptions" type="java.util.List"/>
  11351. <doc>
  11352. <![CDATA[A convenient method to create an {@link IOException}.]]>
  11353. </doc>
  11354. </method>
  11355. <doc>
  11356. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  11357. </doc>
  11358. </class>
  11359. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  11360. <!-- start class org.apache.hadoop.io.NullWritable -->
  11361. <class name="NullWritable" extends="java.lang.Object"
  11362. abstract="false"
  11363. static="false" final="false" visibility="public"
  11364. deprecated="not deprecated">
  11365. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11366. <method name="get" return="org.apache.hadoop.io.NullWritable"
  11367. abstract="false" native="false" synchronized="false"
  11368. static="true" final="false" visibility="public"
  11369. deprecated="not deprecated">
  11370. <doc>
  11371. <![CDATA[Returns the single instance of this class.]]>
  11372. </doc>
  11373. </method>
  11374. <method name="toString" return="java.lang.String"
  11375. abstract="false" native="false" synchronized="false"
  11376. static="false" final="false" visibility="public"
  11377. deprecated="not deprecated">
  11378. </method>
  11379. <method name="hashCode" return="int"
  11380. abstract="false" native="false" synchronized="false"
  11381. static="false" final="false" visibility="public"
  11382. deprecated="not deprecated">
  11383. </method>
  11384. <method name="compareTo" return="int"
  11385. abstract="false" native="false" synchronized="false"
  11386. static="false" final="false" visibility="public"
  11387. deprecated="not deprecated">
  11388. <param name="other" type="java.lang.Object"/>
  11389. </method>
  11390. <method name="equals" return="boolean"
  11391. abstract="false" native="false" synchronized="false"
  11392. static="false" final="false" visibility="public"
  11393. deprecated="not deprecated">
  11394. <param name="other" type="java.lang.Object"/>
  11395. </method>
  11396. <method name="readFields"
  11397. abstract="false" native="false" synchronized="false"
  11398. static="false" final="false" visibility="public"
  11399. deprecated="not deprecated">
  11400. <param name="in" type="java.io.DataInput"/>
  11401. <exception name="IOException" type="java.io.IOException"/>
  11402. </method>
  11403. <method name="write"
  11404. abstract="false" native="false" synchronized="false"
  11405. static="false" final="false" visibility="public"
  11406. deprecated="not deprecated">
  11407. <param name="out" type="java.io.DataOutput"/>
  11408. <exception name="IOException" type="java.io.IOException"/>
  11409. </method>
  11410. <doc>
  11411. <![CDATA[Singleton Writable with no data.]]>
  11412. </doc>
  11413. </class>
  11414. <!-- end class org.apache.hadoop.io.NullWritable -->
  11415. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  11416. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11417. abstract="false"
  11418. static="true" final="false" visibility="public"
  11419. deprecated="not deprecated">
  11420. <constructor name="NullWritable.Comparator"
  11421. static="false" final="false" visibility="public"
  11422. deprecated="not deprecated">
  11423. </constructor>
  11424. <method name="compare" return="int"
  11425. abstract="false" native="false" synchronized="false"
  11426. static="false" final="false" visibility="public"
  11427. deprecated="not deprecated">
  11428. <param name="b1" type="byte[]"/>
  11429. <param name="s1" type="int"/>
  11430. <param name="l1" type="int"/>
  11431. <param name="b2" type="byte[]"/>
  11432. <param name="s2" type="int"/>
  11433. <param name="l2" type="int"/>
  11434. <doc>
  11435. <![CDATA[Compare the buffers in serialized form.]]>
  11436. </doc>
  11437. </method>
  11438. <doc>
  11439. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  11440. </doc>
  11441. </class>
  11442. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  11443. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  11444. <class name="ObjectWritable" extends="java.lang.Object"
  11445. abstract="false"
  11446. static="false" final="false" visibility="public"
  11447. deprecated="not deprecated">
  11448. <implements name="org.apache.hadoop.io.Writable"/>
  11449. <implements name="org.apache.hadoop.conf.Configurable"/>
  11450. <constructor name="ObjectWritable"
  11451. static="false" final="false" visibility="public"
  11452. deprecated="not deprecated">
  11453. </constructor>
  11454. <constructor name="ObjectWritable" type="java.lang.Object"
  11455. static="false" final="false" visibility="public"
  11456. deprecated="not deprecated">
  11457. </constructor>
  11458. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  11459. static="false" final="false" visibility="public"
  11460. deprecated="not deprecated">
  11461. </constructor>
  11462. <method name="get" return="java.lang.Object"
  11463. abstract="false" native="false" synchronized="false"
  11464. static="false" final="false" visibility="public"
  11465. deprecated="not deprecated">
  11466. <doc>
  11467. <![CDATA[Return the instance, or null if none.]]>
  11468. </doc>
  11469. </method>
  11470. <method name="getDeclaredClass" return="java.lang.Class"
  11471. abstract="false" native="false" synchronized="false"
  11472. static="false" final="false" visibility="public"
  11473. deprecated="not deprecated">
  11474. <doc>
  11475. <![CDATA[Return the class this is meant to be.]]>
  11476. </doc>
  11477. </method>
  11478. <method name="set"
  11479. abstract="false" native="false" synchronized="false"
  11480. static="false" final="false" visibility="public"
  11481. deprecated="not deprecated">
  11482. <param name="instance" type="java.lang.Object"/>
  11483. <doc>
  11484. <![CDATA[Reset the instance.]]>
  11485. </doc>
  11486. </method>
  11487. <method name="toString" return="java.lang.String"
  11488. abstract="false" native="false" synchronized="false"
  11489. static="false" final="false" visibility="public"
  11490. deprecated="not deprecated">
  11491. </method>
  11492. <method name="readFields"
  11493. abstract="false" native="false" synchronized="false"
  11494. static="false" final="false" visibility="public"
  11495. deprecated="not deprecated">
  11496. <param name="in" type="java.io.DataInput"/>
  11497. <exception name="IOException" type="java.io.IOException"/>
  11498. </method>
  11499. <method name="write"
  11500. abstract="false" native="false" synchronized="false"
  11501. static="false" final="false" visibility="public"
  11502. deprecated="not deprecated">
  11503. <param name="out" type="java.io.DataOutput"/>
  11504. <exception name="IOException" type="java.io.IOException"/>
  11505. </method>
  11506. <method name="writeObject"
  11507. abstract="false" native="false" synchronized="false"
  11508. static="true" final="false" visibility="public"
  11509. deprecated="not deprecated">
  11510. <param name="out" type="java.io.DataOutput"/>
  11511. <param name="instance" type="java.lang.Object"/>
  11512. <param name="declaredClass" type="java.lang.Class"/>
  11513. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11514. <exception name="IOException" type="java.io.IOException"/>
  11515. <doc>
  11516. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  11517. the preceding.]]>
  11518. </doc>
  11519. </method>
  11520. <method name="readObject" return="java.lang.Object"
  11521. abstract="false" native="false" synchronized="false"
  11522. static="true" final="false" visibility="public"
  11523. deprecated="not deprecated">
  11524. <param name="in" type="java.io.DataInput"/>
  11525. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11526. <exception name="IOException" type="java.io.IOException"/>
  11527. <doc>
  11528. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  11529. the preceding.]]>
  11530. </doc>
  11531. </method>
  11532. <method name="readObject" return="java.lang.Object"
  11533. abstract="false" native="false" synchronized="false"
  11534. static="true" final="false" visibility="public"
  11535. deprecated="not deprecated">
  11536. <param name="in" type="java.io.DataInput"/>
  11537. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  11538. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11539. <exception name="IOException" type="java.io.IOException"/>
  11540. <doc>
  11541. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  11542. the preceding.]]>
  11543. </doc>
  11544. </method>
  11545. <method name="setConf"
  11546. abstract="false" native="false" synchronized="false"
  11547. static="false" final="false" visibility="public"
  11548. deprecated="not deprecated">
  11549. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11550. </method>
  11551. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11552. abstract="false" native="false" synchronized="false"
  11553. static="false" final="false" visibility="public"
  11554. deprecated="not deprecated">
  11555. </method>
  11556. <doc>
  11557. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  11558. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  11559. </doc>
  11560. </class>
  11561. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  11562. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  11563. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  11564. abstract="false"
  11565. static="false" final="false" visibility="public"
  11566. deprecated="not deprecated">
  11567. <constructor name="OutputBuffer"
  11568. static="false" final="false" visibility="public"
  11569. deprecated="not deprecated">
  11570. <doc>
  11571. <![CDATA[Constructs a new empty buffer.]]>
  11572. </doc>
  11573. </constructor>
  11574. <method name="getData" return="byte[]"
  11575. abstract="false" native="false" synchronized="false"
  11576. static="false" final="false" visibility="public"
  11577. deprecated="not deprecated">
  11578. <doc>
  11579. <![CDATA[Returns the current contents of the buffer.
  11580. Data is only valid to {@link #getLength()}.]]>
  11581. </doc>
  11582. </method>
  11583. <method name="getLength" return="int"
  11584. abstract="false" native="false" synchronized="false"
  11585. static="false" final="false" visibility="public"
  11586. deprecated="not deprecated">
  11587. <doc>
  11588. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  11589. </doc>
  11590. </method>
  11591. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  11592. abstract="false" native="false" synchronized="false"
  11593. static="false" final="false" visibility="public"
  11594. deprecated="not deprecated">
  11595. <doc>
  11596. <![CDATA[Resets the buffer to empty.]]>
  11597. </doc>
  11598. </method>
  11599. <method name="write"
  11600. abstract="false" native="false" synchronized="false"
  11601. static="false" final="false" visibility="public"
  11602. deprecated="not deprecated">
  11603. <param name="in" type="java.io.InputStream"/>
  11604. <param name="length" type="int"/>
  11605. <exception name="IOException" type="java.io.IOException"/>
  11606. <doc>
  11607. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  11608. </doc>
  11609. </method>
  11610. <doc>
  11611. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  11612. buffer.
  11613. <p>This saves memory over creating a new OutputStream and
  11614. ByteArrayOutputStream each time data is written.
  11615. <p>Typical usage is something like the following:<pre>
  11616. OutputBuffer buffer = new OutputBuffer();
  11617. while (... loop condition ...) {
  11618. buffer.reset();
  11619. ... write buffer using OutputStream methods ...
  11620. byte[] data = buffer.getData();
  11621. int dataLength = buffer.getLength();
  11622. ... write data to its ultimate destination ...
  11623. }
  11624. </pre>
  11625. @see DataOutputBuffer
  11626. @see InputBuffer]]>
  11627. </doc>
  11628. </class>
  11629. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  11630. <!-- start interface org.apache.hadoop.io.RawComparator -->
  11631. <interface name="RawComparator" abstract="true"
  11632. static="false" final="false" visibility="public"
  11633. deprecated="not deprecated">
  11634. <implements name="java.util.Comparator"/>
  11635. <method name="compare" return="int"
  11636. abstract="false" native="false" synchronized="false"
  11637. static="false" final="false" visibility="public"
  11638. deprecated="not deprecated">
  11639. <param name="b1" type="byte[]"/>
  11640. <param name="s1" type="int"/>
  11641. <param name="l1" type="int"/>
  11642. <param name="b2" type="byte[]"/>
  11643. <param name="s2" type="int"/>
  11644. <param name="l2" type="int"/>
  11645. </method>
  11646. <doc>
  11647. <![CDATA[<p>
  11648. A {@link Comparator} that operates directly on byte representations of
  11649. objects.
  11650. </p>
  11651. @param <T>
  11652. @see DeserializerComparator]]>
  11653. </doc>
  11654. </interface>
  11655. <!-- end interface org.apache.hadoop.io.RawComparator -->
  11656. <!-- start class org.apache.hadoop.io.SequenceFile -->
  11657. <class name="SequenceFile" extends="java.lang.Object"
  11658. abstract="false"
  11659. static="false" final="false" visibility="public"
  11660. deprecated="not deprecated">
  11661. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  11662. abstract="false" native="false" synchronized="false"
  11663. static="true" final="false" visibility="public"
  11664. deprecated="Use
  11665. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  11666. to get {@link CompressionType} for job-outputs.">
  11667. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  11668. <doc>
  11669. <![CDATA[Get the compression type for the reduce outputs
  11670. @param job the job config to look in
  11671. @return the kind of compression to use
  11672. @deprecated Use
  11673. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  11674. to get {@link CompressionType} for job-outputs.]]>
  11675. </doc>
  11676. </method>
  11677. <method name="setCompressionType"
  11678. abstract="false" native="false" synchronized="false"
  11679. static="true" final="false" visibility="public"
  11680. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  11681. the {@link CompressionType} while creating the {@link SequenceFile} or
  11682. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  11683. to specify the {@link CompressionType} for job-outputs.
  11684. or">
  11685. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  11686. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11687. <doc>
  11688. <![CDATA[Set the compression type for sequence files.
  11689. @param job the configuration to modify
  11690. @param val the new compression type (none, block, record)
  11691. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  11692. the {@link CompressionType} while creating the {@link SequenceFile} or
  11693. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  11694. to specify the {@link CompressionType} for job-outputs.
  11695. or]]>
  11696. </doc>
  11697. </method>
  11698. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11699. abstract="false" native="false" synchronized="false"
  11700. static="true" final="false" visibility="public"
  11701. deprecated="not deprecated">
  11702. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11703. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11704. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11705. <param name="keyClass" type="java.lang.Class"/>
  11706. <param name="valClass" type="java.lang.Class"/>
  11707. <exception name="IOException" type="java.io.IOException"/>
  11708. <doc>
  11709. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11710. @param fs The configured filesystem.
  11711. @param conf The configuration.
  11712. @param name The name of the file.
  11713. @param keyClass The 'key' type.
  11714. @param valClass The 'value' type.
  11715. @return Returns the handle to the constructed SequenceFile Writer.
  11716. @throws IOException]]>
  11717. </doc>
  11718. </method>
  11719. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11720. abstract="false" native="false" synchronized="false"
  11721. static="true" final="false" visibility="public"
  11722. deprecated="not deprecated">
  11723. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11724. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11725. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11726. <param name="keyClass" type="java.lang.Class"/>
  11727. <param name="valClass" type="java.lang.Class"/>
  11728. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11729. <exception name="IOException" type="java.io.IOException"/>
  11730. <doc>
  11731. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11732. @param fs The configured filesystem.
  11733. @param conf The configuration.
  11734. @param name The name of the file.
  11735. @param keyClass The 'key' type.
  11736. @param valClass The 'value' type.
  11737. @param compressionType The compression type.
  11738. @return Returns the handle to the constructed SequenceFile Writer.
  11739. @throws IOException]]>
  11740. </doc>
  11741. </method>
  11742. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11743. abstract="false" native="false" synchronized="false"
  11744. static="true" final="false" visibility="public"
  11745. deprecated="not deprecated">
  11746. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11747. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11748. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11749. <param name="keyClass" type="java.lang.Class"/>
  11750. <param name="valClass" type="java.lang.Class"/>
  11751. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11752. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11753. <exception name="IOException" type="java.io.IOException"/>
  11754. <doc>
  11755. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11756. @param fs The configured filesystem.
  11757. @param conf The configuration.
  11758. @param name The name of the file.
  11759. @param keyClass The 'key' type.
  11760. @param valClass The 'value' type.
  11761. @param compressionType The compression type.
  11762. @param progress The Progressable object to track progress.
  11763. @return Returns the handle to the constructed SequenceFile Writer.
  11764. @throws IOException]]>
  11765. </doc>
  11766. </method>
  11767. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11768. abstract="false" native="false" synchronized="false"
  11769. static="true" final="false" visibility="public"
  11770. deprecated="not deprecated">
  11771. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11772. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11773. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11774. <param name="keyClass" type="java.lang.Class"/>
  11775. <param name="valClass" type="java.lang.Class"/>
  11776. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11777. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11778. <exception name="IOException" type="java.io.IOException"/>
  11779. <doc>
  11780. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11781. @param fs The configured filesystem.
  11782. @param conf The configuration.
  11783. @param name The name of the file.
  11784. @param keyClass The 'key' type.
  11785. @param valClass The 'value' type.
  11786. @param compressionType The compression type.
  11787. @param codec The compression codec.
  11788. @return Returns the handle to the constructed SequenceFile Writer.
  11789. @throws IOException]]>
  11790. </doc>
  11791. </method>
  11792. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11793. abstract="false" native="false" synchronized="false"
  11794. static="true" final="false" visibility="public"
  11795. deprecated="not deprecated">
  11796. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11797. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11798. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11799. <param name="keyClass" type="java.lang.Class"/>
  11800. <param name="valClass" type="java.lang.Class"/>
  11801. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11802. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11803. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11804. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11805. <exception name="IOException" type="java.io.IOException"/>
  11806. <doc>
  11807. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11808. @param fs The configured filesystem.
  11809. @param conf The configuration.
  11810. @param name The name of the file.
  11811. @param keyClass The 'key' type.
  11812. @param valClass The 'value' type.
  11813. @param compressionType The compression type.
  11814. @param codec The compression codec.
  11815. @param progress The Progressable object to track progress.
  11816. @param metadata The metadata of the file.
  11817. @return Returns the handle to the constructed SequenceFile Writer.
  11818. @throws IOException]]>
  11819. </doc>
  11820. </method>
  11821. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11822. abstract="false" native="false" synchronized="false"
  11823. static="true" final="false" visibility="public"
  11824. deprecated="not deprecated">
  11825. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11826. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11827. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11828. <param name="keyClass" type="java.lang.Class"/>
  11829. <param name="valClass" type="java.lang.Class"/>
  11830. <param name="bufferSize" type="int"/>
  11831. <param name="replication" type="short"/>
  11832. <param name="blockSize" type="long"/>
  11833. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11834. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11835. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11836. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11837. <exception name="IOException" type="java.io.IOException"/>
  11838. <doc>
  11839. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11840. @param fs The configured filesystem.
  11841. @param conf The configuration.
  11842. @param name The name of the file.
  11843. @param keyClass The 'key' type.
  11844. @param valClass The 'value' type.
  11845. @param bufferSize buffer size for the underlaying outputstream.
  11846. @param replication replication factor for the file.
  11847. @param blockSize block size for the file.
  11848. @param compressionType The compression type.
  11849. @param codec The compression codec.
  11850. @param progress The Progressable object to track progress.
  11851. @param metadata The metadata of the file.
  11852. @return Returns the handle to the constructed SequenceFile Writer.
  11853. @throws IOException]]>
  11854. </doc>
  11855. </method>
  11856. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11857. abstract="false" native="false" synchronized="false"
  11858. static="true" final="false" visibility="public"
  11859. deprecated="not deprecated">
  11860. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11861. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11862. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11863. <param name="keyClass" type="java.lang.Class"/>
  11864. <param name="valClass" type="java.lang.Class"/>
  11865. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11866. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11867. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11868. <exception name="IOException" type="java.io.IOException"/>
  11869. <doc>
  11870. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11871. @param fs The configured filesystem.
  11872. @param conf The configuration.
  11873. @param name The name of the file.
  11874. @param keyClass The 'key' type.
  11875. @param valClass The 'value' type.
  11876. @param compressionType The compression type.
  11877. @param codec The compression codec.
  11878. @param progress The Progressable object to track progress.
  11879. @return Returns the handle to the constructed SequenceFile Writer.
  11880. @throws IOException]]>
  11881. </doc>
  11882. </method>
  11883. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11884. abstract="false" native="false" synchronized="false"
  11885. static="true" final="false" visibility="public"
  11886. deprecated="not deprecated">
  11887. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11888. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  11889. <param name="keyClass" type="java.lang.Class"/>
  11890. <param name="valClass" type="java.lang.Class"/>
  11891. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11892. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11893. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11894. <exception name="IOException" type="java.io.IOException"/>
  11895. <doc>
  11896. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  11897. @param conf The configuration.
  11898. @param out The stream on top which the writer is to be constructed.
  11899. @param keyClass The 'key' type.
  11900. @param valClass The 'value' type.
  11901. @param compressionType The compression type.
  11902. @param codec The compression codec.
  11903. @param metadata The metadata of the file.
  11904. @return Returns the handle to the constructed SequenceFile Writer.
  11905. @throws IOException]]>
  11906. </doc>
  11907. </method>
  11908. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11909. abstract="false" native="false" synchronized="false"
  11910. static="true" final="false" visibility="public"
  11911. deprecated="not deprecated">
  11912. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11913. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  11914. <param name="keyClass" type="java.lang.Class"/>
  11915. <param name="valClass" type="java.lang.Class"/>
  11916. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11917. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11918. <exception name="IOException" type="java.io.IOException"/>
  11919. <doc>
  11920. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  11921. @param conf The configuration.
  11922. @param out The stream on top which the writer is to be constructed.
  11923. @param keyClass The 'key' type.
  11924. @param valClass The 'value' type.
  11925. @param compressionType The compression type.
  11926. @param codec The compression codec.
  11927. @return Returns the handle to the constructed SequenceFile Writer.
  11928. @throws IOException]]>
  11929. </doc>
  11930. </method>
  11931. <field name="SYNC_INTERVAL" type="int"
  11932. transient="false" volatile="false"
  11933. static="true" final="true" visibility="public"
  11934. deprecated="not deprecated">
  11935. <doc>
  11936. <![CDATA[The number of bytes between sync points.]]>
  11937. </doc>
  11938. </field>
  11939. <doc>
  11940. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  11941. pairs.
  11942. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  11943. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  11944. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  11945. {@link CompressionType} used to compress key/value pairs:
  11946. <ol>
  11947. <li>
  11948. <code>Writer</code> : Uncompressed records.
  11949. </li>
  11950. <li>
  11951. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  11952. values.
  11953. </li>
  11954. <li>
  11955. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  11956. values are collected in 'blocks'
  11957. separately and compressed. The size of
  11958. the 'block' is configurable.
  11959. </ol>
  11960. <p>The actual compression algorithm used to compress key and/or values can be
  11961. specified by using the appropriate {@link CompressionCodec}.</p>
  11962. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  11963. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  11964. <p>The {@link Reader} acts as the bridge and can read any of the above
  11965. <code>SequenceFile</code> formats.</p>
  11966. <h4 id="Formats">SequenceFile Formats</h4>
  11967. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  11968. depending on the <code>CompressionType</code> specified. All of them share a
  11969. <a href="#Header">common header</a> described below.
  11970. <h5 id="Header">SequenceFile Header</h5>
  11971. <ul>
  11972. <li>
  11973. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  11974. version number (e.g. SEQ4 or SEQ6)
  11975. </li>
  11976. <li>
  11977. keyClassName -key class
  11978. </li>
  11979. <li>
  11980. valueClassName - value class
  11981. </li>
  11982. <li>
  11983. compression - A boolean which specifies if compression is turned on for
  11984. keys/values in this file.
  11985. </li>
  11986. <li>
  11987. blockCompression - A boolean which specifies if block-compression is
  11988. turned on for keys/values in this file.
  11989. </li>
  11990. <li>
  11991. compression codec - <code>CompressionCodec</code> class which is used for
  11992. compression of keys and/or values (if compression is
  11993. enabled).
  11994. </li>
  11995. <li>
  11996. metadata - {@link Metadata} for this file.
  11997. </li>
  11998. <li>
  11999. sync - A sync marker to denote end of the header.
  12000. </li>
  12001. </ul>
  12002. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  12003. <ul>
  12004. <li>
  12005. <a href="#Header">Header</a>
  12006. </li>
  12007. <li>
  12008. Record
  12009. <ul>
  12010. <li>Record length</li>
  12011. <li>Key length</li>
  12012. <li>Key</li>
  12013. <li>Value</li>
  12014. </ul>
  12015. </li>
  12016. <li>
  12017. A sync-marker every few <code>100</code> bytes or so.
  12018. </li>
  12019. </ul>
  12020. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  12021. <ul>
  12022. <li>
  12023. <a href="#Header">Header</a>
  12024. </li>
  12025. <li>
  12026. Record
  12027. <ul>
  12028. <li>Record length</li>
  12029. <li>Key length</li>
  12030. <li>Key</li>
  12031. <li><i>Compressed</i> Value</li>
  12032. </ul>
  12033. </li>
  12034. <li>
  12035. A sync-marker every few <code>100</code> bytes or so.
  12036. </li>
  12037. </ul>
  12038. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  12039. <ul>
  12040. <li>
  12041. <a href="#Header">Header</a>
  12042. </li>
  12043. <li>
  12044. Record <i>Block</i>
  12045. <ul>
  12046. <li>Compressed key-lengths block-size</li>
  12047. <li>Compressed key-lengths block</li>
  12048. <li>Compressed keys block-size</li>
  12049. <li>Compressed keys block</li>
  12050. <li>Compressed value-lengths block-size</li>
  12051. <li>Compressed value-lengths block</li>
  12052. <li>Compressed values block-size</li>
  12053. <li>Compressed values block</li>
  12054. </ul>
  12055. </li>
  12056. <li>
  12057. A sync-marker every few <code>100</code> bytes or so.
  12058. </li>
  12059. </ul>
  12060. <p>The compressed blocks of key lengths and value lengths consist of the
  12061. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  12062. format.</p>
  12063. @see CompressionCodec]]>
  12064. </doc>
  12065. </class>
  12066. <!-- end class org.apache.hadoop.io.SequenceFile -->
  12067. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  12068. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  12069. abstract="false"
  12070. static="true" final="true" visibility="public"
  12071. deprecated="not deprecated">
  12072. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  12073. abstract="false" native="false" synchronized="false"
  12074. static="true" final="false" visibility="public"
  12075. deprecated="not deprecated">
  12076. </method>
  12077. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12078. abstract="false" native="false" synchronized="false"
  12079. static="true" final="false" visibility="public"
  12080. deprecated="not deprecated">
  12081. <param name="name" type="java.lang.String"/>
  12082. </method>
  12083. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  12084. transient="false" volatile="false"
  12085. static="true" final="true" visibility="public"
  12086. deprecated="not deprecated">
  12087. <doc>
  12088. <![CDATA[Do not compress records.]]>
  12089. </doc>
  12090. </field>
  12091. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  12092. transient="false" volatile="false"
  12093. static="true" final="true" visibility="public"
  12094. deprecated="not deprecated">
  12095. <doc>
  12096. <![CDATA[Compress values only, each separately.]]>
  12097. </doc>
  12098. </field>
  12099. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  12100. transient="false" volatile="false"
  12101. static="true" final="true" visibility="public"
  12102. deprecated="not deprecated">
  12103. <doc>
  12104. <![CDATA[Compress sequences of records together in blocks.]]>
  12105. </doc>
  12106. </field>
  12107. <doc>
  12108. <![CDATA[The compression type used to compress key/value pairs in the
  12109. {@link SequenceFile}.
  12110. @see SequenceFile.Writer]]>
  12111. </doc>
  12112. </class>
  12113. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  12114. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  12115. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  12116. abstract="false"
  12117. static="true" final="false" visibility="public"
  12118. deprecated="not deprecated">
  12119. <implements name="org.apache.hadoop.io.Writable"/>
  12120. <constructor name="SequenceFile.Metadata"
  12121. static="false" final="false" visibility="public"
  12122. deprecated="not deprecated">
  12123. </constructor>
  12124. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  12125. static="false" final="false" visibility="public"
  12126. deprecated="not deprecated">
  12127. </constructor>
  12128. <method name="get" return="org.apache.hadoop.io.Text"
  12129. abstract="false" native="false" synchronized="false"
  12130. static="false" final="false" visibility="public"
  12131. deprecated="not deprecated">
  12132. <param name="name" type="org.apache.hadoop.io.Text"/>
  12133. </method>
  12134. <method name="set"
  12135. abstract="false" native="false" synchronized="false"
  12136. static="false" final="false" visibility="public"
  12137. deprecated="not deprecated">
  12138. <param name="name" type="org.apache.hadoop.io.Text"/>
  12139. <param name="value" type="org.apache.hadoop.io.Text"/>
  12140. </method>
  12141. <method name="getMetadata" return="java.util.TreeMap"
  12142. abstract="false" native="false" synchronized="false"
  12143. static="false" final="false" visibility="public"
  12144. deprecated="not deprecated">
  12145. </method>
  12146. <method name="write"
  12147. abstract="false" native="false" synchronized="false"
  12148. static="false" final="false" visibility="public"
  12149. deprecated="not deprecated">
  12150. <param name="out" type="java.io.DataOutput"/>
  12151. <exception name="IOException" type="java.io.IOException"/>
  12152. </method>
  12153. <method name="readFields"
  12154. abstract="false" native="false" synchronized="false"
  12155. static="false" final="false" visibility="public"
  12156. deprecated="not deprecated">
  12157. <param name="in" type="java.io.DataInput"/>
  12158. <exception name="IOException" type="java.io.IOException"/>
  12159. </method>
  12160. <method name="equals" return="boolean"
  12161. abstract="false" native="false" synchronized="false"
  12162. static="false" final="false" visibility="public"
  12163. deprecated="not deprecated">
  12164. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12165. </method>
  12166. <method name="hashCode" return="int"
  12167. abstract="false" native="false" synchronized="false"
  12168. static="false" final="false" visibility="public"
  12169. deprecated="not deprecated">
  12170. </method>
  12171. <method name="toString" return="java.lang.String"
  12172. abstract="false" native="false" synchronized="false"
  12173. static="false" final="false" visibility="public"
  12174. deprecated="not deprecated">
  12175. </method>
  12176. <doc>
  12177. <![CDATA[The class encapsulating with the metadata of a file.
  12178. The metadata of a file is a list of attribute name/value
  12179. pairs of Text type.]]>
  12180. </doc>
  12181. </class>
  12182. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  12183. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  12184. <class name="SequenceFile.Reader" extends="java.lang.Object"
  12185. abstract="false"
  12186. static="true" final="false" visibility="public"
  12187. deprecated="not deprecated">
  12188. <implements name="java.io.Closeable"/>
  12189. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  12190. static="false" final="false" visibility="public"
  12191. deprecated="not deprecated">
  12192. <exception name="IOException" type="java.io.IOException"/>
  12193. <doc>
  12194. <![CDATA[Open the named file.]]>
  12195. </doc>
  12196. </constructor>
  12197. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  12198. abstract="false" native="false" synchronized="false"
  12199. static="false" final="false" visibility="protected"
  12200. deprecated="not deprecated">
  12201. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12202. <param name="file" type="org.apache.hadoop.fs.Path"/>
  12203. <param name="bufferSize" type="int"/>
  12204. <param name="length" type="long"/>
  12205. <exception name="IOException" type="java.io.IOException"/>
  12206. <doc>
  12207. <![CDATA[Override this method to specialize the type of
  12208. {@link FSDataInputStream} returned.]]>
  12209. </doc>
  12210. </method>
  12211. <method name="close"
  12212. abstract="false" native="false" synchronized="true"
  12213. static="false" final="false" visibility="public"
  12214. deprecated="not deprecated">
  12215. <exception name="IOException" type="java.io.IOException"/>
  12216. <doc>
  12217. <![CDATA[Close the file.]]>
  12218. </doc>
  12219. </method>
  12220. <method name="getKeyClassName" return="java.lang.String"
  12221. abstract="false" native="false" synchronized="false"
  12222. static="false" final="false" visibility="public"
  12223. deprecated="not deprecated">
  12224. <doc>
  12225. <![CDATA[Returns the name of the key class.]]>
  12226. </doc>
  12227. </method>
  12228. <method name="getKeyClass" return="java.lang.Class"
  12229. abstract="false" native="false" synchronized="true"
  12230. static="false" final="false" visibility="public"
  12231. deprecated="not deprecated">
  12232. <doc>
  12233. <![CDATA[Returns the class of keys in this file.]]>
  12234. </doc>
  12235. </method>
  12236. <method name="getValueClassName" return="java.lang.String"
  12237. abstract="false" native="false" synchronized="false"
  12238. static="false" final="false" visibility="public"
  12239. deprecated="not deprecated">
  12240. <doc>
  12241. <![CDATA[Returns the name of the value class.]]>
  12242. </doc>
  12243. </method>
  12244. <method name="getValueClass" return="java.lang.Class"
  12245. abstract="false" native="false" synchronized="true"
  12246. static="false" final="false" visibility="public"
  12247. deprecated="not deprecated">
  12248. <doc>
  12249. <![CDATA[Returns the class of values in this file.]]>
  12250. </doc>
  12251. </method>
  12252. <method name="isCompressed" return="boolean"
  12253. abstract="false" native="false" synchronized="false"
  12254. static="false" final="false" visibility="public"
  12255. deprecated="not deprecated">
  12256. <doc>
  12257. <![CDATA[Returns true if values are compressed.]]>
  12258. </doc>
  12259. </method>
  12260. <method name="isBlockCompressed" return="boolean"
  12261. abstract="false" native="false" synchronized="false"
  12262. static="false" final="false" visibility="public"
  12263. deprecated="not deprecated">
  12264. <doc>
  12265. <![CDATA[Returns true if records are block-compressed.]]>
  12266. </doc>
  12267. </method>
  12268. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  12269. abstract="false" native="false" synchronized="false"
  12270. static="false" final="false" visibility="public"
  12271. deprecated="not deprecated">
  12272. <doc>
  12273. <![CDATA[Returns the compression codec of data in this file.]]>
  12274. </doc>
  12275. </method>
  12276. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  12277. abstract="false" native="false" synchronized="false"
  12278. static="false" final="false" visibility="public"
  12279. deprecated="not deprecated">
  12280. <doc>
  12281. <![CDATA[Returns the metadata object of the file]]>
  12282. </doc>
  12283. </method>
  12284. <method name="getCurrentValue"
  12285. abstract="false" native="false" synchronized="true"
  12286. static="false" final="false" visibility="public"
  12287. deprecated="not deprecated">
  12288. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12289. <exception name="IOException" type="java.io.IOException"/>
  12290. <doc>
  12291. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  12292. @param val : The 'value' to be read.
  12293. @throws IOException]]>
  12294. </doc>
  12295. </method>
  12296. <method name="getCurrentValue" return="java.lang.Object"
  12297. abstract="false" native="false" synchronized="true"
  12298. static="false" final="false" visibility="public"
  12299. deprecated="not deprecated">
  12300. <param name="val" type="java.lang.Object"/>
  12301. <exception name="IOException" type="java.io.IOException"/>
  12302. <doc>
  12303. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  12304. @param val : The 'value' to be read.
  12305. @throws IOException]]>
  12306. </doc>
  12307. </method>
  12308. <method name="next" return="boolean"
  12309. abstract="false" native="false" synchronized="true"
  12310. static="false" final="false" visibility="public"
  12311. deprecated="not deprecated">
  12312. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12313. <exception name="IOException" type="java.io.IOException"/>
  12314. <doc>
  12315. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  12316. value. True if another entry exists, and false at end of file.]]>
  12317. </doc>
  12318. </method>
  12319. <method name="next" return="boolean"
  12320. abstract="false" native="false" synchronized="true"
  12321. static="false" final="false" visibility="public"
  12322. deprecated="not deprecated">
  12323. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12324. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12325. <exception name="IOException" type="java.io.IOException"/>
  12326. <doc>
  12327. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  12328. <code>val</code>. Returns true if such a pair exists and false when at
  12329. end of file]]>
  12330. </doc>
  12331. </method>
  12332. <method name="next" return="int"
  12333. abstract="false" native="false" synchronized="true"
  12334. static="false" final="false" visibility="public"
  12335. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  12336. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  12337. <exception name="IOException" type="java.io.IOException"/>
  12338. <doc>
  12339. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  12340. </doc>
  12341. </method>
  12342. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  12343. abstract="false" native="false" synchronized="false"
  12344. static="false" final="false" visibility="public"
  12345. deprecated="not deprecated">
  12346. </method>
  12347. <method name="nextRaw" return="int"
  12348. abstract="false" native="false" synchronized="true"
  12349. static="false" final="false" visibility="public"
  12350. deprecated="not deprecated">
  12351. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  12352. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12353. <exception name="IOException" type="java.io.IOException"/>
  12354. <doc>
  12355. <![CDATA[Read 'raw' records.
  12356. @param key - The buffer into which the key is read
  12357. @param val - The 'raw' value
  12358. @return Returns the total record length or -1 for end of file
  12359. @throws IOException]]>
  12360. </doc>
  12361. </method>
  12362. <method name="nextRawKey" return="int"
  12363. abstract="false" native="false" synchronized="false"
  12364. static="false" final="false" visibility="public"
  12365. deprecated="not deprecated">
  12366. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  12367. <exception name="IOException" type="java.io.IOException"/>
  12368. <doc>
  12369. <![CDATA[Read 'raw' keys.
  12370. @param key - The buffer into which the key is read
  12371. @return Returns the key length or -1 for end of file
  12372. @throws IOException]]>
  12373. </doc>
  12374. </method>
  12375. <method name="next" return="java.lang.Object"
  12376. abstract="false" native="false" synchronized="true"
  12377. static="false" final="false" visibility="public"
  12378. deprecated="not deprecated">
  12379. <param name="key" type="java.lang.Object"/>
  12380. <exception name="IOException" type="java.io.IOException"/>
  12381. <doc>
  12382. <![CDATA[Read the next key in the file, skipping its
  12383. value. Return null at end of file.]]>
  12384. </doc>
  12385. </method>
  12386. <method name="nextRawValue" return="int"
  12387. abstract="false" native="false" synchronized="true"
  12388. static="false" final="false" visibility="public"
  12389. deprecated="not deprecated">
  12390. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12391. <exception name="IOException" type="java.io.IOException"/>
  12392. <doc>
  12393. <![CDATA[Read 'raw' values.
  12394. @param val - The 'raw' value
  12395. @return Returns the value length
  12396. @throws IOException]]>
  12397. </doc>
  12398. </method>
  12399. <method name="seek"
  12400. abstract="false" native="false" synchronized="true"
  12401. static="false" final="false" visibility="public"
  12402. deprecated="not deprecated">
  12403. <param name="position" type="long"/>
  12404. <exception name="IOException" type="java.io.IOException"/>
  12405. <doc>
  12406. <![CDATA[Set the current byte position in the input file.
  12407. <p>The position passed must be a position returned by {@link
  12408. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  12409. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  12410. </doc>
  12411. </method>
  12412. <method name="sync"
  12413. abstract="false" native="false" synchronized="true"
  12414. static="false" final="false" visibility="public"
  12415. deprecated="not deprecated">
  12416. <param name="position" type="long"/>
  12417. <exception name="IOException" type="java.io.IOException"/>
  12418. <doc>
  12419. <![CDATA[Seek to the next sync mark past a given position.]]>
  12420. </doc>
  12421. </method>
  12422. <method name="syncSeen" return="boolean"
  12423. abstract="false" native="false" synchronized="false"
  12424. static="false" final="false" visibility="public"
  12425. deprecated="not deprecated">
  12426. <doc>
  12427. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  12428. </doc>
  12429. </method>
  12430. <method name="getPosition" return="long"
  12431. abstract="false" native="false" synchronized="true"
  12432. static="false" final="false" visibility="public"
  12433. deprecated="not deprecated">
  12434. <exception name="IOException" type="java.io.IOException"/>
  12435. <doc>
  12436. <![CDATA[Return the current byte position in the input file.]]>
  12437. </doc>
  12438. </method>
  12439. <method name="toString" return="java.lang.String"
  12440. abstract="false" native="false" synchronized="false"
  12441. static="false" final="false" visibility="public"
  12442. deprecated="not deprecated">
  12443. <doc>
  12444. <![CDATA[Returns the name of the file.]]>
  12445. </doc>
  12446. </method>
  12447. <doc>
  12448. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  12449. </doc>
  12450. </class>
  12451. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  12452. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  12453. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  12454. abstract="false"
  12455. static="true" final="false" visibility="public"
  12456. deprecated="not deprecated">
  12457. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  12458. static="false" final="false" visibility="public"
  12459. deprecated="not deprecated">
  12460. <doc>
  12461. <![CDATA[Sort and merge files containing the named classes.]]>
  12462. </doc>
  12463. </constructor>
  12464. <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"
  12465. static="false" final="false" visibility="public"
  12466. deprecated="not deprecated">
  12467. <doc>
  12468. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  12469. </doc>
  12470. </constructor>
  12471. <method name="setFactor"
  12472. abstract="false" native="false" synchronized="false"
  12473. static="false" final="false" visibility="public"
  12474. deprecated="not deprecated">
  12475. <param name="factor" type="int"/>
  12476. <doc>
  12477. <![CDATA[Set the number of streams to merge at once.]]>
  12478. </doc>
  12479. </method>
  12480. <method name="getFactor" return="int"
  12481. abstract="false" native="false" synchronized="false"
  12482. static="false" final="false" visibility="public"
  12483. deprecated="not deprecated">
  12484. <doc>
  12485. <![CDATA[Get the number of streams to merge at once.]]>
  12486. </doc>
  12487. </method>
  12488. <method name="setMemory"
  12489. abstract="false" native="false" synchronized="false"
  12490. static="false" final="false" visibility="public"
  12491. deprecated="not deprecated">
  12492. <param name="memory" type="int"/>
  12493. <doc>
  12494. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  12495. </doc>
  12496. </method>
  12497. <method name="getMemory" return="int"
  12498. abstract="false" native="false" synchronized="false"
  12499. static="false" final="false" visibility="public"
  12500. deprecated="not deprecated">
  12501. <doc>
  12502. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  12503. </doc>
  12504. </method>
  12505. <method name="setProgressable"
  12506. abstract="false" native="false" synchronized="false"
  12507. static="false" final="false" visibility="public"
  12508. deprecated="not deprecated">
  12509. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  12510. <doc>
  12511. <![CDATA[Set the progressable object in order to report progress.]]>
  12512. </doc>
  12513. </method>
  12514. <method name="sort"
  12515. abstract="false" native="false" synchronized="false"
  12516. static="false" final="false" visibility="public"
  12517. deprecated="not deprecated">
  12518. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  12519. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  12520. <param name="deleteInput" type="boolean"/>
  12521. <exception name="IOException" type="java.io.IOException"/>
  12522. <doc>
  12523. <![CDATA[Perform a file sort from a set of input files into an output file.
  12524. @param inFiles the files to be sorted
  12525. @param outFile the sorted output file
  12526. @param deleteInput should the input files be deleted as they are read?]]>
  12527. </doc>
  12528. </method>
  12529. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12530. abstract="false" native="false" synchronized="false"
  12531. static="false" final="false" visibility="public"
  12532. deprecated="not deprecated">
  12533. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  12534. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  12535. <param name="deleteInput" type="boolean"/>
  12536. <exception name="IOException" type="java.io.IOException"/>
  12537. <doc>
  12538. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  12539. @param inFiles the files to be sorted
  12540. @param tempDir the directory where temp files are created during sort
  12541. @param deleteInput should the input files be deleted as they are read?
  12542. @return iterator the RawKeyValueIterator]]>
  12543. </doc>
  12544. </method>
  12545. <method name="sort"
  12546. abstract="false" native="false" synchronized="false"
  12547. static="false" final="false" visibility="public"
  12548. deprecated="not deprecated">
  12549. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  12550. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  12551. <exception name="IOException" type="java.io.IOException"/>
  12552. <doc>
  12553. <![CDATA[The backwards compatible interface to sort.
  12554. @param inFile the input file to sort
  12555. @param outFile the sorted output file]]>
  12556. </doc>
  12557. </method>
  12558. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12559. abstract="false" native="false" synchronized="false"
  12560. static="false" final="false" visibility="public"
  12561. deprecated="not deprecated">
  12562. <param name="segments" type="java.util.List"/>
  12563. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12564. <exception name="IOException" type="java.io.IOException"/>
  12565. <doc>
  12566. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  12567. @param segments the list of SegmentDescriptors
  12568. @param tmpDir the directory to write temporary files into
  12569. @return RawKeyValueIterator
  12570. @throws IOException]]>
  12571. </doc>
  12572. </method>
  12573. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12574. abstract="false" native="false" synchronized="false"
  12575. static="false" final="false" visibility="public"
  12576. deprecated="not deprecated">
  12577. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12578. <param name="deleteInputs" type="boolean"/>
  12579. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12580. <exception name="IOException" type="java.io.IOException"/>
  12581. <doc>
  12582. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  12583. that is already set
  12584. @param inNames the array of path names
  12585. @param deleteInputs true if the input files should be deleted when
  12586. unnecessary
  12587. @param tmpDir the directory to write temporary files into
  12588. @return RawKeyValueIteratorMergeQueue
  12589. @throws IOException]]>
  12590. </doc>
  12591. </method>
  12592. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12593. abstract="false" native="false" synchronized="false"
  12594. static="false" final="false" visibility="public"
  12595. deprecated="not deprecated">
  12596. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12597. <param name="deleteInputs" type="boolean"/>
  12598. <param name="factor" type="int"/>
  12599. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12600. <exception name="IOException" type="java.io.IOException"/>
  12601. <doc>
  12602. <![CDATA[Merges the contents of files passed in Path[]
  12603. @param inNames the array of path names
  12604. @param deleteInputs true if the input files should be deleted when
  12605. unnecessary
  12606. @param factor the factor that will be used as the maximum merge fan-in
  12607. @param tmpDir the directory to write temporary files into
  12608. @return RawKeyValueIteratorMergeQueue
  12609. @throws IOException]]>
  12610. </doc>
  12611. </method>
  12612. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12613. abstract="false" native="false" synchronized="false"
  12614. static="false" final="false" visibility="public"
  12615. deprecated="not deprecated">
  12616. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12617. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  12618. <param name="deleteInputs" type="boolean"/>
  12619. <exception name="IOException" type="java.io.IOException"/>
  12620. <doc>
  12621. <![CDATA[Merges the contents of files passed in Path[]
  12622. @param inNames the array of path names
  12623. @param tempDir the directory for creating temp files during merge
  12624. @param deleteInputs true if the input files should be deleted when
  12625. unnecessary
  12626. @return RawKeyValueIteratorMergeQueue
  12627. @throws IOException]]>
  12628. </doc>
  12629. </method>
  12630. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  12631. abstract="false" native="false" synchronized="false"
  12632. static="false" final="false" visibility="public"
  12633. deprecated="not deprecated">
  12634. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  12635. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  12636. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  12637. <exception name="IOException" type="java.io.IOException"/>
  12638. <doc>
  12639. <![CDATA[Clones the attributes (like compression of the input file and creates a
  12640. corresponding Writer
  12641. @param inputFile the path of the input file whose attributes should be
  12642. cloned
  12643. @param outputFile the path of the output file
  12644. @param prog the Progressable to report status during the file write
  12645. @return Writer
  12646. @throws IOException]]>
  12647. </doc>
  12648. </method>
  12649. <method name="writeFile"
  12650. abstract="false" native="false" synchronized="false"
  12651. static="false" final="false" visibility="public"
  12652. deprecated="not deprecated">
  12653. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  12654. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  12655. <exception name="IOException" type="java.io.IOException"/>
  12656. <doc>
  12657. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  12658. passed writer
  12659. @param records the RawKeyValueIterator
  12660. @param writer the Writer created earlier
  12661. @throws IOException]]>
  12662. </doc>
  12663. </method>
  12664. <method name="merge"
  12665. abstract="false" native="false" synchronized="false"
  12666. static="false" final="false" visibility="public"
  12667. deprecated="not deprecated">
  12668. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  12669. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  12670. <exception name="IOException" type="java.io.IOException"/>
  12671. <doc>
  12672. <![CDATA[Merge the provided files.
  12673. @param inFiles the array of input path names
  12674. @param outFile the final output file
  12675. @throws IOException]]>
  12676. </doc>
  12677. </method>
  12678. <doc>
  12679. <![CDATA[Sorts key/value pairs in a sequence-format file.
  12680. <p>For best performance, applications should make sure that the {@link
  12681. Writable#readFields(DataInput)} implementation of their keys is
  12682. very efficient. In particular, it should avoid allocating memory.]]>
  12683. </doc>
  12684. </class>
  12685. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  12686. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  12687. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  12688. static="true" final="false" visibility="public"
  12689. deprecated="not deprecated">
  12690. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  12691. abstract="false" native="false" synchronized="false"
  12692. static="false" final="false" visibility="public"
  12693. deprecated="not deprecated">
  12694. <exception name="IOException" type="java.io.IOException"/>
  12695. <doc>
  12696. <![CDATA[Gets the current raw key
  12697. @return DataOutputBuffer
  12698. @throws IOException]]>
  12699. </doc>
  12700. </method>
  12701. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  12702. abstract="false" native="false" synchronized="false"
  12703. static="false" final="false" visibility="public"
  12704. deprecated="not deprecated">
  12705. <exception name="IOException" type="java.io.IOException"/>
  12706. <doc>
  12707. <![CDATA[Gets the current raw value
  12708. @return ValueBytes
  12709. @throws IOException]]>
  12710. </doc>
  12711. </method>
  12712. <method name="next" return="boolean"
  12713. abstract="false" native="false" synchronized="false"
  12714. static="false" final="false" visibility="public"
  12715. deprecated="not deprecated">
  12716. <exception name="IOException" type="java.io.IOException"/>
  12717. <doc>
  12718. <![CDATA[Sets up the current key and value (for getKey and getValue)
  12719. @return true if there exists a key/value, false otherwise
  12720. @throws IOException]]>
  12721. </doc>
  12722. </method>
  12723. <method name="close"
  12724. abstract="false" native="false" synchronized="false"
  12725. static="false" final="false" visibility="public"
  12726. deprecated="not deprecated">
  12727. <exception name="IOException" type="java.io.IOException"/>
  12728. <doc>
  12729. <![CDATA[closes the iterator so that the underlying streams can be closed
  12730. @throws IOException]]>
  12731. </doc>
  12732. </method>
  12733. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  12734. abstract="false" native="false" synchronized="false"
  12735. static="false" final="false" visibility="public"
  12736. deprecated="not deprecated">
  12737. <doc>
  12738. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  12739. indicating the bytes processed by the iterator so far]]>
  12740. </doc>
  12741. </method>
  12742. <doc>
  12743. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  12744. </doc>
  12745. </interface>
  12746. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  12747. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  12748. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  12749. abstract="false"
  12750. static="false" final="false" visibility="public"
  12751. deprecated="not deprecated">
  12752. <implements name="java.lang.Comparable"/>
  12753. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  12754. static="false" final="false" visibility="public"
  12755. deprecated="not deprecated">
  12756. <doc>
  12757. <![CDATA[Constructs a segment
  12758. @param segmentOffset the offset of the segment in the file
  12759. @param segmentLength the length of the segment
  12760. @param segmentPathName the path name of the file containing the segment]]>
  12761. </doc>
  12762. </constructor>
  12763. <method name="doSync"
  12764. abstract="false" native="false" synchronized="false"
  12765. static="false" final="false" visibility="public"
  12766. deprecated="not deprecated">
  12767. <doc>
  12768. <![CDATA[Do the sync checks]]>
  12769. </doc>
  12770. </method>
  12771. <method name="preserveInput"
  12772. abstract="false" native="false" synchronized="false"
  12773. static="false" final="false" visibility="public"
  12774. deprecated="not deprecated">
  12775. <param name="preserve" type="boolean"/>
  12776. <doc>
  12777. <![CDATA[Whether to delete the files when no longer needed]]>
  12778. </doc>
  12779. </method>
  12780. <method name="shouldPreserveInput" return="boolean"
  12781. abstract="false" native="false" synchronized="false"
  12782. static="false" final="false" visibility="public"
  12783. deprecated="not deprecated">
  12784. </method>
  12785. <method name="compareTo" return="int"
  12786. abstract="false" native="false" synchronized="false"
  12787. static="false" final="false" visibility="public"
  12788. deprecated="not deprecated">
  12789. <param name="o" type="java.lang.Object"/>
  12790. </method>
  12791. <method name="equals" return="boolean"
  12792. abstract="false" native="false" synchronized="false"
  12793. static="false" final="false" visibility="public"
  12794. deprecated="not deprecated">
  12795. <param name="o" type="java.lang.Object"/>
  12796. </method>
  12797. <method name="hashCode" return="int"
  12798. abstract="false" native="false" synchronized="false"
  12799. static="false" final="false" visibility="public"
  12800. deprecated="not deprecated">
  12801. </method>
  12802. <method name="nextRawKey" return="boolean"
  12803. abstract="false" native="false" synchronized="false"
  12804. static="false" final="false" visibility="public"
  12805. deprecated="not deprecated">
  12806. <exception name="IOException" type="java.io.IOException"/>
  12807. <doc>
  12808. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  12809. @return true if there is a key returned; false, otherwise
  12810. @throws IOException]]>
  12811. </doc>
  12812. </method>
  12813. <method name="nextRawValue" return="int"
  12814. abstract="false" native="false" synchronized="false"
  12815. static="false" final="false" visibility="public"
  12816. deprecated="not deprecated">
  12817. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12818. <exception name="IOException" type="java.io.IOException"/>
  12819. <doc>
  12820. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  12821. read earlier
  12822. @param rawValue
  12823. @return the length of the value
  12824. @throws IOException]]>
  12825. </doc>
  12826. </method>
  12827. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  12828. abstract="false" native="false" synchronized="false"
  12829. static="false" final="false" visibility="public"
  12830. deprecated="not deprecated">
  12831. <doc>
  12832. <![CDATA[Returns the stored rawKey]]>
  12833. </doc>
  12834. </method>
  12835. <method name="cleanup"
  12836. abstract="false" native="false" synchronized="false"
  12837. static="false" final="false" visibility="public"
  12838. deprecated="not deprecated">
  12839. <exception name="IOException" type="java.io.IOException"/>
  12840. <doc>
  12841. <![CDATA[The default cleanup. Subclasses can override this with a custom
  12842. cleanup]]>
  12843. </doc>
  12844. </method>
  12845. <doc>
  12846. <![CDATA[This class defines a merge segment. This class can be subclassed to
  12847. provide a customized cleanup method implementation. In this
  12848. implementation, cleanup closes the file handle and deletes the file]]>
  12849. </doc>
  12850. </class>
  12851. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  12852. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  12853. <interface name="SequenceFile.ValueBytes" abstract="true"
  12854. static="true" final="false" visibility="public"
  12855. deprecated="not deprecated">
  12856. <method name="writeUncompressedBytes"
  12857. abstract="false" native="false" synchronized="false"
  12858. static="false" final="false" visibility="public"
  12859. deprecated="not deprecated">
  12860. <param name="outStream" type="java.io.DataOutputStream"/>
  12861. <exception name="IOException" type="java.io.IOException"/>
  12862. <doc>
  12863. <![CDATA[Writes the uncompressed bytes to the outStream.
  12864. @param outStream : Stream to write uncompressed bytes into.
  12865. @throws IOException]]>
  12866. </doc>
  12867. </method>
  12868. <method name="writeCompressedBytes"
  12869. abstract="false" native="false" synchronized="false"
  12870. static="false" final="false" visibility="public"
  12871. deprecated="not deprecated">
  12872. <param name="outStream" type="java.io.DataOutputStream"/>
  12873. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  12874. <exception name="IOException" type="java.io.IOException"/>
  12875. <doc>
  12876. <![CDATA[Write compressed bytes to outStream.
  12877. Note: that it will NOT compress the bytes if they are not compressed.
  12878. @param outStream : Stream to write compressed bytes into.]]>
  12879. </doc>
  12880. </method>
  12881. <method name="getSize" return="int"
  12882. abstract="false" native="false" synchronized="false"
  12883. static="false" final="false" visibility="public"
  12884. deprecated="not deprecated">
  12885. <doc>
  12886. <![CDATA[Size of stored data.]]>
  12887. </doc>
  12888. </method>
  12889. <doc>
  12890. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  12891. </doc>
  12892. </interface>
  12893. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  12894. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  12895. <class name="SequenceFile.Writer" extends="java.lang.Object"
  12896. abstract="false"
  12897. static="true" final="false" visibility="public"
  12898. deprecated="not deprecated">
  12899. <implements name="java.io.Closeable"/>
  12900. <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"
  12901. static="false" final="false" visibility="public"
  12902. deprecated="not deprecated">
  12903. <exception name="IOException" type="java.io.IOException"/>
  12904. <doc>
  12905. <![CDATA[Create the named file.]]>
  12906. </doc>
  12907. </constructor>
  12908. <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"
  12909. static="false" final="false" visibility="public"
  12910. deprecated="not deprecated">
  12911. <exception name="IOException" type="java.io.IOException"/>
  12912. <doc>
  12913. <![CDATA[Create the named file with write-progress reporter.]]>
  12914. </doc>
  12915. </constructor>
  12916. <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"
  12917. static="false" final="false" visibility="public"
  12918. deprecated="not deprecated">
  12919. <exception name="IOException" type="java.io.IOException"/>
  12920. <doc>
  12921. <![CDATA[Create the named file with write-progress reporter.]]>
  12922. </doc>
  12923. </constructor>
  12924. <method name="getKeyClass" return="java.lang.Class"
  12925. abstract="false" native="false" synchronized="false"
  12926. static="false" final="false" visibility="public"
  12927. deprecated="not deprecated">
  12928. <doc>
  12929. <![CDATA[Returns the class of keys in this file.]]>
  12930. </doc>
  12931. </method>
  12932. <method name="getValueClass" return="java.lang.Class"
  12933. abstract="false" native="false" synchronized="false"
  12934. static="false" final="false" visibility="public"
  12935. deprecated="not deprecated">
  12936. <doc>
  12937. <![CDATA[Returns the class of values in this file.]]>
  12938. </doc>
  12939. </method>
  12940. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  12941. abstract="false" native="false" synchronized="false"
  12942. static="false" final="false" visibility="public"
  12943. deprecated="not deprecated">
  12944. <doc>
  12945. <![CDATA[Returns the compression codec of data in this file.]]>
  12946. </doc>
  12947. </method>
  12948. <method name="sync"
  12949. abstract="false" native="false" synchronized="false"
  12950. static="false" final="false" visibility="public"
  12951. deprecated="not deprecated">
  12952. <exception name="IOException" type="java.io.IOException"/>
  12953. <doc>
  12954. <![CDATA[create a sync point]]>
  12955. </doc>
  12956. </method>
  12957. <method name="close"
  12958. abstract="false" native="false" synchronized="true"
  12959. static="false" final="false" visibility="public"
  12960. deprecated="not deprecated">
  12961. <exception name="IOException" type="java.io.IOException"/>
  12962. <doc>
  12963. <![CDATA[Close the file.]]>
  12964. </doc>
  12965. </method>
  12966. <method name="append"
  12967. abstract="false" native="false" synchronized="true"
  12968. static="false" final="false" visibility="public"
  12969. deprecated="not deprecated">
  12970. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12971. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12972. <exception name="IOException" type="java.io.IOException"/>
  12973. <doc>
  12974. <![CDATA[Append a key/value pair.]]>
  12975. </doc>
  12976. </method>
  12977. <method name="append"
  12978. abstract="false" native="false" synchronized="true"
  12979. static="false" final="false" visibility="public"
  12980. deprecated="not deprecated">
  12981. <param name="key" type="java.lang.Object"/>
  12982. <param name="val" type="java.lang.Object"/>
  12983. <exception name="IOException" type="java.io.IOException"/>
  12984. <doc>
  12985. <![CDATA[Append a key/value pair.]]>
  12986. </doc>
  12987. </method>
  12988. <method name="appendRaw"
  12989. abstract="false" native="false" synchronized="true"
  12990. static="false" final="false" visibility="public"
  12991. deprecated="not deprecated">
  12992. <param name="keyData" type="byte[]"/>
  12993. <param name="keyOffset" type="int"/>
  12994. <param name="keyLength" type="int"/>
  12995. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12996. <exception name="IOException" type="java.io.IOException"/>
  12997. </method>
  12998. <method name="getLength" return="long"
  12999. abstract="false" native="false" synchronized="true"
  13000. static="false" final="false" visibility="public"
  13001. deprecated="not deprecated">
  13002. <exception name="IOException" type="java.io.IOException"/>
  13003. <doc>
  13004. <![CDATA[Returns the current length of the output file.
  13005. <p>This always returns a synchronized position. In other words,
  13006. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  13007. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  13008. the key may be earlier in the file than key last written when this
  13009. method was called (e.g., with block-compression, it may be the first key
  13010. in the block that was being written when this method was called).]]>
  13011. </doc>
  13012. </method>
  13013. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13014. transient="false" volatile="false"
  13015. static="false" final="false" visibility="protected"
  13016. deprecated="not deprecated">
  13017. </field>
  13018. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13019. transient="false" volatile="false"
  13020. static="false" final="false" visibility="protected"
  13021. deprecated="not deprecated">
  13022. </field>
  13023. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13024. transient="false" volatile="false"
  13025. static="false" final="false" visibility="protected"
  13026. deprecated="not deprecated">
  13027. </field>
  13028. <doc>
  13029. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  13030. </doc>
  13031. </class>
  13032. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  13033. <!-- start class org.apache.hadoop.io.SetFile -->
  13034. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  13035. abstract="false"
  13036. static="false" final="false" visibility="public"
  13037. deprecated="not deprecated">
  13038. <constructor name="SetFile"
  13039. static="false" final="false" visibility="protected"
  13040. deprecated="not deprecated">
  13041. </constructor>
  13042. <doc>
  13043. <![CDATA[A file-based set of keys.]]>
  13044. </doc>
  13045. </class>
  13046. <!-- end class org.apache.hadoop.io.SetFile -->
  13047. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  13048. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  13049. abstract="false"
  13050. static="true" final="false" visibility="public"
  13051. deprecated="not deprecated">
  13052. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  13053. static="false" final="false" visibility="public"
  13054. deprecated="not deprecated">
  13055. <exception name="IOException" type="java.io.IOException"/>
  13056. <doc>
  13057. <![CDATA[Construct a set reader for the named set.]]>
  13058. </doc>
  13059. </constructor>
  13060. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  13061. static="false" final="false" visibility="public"
  13062. deprecated="not deprecated">
  13063. <exception name="IOException" type="java.io.IOException"/>
  13064. <doc>
  13065. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  13066. </doc>
  13067. </constructor>
  13068. <method name="seek" return="boolean"
  13069. abstract="false" native="false" synchronized="false"
  13070. static="false" final="false" visibility="public"
  13071. deprecated="not deprecated">
  13072. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13073. <exception name="IOException" type="java.io.IOException"/>
  13074. </method>
  13075. <method name="next" return="boolean"
  13076. abstract="false" native="false" synchronized="false"
  13077. static="false" final="false" visibility="public"
  13078. deprecated="not deprecated">
  13079. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13080. <exception name="IOException" type="java.io.IOException"/>
  13081. <doc>
  13082. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  13083. true if such a key exists and false when at the end of the set.]]>
  13084. </doc>
  13085. </method>
  13086. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  13087. abstract="false" native="false" synchronized="false"
  13088. static="false" final="false" visibility="public"
  13089. deprecated="not deprecated">
  13090. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13091. <exception name="IOException" type="java.io.IOException"/>
  13092. <doc>
  13093. <![CDATA[Read the matching key from a set into <code>key</code>.
  13094. Returns <code>key</code>, or null if no match exists.]]>
  13095. </doc>
  13096. </method>
  13097. <doc>
  13098. <![CDATA[Provide access to an existing set file.]]>
  13099. </doc>
  13100. </class>
  13101. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  13102. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  13103. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  13104. abstract="false"
  13105. static="true" final="false" visibility="public"
  13106. deprecated="not deprecated">
  13107. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  13108. static="false" final="false" visibility="public"
  13109. deprecated="pass a Configuration too">
  13110. <exception name="IOException" type="java.io.IOException"/>
  13111. <doc>
  13112. <![CDATA[Create the named set for keys of the named class.
  13113. @deprecated pass a Configuration too]]>
  13114. </doc>
  13115. </constructor>
  13116. <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"
  13117. static="false" final="false" visibility="public"
  13118. deprecated="not deprecated">
  13119. <exception name="IOException" type="java.io.IOException"/>
  13120. <doc>
  13121. <![CDATA[Create a set naming the element class and compression type.]]>
  13122. </doc>
  13123. </constructor>
  13124. <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"
  13125. static="false" final="false" visibility="public"
  13126. deprecated="not deprecated">
  13127. <exception name="IOException" type="java.io.IOException"/>
  13128. <doc>
  13129. <![CDATA[Create a set naming the element comparator and compression type.]]>
  13130. </doc>
  13131. </constructor>
  13132. <method name="append"
  13133. abstract="false" native="false" synchronized="false"
  13134. static="false" final="false" visibility="public"
  13135. deprecated="not deprecated">
  13136. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13137. <exception name="IOException" type="java.io.IOException"/>
  13138. <doc>
  13139. <![CDATA[Append a key to a set. The key must be strictly greater than the
  13140. previous key added to the set.]]>
  13141. </doc>
  13142. </method>
  13143. <doc>
  13144. <![CDATA[Write a new set file.]]>
  13145. </doc>
  13146. </class>
  13147. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  13148. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  13149. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  13150. abstract="false"
  13151. static="false" final="false" visibility="public"
  13152. deprecated="not deprecated">
  13153. <implements name="java.util.SortedMap"/>
  13154. <constructor name="SortedMapWritable"
  13155. static="false" final="false" visibility="public"
  13156. deprecated="not deprecated">
  13157. <doc>
  13158. <![CDATA[default constructor.]]>
  13159. </doc>
  13160. </constructor>
  13161. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  13162. static="false" final="false" visibility="public"
  13163. deprecated="not deprecated">
  13164. <doc>
  13165. <![CDATA[Copy constructor.
  13166. @param other the map to copy from]]>
  13167. </doc>
  13168. </constructor>
  13169. <method name="comparator" return="java.util.Comparator"
  13170. abstract="false" native="false" synchronized="false"
  13171. static="false" final="false" visibility="public"
  13172. deprecated="not deprecated">
  13173. <doc>
  13174. <![CDATA[{@inheritDoc}]]>
  13175. </doc>
  13176. </method>
  13177. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  13178. abstract="false" native="false" synchronized="false"
  13179. static="false" final="false" visibility="public"
  13180. deprecated="not deprecated">
  13181. <doc>
  13182. <![CDATA[{@inheritDoc}]]>
  13183. </doc>
  13184. </method>
  13185. <method name="headMap" return="java.util.SortedMap"
  13186. abstract="false" native="false" synchronized="false"
  13187. static="false" final="false" visibility="public"
  13188. deprecated="not deprecated">
  13189. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  13190. <doc>
  13191. <![CDATA[{@inheritDoc}]]>
  13192. </doc>
  13193. </method>
  13194. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  13195. abstract="false" native="false" synchronized="false"
  13196. static="false" final="false" visibility="public"
  13197. deprecated="not deprecated">
  13198. <doc>
  13199. <![CDATA[{@inheritDoc}]]>
  13200. </doc>
  13201. </method>
  13202. <method name="subMap" return="java.util.SortedMap"
  13203. abstract="false" native="false" synchronized="false"
  13204. static="false" final="false" visibility="public"
  13205. deprecated="not deprecated">
  13206. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  13207. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  13208. <doc>
  13209. <![CDATA[{@inheritDoc}]]>
  13210. </doc>
  13211. </method>
  13212. <method name="tailMap" return="java.util.SortedMap"
  13213. abstract="false" native="false" synchronized="false"
  13214. static="false" final="false" visibility="public"
  13215. deprecated="not deprecated">
  13216. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  13217. <doc>
  13218. <![CDATA[{@inheritDoc}]]>
  13219. </doc>
  13220. </method>
  13221. <method name="clear"
  13222. abstract="false" native="false" synchronized="false"
  13223. static="false" final="false" visibility="public"
  13224. deprecated="not deprecated">
  13225. <doc>
  13226. <![CDATA[{@inheritDoc}]]>
  13227. </doc>
  13228. </method>
  13229. <method name="containsKey" return="boolean"
  13230. abstract="false" native="false" synchronized="false"
  13231. static="false" final="false" visibility="public"
  13232. deprecated="not deprecated">
  13233. <param name="key" type="java.lang.Object"/>
  13234. <doc>
  13235. <![CDATA[{@inheritDoc}]]>
  13236. </doc>
  13237. </method>
  13238. <method name="containsValue" return="boolean"
  13239. abstract="false" native="false" synchronized="false"
  13240. static="false" final="false" visibility="public"
  13241. deprecated="not deprecated">
  13242. <param name="value" type="java.lang.Object"/>
  13243. <doc>
  13244. <![CDATA[{@inheritDoc}]]>
  13245. </doc>
  13246. </method>
  13247. <method name="entrySet" return="java.util.Set"
  13248. abstract="false" native="false" synchronized="false"
  13249. static="false" final="false" visibility="public"
  13250. deprecated="not deprecated">
  13251. <doc>
  13252. <![CDATA[{@inheritDoc}]]>
  13253. </doc>
  13254. </method>
  13255. <method name="get" return="org.apache.hadoop.io.Writable"
  13256. abstract="false" native="false" synchronized="false"
  13257. static="false" final="false" visibility="public"
  13258. deprecated="not deprecated">
  13259. <param name="key" type="java.lang.Object"/>
  13260. <doc>
  13261. <![CDATA[{@inheritDoc}]]>
  13262. </doc>
  13263. </method>
  13264. <method name="isEmpty" return="boolean"
  13265. abstract="false" native="false" synchronized="false"
  13266. static="false" final="false" visibility="public"
  13267. deprecated="not deprecated">
  13268. <doc>
  13269. <![CDATA[{@inheritDoc}]]>
  13270. </doc>
  13271. </method>
  13272. <method name="keySet" return="java.util.Set"
  13273. abstract="false" native="false" synchronized="false"
  13274. static="false" final="false" visibility="public"
  13275. deprecated="not deprecated">
  13276. <doc>
  13277. <![CDATA[{@inheritDoc}]]>
  13278. </doc>
  13279. </method>
  13280. <method name="put" return="org.apache.hadoop.io.Writable"
  13281. abstract="false" native="false" synchronized="false"
  13282. static="false" final="false" visibility="public"
  13283. deprecated="not deprecated">
  13284. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13285. <param name="value" type="org.apache.hadoop.io.Writable"/>
  13286. <doc>
  13287. <![CDATA[{@inheritDoc}]]>
  13288. </doc>
  13289. </method>
  13290. <method name="putAll"
  13291. abstract="false" native="false" synchronized="false"
  13292. static="false" final="false" visibility="public"
  13293. deprecated="not deprecated">
  13294. <param name="t" type="java.util.Map"/>
  13295. <doc>
  13296. <![CDATA[{@inheritDoc}]]>
  13297. </doc>
  13298. </method>
  13299. <method name="remove" return="org.apache.hadoop.io.Writable"
  13300. abstract="false" native="false" synchronized="false"
  13301. static="false" final="false" visibility="public"
  13302. deprecated="not deprecated">
  13303. <param name="key" type="java.lang.Object"/>
  13304. <doc>
  13305. <![CDATA[{@inheritDoc}]]>
  13306. </doc>
  13307. </method>
  13308. <method name="size" return="int"
  13309. abstract="false" native="false" synchronized="false"
  13310. static="false" final="false" visibility="public"
  13311. deprecated="not deprecated">
  13312. <doc>
  13313. <![CDATA[{@inheritDoc}]]>
  13314. </doc>
  13315. </method>
  13316. <method name="values" return="java.util.Collection"
  13317. abstract="false" native="false" synchronized="false"
  13318. static="false" final="false" visibility="public"
  13319. deprecated="not deprecated">
  13320. <doc>
  13321. <![CDATA[{@inheritDoc}]]>
  13322. </doc>
  13323. </method>
  13324. <method name="readFields"
  13325. abstract="false" native="false" synchronized="false"
  13326. static="false" final="false" visibility="public"
  13327. deprecated="not deprecated">
  13328. <param name="in" type="java.io.DataInput"/>
  13329. <exception name="IOException" type="java.io.IOException"/>
  13330. <doc>
  13331. <![CDATA[{@inheritDoc}]]>
  13332. </doc>
  13333. </method>
  13334. <method name="write"
  13335. abstract="false" native="false" synchronized="false"
  13336. static="false" final="false" visibility="public"
  13337. deprecated="not deprecated">
  13338. <param name="out" type="java.io.DataOutput"/>
  13339. <exception name="IOException" type="java.io.IOException"/>
  13340. <doc>
  13341. <![CDATA[{@inheritDoc}]]>
  13342. </doc>
  13343. </method>
  13344. <doc>
  13345. <![CDATA[A Writable SortedMap.]]>
  13346. </doc>
  13347. </class>
  13348. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  13349. <!-- start interface org.apache.hadoop.io.Stringifier -->
  13350. <interface name="Stringifier" abstract="true"
  13351. static="false" final="false" visibility="public"
  13352. deprecated="not deprecated">
  13353. <implements name="java.io.Closeable"/>
  13354. <method name="toString" return="java.lang.String"
  13355. abstract="false" native="false" synchronized="false"
  13356. static="false" final="false" visibility="public"
  13357. deprecated="not deprecated">
  13358. <param name="obj" type="java.lang.Object"/>
  13359. <exception name="IOException" type="java.io.IOException"/>
  13360. <doc>
  13361. <![CDATA[Converts the object to a string representation
  13362. @param obj the object to convert
  13363. @return the string representation of the object
  13364. @throws IOException if the object cannot be converted]]>
  13365. </doc>
  13366. </method>
  13367. <method name="fromString" return="java.lang.Object"
  13368. abstract="false" native="false" synchronized="false"
  13369. static="false" final="false" visibility="public"
  13370. deprecated="not deprecated">
  13371. <param name="str" type="java.lang.String"/>
  13372. <exception name="IOException" type="java.io.IOException"/>
  13373. <doc>
  13374. <![CDATA[Restores the object from its string representation.
  13375. @param str the string representation of the object
  13376. @return restored object
  13377. @throws IOException if the object cannot be restored]]>
  13378. </doc>
  13379. </method>
  13380. <method name="close"
  13381. abstract="false" native="false" synchronized="false"
  13382. static="false" final="false" visibility="public"
  13383. deprecated="not deprecated">
  13384. <exception name="IOException" type="java.io.IOException"/>
  13385. <doc>
  13386. <![CDATA[Closes this object.
  13387. @throws IOException if an I/O error occurs]]>
  13388. </doc>
  13389. </method>
  13390. <doc>
  13391. <![CDATA[Stringifier interface offers two methods to convert an object
  13392. to a string representation and restore the object given its
  13393. string representation.
  13394. @param <T> the class of the objects to stringify]]>
  13395. </doc>
  13396. </interface>
  13397. <!-- end interface org.apache.hadoop.io.Stringifier -->
  13398. <!-- start class org.apache.hadoop.io.Text -->
  13399. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  13400. abstract="false"
  13401. static="false" final="false" visibility="public"
  13402. deprecated="not deprecated">
  13403. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13404. <constructor name="Text"
  13405. static="false" final="false" visibility="public"
  13406. deprecated="not deprecated">
  13407. </constructor>
  13408. <constructor name="Text" type="java.lang.String"
  13409. static="false" final="false" visibility="public"
  13410. deprecated="not deprecated">
  13411. <doc>
  13412. <![CDATA[Construct from a string.]]>
  13413. </doc>
  13414. </constructor>
  13415. <constructor name="Text" type="org.apache.hadoop.io.Text"
  13416. static="false" final="false" visibility="public"
  13417. deprecated="not deprecated">
  13418. <doc>
  13419. <![CDATA[Construct from another text.]]>
  13420. </doc>
  13421. </constructor>
  13422. <constructor name="Text" type="byte[]"
  13423. static="false" final="false" visibility="public"
  13424. deprecated="not deprecated">
  13425. <doc>
  13426. <![CDATA[Construct from a byte array.]]>
  13427. </doc>
  13428. </constructor>
  13429. <method name="getBytes" return="byte[]"
  13430. abstract="false" native="false" synchronized="false"
  13431. static="false" final="false" visibility="public"
  13432. deprecated="not deprecated">
  13433. <doc>
  13434. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  13435. valid.]]>
  13436. </doc>
  13437. </method>
  13438. <method name="getLength" return="int"
  13439. abstract="false" native="false" synchronized="false"
  13440. static="false" final="false" visibility="public"
  13441. deprecated="not deprecated">
  13442. <doc>
  13443. <![CDATA[Returns the number of bytes in the byte array]]>
  13444. </doc>
  13445. </method>
  13446. <method name="charAt" return="int"
  13447. abstract="false" native="false" synchronized="false"
  13448. static="false" final="false" visibility="public"
  13449. deprecated="not deprecated">
  13450. <param name="position" type="int"/>
  13451. <doc>
  13452. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  13453. for the character at <code>position</code>. Note that this
  13454. method avoids using the converter or doing String instatiation
  13455. @return the Unicode scalar value at position or -1
  13456. if the position is invalid or points to a
  13457. trailing byte]]>
  13458. </doc>
  13459. </method>
  13460. <method name="find" return="int"
  13461. abstract="false" native="false" synchronized="false"
  13462. static="false" final="false" visibility="public"
  13463. deprecated="not deprecated">
  13464. <param name="what" type="java.lang.String"/>
  13465. </method>
  13466. <method name="find" return="int"
  13467. abstract="false" native="false" synchronized="false"
  13468. static="false" final="false" visibility="public"
  13469. deprecated="not deprecated">
  13470. <param name="what" type="java.lang.String"/>
  13471. <param name="start" type="int"/>
  13472. <doc>
  13473. <![CDATA[Finds any occurence of <code>what</code> in the backing
  13474. buffer, starting as position <code>start</code>. The starting
  13475. position is measured in bytes and the return value is in
  13476. terms of byte position in the buffer. The backing buffer is
  13477. not converted to a string for this operation.
  13478. @return byte position of the first occurence of the search
  13479. string in the UTF-8 buffer or -1 if not found]]>
  13480. </doc>
  13481. </method>
  13482. <method name="set"
  13483. abstract="false" native="false" synchronized="false"
  13484. static="false" final="false" visibility="public"
  13485. deprecated="not deprecated">
  13486. <param name="string" type="java.lang.String"/>
  13487. <doc>
  13488. <![CDATA[Set to contain the contents of a string.]]>
  13489. </doc>
  13490. </method>
  13491. <method name="set"
  13492. abstract="false" native="false" synchronized="false"
  13493. static="false" final="false" visibility="public"
  13494. deprecated="not deprecated">
  13495. <param name="utf8" type="byte[]"/>
  13496. <doc>
  13497. <![CDATA[Set to a utf8 byte array]]>
  13498. </doc>
  13499. </method>
  13500. <method name="set"
  13501. abstract="false" native="false" synchronized="false"
  13502. static="false" final="false" visibility="public"
  13503. deprecated="not deprecated">
  13504. <param name="other" type="org.apache.hadoop.io.Text"/>
  13505. <doc>
  13506. <![CDATA[copy a text.]]>
  13507. </doc>
  13508. </method>
  13509. <method name="set"
  13510. abstract="false" native="false" synchronized="false"
  13511. static="false" final="false" visibility="public"
  13512. deprecated="not deprecated">
  13513. <param name="utf8" type="byte[]"/>
  13514. <param name="start" type="int"/>
  13515. <param name="len" type="int"/>
  13516. <doc>
  13517. <![CDATA[Set the Text to range of bytes
  13518. @param utf8 the data to copy from
  13519. @param start the first position of the new string
  13520. @param len the number of bytes of the new string]]>
  13521. </doc>
  13522. </method>
  13523. <method name="append"
  13524. abstract="false" native="false" synchronized="false"
  13525. static="false" final="false" visibility="public"
  13526. deprecated="not deprecated">
  13527. <param name="utf8" type="byte[]"/>
  13528. <param name="start" type="int"/>
  13529. <param name="len" type="int"/>
  13530. <doc>
  13531. <![CDATA[Append a range of bytes to the end of the given text
  13532. @param utf8 the data to copy from
  13533. @param start the first position to append from utf8
  13534. @param len the number of bytes to append]]>
  13535. </doc>
  13536. </method>
  13537. <method name="clear"
  13538. abstract="false" native="false" synchronized="false"
  13539. static="false" final="false" visibility="public"
  13540. deprecated="not deprecated">
  13541. <doc>
  13542. <![CDATA[Clear the string to empty.]]>
  13543. </doc>
  13544. </method>
  13545. <method name="toString" return="java.lang.String"
  13546. abstract="false" native="false" synchronized="false"
  13547. static="false" final="false" visibility="public"
  13548. deprecated="not deprecated">
  13549. <doc>
  13550. <![CDATA[Convert text back to string
  13551. @see java.lang.Object#toString()]]>
  13552. </doc>
  13553. </method>
  13554. <method name="readFields"
  13555. abstract="false" native="false" synchronized="false"
  13556. static="false" final="false" visibility="public"
  13557. deprecated="not deprecated">
  13558. <param name="in" type="java.io.DataInput"/>
  13559. <exception name="IOException" type="java.io.IOException"/>
  13560. <doc>
  13561. <![CDATA[deserialize]]>
  13562. </doc>
  13563. </method>
  13564. <method name="skip"
  13565. abstract="false" native="false" synchronized="false"
  13566. static="true" final="false" visibility="public"
  13567. deprecated="not deprecated">
  13568. <param name="in" type="java.io.DataInput"/>
  13569. <exception name="IOException" type="java.io.IOException"/>
  13570. <doc>
  13571. <![CDATA[Skips over one Text in the input.]]>
  13572. </doc>
  13573. </method>
  13574. <method name="write"
  13575. abstract="false" native="false" synchronized="false"
  13576. static="false" final="false" visibility="public"
  13577. deprecated="not deprecated">
  13578. <param name="out" type="java.io.DataOutput"/>
  13579. <exception name="IOException" type="java.io.IOException"/>
  13580. <doc>
  13581. <![CDATA[serialize
  13582. write this object to out
  13583. length uses zero-compressed encoding
  13584. @see Writable#write(DataOutput)]]>
  13585. </doc>
  13586. </method>
  13587. <method name="equals" return="boolean"
  13588. abstract="false" native="false" synchronized="false"
  13589. static="false" final="false" visibility="public"
  13590. deprecated="not deprecated">
  13591. <param name="o" type="java.lang.Object"/>
  13592. <doc>
  13593. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  13594. </doc>
  13595. </method>
  13596. <method name="hashCode" return="int"
  13597. abstract="false" native="false" synchronized="false"
  13598. static="false" final="false" visibility="public"
  13599. deprecated="not deprecated">
  13600. </method>
  13601. <method name="decode" return="java.lang.String"
  13602. abstract="false" native="false" synchronized="false"
  13603. static="true" final="false" visibility="public"
  13604. deprecated="not deprecated">
  13605. <param name="utf8" type="byte[]"/>
  13606. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13607. <doc>
  13608. <![CDATA[Converts the provided byte array to a String using the
  13609. UTF-8 encoding. If the input is malformed,
  13610. replace by a default value.]]>
  13611. </doc>
  13612. </method>
  13613. <method name="decode" return="java.lang.String"
  13614. abstract="false" native="false" synchronized="false"
  13615. static="true" final="false" visibility="public"
  13616. deprecated="not deprecated">
  13617. <param name="utf8" type="byte[]"/>
  13618. <param name="start" type="int"/>
  13619. <param name="length" type="int"/>
  13620. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13621. </method>
  13622. <method name="decode" return="java.lang.String"
  13623. abstract="false" native="false" synchronized="false"
  13624. static="true" final="false" visibility="public"
  13625. deprecated="not deprecated">
  13626. <param name="utf8" type="byte[]"/>
  13627. <param name="start" type="int"/>
  13628. <param name="length" type="int"/>
  13629. <param name="replace" type="boolean"/>
  13630. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13631. <doc>
  13632. <![CDATA[Converts the provided byte array to a String using the
  13633. UTF-8 encoding. If <code>replace</code> is true, then
  13634. malformed input is replaced with the
  13635. substitution character, which is U+FFFD. Otherwise the
  13636. method throws a MalformedInputException.]]>
  13637. </doc>
  13638. </method>
  13639. <method name="encode" return="java.nio.ByteBuffer"
  13640. abstract="false" native="false" synchronized="false"
  13641. static="true" final="false" visibility="public"
  13642. deprecated="not deprecated">
  13643. <param name="string" type="java.lang.String"/>
  13644. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13645. <doc>
  13646. <![CDATA[Converts the provided String to bytes using the
  13647. UTF-8 encoding. If the input is malformed,
  13648. invalid chars are replaced by a default value.
  13649. @return ByteBuffer: bytes stores at ByteBuffer.array()
  13650. and length is ByteBuffer.limit()]]>
  13651. </doc>
  13652. </method>
  13653. <method name="encode" return="java.nio.ByteBuffer"
  13654. abstract="false" native="false" synchronized="false"
  13655. static="true" final="false" visibility="public"
  13656. deprecated="not deprecated">
  13657. <param name="string" type="java.lang.String"/>
  13658. <param name="replace" type="boolean"/>
  13659. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13660. <doc>
  13661. <![CDATA[Converts the provided String to bytes using the
  13662. UTF-8 encoding. If <code>replace</code> is true, then
  13663. malformed input is replaced with the
  13664. substitution character, which is U+FFFD. Otherwise the
  13665. method throws a MalformedInputException.
  13666. @return ByteBuffer: bytes stores at ByteBuffer.array()
  13667. and length is ByteBuffer.limit()]]>
  13668. </doc>
  13669. </method>
  13670. <method name="readString" return="java.lang.String"
  13671. abstract="false" native="false" synchronized="false"
  13672. static="true" final="false" visibility="public"
  13673. deprecated="not deprecated">
  13674. <param name="in" type="java.io.DataInput"/>
  13675. <exception name="IOException" type="java.io.IOException"/>
  13676. <doc>
  13677. <![CDATA[Read a UTF8 encoded string from in]]>
  13678. </doc>
  13679. </method>
  13680. <method name="writeString" return="int"
  13681. abstract="false" native="false" synchronized="false"
  13682. static="true" final="false" visibility="public"
  13683. deprecated="not deprecated">
  13684. <param name="out" type="java.io.DataOutput"/>
  13685. <param name="s" type="java.lang.String"/>
  13686. <exception name="IOException" type="java.io.IOException"/>
  13687. <doc>
  13688. <![CDATA[Write a UTF8 encoded string to out]]>
  13689. </doc>
  13690. </method>
  13691. <method name="validateUTF8"
  13692. abstract="false" native="false" synchronized="false"
  13693. static="true" final="false" visibility="public"
  13694. deprecated="not deprecated">
  13695. <param name="utf8" type="byte[]"/>
  13696. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  13697. <doc>
  13698. <![CDATA[Check if a byte array contains valid utf-8
  13699. @param utf8 byte array
  13700. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  13701. </doc>
  13702. </method>
  13703. <method name="validateUTF8"
  13704. abstract="false" native="false" synchronized="false"
  13705. static="true" final="false" visibility="public"
  13706. deprecated="not deprecated">
  13707. <param name="utf8" type="byte[]"/>
  13708. <param name="start" type="int"/>
  13709. <param name="len" type="int"/>
  13710. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  13711. <doc>
  13712. <![CDATA[Check to see if a byte array is valid utf-8
  13713. @param utf8 the array of bytes
  13714. @param start the offset of the first byte in the array
  13715. @param len the length of the byte sequence
  13716. @throws MalformedInputException if the byte array contains invalid bytes]]>
  13717. </doc>
  13718. </method>
  13719. <method name="bytesToCodePoint" return="int"
  13720. abstract="false" native="false" synchronized="false"
  13721. static="true" final="false" visibility="public"
  13722. deprecated="not deprecated">
  13723. <param name="bytes" type="java.nio.ByteBuffer"/>
  13724. <doc>
  13725. <![CDATA[Returns the next code point at the current position in
  13726. the buffer. The buffer's position will be incremented.
  13727. Any mark set on this buffer will be changed by this method!]]>
  13728. </doc>
  13729. </method>
  13730. <method name="utf8Length" return="int"
  13731. abstract="false" native="false" synchronized="false"
  13732. static="true" final="false" visibility="public"
  13733. deprecated="not deprecated">
  13734. <param name="string" type="java.lang.String"/>
  13735. <doc>
  13736. <![CDATA[For the given string, returns the number of UTF-8 bytes
  13737. required to encode the string.
  13738. @param string text to encode
  13739. @return number of UTF-8 bytes required to encode]]>
  13740. </doc>
  13741. </method>
  13742. <doc>
  13743. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  13744. to serialize, deserialize, and compare texts at byte level. The type of
  13745. length is integer and is serialized using zero-compressed format. <p>In
  13746. addition, it provides methods for string traversal without converting the
  13747. byte array to a string. <p>Also includes utilities for
  13748. serializing/deserialing a string, coding/decoding a string, checking if a
  13749. byte array contains valid UTF8 code, calculating the length of an encoded
  13750. string.]]>
  13751. </doc>
  13752. </class>
  13753. <!-- end class org.apache.hadoop.io.Text -->
  13754. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  13755. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13756. abstract="false"
  13757. static="true" final="false" visibility="public"
  13758. deprecated="not deprecated">
  13759. <constructor name="Text.Comparator"
  13760. static="false" final="false" visibility="public"
  13761. deprecated="not deprecated">
  13762. </constructor>
  13763. <method name="compare" return="int"
  13764. abstract="false" native="false" synchronized="false"
  13765. static="false" final="false" visibility="public"
  13766. deprecated="not deprecated">
  13767. <param name="b1" type="byte[]"/>
  13768. <param name="s1" type="int"/>
  13769. <param name="l1" type="int"/>
  13770. <param name="b2" type="byte[]"/>
  13771. <param name="s2" type="int"/>
  13772. <param name="l2" type="int"/>
  13773. </method>
  13774. <doc>
  13775. <![CDATA[A WritableComparator optimized for Text keys.]]>
  13776. </doc>
  13777. </class>
  13778. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  13779. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  13780. <class name="TwoDArrayWritable" extends="java.lang.Object"
  13781. abstract="false"
  13782. static="false" final="false" visibility="public"
  13783. deprecated="not deprecated">
  13784. <implements name="org.apache.hadoop.io.Writable"/>
  13785. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  13786. static="false" final="false" visibility="public"
  13787. deprecated="not deprecated">
  13788. </constructor>
  13789. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  13790. static="false" final="false" visibility="public"
  13791. deprecated="not deprecated">
  13792. </constructor>
  13793. <method name="toArray" return="java.lang.Object"
  13794. abstract="false" native="false" synchronized="false"
  13795. static="false" final="false" visibility="public"
  13796. deprecated="not deprecated">
  13797. </method>
  13798. <method name="set"
  13799. abstract="false" native="false" synchronized="false"
  13800. static="false" final="false" visibility="public"
  13801. deprecated="not deprecated">
  13802. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  13803. </method>
  13804. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  13805. abstract="false" native="false" synchronized="false"
  13806. static="false" final="false" visibility="public"
  13807. deprecated="not deprecated">
  13808. </method>
  13809. <method name="readFields"
  13810. abstract="false" native="false" synchronized="false"
  13811. static="false" final="false" visibility="public"
  13812. deprecated="not deprecated">
  13813. <param name="in" type="java.io.DataInput"/>
  13814. <exception name="IOException" type="java.io.IOException"/>
  13815. </method>
  13816. <method name="write"
  13817. abstract="false" native="false" synchronized="false"
  13818. static="false" final="false" visibility="public"
  13819. deprecated="not deprecated">
  13820. <param name="out" type="java.io.DataOutput"/>
  13821. <exception name="IOException" type="java.io.IOException"/>
  13822. </method>
  13823. <doc>
  13824. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  13825. </doc>
  13826. </class>
  13827. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  13828. <!-- start class org.apache.hadoop.io.UTF8 -->
  13829. <class name="UTF8" extends="java.lang.Object"
  13830. abstract="false"
  13831. static="false" final="false" visibility="public"
  13832. deprecated="replaced by Text">
  13833. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13834. <constructor name="UTF8"
  13835. static="false" final="false" visibility="public"
  13836. deprecated="not deprecated">
  13837. </constructor>
  13838. <constructor name="UTF8" type="java.lang.String"
  13839. static="false" final="false" visibility="public"
  13840. deprecated="not deprecated">
  13841. <doc>
  13842. <![CDATA[Construct from a given string.]]>
  13843. </doc>
  13844. </constructor>
  13845. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  13846. static="false" final="false" visibility="public"
  13847. deprecated="not deprecated">
  13848. <doc>
  13849. <![CDATA[Construct from a given string.]]>
  13850. </doc>
  13851. </constructor>
  13852. <method name="getBytes" return="byte[]"
  13853. abstract="false" native="false" synchronized="false"
  13854. static="false" final="false" visibility="public"
  13855. deprecated="not deprecated">
  13856. <doc>
  13857. <![CDATA[The raw bytes.]]>
  13858. </doc>
  13859. </method>
  13860. <method name="getLength" return="int"
  13861. abstract="false" native="false" synchronized="false"
  13862. static="false" final="false" visibility="public"
  13863. deprecated="not deprecated">
  13864. <doc>
  13865. <![CDATA[The number of bytes in the encoded string.]]>
  13866. </doc>
  13867. </method>
  13868. <method name="set"
  13869. abstract="false" native="false" synchronized="false"
  13870. static="false" final="false" visibility="public"
  13871. deprecated="not deprecated">
  13872. <param name="string" type="java.lang.String"/>
  13873. <doc>
  13874. <![CDATA[Set to contain the contents of a string.]]>
  13875. </doc>
  13876. </method>
  13877. <method name="set"
  13878. abstract="false" native="false" synchronized="false"
  13879. static="false" final="false" visibility="public"
  13880. deprecated="not deprecated">
  13881. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  13882. <doc>
  13883. <![CDATA[Set to contain the contents of a string.]]>
  13884. </doc>
  13885. </method>
  13886. <method name="readFields"
  13887. abstract="false" native="false" synchronized="false"
  13888. static="false" final="false" visibility="public"
  13889. deprecated="not deprecated">
  13890. <param name="in" type="java.io.DataInput"/>
  13891. <exception name="IOException" type="java.io.IOException"/>
  13892. </method>
  13893. <method name="skip"
  13894. abstract="false" native="false" synchronized="false"
  13895. static="true" final="false" visibility="public"
  13896. deprecated="not deprecated">
  13897. <param name="in" type="java.io.DataInput"/>
  13898. <exception name="IOException" type="java.io.IOException"/>
  13899. <doc>
  13900. <![CDATA[Skips over one UTF8 in the input.]]>
  13901. </doc>
  13902. </method>
  13903. <method name="write"
  13904. abstract="false" native="false" synchronized="false"
  13905. static="false" final="false" visibility="public"
  13906. deprecated="not deprecated">
  13907. <param name="out" type="java.io.DataOutput"/>
  13908. <exception name="IOException" type="java.io.IOException"/>
  13909. </method>
  13910. <method name="compareTo" return="int"
  13911. abstract="false" native="false" synchronized="false"
  13912. static="false" final="false" visibility="public"
  13913. deprecated="not deprecated">
  13914. <param name="o" type="java.lang.Object"/>
  13915. <doc>
  13916. <![CDATA[Compare two UTF8s.]]>
  13917. </doc>
  13918. </method>
  13919. <method name="toString" return="java.lang.String"
  13920. abstract="false" native="false" synchronized="false"
  13921. static="false" final="false" visibility="public"
  13922. deprecated="not deprecated">
  13923. <doc>
  13924. <![CDATA[Convert to a String.]]>
  13925. </doc>
  13926. </method>
  13927. <method name="equals" return="boolean"
  13928. abstract="false" native="false" synchronized="false"
  13929. static="false" final="false" visibility="public"
  13930. deprecated="not deprecated">
  13931. <param name="o" type="java.lang.Object"/>
  13932. <doc>
  13933. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  13934. </doc>
  13935. </method>
  13936. <method name="hashCode" return="int"
  13937. abstract="false" native="false" synchronized="false"
  13938. static="false" final="false" visibility="public"
  13939. deprecated="not deprecated">
  13940. </method>
  13941. <method name="getBytes" return="byte[]"
  13942. abstract="false" native="false" synchronized="false"
  13943. static="true" final="false" visibility="public"
  13944. deprecated="not deprecated">
  13945. <param name="string" type="java.lang.String"/>
  13946. <doc>
  13947. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  13948. @see String#getBytes(String)]]>
  13949. </doc>
  13950. </method>
  13951. <method name="readString" return="java.lang.String"
  13952. abstract="false" native="false" synchronized="false"
  13953. static="true" final="false" visibility="public"
  13954. deprecated="not deprecated">
  13955. <param name="in" type="java.io.DataInput"/>
  13956. <exception name="IOException" type="java.io.IOException"/>
  13957. <doc>
  13958. <![CDATA[Read a UTF-8 encoded string.
  13959. @see DataInput#readUTF()]]>
  13960. </doc>
  13961. </method>
  13962. <method name="writeString" return="int"
  13963. abstract="false" native="false" synchronized="false"
  13964. static="true" final="false" visibility="public"
  13965. deprecated="not deprecated">
  13966. <param name="out" type="java.io.DataOutput"/>
  13967. <param name="s" type="java.lang.String"/>
  13968. <exception name="IOException" type="java.io.IOException"/>
  13969. <doc>
  13970. <![CDATA[Write a UTF-8 encoded string.
  13971. @see DataOutput#writeUTF(String)]]>
  13972. </doc>
  13973. </method>
  13974. <doc>
  13975. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  13976. <p>Also includes utilities for efficiently reading and writing UTF-8.
  13977. @deprecated replaced by Text]]>
  13978. </doc>
  13979. </class>
  13980. <!-- end class org.apache.hadoop.io.UTF8 -->
  13981. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  13982. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13983. abstract="false"
  13984. static="true" final="false" visibility="public"
  13985. deprecated="not deprecated">
  13986. <constructor name="UTF8.Comparator"
  13987. static="false" final="false" visibility="public"
  13988. deprecated="not deprecated">
  13989. </constructor>
  13990. <method name="compare" return="int"
  13991. abstract="false" native="false" synchronized="false"
  13992. static="false" final="false" visibility="public"
  13993. deprecated="not deprecated">
  13994. <param name="b1" type="byte[]"/>
  13995. <param name="s1" type="int"/>
  13996. <param name="l1" type="int"/>
  13997. <param name="b2" type="byte[]"/>
  13998. <param name="s2" type="int"/>
  13999. <param name="l2" type="int"/>
  14000. </method>
  14001. <doc>
  14002. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  14003. </doc>
  14004. </class>
  14005. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  14006. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  14007. <class name="VersionedWritable" extends="java.lang.Object"
  14008. abstract="true"
  14009. static="false" final="false" visibility="public"
  14010. deprecated="not deprecated">
  14011. <implements name="org.apache.hadoop.io.Writable"/>
  14012. <constructor name="VersionedWritable"
  14013. static="false" final="false" visibility="public"
  14014. deprecated="not deprecated">
  14015. </constructor>
  14016. <method name="getVersion" return="byte"
  14017. abstract="true" native="false" synchronized="false"
  14018. static="false" final="false" visibility="public"
  14019. deprecated="not deprecated">
  14020. <doc>
  14021. <![CDATA[Return the version number of the current implementation.]]>
  14022. </doc>
  14023. </method>
  14024. <method name="write"
  14025. abstract="false" native="false" synchronized="false"
  14026. static="false" final="false" visibility="public"
  14027. deprecated="not deprecated">
  14028. <param name="out" type="java.io.DataOutput"/>
  14029. <exception name="IOException" type="java.io.IOException"/>
  14030. </method>
  14031. <method name="readFields"
  14032. abstract="false" native="false" synchronized="false"
  14033. static="false" final="false" visibility="public"
  14034. deprecated="not deprecated">
  14035. <param name="in" type="java.io.DataInput"/>
  14036. <exception name="IOException" type="java.io.IOException"/>
  14037. </method>
  14038. <doc>
  14039. <![CDATA[A base class for Writables that provides version checking.
  14040. <p>This is useful when a class may evolve, so that instances written by the
  14041. old version of the class may still be processed by the new version. To
  14042. handle this situation, {@link #readFields(DataInput)}
  14043. implementations should catch {@link VersionMismatchException}.]]>
  14044. </doc>
  14045. </class>
  14046. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  14047. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  14048. <class name="VersionMismatchException" extends="java.io.IOException"
  14049. abstract="false"
  14050. static="false" final="false" visibility="public"
  14051. deprecated="not deprecated">
  14052. <constructor name="VersionMismatchException" type="byte, byte"
  14053. static="false" final="false" visibility="public"
  14054. deprecated="not deprecated">
  14055. </constructor>
  14056. <method name="toString" return="java.lang.String"
  14057. abstract="false" native="false" synchronized="false"
  14058. static="false" final="false" visibility="public"
  14059. deprecated="not deprecated">
  14060. <doc>
  14061. <![CDATA[Returns a string representation of this object.]]>
  14062. </doc>
  14063. </method>
  14064. <doc>
  14065. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  14066. version of an object being read does not match the current implementation
  14067. version as returned by {@link VersionedWritable#getVersion()}.]]>
  14068. </doc>
  14069. </class>
  14070. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  14071. <!-- start class org.apache.hadoop.io.VIntWritable -->
  14072. <class name="VIntWritable" extends="java.lang.Object"
  14073. abstract="false"
  14074. static="false" final="false" visibility="public"
  14075. deprecated="not deprecated">
  14076. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14077. <constructor name="VIntWritable"
  14078. static="false" final="false" visibility="public"
  14079. deprecated="not deprecated">
  14080. </constructor>
  14081. <constructor name="VIntWritable" type="int"
  14082. static="false" final="false" visibility="public"
  14083. deprecated="not deprecated">
  14084. </constructor>
  14085. <method name="set"
  14086. abstract="false" native="false" synchronized="false"
  14087. static="false" final="false" visibility="public"
  14088. deprecated="not deprecated">
  14089. <param name="value" type="int"/>
  14090. <doc>
  14091. <![CDATA[Set the value of this VIntWritable.]]>
  14092. </doc>
  14093. </method>
  14094. <method name="get" return="int"
  14095. abstract="false" native="false" synchronized="false"
  14096. static="false" final="false" visibility="public"
  14097. deprecated="not deprecated">
  14098. <doc>
  14099. <![CDATA[Return the value of this VIntWritable.]]>
  14100. </doc>
  14101. </method>
  14102. <method name="readFields"
  14103. abstract="false" native="false" synchronized="false"
  14104. static="false" final="false" visibility="public"
  14105. deprecated="not deprecated">
  14106. <param name="in" type="java.io.DataInput"/>
  14107. <exception name="IOException" type="java.io.IOException"/>
  14108. </method>
  14109. <method name="write"
  14110. abstract="false" native="false" synchronized="false"
  14111. static="false" final="false" visibility="public"
  14112. deprecated="not deprecated">
  14113. <param name="out" type="java.io.DataOutput"/>
  14114. <exception name="IOException" type="java.io.IOException"/>
  14115. </method>
  14116. <method name="equals" return="boolean"
  14117. abstract="false" native="false" synchronized="false"
  14118. static="false" final="false" visibility="public"
  14119. deprecated="not deprecated">
  14120. <param name="o" type="java.lang.Object"/>
  14121. <doc>
  14122. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  14123. </doc>
  14124. </method>
  14125. <method name="hashCode" return="int"
  14126. abstract="false" native="false" synchronized="false"
  14127. static="false" final="false" visibility="public"
  14128. deprecated="not deprecated">
  14129. </method>
  14130. <method name="compareTo" return="int"
  14131. abstract="false" native="false" synchronized="false"
  14132. static="false" final="false" visibility="public"
  14133. deprecated="not deprecated">
  14134. <param name="o" type="java.lang.Object"/>
  14135. <doc>
  14136. <![CDATA[Compares two VIntWritables.]]>
  14137. </doc>
  14138. </method>
  14139. <method name="toString" return="java.lang.String"
  14140. abstract="false" native="false" synchronized="false"
  14141. static="false" final="false" visibility="public"
  14142. deprecated="not deprecated">
  14143. </method>
  14144. <doc>
  14145. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  14146. Such values take between one and five bytes. Smaller values take fewer bytes.
  14147. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  14148. </doc>
  14149. </class>
  14150. <!-- end class org.apache.hadoop.io.VIntWritable -->
  14151. <!-- start class org.apache.hadoop.io.VLongWritable -->
  14152. <class name="VLongWritable" extends="java.lang.Object"
  14153. abstract="false"
  14154. static="false" final="false" visibility="public"
  14155. deprecated="not deprecated">
  14156. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14157. <constructor name="VLongWritable"
  14158. static="false" final="false" visibility="public"
  14159. deprecated="not deprecated">
  14160. </constructor>
  14161. <constructor name="VLongWritable" type="long"
  14162. static="false" final="false" visibility="public"
  14163. deprecated="not deprecated">
  14164. </constructor>
  14165. <method name="set"
  14166. abstract="false" native="false" synchronized="false"
  14167. static="false" final="false" visibility="public"
  14168. deprecated="not deprecated">
  14169. <param name="value" type="long"/>
  14170. <doc>
  14171. <![CDATA[Set the value of this LongWritable.]]>
  14172. </doc>
  14173. </method>
  14174. <method name="get" return="long"
  14175. abstract="false" native="false" synchronized="false"
  14176. static="false" final="false" visibility="public"
  14177. deprecated="not deprecated">
  14178. <doc>
  14179. <![CDATA[Return the value of this LongWritable.]]>
  14180. </doc>
  14181. </method>
  14182. <method name="readFields"
  14183. abstract="false" native="false" synchronized="false"
  14184. static="false" final="false" visibility="public"
  14185. deprecated="not deprecated">
  14186. <param name="in" type="java.io.DataInput"/>
  14187. <exception name="IOException" type="java.io.IOException"/>
  14188. </method>
  14189. <method name="write"
  14190. abstract="false" native="false" synchronized="false"
  14191. static="false" final="false" visibility="public"
  14192. deprecated="not deprecated">
  14193. <param name="out" type="java.io.DataOutput"/>
  14194. <exception name="IOException" type="java.io.IOException"/>
  14195. </method>
  14196. <method name="equals" return="boolean"
  14197. abstract="false" native="false" synchronized="false"
  14198. static="false" final="false" visibility="public"
  14199. deprecated="not deprecated">
  14200. <param name="o" type="java.lang.Object"/>
  14201. <doc>
  14202. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  14203. </doc>
  14204. </method>
  14205. <method name="hashCode" return="int"
  14206. abstract="false" native="false" synchronized="false"
  14207. static="false" final="false" visibility="public"
  14208. deprecated="not deprecated">
  14209. </method>
  14210. <method name="compareTo" return="int"
  14211. abstract="false" native="false" synchronized="false"
  14212. static="false" final="false" visibility="public"
  14213. deprecated="not deprecated">
  14214. <param name="o" type="java.lang.Object"/>
  14215. <doc>
  14216. <![CDATA[Compares two VLongWritables.]]>
  14217. </doc>
  14218. </method>
  14219. <method name="toString" return="java.lang.String"
  14220. abstract="false" native="false" synchronized="false"
  14221. static="false" final="false" visibility="public"
  14222. deprecated="not deprecated">
  14223. </method>
  14224. <doc>
  14225. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  14226. between one and five bytes. Smaller values take fewer bytes.
  14227. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  14228. </doc>
  14229. </class>
  14230. <!-- end class org.apache.hadoop.io.VLongWritable -->
  14231. <!-- start interface org.apache.hadoop.io.Writable -->
  14232. <interface name="Writable" abstract="true"
  14233. static="false" final="false" visibility="public"
  14234. deprecated="not deprecated">
  14235. <method name="write"
  14236. abstract="false" native="false" synchronized="false"
  14237. static="false" final="false" visibility="public"
  14238. deprecated="not deprecated">
  14239. <param name="out" type="java.io.DataOutput"/>
  14240. <exception name="IOException" type="java.io.IOException"/>
  14241. <doc>
  14242. <![CDATA[Serialize the fields of this object to <code>out</code>.
  14243. @param out <code>DataOuput</code> to serialize this object into.
  14244. @throws IOException]]>
  14245. </doc>
  14246. </method>
  14247. <method name="readFields"
  14248. abstract="false" native="false" synchronized="false"
  14249. static="false" final="false" visibility="public"
  14250. deprecated="not deprecated">
  14251. <param name="in" type="java.io.DataInput"/>
  14252. <exception name="IOException" type="java.io.IOException"/>
  14253. <doc>
  14254. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  14255. <p>For efficiency, implementations should attempt to re-use storage in the
  14256. existing object where possible.</p>
  14257. @param in <code>DataInput</code> to deseriablize this object from.
  14258. @throws IOException]]>
  14259. </doc>
  14260. </method>
  14261. <doc>
  14262. <![CDATA[A serializable object which implements a simple, efficient, serialization
  14263. protocol, based on {@link DataInput} and {@link DataOutput}.
  14264. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  14265. framework implements this interface.</p>
  14266. <p>Implementations typically implement a static <code>read(DataInput)</code>
  14267. method which constructs a new instance, calls {@link #readFields(DataInput)}
  14268. and returns the instance.</p>
  14269. <p>Example:</p>
  14270. <p><blockquote><pre>
  14271. public class MyWritable implements Writable {
  14272. // Some data
  14273. private int counter;
  14274. private long timestamp;
  14275. public void write(DataOutput out) throws IOException {
  14276. out.writeInt(counter);
  14277. out.writeLong(timestamp);
  14278. }
  14279. public void readFields(DataInput in) throws IOException {
  14280. counter = in.readInt();
  14281. timestamp = in.readLong();
  14282. }
  14283. public static MyWritable read(DataInput in) throws IOException {
  14284. MyWritable w = new MyWritable();
  14285. w.readFields(in);
  14286. return w;
  14287. }
  14288. }
  14289. </pre></blockquote></p>]]>
  14290. </doc>
  14291. </interface>
  14292. <!-- end interface org.apache.hadoop.io.Writable -->
  14293. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  14294. <interface name="WritableComparable" abstract="true"
  14295. static="false" final="false" visibility="public"
  14296. deprecated="not deprecated">
  14297. <implements name="org.apache.hadoop.io.Writable"/>
  14298. <implements name="java.lang.Comparable"/>
  14299. <doc>
  14300. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  14301. <p><code>WritableComparable</code>s can be compared to each other, typically
  14302. via <code>Comparator</code>s. Any type which is to be used as a
  14303. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  14304. interface.</p>
  14305. <p>Example:</p>
  14306. <p><blockquote><pre>
  14307. public class MyWritableComparable implements WritableComparable {
  14308. // Some data
  14309. private int counter;
  14310. private long timestamp;
  14311. public void write(DataOutput out) throws IOException {
  14312. out.writeInt(counter);
  14313. out.writeLong(timestamp);
  14314. }
  14315. public void readFields(DataInput in) throws IOException {
  14316. counter = in.readInt();
  14317. timestamp = in.readLong();
  14318. }
  14319. public int compareTo(MyWritableComparable w) {
  14320. int thisValue = this.value;
  14321. int thatValue = ((IntWritable)o).value;
  14322. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  14323. }
  14324. }
  14325. </pre></blockquote></p>]]>
  14326. </doc>
  14327. </interface>
  14328. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  14329. <!-- start class org.apache.hadoop.io.WritableComparator -->
  14330. <class name="WritableComparator" extends="java.lang.Object"
  14331. abstract="false"
  14332. static="false" final="false" visibility="public"
  14333. deprecated="not deprecated">
  14334. <implements name="org.apache.hadoop.io.RawComparator"/>
  14335. <constructor name="WritableComparator" type="java.lang.Class"
  14336. static="false" final="false" visibility="protected"
  14337. deprecated="not deprecated">
  14338. <doc>
  14339. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  14340. </doc>
  14341. </constructor>
  14342. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  14343. static="false" final="false" visibility="protected"
  14344. deprecated="not deprecated">
  14345. </constructor>
  14346. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  14347. abstract="false" native="false" synchronized="true"
  14348. static="true" final="false" visibility="public"
  14349. deprecated="not deprecated">
  14350. <param name="c" type="java.lang.Class"/>
  14351. <doc>
  14352. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  14353. </doc>
  14354. </method>
  14355. <method name="define"
  14356. abstract="false" native="false" synchronized="true"
  14357. static="true" final="false" visibility="public"
  14358. deprecated="not deprecated">
  14359. <param name="c" type="java.lang.Class"/>
  14360. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  14361. <doc>
  14362. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  14363. implementation.]]>
  14364. </doc>
  14365. </method>
  14366. <method name="getKeyClass" return="java.lang.Class"
  14367. abstract="false" native="false" synchronized="false"
  14368. static="false" final="false" visibility="public"
  14369. deprecated="not deprecated">
  14370. <doc>
  14371. <![CDATA[Returns the WritableComparable implementation class.]]>
  14372. </doc>
  14373. </method>
  14374. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  14375. abstract="false" native="false" synchronized="false"
  14376. static="false" final="false" visibility="public"
  14377. deprecated="not deprecated">
  14378. <doc>
  14379. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  14380. </doc>
  14381. </method>
  14382. <method name="compare" return="int"
  14383. abstract="false" native="false" synchronized="false"
  14384. static="false" final="false" visibility="public"
  14385. deprecated="not deprecated">
  14386. <param name="b1" type="byte[]"/>
  14387. <param name="s1" type="int"/>
  14388. <param name="l1" type="int"/>
  14389. <param name="b2" type="byte[]"/>
  14390. <param name="s2" type="int"/>
  14391. <param name="l2" type="int"/>
  14392. <doc>
  14393. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  14394. <p>The default implementation reads the data into two {@link
  14395. WritableComparable}s (using {@link
  14396. Writable#readFields(DataInput)}, then calls {@link
  14397. #compare(WritableComparable,WritableComparable)}.]]>
  14398. </doc>
  14399. </method>
  14400. <method name="compare" return="int"
  14401. abstract="false" native="false" synchronized="false"
  14402. static="false" final="false" visibility="public"
  14403. deprecated="not deprecated">
  14404. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  14405. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  14406. <doc>
  14407. <![CDATA[Compare two WritableComparables.
  14408. <p> The default implementation uses the natural ordering, calling {@link
  14409. Comparable#compareTo(Object)}.]]>
  14410. </doc>
  14411. </method>
  14412. <method name="compare" return="int"
  14413. abstract="false" native="false" synchronized="false"
  14414. static="false" final="false" visibility="public"
  14415. deprecated="not deprecated">
  14416. <param name="a" type="java.lang.Object"/>
  14417. <param name="b" type="java.lang.Object"/>
  14418. </method>
  14419. <method name="compareBytes" return="int"
  14420. abstract="false" native="false" synchronized="false"
  14421. static="true" final="false" visibility="public"
  14422. deprecated="not deprecated">
  14423. <param name="b1" type="byte[]"/>
  14424. <param name="s1" type="int"/>
  14425. <param name="l1" type="int"/>
  14426. <param name="b2" type="byte[]"/>
  14427. <param name="s2" type="int"/>
  14428. <param name="l2" type="int"/>
  14429. <doc>
  14430. <![CDATA[Lexicographic order of binary data.]]>
  14431. </doc>
  14432. </method>
  14433. <method name="hashBytes" return="int"
  14434. abstract="false" native="false" synchronized="false"
  14435. static="true" final="false" visibility="public"
  14436. deprecated="not deprecated">
  14437. <param name="bytes" type="byte[]"/>
  14438. <param name="length" type="int"/>
  14439. <doc>
  14440. <![CDATA[Compute hash for binary data.]]>
  14441. </doc>
  14442. </method>
  14443. <method name="readUnsignedShort" return="int"
  14444. abstract="false" native="false" synchronized="false"
  14445. static="true" final="false" visibility="public"
  14446. deprecated="not deprecated">
  14447. <param name="bytes" type="byte[]"/>
  14448. <param name="start" type="int"/>
  14449. <doc>
  14450. <![CDATA[Parse an unsigned short from a byte array.]]>
  14451. </doc>
  14452. </method>
  14453. <method name="readInt" return="int"
  14454. abstract="false" native="false" synchronized="false"
  14455. static="true" final="false" visibility="public"
  14456. deprecated="not deprecated">
  14457. <param name="bytes" type="byte[]"/>
  14458. <param name="start" type="int"/>
  14459. <doc>
  14460. <![CDATA[Parse an integer from a byte array.]]>
  14461. </doc>
  14462. </method>
  14463. <method name="readFloat" return="float"
  14464. abstract="false" native="false" synchronized="false"
  14465. static="true" final="false" visibility="public"
  14466. deprecated="not deprecated">
  14467. <param name="bytes" type="byte[]"/>
  14468. <param name="start" type="int"/>
  14469. <doc>
  14470. <![CDATA[Parse a float from a byte array.]]>
  14471. </doc>
  14472. </method>
  14473. <method name="readLong" return="long"
  14474. abstract="false" native="false" synchronized="false"
  14475. static="true" final="false" visibility="public"
  14476. deprecated="not deprecated">
  14477. <param name="bytes" type="byte[]"/>
  14478. <param name="start" type="int"/>
  14479. <doc>
  14480. <![CDATA[Parse a long from a byte array.]]>
  14481. </doc>
  14482. </method>
  14483. <method name="readDouble" return="double"
  14484. abstract="false" native="false" synchronized="false"
  14485. static="true" final="false" visibility="public"
  14486. deprecated="not deprecated">
  14487. <param name="bytes" type="byte[]"/>
  14488. <param name="start" type="int"/>
  14489. <doc>
  14490. <![CDATA[Parse a double from a byte array.]]>
  14491. </doc>
  14492. </method>
  14493. <method name="readVLong" return="long"
  14494. abstract="false" native="false" synchronized="false"
  14495. static="true" final="false" visibility="public"
  14496. deprecated="not deprecated">
  14497. <param name="bytes" type="byte[]"/>
  14498. <param name="start" type="int"/>
  14499. <exception name="IOException" type="java.io.IOException"/>
  14500. <doc>
  14501. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  14502. @param bytes byte array with decode long
  14503. @param start starting index
  14504. @throws java.io.IOException
  14505. @return deserialized long]]>
  14506. </doc>
  14507. </method>
  14508. <method name="readVInt" return="int"
  14509. abstract="false" native="false" synchronized="false"
  14510. static="true" final="false" visibility="public"
  14511. deprecated="not deprecated">
  14512. <param name="bytes" type="byte[]"/>
  14513. <param name="start" type="int"/>
  14514. <exception name="IOException" type="java.io.IOException"/>
  14515. <doc>
  14516. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  14517. @param bytes byte array with the encoded integer
  14518. @param start start index
  14519. @throws java.io.IOException
  14520. @return deserialized integer]]>
  14521. </doc>
  14522. </method>
  14523. <doc>
  14524. <![CDATA[A Comparator for {@link WritableComparable}s.
  14525. <p>This base implemenation uses the natural ordering. To define alternate
  14526. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  14527. <p>One may optimize compare-intensive operations by overriding
  14528. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  14529. provided to assist in optimized implementations of this method.]]>
  14530. </doc>
  14531. </class>
  14532. <!-- end class org.apache.hadoop.io.WritableComparator -->
  14533. <!-- start class org.apache.hadoop.io.WritableFactories -->
  14534. <class name="WritableFactories" extends="java.lang.Object"
  14535. abstract="false"
  14536. static="false" final="false" visibility="public"
  14537. deprecated="not deprecated">
  14538. <method name="setFactory"
  14539. abstract="false" native="false" synchronized="true"
  14540. static="true" final="false" visibility="public"
  14541. deprecated="not deprecated">
  14542. <param name="c" type="java.lang.Class"/>
  14543. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  14544. <doc>
  14545. <![CDATA[Define a factory for a class.]]>
  14546. </doc>
  14547. </method>
  14548. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  14549. abstract="false" native="false" synchronized="true"
  14550. static="true" final="false" visibility="public"
  14551. deprecated="not deprecated">
  14552. <param name="c" type="java.lang.Class"/>
  14553. <doc>
  14554. <![CDATA[Define a factory for a class.]]>
  14555. </doc>
  14556. </method>
  14557. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14558. abstract="false" native="false" synchronized="false"
  14559. static="true" final="false" visibility="public"
  14560. deprecated="not deprecated">
  14561. <param name="c" type="java.lang.Class"/>
  14562. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14563. <doc>
  14564. <![CDATA[Create a new instance of a class with a defined factory.]]>
  14565. </doc>
  14566. </method>
  14567. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14568. abstract="false" native="false" synchronized="false"
  14569. static="true" final="false" visibility="public"
  14570. deprecated="not deprecated">
  14571. <param name="c" type="java.lang.Class"/>
  14572. <doc>
  14573. <![CDATA[Create a new instance of a class with a defined factory.]]>
  14574. </doc>
  14575. </method>
  14576. <doc>
  14577. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  14578. ObjectWritable} to be able to construct instances of non-public classes.]]>
  14579. </doc>
  14580. </class>
  14581. <!-- end class org.apache.hadoop.io.WritableFactories -->
  14582. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  14583. <interface name="WritableFactory" abstract="true"
  14584. static="false" final="false" visibility="public"
  14585. deprecated="not deprecated">
  14586. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14587. abstract="false" native="false" synchronized="false"
  14588. static="false" final="false" visibility="public"
  14589. deprecated="not deprecated">
  14590. <doc>
  14591. <![CDATA[Return a new instance.]]>
  14592. </doc>
  14593. </method>
  14594. <doc>
  14595. <![CDATA[A factory for a class of Writable.
  14596. @see WritableFactories]]>
  14597. </doc>
  14598. </interface>
  14599. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  14600. <!-- start class org.apache.hadoop.io.WritableName -->
  14601. <class name="WritableName" extends="java.lang.Object"
  14602. abstract="false"
  14603. static="false" final="false" visibility="public"
  14604. deprecated="not deprecated">
  14605. <method name="setName"
  14606. abstract="false" native="false" synchronized="true"
  14607. static="true" final="false" visibility="public"
  14608. deprecated="not deprecated">
  14609. <param name="writableClass" type="java.lang.Class"/>
  14610. <param name="name" type="java.lang.String"/>
  14611. <doc>
  14612. <![CDATA[Set the name that a class should be known as to something other than the
  14613. class name.]]>
  14614. </doc>
  14615. </method>
  14616. <method name="addName"
  14617. abstract="false" native="false" synchronized="true"
  14618. static="true" final="false" visibility="public"
  14619. deprecated="not deprecated">
  14620. <param name="writableClass" type="java.lang.Class"/>
  14621. <param name="name" type="java.lang.String"/>
  14622. <doc>
  14623. <![CDATA[Add an alternate name for a class.]]>
  14624. </doc>
  14625. </method>
  14626. <method name="getName" return="java.lang.String"
  14627. abstract="false" native="false" synchronized="true"
  14628. static="true" final="false" visibility="public"
  14629. deprecated="not deprecated">
  14630. <param name="writableClass" type="java.lang.Class"/>
  14631. <doc>
  14632. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  14633. </doc>
  14634. </method>
  14635. <method name="getClass" return="java.lang.Class"
  14636. abstract="false" native="false" synchronized="true"
  14637. static="true" final="false" visibility="public"
  14638. deprecated="not deprecated">
  14639. <param name="name" type="java.lang.String"/>
  14640. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14641. <exception name="IOException" type="java.io.IOException"/>
  14642. <doc>
  14643. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  14644. </doc>
  14645. </method>
  14646. <doc>
  14647. <![CDATA[Utility to permit renaming of Writable implementation classes without
  14648. invalidiating files that contain their class name.]]>
  14649. </doc>
  14650. </class>
  14651. <!-- end class org.apache.hadoop.io.WritableName -->
  14652. <!-- start class org.apache.hadoop.io.WritableUtils -->
  14653. <class name="WritableUtils" extends="java.lang.Object"
  14654. abstract="false"
  14655. static="false" final="true" visibility="public"
  14656. deprecated="not deprecated">
  14657. <constructor name="WritableUtils"
  14658. static="false" final="false" visibility="public"
  14659. deprecated="not deprecated">
  14660. </constructor>
  14661. <method name="readCompressedByteArray" return="byte[]"
  14662. abstract="false" native="false" synchronized="false"
  14663. static="true" final="false" visibility="public"
  14664. deprecated="not deprecated">
  14665. <param name="in" type="java.io.DataInput"/>
  14666. <exception name="IOException" type="java.io.IOException"/>
  14667. </method>
  14668. <method name="skipCompressedByteArray"
  14669. abstract="false" native="false" synchronized="false"
  14670. static="true" final="false" visibility="public"
  14671. deprecated="not deprecated">
  14672. <param name="in" type="java.io.DataInput"/>
  14673. <exception name="IOException" type="java.io.IOException"/>
  14674. </method>
  14675. <method name="writeCompressedByteArray" return="int"
  14676. abstract="false" native="false" synchronized="false"
  14677. static="true" final="false" visibility="public"
  14678. deprecated="not deprecated">
  14679. <param name="out" type="java.io.DataOutput"/>
  14680. <param name="bytes" type="byte[]"/>
  14681. <exception name="IOException" type="java.io.IOException"/>
  14682. </method>
  14683. <method name="readCompressedString" return="java.lang.String"
  14684. abstract="false" native="false" synchronized="false"
  14685. static="true" final="false" visibility="public"
  14686. deprecated="not deprecated">
  14687. <param name="in" type="java.io.DataInput"/>
  14688. <exception name="IOException" type="java.io.IOException"/>
  14689. </method>
  14690. <method name="writeCompressedString" return="int"
  14691. abstract="false" native="false" synchronized="false"
  14692. static="true" final="false" visibility="public"
  14693. deprecated="not deprecated">
  14694. <param name="out" type="java.io.DataOutput"/>
  14695. <param name="s" type="java.lang.String"/>
  14696. <exception name="IOException" type="java.io.IOException"/>
  14697. </method>
  14698. <method name="writeString"
  14699. abstract="false" native="false" synchronized="false"
  14700. static="true" final="false" visibility="public"
  14701. deprecated="not deprecated">
  14702. <param name="out" type="java.io.DataOutput"/>
  14703. <param name="s" type="java.lang.String"/>
  14704. <exception name="IOException" type="java.io.IOException"/>
  14705. </method>
  14706. <method name="readString" return="java.lang.String"
  14707. abstract="false" native="false" synchronized="false"
  14708. static="true" final="false" visibility="public"
  14709. deprecated="not deprecated">
  14710. <param name="in" type="java.io.DataInput"/>
  14711. <exception name="IOException" type="java.io.IOException"/>
  14712. </method>
  14713. <method name="writeStringArray"
  14714. abstract="false" native="false" synchronized="false"
  14715. static="true" final="false" visibility="public"
  14716. deprecated="not deprecated">
  14717. <param name="out" type="java.io.DataOutput"/>
  14718. <param name="s" type="java.lang.String[]"/>
  14719. <exception name="IOException" type="java.io.IOException"/>
  14720. </method>
  14721. <method name="writeCompressedStringArray"
  14722. abstract="false" native="false" synchronized="false"
  14723. static="true" final="false" visibility="public"
  14724. deprecated="not deprecated">
  14725. <param name="out" type="java.io.DataOutput"/>
  14726. <param name="s" type="java.lang.String[]"/>
  14727. <exception name="IOException" type="java.io.IOException"/>
  14728. </method>
  14729. <method name="readStringArray" return="java.lang.String[]"
  14730. abstract="false" native="false" synchronized="false"
  14731. static="true" final="false" visibility="public"
  14732. deprecated="not deprecated">
  14733. <param name="in" type="java.io.DataInput"/>
  14734. <exception name="IOException" type="java.io.IOException"/>
  14735. </method>
  14736. <method name="readCompressedStringArray" return="java.lang.String[]"
  14737. abstract="false" native="false" synchronized="false"
  14738. static="true" final="false" visibility="public"
  14739. deprecated="not deprecated">
  14740. <param name="in" type="java.io.DataInput"/>
  14741. <exception name="IOException" type="java.io.IOException"/>
  14742. </method>
  14743. <method name="displayByteArray"
  14744. abstract="false" native="false" synchronized="false"
  14745. static="true" final="false" visibility="public"
  14746. deprecated="not deprecated">
  14747. <param name="record" type="byte[]"/>
  14748. </method>
  14749. <method name="clone" return="org.apache.hadoop.io.Writable"
  14750. abstract="false" native="false" synchronized="false"
  14751. static="true" final="false" visibility="public"
  14752. deprecated="not deprecated">
  14753. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  14754. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14755. <doc>
  14756. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  14757. @param orig The object to copy
  14758. @return The copied object]]>
  14759. </doc>
  14760. </method>
  14761. <method name="cloneInto"
  14762. abstract="false" native="false" synchronized="false"
  14763. static="true" final="false" visibility="public"
  14764. deprecated="use ReflectionUtils.cloneInto instead.">
  14765. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  14766. <param name="src" type="org.apache.hadoop.io.Writable"/>
  14767. <exception name="IOException" type="java.io.IOException"/>
  14768. <doc>
  14769. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  14770. @param dst the object to copy from
  14771. @param src the object to copy into, which is destroyed
  14772. @throws IOException
  14773. @deprecated use ReflectionUtils.cloneInto instead.]]>
  14774. </doc>
  14775. </method>
  14776. <method name="writeVInt"
  14777. abstract="false" native="false" synchronized="false"
  14778. static="true" final="false" visibility="public"
  14779. deprecated="not deprecated">
  14780. <param name="stream" type="java.io.DataOutput"/>
  14781. <param name="i" type="int"/>
  14782. <exception name="IOException" type="java.io.IOException"/>
  14783. <doc>
  14784. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  14785. For -120 <= i <= 127, only one byte is used with the actual value.
  14786. For other values of i, the first byte value indicates whether the
  14787. integer is positive or negative, and the number of bytes that follow.
  14788. If the first byte value v is between -121 and -124, the following integer
  14789. is positive, with number of bytes that follow are -(v+120).
  14790. If the first byte value v is between -125 and -128, the following integer
  14791. is negative, with number of bytes that follow are -(v+124). Bytes are
  14792. stored in the high-non-zero-byte-first order.
  14793. @param stream Binary output stream
  14794. @param i Integer to be serialized
  14795. @throws java.io.IOException]]>
  14796. </doc>
  14797. </method>
  14798. <method name="writeVLong"
  14799. abstract="false" native="false" synchronized="false"
  14800. static="true" final="false" visibility="public"
  14801. deprecated="not deprecated">
  14802. <param name="stream" type="java.io.DataOutput"/>
  14803. <param name="i" type="long"/>
  14804. <exception name="IOException" type="java.io.IOException"/>
  14805. <doc>
  14806. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  14807. For -112 <= i <= 127, only one byte is used with the actual value.
  14808. For other values of i, the first byte value indicates whether the
  14809. long is positive or negative, and the number of bytes that follow.
  14810. If the first byte value v is between -113 and -120, the following long
  14811. is positive, with number of bytes that follow are -(v+112).
  14812. If the first byte value v is between -121 and -128, the following long
  14813. is negative, with number of bytes that follow are -(v+120). Bytes are
  14814. stored in the high-non-zero-byte-first order.
  14815. @param stream Binary output stream
  14816. @param i Long to be serialized
  14817. @throws java.io.IOException]]>
  14818. </doc>
  14819. </method>
  14820. <method name="readVLong" return="long"
  14821. abstract="false" native="false" synchronized="false"
  14822. static="true" final="false" visibility="public"
  14823. deprecated="not deprecated">
  14824. <param name="stream" type="java.io.DataInput"/>
  14825. <exception name="IOException" type="java.io.IOException"/>
  14826. <doc>
  14827. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  14828. @param stream Binary input stream
  14829. @throws java.io.IOException
  14830. @return deserialized long from stream.]]>
  14831. </doc>
  14832. </method>
  14833. <method name="readVInt" return="int"
  14834. abstract="false" native="false" synchronized="false"
  14835. static="true" final="false" visibility="public"
  14836. deprecated="not deprecated">
  14837. <param name="stream" type="java.io.DataInput"/>
  14838. <exception name="IOException" type="java.io.IOException"/>
  14839. <doc>
  14840. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  14841. @param stream Binary input stream
  14842. @throws java.io.IOException
  14843. @return deserialized integer from stream.]]>
  14844. </doc>
  14845. </method>
  14846. <method name="isNegativeVInt" return="boolean"
  14847. abstract="false" native="false" synchronized="false"
  14848. static="true" final="false" visibility="public"
  14849. deprecated="not deprecated">
  14850. <param name="value" type="byte"/>
  14851. <doc>
  14852. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  14853. @param value the first byte
  14854. @return is the value negative]]>
  14855. </doc>
  14856. </method>
  14857. <method name="decodeVIntSize" return="int"
  14858. abstract="false" native="false" synchronized="false"
  14859. static="true" final="false" visibility="public"
  14860. deprecated="not deprecated">
  14861. <param name="value" type="byte"/>
  14862. <doc>
  14863. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  14864. @param value the first byte of the vint/vlong
  14865. @return the total number of bytes (1 to 9)]]>
  14866. </doc>
  14867. </method>
  14868. <method name="getVIntSize" return="int"
  14869. abstract="false" native="false" synchronized="false"
  14870. static="true" final="false" visibility="public"
  14871. deprecated="not deprecated">
  14872. <param name="i" type="long"/>
  14873. <doc>
  14874. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  14875. @return the encoded length]]>
  14876. </doc>
  14877. </method>
  14878. <method name="readEnum" return="java.lang.Enum"
  14879. abstract="false" native="false" synchronized="false"
  14880. static="true" final="false" visibility="public"
  14881. deprecated="not deprecated">
  14882. <param name="in" type="java.io.DataInput"/>
  14883. <param name="enumType" type="java.lang.Class"/>
  14884. <exception name="IOException" type="java.io.IOException"/>
  14885. <doc>
  14886. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  14887. using String values.
  14888. @param <T> Enum type
  14889. @param in DataInput to read from
  14890. @param enumType Class type of Enum
  14891. @return Enum represented by String read from DataInput
  14892. @throws IOException]]>
  14893. </doc>
  14894. </method>
  14895. <method name="writeEnum"
  14896. abstract="false" native="false" synchronized="false"
  14897. static="true" final="false" visibility="public"
  14898. deprecated="not deprecated">
  14899. <param name="out" type="java.io.DataOutput"/>
  14900. <param name="enumVal" type="java.lang.Enum"/>
  14901. <exception name="IOException" type="java.io.IOException"/>
  14902. <doc>
  14903. <![CDATA[writes String value of enum to DataOutput.
  14904. @param out Dataoutput stream
  14905. @param enumVal enum value
  14906. @throws IOException]]>
  14907. </doc>
  14908. </method>
  14909. <method name="skipFully"
  14910. abstract="false" native="false" synchronized="false"
  14911. static="true" final="false" visibility="public"
  14912. deprecated="not deprecated">
  14913. <param name="in" type="java.io.DataInput"/>
  14914. <param name="len" type="int"/>
  14915. <exception name="IOException" type="java.io.IOException"/>
  14916. <doc>
  14917. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  14918. @param in input stream
  14919. @param len number of bytes to skip
  14920. @throws IOException when skipped less number of bytes]]>
  14921. </doc>
  14922. </method>
  14923. <method name="toByteArray" return="byte[]"
  14924. abstract="false" native="false" synchronized="false"
  14925. static="true" final="false" visibility="public"
  14926. deprecated="not deprecated">
  14927. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  14928. <doc>
  14929. <![CDATA[Convert writables to a byte array]]>
  14930. </doc>
  14931. </method>
  14932. </class>
  14933. <!-- end class org.apache.hadoop.io.WritableUtils -->
  14934. <doc>
  14935. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  14936. to databases, and to files.]]>
  14937. </doc>
  14938. </package>
  14939. <package name="org.apache.hadoop.io.compress">
  14940. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  14941. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  14942. abstract="false"
  14943. static="false" final="false" visibility="public"
  14944. deprecated="not deprecated">
  14945. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  14946. static="false" final="false" visibility="public"
  14947. deprecated="not deprecated">
  14948. <doc>
  14949. <![CDATA[Create a {@link BlockCompressorStream}.
  14950. @param out stream
  14951. @param compressor compressor to be used
  14952. @param bufferSize size of buffer
  14953. @param compressionOverhead maximum 'overhead' of the compression
  14954. algorithm with given bufferSize]]>
  14955. </doc>
  14956. </constructor>
  14957. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  14958. static="false" final="false" visibility="public"
  14959. deprecated="not deprecated">
  14960. <doc>
  14961. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  14962. compressor.
  14963. Use default of 512 as bufferSize and compressionOverhead of
  14964. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  14965. @param out stream
  14966. @param compressor compressor to be used]]>
  14967. </doc>
  14968. </constructor>
  14969. <method name="write"
  14970. abstract="false" native="false" synchronized="false"
  14971. static="false" final="false" visibility="public"
  14972. deprecated="not deprecated">
  14973. <param name="b" type="byte[]"/>
  14974. <param name="off" type="int"/>
  14975. <param name="len" type="int"/>
  14976. <exception name="IOException" type="java.io.IOException"/>
  14977. <doc>
  14978. <![CDATA[Write the data provided to the compression codec, compressing no more
  14979. than the buffer size less the compression overhead as specified during
  14980. construction for each block.
  14981. Each block contains the uncompressed length for the block, followed by
  14982. one or more length-prefixed blocks of compressed data.]]>
  14983. </doc>
  14984. </method>
  14985. <method name="finish"
  14986. abstract="false" native="false" synchronized="false"
  14987. static="false" final="false" visibility="public"
  14988. deprecated="not deprecated">
  14989. <exception name="IOException" type="java.io.IOException"/>
  14990. </method>
  14991. <method name="compress"
  14992. abstract="false" native="false" synchronized="false"
  14993. static="false" final="false" visibility="protected"
  14994. deprecated="not deprecated">
  14995. <exception name="IOException" type="java.io.IOException"/>
  14996. </method>
  14997. <doc>
  14998. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  14999. with 'block-based' based compression algorithms, as opposed to
  15000. 'stream-based' compression algorithms.
  15001. It should be noted that this wrapper does not guarantee that blocks will
  15002. be sized for the compressor. If the
  15003. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  15004. effect meaningful compression, it is responsible for it.]]>
  15005. </doc>
  15006. </class>
  15007. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  15008. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  15009. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  15010. abstract="false"
  15011. static="false" final="false" visibility="public"
  15012. deprecated="not deprecated">
  15013. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  15014. static="false" final="false" visibility="public"
  15015. deprecated="not deprecated">
  15016. <doc>
  15017. <![CDATA[Create a {@link BlockDecompressorStream}.
  15018. @param in input stream
  15019. @param decompressor decompressor to use
  15020. @param bufferSize size of buffer]]>
  15021. </doc>
  15022. </constructor>
  15023. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  15024. static="false" final="false" visibility="public"
  15025. deprecated="not deprecated">
  15026. <doc>
  15027. <![CDATA[Create a {@link BlockDecompressorStream}.
  15028. @param in input stream
  15029. @param decompressor decompressor to use]]>
  15030. </doc>
  15031. </constructor>
  15032. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  15033. static="false" final="false" visibility="protected"
  15034. deprecated="not deprecated">
  15035. </constructor>
  15036. <method name="decompress" return="int"
  15037. abstract="false" native="false" synchronized="false"
  15038. static="false" final="false" visibility="protected"
  15039. deprecated="not deprecated">
  15040. <param name="b" type="byte[]"/>
  15041. <param name="off" type="int"/>
  15042. <param name="len" type="int"/>
  15043. <exception name="IOException" type="java.io.IOException"/>
  15044. </method>
  15045. <method name="getCompressedData"
  15046. abstract="false" native="false" synchronized="false"
  15047. static="false" final="false" visibility="protected"
  15048. deprecated="not deprecated">
  15049. <exception name="IOException" type="java.io.IOException"/>
  15050. </method>
  15051. <method name="resetState"
  15052. abstract="false" native="false" synchronized="false"
  15053. static="false" final="false" visibility="public"
  15054. deprecated="not deprecated">
  15055. <exception name="IOException" type="java.io.IOException"/>
  15056. </method>
  15057. <doc>
  15058. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  15059. with 'block-based' based compression algorithms, as opposed to
  15060. 'stream-based' compression algorithms.]]>
  15061. </doc>
  15062. </class>
  15063. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  15064. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  15065. <class name="BZip2Codec" extends="java.lang.Object"
  15066. abstract="false"
  15067. static="false" final="false" visibility="public"
  15068. deprecated="not deprecated">
  15069. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  15070. <constructor name="BZip2Codec"
  15071. static="false" final="false" visibility="public"
  15072. deprecated="not deprecated">
  15073. <doc>
  15074. <![CDATA[Creates a new instance of BZip2Codec]]>
  15075. </doc>
  15076. </constructor>
  15077. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15078. abstract="false" native="false" synchronized="false"
  15079. static="false" final="false" visibility="public"
  15080. deprecated="not deprecated">
  15081. <param name="out" type="java.io.OutputStream"/>
  15082. <exception name="IOException" type="java.io.IOException"/>
  15083. <doc>
  15084. <![CDATA[Creates CompressionOutputStream for BZip2
  15085. @param out
  15086. The output Stream
  15087. @return The BZip2 CompressionOutputStream
  15088. @throws java.io.IOException
  15089. Throws IO exception]]>
  15090. </doc>
  15091. </method>
  15092. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15093. abstract="false" native="false" synchronized="false"
  15094. static="false" final="false" visibility="public"
  15095. deprecated="not deprecated">
  15096. <param name="out" type="java.io.OutputStream"/>
  15097. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15098. <exception name="IOException" type="java.io.IOException"/>
  15099. <doc>
  15100. <![CDATA[This functionality is currently not supported.
  15101. @throws java.lang.UnsupportedOperationException
  15102. Throws UnsupportedOperationException]]>
  15103. </doc>
  15104. </method>
  15105. <method name="getCompressorType" return="java.lang.Class"
  15106. abstract="false" native="false" synchronized="false"
  15107. static="false" final="false" visibility="public"
  15108. deprecated="not deprecated">
  15109. <doc>
  15110. <![CDATA[This functionality is currently not supported.
  15111. @throws java.lang.UnsupportedOperationException
  15112. Throws UnsupportedOperationException]]>
  15113. </doc>
  15114. </method>
  15115. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15116. abstract="false" native="false" synchronized="false"
  15117. static="false" final="false" visibility="public"
  15118. deprecated="not deprecated">
  15119. <doc>
  15120. <![CDATA[This functionality is currently not supported.
  15121. @throws java.lang.UnsupportedOperationException
  15122. Throws UnsupportedOperationException]]>
  15123. </doc>
  15124. </method>
  15125. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15126. abstract="false" native="false" synchronized="false"
  15127. static="false" final="false" visibility="public"
  15128. deprecated="not deprecated">
  15129. <param name="in" type="java.io.InputStream"/>
  15130. <exception name="IOException" type="java.io.IOException"/>
  15131. <doc>
  15132. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  15133. @param in
  15134. The InputStream
  15135. @return Returns CompressionInputStream for BZip2
  15136. @throws java.io.IOException
  15137. Throws IOException]]>
  15138. </doc>
  15139. </method>
  15140. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15141. abstract="false" native="false" synchronized="false"
  15142. static="false" final="false" visibility="public"
  15143. deprecated="not deprecated">
  15144. <param name="in" type="java.io.InputStream"/>
  15145. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15146. <exception name="IOException" type="java.io.IOException"/>
  15147. <doc>
  15148. <![CDATA[This functionality is currently not supported.
  15149. @throws java.lang.UnsupportedOperationException
  15150. Throws UnsupportedOperationException]]>
  15151. </doc>
  15152. </method>
  15153. <method name="getDecompressorType" return="java.lang.Class"
  15154. abstract="false" native="false" synchronized="false"
  15155. static="false" final="false" visibility="public"
  15156. deprecated="not deprecated">
  15157. <doc>
  15158. <![CDATA[This functionality is currently not supported.
  15159. @throws java.lang.UnsupportedOperationException
  15160. Throws UnsupportedOperationException]]>
  15161. </doc>
  15162. </method>
  15163. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15164. abstract="false" native="false" synchronized="false"
  15165. static="false" final="false" visibility="public"
  15166. deprecated="not deprecated">
  15167. <doc>
  15168. <![CDATA[This functionality is currently not supported.
  15169. @throws java.lang.UnsupportedOperationException
  15170. Throws UnsupportedOperationException]]>
  15171. </doc>
  15172. </method>
  15173. <method name="getDefaultExtension" return="java.lang.String"
  15174. abstract="false" native="false" synchronized="false"
  15175. static="false" final="false" visibility="public"
  15176. deprecated="not deprecated">
  15177. <doc>
  15178. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  15179. @return A String telling the default bzip2 file extension]]>
  15180. </doc>
  15181. </method>
  15182. <doc>
  15183. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  15184. compression and decompression. Currently we dont have an implementation of
  15185. the Compressor and Decompressor interfaces, so those methods of
  15186. CompressionCodec which have a Compressor or Decompressor type argument, throw
  15187. UnsupportedOperationException.]]>
  15188. </doc>
  15189. </class>
  15190. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  15191. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  15192. <class name="CodecPool" extends="java.lang.Object"
  15193. abstract="false"
  15194. static="false" final="false" visibility="public"
  15195. deprecated="not deprecated">
  15196. <constructor name="CodecPool"
  15197. static="false" final="false" visibility="public"
  15198. deprecated="not deprecated">
  15199. </constructor>
  15200. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15201. abstract="false" native="false" synchronized="false"
  15202. static="true" final="false" visibility="public"
  15203. deprecated="not deprecated">
  15204. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  15205. <doc>
  15206. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  15207. pool or a new one.
  15208. @param codec the <code>CompressionCodec</code> for which to get the
  15209. <code>Compressor</code>
  15210. @return <code>Compressor</code> for the given
  15211. <code>CompressionCodec</code> from the pool or a new one]]>
  15212. </doc>
  15213. </method>
  15214. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15215. abstract="false" native="false" synchronized="false"
  15216. static="true" final="false" visibility="public"
  15217. deprecated="not deprecated">
  15218. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  15219. <doc>
  15220. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  15221. pool or a new one.
  15222. @param codec the <code>CompressionCodec</code> for which to get the
  15223. <code>Decompressor</code>
  15224. @return <code>Decompressor</code> for the given
  15225. <code>CompressionCodec</code> the pool or a new one]]>
  15226. </doc>
  15227. </method>
  15228. <method name="returnCompressor"
  15229. abstract="false" native="false" synchronized="false"
  15230. static="true" final="false" visibility="public"
  15231. deprecated="not deprecated">
  15232. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15233. <doc>
  15234. <![CDATA[Return the {@link Compressor} to the pool.
  15235. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  15236. </doc>
  15237. </method>
  15238. <method name="returnDecompressor"
  15239. abstract="false" native="false" synchronized="false"
  15240. static="true" final="false" visibility="public"
  15241. deprecated="not deprecated">
  15242. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15243. <doc>
  15244. <![CDATA[Return the {@link Decompressor} to the pool.
  15245. @param decompressor the <code>Decompressor</code> to be returned to the
  15246. pool]]>
  15247. </doc>
  15248. </method>
  15249. <doc>
  15250. <![CDATA[A global compressor/decompressor pool used to save and reuse
  15251. (possibly native) compression/decompression codecs.]]>
  15252. </doc>
  15253. </class>
  15254. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  15255. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  15256. <interface name="CompressionCodec" abstract="true"
  15257. static="false" final="false" visibility="public"
  15258. deprecated="not deprecated">
  15259. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15260. abstract="false" native="false" synchronized="false"
  15261. static="false" final="false" visibility="public"
  15262. deprecated="not deprecated">
  15263. <param name="out" type="java.io.OutputStream"/>
  15264. <exception name="IOException" type="java.io.IOException"/>
  15265. <doc>
  15266. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  15267. {@link OutputStream}.
  15268. @param out the location for the final output stream
  15269. @return a stream the user can write uncompressed data to have it compressed
  15270. @throws IOException]]>
  15271. </doc>
  15272. </method>
  15273. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15274. abstract="false" native="false" synchronized="false"
  15275. static="false" final="false" visibility="public"
  15276. deprecated="not deprecated">
  15277. <param name="out" type="java.io.OutputStream"/>
  15278. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15279. <exception name="IOException" type="java.io.IOException"/>
  15280. <doc>
  15281. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  15282. {@link OutputStream} with the given {@link Compressor}.
  15283. @param out the location for the final output stream
  15284. @param compressor compressor to use
  15285. @return a stream the user can write uncompressed data to have it compressed
  15286. @throws IOException]]>
  15287. </doc>
  15288. </method>
  15289. <method name="getCompressorType" return="java.lang.Class"
  15290. abstract="false" native="false" synchronized="false"
  15291. static="false" final="false" visibility="public"
  15292. deprecated="not deprecated">
  15293. <doc>
  15294. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  15295. @return the type of compressor needed by this codec.]]>
  15296. </doc>
  15297. </method>
  15298. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15299. abstract="false" native="false" synchronized="false"
  15300. static="false" final="false" visibility="public"
  15301. deprecated="not deprecated">
  15302. <doc>
  15303. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  15304. @return a new compressor for use by this codec]]>
  15305. </doc>
  15306. </method>
  15307. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15308. abstract="false" native="false" synchronized="false"
  15309. static="false" final="false" visibility="public"
  15310. deprecated="not deprecated">
  15311. <param name="in" type="java.io.InputStream"/>
  15312. <exception name="IOException" type="java.io.IOException"/>
  15313. <doc>
  15314. <![CDATA[Create a stream decompressor that will read from the given input stream.
  15315. @param in the stream to read compressed bytes from
  15316. @return a stream to read uncompressed bytes from
  15317. @throws IOException]]>
  15318. </doc>
  15319. </method>
  15320. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15321. abstract="false" native="false" synchronized="false"
  15322. static="false" final="false" visibility="public"
  15323. deprecated="not deprecated">
  15324. <param name="in" type="java.io.InputStream"/>
  15325. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15326. <exception name="IOException" type="java.io.IOException"/>
  15327. <doc>
  15328. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  15329. {@link InputStream} with the given {@link Decompressor}.
  15330. @param in the stream to read compressed bytes from
  15331. @param decompressor decompressor to use
  15332. @return a stream to read uncompressed bytes from
  15333. @throws IOException]]>
  15334. </doc>
  15335. </method>
  15336. <method name="getDecompressorType" return="java.lang.Class"
  15337. abstract="false" native="false" synchronized="false"
  15338. static="false" final="false" visibility="public"
  15339. deprecated="not deprecated">
  15340. <doc>
  15341. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  15342. @return the type of decompressor needed by this codec.]]>
  15343. </doc>
  15344. </method>
  15345. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15346. abstract="false" native="false" synchronized="false"
  15347. static="false" final="false" visibility="public"
  15348. deprecated="not deprecated">
  15349. <doc>
  15350. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  15351. @return a new decompressor for use by this codec]]>
  15352. </doc>
  15353. </method>
  15354. <method name="getDefaultExtension" return="java.lang.String"
  15355. abstract="false" native="false" synchronized="false"
  15356. static="false" final="false" visibility="public"
  15357. deprecated="not deprecated">
  15358. <doc>
  15359. <![CDATA[Get the default filename extension for this kind of compression.
  15360. @return the extension including the '.']]>
  15361. </doc>
  15362. </method>
  15363. <doc>
  15364. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  15365. </doc>
  15366. </interface>
  15367. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  15368. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  15369. <class name="CompressionCodecFactory" extends="java.lang.Object"
  15370. abstract="false"
  15371. static="false" final="false" visibility="public"
  15372. deprecated="not deprecated">
  15373. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  15374. static="false" final="false" visibility="public"
  15375. deprecated="not deprecated">
  15376. <doc>
  15377. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  15378. and register them. Defaults to gzip and zip.]]>
  15379. </doc>
  15380. </constructor>
  15381. <method name="toString" return="java.lang.String"
  15382. abstract="false" native="false" synchronized="false"
  15383. static="false" final="false" visibility="public"
  15384. deprecated="not deprecated">
  15385. <doc>
  15386. <![CDATA[Print the extension map out as a string.]]>
  15387. </doc>
  15388. </method>
  15389. <method name="getCodecClasses" return="java.util.List"
  15390. abstract="false" native="false" synchronized="false"
  15391. static="true" final="false" visibility="public"
  15392. deprecated="not deprecated">
  15393. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15394. <doc>
  15395. <![CDATA[Get the list of codecs listed in the configuration
  15396. @param conf the configuration to look in
  15397. @return a list of the Configuration classes or null if the attribute
  15398. was not set]]>
  15399. </doc>
  15400. </method>
  15401. <method name="setCodecClasses"
  15402. abstract="false" native="false" synchronized="false"
  15403. static="true" final="false" visibility="public"
  15404. deprecated="not deprecated">
  15405. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15406. <param name="classes" type="java.util.List"/>
  15407. <doc>
  15408. <![CDATA[Sets a list of codec classes in the configuration.
  15409. @param conf the configuration to modify
  15410. @param classes the list of classes to set]]>
  15411. </doc>
  15412. </method>
  15413. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  15414. abstract="false" native="false" synchronized="false"
  15415. static="false" final="false" visibility="public"
  15416. deprecated="not deprecated">
  15417. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15418. <doc>
  15419. <![CDATA[Find the relevant compression codec for the given file based on its
  15420. filename suffix.
  15421. @param file the filename to check
  15422. @return the codec object]]>
  15423. </doc>
  15424. </method>
  15425. <method name="removeSuffix" return="java.lang.String"
  15426. abstract="false" native="false" synchronized="false"
  15427. static="true" final="false" visibility="public"
  15428. deprecated="not deprecated">
  15429. <param name="filename" type="java.lang.String"/>
  15430. <param name="suffix" type="java.lang.String"/>
  15431. <doc>
  15432. <![CDATA[Removes a suffix from a filename, if it has it.
  15433. @param filename the filename to strip
  15434. @param suffix the suffix to remove
  15435. @return the shortened filename]]>
  15436. </doc>
  15437. </method>
  15438. <method name="main"
  15439. abstract="false" native="false" synchronized="false"
  15440. static="true" final="false" visibility="public"
  15441. deprecated="not deprecated">
  15442. <param name="args" type="java.lang.String[]"/>
  15443. <exception name="Exception" type="java.lang.Exception"/>
  15444. <doc>
  15445. <![CDATA[A little test program.
  15446. @param args]]>
  15447. </doc>
  15448. </method>
  15449. <field name="LOG" type="org.apache.commons.logging.Log"
  15450. transient="false" volatile="false"
  15451. static="true" final="true" visibility="public"
  15452. deprecated="not deprecated">
  15453. </field>
  15454. <doc>
  15455. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  15456. </doc>
  15457. </class>
  15458. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  15459. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  15460. <class name="CompressionInputStream" extends="java.io.InputStream"
  15461. abstract="true"
  15462. static="false" final="false" visibility="public"
  15463. deprecated="not deprecated">
  15464. <constructor name="CompressionInputStream" type="java.io.InputStream"
  15465. static="false" final="false" visibility="protected"
  15466. deprecated="not deprecated">
  15467. <doc>
  15468. <![CDATA[Create a compression input stream that reads
  15469. the decompressed bytes from the given stream.
  15470. @param in The input stream to be compressed.]]>
  15471. </doc>
  15472. </constructor>
  15473. <method name="close"
  15474. abstract="false" native="false" synchronized="false"
  15475. static="false" final="false" visibility="public"
  15476. deprecated="not deprecated">
  15477. <exception name="IOException" type="java.io.IOException"/>
  15478. </method>
  15479. <method name="read" return="int"
  15480. abstract="true" native="false" synchronized="false"
  15481. static="false" final="false" visibility="public"
  15482. deprecated="not deprecated">
  15483. <param name="b" type="byte[]"/>
  15484. <param name="off" type="int"/>
  15485. <param name="len" type="int"/>
  15486. <exception name="IOException" type="java.io.IOException"/>
  15487. <doc>
  15488. <![CDATA[Read bytes from the stream.
  15489. Made abstract to prevent leakage to underlying stream.]]>
  15490. </doc>
  15491. </method>
  15492. <method name="resetState"
  15493. abstract="true" native="false" synchronized="false"
  15494. static="false" final="false" visibility="public"
  15495. deprecated="not deprecated">
  15496. <exception name="IOException" type="java.io.IOException"/>
  15497. <doc>
  15498. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  15499. as the underlying stream may have been repositioned.]]>
  15500. </doc>
  15501. </method>
  15502. <field name="in" type="java.io.InputStream"
  15503. transient="false" volatile="false"
  15504. static="false" final="true" visibility="protected"
  15505. deprecated="not deprecated">
  15506. <doc>
  15507. <![CDATA[The input stream to be compressed.]]>
  15508. </doc>
  15509. </field>
  15510. <doc>
  15511. <![CDATA[A compression input stream.
  15512. <p>Implementations are assumed to be buffered. This permits clients to
  15513. reposition the underlying input stream then call {@link #resetState()},
  15514. without having to also synchronize client buffers.]]>
  15515. </doc>
  15516. </class>
  15517. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  15518. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  15519. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  15520. abstract="true"
  15521. static="false" final="false" visibility="public"
  15522. deprecated="not deprecated">
  15523. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  15524. static="false" final="false" visibility="protected"
  15525. deprecated="not deprecated">
  15526. <doc>
  15527. <![CDATA[Create a compression output stream that writes
  15528. the compressed bytes to the given stream.
  15529. @param out]]>
  15530. </doc>
  15531. </constructor>
  15532. <method name="close"
  15533. abstract="false" native="false" synchronized="false"
  15534. static="false" final="false" visibility="public"
  15535. deprecated="not deprecated">
  15536. <exception name="IOException" type="java.io.IOException"/>
  15537. </method>
  15538. <method name="flush"
  15539. abstract="false" native="false" synchronized="false"
  15540. static="false" final="false" visibility="public"
  15541. deprecated="not deprecated">
  15542. <exception name="IOException" type="java.io.IOException"/>
  15543. </method>
  15544. <method name="write"
  15545. abstract="true" native="false" synchronized="false"
  15546. static="false" final="false" visibility="public"
  15547. deprecated="not deprecated">
  15548. <param name="b" type="byte[]"/>
  15549. <param name="off" type="int"/>
  15550. <param name="len" type="int"/>
  15551. <exception name="IOException" type="java.io.IOException"/>
  15552. <doc>
  15553. <![CDATA[Write compressed bytes to the stream.
  15554. Made abstract to prevent leakage to underlying stream.]]>
  15555. </doc>
  15556. </method>
  15557. <method name="finish"
  15558. abstract="true" native="false" synchronized="false"
  15559. static="false" final="false" visibility="public"
  15560. deprecated="not deprecated">
  15561. <exception name="IOException" type="java.io.IOException"/>
  15562. <doc>
  15563. <![CDATA[Finishes writing compressed data to the output stream
  15564. without closing the underlying stream.]]>
  15565. </doc>
  15566. </method>
  15567. <method name="resetState"
  15568. abstract="true" native="false" synchronized="false"
  15569. static="false" final="false" visibility="public"
  15570. deprecated="not deprecated">
  15571. <exception name="IOException" type="java.io.IOException"/>
  15572. <doc>
  15573. <![CDATA[Reset the compression to the initial state.
  15574. Does not reset the underlying stream.]]>
  15575. </doc>
  15576. </method>
  15577. <field name="out" type="java.io.OutputStream"
  15578. transient="false" volatile="false"
  15579. static="false" final="true" visibility="protected"
  15580. deprecated="not deprecated">
  15581. <doc>
  15582. <![CDATA[The output stream to be compressed.]]>
  15583. </doc>
  15584. </field>
  15585. <doc>
  15586. <![CDATA[A compression output stream.]]>
  15587. </doc>
  15588. </class>
  15589. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  15590. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  15591. <interface name="Compressor" abstract="true"
  15592. static="false" final="false" visibility="public"
  15593. deprecated="not deprecated">
  15594. <method name="setInput"
  15595. abstract="false" native="false" synchronized="false"
  15596. static="false" final="false" visibility="public"
  15597. deprecated="not deprecated">
  15598. <param name="b" type="byte[]"/>
  15599. <param name="off" type="int"/>
  15600. <param name="len" type="int"/>
  15601. <doc>
  15602. <![CDATA[Sets input data for compression.
  15603. This should be called whenever #needsInput() returns
  15604. <code>true</code> indicating that more input data is required.
  15605. @param b Input data
  15606. @param off Start offset
  15607. @param len Length]]>
  15608. </doc>
  15609. </method>
  15610. <method name="needsInput" return="boolean"
  15611. abstract="false" native="false" synchronized="false"
  15612. static="false" final="false" visibility="public"
  15613. deprecated="not deprecated">
  15614. <doc>
  15615. <![CDATA[Returns true if the input data buffer is empty and
  15616. #setInput() should be called to provide more input.
  15617. @return <code>true</code> if the input data buffer is empty and
  15618. #setInput() should be called in order to provide more input.]]>
  15619. </doc>
  15620. </method>
  15621. <method name="setDictionary"
  15622. abstract="false" native="false" synchronized="false"
  15623. static="false" final="false" visibility="public"
  15624. deprecated="not deprecated">
  15625. <param name="b" type="byte[]"/>
  15626. <param name="off" type="int"/>
  15627. <param name="len" type="int"/>
  15628. <doc>
  15629. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  15630. is used when the history buffer can be predetermined.
  15631. @param b Dictionary data bytes
  15632. @param off Start offset
  15633. @param len Length]]>
  15634. </doc>
  15635. </method>
  15636. <method name="getBytesRead" return="long"
  15637. abstract="false" native="false" synchronized="false"
  15638. static="false" final="false" visibility="public"
  15639. deprecated="not deprecated">
  15640. <doc>
  15641. <![CDATA[Return number of uncompressed bytes input so far.]]>
  15642. </doc>
  15643. </method>
  15644. <method name="getBytesWritten" return="long"
  15645. abstract="false" native="false" synchronized="false"
  15646. static="false" final="false" visibility="public"
  15647. deprecated="not deprecated">
  15648. <doc>
  15649. <![CDATA[Return number of compressed bytes output so far.]]>
  15650. </doc>
  15651. </method>
  15652. <method name="finish"
  15653. abstract="false" native="false" synchronized="false"
  15654. static="false" final="false" visibility="public"
  15655. deprecated="not deprecated">
  15656. <doc>
  15657. <![CDATA[When called, indicates that compression should end
  15658. with the current contents of the input buffer.]]>
  15659. </doc>
  15660. </method>
  15661. <method name="finished" return="boolean"
  15662. abstract="false" native="false" synchronized="false"
  15663. static="false" final="false" visibility="public"
  15664. deprecated="not deprecated">
  15665. <doc>
  15666. <![CDATA[Returns true if the end of the compressed
  15667. data output stream has been reached.
  15668. @return <code>true</code> if the end of the compressed
  15669. data output stream has been reached.]]>
  15670. </doc>
  15671. </method>
  15672. <method name="compress" return="int"
  15673. abstract="false" native="false" synchronized="false"
  15674. static="false" final="false" visibility="public"
  15675. deprecated="not deprecated">
  15676. <param name="b" type="byte[]"/>
  15677. <param name="off" type="int"/>
  15678. <param name="len" type="int"/>
  15679. <exception name="IOException" type="java.io.IOException"/>
  15680. <doc>
  15681. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  15682. of bytes of compressed data. A return value of 0 indicates that
  15683. needsInput() should be called in order to determine if more input
  15684. data is required.
  15685. @param b Buffer for the compressed data
  15686. @param off Start offset of the data
  15687. @param len Size of the buffer
  15688. @return The actual number of bytes of compressed data.]]>
  15689. </doc>
  15690. </method>
  15691. <method name="reset"
  15692. abstract="false" native="false" synchronized="false"
  15693. static="false" final="false" visibility="public"
  15694. deprecated="not deprecated">
  15695. <doc>
  15696. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  15697. </doc>
  15698. </method>
  15699. <method name="end"
  15700. abstract="false" native="false" synchronized="false"
  15701. static="false" final="false" visibility="public"
  15702. deprecated="not deprecated">
  15703. <doc>
  15704. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  15705. </doc>
  15706. </method>
  15707. <doc>
  15708. <![CDATA[Specification of a stream-based 'compressor' which can be
  15709. plugged into a {@link CompressionOutputStream} to compress data.
  15710. This is modelled after {@link java.util.zip.Deflater}]]>
  15711. </doc>
  15712. </interface>
  15713. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  15714. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  15715. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  15716. abstract="false"
  15717. static="false" final="false" visibility="public"
  15718. deprecated="not deprecated">
  15719. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  15720. static="false" final="false" visibility="public"
  15721. deprecated="not deprecated">
  15722. </constructor>
  15723. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  15724. static="false" final="false" visibility="public"
  15725. deprecated="not deprecated">
  15726. </constructor>
  15727. <constructor name="CompressorStream" type="java.io.OutputStream"
  15728. static="false" final="false" visibility="protected"
  15729. deprecated="not deprecated">
  15730. <doc>
  15731. <![CDATA[Allow derived classes to directly set the underlying stream.
  15732. @param out Underlying output stream.]]>
  15733. </doc>
  15734. </constructor>
  15735. <method name="write"
  15736. abstract="false" native="false" synchronized="false"
  15737. static="false" final="false" visibility="public"
  15738. deprecated="not deprecated">
  15739. <param name="b" type="byte[]"/>
  15740. <param name="off" type="int"/>
  15741. <param name="len" type="int"/>
  15742. <exception name="IOException" type="java.io.IOException"/>
  15743. </method>
  15744. <method name="compress"
  15745. abstract="false" native="false" synchronized="false"
  15746. static="false" final="false" visibility="protected"
  15747. deprecated="not deprecated">
  15748. <exception name="IOException" type="java.io.IOException"/>
  15749. </method>
  15750. <method name="finish"
  15751. abstract="false" native="false" synchronized="false"
  15752. static="false" final="false" visibility="public"
  15753. deprecated="not deprecated">
  15754. <exception name="IOException" type="java.io.IOException"/>
  15755. </method>
  15756. <method name="resetState"
  15757. abstract="false" native="false" synchronized="false"
  15758. static="false" final="false" visibility="public"
  15759. deprecated="not deprecated">
  15760. <exception name="IOException" type="java.io.IOException"/>
  15761. </method>
  15762. <method name="close"
  15763. abstract="false" native="false" synchronized="false"
  15764. static="false" final="false" visibility="public"
  15765. deprecated="not deprecated">
  15766. <exception name="IOException" type="java.io.IOException"/>
  15767. </method>
  15768. <method name="write"
  15769. abstract="false" native="false" synchronized="false"
  15770. static="false" final="false" visibility="public"
  15771. deprecated="not deprecated">
  15772. <param name="b" type="int"/>
  15773. <exception name="IOException" type="java.io.IOException"/>
  15774. </method>
  15775. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  15776. transient="false" volatile="false"
  15777. static="false" final="false" visibility="protected"
  15778. deprecated="not deprecated">
  15779. </field>
  15780. <field name="buffer" type="byte[]"
  15781. transient="false" volatile="false"
  15782. static="false" final="false" visibility="protected"
  15783. deprecated="not deprecated">
  15784. </field>
  15785. <field name="closed" type="boolean"
  15786. transient="false" volatile="false"
  15787. static="false" final="false" visibility="protected"
  15788. deprecated="not deprecated">
  15789. </field>
  15790. </class>
  15791. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  15792. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  15793. <interface name="Decompressor" abstract="true"
  15794. static="false" final="false" visibility="public"
  15795. deprecated="not deprecated">
  15796. <method name="setInput"
  15797. abstract="false" native="false" synchronized="false"
  15798. static="false" final="false" visibility="public"
  15799. deprecated="not deprecated">
  15800. <param name="b" type="byte[]"/>
  15801. <param name="off" type="int"/>
  15802. <param name="len" type="int"/>
  15803. <doc>
  15804. <![CDATA[Sets input data for decompression.
  15805. This should be called whenever #needsInput() returns
  15806. <code>true</code> indicating that more input data is required.
  15807. @param b Input data
  15808. @param off Start offset
  15809. @param len Length]]>
  15810. </doc>
  15811. </method>
  15812. <method name="needsInput" return="boolean"
  15813. abstract="false" native="false" synchronized="false"
  15814. static="false" final="false" visibility="public"
  15815. deprecated="not deprecated">
  15816. <doc>
  15817. <![CDATA[Returns true if the input data buffer is empty and
  15818. #setInput() should be called to provide more input.
  15819. @return <code>true</code> if the input data buffer is empty and
  15820. #setInput() should be called in order to provide more input.]]>
  15821. </doc>
  15822. </method>
  15823. <method name="setDictionary"
  15824. abstract="false" native="false" synchronized="false"
  15825. static="false" final="false" visibility="public"
  15826. deprecated="not deprecated">
  15827. <param name="b" type="byte[]"/>
  15828. <param name="off" type="int"/>
  15829. <param name="len" type="int"/>
  15830. <doc>
  15831. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  15832. is used when the history buffer can be predetermined.
  15833. @param b Dictionary data bytes
  15834. @param off Start offset
  15835. @param len Length]]>
  15836. </doc>
  15837. </method>
  15838. <method name="needsDictionary" return="boolean"
  15839. abstract="false" native="false" synchronized="false"
  15840. static="false" final="false" visibility="public"
  15841. deprecated="not deprecated">
  15842. <doc>
  15843. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  15844. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  15845. </doc>
  15846. </method>
  15847. <method name="finished" return="boolean"
  15848. abstract="false" native="false" synchronized="false"
  15849. static="false" final="false" visibility="public"
  15850. deprecated="not deprecated">
  15851. <doc>
  15852. <![CDATA[Returns true if the end of the compressed
  15853. data output stream has been reached.
  15854. @return <code>true</code> if the end of the compressed
  15855. data output stream has been reached.]]>
  15856. </doc>
  15857. </method>
  15858. <method name="decompress" return="int"
  15859. abstract="false" native="false" synchronized="false"
  15860. static="false" final="false" visibility="public"
  15861. deprecated="not deprecated">
  15862. <param name="b" type="byte[]"/>
  15863. <param name="off" type="int"/>
  15864. <param name="len" type="int"/>
  15865. <exception name="IOException" type="java.io.IOException"/>
  15866. <doc>
  15867. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  15868. of bytes of uncompressed data. A return value of 0 indicates that
  15869. #needsInput() should be called in order to determine if more input
  15870. data is required.
  15871. @param b Buffer for the compressed data
  15872. @param off Start offset of the data
  15873. @param len Size of the buffer
  15874. @return The actual number of bytes of compressed data.
  15875. @throws IOException]]>
  15876. </doc>
  15877. </method>
  15878. <method name="reset"
  15879. abstract="false" native="false" synchronized="false"
  15880. static="false" final="false" visibility="public"
  15881. deprecated="not deprecated">
  15882. <doc>
  15883. <![CDATA[Resets decompressor so that a new set of input data can be processed.]]>
  15884. </doc>
  15885. </method>
  15886. <method name="end"
  15887. abstract="false" native="false" synchronized="false"
  15888. static="false" final="false" visibility="public"
  15889. deprecated="not deprecated">
  15890. <doc>
  15891. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  15892. </doc>
  15893. </method>
  15894. <doc>
  15895. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  15896. plugged into a {@link CompressionInputStream} to compress data.
  15897. This is modelled after {@link java.util.zip.Inflater}]]>
  15898. </doc>
  15899. </interface>
  15900. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  15901. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  15902. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  15903. abstract="false"
  15904. static="false" final="false" visibility="public"
  15905. deprecated="not deprecated">
  15906. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  15907. static="false" final="false" visibility="public"
  15908. deprecated="not deprecated">
  15909. </constructor>
  15910. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  15911. static="false" final="false" visibility="public"
  15912. deprecated="not deprecated">
  15913. </constructor>
  15914. <constructor name="DecompressorStream" type="java.io.InputStream"
  15915. static="false" final="false" visibility="protected"
  15916. deprecated="not deprecated">
  15917. <doc>
  15918. <![CDATA[Allow derived classes to directly set the underlying stream.
  15919. @param in Underlying input stream.]]>
  15920. </doc>
  15921. </constructor>
  15922. <method name="read" return="int"
  15923. abstract="false" native="false" synchronized="false"
  15924. static="false" final="false" visibility="public"
  15925. deprecated="not deprecated">
  15926. <exception name="IOException" type="java.io.IOException"/>
  15927. </method>
  15928. <method name="read" return="int"
  15929. abstract="false" native="false" synchronized="false"
  15930. static="false" final="false" visibility="public"
  15931. deprecated="not deprecated">
  15932. <param name="b" type="byte[]"/>
  15933. <param name="off" type="int"/>
  15934. <param name="len" type="int"/>
  15935. <exception name="IOException" type="java.io.IOException"/>
  15936. </method>
  15937. <method name="decompress" return="int"
  15938. abstract="false" native="false" synchronized="false"
  15939. static="false" final="false" visibility="protected"
  15940. deprecated="not deprecated">
  15941. <param name="b" type="byte[]"/>
  15942. <param name="off" type="int"/>
  15943. <param name="len" type="int"/>
  15944. <exception name="IOException" type="java.io.IOException"/>
  15945. </method>
  15946. <method name="getCompressedData"
  15947. abstract="false" native="false" synchronized="false"
  15948. static="false" final="false" visibility="protected"
  15949. deprecated="not deprecated">
  15950. <exception name="IOException" type="java.io.IOException"/>
  15951. </method>
  15952. <method name="checkStream"
  15953. abstract="false" native="false" synchronized="false"
  15954. static="false" final="false" visibility="protected"
  15955. deprecated="not deprecated">
  15956. <exception name="IOException" type="java.io.IOException"/>
  15957. </method>
  15958. <method name="resetState"
  15959. abstract="false" native="false" synchronized="false"
  15960. static="false" final="false" visibility="public"
  15961. deprecated="not deprecated">
  15962. <exception name="IOException" type="java.io.IOException"/>
  15963. </method>
  15964. <method name="skip" return="long"
  15965. abstract="false" native="false" synchronized="false"
  15966. static="false" final="false" visibility="public"
  15967. deprecated="not deprecated">
  15968. <param name="n" type="long"/>
  15969. <exception name="IOException" type="java.io.IOException"/>
  15970. </method>
  15971. <method name="available" return="int"
  15972. abstract="false" native="false" synchronized="false"
  15973. static="false" final="false" visibility="public"
  15974. deprecated="not deprecated">
  15975. <exception name="IOException" type="java.io.IOException"/>
  15976. </method>
  15977. <method name="close"
  15978. abstract="false" native="false" synchronized="false"
  15979. static="false" final="false" visibility="public"
  15980. deprecated="not deprecated">
  15981. <exception name="IOException" type="java.io.IOException"/>
  15982. </method>
  15983. <method name="markSupported" return="boolean"
  15984. abstract="false" native="false" synchronized="false"
  15985. static="false" final="false" visibility="public"
  15986. deprecated="not deprecated">
  15987. </method>
  15988. <method name="mark"
  15989. abstract="false" native="false" synchronized="true"
  15990. static="false" final="false" visibility="public"
  15991. deprecated="not deprecated">
  15992. <param name="readlimit" type="int"/>
  15993. </method>
  15994. <method name="reset"
  15995. abstract="false" native="false" synchronized="true"
  15996. static="false" final="false" visibility="public"
  15997. deprecated="not deprecated">
  15998. <exception name="IOException" type="java.io.IOException"/>
  15999. </method>
  16000. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  16001. transient="false" volatile="false"
  16002. static="false" final="false" visibility="protected"
  16003. deprecated="not deprecated">
  16004. </field>
  16005. <field name="buffer" type="byte[]"
  16006. transient="false" volatile="false"
  16007. static="false" final="false" visibility="protected"
  16008. deprecated="not deprecated">
  16009. </field>
  16010. <field name="eof" type="boolean"
  16011. transient="false" volatile="false"
  16012. static="false" final="false" visibility="protected"
  16013. deprecated="not deprecated">
  16014. </field>
  16015. <field name="closed" type="boolean"
  16016. transient="false" volatile="false"
  16017. static="false" final="false" visibility="protected"
  16018. deprecated="not deprecated">
  16019. </field>
  16020. </class>
  16021. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  16022. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  16023. <class name="DefaultCodec" extends="java.lang.Object"
  16024. abstract="false"
  16025. static="false" final="false" visibility="public"
  16026. deprecated="not deprecated">
  16027. <implements name="org.apache.hadoop.conf.Configurable"/>
  16028. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  16029. <constructor name="DefaultCodec"
  16030. static="false" final="false" visibility="public"
  16031. deprecated="not deprecated">
  16032. </constructor>
  16033. <method name="setConf"
  16034. abstract="false" native="false" synchronized="false"
  16035. static="false" final="false" visibility="public"
  16036. deprecated="not deprecated">
  16037. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16038. </method>
  16039. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  16040. abstract="false" native="false" synchronized="false"
  16041. static="false" final="false" visibility="public"
  16042. deprecated="not deprecated">
  16043. </method>
  16044. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16045. abstract="false" native="false" synchronized="false"
  16046. static="false" final="false" visibility="public"
  16047. deprecated="not deprecated">
  16048. <param name="out" type="java.io.OutputStream"/>
  16049. <exception name="IOException" type="java.io.IOException"/>
  16050. </method>
  16051. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16052. abstract="false" native="false" synchronized="false"
  16053. static="false" final="false" visibility="public"
  16054. deprecated="not deprecated">
  16055. <param name="out" type="java.io.OutputStream"/>
  16056. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16057. <exception name="IOException" type="java.io.IOException"/>
  16058. </method>
  16059. <method name="getCompressorType" return="java.lang.Class"
  16060. abstract="false" native="false" synchronized="false"
  16061. static="false" final="false" visibility="public"
  16062. deprecated="not deprecated">
  16063. </method>
  16064. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16065. abstract="false" native="false" synchronized="false"
  16066. static="false" final="false" visibility="public"
  16067. deprecated="not deprecated">
  16068. </method>
  16069. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16070. abstract="false" native="false" synchronized="false"
  16071. static="false" final="false" visibility="public"
  16072. deprecated="not deprecated">
  16073. <param name="in" type="java.io.InputStream"/>
  16074. <exception name="IOException" type="java.io.IOException"/>
  16075. </method>
  16076. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16077. abstract="false" native="false" synchronized="false"
  16078. static="false" final="false" visibility="public"
  16079. deprecated="not deprecated">
  16080. <param name="in" type="java.io.InputStream"/>
  16081. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16082. <exception name="IOException" type="java.io.IOException"/>
  16083. </method>
  16084. <method name="getDecompressorType" return="java.lang.Class"
  16085. abstract="false" native="false" synchronized="false"
  16086. static="false" final="false" visibility="public"
  16087. deprecated="not deprecated">
  16088. </method>
  16089. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16090. abstract="false" native="false" synchronized="false"
  16091. static="false" final="false" visibility="public"
  16092. deprecated="not deprecated">
  16093. </method>
  16094. <method name="getDefaultExtension" return="java.lang.String"
  16095. abstract="false" native="false" synchronized="false"
  16096. static="false" final="false" visibility="public"
  16097. deprecated="not deprecated">
  16098. </method>
  16099. </class>
  16100. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  16101. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  16102. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  16103. abstract="false"
  16104. static="false" final="false" visibility="public"
  16105. deprecated="not deprecated">
  16106. <constructor name="GzipCodec"
  16107. static="false" final="false" visibility="public"
  16108. deprecated="not deprecated">
  16109. </constructor>
  16110. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16111. abstract="false" native="false" synchronized="false"
  16112. static="false" final="false" visibility="public"
  16113. deprecated="not deprecated">
  16114. <param name="out" type="java.io.OutputStream"/>
  16115. <exception name="IOException" type="java.io.IOException"/>
  16116. </method>
  16117. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16118. abstract="false" native="false" synchronized="false"
  16119. static="false" final="false" visibility="public"
  16120. deprecated="not deprecated">
  16121. <param name="out" type="java.io.OutputStream"/>
  16122. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16123. <exception name="IOException" type="java.io.IOException"/>
  16124. </method>
  16125. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16126. abstract="false" native="false" synchronized="false"
  16127. static="false" final="false" visibility="public"
  16128. deprecated="not deprecated">
  16129. </method>
  16130. <method name="getCompressorType" return="java.lang.Class"
  16131. abstract="false" native="false" synchronized="false"
  16132. static="false" final="false" visibility="public"
  16133. deprecated="not deprecated">
  16134. </method>
  16135. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16136. abstract="false" native="false" synchronized="false"
  16137. static="false" final="false" visibility="public"
  16138. deprecated="not deprecated">
  16139. <param name="in" type="java.io.InputStream"/>
  16140. <exception name="IOException" type="java.io.IOException"/>
  16141. </method>
  16142. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16143. abstract="false" native="false" synchronized="false"
  16144. static="false" final="false" visibility="public"
  16145. deprecated="not deprecated">
  16146. <param name="in" type="java.io.InputStream"/>
  16147. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16148. <exception name="IOException" type="java.io.IOException"/>
  16149. </method>
  16150. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16151. abstract="false" native="false" synchronized="false"
  16152. static="false" final="false" visibility="public"
  16153. deprecated="not deprecated">
  16154. </method>
  16155. <method name="getDecompressorType" return="java.lang.Class"
  16156. abstract="false" native="false" synchronized="false"
  16157. static="false" final="false" visibility="public"
  16158. deprecated="not deprecated">
  16159. </method>
  16160. <method name="getDefaultExtension" return="java.lang.String"
  16161. abstract="false" native="false" synchronized="false"
  16162. static="false" final="false" visibility="public"
  16163. deprecated="not deprecated">
  16164. </method>
  16165. <doc>
  16166. <![CDATA[This class creates gzip compressors/decompressors.]]>
  16167. </doc>
  16168. </class>
  16169. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  16170. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  16171. <class name="GzipCodec.GzipInputStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  16172. abstract="false"
  16173. static="true" final="false" visibility="protected"
  16174. deprecated="not deprecated">
  16175. <constructor name="GzipCodec.GzipInputStream" type="java.io.InputStream"
  16176. static="false" final="false" visibility="public"
  16177. deprecated="not deprecated">
  16178. <exception name="IOException" type="java.io.IOException"/>
  16179. </constructor>
  16180. <constructor name="GzipCodec.GzipInputStream" type="org.apache.hadoop.io.compress.DecompressorStream"
  16181. static="false" final="false" visibility="protected"
  16182. deprecated="not deprecated">
  16183. <doc>
  16184. <![CDATA[Allow subclasses to directly set the inflater stream.]]>
  16185. </doc>
  16186. </constructor>
  16187. <method name="available" return="int"
  16188. abstract="false" native="false" synchronized="false"
  16189. static="false" final="false" visibility="public"
  16190. deprecated="not deprecated">
  16191. <exception name="IOException" type="java.io.IOException"/>
  16192. </method>
  16193. <method name="close"
  16194. abstract="false" native="false" synchronized="false"
  16195. static="false" final="false" visibility="public"
  16196. deprecated="not deprecated">
  16197. <exception name="IOException" type="java.io.IOException"/>
  16198. </method>
  16199. <method name="read" return="int"
  16200. abstract="false" native="false" synchronized="false"
  16201. static="false" final="false" visibility="public"
  16202. deprecated="not deprecated">
  16203. <exception name="IOException" type="java.io.IOException"/>
  16204. </method>
  16205. <method name="read" return="int"
  16206. abstract="false" native="false" synchronized="false"
  16207. static="false" final="false" visibility="public"
  16208. deprecated="not deprecated">
  16209. <param name="data" type="byte[]"/>
  16210. <param name="offset" type="int"/>
  16211. <param name="len" type="int"/>
  16212. <exception name="IOException" type="java.io.IOException"/>
  16213. </method>
  16214. <method name="skip" return="long"
  16215. abstract="false" native="false" synchronized="false"
  16216. static="false" final="false" visibility="public"
  16217. deprecated="not deprecated">
  16218. <param name="offset" type="long"/>
  16219. <exception name="IOException" type="java.io.IOException"/>
  16220. </method>
  16221. <method name="resetState"
  16222. abstract="false" native="false" synchronized="false"
  16223. static="false" final="false" visibility="public"
  16224. deprecated="not deprecated">
  16225. <exception name="IOException" type="java.io.IOException"/>
  16226. </method>
  16227. </class>
  16228. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  16229. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  16230. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  16231. abstract="false"
  16232. static="true" final="false" visibility="protected"
  16233. deprecated="not deprecated">
  16234. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  16235. static="false" final="false" visibility="public"
  16236. deprecated="not deprecated">
  16237. <exception name="IOException" type="java.io.IOException"/>
  16238. </constructor>
  16239. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  16240. static="false" final="false" visibility="protected"
  16241. deprecated="not deprecated">
  16242. <doc>
  16243. <![CDATA[Allow children types to put a different type in here.
  16244. @param out the Deflater stream to use]]>
  16245. </doc>
  16246. </constructor>
  16247. <method name="close"
  16248. abstract="false" native="false" synchronized="false"
  16249. static="false" final="false" visibility="public"
  16250. deprecated="not deprecated">
  16251. <exception name="IOException" type="java.io.IOException"/>
  16252. </method>
  16253. <method name="flush"
  16254. abstract="false" native="false" synchronized="false"
  16255. static="false" final="false" visibility="public"
  16256. deprecated="not deprecated">
  16257. <exception name="IOException" type="java.io.IOException"/>
  16258. </method>
  16259. <method name="write"
  16260. abstract="false" native="false" synchronized="false"
  16261. static="false" final="false" visibility="public"
  16262. deprecated="not deprecated">
  16263. <param name="b" type="int"/>
  16264. <exception name="IOException" type="java.io.IOException"/>
  16265. </method>
  16266. <method name="write"
  16267. abstract="false" native="false" synchronized="false"
  16268. static="false" final="false" visibility="public"
  16269. deprecated="not deprecated">
  16270. <param name="data" type="byte[]"/>
  16271. <param name="offset" type="int"/>
  16272. <param name="length" type="int"/>
  16273. <exception name="IOException" type="java.io.IOException"/>
  16274. </method>
  16275. <method name="finish"
  16276. abstract="false" native="false" synchronized="false"
  16277. static="false" final="false" visibility="public"
  16278. deprecated="not deprecated">
  16279. <exception name="IOException" type="java.io.IOException"/>
  16280. </method>
  16281. <method name="resetState"
  16282. abstract="false" native="false" synchronized="false"
  16283. static="false" final="false" visibility="public"
  16284. deprecated="not deprecated">
  16285. <exception name="IOException" type="java.io.IOException"/>
  16286. </method>
  16287. <doc>
  16288. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  16289. a CompressionOutputStream.]]>
  16290. </doc>
  16291. </class>
  16292. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  16293. </package>
  16294. <package name="org.apache.hadoop.io.compress.bzip2">
  16295. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  16296. <interface name="BZip2Constants" abstract="true"
  16297. static="false" final="false" visibility="public"
  16298. deprecated="not deprecated">
  16299. <field name="baseBlockSize" type="int"
  16300. transient="false" volatile="false"
  16301. static="true" final="true" visibility="public"
  16302. deprecated="not deprecated">
  16303. </field>
  16304. <field name="MAX_ALPHA_SIZE" type="int"
  16305. transient="false" volatile="false"
  16306. static="true" final="true" visibility="public"
  16307. deprecated="not deprecated">
  16308. </field>
  16309. <field name="MAX_CODE_LEN" type="int"
  16310. transient="false" volatile="false"
  16311. static="true" final="true" visibility="public"
  16312. deprecated="not deprecated">
  16313. </field>
  16314. <field name="RUNA" type="int"
  16315. transient="false" volatile="false"
  16316. static="true" final="true" visibility="public"
  16317. deprecated="not deprecated">
  16318. </field>
  16319. <field name="RUNB" type="int"
  16320. transient="false" volatile="false"
  16321. static="true" final="true" visibility="public"
  16322. deprecated="not deprecated">
  16323. </field>
  16324. <field name="N_GROUPS" type="int"
  16325. transient="false" volatile="false"
  16326. static="true" final="true" visibility="public"
  16327. deprecated="not deprecated">
  16328. </field>
  16329. <field name="G_SIZE" type="int"
  16330. transient="false" volatile="false"
  16331. static="true" final="true" visibility="public"
  16332. deprecated="not deprecated">
  16333. </field>
  16334. <field name="N_ITERS" type="int"
  16335. transient="false" volatile="false"
  16336. static="true" final="true" visibility="public"
  16337. deprecated="not deprecated">
  16338. </field>
  16339. <field name="MAX_SELECTORS" type="int"
  16340. transient="false" volatile="false"
  16341. static="true" final="true" visibility="public"
  16342. deprecated="not deprecated">
  16343. </field>
  16344. <field name="NUM_OVERSHOOT_BYTES" type="int"
  16345. transient="false" volatile="false"
  16346. static="true" final="true" visibility="public"
  16347. deprecated="not deprecated">
  16348. </field>
  16349. <field name="rNums" type="int[]"
  16350. transient="false" volatile="false"
  16351. static="true" final="true" visibility="public"
  16352. deprecated="not deprecated">
  16353. <doc>
  16354. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  16355. is.
  16356. <p>
  16357. FIXME: This array should be in a private or package private location,
  16358. since it could be modified by malicious code.
  16359. </p>]]>
  16360. </doc>
  16361. </field>
  16362. <doc>
  16363. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  16364. and static data.
  16365. <p>
  16366. This interface is public for historical purposes. You should have no need to
  16367. use it.
  16368. </p>]]>
  16369. </doc>
  16370. </interface>
  16371. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  16372. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  16373. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  16374. abstract="false"
  16375. static="false" final="false" visibility="public"
  16376. deprecated="not deprecated">
  16377. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  16378. <constructor name="BZip2DummyCompressor"
  16379. static="false" final="false" visibility="public"
  16380. deprecated="not deprecated">
  16381. </constructor>
  16382. <method name="compress" return="int"
  16383. abstract="false" native="false" synchronized="false"
  16384. static="false" final="false" visibility="public"
  16385. deprecated="not deprecated">
  16386. <param name="b" type="byte[]"/>
  16387. <param name="off" type="int"/>
  16388. <param name="len" type="int"/>
  16389. <exception name="IOException" type="java.io.IOException"/>
  16390. </method>
  16391. <method name="end"
  16392. abstract="false" native="false" synchronized="false"
  16393. static="false" final="false" visibility="public"
  16394. deprecated="not deprecated">
  16395. </method>
  16396. <method name="finish"
  16397. abstract="false" native="false" synchronized="false"
  16398. static="false" final="false" visibility="public"
  16399. deprecated="not deprecated">
  16400. </method>
  16401. <method name="finished" return="boolean"
  16402. abstract="false" native="false" synchronized="false"
  16403. static="false" final="false" visibility="public"
  16404. deprecated="not deprecated">
  16405. </method>
  16406. <method name="getBytesRead" return="long"
  16407. abstract="false" native="false" synchronized="false"
  16408. static="false" final="false" visibility="public"
  16409. deprecated="not deprecated">
  16410. </method>
  16411. <method name="getBytesWritten" return="long"
  16412. abstract="false" native="false" synchronized="false"
  16413. static="false" final="false" visibility="public"
  16414. deprecated="not deprecated">
  16415. </method>
  16416. <method name="needsInput" return="boolean"
  16417. abstract="false" native="false" synchronized="false"
  16418. static="false" final="false" visibility="public"
  16419. deprecated="not deprecated">
  16420. </method>
  16421. <method name="reset"
  16422. abstract="false" native="false" synchronized="false"
  16423. static="false" final="false" visibility="public"
  16424. deprecated="not deprecated">
  16425. </method>
  16426. <method name="setDictionary"
  16427. abstract="false" native="false" synchronized="false"
  16428. static="false" final="false" visibility="public"
  16429. deprecated="not deprecated">
  16430. <param name="b" type="byte[]"/>
  16431. <param name="off" type="int"/>
  16432. <param name="len" type="int"/>
  16433. </method>
  16434. <method name="setInput"
  16435. abstract="false" native="false" synchronized="false"
  16436. static="false" final="false" visibility="public"
  16437. deprecated="not deprecated">
  16438. <param name="b" type="byte[]"/>
  16439. <param name="off" type="int"/>
  16440. <param name="len" type="int"/>
  16441. </method>
  16442. <doc>
  16443. <![CDATA[This is a dummy compressor for BZip2.]]>
  16444. </doc>
  16445. </class>
  16446. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  16447. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  16448. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  16449. abstract="false"
  16450. static="false" final="false" visibility="public"
  16451. deprecated="not deprecated">
  16452. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  16453. <constructor name="BZip2DummyDecompressor"
  16454. static="false" final="false" visibility="public"
  16455. deprecated="not deprecated">
  16456. </constructor>
  16457. <method name="decompress" return="int"
  16458. abstract="false" native="false" synchronized="false"
  16459. static="false" final="false" visibility="public"
  16460. deprecated="not deprecated">
  16461. <param name="b" type="byte[]"/>
  16462. <param name="off" type="int"/>
  16463. <param name="len" type="int"/>
  16464. <exception name="IOException" type="java.io.IOException"/>
  16465. </method>
  16466. <method name="end"
  16467. abstract="false" native="false" synchronized="false"
  16468. static="false" final="false" visibility="public"
  16469. deprecated="not deprecated">
  16470. </method>
  16471. <method name="finished" return="boolean"
  16472. abstract="false" native="false" synchronized="false"
  16473. static="false" final="false" visibility="public"
  16474. deprecated="not deprecated">
  16475. </method>
  16476. <method name="needsDictionary" return="boolean"
  16477. abstract="false" native="false" synchronized="false"
  16478. static="false" final="false" visibility="public"
  16479. deprecated="not deprecated">
  16480. </method>
  16481. <method name="needsInput" return="boolean"
  16482. abstract="false" native="false" synchronized="false"
  16483. static="false" final="false" visibility="public"
  16484. deprecated="not deprecated">
  16485. </method>
  16486. <method name="reset"
  16487. abstract="false" native="false" synchronized="false"
  16488. static="false" final="false" visibility="public"
  16489. deprecated="not deprecated">
  16490. </method>
  16491. <method name="setDictionary"
  16492. abstract="false" native="false" synchronized="false"
  16493. static="false" final="false" visibility="public"
  16494. deprecated="not deprecated">
  16495. <param name="b" type="byte[]"/>
  16496. <param name="off" type="int"/>
  16497. <param name="len" type="int"/>
  16498. </method>
  16499. <method name="setInput"
  16500. abstract="false" native="false" synchronized="false"
  16501. static="false" final="false" visibility="public"
  16502. deprecated="not deprecated">
  16503. <param name="b" type="byte[]"/>
  16504. <param name="off" type="int"/>
  16505. <param name="len" type="int"/>
  16506. </method>
  16507. <doc>
  16508. <![CDATA[This is a dummy decompressor for BZip2.]]>
  16509. </doc>
  16510. </class>
  16511. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  16512. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  16513. <class name="CBZip2InputStream" extends="java.io.InputStream"
  16514. abstract="false"
  16515. static="false" final="false" visibility="public"
  16516. deprecated="not deprecated">
  16517. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  16518. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  16519. static="false" final="false" visibility="public"
  16520. deprecated="not deprecated">
  16521. <exception name="IOException" type="java.io.IOException"/>
  16522. <doc>
  16523. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  16524. specified stream.
  16525. <p>
  16526. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  16527. constructor expects the next byte in the stream to be the first one after
  16528. the magic. Thus callers have to skip the first two bytes. Otherwise this
  16529. constructor will throw an exception.
  16530. </p>
  16531. @throws IOException
  16532. if the stream content is malformed or an I/O error occurs.
  16533. @throws NullPointerException
  16534. if <tt>in == null</tt>]]>
  16535. </doc>
  16536. </constructor>
  16537. <method name="read" return="int"
  16538. abstract="false" native="false" synchronized="false"
  16539. static="false" final="false" visibility="public"
  16540. deprecated="not deprecated">
  16541. <exception name="IOException" type="java.io.IOException"/>
  16542. </method>
  16543. <method name="read" return="int"
  16544. abstract="false" native="false" synchronized="false"
  16545. static="false" final="false" visibility="public"
  16546. deprecated="not deprecated">
  16547. <param name="dest" type="byte[]"/>
  16548. <param name="offs" type="int"/>
  16549. <param name="len" type="int"/>
  16550. <exception name="IOException" type="java.io.IOException"/>
  16551. </method>
  16552. <method name="close"
  16553. abstract="false" native="false" synchronized="false"
  16554. static="false" final="false" visibility="public"
  16555. deprecated="not deprecated">
  16556. <exception name="IOException" type="java.io.IOException"/>
  16557. </method>
  16558. <doc>
  16559. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  16560. header chars) to be read as any other stream.
  16561. <p>
  16562. The decompression requires large amounts of memory. Thus you should call the
  16563. {@link #close() close()} method as soon as possible, to force
  16564. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  16565. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  16566. usage.
  16567. </p>
  16568. <p>
  16569. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  16570. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  16571. Thus you should consider to use a buffered source stream.
  16572. </p>
  16573. <p>
  16574. Instances of this class are not threadsafe.
  16575. </p>]]>
  16576. </doc>
  16577. </class>
  16578. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  16579. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  16580. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  16581. abstract="false"
  16582. static="false" final="false" visibility="public"
  16583. deprecated="not deprecated">
  16584. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  16585. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  16586. static="false" final="false" visibility="public"
  16587. deprecated="not deprecated">
  16588. <exception name="IOException" type="java.io.IOException"/>
  16589. <doc>
  16590. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  16591. <p>
  16592. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  16593. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  16594. constructor.
  16595. </p>
  16596. @param out *
  16597. the destination stream.
  16598. @throws IOException
  16599. if an I/O error occurs in the specified stream.
  16600. @throws NullPointerException
  16601. if <code>out == null</code>.]]>
  16602. </doc>
  16603. </constructor>
  16604. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  16605. static="false" final="false" visibility="public"
  16606. deprecated="not deprecated">
  16607. <exception name="IOException" type="java.io.IOException"/>
  16608. <doc>
  16609. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  16610. <p>
  16611. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  16612. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  16613. constructor.
  16614. </p>
  16615. @param out
  16616. the destination stream.
  16617. @param blockSize
  16618. the blockSize as 100k units.
  16619. @throws IOException
  16620. if an I/O error occurs in the specified stream.
  16621. @throws IllegalArgumentException
  16622. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  16623. @throws NullPointerException
  16624. if <code>out == null</code>.
  16625. @see #MIN_BLOCKSIZE
  16626. @see #MAX_BLOCKSIZE]]>
  16627. </doc>
  16628. </constructor>
  16629. <method name="hbMakeCodeLengths"
  16630. abstract="false" native="false" synchronized="false"
  16631. static="true" final="false" visibility="protected"
  16632. deprecated="not deprecated">
  16633. <param name="len" type="char[]"/>
  16634. <param name="freq" type="int[]"/>
  16635. <param name="alphaSize" type="int"/>
  16636. <param name="maxLen" type="int"/>
  16637. <doc>
  16638. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  16639. don't know what it does then you don't need it.]]>
  16640. </doc>
  16641. </method>
  16642. <method name="chooseBlockSize" return="int"
  16643. abstract="false" native="false" synchronized="false"
  16644. static="true" final="false" visibility="public"
  16645. deprecated="not deprecated">
  16646. <param name="inputLength" type="long"/>
  16647. <doc>
  16648. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  16649. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  16650. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  16651. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  16652. always.
  16653. @param inputLength
  16654. The length of the data which will be compressed by
  16655. <tt>CBZip2OutputStream</tt>.]]>
  16656. </doc>
  16657. </method>
  16658. <method name="write"
  16659. abstract="false" native="false" synchronized="false"
  16660. static="false" final="false" visibility="public"
  16661. deprecated="not deprecated">
  16662. <param name="b" type="int"/>
  16663. <exception name="IOException" type="java.io.IOException"/>
  16664. </method>
  16665. <method name="finalize"
  16666. abstract="false" native="false" synchronized="false"
  16667. static="false" final="false" visibility="protected"
  16668. deprecated="not deprecated">
  16669. <exception name="Throwable" type="java.lang.Throwable"/>
  16670. <doc>
  16671. <![CDATA[Overriden to close the stream.]]>
  16672. </doc>
  16673. </method>
  16674. <method name="finish"
  16675. abstract="false" native="false" synchronized="false"
  16676. static="false" final="false" visibility="public"
  16677. deprecated="not deprecated">
  16678. <exception name="IOException" type="java.io.IOException"/>
  16679. </method>
  16680. <method name="close"
  16681. abstract="false" native="false" synchronized="false"
  16682. static="false" final="false" visibility="public"
  16683. deprecated="not deprecated">
  16684. <exception name="IOException" type="java.io.IOException"/>
  16685. </method>
  16686. <method name="flush"
  16687. abstract="false" native="false" synchronized="false"
  16688. static="false" final="false" visibility="public"
  16689. deprecated="not deprecated">
  16690. <exception name="IOException" type="java.io.IOException"/>
  16691. </method>
  16692. <method name="getBlockSize" return="int"
  16693. abstract="false" native="false" synchronized="false"
  16694. static="false" final="true" visibility="public"
  16695. deprecated="not deprecated">
  16696. <doc>
  16697. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  16698. </doc>
  16699. </method>
  16700. <method name="write"
  16701. abstract="false" native="false" synchronized="false"
  16702. static="false" final="false" visibility="public"
  16703. deprecated="not deprecated">
  16704. <param name="buf" type="byte[]"/>
  16705. <param name="offs" type="int"/>
  16706. <param name="len" type="int"/>
  16707. <exception name="IOException" type="java.io.IOException"/>
  16708. </method>
  16709. <field name="MIN_BLOCKSIZE" type="int"
  16710. transient="false" volatile="false"
  16711. static="true" final="true" visibility="public"
  16712. deprecated="not deprecated">
  16713. <doc>
  16714. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  16715. </doc>
  16716. </field>
  16717. <field name="MAX_BLOCKSIZE" type="int"
  16718. transient="false" volatile="false"
  16719. static="true" final="true" visibility="public"
  16720. deprecated="not deprecated">
  16721. <doc>
  16722. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  16723. </doc>
  16724. </field>
  16725. <field name="SETMASK" type="int"
  16726. transient="false" volatile="false"
  16727. static="true" final="true" visibility="protected"
  16728. deprecated="not deprecated">
  16729. <doc>
  16730. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16731. don't know what it means then you don't need it.]]>
  16732. </doc>
  16733. </field>
  16734. <field name="CLEARMASK" type="int"
  16735. transient="false" volatile="false"
  16736. static="true" final="true" visibility="protected"
  16737. deprecated="not deprecated">
  16738. <doc>
  16739. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16740. don't know what it means then you don't need it.]]>
  16741. </doc>
  16742. </field>
  16743. <field name="GREATER_ICOST" type="int"
  16744. transient="false" volatile="false"
  16745. static="true" final="true" visibility="protected"
  16746. deprecated="not deprecated">
  16747. <doc>
  16748. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16749. don't know what it means then you don't need it.]]>
  16750. </doc>
  16751. </field>
  16752. <field name="LESSER_ICOST" type="int"
  16753. transient="false" volatile="false"
  16754. static="true" final="true" visibility="protected"
  16755. deprecated="not deprecated">
  16756. <doc>
  16757. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16758. don't know what it means then you don't need it.]]>
  16759. </doc>
  16760. </field>
  16761. <field name="SMALL_THRESH" type="int"
  16762. transient="false" volatile="false"
  16763. static="true" final="true" visibility="protected"
  16764. deprecated="not deprecated">
  16765. <doc>
  16766. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16767. don't know what it means then you don't need it.]]>
  16768. </doc>
  16769. </field>
  16770. <field name="DEPTH_THRESH" type="int"
  16771. transient="false" volatile="false"
  16772. static="true" final="true" visibility="protected"
  16773. deprecated="not deprecated">
  16774. <doc>
  16775. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16776. don't know what it means then you don't need it.]]>
  16777. </doc>
  16778. </field>
  16779. <field name="WORK_FACTOR" type="int"
  16780. transient="false" volatile="false"
  16781. static="true" final="true" visibility="protected"
  16782. deprecated="not deprecated">
  16783. <doc>
  16784. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16785. don't know what it means then you don't need it.]]>
  16786. </doc>
  16787. </field>
  16788. <field name="QSORT_STACK_SIZE" type="int"
  16789. transient="false" volatile="false"
  16790. static="true" final="true" visibility="protected"
  16791. deprecated="not deprecated">
  16792. <doc>
  16793. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16794. don't know what it means then you don't need it.
  16795. <p>
  16796. If you are ever unlucky/improbable enough to get a stack overflow whilst
  16797. sorting, increase the following constant and try again. In practice I
  16798. have never seen the stack go above 27 elems, so the following limit seems
  16799. very generous.
  16800. </p>]]>
  16801. </doc>
  16802. </field>
  16803. <doc>
  16804. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  16805. header chars) into another stream.
  16806. <p>
  16807. The compression requires large amounts of memory. Thus you should call the
  16808. {@link #close() close()} method as soon as possible, to force
  16809. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  16810. </p>
  16811. <p>
  16812. You can shrink the amount of allocated memory and maybe raise the compression
  16813. speed by choosing a lower blocksize, which in turn may cause a lower
  16814. compression ratio. You can avoid unnecessary memory allocation by avoiding
  16815. using a blocksize which is bigger than the size of the input.
  16816. </p>
  16817. <p>
  16818. You can compute the memory usage for compressing by the following formula:
  16819. </p>
  16820. <pre>
  16821. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  16822. </pre>
  16823. <p>
  16824. To get the memory required for decompression by {@link CBZip2InputStream
  16825. CBZip2InputStream} use
  16826. </p>
  16827. <pre>
  16828. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  16829. </pre>
  16830. <table width="100%" border="1">
  16831. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  16832. </colgroup>
  16833. <tr>
  16834. <th colspan="3">Memory usage by blocksize</th>
  16835. </tr>
  16836. <tr>
  16837. <th align="right">Blocksize</th> <th align="right">Compression<br>
  16838. memory usage</th> <th align="right">Decompression<br>
  16839. memory usage</th>
  16840. </tr>
  16841. <tr>
  16842. <td align="right">100k</td>
  16843. <td align="right">1300k</td>
  16844. <td align="right">565k</td>
  16845. </tr>
  16846. <tr>
  16847. <td align="right">200k</td>
  16848. <td align="right">2200k</td>
  16849. <td align="right">1065k</td>
  16850. </tr>
  16851. <tr>
  16852. <td align="right">300k</td>
  16853. <td align="right">3100k</td>
  16854. <td align="right">1565k</td>
  16855. </tr>
  16856. <tr>
  16857. <td align="right">400k</td>
  16858. <td align="right">4000k</td>
  16859. <td align="right">2065k</td>
  16860. </tr>
  16861. <tr>
  16862. <td align="right">500k</td>
  16863. <td align="right">4900k</td>
  16864. <td align="right">2565k</td>
  16865. </tr>
  16866. <tr>
  16867. <td align="right">600k</td>
  16868. <td align="right">5800k</td>
  16869. <td align="right">3065k</td>
  16870. </tr>
  16871. <tr>
  16872. <td align="right">700k</td>
  16873. <td align="right">6700k</td>
  16874. <td align="right">3565k</td>
  16875. </tr>
  16876. <tr>
  16877. <td align="right">800k</td>
  16878. <td align="right">7600k</td>
  16879. <td align="right">4065k</td>
  16880. </tr>
  16881. <tr>
  16882. <td align="right">900k</td>
  16883. <td align="right">8500k</td>
  16884. <td align="right">4565k</td>
  16885. </tr>
  16886. </table>
  16887. <p>
  16888. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  16889. bzipped input is smaller than one block.
  16890. </p>
  16891. <p>
  16892. Instances of this class are not threadsafe.
  16893. </p>
  16894. <p>
  16895. TODO: Update to BZip2 1.0.1
  16896. </p>]]>
  16897. </doc>
  16898. </class>
  16899. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  16900. </package>
  16901. <package name="org.apache.hadoop.io.compress.zlib">
  16902. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  16903. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  16904. abstract="false"
  16905. static="false" final="false" visibility="public"
  16906. deprecated="not deprecated">
  16907. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  16908. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  16909. static="false" final="false" visibility="public"
  16910. deprecated="not deprecated">
  16911. </constructor>
  16912. <constructor name="BuiltInZlibDeflater" type="int"
  16913. static="false" final="false" visibility="public"
  16914. deprecated="not deprecated">
  16915. </constructor>
  16916. <constructor name="BuiltInZlibDeflater"
  16917. static="false" final="false" visibility="public"
  16918. deprecated="not deprecated">
  16919. </constructor>
  16920. <method name="compress" return="int"
  16921. abstract="false" native="false" synchronized="true"
  16922. static="false" final="false" visibility="public"
  16923. deprecated="not deprecated">
  16924. <param name="b" type="byte[]"/>
  16925. <param name="off" type="int"/>
  16926. <param name="len" type="int"/>
  16927. <exception name="IOException" type="java.io.IOException"/>
  16928. </method>
  16929. <doc>
  16930. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  16931. to org.apache.hadoop.io.compress.Compressor interface.]]>
  16932. </doc>
  16933. </class>
  16934. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  16935. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  16936. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  16937. abstract="false"
  16938. static="false" final="false" visibility="public"
  16939. deprecated="not deprecated">
  16940. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  16941. <constructor name="BuiltInZlibInflater" type="boolean"
  16942. static="false" final="false" visibility="public"
  16943. deprecated="not deprecated">
  16944. </constructor>
  16945. <constructor name="BuiltInZlibInflater"
  16946. static="false" final="false" visibility="public"
  16947. deprecated="not deprecated">
  16948. </constructor>
  16949. <method name="decompress" return="int"
  16950. abstract="false" native="false" synchronized="true"
  16951. static="false" final="false" visibility="public"
  16952. deprecated="not deprecated">
  16953. <param name="b" type="byte[]"/>
  16954. <param name="off" type="int"/>
  16955. <param name="len" type="int"/>
  16956. <exception name="IOException" type="java.io.IOException"/>
  16957. </method>
  16958. <doc>
  16959. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  16960. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  16961. </doc>
  16962. </class>
  16963. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  16964. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  16965. <class name="ZlibCompressor" extends="java.lang.Object"
  16966. abstract="false"
  16967. static="false" final="false" visibility="public"
  16968. deprecated="not deprecated">
  16969. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  16970. <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"
  16971. static="false" final="false" visibility="public"
  16972. deprecated="not deprecated">
  16973. <doc>
  16974. <![CDATA[Creates a new compressor using the specified compression level.
  16975. Compressed data will be generated in ZLIB format.
  16976. @param level Compression level #CompressionLevel
  16977. @param strategy Compression strategy #CompressionStrategy
  16978. @param header Compression header #CompressionHeader
  16979. @param directBufferSize Size of the direct buffer to be used.]]>
  16980. </doc>
  16981. </constructor>
  16982. <constructor name="ZlibCompressor"
  16983. static="false" final="false" visibility="public"
  16984. deprecated="not deprecated">
  16985. <doc>
  16986. <![CDATA[Creates a new compressor with the default compression level.
  16987. Compressed data will be generated in ZLIB format.]]>
  16988. </doc>
  16989. </constructor>
  16990. <method name="setInput"
  16991. abstract="false" native="false" synchronized="true"
  16992. static="false" final="false" visibility="public"
  16993. deprecated="not deprecated">
  16994. <param name="b" type="byte[]"/>
  16995. <param name="off" type="int"/>
  16996. <param name="len" type="int"/>
  16997. </method>
  16998. <method name="setDictionary"
  16999. abstract="false" native="false" synchronized="true"
  17000. static="false" final="false" visibility="public"
  17001. deprecated="not deprecated">
  17002. <param name="b" type="byte[]"/>
  17003. <param name="off" type="int"/>
  17004. <param name="len" type="int"/>
  17005. </method>
  17006. <method name="needsInput" return="boolean"
  17007. abstract="false" native="false" synchronized="false"
  17008. static="false" final="false" visibility="public"
  17009. deprecated="not deprecated">
  17010. </method>
  17011. <method name="finish"
  17012. abstract="false" native="false" synchronized="true"
  17013. static="false" final="false" visibility="public"
  17014. deprecated="not deprecated">
  17015. </method>
  17016. <method name="finished" return="boolean"
  17017. abstract="false" native="false" synchronized="true"
  17018. static="false" final="false" visibility="public"
  17019. deprecated="not deprecated">
  17020. </method>
  17021. <method name="compress" return="int"
  17022. abstract="false" native="false" synchronized="true"
  17023. static="false" final="false" visibility="public"
  17024. deprecated="not deprecated">
  17025. <param name="b" type="byte[]"/>
  17026. <param name="off" type="int"/>
  17027. <param name="len" type="int"/>
  17028. <exception name="IOException" type="java.io.IOException"/>
  17029. </method>
  17030. <method name="getBytesWritten" return="long"
  17031. abstract="false" native="false" synchronized="true"
  17032. static="false" final="false" visibility="public"
  17033. deprecated="not deprecated">
  17034. <doc>
  17035. <![CDATA[Returns the total number of compressed bytes output so far.
  17036. @return the total (non-negative) number of compressed bytes output so far]]>
  17037. </doc>
  17038. </method>
  17039. <method name="getBytesRead" return="long"
  17040. abstract="false" native="false" synchronized="true"
  17041. static="false" final="false" visibility="public"
  17042. deprecated="not deprecated">
  17043. <doc>
  17044. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  17045. @return the total (non-negative) number of uncompressed bytes input so far]]>
  17046. </doc>
  17047. </method>
  17048. <method name="reset"
  17049. abstract="false" native="false" synchronized="true"
  17050. static="false" final="false" visibility="public"
  17051. deprecated="not deprecated">
  17052. </method>
  17053. <method name="end"
  17054. abstract="false" native="false" synchronized="true"
  17055. static="false" final="false" visibility="public"
  17056. deprecated="not deprecated">
  17057. </method>
  17058. <doc>
  17059. <![CDATA[A {@link Compressor} based on the popular
  17060. zlib compression algorithm.
  17061. http://www.zlib.net/]]>
  17062. </doc>
  17063. </class>
  17064. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  17065. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  17066. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  17067. abstract="false"
  17068. static="true" final="true" visibility="public"
  17069. deprecated="not deprecated">
  17070. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  17071. abstract="false" native="false" synchronized="false"
  17072. static="true" final="false" visibility="public"
  17073. deprecated="not deprecated">
  17074. </method>
  17075. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  17076. abstract="false" native="false" synchronized="false"
  17077. static="true" final="false" visibility="public"
  17078. deprecated="not deprecated">
  17079. <param name="name" type="java.lang.String"/>
  17080. </method>
  17081. <method name="windowBits" return="int"
  17082. abstract="false" native="false" synchronized="false"
  17083. static="false" final="false" visibility="public"
  17084. deprecated="not deprecated">
  17085. </method>
  17086. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  17087. transient="false" volatile="false"
  17088. static="true" final="true" visibility="public"
  17089. deprecated="not deprecated">
  17090. <doc>
  17091. <![CDATA[No headers/trailers/checksums.]]>
  17092. </doc>
  17093. </field>
  17094. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  17095. transient="false" volatile="false"
  17096. static="true" final="true" visibility="public"
  17097. deprecated="not deprecated">
  17098. <doc>
  17099. <![CDATA[Default headers/trailers/checksums.]]>
  17100. </doc>
  17101. </field>
  17102. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  17103. transient="false" volatile="false"
  17104. static="true" final="true" visibility="public"
  17105. deprecated="not deprecated">
  17106. <doc>
  17107. <![CDATA[Simple gzip headers/trailers.]]>
  17108. </doc>
  17109. </field>
  17110. <doc>
  17111. <![CDATA[The type of header for compressed data.]]>
  17112. </doc>
  17113. </class>
  17114. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  17115. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  17116. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  17117. abstract="false"
  17118. static="true" final="true" visibility="public"
  17119. deprecated="not deprecated">
  17120. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  17121. abstract="false" native="false" synchronized="false"
  17122. static="true" final="false" visibility="public"
  17123. deprecated="not deprecated">
  17124. </method>
  17125. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  17126. abstract="false" native="false" synchronized="false"
  17127. static="true" final="false" visibility="public"
  17128. deprecated="not deprecated">
  17129. <param name="name" type="java.lang.String"/>
  17130. </method>
  17131. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  17132. transient="false" volatile="false"
  17133. static="true" final="true" visibility="public"
  17134. deprecated="not deprecated">
  17135. <doc>
  17136. <![CDATA[Compression level for no compression.]]>
  17137. </doc>
  17138. </field>
  17139. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  17140. transient="false" volatile="false"
  17141. static="true" final="true" visibility="public"
  17142. deprecated="not deprecated">
  17143. <doc>
  17144. <![CDATA[Compression level for fastest compression.]]>
  17145. </doc>
  17146. </field>
  17147. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  17148. transient="false" volatile="false"
  17149. static="true" final="true" visibility="public"
  17150. deprecated="not deprecated">
  17151. <doc>
  17152. <![CDATA[Compression level for best compression.]]>
  17153. </doc>
  17154. </field>
  17155. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  17156. transient="false" volatile="false"
  17157. static="true" final="true" visibility="public"
  17158. deprecated="not deprecated">
  17159. <doc>
  17160. <![CDATA[Default compression level.]]>
  17161. </doc>
  17162. </field>
  17163. <doc>
  17164. <![CDATA[The compression level for zlib library.]]>
  17165. </doc>
  17166. </class>
  17167. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  17168. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  17169. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  17170. abstract="false"
  17171. static="true" final="true" visibility="public"
  17172. deprecated="not deprecated">
  17173. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  17174. abstract="false" native="false" synchronized="false"
  17175. static="true" final="false" visibility="public"
  17176. deprecated="not deprecated">
  17177. </method>
  17178. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17179. abstract="false" native="false" synchronized="false"
  17180. static="true" final="false" visibility="public"
  17181. deprecated="not deprecated">
  17182. <param name="name" type="java.lang.String"/>
  17183. </method>
  17184. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17185. transient="false" volatile="false"
  17186. static="true" final="true" visibility="public"
  17187. deprecated="not deprecated">
  17188. <doc>
  17189. <![CDATA[Compression strategy best used for data consisting mostly of small
  17190. values with a somewhat random distribution. Forces more Huffman coding
  17191. and less string matching.]]>
  17192. </doc>
  17193. </field>
  17194. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17195. transient="false" volatile="false"
  17196. static="true" final="true" visibility="public"
  17197. deprecated="not deprecated">
  17198. <doc>
  17199. <![CDATA[Compression strategy for Huffman coding only.]]>
  17200. </doc>
  17201. </field>
  17202. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17203. transient="false" volatile="false"
  17204. static="true" final="true" visibility="public"
  17205. deprecated="not deprecated">
  17206. <doc>
  17207. <![CDATA[Compression strategy to limit match distances to one
  17208. (run-length encoding).]]>
  17209. </doc>
  17210. </field>
  17211. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17212. transient="false" volatile="false"
  17213. static="true" final="true" visibility="public"
  17214. deprecated="not deprecated">
  17215. <doc>
  17216. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  17217. allowing for a simpler decoder for special applications.]]>
  17218. </doc>
  17219. </field>
  17220. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17221. transient="false" volatile="false"
  17222. static="true" final="true" visibility="public"
  17223. deprecated="not deprecated">
  17224. <doc>
  17225. <![CDATA[Default compression strategy.]]>
  17226. </doc>
  17227. </field>
  17228. <doc>
  17229. <![CDATA[The compression level for zlib library.]]>
  17230. </doc>
  17231. </class>
  17232. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  17233. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  17234. <class name="ZlibDecompressor" extends="java.lang.Object"
  17235. abstract="false"
  17236. static="false" final="false" visibility="public"
  17237. deprecated="not deprecated">
  17238. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17239. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  17240. static="false" final="false" visibility="public"
  17241. deprecated="not deprecated">
  17242. <doc>
  17243. <![CDATA[Creates a new decompressor.]]>
  17244. </doc>
  17245. </constructor>
  17246. <constructor name="ZlibDecompressor"
  17247. static="false" final="false" visibility="public"
  17248. deprecated="not deprecated">
  17249. </constructor>
  17250. <method name="setInput"
  17251. abstract="false" native="false" synchronized="true"
  17252. static="false" final="false" visibility="public"
  17253. deprecated="not deprecated">
  17254. <param name="b" type="byte[]"/>
  17255. <param name="off" type="int"/>
  17256. <param name="len" type="int"/>
  17257. </method>
  17258. <method name="setDictionary"
  17259. abstract="false" native="false" synchronized="true"
  17260. static="false" final="false" visibility="public"
  17261. deprecated="not deprecated">
  17262. <param name="b" type="byte[]"/>
  17263. <param name="off" type="int"/>
  17264. <param name="len" type="int"/>
  17265. </method>
  17266. <method name="needsInput" return="boolean"
  17267. abstract="false" native="false" synchronized="true"
  17268. static="false" final="false" visibility="public"
  17269. deprecated="not deprecated">
  17270. </method>
  17271. <method name="needsDictionary" return="boolean"
  17272. abstract="false" native="false" synchronized="true"
  17273. static="false" final="false" visibility="public"
  17274. deprecated="not deprecated">
  17275. </method>
  17276. <method name="finished" return="boolean"
  17277. abstract="false" native="false" synchronized="true"
  17278. static="false" final="false" visibility="public"
  17279. deprecated="not deprecated">
  17280. </method>
  17281. <method name="decompress" return="int"
  17282. abstract="false" native="false" synchronized="true"
  17283. static="false" final="false" visibility="public"
  17284. deprecated="not deprecated">
  17285. <param name="b" type="byte[]"/>
  17286. <param name="off" type="int"/>
  17287. <param name="len" type="int"/>
  17288. <exception name="IOException" type="java.io.IOException"/>
  17289. </method>
  17290. <method name="getBytesWritten" return="long"
  17291. abstract="false" native="false" synchronized="true"
  17292. static="false" final="false" visibility="public"
  17293. deprecated="not deprecated">
  17294. <doc>
  17295. <![CDATA[Returns the total number of compressed bytes output so far.
  17296. @return the total (non-negative) number of compressed bytes output so far]]>
  17297. </doc>
  17298. </method>
  17299. <method name="getBytesRead" return="long"
  17300. abstract="false" native="false" synchronized="true"
  17301. static="false" final="false" visibility="public"
  17302. deprecated="not deprecated">
  17303. <doc>
  17304. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  17305. @return the total (non-negative) number of uncompressed bytes input so far]]>
  17306. </doc>
  17307. </method>
  17308. <method name="reset"
  17309. abstract="false" native="false" synchronized="true"
  17310. static="false" final="false" visibility="public"
  17311. deprecated="not deprecated">
  17312. </method>
  17313. <method name="end"
  17314. abstract="false" native="false" synchronized="true"
  17315. static="false" final="false" visibility="public"
  17316. deprecated="not deprecated">
  17317. </method>
  17318. <method name="finalize"
  17319. abstract="false" native="false" synchronized="false"
  17320. static="false" final="false" visibility="protected"
  17321. deprecated="not deprecated">
  17322. </method>
  17323. <doc>
  17324. <![CDATA[A {@link Decompressor} based on the popular
  17325. zlib compression algorithm.
  17326. http://www.zlib.net/]]>
  17327. </doc>
  17328. </class>
  17329. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  17330. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  17331. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  17332. abstract="false"
  17333. static="true" final="true" visibility="public"
  17334. deprecated="not deprecated">
  17335. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  17336. abstract="false" native="false" synchronized="false"
  17337. static="true" final="false" visibility="public"
  17338. deprecated="not deprecated">
  17339. </method>
  17340. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  17341. abstract="false" native="false" synchronized="false"
  17342. static="true" final="false" visibility="public"
  17343. deprecated="not deprecated">
  17344. <param name="name" type="java.lang.String"/>
  17345. </method>
  17346. <method name="windowBits" return="int"
  17347. abstract="false" native="false" synchronized="false"
  17348. static="false" final="false" visibility="public"
  17349. deprecated="not deprecated">
  17350. </method>
  17351. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  17352. transient="false" volatile="false"
  17353. static="true" final="true" visibility="public"
  17354. deprecated="not deprecated">
  17355. <doc>
  17356. <![CDATA[No headers/trailers/checksums.]]>
  17357. </doc>
  17358. </field>
  17359. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  17360. transient="false" volatile="false"
  17361. static="true" final="true" visibility="public"
  17362. deprecated="not deprecated">
  17363. <doc>
  17364. <![CDATA[Default headers/trailers/checksums.]]>
  17365. </doc>
  17366. </field>
  17367. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  17368. transient="false" volatile="false"
  17369. static="true" final="true" visibility="public"
  17370. deprecated="not deprecated">
  17371. <doc>
  17372. <![CDATA[Simple gzip headers/trailers.]]>
  17373. </doc>
  17374. </field>
  17375. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  17376. transient="false" volatile="false"
  17377. static="true" final="true" visibility="public"
  17378. deprecated="not deprecated">
  17379. <doc>
  17380. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  17381. </doc>
  17382. </field>
  17383. <doc>
  17384. <![CDATA[The headers to detect from compressed data.]]>
  17385. </doc>
  17386. </class>
  17387. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  17388. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  17389. <class name="ZlibFactory" extends="java.lang.Object"
  17390. abstract="false"
  17391. static="false" final="false" visibility="public"
  17392. deprecated="not deprecated">
  17393. <constructor name="ZlibFactory"
  17394. static="false" final="false" visibility="public"
  17395. deprecated="not deprecated">
  17396. </constructor>
  17397. <method name="isNativeZlibLoaded" return="boolean"
  17398. abstract="false" native="false" synchronized="false"
  17399. static="true" final="false" visibility="public"
  17400. deprecated="not deprecated">
  17401. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17402. <doc>
  17403. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  17404. can be loaded for this job.
  17405. @param conf configuration
  17406. @return <code>true</code> if native-zlib is loaded & initialized
  17407. and can be loaded for this job, else <code>false</code>]]>
  17408. </doc>
  17409. </method>
  17410. <method name="getZlibCompressorType" return="java.lang.Class"
  17411. abstract="false" native="false" synchronized="false"
  17412. static="true" final="false" visibility="public"
  17413. deprecated="not deprecated">
  17414. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17415. <doc>
  17416. <![CDATA[Return the appropriate type of the zlib compressor.
  17417. @param conf configuration
  17418. @return the appropriate type of the zlib compressor.]]>
  17419. </doc>
  17420. </method>
  17421. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17422. abstract="false" native="false" synchronized="false"
  17423. static="true" final="false" visibility="public"
  17424. deprecated="not deprecated">
  17425. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17426. <doc>
  17427. <![CDATA[Return the appropriate implementation of the zlib compressor.
  17428. @param conf configuration
  17429. @return the appropriate implementation of the zlib compressor.]]>
  17430. </doc>
  17431. </method>
  17432. <method name="getZlibDecompressorType" return="java.lang.Class"
  17433. abstract="false" native="false" synchronized="false"
  17434. static="true" final="false" visibility="public"
  17435. deprecated="not deprecated">
  17436. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17437. <doc>
  17438. <![CDATA[Return the appropriate type of the zlib decompressor.
  17439. @param conf configuration
  17440. @return the appropriate type of the zlib decompressor.]]>
  17441. </doc>
  17442. </method>
  17443. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17444. abstract="false" native="false" synchronized="false"
  17445. static="true" final="false" visibility="public"
  17446. deprecated="not deprecated">
  17447. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17448. <doc>
  17449. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  17450. @param conf configuration
  17451. @return the appropriate implementation of the zlib decompressor.]]>
  17452. </doc>
  17453. </method>
  17454. <doc>
  17455. <![CDATA[A collection of factories to create the right
  17456. zlib/gzip compressor/decompressor instances.]]>
  17457. </doc>
  17458. </class>
  17459. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  17460. </package>
  17461. <package name="org.apache.hadoop.io.retry">
  17462. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  17463. <class name="RetryPolicies" extends="java.lang.Object"
  17464. abstract="false"
  17465. static="false" final="false" visibility="public"
  17466. deprecated="not deprecated">
  17467. <constructor name="RetryPolicies"
  17468. static="false" final="false" visibility="public"
  17469. deprecated="not deprecated">
  17470. </constructor>
  17471. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  17472. abstract="false" native="false" synchronized="false"
  17473. static="true" final="true" visibility="public"
  17474. deprecated="not deprecated">
  17475. <param name="maxRetries" type="int"/>
  17476. <param name="sleepTime" type="long"/>
  17477. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  17478. <doc>
  17479. <![CDATA[<p>
  17480. Keep trying a limited number of times, waiting a fixed time between attempts,
  17481. and then fail by re-throwing the exception.
  17482. </p>]]>
  17483. </doc>
  17484. </method>
  17485. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  17486. abstract="false" native="false" synchronized="false"
  17487. static="true" final="true" visibility="public"
  17488. deprecated="not deprecated">
  17489. <param name="maxTime" type="long"/>
  17490. <param name="sleepTime" type="long"/>
  17491. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  17492. <doc>
  17493. <![CDATA[<p>
  17494. Keep trying for a maximum time, waiting a fixed time between attempts,
  17495. and then fail by re-throwing the exception.
  17496. </p>]]>
  17497. </doc>
  17498. </method>
  17499. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  17500. abstract="false" native="false" synchronized="false"
  17501. static="true" final="true" visibility="public"
  17502. deprecated="not deprecated">
  17503. <param name="maxRetries" type="int"/>
  17504. <param name="sleepTime" type="long"/>
  17505. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  17506. <doc>
  17507. <![CDATA[<p>
  17508. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  17509. and then fail by re-throwing the exception.
  17510. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  17511. </p>]]>
  17512. </doc>
  17513. </method>
  17514. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  17515. abstract="false" native="false" synchronized="false"
  17516. static="true" final="true" visibility="public"
  17517. deprecated="not deprecated">
  17518. <param name="maxRetries" type="int"/>
  17519. <param name="sleepTime" type="long"/>
  17520. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  17521. <doc>
  17522. <![CDATA[<p>
  17523. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  17524. and then fail by re-throwing the exception.
  17525. The time between attempts is <code>sleepTime</code> mutliplied by a random
  17526. number in the range of [0, 2 to the number of retries)
  17527. </p>]]>
  17528. </doc>
  17529. </method>
  17530. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  17531. abstract="false" native="false" synchronized="false"
  17532. static="true" final="true" visibility="public"
  17533. deprecated="not deprecated">
  17534. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  17535. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  17536. <doc>
  17537. <![CDATA[<p>
  17538. Set a default policy with some explicit handlers for specific exceptions.
  17539. </p>]]>
  17540. </doc>
  17541. </method>
  17542. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  17543. abstract="false" native="false" synchronized="false"
  17544. static="true" final="true" visibility="public"
  17545. deprecated="not deprecated">
  17546. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  17547. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  17548. <doc>
  17549. <![CDATA[<p>
  17550. A retry policy for RemoteException
  17551. Set a default policy with some explicit handlers for specific exceptions.
  17552. </p>]]>
  17553. </doc>
  17554. </method>
  17555. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  17556. transient="false" volatile="false"
  17557. static="true" final="true" visibility="public"
  17558. deprecated="not deprecated">
  17559. <doc>
  17560. <![CDATA[<p>
  17561. Try once, and fail by re-throwing the exception.
  17562. This corresponds to having no retry mechanism in place.
  17563. </p>]]>
  17564. </doc>
  17565. </field>
  17566. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  17567. transient="false" volatile="false"
  17568. static="true" final="true" visibility="public"
  17569. deprecated="not deprecated">
  17570. <doc>
  17571. <![CDATA[<p>
  17572. Try once, and fail silently for <code>void</code> methods, or by
  17573. re-throwing the exception for non-<code>void</code> methods.
  17574. </p>]]>
  17575. </doc>
  17576. </field>
  17577. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  17578. transient="false" volatile="false"
  17579. static="true" final="true" visibility="public"
  17580. deprecated="not deprecated">
  17581. <doc>
  17582. <![CDATA[<p>
  17583. Keep trying forever.
  17584. </p>]]>
  17585. </doc>
  17586. </field>
  17587. <doc>
  17588. <![CDATA[<p>
  17589. A collection of useful implementations of {@link RetryPolicy}.
  17590. </p>]]>
  17591. </doc>
  17592. </class>
  17593. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  17594. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  17595. <interface name="RetryPolicy" abstract="true"
  17596. static="false" final="false" visibility="public"
  17597. deprecated="not deprecated">
  17598. <method name="shouldRetry" return="boolean"
  17599. abstract="false" native="false" synchronized="false"
  17600. static="false" final="false" visibility="public"
  17601. deprecated="not deprecated">
  17602. <param name="e" type="java.lang.Exception"/>
  17603. <param name="retries" type="int"/>
  17604. <exception name="Exception" type="java.lang.Exception"/>
  17605. <doc>
  17606. <![CDATA[<p>
  17607. Determines whether the framework should retry a
  17608. method for the given exception, and the number
  17609. of retries that have been made for that operation
  17610. so far.
  17611. </p>
  17612. @param e The exception that caused the method to fail.
  17613. @param retries The number of times the method has been retried.
  17614. @return <code>true</code> if the method should be retried,
  17615. <code>false</code> if the method should not be retried
  17616. but shouldn't fail with an exception (only for void methods).
  17617. @throws Exception The re-thrown exception <code>e</code> indicating
  17618. that the method failed and should not be retried further.]]>
  17619. </doc>
  17620. </method>
  17621. <doc>
  17622. <![CDATA[<p>
  17623. Specifies a policy for retrying method failures.
  17624. Implementations of this interface should be immutable.
  17625. </p>]]>
  17626. </doc>
  17627. </interface>
  17628. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  17629. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  17630. <class name="RetryProxy" extends="java.lang.Object"
  17631. abstract="false"
  17632. static="false" final="false" visibility="public"
  17633. deprecated="not deprecated">
  17634. <constructor name="RetryProxy"
  17635. static="false" final="false" visibility="public"
  17636. deprecated="not deprecated">
  17637. </constructor>
  17638. <method name="create" return="java.lang.Object"
  17639. abstract="false" native="false" synchronized="false"
  17640. static="true" final="false" visibility="public"
  17641. deprecated="not deprecated">
  17642. <param name="iface" type="java.lang.Class"/>
  17643. <param name="implementation" type="java.lang.Object"/>
  17644. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  17645. <doc>
  17646. <![CDATA[<p>
  17647. Create a proxy for an interface of an implementation class
  17648. using the same retry policy for each method in the interface.
  17649. </p>
  17650. @param iface the interface that the retry will implement
  17651. @param implementation the instance whose methods should be retried
  17652. @param retryPolicy the policy for retirying method call failures
  17653. @return the retry proxy]]>
  17654. </doc>
  17655. </method>
  17656. <method name="create" return="java.lang.Object"
  17657. abstract="false" native="false" synchronized="false"
  17658. static="true" final="false" visibility="public"
  17659. deprecated="not deprecated">
  17660. <param name="iface" type="java.lang.Class"/>
  17661. <param name="implementation" type="java.lang.Object"/>
  17662. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  17663. <doc>
  17664. <![CDATA[<p>
  17665. Create a proxy for an interface of an implementation class
  17666. using the a set of retry policies specified by method name.
  17667. If no retry policy is defined for a method then a default of
  17668. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  17669. </p>
  17670. @param iface the interface that the retry will implement
  17671. @param implementation the instance whose methods should be retried
  17672. @param methodNameToPolicyMap a map of method names to retry policies
  17673. @return the retry proxy]]>
  17674. </doc>
  17675. </method>
  17676. <doc>
  17677. <![CDATA[<p>
  17678. A factory for creating retry proxies.
  17679. </p>]]>
  17680. </doc>
  17681. </class>
  17682. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  17683. <doc>
  17684. <![CDATA[<p>
  17685. A mechanism for selectively retrying methods that throw exceptions under certain circumstances.
  17686. </p>
  17687. <p>
  17688. Typical usage is
  17689. </p>
  17690. <pre>
  17691. UnreliableImplementation unreliableImpl = new UnreliableImplementation();
  17692. UnreliableInterface unreliable = (UnreliableInterface)
  17693. RetryProxy.create(UnreliableInterface.class, unreliableImpl,
  17694. RetryPolicies.retryUpToMaximumCountWithFixedSleep(4, 10, TimeUnit.SECONDS));
  17695. unreliable.call();
  17696. </pre>
  17697. <p>
  17698. This will retry any method called on <code>unreliable</code> four times - in this case the <code>call()</code>
  17699. method - sleeping 10 seconds between
  17700. each retry. There are a number of {@link org.apache.hadoop.io.retry.RetryPolicies retry policies}
  17701. available, or you can implement a custom one by implementing {@link org.apache.hadoop.io.retry.RetryPolicy}.
  17702. It is also possible to specify retry policies on a
  17703. {@link org.apache.hadoop.io.retry.RetryProxy#create(Class, Object, Map) per-method basis}.
  17704. </p>]]>
  17705. </doc>
  17706. </package>
  17707. <package name="org.apache.hadoop.io.serializer">
  17708. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  17709. <interface name="Deserializer" abstract="true"
  17710. static="false" final="false" visibility="public"
  17711. deprecated="not deprecated">
  17712. <method name="open"
  17713. abstract="false" native="false" synchronized="false"
  17714. static="false" final="false" visibility="public"
  17715. deprecated="not deprecated">
  17716. <param name="in" type="java.io.InputStream"/>
  17717. <exception name="IOException" type="java.io.IOException"/>
  17718. <doc>
  17719. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  17720. </doc>
  17721. </method>
  17722. <method name="deserialize" return="java.lang.Object"
  17723. abstract="false" native="false" synchronized="false"
  17724. static="false" final="false" visibility="public"
  17725. deprecated="not deprecated">
  17726. <param name="t" type="java.lang.Object"/>
  17727. <exception name="IOException" type="java.io.IOException"/>
  17728. <doc>
  17729. <![CDATA[<p>
  17730. Deserialize the next object from the underlying input stream.
  17731. If the object <code>t</code> is non-null then this deserializer
  17732. <i>may</i> set its internal state to the next object read from the input
  17733. stream. Otherwise, if the object <code>t</code> is null a new
  17734. deserialized object will be created.
  17735. </p>
  17736. @return the deserialized object]]>
  17737. </doc>
  17738. </method>
  17739. <method name="close"
  17740. abstract="false" native="false" synchronized="false"
  17741. static="false" final="false" visibility="public"
  17742. deprecated="not deprecated">
  17743. <exception name="IOException" type="java.io.IOException"/>
  17744. <doc>
  17745. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  17746. </doc>
  17747. </method>
  17748. <doc>
  17749. <![CDATA[<p>
  17750. Provides a facility for deserializing objects of type <T> from an
  17751. {@link InputStream}.
  17752. </p>
  17753. <p>
  17754. Deserializers are stateful, but must not buffer the input since
  17755. other producers may read from the input between calls to
  17756. {@link #deserialize(Object)}.
  17757. </p>
  17758. @param <T>]]>
  17759. </doc>
  17760. </interface>
  17761. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  17762. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  17763. <class name="DeserializerComparator" extends="java.lang.Object"
  17764. abstract="true"
  17765. static="false" final="false" visibility="public"
  17766. deprecated="not deprecated">
  17767. <implements name="org.apache.hadoop.io.RawComparator"/>
  17768. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  17769. static="false" final="false" visibility="protected"
  17770. deprecated="not deprecated">
  17771. <exception name="IOException" type="java.io.IOException"/>
  17772. </constructor>
  17773. <method name="compare" return="int"
  17774. abstract="false" native="false" synchronized="false"
  17775. static="false" final="false" visibility="public"
  17776. deprecated="not deprecated">
  17777. <param name="b1" type="byte[]"/>
  17778. <param name="s1" type="int"/>
  17779. <param name="l1" type="int"/>
  17780. <param name="b2" type="byte[]"/>
  17781. <param name="s2" type="int"/>
  17782. <param name="l2" type="int"/>
  17783. </method>
  17784. <doc>
  17785. <![CDATA[<p>
  17786. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  17787. the objects to be compared so that the standard {@link Comparator} can
  17788. be used to compare them.
  17789. </p>
  17790. <p>
  17791. One may optimize compare-intensive operations by using a custom
  17792. implementation of {@link RawComparator} that operates directly
  17793. on byte representations.
  17794. </p>
  17795. @param <T>]]>
  17796. </doc>
  17797. </class>
  17798. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  17799. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  17800. <class name="JavaSerialization" extends="java.lang.Object"
  17801. abstract="false"
  17802. static="false" final="false" visibility="public"
  17803. deprecated="not deprecated">
  17804. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  17805. <constructor name="JavaSerialization"
  17806. static="false" final="false" visibility="public"
  17807. deprecated="not deprecated">
  17808. </constructor>
  17809. <method name="accept" return="boolean"
  17810. abstract="false" native="false" synchronized="false"
  17811. static="false" final="false" visibility="public"
  17812. deprecated="not deprecated">
  17813. <param name="c" type="java.lang.Class"/>
  17814. </method>
  17815. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  17816. abstract="false" native="false" synchronized="false"
  17817. static="false" final="false" visibility="public"
  17818. deprecated="not deprecated">
  17819. <param name="c" type="java.lang.Class"/>
  17820. </method>
  17821. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  17822. abstract="false" native="false" synchronized="false"
  17823. static="false" final="false" visibility="public"
  17824. deprecated="not deprecated">
  17825. <param name="c" type="java.lang.Class"/>
  17826. </method>
  17827. <doc>
  17828. <![CDATA[<p>
  17829. An experimental {@link Serialization} for Java {@link Serializable} classes.
  17830. </p>
  17831. @see JavaSerializationComparator]]>
  17832. </doc>
  17833. </class>
  17834. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  17835. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  17836. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  17837. abstract="false"
  17838. static="false" final="false" visibility="public"
  17839. deprecated="not deprecated">
  17840. <constructor name="JavaSerializationComparator"
  17841. static="false" final="false" visibility="public"
  17842. deprecated="not deprecated">
  17843. <exception name="IOException" type="java.io.IOException"/>
  17844. </constructor>
  17845. <method name="compare" return="int"
  17846. abstract="false" native="false" synchronized="false"
  17847. static="false" final="false" visibility="public"
  17848. deprecated="not deprecated">
  17849. <param name="o1" type="java.io.Serializable"/>
  17850. <param name="o2" type="java.io.Serializable"/>
  17851. </method>
  17852. <doc>
  17853. <![CDATA[<p>
  17854. A {@link RawComparator} that uses a {@link JavaSerialization}
  17855. {@link Deserializer} to deserialize objects that are then compared via
  17856. their {@link Comparable} interfaces.
  17857. </p>
  17858. @param <T>
  17859. @see JavaSerialization]]>
  17860. </doc>
  17861. </class>
  17862. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  17863. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  17864. <interface name="Serialization" abstract="true"
  17865. static="false" final="false" visibility="public"
  17866. deprecated="not deprecated">
  17867. <method name="accept" return="boolean"
  17868. abstract="false" native="false" synchronized="false"
  17869. static="false" final="false" visibility="public"
  17870. deprecated="not deprecated">
  17871. <param name="c" type="java.lang.Class"/>
  17872. <doc>
  17873. <![CDATA[Allows clients to test whether this {@link Serialization}
  17874. supports the given class.]]>
  17875. </doc>
  17876. </method>
  17877. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  17878. abstract="false" native="false" synchronized="false"
  17879. static="false" final="false" visibility="public"
  17880. deprecated="not deprecated">
  17881. <param name="c" type="java.lang.Class"/>
  17882. <doc>
  17883. <![CDATA[@return a {@link Serializer} for the given class.]]>
  17884. </doc>
  17885. </method>
  17886. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  17887. abstract="false" native="false" synchronized="false"
  17888. static="false" final="false" visibility="public"
  17889. deprecated="not deprecated">
  17890. <param name="c" type="java.lang.Class"/>
  17891. <doc>
  17892. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  17893. </doc>
  17894. </method>
  17895. <doc>
  17896. <![CDATA[<p>
  17897. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  17898. </p>
  17899. @param <T>]]>
  17900. </doc>
  17901. </interface>
  17902. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  17903. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  17904. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  17905. abstract="false"
  17906. static="false" final="false" visibility="public"
  17907. deprecated="not deprecated">
  17908. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  17909. static="false" final="false" visibility="public"
  17910. deprecated="not deprecated">
  17911. <doc>
  17912. <![CDATA[<p>
  17913. Serializations are found by reading the <code>io.serializations</code>
  17914. property from <code>conf</code>, which is a comma-delimited list of
  17915. classnames.
  17916. </p>]]>
  17917. </doc>
  17918. </constructor>
  17919. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  17920. abstract="false" native="false" synchronized="false"
  17921. static="false" final="false" visibility="public"
  17922. deprecated="not deprecated">
  17923. <param name="c" type="java.lang.Class"/>
  17924. </method>
  17925. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  17926. abstract="false" native="false" synchronized="false"
  17927. static="false" final="false" visibility="public"
  17928. deprecated="not deprecated">
  17929. <param name="c" type="java.lang.Class"/>
  17930. </method>
  17931. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  17932. abstract="false" native="false" synchronized="false"
  17933. static="false" final="false" visibility="public"
  17934. deprecated="not deprecated">
  17935. <param name="c" type="java.lang.Class"/>
  17936. </method>
  17937. <doc>
  17938. <![CDATA[<p>
  17939. A factory for {@link Serialization}s.
  17940. </p>]]>
  17941. </doc>
  17942. </class>
  17943. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  17944. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  17945. <interface name="Serializer" abstract="true"
  17946. static="false" final="false" visibility="public"
  17947. deprecated="not deprecated">
  17948. <method name="open"
  17949. abstract="false" native="false" synchronized="false"
  17950. static="false" final="false" visibility="public"
  17951. deprecated="not deprecated">
  17952. <param name="out" type="java.io.OutputStream"/>
  17953. <exception name="IOException" type="java.io.IOException"/>
  17954. <doc>
  17955. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  17956. </doc>
  17957. </method>
  17958. <method name="serialize"
  17959. abstract="false" native="false" synchronized="false"
  17960. static="false" final="false" visibility="public"
  17961. deprecated="not deprecated">
  17962. <param name="t" type="java.lang.Object"/>
  17963. <exception name="IOException" type="java.io.IOException"/>
  17964. <doc>
  17965. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  17966. </doc>
  17967. </method>
  17968. <method name="close"
  17969. abstract="false" native="false" synchronized="false"
  17970. static="false" final="false" visibility="public"
  17971. deprecated="not deprecated">
  17972. <exception name="IOException" type="java.io.IOException"/>
  17973. <doc>
  17974. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  17975. </doc>
  17976. </method>
  17977. <doc>
  17978. <![CDATA[<p>
  17979. Provides a facility for serializing objects of type <T> to an
  17980. {@link OutputStream}.
  17981. </p>
  17982. <p>
  17983. Serializers are stateful, but must not buffer the output since
  17984. other producers may write to the output between calls to
  17985. {@link #serialize(Object)}.
  17986. </p>
  17987. @param <T>]]>
  17988. </doc>
  17989. </interface>
  17990. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  17991. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  17992. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  17993. abstract="false"
  17994. static="false" final="false" visibility="public"
  17995. deprecated="not deprecated">
  17996. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  17997. <constructor name="WritableSerialization"
  17998. static="false" final="false" visibility="public"
  17999. deprecated="not deprecated">
  18000. </constructor>
  18001. <method name="accept" return="boolean"
  18002. abstract="false" native="false" synchronized="false"
  18003. static="false" final="false" visibility="public"
  18004. deprecated="not deprecated">
  18005. <param name="c" type="java.lang.Class"/>
  18006. </method>
  18007. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  18008. abstract="false" native="false" synchronized="false"
  18009. static="false" final="false" visibility="public"
  18010. deprecated="not deprecated">
  18011. <param name="c" type="java.lang.Class"/>
  18012. </method>
  18013. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  18014. abstract="false" native="false" synchronized="false"
  18015. static="false" final="false" visibility="public"
  18016. deprecated="not deprecated">
  18017. <param name="c" type="java.lang.Class"/>
  18018. </method>
  18019. <doc>
  18020. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  18021. {@link Writable#write(java.io.DataOutput)} and
  18022. {@link Writable#readFields(java.io.DataInput)}.]]>
  18023. </doc>
  18024. </class>
  18025. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  18026. <doc>
  18027. <![CDATA[<p>
  18028. This package provides a mechanism for using different serialization frameworks
  18029. in Hadoop. The property "io.serializations" defines a list of
  18030. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  18031. {@link org.apache.hadoop.io.serializer.Serializer}s and
  18032. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  18033. </p>
  18034. <p>
  18035. To add a new serialization framework write an implementation of
  18036. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  18037. "io.serializations" property.
  18038. </p>]]>
  18039. </doc>
  18040. </package>
  18041. <package name="org.apache.hadoop.ipc">
  18042. <!-- start class org.apache.hadoop.ipc.Client -->
  18043. <class name="Client" extends="java.lang.Object"
  18044. abstract="false"
  18045. static="false" final="false" visibility="public"
  18046. deprecated="not deprecated">
  18047. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  18048. static="false" final="false" visibility="public"
  18049. deprecated="not deprecated">
  18050. <doc>
  18051. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  18052. class.]]>
  18053. </doc>
  18054. </constructor>
  18055. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  18056. static="false" final="false" visibility="public"
  18057. deprecated="not deprecated">
  18058. <doc>
  18059. <![CDATA[Construct an IPC client with the default SocketFactory
  18060. @param valueClass
  18061. @param conf]]>
  18062. </doc>
  18063. </constructor>
  18064. <method name="setPingInterval"
  18065. abstract="false" native="false" synchronized="false"
  18066. static="true" final="true" visibility="public"
  18067. deprecated="not deprecated">
  18068. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18069. <param name="pingInterval" type="int"/>
  18070. <doc>
  18071. <![CDATA[set the ping interval value in configuration
  18072. @param conf Configuration
  18073. @param pingInterval the ping interval]]>
  18074. </doc>
  18075. </method>
  18076. <method name="stop"
  18077. abstract="false" native="false" synchronized="false"
  18078. static="false" final="false" visibility="public"
  18079. deprecated="not deprecated">
  18080. <doc>
  18081. <![CDATA[Stop all threads related to this client. No further calls may be made
  18082. using this client.]]>
  18083. </doc>
  18084. </method>
  18085. <method name="call" return="org.apache.hadoop.io.Writable"
  18086. abstract="false" native="false" synchronized="false"
  18087. static="false" final="false" visibility="public"
  18088. deprecated="Use {@link #call(Writable, InetSocketAddress, Class, UserGroupInformation)} instead">
  18089. <param name="param" type="org.apache.hadoop.io.Writable"/>
  18090. <param name="address" type="java.net.InetSocketAddress"/>
  18091. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  18092. <exception name="IOException" type="java.io.IOException"/>
  18093. <doc>
  18094. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  18095. <code>address</code>, returning the value. Throws exceptions if there are
  18096. network problems or if the remote code threw an exception.
  18097. @deprecated Use {@link #call(Writable, InetSocketAddress, Class, UserGroupInformation)} instead]]>
  18098. </doc>
  18099. </method>
  18100. <method name="call" return="org.apache.hadoop.io.Writable"
  18101. abstract="false" native="false" synchronized="false"
  18102. static="false" final="false" visibility="public"
  18103. deprecated="Use {@link #call(Writable, InetSocketAddress, Class, UserGroupInformation)} instead">
  18104. <param name="param" type="org.apache.hadoop.io.Writable"/>
  18105. <param name="addr" type="java.net.InetSocketAddress"/>
  18106. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  18107. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  18108. <exception name="IOException" type="java.io.IOException"/>
  18109. <doc>
  18110. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  18111. <code>address</code> with the <code>ticket</code> credentials, returning
  18112. the value.
  18113. Throws exceptions if there are network problems or if the remote code
  18114. threw an exception.
  18115. @deprecated Use {@link #call(Writable, InetSocketAddress, Class, UserGroupInformation)} instead]]>
  18116. </doc>
  18117. </method>
  18118. <method name="call" return="org.apache.hadoop.io.Writable"
  18119. abstract="false" native="false" synchronized="false"
  18120. static="false" final="false" visibility="public"
  18121. deprecated="not deprecated">
  18122. <param name="param" type="org.apache.hadoop.io.Writable"/>
  18123. <param name="addr" type="java.net.InetSocketAddress"/>
  18124. <param name="protocol" type="java.lang.Class"/>
  18125. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  18126. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  18127. <exception name="IOException" type="java.io.IOException"/>
  18128. <doc>
  18129. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  18130. <code>address</code> which is servicing the <code>protocol</code> protocol,
  18131. with the <code>ticket</code> credentials, returning the value.
  18132. Throws exceptions if there are network problems or if the remote code
  18133. threw an exception.]]>
  18134. </doc>
  18135. </method>
  18136. <method name="call" return="org.apache.hadoop.io.Writable[]"
  18137. abstract="false" native="false" synchronized="false"
  18138. static="false" final="false" visibility="public"
  18139. deprecated="Use {@link #call(Writable[], InetSocketAddress[], Class, UserGroupInformation)} instead">
  18140. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  18141. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  18142. <exception name="IOException" type="java.io.IOException"/>
  18143. <doc>
  18144. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  18145. corresponding address. When all values are available, or have timed out
  18146. or errored, the collected results are returned in an array. The array
  18147. contains nulls for calls that timed out or errored.
  18148. @deprecated Use {@link #call(Writable[], InetSocketAddress[], Class, UserGroupInformation)} instead]]>
  18149. </doc>
  18150. </method>
  18151. <method name="call" return="org.apache.hadoop.io.Writable[]"
  18152. abstract="false" native="false" synchronized="false"
  18153. static="false" final="false" visibility="public"
  18154. deprecated="not deprecated">
  18155. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  18156. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  18157. <param name="protocol" type="java.lang.Class"/>
  18158. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  18159. <exception name="IOException" type="java.io.IOException"/>
  18160. <doc>
  18161. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  18162. corresponding address. When all values are available, or have timed out
  18163. or errored, the collected results are returned in an array. The array
  18164. contains nulls for calls that timed out or errored.]]>
  18165. </doc>
  18166. </method>
  18167. <field name="LOG" type="org.apache.commons.logging.Log"
  18168. transient="false" volatile="false"
  18169. static="true" final="true" visibility="public"
  18170. deprecated="not deprecated">
  18171. </field>
  18172. <doc>
  18173. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  18174. parameter, and return a {@link Writable} as their value. A service runs on
  18175. a port and is defined by a parameter class and a value class.
  18176. @see Server]]>
  18177. </doc>
  18178. </class>
  18179. <!-- end class org.apache.hadoop.ipc.Client -->
  18180. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  18181. <class name="RemoteException" extends="java.io.IOException"
  18182. abstract="false"
  18183. static="false" final="false" visibility="public"
  18184. deprecated="not deprecated">
  18185. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  18186. static="false" final="false" visibility="public"
  18187. deprecated="not deprecated">
  18188. </constructor>
  18189. <method name="getClassName" return="java.lang.String"
  18190. abstract="false" native="false" synchronized="false"
  18191. static="false" final="false" visibility="public"
  18192. deprecated="not deprecated">
  18193. </method>
  18194. <method name="unwrapRemoteException" return="java.io.IOException"
  18195. abstract="false" native="false" synchronized="false"
  18196. static="false" final="false" visibility="public"
  18197. deprecated="not deprecated">
  18198. <param name="lookupTypes" type="java.lang.Class[]"/>
  18199. <doc>
  18200. <![CDATA[If this remote exception wraps up one of the lookupTypes
  18201. then return this exception.
  18202. <p>
  18203. Unwraps any IOException.
  18204. @param lookupTypes the desired exception class.
  18205. @return IOException, which is either the lookupClass exception or this.]]>
  18206. </doc>
  18207. </method>
  18208. <method name="unwrapRemoteException" return="java.io.IOException"
  18209. abstract="false" native="false" synchronized="false"
  18210. static="false" final="false" visibility="public"
  18211. deprecated="not deprecated">
  18212. <doc>
  18213. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  18214. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  18215. a <code>String</code> as a parameter.
  18216. Otherwise it returns this.
  18217. @return <code>Throwable]]>
  18218. </doc>
  18219. </method>
  18220. <method name="writeXml"
  18221. abstract="false" native="false" synchronized="false"
  18222. static="false" final="false" visibility="public"
  18223. deprecated="not deprecated">
  18224. <param name="path" type="java.lang.String"/>
  18225. <param name="doc" type="org.znerd.xmlenc.XMLOutputter"/>
  18226. <exception name="IOException" type="java.io.IOException"/>
  18227. <doc>
  18228. <![CDATA[Write the object to XML format]]>
  18229. </doc>
  18230. </method>
  18231. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  18232. abstract="false" native="false" synchronized="false"
  18233. static="true" final="false" visibility="public"
  18234. deprecated="not deprecated">
  18235. <param name="attrs" type="org.xml.sax.Attributes"/>
  18236. <doc>
  18237. <![CDATA[Create RemoteException from attributes]]>
  18238. </doc>
  18239. </method>
  18240. </class>
  18241. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  18242. <!-- start class org.apache.hadoop.ipc.RPC -->
  18243. <class name="RPC" extends="java.lang.Object"
  18244. abstract="false"
  18245. static="false" final="false" visibility="public"
  18246. deprecated="not deprecated">
  18247. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  18248. abstract="false" native="false" synchronized="false"
  18249. static="true" final="false" visibility="public"
  18250. deprecated="not deprecated">
  18251. <param name="protocol" type="java.lang.Class"/>
  18252. <param name="clientVersion" type="long"/>
  18253. <param name="addr" type="java.net.InetSocketAddress"/>
  18254. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18255. <exception name="IOException" type="java.io.IOException"/>
  18256. </method>
  18257. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  18258. abstract="false" native="false" synchronized="false"
  18259. static="true" final="false" visibility="public"
  18260. deprecated="not deprecated">
  18261. <param name="protocol" type="java.lang.Class"/>
  18262. <param name="clientVersion" type="long"/>
  18263. <param name="addr" type="java.net.InetSocketAddress"/>
  18264. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18265. <param name="factory" type="javax.net.SocketFactory"/>
  18266. <exception name="IOException" type="java.io.IOException"/>
  18267. <doc>
  18268. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  18269. talking to a server at the named address.]]>
  18270. </doc>
  18271. </method>
  18272. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  18273. abstract="false" native="false" synchronized="false"
  18274. static="true" final="false" visibility="public"
  18275. deprecated="not deprecated">
  18276. <param name="protocol" type="java.lang.Class"/>
  18277. <param name="clientVersion" type="long"/>
  18278. <param name="addr" type="java.net.InetSocketAddress"/>
  18279. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  18280. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18281. <param name="factory" type="javax.net.SocketFactory"/>
  18282. <exception name="IOException" type="java.io.IOException"/>
  18283. <doc>
  18284. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  18285. talking to a server at the named address.]]>
  18286. </doc>
  18287. </method>
  18288. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  18289. abstract="false" native="false" synchronized="false"
  18290. static="true" final="false" visibility="public"
  18291. deprecated="not deprecated">
  18292. <param name="protocol" type="java.lang.Class"/>
  18293. <param name="clientVersion" type="long"/>
  18294. <param name="addr" type="java.net.InetSocketAddress"/>
  18295. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18296. <exception name="IOException" type="java.io.IOException"/>
  18297. <doc>
  18298. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  18299. @param protocol
  18300. @param clientVersion
  18301. @param addr
  18302. @param conf
  18303. @return a proxy instance
  18304. @throws IOException]]>
  18305. </doc>
  18306. </method>
  18307. <method name="stopProxy"
  18308. abstract="false" native="false" synchronized="false"
  18309. static="true" final="false" visibility="public"
  18310. deprecated="not deprecated">
  18311. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  18312. <doc>
  18313. <![CDATA[Stop this proxy and release its invoker's resource
  18314. @param proxy the proxy to be stopped]]>
  18315. </doc>
  18316. </method>
  18317. <method name="call" return="java.lang.Object[]"
  18318. abstract="false" native="false" synchronized="false"
  18319. static="true" final="false" visibility="public"
  18320. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  18321. <param name="method" type="java.lang.reflect.Method"/>
  18322. <param name="params" type="java.lang.Object[][]"/>
  18323. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  18324. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18325. <exception name="IOException" type="java.io.IOException"/>
  18326. <doc>
  18327. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  18328. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  18329. </doc>
  18330. </method>
  18331. <method name="call" return="java.lang.Object[]"
  18332. abstract="false" native="false" synchronized="false"
  18333. static="true" final="false" visibility="public"
  18334. deprecated="not deprecated">
  18335. <param name="method" type="java.lang.reflect.Method"/>
  18336. <param name="params" type="java.lang.Object[][]"/>
  18337. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  18338. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  18339. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18340. <exception name="IOException" type="java.io.IOException"/>
  18341. <doc>
  18342. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  18343. </doc>
  18344. </method>
  18345. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  18346. abstract="false" native="false" synchronized="false"
  18347. static="true" final="false" visibility="public"
  18348. deprecated="not deprecated">
  18349. <param name="instance" type="java.lang.Object"/>
  18350. <param name="bindAddress" type="java.lang.String"/>
  18351. <param name="port" type="int"/>
  18352. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18353. <exception name="IOException" type="java.io.IOException"/>
  18354. <doc>
  18355. <![CDATA[Construct a server for a protocol implementation instance listening on a
  18356. port and address.]]>
  18357. </doc>
  18358. </method>
  18359. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  18360. abstract="false" native="false" synchronized="false"
  18361. static="true" final="false" visibility="public"
  18362. deprecated="not deprecated">
  18363. <param name="instance" type="java.lang.Object"/>
  18364. <param name="bindAddress" type="java.lang.String"/>
  18365. <param name="port" type="int"/>
  18366. <param name="numHandlers" type="int"/>
  18367. <param name="verbose" type="boolean"/>
  18368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18369. <exception name="IOException" type="java.io.IOException"/>
  18370. <doc>
  18371. <![CDATA[Construct a server for a protocol implementation instance listening on a
  18372. port and address.]]>
  18373. </doc>
  18374. </method>
  18375. <doc>
  18376. <![CDATA[A simple RPC mechanism.
  18377. A <i>protocol</i> is a Java interface. All parameters and return types must
  18378. be one of:
  18379. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  18380. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  18381. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  18382. <li>a {@link String}; or</li>
  18383. <li>a {@link Writable}; or</li>
  18384. <li>an array of the above types</li> </ul>
  18385. All methods in the protocol should throw only IOException. No field data of
  18386. the protocol instance is transmitted.]]>
  18387. </doc>
  18388. </class>
  18389. <!-- end class org.apache.hadoop.ipc.RPC -->
  18390. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  18391. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  18392. abstract="false"
  18393. static="true" final="false" visibility="public"
  18394. deprecated="not deprecated">
  18395. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  18396. static="false" final="false" visibility="public"
  18397. deprecated="not deprecated">
  18398. <exception name="IOException" type="java.io.IOException"/>
  18399. <doc>
  18400. <![CDATA[Construct an RPC server.
  18401. @param instance the instance whose methods will be called
  18402. @param conf the configuration to use
  18403. @param bindAddress the address to bind on to listen for connection
  18404. @param port the port to listen for connections on]]>
  18405. </doc>
  18406. </constructor>
  18407. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int, int, boolean"
  18408. static="false" final="false" visibility="public"
  18409. deprecated="not deprecated">
  18410. <exception name="IOException" type="java.io.IOException"/>
  18411. <doc>
  18412. <![CDATA[Construct an RPC server.
  18413. @param instance the instance whose methods will be called
  18414. @param conf the configuration to use
  18415. @param bindAddress the address to bind on to listen for connection
  18416. @param port the port to listen for connections on
  18417. @param numHandlers the number of method handler threads to run
  18418. @param verbose whether each call should be logged]]>
  18419. </doc>
  18420. </constructor>
  18421. <method name="call" return="org.apache.hadoop.io.Writable"
  18422. abstract="false" native="false" synchronized="false"
  18423. static="false" final="false" visibility="public"
  18424. deprecated="not deprecated">
  18425. <param name="protocol" type="java.lang.Class"/>
  18426. <param name="param" type="org.apache.hadoop.io.Writable"/>
  18427. <param name="receivedTime" type="long"/>
  18428. <exception name="IOException" type="java.io.IOException"/>
  18429. </method>
  18430. <method name="authorize"
  18431. abstract="false" native="false" synchronized="false"
  18432. static="false" final="false" visibility="public"
  18433. deprecated="not deprecated">
  18434. <param name="user" type="javax.security.auth.Subject"/>
  18435. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  18436. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  18437. </method>
  18438. <doc>
  18439. <![CDATA[An RPC Server.]]>
  18440. </doc>
  18441. </class>
  18442. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  18443. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  18444. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  18445. abstract="false"
  18446. static="true" final="false" visibility="public"
  18447. deprecated="not deprecated">
  18448. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  18449. static="false" final="false" visibility="public"
  18450. deprecated="not deprecated">
  18451. <doc>
  18452. <![CDATA[Create a version mismatch exception
  18453. @param interfaceName the name of the protocol mismatch
  18454. @param clientVersion the client's version of the protocol
  18455. @param serverVersion the server's version of the protocol]]>
  18456. </doc>
  18457. </constructor>
  18458. <method name="getInterfaceName" return="java.lang.String"
  18459. abstract="false" native="false" synchronized="false"
  18460. static="false" final="false" visibility="public"
  18461. deprecated="not deprecated">
  18462. <doc>
  18463. <![CDATA[Get the interface name
  18464. @return the java class name
  18465. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  18466. </doc>
  18467. </method>
  18468. <method name="getClientVersion" return="long"
  18469. abstract="false" native="false" synchronized="false"
  18470. static="false" final="false" visibility="public"
  18471. deprecated="not deprecated">
  18472. <doc>
  18473. <![CDATA[Get the client's preferred version]]>
  18474. </doc>
  18475. </method>
  18476. <method name="getServerVersion" return="long"
  18477. abstract="false" native="false" synchronized="false"
  18478. static="false" final="false" visibility="public"
  18479. deprecated="not deprecated">
  18480. <doc>
  18481. <![CDATA[Get the server's agreed to version.]]>
  18482. </doc>
  18483. </method>
  18484. <doc>
  18485. <![CDATA[A version mismatch for the RPC protocol.]]>
  18486. </doc>
  18487. </class>
  18488. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  18489. <!-- start class org.apache.hadoop.ipc.Server -->
  18490. <class name="Server" extends="java.lang.Object"
  18491. abstract="true"
  18492. static="false" final="false" visibility="public"
  18493. deprecated="not deprecated">
  18494. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  18495. static="false" final="false" visibility="protected"
  18496. deprecated="not deprecated">
  18497. <exception name="IOException" type="java.io.IOException"/>
  18498. </constructor>
  18499. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  18500. static="false" final="false" visibility="protected"
  18501. deprecated="not deprecated">
  18502. <exception name="IOException" type="java.io.IOException"/>
  18503. <doc>
  18504. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  18505. be of the named class. The <code>handlerCount</handlerCount> determines
  18506. the number of handler threads that will be used to process calls.]]>
  18507. </doc>
  18508. </constructor>
  18509. <method name="get" return="org.apache.hadoop.ipc.Server"
  18510. abstract="false" native="false" synchronized="false"
  18511. static="true" final="false" visibility="public"
  18512. deprecated="not deprecated">
  18513. <doc>
  18514. <![CDATA[Returns the server instance called under or null. May be called under
  18515. {@link #call(Writable, long)} implementations, and under {@link Writable}
  18516. methods of paramters and return values. Permits applications to access
  18517. the server context.]]>
  18518. </doc>
  18519. </method>
  18520. <method name="getRemoteIp" return="java.net.InetAddress"
  18521. abstract="false" native="false" synchronized="false"
  18522. static="true" final="false" visibility="public"
  18523. deprecated="not deprecated">
  18524. <doc>
  18525. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  18526. Returns null incase of an error.]]>
  18527. </doc>
  18528. </method>
  18529. <method name="getRemoteAddress" return="java.lang.String"
  18530. abstract="false" native="false" synchronized="false"
  18531. static="true" final="false" visibility="public"
  18532. deprecated="not deprecated">
  18533. <doc>
  18534. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  18535. Returns null in case of an error.]]>
  18536. </doc>
  18537. </method>
  18538. <method name="bind"
  18539. abstract="false" native="false" synchronized="false"
  18540. static="true" final="false" visibility="public"
  18541. deprecated="not deprecated">
  18542. <param name="socket" type="java.net.ServerSocket"/>
  18543. <param name="address" type="java.net.InetSocketAddress"/>
  18544. <param name="backlog" type="int"/>
  18545. <exception name="IOException" type="java.io.IOException"/>
  18546. <doc>
  18547. <![CDATA[A convenience method to bind to a given address and report
  18548. better exceptions if the address is not a valid host.
  18549. @param socket the socket to bind
  18550. @param address the address to bind to
  18551. @param backlog the number of connections allowed in the queue
  18552. @throws BindException if the address can't be bound
  18553. @throws UnknownHostException if the address isn't a valid host name
  18554. @throws IOException other random errors from bind]]>
  18555. </doc>
  18556. </method>
  18557. <method name="setSocketSendBufSize"
  18558. abstract="false" native="false" synchronized="false"
  18559. static="false" final="false" visibility="public"
  18560. deprecated="not deprecated">
  18561. <param name="size" type="int"/>
  18562. <doc>
  18563. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  18564. </doc>
  18565. </method>
  18566. <method name="start"
  18567. abstract="false" native="false" synchronized="true"
  18568. static="false" final="false" visibility="public"
  18569. deprecated="not deprecated">
  18570. <exception name="IOException" type="java.io.IOException"/>
  18571. <doc>
  18572. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  18573. </doc>
  18574. </method>
  18575. <method name="stop"
  18576. abstract="false" native="false" synchronized="true"
  18577. static="false" final="false" visibility="public"
  18578. deprecated="not deprecated">
  18579. <doc>
  18580. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  18581. </doc>
  18582. </method>
  18583. <method name="join"
  18584. abstract="false" native="false" synchronized="true"
  18585. static="false" final="false" visibility="public"
  18586. deprecated="not deprecated">
  18587. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  18588. <doc>
  18589. <![CDATA[Wait for the server to be stopped.
  18590. Does not wait for all subthreads to finish.
  18591. See {@link #stop()}.]]>
  18592. </doc>
  18593. </method>
  18594. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  18595. abstract="false" native="false" synchronized="true"
  18596. static="false" final="false" visibility="public"
  18597. deprecated="not deprecated">
  18598. <doc>
  18599. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  18600. @return the socket (ip+port) on which the RPC server is listening to.]]>
  18601. </doc>
  18602. </method>
  18603. <method name="call" return="org.apache.hadoop.io.Writable"
  18604. abstract="false" native="false" synchronized="false"
  18605. static="false" final="false" visibility="public"
  18606. deprecated="Use {@link #call(Class, Writable, long)} instead">
  18607. <param name="param" type="org.apache.hadoop.io.Writable"/>
  18608. <param name="receiveTime" type="long"/>
  18609. <exception name="IOException" type="java.io.IOException"/>
  18610. <doc>
  18611. <![CDATA[Called for each call.
  18612. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  18613. </doc>
  18614. </method>
  18615. <method name="call" return="org.apache.hadoop.io.Writable"
  18616. abstract="true" native="false" synchronized="false"
  18617. static="false" final="false" visibility="public"
  18618. deprecated="not deprecated">
  18619. <param name="protocol" type="java.lang.Class"/>
  18620. <param name="param" type="org.apache.hadoop.io.Writable"/>
  18621. <param name="receiveTime" type="long"/>
  18622. <exception name="IOException" type="java.io.IOException"/>
  18623. <doc>
  18624. <![CDATA[Called for each call.]]>
  18625. </doc>
  18626. </method>
  18627. <method name="authorize"
  18628. abstract="false" native="false" synchronized="false"
  18629. static="false" final="false" visibility="public"
  18630. deprecated="not deprecated">
  18631. <param name="user" type="javax.security.auth.Subject"/>
  18632. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  18633. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  18634. <doc>
  18635. <![CDATA[Authorize the incoming client connection.
  18636. @param user client user
  18637. @param connection incoming connection
  18638. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  18639. </doc>
  18640. </method>
  18641. <method name="getNumOpenConnections" return="int"
  18642. abstract="false" native="false" synchronized="false"
  18643. static="false" final="false" visibility="public"
  18644. deprecated="not deprecated">
  18645. <doc>
  18646. <![CDATA[The number of open RPC conections
  18647. @return the number of open rpc connections]]>
  18648. </doc>
  18649. </method>
  18650. <method name="getCallQueueLen" return="int"
  18651. abstract="false" native="false" synchronized="false"
  18652. static="false" final="false" visibility="public"
  18653. deprecated="not deprecated">
  18654. <doc>
  18655. <![CDATA[The number of rpc calls in the queue.
  18656. @return The number of rpc calls in the queue.]]>
  18657. </doc>
  18658. </method>
  18659. <field name="HEADER" type="java.nio.ByteBuffer"
  18660. transient="false" volatile="false"
  18661. static="true" final="true" visibility="public"
  18662. deprecated="not deprecated">
  18663. <doc>
  18664. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  18665. </doc>
  18666. </field>
  18667. <field name="CURRENT_VERSION" type="byte"
  18668. transient="false" volatile="false"
  18669. static="true" final="true" visibility="public"
  18670. deprecated="not deprecated">
  18671. </field>
  18672. <field name="LOG" type="org.apache.commons.logging.Log"
  18673. transient="false" volatile="false"
  18674. static="true" final="true" visibility="public"
  18675. deprecated="not deprecated">
  18676. </field>
  18677. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcMetrics"
  18678. transient="false" volatile="false"
  18679. static="false" final="false" visibility="protected"
  18680. deprecated="not deprecated">
  18681. </field>
  18682. <doc>
  18683. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  18684. parameter, and return a {@link Writable} as their value. A service runs on
  18685. a port and is defined by a parameter class and a value class.
  18686. @see Client]]>
  18687. </doc>
  18688. </class>
  18689. <!-- end class org.apache.hadoop.ipc.Server -->
  18690. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  18691. <interface name="VersionedProtocol" abstract="true"
  18692. static="false" final="false" visibility="public"
  18693. deprecated="not deprecated">
  18694. <method name="getProtocolVersion" return="long"
  18695. abstract="false" native="false" synchronized="false"
  18696. static="false" final="false" visibility="public"
  18697. deprecated="not deprecated">
  18698. <param name="protocol" type="java.lang.String"/>
  18699. <param name="clientVersion" type="long"/>
  18700. <exception name="IOException" type="java.io.IOException"/>
  18701. <doc>
  18702. <![CDATA[Return protocol version corresponding to protocol interface.
  18703. @param protocol The classname of the protocol interface
  18704. @param clientVersion The version of the protocol that the client speaks
  18705. @return the version that the server will speak]]>
  18706. </doc>
  18707. </method>
  18708. <doc>
  18709. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  18710. Subclasses of this interface are also supposed to have
  18711. a static final long versionID field.]]>
  18712. </doc>
  18713. </interface>
  18714. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  18715. <doc>
  18716. <![CDATA[Tools to help define network clients and servers.]]>
  18717. </doc>
  18718. </package>
  18719. <package name="org.apache.hadoop.ipc.metrics">
  18720. <!-- start class org.apache.hadoop.ipc.metrics.RpcActivityMBean -->
  18721. <class name="RpcActivityMBean" extends="org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase"
  18722. abstract="false"
  18723. static="false" final="false" visibility="public"
  18724. deprecated="not deprecated">
  18725. <constructor name="RpcActivityMBean" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String, java.lang.String"
  18726. static="false" final="false" visibility="public"
  18727. deprecated="not deprecated">
  18728. <doc>
  18729. <![CDATA[@param mr - the metrics registry that has all the metrics
  18730. @param serviceName - the service name for the rpc service
  18731. @param port - the rpc port.]]>
  18732. </doc>
  18733. </constructor>
  18734. <method name="shutdown"
  18735. abstract="false" native="false" synchronized="false"
  18736. static="false" final="false" visibility="public"
  18737. deprecated="not deprecated">
  18738. </method>
  18739. <doc>
  18740. <![CDATA[This is the JMX MBean for reporting the RPC layer Activity.
  18741. The MBean is register using the name
  18742. "hadoop:service=<RpcServiceName>,name=RpcActivityForPort<port>"
  18743. Many of the activity metrics are sampled and averaged on an interval
  18744. which can be specified in the metrics config file.
  18745. <p>
  18746. For the metrics that are sampled and averaged, one must specify
  18747. a metrics context that does periodic update calls. Most metrics contexts do.
  18748. The default Null metrics context however does NOT. So if you aren't
  18749. using any other metrics context then you can turn on the viewing and averaging
  18750. of sampled metrics by specifying the following two lines
  18751. in the hadoop-meterics.properties file:
  18752. <pre>
  18753. rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  18754. rpc.period=10
  18755. </pre>
  18756. <p>
  18757. Note that the metrics are collected regardless of the context used.
  18758. The context with the update thread is used to average the data periodically
  18759. Impl details: We use a dynamic mbean that gets the list of the metrics
  18760. from the metrics registry passed as an argument to the constructor]]>
  18761. </doc>
  18762. </class>
  18763. <!-- end class org.apache.hadoop.ipc.metrics.RpcActivityMBean -->
  18764. <!-- start class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  18765. <class name="RpcMetrics" extends="java.lang.Object"
  18766. abstract="false"
  18767. static="false" final="false" visibility="public"
  18768. deprecated="not deprecated">
  18769. <implements name="org.apache.hadoop.metrics.Updater"/>
  18770. <constructor name="RpcMetrics" type="java.lang.String, java.lang.String, org.apache.hadoop.ipc.Server"
  18771. static="false" final="false" visibility="public"
  18772. deprecated="not deprecated">
  18773. </constructor>
  18774. <method name="doUpdates"
  18775. abstract="false" native="false" synchronized="false"
  18776. static="false" final="false" visibility="public"
  18777. deprecated="not deprecated">
  18778. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  18779. <doc>
  18780. <![CDATA[Push the metrics to the monitoring subsystem on doUpdate() call.]]>
  18781. </doc>
  18782. </method>
  18783. <method name="shutdown"
  18784. abstract="false" native="false" synchronized="false"
  18785. static="false" final="false" visibility="public"
  18786. deprecated="not deprecated">
  18787. </method>
  18788. <field name="registry" type="org.apache.hadoop.metrics.util.MetricsRegistry"
  18789. transient="false" volatile="false"
  18790. static="false" final="false" visibility="public"
  18791. deprecated="not deprecated">
  18792. </field>
  18793. <field name="rpcQueueTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  18794. transient="false" volatile="false"
  18795. static="false" final="false" visibility="public"
  18796. deprecated="not deprecated">
  18797. <doc>
  18798. <![CDATA[The metrics variables are public:
  18799. - they can be set directly by calling their set/inc methods
  18800. -they can also be read directly - e.g. JMX does this.]]>
  18801. </doc>
  18802. </field>
  18803. <field name="rpcProcessingTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  18804. transient="false" volatile="false"
  18805. static="false" final="false" visibility="public"
  18806. deprecated="not deprecated">
  18807. </field>
  18808. <field name="numOpenConnections" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  18809. transient="false" volatile="false"
  18810. static="false" final="false" visibility="public"
  18811. deprecated="not deprecated">
  18812. </field>
  18813. <field name="callQueueLen" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  18814. transient="false" volatile="false"
  18815. static="false" final="false" visibility="public"
  18816. deprecated="not deprecated">
  18817. </field>
  18818. <doc>
  18819. <![CDATA[This class is for maintaining the various RPC statistics
  18820. and publishing them through the metrics interfaces.
  18821. This also registers the JMX MBean for RPC.
  18822. <p>
  18823. This class has a number of metrics variables that are publicly accessible;
  18824. these variables (objects) have methods to update their values;
  18825. for example:
  18826. <p> {@link #rpcQueueTime}.inc(time)]]>
  18827. </doc>
  18828. </class>
  18829. <!-- end class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  18830. <!-- start interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  18831. <interface name="RpcMgtMBean" abstract="true"
  18832. static="false" final="false" visibility="public"
  18833. deprecated="not deprecated">
  18834. <method name="getRpcOpsNumber" return="int"
  18835. abstract="false" native="false" synchronized="false"
  18836. static="false" final="false" visibility="public"
  18837. deprecated="not deprecated">
  18838. <doc>
  18839. <![CDATA[Number of RPC Operations in the last interval
  18840. @return number of operations]]>
  18841. </doc>
  18842. </method>
  18843. <method name="getRpcOpsAvgProcessingTime" return="long"
  18844. abstract="false" native="false" synchronized="false"
  18845. static="false" final="false" visibility="public"
  18846. deprecated="not deprecated">
  18847. <doc>
  18848. <![CDATA[Average time for RPC Operations in last interval
  18849. @return time in msec]]>
  18850. </doc>
  18851. </method>
  18852. <method name="getRpcOpsAvgProcessingTimeMin" return="long"
  18853. abstract="false" native="false" synchronized="false"
  18854. static="false" final="false" visibility="public"
  18855. deprecated="not deprecated">
  18856. <doc>
  18857. <![CDATA[The Minimum RPC Operation Processing Time since reset was called
  18858. @return time in msec]]>
  18859. </doc>
  18860. </method>
  18861. <method name="getRpcOpsAvgProcessingTimeMax" return="long"
  18862. abstract="false" native="false" synchronized="false"
  18863. static="false" final="false" visibility="public"
  18864. deprecated="not deprecated">
  18865. <doc>
  18866. <![CDATA[The Maximum RPC Operation Processing Time since reset was called
  18867. @return time in msec]]>
  18868. </doc>
  18869. </method>
  18870. <method name="getRpcOpsAvgQueueTime" return="long"
  18871. abstract="false" native="false" synchronized="false"
  18872. static="false" final="false" visibility="public"
  18873. deprecated="not deprecated">
  18874. <doc>
  18875. <![CDATA[The Average RPC Operation Queued Time in the last interval
  18876. @return time in msec]]>
  18877. </doc>
  18878. </method>
  18879. <method name="getRpcOpsAvgQueueTimeMin" return="long"
  18880. abstract="false" native="false" synchronized="false"
  18881. static="false" final="false" visibility="public"
  18882. deprecated="not deprecated">
  18883. <doc>
  18884. <![CDATA[The Minimum RPC Operation Queued Time since reset was called
  18885. @return time in msec]]>
  18886. </doc>
  18887. </method>
  18888. <method name="getRpcOpsAvgQueueTimeMax" return="long"
  18889. abstract="false" native="false" synchronized="false"
  18890. static="false" final="false" visibility="public"
  18891. deprecated="not deprecated">
  18892. <doc>
  18893. <![CDATA[The Maximum RPC Operation Queued Time since reset was called
  18894. @return time in msec]]>
  18895. </doc>
  18896. </method>
  18897. <method name="resetAllMinMax"
  18898. abstract="false" native="false" synchronized="false"
  18899. static="false" final="false" visibility="public"
  18900. deprecated="not deprecated">
  18901. <doc>
  18902. <![CDATA[Reset all min max times]]>
  18903. </doc>
  18904. </method>
  18905. <method name="getNumOpenConnections" return="int"
  18906. abstract="false" native="false" synchronized="false"
  18907. static="false" final="false" visibility="public"
  18908. deprecated="not deprecated">
  18909. <doc>
  18910. <![CDATA[The number of open RPC conections
  18911. @return the number of open rpc connections]]>
  18912. </doc>
  18913. </method>
  18914. <method name="getCallQueueLen" return="int"
  18915. abstract="false" native="false" synchronized="false"
  18916. static="false" final="false" visibility="public"
  18917. deprecated="not deprecated">
  18918. <doc>
  18919. <![CDATA[The number of rpc calls in the queue.
  18920. @return The number of rpc calls in the queue.]]>
  18921. </doc>
  18922. </method>
  18923. <doc>
  18924. <![CDATA[This is the JMX management interface for the RPC layer.
  18925. Many of the statistics are sampled and averaged on an interval
  18926. which can be specified in the metrics config file.
  18927. <p>
  18928. For the statistics that are sampled and averaged, one must specify
  18929. a metrics context that does periodic update calls. Most do.
  18930. The default Null metrics context however does NOT. So if you aren't
  18931. using any other metrics context then you can turn on the viewing and averaging
  18932. of sampled metrics by specifying the following two lines
  18933. in the hadoop-meterics.properties file:
  18934. <pre>
  18935. rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  18936. rpc.period=10
  18937. </pre>
  18938. <p>
  18939. Note that the metrics are collected regardless of the context used.
  18940. The context with the update thread is used to average the data periodically]]>
  18941. </doc>
  18942. </interface>
  18943. <!-- end interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  18944. </package>
  18945. <package name="org.apache.hadoop.log">
  18946. <!-- start class org.apache.hadoop.log.LogLevel -->
  18947. <class name="LogLevel" extends="java.lang.Object"
  18948. abstract="false"
  18949. static="false" final="false" visibility="public"
  18950. deprecated="not deprecated">
  18951. <constructor name="LogLevel"
  18952. static="false" final="false" visibility="public"
  18953. deprecated="not deprecated">
  18954. </constructor>
  18955. <method name="main"
  18956. abstract="false" native="false" synchronized="false"
  18957. static="true" final="false" visibility="public"
  18958. deprecated="not deprecated">
  18959. <param name="args" type="java.lang.String[]"/>
  18960. <doc>
  18961. <![CDATA[A command line implementation]]>
  18962. </doc>
  18963. </method>
  18964. <field name="USAGES" type="java.lang.String"
  18965. transient="false" volatile="false"
  18966. static="true" final="true" visibility="public"
  18967. deprecated="not deprecated">
  18968. </field>
  18969. <doc>
  18970. <![CDATA[Change log level in runtime.]]>
  18971. </doc>
  18972. </class>
  18973. <!-- end class org.apache.hadoop.log.LogLevel -->
  18974. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  18975. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  18976. abstract="false"
  18977. static="true" final="false" visibility="public"
  18978. deprecated="not deprecated">
  18979. <constructor name="LogLevel.Servlet"
  18980. static="false" final="false" visibility="public"
  18981. deprecated="not deprecated">
  18982. </constructor>
  18983. <method name="doGet"
  18984. abstract="false" native="false" synchronized="false"
  18985. static="false" final="false" visibility="public"
  18986. deprecated="not deprecated">
  18987. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  18988. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  18989. <exception name="ServletException" type="javax.servlet.ServletException"/>
  18990. <exception name="IOException" type="java.io.IOException"/>
  18991. </method>
  18992. <doc>
  18993. <![CDATA[A servlet implementation]]>
  18994. </doc>
  18995. </class>
  18996. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  18997. </package>
  18998. <package name="org.apache.hadoop.metrics">
  18999. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  19000. <class name="ContextFactory" extends="java.lang.Object"
  19001. abstract="false"
  19002. static="false" final="false" visibility="public"
  19003. deprecated="not deprecated">
  19004. <constructor name="ContextFactory"
  19005. static="false" final="false" visibility="protected"
  19006. deprecated="not deprecated">
  19007. <doc>
  19008. <![CDATA[Creates a new instance of ContextFactory]]>
  19009. </doc>
  19010. </constructor>
  19011. <method name="getAttribute" return="java.lang.Object"
  19012. abstract="false" native="false" synchronized="false"
  19013. static="false" final="false" visibility="public"
  19014. deprecated="not deprecated">
  19015. <param name="attributeName" type="java.lang.String"/>
  19016. <doc>
  19017. <![CDATA[Returns the value of the named attribute, or null if there is no
  19018. attribute of that name.
  19019. @param attributeName the attribute name
  19020. @return the attribute value]]>
  19021. </doc>
  19022. </method>
  19023. <method name="getAttributeNames" return="java.lang.String[]"
  19024. abstract="false" native="false" synchronized="false"
  19025. static="false" final="false" visibility="public"
  19026. deprecated="not deprecated">
  19027. <doc>
  19028. <![CDATA[Returns the names of all the factory's attributes.
  19029. @return the attribute names]]>
  19030. </doc>
  19031. </method>
  19032. <method name="setAttribute"
  19033. abstract="false" native="false" synchronized="false"
  19034. static="false" final="false" visibility="public"
  19035. deprecated="not deprecated">
  19036. <param name="attributeName" type="java.lang.String"/>
  19037. <param name="value" type="java.lang.Object"/>
  19038. <doc>
  19039. <![CDATA[Sets the named factory attribute to the specified value, creating it
  19040. if it did not already exist. If the value is null, this is the same as
  19041. calling removeAttribute.
  19042. @param attributeName the attribute name
  19043. @param value the new attribute value]]>
  19044. </doc>
  19045. </method>
  19046. <method name="removeAttribute"
  19047. abstract="false" native="false" synchronized="false"
  19048. static="false" final="false" visibility="public"
  19049. deprecated="not deprecated">
  19050. <param name="attributeName" type="java.lang.String"/>
  19051. <doc>
  19052. <![CDATA[Removes the named attribute if it exists.
  19053. @param attributeName the attribute name]]>
  19054. </doc>
  19055. </method>
  19056. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  19057. abstract="false" native="false" synchronized="true"
  19058. static="false" final="false" visibility="public"
  19059. deprecated="not deprecated">
  19060. <param name="refName" type="java.lang.String"/>
  19061. <param name="contextName" type="java.lang.String"/>
  19062. <exception name="IOException" type="java.io.IOException"/>
  19063. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  19064. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  19065. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  19066. <doc>
  19067. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  19068. using the factory's current configuration attributes. <p/>
  19069. When constructing the instance, if the factory property
  19070. <i>contextName</i>.class</code> exists,
  19071. its value is taken to be the name of the class to instantiate. Otherwise,
  19072. the default is to create an instance of
  19073. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  19074. dummy "no-op" context which will cause all metric data to be discarded.
  19075. @param contextName the name of the context
  19076. @return the named MetricsContext]]>
  19077. </doc>
  19078. </method>
  19079. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  19080. abstract="false" native="false" synchronized="true"
  19081. static="false" final="false" visibility="public"
  19082. deprecated="not deprecated">
  19083. <param name="contextName" type="java.lang.String"/>
  19084. <exception name="IOException" type="java.io.IOException"/>
  19085. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  19086. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  19087. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  19088. </method>
  19089. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  19090. abstract="false" native="false" synchronized="true"
  19091. static="true" final="false" visibility="public"
  19092. deprecated="not deprecated">
  19093. <param name="contextName" type="java.lang.String"/>
  19094. <doc>
  19095. <![CDATA[Returns a "null" context - one which does nothing.]]>
  19096. </doc>
  19097. </method>
  19098. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  19099. abstract="false" native="false" synchronized="true"
  19100. static="true" final="false" visibility="public"
  19101. deprecated="not deprecated">
  19102. <exception name="IOException" type="java.io.IOException"/>
  19103. <doc>
  19104. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  19105. necessary. <p/>
  19106. When the instance is constructed, this method checks if the file
  19107. <code>hadoop-metrics.properties</code> exists on the class path. If it
  19108. exists, it must be in the format defined by java.util.Properties, and all
  19109. the properties in the file are set as attributes on the newly created
  19110. ContextFactory instance.
  19111. @return the singleton ContextFactory instance]]>
  19112. </doc>
  19113. </method>
  19114. <doc>
  19115. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  19116. of this class, use the static <code>getFactory()</code> method.]]>
  19117. </doc>
  19118. </class>
  19119. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  19120. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  19121. <interface name="MetricsContext" abstract="true"
  19122. static="false" final="false" visibility="public"
  19123. deprecated="not deprecated">
  19124. <method name="init"
  19125. abstract="false" native="false" synchronized="false"
  19126. static="false" final="false" visibility="public"
  19127. deprecated="not deprecated">
  19128. <param name="contextName" type="java.lang.String"/>
  19129. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  19130. <doc>
  19131. <![CDATA[Initialize this context.
  19132. @param contextName The given name for this context
  19133. @param factory The creator of this context]]>
  19134. </doc>
  19135. </method>
  19136. <method name="getContextName" return="java.lang.String"
  19137. abstract="false" native="false" synchronized="false"
  19138. static="false" final="false" visibility="public"
  19139. deprecated="not deprecated">
  19140. <doc>
  19141. <![CDATA[Returns the context name.
  19142. @return the context name]]>
  19143. </doc>
  19144. </method>
  19145. <method name="startMonitoring"
  19146. abstract="false" native="false" synchronized="false"
  19147. static="false" final="false" visibility="public"
  19148. deprecated="not deprecated">
  19149. <exception name="IOException" type="java.io.IOException"/>
  19150. <doc>
  19151. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  19152. updated.]]>
  19153. </doc>
  19154. </method>
  19155. <method name="stopMonitoring"
  19156. abstract="false" native="false" synchronized="false"
  19157. static="false" final="false" visibility="public"
  19158. deprecated="not deprecated">
  19159. <doc>
  19160. <![CDATA[Stops monitoring. This does not free any data that the implementation
  19161. may have buffered for sending at the next timer event. It
  19162. is OK to call <code>startMonitoring()</code> again after calling
  19163. this.
  19164. @see #close()]]>
  19165. </doc>
  19166. </method>
  19167. <method name="isMonitoring" return="boolean"
  19168. abstract="false" native="false" synchronized="false"
  19169. static="false" final="false" visibility="public"
  19170. deprecated="not deprecated">
  19171. <doc>
  19172. <![CDATA[Returns true if monitoring is currently in progress.]]>
  19173. </doc>
  19174. </method>
  19175. <method name="close"
  19176. abstract="false" native="false" synchronized="false"
  19177. static="false" final="false" visibility="public"
  19178. deprecated="not deprecated">
  19179. <doc>
  19180. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  19181. object to its initial state.]]>
  19182. </doc>
  19183. </method>
  19184. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  19185. abstract="false" native="false" synchronized="false"
  19186. static="false" final="false" visibility="public"
  19187. deprecated="not deprecated">
  19188. <param name="recordName" type="java.lang.String"/>
  19189. <doc>
  19190. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  19191. Throws an exception if the metrics implementation is configured with a fixed
  19192. set of record names and <code>recordName</code> is not in that set.
  19193. @param recordName the name of the record
  19194. @throws MetricsException if recordName conflicts with configuration data]]>
  19195. </doc>
  19196. </method>
  19197. <method name="registerUpdater"
  19198. abstract="false" native="false" synchronized="false"
  19199. static="false" final="false" visibility="public"
  19200. deprecated="not deprecated">
  19201. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  19202. <doc>
  19203. <![CDATA[Registers a callback to be called at regular time intervals, as
  19204. determined by the implementation-class specific configuration.
  19205. @param updater object to be run periodically; it should updated
  19206. some metrics records and then return]]>
  19207. </doc>
  19208. </method>
  19209. <method name="unregisterUpdater"
  19210. abstract="false" native="false" synchronized="false"
  19211. static="false" final="false" visibility="public"
  19212. deprecated="not deprecated">
  19213. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  19214. <doc>
  19215. <![CDATA[Removes a callback, if it exists.
  19216. @param updater object to be removed from the callback list]]>
  19217. </doc>
  19218. </method>
  19219. <method name="getPeriod" return="int"
  19220. abstract="false" native="false" synchronized="false"
  19221. static="false" final="false" visibility="public"
  19222. deprecated="not deprecated">
  19223. <doc>
  19224. <![CDATA[Returns the timer period.]]>
  19225. </doc>
  19226. </method>
  19227. <field name="DEFAULT_PERIOD" type="int"
  19228. transient="false" volatile="false"
  19229. static="true" final="true" visibility="public"
  19230. deprecated="not deprecated">
  19231. <doc>
  19232. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  19233. </doc>
  19234. </field>
  19235. <doc>
  19236. <![CDATA[The main interface to the metrics package.]]>
  19237. </doc>
  19238. </interface>
  19239. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  19240. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  19241. <class name="MetricsException" extends="java.lang.RuntimeException"
  19242. abstract="false"
  19243. static="false" final="false" visibility="public"
  19244. deprecated="not deprecated">
  19245. <constructor name="MetricsException"
  19246. static="false" final="false" visibility="public"
  19247. deprecated="not deprecated">
  19248. <doc>
  19249. <![CDATA[Creates a new instance of MetricsException]]>
  19250. </doc>
  19251. </constructor>
  19252. <constructor name="MetricsException" type="java.lang.String"
  19253. static="false" final="false" visibility="public"
  19254. deprecated="not deprecated">
  19255. <doc>
  19256. <![CDATA[Creates a new instance of MetricsException
  19257. @param message an error message]]>
  19258. </doc>
  19259. </constructor>
  19260. <doc>
  19261. <![CDATA[General-purpose, unchecked metrics exception.]]>
  19262. </doc>
  19263. </class>
  19264. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  19265. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  19266. <interface name="MetricsRecord" abstract="true"
  19267. static="false" final="false" visibility="public"
  19268. deprecated="not deprecated">
  19269. <method name="getRecordName" return="java.lang.String"
  19270. abstract="false" native="false" synchronized="false"
  19271. static="false" final="false" visibility="public"
  19272. deprecated="not deprecated">
  19273. <doc>
  19274. <![CDATA[Returns the record name.
  19275. @return the record name]]>
  19276. </doc>
  19277. </method>
  19278. <method name="setTag"
  19279. abstract="false" native="false" synchronized="false"
  19280. static="false" final="false" visibility="public"
  19281. deprecated="not deprecated">
  19282. <param name="tagName" type="java.lang.String"/>
  19283. <param name="tagValue" type="java.lang.String"/>
  19284. <doc>
  19285. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  19286. which is treated the same as an empty String.
  19287. @param tagName name of the tag
  19288. @param tagValue new value of the tag
  19289. @throws MetricsException if the tagName conflicts with the configuration]]>
  19290. </doc>
  19291. </method>
  19292. <method name="setTag"
  19293. abstract="false" native="false" synchronized="false"
  19294. static="false" final="false" visibility="public"
  19295. deprecated="not deprecated">
  19296. <param name="tagName" type="java.lang.String"/>
  19297. <param name="tagValue" type="int"/>
  19298. <doc>
  19299. <![CDATA[Sets the named tag to the specified value.
  19300. @param tagName name of the tag
  19301. @param tagValue new value of the tag
  19302. @throws MetricsException if the tagName conflicts with the configuration]]>
  19303. </doc>
  19304. </method>
  19305. <method name="setTag"
  19306. abstract="false" native="false" synchronized="false"
  19307. static="false" final="false" visibility="public"
  19308. deprecated="not deprecated">
  19309. <param name="tagName" type="java.lang.String"/>
  19310. <param name="tagValue" type="long"/>
  19311. <doc>
  19312. <![CDATA[Sets the named tag to the specified value.
  19313. @param tagName name of the tag
  19314. @param tagValue new value of the tag
  19315. @throws MetricsException if the tagName conflicts with the configuration]]>
  19316. </doc>
  19317. </method>
  19318. <method name="setTag"
  19319. abstract="false" native="false" synchronized="false"
  19320. static="false" final="false" visibility="public"
  19321. deprecated="not deprecated">
  19322. <param name="tagName" type="java.lang.String"/>
  19323. <param name="tagValue" type="short"/>
  19324. <doc>
  19325. <![CDATA[Sets the named tag to the specified value.
  19326. @param tagName name of the tag
  19327. @param tagValue new value of the tag
  19328. @throws MetricsException if the tagName conflicts with the configuration]]>
  19329. </doc>
  19330. </method>
  19331. <method name="setTag"
  19332. abstract="false" native="false" synchronized="false"
  19333. static="false" final="false" visibility="public"
  19334. deprecated="not deprecated">
  19335. <param name="tagName" type="java.lang.String"/>
  19336. <param name="tagValue" type="byte"/>
  19337. <doc>
  19338. <![CDATA[Sets the named tag to the specified value.
  19339. @param tagName name of the tag
  19340. @param tagValue new value of the tag
  19341. @throws MetricsException if the tagName conflicts with the configuration]]>
  19342. </doc>
  19343. </method>
  19344. <method name="removeTag"
  19345. abstract="false" native="false" synchronized="false"
  19346. static="false" final="false" visibility="public"
  19347. deprecated="not deprecated">
  19348. <param name="tagName" type="java.lang.String"/>
  19349. <doc>
  19350. <![CDATA[Removes any tag of the specified name.
  19351. @param tagName name of a tag]]>
  19352. </doc>
  19353. </method>
  19354. <method name="setMetric"
  19355. abstract="false" native="false" synchronized="false"
  19356. static="false" final="false" visibility="public"
  19357. deprecated="not deprecated">
  19358. <param name="metricName" type="java.lang.String"/>
  19359. <param name="metricValue" type="int"/>
  19360. <doc>
  19361. <![CDATA[Sets the named metric to the specified value.
  19362. @param metricName name of the metric
  19363. @param metricValue new value of the metric
  19364. @throws MetricsException if the metricName or the type of the metricValue
  19365. conflicts with the configuration]]>
  19366. </doc>
  19367. </method>
  19368. <method name="setMetric"
  19369. abstract="false" native="false" synchronized="false"
  19370. static="false" final="false" visibility="public"
  19371. deprecated="not deprecated">
  19372. <param name="metricName" type="java.lang.String"/>
  19373. <param name="metricValue" type="long"/>
  19374. <doc>
  19375. <![CDATA[Sets the named metric to the specified value.
  19376. @param metricName name of the metric
  19377. @param metricValue new value of the metric
  19378. @throws MetricsException if the metricName or the type of the metricValue
  19379. conflicts with the configuration]]>
  19380. </doc>
  19381. </method>
  19382. <method name="setMetric"
  19383. abstract="false" native="false" synchronized="false"
  19384. static="false" final="false" visibility="public"
  19385. deprecated="not deprecated">
  19386. <param name="metricName" type="java.lang.String"/>
  19387. <param name="metricValue" type="short"/>
  19388. <doc>
  19389. <![CDATA[Sets the named metric to the specified value.
  19390. @param metricName name of the metric
  19391. @param metricValue new value of the metric
  19392. @throws MetricsException if the metricName or the type of the metricValue
  19393. conflicts with the configuration]]>
  19394. </doc>
  19395. </method>
  19396. <method name="setMetric"
  19397. abstract="false" native="false" synchronized="false"
  19398. static="false" final="false" visibility="public"
  19399. deprecated="not deprecated">
  19400. <param name="metricName" type="java.lang.String"/>
  19401. <param name="metricValue" type="byte"/>
  19402. <doc>
  19403. <![CDATA[Sets the named metric to the specified value.
  19404. @param metricName name of the metric
  19405. @param metricValue new value of the metric
  19406. @throws MetricsException if the metricName or the type of the metricValue
  19407. conflicts with the configuration]]>
  19408. </doc>
  19409. </method>
  19410. <method name="setMetric"
  19411. abstract="false" native="false" synchronized="false"
  19412. static="false" final="false" visibility="public"
  19413. deprecated="not deprecated">
  19414. <param name="metricName" type="java.lang.String"/>
  19415. <param name="metricValue" type="float"/>
  19416. <doc>
  19417. <![CDATA[Sets the named metric to the specified value.
  19418. @param metricName name of the metric
  19419. @param metricValue new value of the metric
  19420. @throws MetricsException if the metricName or the type of the metricValue
  19421. conflicts with the configuration]]>
  19422. </doc>
  19423. </method>
  19424. <method name="incrMetric"
  19425. abstract="false" native="false" synchronized="false"
  19426. static="false" final="false" visibility="public"
  19427. deprecated="not deprecated">
  19428. <param name="metricName" type="java.lang.String"/>
  19429. <param name="metricValue" type="int"/>
  19430. <doc>
  19431. <![CDATA[Increments the named metric by the specified value.
  19432. @param metricName name of the metric
  19433. @param metricValue incremental value
  19434. @throws MetricsException if the metricName or the type of the metricValue
  19435. conflicts with the configuration]]>
  19436. </doc>
  19437. </method>
  19438. <method name="incrMetric"
  19439. abstract="false" native="false" synchronized="false"
  19440. static="false" final="false" visibility="public"
  19441. deprecated="not deprecated">
  19442. <param name="metricName" type="java.lang.String"/>
  19443. <param name="metricValue" type="long"/>
  19444. <doc>
  19445. <![CDATA[Increments the named metric by the specified value.
  19446. @param metricName name of the metric
  19447. @param metricValue incremental value
  19448. @throws MetricsException if the metricName or the type of the metricValue
  19449. conflicts with the configuration]]>
  19450. </doc>
  19451. </method>
  19452. <method name="incrMetric"
  19453. abstract="false" native="false" synchronized="false"
  19454. static="false" final="false" visibility="public"
  19455. deprecated="not deprecated">
  19456. <param name="metricName" type="java.lang.String"/>
  19457. <param name="metricValue" type="short"/>
  19458. <doc>
  19459. <![CDATA[Increments the named metric by the specified value.
  19460. @param metricName name of the metric
  19461. @param metricValue incremental value
  19462. @throws MetricsException if the metricName or the type of the metricValue
  19463. conflicts with the configuration]]>
  19464. </doc>
  19465. </method>
  19466. <method name="incrMetric"
  19467. abstract="false" native="false" synchronized="false"
  19468. static="false" final="false" visibility="public"
  19469. deprecated="not deprecated">
  19470. <param name="metricName" type="java.lang.String"/>
  19471. <param name="metricValue" type="byte"/>
  19472. <doc>
  19473. <![CDATA[Increments the named metric by the specified value.
  19474. @param metricName name of the metric
  19475. @param metricValue incremental value
  19476. @throws MetricsException if the metricName or the type of the metricValue
  19477. conflicts with the configuration]]>
  19478. </doc>
  19479. </method>
  19480. <method name="incrMetric"
  19481. abstract="false" native="false" synchronized="false"
  19482. static="false" final="false" visibility="public"
  19483. deprecated="not deprecated">
  19484. <param name="metricName" type="java.lang.String"/>
  19485. <param name="metricValue" type="float"/>
  19486. <doc>
  19487. <![CDATA[Increments the named metric by the specified value.
  19488. @param metricName name of the metric
  19489. @param metricValue incremental value
  19490. @throws MetricsException if the metricName or the type of the metricValue
  19491. conflicts with the configuration]]>
  19492. </doc>
  19493. </method>
  19494. <method name="update"
  19495. abstract="false" native="false" synchronized="false"
  19496. static="false" final="false" visibility="public"
  19497. deprecated="not deprecated">
  19498. <doc>
  19499. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  19500. If the tag values match an existing row, that row is updated;
  19501. otherwise, a new row is added.]]>
  19502. </doc>
  19503. </method>
  19504. <method name="remove"
  19505. abstract="false" native="false" synchronized="false"
  19506. static="false" final="false" visibility="public"
  19507. deprecated="not deprecated">
  19508. <doc>
  19509. <![CDATA[Removes, from the buffered data table, all rows having tags
  19510. that equal the tags that have been set on this record. For example,
  19511. if there are no tags on this record, all rows for this record name
  19512. would be removed. Or, if there is a single tag on this record, then
  19513. just rows containing a tag with the same name and value would be removed.]]>
  19514. </doc>
  19515. </method>
  19516. <doc>
  19517. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  19518. system. <p/>
  19519. A record name identifies the kind of data to be reported. For example, a
  19520. program reporting statistics relating to the disks on a computer might use
  19521. a record name "diskStats".<p/>
  19522. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  19523. continue the example, the "diskStats" record might use a tag named
  19524. "diskName" to identify a particular disk. Sometimes it is useful to have
  19525. more than one tag, so there might also be a "diskType" with value "ide" or
  19526. "scsi" or whatever.<p/>
  19527. A record also has zero or more <i>metrics</i>. These are the named
  19528. values that are to be reported to the metrics system. In the "diskStats"
  19529. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  19530. "kbReadPerSecond", etc.<p/>
  19531. The general procedure for using a MetricsRecord is to fill in its tag and
  19532. metric values, and then call <code>update()</code> to pass the record to the
  19533. client library.
  19534. Metric data is not immediately sent to the metrics system
  19535. each time that <code>update()</code> is called.
  19536. An internal table is maintained, identified by the record name. This
  19537. table has columns
  19538. corresponding to the tag and the metric names, and rows
  19539. corresponding to each unique set of tag values. An update
  19540. either modifies an existing row in the table, or adds a new row with a set of
  19541. tag values that are different from all the other rows. Note that if there
  19542. are no tags, then there can be at most one row in the table. <p/>
  19543. Once a row is added to the table, its data will be sent to the metrics system
  19544. on every timer period, whether or not it has been updated since the previous
  19545. timer period. If this is inappropriate, for example if metrics were being
  19546. reported by some transient object in an application, the <code>remove()</code>
  19547. method can be used to remove the row and thus stop the data from being
  19548. sent.<p/>
  19549. Note that the <code>update()</code> method is atomic. This means that it is
  19550. safe for different threads to be updating the same metric. More precisely,
  19551. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  19552. with the same set of tag names and tag values. Different threads should
  19553. <b>not</b> use the same MetricsRecord instance at the same time.]]>
  19554. </doc>
  19555. </interface>
  19556. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  19557. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  19558. <class name="MetricsUtil" extends="java.lang.Object"
  19559. abstract="false"
  19560. static="false" final="false" visibility="public"
  19561. deprecated="not deprecated">
  19562. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  19563. abstract="false" native="false" synchronized="false"
  19564. static="true" final="false" visibility="public"
  19565. deprecated="not deprecated">
  19566. <param name="contextName" type="java.lang.String"/>
  19567. </method>
  19568. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  19569. abstract="false" native="false" synchronized="false"
  19570. static="true" final="false" visibility="public"
  19571. deprecated="not deprecated">
  19572. <param name="refName" type="java.lang.String"/>
  19573. <param name="contextName" type="java.lang.String"/>
  19574. <doc>
  19575. <![CDATA[Utility method to return the named context.
  19576. If the desired context cannot be created for any reason, the exception
  19577. is logged, and a null context is returned.]]>
  19578. </doc>
  19579. </method>
  19580. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  19581. abstract="false" native="false" synchronized="false"
  19582. static="true" final="false" visibility="public"
  19583. deprecated="not deprecated">
  19584. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  19585. <param name="recordName" type="java.lang.String"/>
  19586. <doc>
  19587. <![CDATA[Utility method to create and return new metrics record instance within the
  19588. given context. This record is tagged with the host name.
  19589. @param context the context
  19590. @param recordName name of the record
  19591. @return newly created metrics record]]>
  19592. </doc>
  19593. </method>
  19594. <field name="LOG" type="org.apache.commons.logging.Log"
  19595. transient="false" volatile="false"
  19596. static="true" final="true" visibility="public"
  19597. deprecated="not deprecated">
  19598. </field>
  19599. <doc>
  19600. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  19601. For examples of usage, see NameNodeMetrics.
  19602. @see org.apache.hadoop.metrics.MetricsRecord
  19603. @see org.apache.hadoop.metrics.MetricsContext
  19604. @see org.apache.hadoop.metrics.ContextFactory]]>
  19605. </doc>
  19606. </class>
  19607. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  19608. <!-- start interface org.apache.hadoop.metrics.Updater -->
  19609. <interface name="Updater" abstract="true"
  19610. static="false" final="false" visibility="public"
  19611. deprecated="not deprecated">
  19612. <method name="doUpdates"
  19613. abstract="false" native="false" synchronized="false"
  19614. static="false" final="false" visibility="public"
  19615. deprecated="not deprecated">
  19616. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  19617. <doc>
  19618. <![CDATA[Timer-based call-back from the metric library.]]>
  19619. </doc>
  19620. </method>
  19621. <doc>
  19622. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.]]>
  19623. </doc>
  19624. </interface>
  19625. <!-- end interface org.apache.hadoop.metrics.Updater -->
  19626. <doc>
  19627. <![CDATA[This package defines an API for reporting performance metric information.
  19628. <p/>
  19629. The API is abstract so that it can be implemented on top of
  19630. a variety of metrics client libraries. The choice of
  19631. client library is a configuration option, and different
  19632. modules within the same application can use
  19633. different metrics implementation libraries.
  19634. <p/>
  19635. Sub-packages:
  19636. <dl>
  19637. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  19638. <dd>The abstract Server Provider Interface package. Those wishing to
  19639. integrate the metrics API with a particular metrics client library should
  19640. extend this package.</dd>
  19641. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  19642. <dd>An implementation package which writes the metric data to
  19643. a file, or sends it to the standard output stream.</dd>
  19644. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  19645. <dd>An implementation package which sends metric data to
  19646. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  19647. </dl>
  19648. <h3>Introduction to the Metrics API</h3>
  19649. Here is a simple example of how to use this package to report a single
  19650. metric value:
  19651. <pre>
  19652. private ContextFactory contextFactory = ContextFactory.getFactory();
  19653. void reportMyMetric(float myMetric) {
  19654. MetricsContext myContext = contextFactory.getContext("myContext");
  19655. MetricsRecord myRecord = myContext.getRecord("myRecord");
  19656. myRecord.setMetric("myMetric", myMetric);
  19657. myRecord.update();
  19658. }
  19659. </pre>
  19660. In this example there are three names:
  19661. <dl>
  19662. <dt><i>myContext</i></dt>
  19663. <dd>The context name will typically identify either the application, or else a
  19664. module within an application or library.</dd>
  19665. <dt><i>myRecord</i></dt>
  19666. <dd>The record name generally identifies some entity for which a set of
  19667. metrics are to be reported. For example, you could have a record named
  19668. "cacheStats" for reporting a number of statistics relating to the usage of
  19669. some cache in your application.</dd>
  19670. <dt><i>myMetric</i></dt>
  19671. <dd>This identifies a particular metric. For example, you might have metrics
  19672. named "cache_hits" and "cache_misses".
  19673. </dd>
  19674. </dl>
  19675. <h3>Tags</h3>
  19676. In some cases it is useful to have multiple records with the same name. For
  19677. example, suppose that you want to report statistics about each disk on a computer.
  19678. In this case, the record name would be something like "diskStats", but you also
  19679. need to identify the disk which is done by adding a <i>tag</i> to the record.
  19680. The code could look something like this:
  19681. <pre>
  19682. private MetricsRecord diskStats =
  19683. contextFactory.getContext("myContext").getRecord("diskStats");
  19684. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  19685. diskStats.setTag("diskName", diskName);
  19686. diskStats.setMetric("diskBusy", diskBusy);
  19687. diskStats.setMetric("diskUsed", diskUsed);
  19688. diskStats.update();
  19689. }
  19690. </pre>
  19691. <h3>Buffering and Callbacks</h3>
  19692. Data is not sent immediately to the metrics system when
  19693. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  19694. internal table, and the contents of the table are sent periodically.
  19695. This can be important for two reasons:
  19696. <ol>
  19697. <li>It means that a programmer is free to put calls to this API in an
  19698. inner loop, since updates can be very frequent without slowing down
  19699. the application significantly.</li>
  19700. <li>Some implementations can gain efficiency by combining many metrics
  19701. into a single UDP message.</li>
  19702. </ol>
  19703. The API provides a timer-based callback via the
  19704. <code>registerUpdater()</code> method. The benefit of this
  19705. versus using <code>java.util.Timer</code> is that the callbacks will be done
  19706. immediately before sending the data, making the data as current as possible.
  19707. <h3>Configuration</h3>
  19708. It is possible to programmatically examine and modify configuration data
  19709. before creating a context, like this:
  19710. <pre>
  19711. ContextFactory factory = ContextFactory.getFactory();
  19712. ... examine and/or modify factory attributes ...
  19713. MetricsContext context = factory.getContext("myContext");
  19714. </pre>
  19715. The factory attributes can be examined and modified using the following
  19716. <code>ContextFactory</code>methods:
  19717. <ul>
  19718. <li><code>Object getAttribute(String attributeName)</code></li>
  19719. <li><code>String[] getAttributeNames()</code></li>
  19720. <li><code>void setAttribute(String name, Object value)</code></li>
  19721. <li><code>void removeAttribute(attributeName)</code></li>
  19722. </ul>
  19723. <p/>
  19724. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  19725. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  19726. on the class path.
  19727. <p/>
  19728. A factory attribute named:
  19729. <pre>
  19730. <i>contextName</i>.class
  19731. </pre>
  19732. should have as its value the fully qualified name of the class to be
  19733. instantiated by a call of the <code>CodeFactory</code> method
  19734. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  19735. specified, the default is to instantiate
  19736. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  19737. <p/>
  19738. Other factory attributes are specific to a particular implementation of this
  19739. API and are documented elsewhere. For example, configuration attributes for
  19740. the file and Ganglia implementations can be found in the javadoc for
  19741. their respective packages.]]>
  19742. </doc>
  19743. </package>
  19744. <package name="org.apache.hadoop.metrics.file">
  19745. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  19746. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  19747. abstract="false"
  19748. static="false" final="false" visibility="public"
  19749. deprecated="not deprecated">
  19750. <constructor name="FileContext"
  19751. static="false" final="false" visibility="public"
  19752. deprecated="not deprecated">
  19753. <doc>
  19754. <![CDATA[Creates a new instance of FileContext]]>
  19755. </doc>
  19756. </constructor>
  19757. <method name="init"
  19758. abstract="false" native="false" synchronized="false"
  19759. static="false" final="false" visibility="public"
  19760. deprecated="not deprecated">
  19761. <param name="contextName" type="java.lang.String"/>
  19762. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  19763. </method>
  19764. <method name="getFileName" return="java.lang.String"
  19765. abstract="false" native="false" synchronized="false"
  19766. static="false" final="false" visibility="public"
  19767. deprecated="not deprecated">
  19768. <doc>
  19769. <![CDATA[Returns the configured file name, or null.]]>
  19770. </doc>
  19771. </method>
  19772. <method name="startMonitoring"
  19773. abstract="false" native="false" synchronized="false"
  19774. static="false" final="false" visibility="public"
  19775. deprecated="not deprecated">
  19776. <exception name="IOException" type="java.io.IOException"/>
  19777. <doc>
  19778. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  19779. file specified by the <code>fileName</code> attribute,
  19780. if specified. Otherwise the data will be written to standard
  19781. output.]]>
  19782. </doc>
  19783. </method>
  19784. <method name="stopMonitoring"
  19785. abstract="false" native="false" synchronized="false"
  19786. static="false" final="false" visibility="public"
  19787. deprecated="not deprecated">
  19788. <doc>
  19789. <![CDATA[Stops monitoring, closing the file.
  19790. @see #close()]]>
  19791. </doc>
  19792. </method>
  19793. <method name="emitRecord"
  19794. abstract="false" native="false" synchronized="false"
  19795. static="false" final="false" visibility="public"
  19796. deprecated="not deprecated">
  19797. <param name="contextName" type="java.lang.String"/>
  19798. <param name="recordName" type="java.lang.String"/>
  19799. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  19800. <doc>
  19801. <![CDATA[Emits a metrics record to a file.]]>
  19802. </doc>
  19803. </method>
  19804. <method name="flush"
  19805. abstract="false" native="false" synchronized="false"
  19806. static="false" final="false" visibility="public"
  19807. deprecated="not deprecated">
  19808. <doc>
  19809. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  19810. </doc>
  19811. </method>
  19812. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  19813. transient="false" volatile="false"
  19814. static="true" final="true" visibility="protected"
  19815. deprecated="not deprecated">
  19816. </field>
  19817. <field name="PERIOD_PROPERTY" type="java.lang.String"
  19818. transient="false" volatile="false"
  19819. static="true" final="true" visibility="protected"
  19820. deprecated="not deprecated">
  19821. </field>
  19822. <doc>
  19823. <![CDATA[Metrics context for writing metrics to a file.<p/>
  19824. This class is configured by setting ContextFactory attributes which in turn
  19825. are usually configured through a properties file. All the attributes are
  19826. prefixed by the contextName. For example, the properties file might contain:
  19827. <pre>
  19828. myContextName.fileName=/tmp/metrics.log
  19829. myContextName.period=5
  19830. </pre>]]>
  19831. </doc>
  19832. </class>
  19833. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  19834. <doc>
  19835. <![CDATA[Implementation of the metrics package that writes the metrics to a file.
  19836. Programmers should not normally need to use this package directly. Instead
  19837. they should use org.hadoop.metrics.
  19838. <p/>
  19839. These are the implementation specific factory attributes
  19840. (See ContextFactory.getFactory()):
  19841. <dl>
  19842. <dt><i>contextName</i>.fileName</dt>
  19843. <dd>The path of the file to which metrics in context <i>contextName</i>
  19844. are to be appended. If this attribute is not specified, the metrics
  19845. are written to standard output by default.</dd>
  19846. <dt><i>contextName</i>.period</dt>
  19847. <dd>The period in seconds on which the metric data is written to the
  19848. file.</dd>
  19849. </dl>]]>
  19850. </doc>
  19851. </package>
  19852. <package name="org.apache.hadoop.metrics.ganglia">
  19853. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  19854. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  19855. abstract="false"
  19856. static="false" final="false" visibility="public"
  19857. deprecated="not deprecated">
  19858. <constructor name="GangliaContext"
  19859. static="false" final="false" visibility="public"
  19860. deprecated="not deprecated">
  19861. <doc>
  19862. <![CDATA[Creates a new instance of GangliaContext]]>
  19863. </doc>
  19864. </constructor>
  19865. <method name="init"
  19866. abstract="false" native="false" synchronized="false"
  19867. static="false" final="false" visibility="public"
  19868. deprecated="not deprecated">
  19869. <param name="contextName" type="java.lang.String"/>
  19870. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  19871. </method>
  19872. <method name="emitRecord"
  19873. abstract="false" native="false" synchronized="false"
  19874. static="false" final="false" visibility="public"
  19875. deprecated="not deprecated">
  19876. <param name="contextName" type="java.lang.String"/>
  19877. <param name="recordName" type="java.lang.String"/>
  19878. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  19879. <exception name="IOException" type="java.io.IOException"/>
  19880. </method>
  19881. <doc>
  19882. <![CDATA[Context for sending metrics to Ganglia.]]>
  19883. </doc>
  19884. </class>
  19885. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  19886. <doc>
  19887. <![CDATA[<!--
  19888. * Licensed to the Apache Software Foundation (ASF) under one
  19889. * or more contributor license agreements. See the NOTICE file
  19890. * distributed with this work for additional information
  19891. * regarding copyright ownership. The ASF licenses this file
  19892. * to you under the Apache License, Version 2.0 (the
  19893. * "License"); you may not use this file except in compliance
  19894. * with the License. You may obtain a copy of the License at
  19895. *
  19896. * http://www.apache.org/licenses/LICENSE-2.0
  19897. *
  19898. * Unless required by applicable law or agreed to in writing, software
  19899. * distributed under the License is distributed on an "AS IS" BASIS,
  19900. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19901. * See the License for the specific language governing permissions and
  19902. * limitations under the License.
  19903. -->
  19904. Implementation of the metrics package that sends metric data to
  19905. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  19906. Programmers should not normally need to use this package directly. Instead
  19907. they should use org.hadoop.metrics.
  19908. <p/>
  19909. These are the implementation specific factory attributes
  19910. (See ContextFactory.getFactory()):
  19911. <dl>
  19912. <dt><i>contextName</i>.servers</dt>
  19913. <dd>Space and/or comma separated sequence of servers to which UDP
  19914. messages should be sent.</dd>
  19915. <dt><i>contextName</i>.period</dt>
  19916. <dd>The period in seconds on which the metric data is sent to the
  19917. server(s).</dd>
  19918. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  19919. <dd>The units for the specified metric in the specified record.</dd>
  19920. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  19921. <dd>The slope for the specified metric in the specified record.</dd>
  19922. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  19923. <dd>The tmax for the specified metric in the specified record.</dd>
  19924. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  19925. <dd>The dmax for the specified metric in the specified record.</dd>
  19926. </dl>]]>
  19927. </doc>
  19928. </package>
  19929. <package name="org.apache.hadoop.metrics.jvm">
  19930. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  19931. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  19932. abstract="false"
  19933. static="false" final="false" visibility="public"
  19934. deprecated="not deprecated">
  19935. <constructor name="EventCounter"
  19936. static="false" final="false" visibility="public"
  19937. deprecated="not deprecated">
  19938. </constructor>
  19939. <method name="getFatal" return="long"
  19940. abstract="false" native="false" synchronized="false"
  19941. static="true" final="false" visibility="public"
  19942. deprecated="not deprecated">
  19943. </method>
  19944. <method name="getError" return="long"
  19945. abstract="false" native="false" synchronized="false"
  19946. static="true" final="false" visibility="public"
  19947. deprecated="not deprecated">
  19948. </method>
  19949. <method name="getWarn" return="long"
  19950. abstract="false" native="false" synchronized="false"
  19951. static="true" final="false" visibility="public"
  19952. deprecated="not deprecated">
  19953. </method>
  19954. <method name="getInfo" return="long"
  19955. abstract="false" native="false" synchronized="false"
  19956. static="true" final="false" visibility="public"
  19957. deprecated="not deprecated">
  19958. </method>
  19959. <method name="append"
  19960. abstract="false" native="false" synchronized="false"
  19961. static="false" final="false" visibility="public"
  19962. deprecated="not deprecated">
  19963. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  19964. </method>
  19965. <method name="close"
  19966. abstract="false" native="false" synchronized="false"
  19967. static="false" final="false" visibility="public"
  19968. deprecated="not deprecated">
  19969. </method>
  19970. <method name="requiresLayout" return="boolean"
  19971. abstract="false" native="false" synchronized="false"
  19972. static="false" final="false" visibility="public"
  19973. deprecated="not deprecated">
  19974. </method>
  19975. <doc>
  19976. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  19977. fatal, error and warn.]]>
  19978. </doc>
  19979. </class>
  19980. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  19981. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  19982. <class name="JvmMetrics" extends="java.lang.Object"
  19983. abstract="false"
  19984. static="false" final="false" visibility="public"
  19985. deprecated="not deprecated">
  19986. <implements name="org.apache.hadoop.metrics.Updater"/>
  19987. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  19988. abstract="false" native="false" synchronized="true"
  19989. static="true" final="false" visibility="public"
  19990. deprecated="not deprecated">
  19991. <param name="processName" type="java.lang.String"/>
  19992. <param name="sessionId" type="java.lang.String"/>
  19993. </method>
  19994. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  19995. abstract="false" native="false" synchronized="true"
  19996. static="true" final="false" visibility="public"
  19997. deprecated="not deprecated">
  19998. <param name="processName" type="java.lang.String"/>
  19999. <param name="sessionId" type="java.lang.String"/>
  20000. <param name="recordName" type="java.lang.String"/>
  20001. </method>
  20002. <method name="doUpdates"
  20003. abstract="false" native="false" synchronized="false"
  20004. static="false" final="false" visibility="public"
  20005. deprecated="not deprecated">
  20006. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  20007. <doc>
  20008. <![CDATA[This will be called periodically (with the period being configuration
  20009. dependent).]]>
  20010. </doc>
  20011. </method>
  20012. <doc>
  20013. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  20014. Any application can create an instance of this class in order to emit
  20015. Java VM metrics.]]>
  20016. </doc>
  20017. </class>
  20018. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  20019. </package>
  20020. <package name="org.apache.hadoop.metrics.spi">
  20021. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  20022. <class name="AbstractMetricsContext" extends="java.lang.Object"
  20023. abstract="true"
  20024. static="false" final="false" visibility="public"
  20025. deprecated="not deprecated">
  20026. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  20027. <constructor name="AbstractMetricsContext"
  20028. static="false" final="false" visibility="protected"
  20029. deprecated="not deprecated">
  20030. <doc>
  20031. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  20032. </doc>
  20033. </constructor>
  20034. <method name="init"
  20035. abstract="false" native="false" synchronized="false"
  20036. static="false" final="false" visibility="public"
  20037. deprecated="not deprecated">
  20038. <param name="contextName" type="java.lang.String"/>
  20039. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  20040. <doc>
  20041. <![CDATA[Initializes the context.]]>
  20042. </doc>
  20043. </method>
  20044. <method name="getAttribute" return="java.lang.String"
  20045. abstract="false" native="false" synchronized="false"
  20046. static="false" final="false" visibility="protected"
  20047. deprecated="not deprecated">
  20048. <param name="attributeName" type="java.lang.String"/>
  20049. <doc>
  20050. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  20051. </doc>
  20052. </method>
  20053. <method name="getAttributeTable" return="java.util.Map"
  20054. abstract="false" native="false" synchronized="false"
  20055. static="false" final="false" visibility="protected"
  20056. deprecated="not deprecated">
  20057. <param name="tableName" type="java.lang.String"/>
  20058. <doc>
  20059. <![CDATA[Returns an attribute-value map derived from the factory attributes
  20060. by finding all factory attributes that begin with
  20061. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  20062. those attributes with the contextName and tableName stripped off.]]>
  20063. </doc>
  20064. </method>
  20065. <method name="getContextName" return="java.lang.String"
  20066. abstract="false" native="false" synchronized="false"
  20067. static="false" final="false" visibility="public"
  20068. deprecated="not deprecated">
  20069. <doc>
  20070. <![CDATA[Returns the context name.]]>
  20071. </doc>
  20072. </method>
  20073. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  20074. abstract="false" native="false" synchronized="false"
  20075. static="false" final="false" visibility="public"
  20076. deprecated="not deprecated">
  20077. <doc>
  20078. <![CDATA[Returns the factory by which this context was created.]]>
  20079. </doc>
  20080. </method>
  20081. <method name="startMonitoring"
  20082. abstract="false" native="false" synchronized="true"
  20083. static="false" final="false" visibility="public"
  20084. deprecated="not deprecated">
  20085. <exception name="IOException" type="java.io.IOException"/>
  20086. <doc>
  20087. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  20088. </doc>
  20089. </method>
  20090. <method name="stopMonitoring"
  20091. abstract="false" native="false" synchronized="true"
  20092. static="false" final="false" visibility="public"
  20093. deprecated="not deprecated">
  20094. <doc>
  20095. <![CDATA[Stops monitoring. This does not free buffered data.
  20096. @see #close()]]>
  20097. </doc>
  20098. </method>
  20099. <method name="isMonitoring" return="boolean"
  20100. abstract="false" native="false" synchronized="false"
  20101. static="false" final="false" visibility="public"
  20102. deprecated="not deprecated">
  20103. <doc>
  20104. <![CDATA[Returns true if monitoring is currently in progress.]]>
  20105. </doc>
  20106. </method>
  20107. <method name="close"
  20108. abstract="false" native="false" synchronized="true"
  20109. static="false" final="false" visibility="public"
  20110. deprecated="not deprecated">
  20111. <doc>
  20112. <![CDATA[Stops monitoring and frees buffered data, returning this
  20113. object to its initial state.]]>
  20114. </doc>
  20115. </method>
  20116. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  20117. abstract="false" native="false" synchronized="true"
  20118. static="false" final="true" visibility="public"
  20119. deprecated="not deprecated">
  20120. <param name="recordName" type="java.lang.String"/>
  20121. <doc>
  20122. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  20123. Throws an exception if the metrics implementation is configured with a fixed
  20124. set of record names and <code>recordName</code> is not in that set.
  20125. @param recordName the name of the record
  20126. @throws MetricsException if recordName conflicts with configuration data]]>
  20127. </doc>
  20128. </method>
  20129. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  20130. abstract="false" native="false" synchronized="false"
  20131. static="false" final="false" visibility="protected"
  20132. deprecated="not deprecated">
  20133. <param name="recordName" type="java.lang.String"/>
  20134. <doc>
  20135. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  20136. @param recordName the name of the record
  20137. @return newly created instance of MetricsRecordImpl or subclass]]>
  20138. </doc>
  20139. </method>
  20140. <method name="registerUpdater"
  20141. abstract="false" native="false" synchronized="true"
  20142. static="false" final="false" visibility="public"
  20143. deprecated="not deprecated">
  20144. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  20145. <doc>
  20146. <![CDATA[Registers a callback to be called at time intervals determined by
  20147. the configuration.
  20148. @param updater object to be run periodically; it should update
  20149. some metrics records]]>
  20150. </doc>
  20151. </method>
  20152. <method name="unregisterUpdater"
  20153. abstract="false" native="false" synchronized="true"
  20154. static="false" final="false" visibility="public"
  20155. deprecated="not deprecated">
  20156. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  20157. <doc>
  20158. <![CDATA[Removes a callback, if it exists.
  20159. @param updater object to be removed from the callback list]]>
  20160. </doc>
  20161. </method>
  20162. <method name="emitRecord"
  20163. abstract="true" native="false" synchronized="false"
  20164. static="false" final="false" visibility="protected"
  20165. deprecated="not deprecated">
  20166. <param name="contextName" type="java.lang.String"/>
  20167. <param name="recordName" type="java.lang.String"/>
  20168. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  20169. <exception name="IOException" type="java.io.IOException"/>
  20170. <doc>
  20171. <![CDATA[Sends a record to the metrics system.]]>
  20172. </doc>
  20173. </method>
  20174. <method name="flush"
  20175. abstract="false" native="false" synchronized="false"
  20176. static="false" final="false" visibility="protected"
  20177. deprecated="not deprecated">
  20178. <exception name="IOException" type="java.io.IOException"/>
  20179. <doc>
  20180. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  20181. Subclasses may override it in order to perform some kind of flush.]]>
  20182. </doc>
  20183. </method>
  20184. <method name="update"
  20185. abstract="false" native="false" synchronized="false"
  20186. static="false" final="false" visibility="protected"
  20187. deprecated="not deprecated">
  20188. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20189. <doc>
  20190. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  20191. the internal table of metric data.]]>
  20192. </doc>
  20193. </method>
  20194. <method name="remove"
  20195. abstract="false" native="false" synchronized="false"
  20196. static="false" final="false" visibility="protected"
  20197. deprecated="not deprecated">
  20198. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20199. <doc>
  20200. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  20201. the internal table of metric data. A row matches if it has the same
  20202. tag names and values as record, but it may also have additional
  20203. tags.]]>
  20204. </doc>
  20205. </method>
  20206. <method name="getPeriod" return="int"
  20207. abstract="false" native="false" synchronized="false"
  20208. static="false" final="false" visibility="public"
  20209. deprecated="not deprecated">
  20210. <doc>
  20211. <![CDATA[Returns the timer period.]]>
  20212. </doc>
  20213. </method>
  20214. <method name="setPeriod"
  20215. abstract="false" native="false" synchronized="false"
  20216. static="false" final="false" visibility="protected"
  20217. deprecated="not deprecated">
  20218. <param name="period" type="int"/>
  20219. <doc>
  20220. <![CDATA[Sets the timer period]]>
  20221. </doc>
  20222. </method>
  20223. <doc>
  20224. <![CDATA[The main class of the Service Provider Interface. This class should be
  20225. extended in order to integrate the Metrics API with a specific metrics
  20226. client library. <p/>
  20227. This class implements the internal table of metric data, and the timer
  20228. on which data is to be sent to the metrics system. Subclasses must
  20229. override the abstract <code>emitRecord</code> method in order to transmit
  20230. the data. <p/>]]>
  20231. </doc>
  20232. </class>
  20233. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  20234. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  20235. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  20236. abstract="false"
  20237. static="false" final="false" visibility="public"
  20238. deprecated="not deprecated">
  20239. <constructor name="CompositeContext"
  20240. static="false" final="false" visibility="public"
  20241. deprecated="not deprecated">
  20242. </constructor>
  20243. <method name="init"
  20244. abstract="false" native="false" synchronized="false"
  20245. static="false" final="false" visibility="public"
  20246. deprecated="not deprecated">
  20247. <param name="contextName" type="java.lang.String"/>
  20248. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  20249. </method>
  20250. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  20251. abstract="false" native="false" synchronized="false"
  20252. static="false" final="false" visibility="public"
  20253. deprecated="not deprecated">
  20254. <param name="recordName" type="java.lang.String"/>
  20255. </method>
  20256. <method name="emitRecord"
  20257. abstract="false" native="false" synchronized="false"
  20258. static="false" final="false" visibility="protected"
  20259. deprecated="not deprecated">
  20260. <param name="contextName" type="java.lang.String"/>
  20261. <param name="recordName" type="java.lang.String"/>
  20262. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  20263. <exception name="IOException" type="java.io.IOException"/>
  20264. </method>
  20265. <method name="flush"
  20266. abstract="false" native="false" synchronized="false"
  20267. static="false" final="false" visibility="protected"
  20268. deprecated="not deprecated">
  20269. <exception name="IOException" type="java.io.IOException"/>
  20270. </method>
  20271. <method name="startMonitoring"
  20272. abstract="false" native="false" synchronized="false"
  20273. static="false" final="false" visibility="public"
  20274. deprecated="not deprecated">
  20275. <exception name="IOException" type="java.io.IOException"/>
  20276. </method>
  20277. <method name="stopMonitoring"
  20278. abstract="false" native="false" synchronized="false"
  20279. static="false" final="false" visibility="public"
  20280. deprecated="not deprecated">
  20281. </method>
  20282. <method name="isMonitoring" return="boolean"
  20283. abstract="false" native="false" synchronized="false"
  20284. static="false" final="false" visibility="public"
  20285. deprecated="not deprecated">
  20286. <doc>
  20287. <![CDATA[Return true if all subcontexts are monitoring.]]>
  20288. </doc>
  20289. </method>
  20290. <method name="close"
  20291. abstract="false" native="false" synchronized="false"
  20292. static="false" final="false" visibility="public"
  20293. deprecated="not deprecated">
  20294. </method>
  20295. <method name="registerUpdater"
  20296. abstract="false" native="false" synchronized="false"
  20297. static="false" final="false" visibility="public"
  20298. deprecated="not deprecated">
  20299. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  20300. </method>
  20301. <method name="unregisterUpdater"
  20302. abstract="false" native="false" synchronized="false"
  20303. static="false" final="false" visibility="public"
  20304. deprecated="not deprecated">
  20305. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  20306. </method>
  20307. </class>
  20308. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  20309. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  20310. <class name="MetricsRecordImpl" extends="java.lang.Object"
  20311. abstract="false"
  20312. static="false" final="false" visibility="public"
  20313. deprecated="not deprecated">
  20314. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  20315. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  20316. static="false" final="false" visibility="protected"
  20317. deprecated="not deprecated">
  20318. <doc>
  20319. <![CDATA[Creates a new instance of FileRecord]]>
  20320. </doc>
  20321. </constructor>
  20322. <method name="getRecordName" return="java.lang.String"
  20323. abstract="false" native="false" synchronized="false"
  20324. static="false" final="false" visibility="public"
  20325. deprecated="not deprecated">
  20326. <doc>
  20327. <![CDATA[Returns the record name.
  20328. @return the record name]]>
  20329. </doc>
  20330. </method>
  20331. <method name="setTag"
  20332. abstract="false" native="false" synchronized="false"
  20333. static="false" final="false" visibility="public"
  20334. deprecated="not deprecated">
  20335. <param name="tagName" type="java.lang.String"/>
  20336. <param name="tagValue" type="java.lang.String"/>
  20337. <doc>
  20338. <![CDATA[Sets the named tag to the specified value.
  20339. @param tagName name of the tag
  20340. @param tagValue new value of the tag
  20341. @throws MetricsException if the tagName conflicts with the configuration]]>
  20342. </doc>
  20343. </method>
  20344. <method name="setTag"
  20345. abstract="false" native="false" synchronized="false"
  20346. static="false" final="false" visibility="public"
  20347. deprecated="not deprecated">
  20348. <param name="tagName" type="java.lang.String"/>
  20349. <param name="tagValue" type="int"/>
  20350. <doc>
  20351. <![CDATA[Sets the named tag to the specified value.
  20352. @param tagName name of the tag
  20353. @param tagValue new value of the tag
  20354. @throws MetricsException if the tagName conflicts with the configuration]]>
  20355. </doc>
  20356. </method>
  20357. <method name="setTag"
  20358. abstract="false" native="false" synchronized="false"
  20359. static="false" final="false" visibility="public"
  20360. deprecated="not deprecated">
  20361. <param name="tagName" type="java.lang.String"/>
  20362. <param name="tagValue" type="long"/>
  20363. <doc>
  20364. <![CDATA[Sets the named tag to the specified value.
  20365. @param tagName name of the tag
  20366. @param tagValue new value of the tag
  20367. @throws MetricsException if the tagName conflicts with the configuration]]>
  20368. </doc>
  20369. </method>
  20370. <method name="setTag"
  20371. abstract="false" native="false" synchronized="false"
  20372. static="false" final="false" visibility="public"
  20373. deprecated="not deprecated">
  20374. <param name="tagName" type="java.lang.String"/>
  20375. <param name="tagValue" type="short"/>
  20376. <doc>
  20377. <![CDATA[Sets the named tag to the specified value.
  20378. @param tagName name of the tag
  20379. @param tagValue new value of the tag
  20380. @throws MetricsException if the tagName conflicts with the configuration]]>
  20381. </doc>
  20382. </method>
  20383. <method name="setTag"
  20384. abstract="false" native="false" synchronized="false"
  20385. static="false" final="false" visibility="public"
  20386. deprecated="not deprecated">
  20387. <param name="tagName" type="java.lang.String"/>
  20388. <param name="tagValue" type="byte"/>
  20389. <doc>
  20390. <![CDATA[Sets the named tag to the specified value.
  20391. @param tagName name of the tag
  20392. @param tagValue new value of the tag
  20393. @throws MetricsException if the tagName conflicts with the configuration]]>
  20394. </doc>
  20395. </method>
  20396. <method name="removeTag"
  20397. abstract="false" native="false" synchronized="false"
  20398. static="false" final="false" visibility="public"
  20399. deprecated="not deprecated">
  20400. <param name="tagName" type="java.lang.String"/>
  20401. <doc>
  20402. <![CDATA[Removes any tag of the specified name.]]>
  20403. </doc>
  20404. </method>
  20405. <method name="setMetric"
  20406. abstract="false" native="false" synchronized="false"
  20407. static="false" final="false" visibility="public"
  20408. deprecated="not deprecated">
  20409. <param name="metricName" type="java.lang.String"/>
  20410. <param name="metricValue" type="int"/>
  20411. <doc>
  20412. <![CDATA[Sets the named metric to the specified value.
  20413. @param metricName name of the metric
  20414. @param metricValue new value of the metric
  20415. @throws MetricsException if the metricName or the type of the metricValue
  20416. conflicts with the configuration]]>
  20417. </doc>
  20418. </method>
  20419. <method name="setMetric"
  20420. abstract="false" native="false" synchronized="false"
  20421. static="false" final="false" visibility="public"
  20422. deprecated="not deprecated">
  20423. <param name="metricName" type="java.lang.String"/>
  20424. <param name="metricValue" type="long"/>
  20425. <doc>
  20426. <![CDATA[Sets the named metric to the specified value.
  20427. @param metricName name of the metric
  20428. @param metricValue new value of the metric
  20429. @throws MetricsException if the metricName or the type of the metricValue
  20430. conflicts with the configuration]]>
  20431. </doc>
  20432. </method>
  20433. <method name="setMetric"
  20434. abstract="false" native="false" synchronized="false"
  20435. static="false" final="false" visibility="public"
  20436. deprecated="not deprecated">
  20437. <param name="metricName" type="java.lang.String"/>
  20438. <param name="metricValue" type="short"/>
  20439. <doc>
  20440. <![CDATA[Sets the named metric to the specified value.
  20441. @param metricName name of the metric
  20442. @param metricValue new value of the metric
  20443. @throws MetricsException if the metricName or the type of the metricValue
  20444. conflicts with the configuration]]>
  20445. </doc>
  20446. </method>
  20447. <method name="setMetric"
  20448. abstract="false" native="false" synchronized="false"
  20449. static="false" final="false" visibility="public"
  20450. deprecated="not deprecated">
  20451. <param name="metricName" type="java.lang.String"/>
  20452. <param name="metricValue" type="byte"/>
  20453. <doc>
  20454. <![CDATA[Sets the named metric to the specified value.
  20455. @param metricName name of the metric
  20456. @param metricValue new value of the metric
  20457. @throws MetricsException if the metricName or the type of the metricValue
  20458. conflicts with the configuration]]>
  20459. </doc>
  20460. </method>
  20461. <method name="setMetric"
  20462. abstract="false" native="false" synchronized="false"
  20463. static="false" final="false" visibility="public"
  20464. deprecated="not deprecated">
  20465. <param name="metricName" type="java.lang.String"/>
  20466. <param name="metricValue" type="float"/>
  20467. <doc>
  20468. <![CDATA[Sets the named metric to the specified value.
  20469. @param metricName name of the metric
  20470. @param metricValue new value of the metric
  20471. @throws MetricsException if the metricName or the type of the metricValue
  20472. conflicts with the configuration]]>
  20473. </doc>
  20474. </method>
  20475. <method name="incrMetric"
  20476. abstract="false" native="false" synchronized="false"
  20477. static="false" final="false" visibility="public"
  20478. deprecated="not deprecated">
  20479. <param name="metricName" type="java.lang.String"/>
  20480. <param name="metricValue" type="int"/>
  20481. <doc>
  20482. <![CDATA[Increments the named metric by the specified value.
  20483. @param metricName name of the metric
  20484. @param metricValue incremental value
  20485. @throws MetricsException if the metricName or the type of the metricValue
  20486. conflicts with the configuration]]>
  20487. </doc>
  20488. </method>
  20489. <method name="incrMetric"
  20490. abstract="false" native="false" synchronized="false"
  20491. static="false" final="false" visibility="public"
  20492. deprecated="not deprecated">
  20493. <param name="metricName" type="java.lang.String"/>
  20494. <param name="metricValue" type="long"/>
  20495. <doc>
  20496. <![CDATA[Increments the named metric by the specified value.
  20497. @param metricName name of the metric
  20498. @param metricValue incremental value
  20499. @throws MetricsException if the metricName or the type of the metricValue
  20500. conflicts with the configuration]]>
  20501. </doc>
  20502. </method>
  20503. <method name="incrMetric"
  20504. abstract="false" native="false" synchronized="false"
  20505. static="false" final="false" visibility="public"
  20506. deprecated="not deprecated">
  20507. <param name="metricName" type="java.lang.String"/>
  20508. <param name="metricValue" type="short"/>
  20509. <doc>
  20510. <![CDATA[Increments the named metric by the specified value.
  20511. @param metricName name of the metric
  20512. @param metricValue incremental value
  20513. @throws MetricsException if the metricName or the type of the metricValue
  20514. conflicts with the configuration]]>
  20515. </doc>
  20516. </method>
  20517. <method name="incrMetric"
  20518. abstract="false" native="false" synchronized="false"
  20519. static="false" final="false" visibility="public"
  20520. deprecated="not deprecated">
  20521. <param name="metricName" type="java.lang.String"/>
  20522. <param name="metricValue" type="byte"/>
  20523. <doc>
  20524. <![CDATA[Increments the named metric by the specified value.
  20525. @param metricName name of the metric
  20526. @param metricValue incremental value
  20527. @throws MetricsException if the metricName or the type of the metricValue
  20528. conflicts with the configuration]]>
  20529. </doc>
  20530. </method>
  20531. <method name="incrMetric"
  20532. abstract="false" native="false" synchronized="false"
  20533. static="false" final="false" visibility="public"
  20534. deprecated="not deprecated">
  20535. <param name="metricName" type="java.lang.String"/>
  20536. <param name="metricValue" type="float"/>
  20537. <doc>
  20538. <![CDATA[Increments the named metric by the specified value.
  20539. @param metricName name of the metric
  20540. @param metricValue incremental value
  20541. @throws MetricsException if the metricName or the type of the metricValue
  20542. conflicts with the configuration]]>
  20543. </doc>
  20544. </method>
  20545. <method name="update"
  20546. abstract="false" native="false" synchronized="false"
  20547. static="false" final="false" visibility="public"
  20548. deprecated="not deprecated">
  20549. <doc>
  20550. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  20551. If the tag values match an existing row, that row is updated;
  20552. otherwise, a new row is added.]]>
  20553. </doc>
  20554. </method>
  20555. <method name="remove"
  20556. abstract="false" native="false" synchronized="false"
  20557. static="false" final="false" visibility="public"
  20558. deprecated="not deprecated">
  20559. <doc>
  20560. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  20561. that equal the tags that have been set on this record.]]>
  20562. </doc>
  20563. </method>
  20564. <doc>
  20565. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  20566. from which it was created, and delegates back to it on <code>update</code>
  20567. and <code>remove()</code>.]]>
  20568. </doc>
  20569. </class>
  20570. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  20571. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  20572. <class name="MetricValue" extends="java.lang.Object"
  20573. abstract="false"
  20574. static="false" final="false" visibility="public"
  20575. deprecated="not deprecated">
  20576. <constructor name="MetricValue" type="java.lang.Number, boolean"
  20577. static="false" final="false" visibility="public"
  20578. deprecated="not deprecated">
  20579. <doc>
  20580. <![CDATA[Creates a new instance of MetricValue]]>
  20581. </doc>
  20582. </constructor>
  20583. <method name="isIncrement" return="boolean"
  20584. abstract="false" native="false" synchronized="false"
  20585. static="false" final="false" visibility="public"
  20586. deprecated="not deprecated">
  20587. </method>
  20588. <method name="isAbsolute" return="boolean"
  20589. abstract="false" native="false" synchronized="false"
  20590. static="false" final="false" visibility="public"
  20591. deprecated="not deprecated">
  20592. </method>
  20593. <method name="getNumber" return="java.lang.Number"
  20594. abstract="false" native="false" synchronized="false"
  20595. static="false" final="false" visibility="public"
  20596. deprecated="not deprecated">
  20597. </method>
  20598. <field name="ABSOLUTE" type="boolean"
  20599. transient="false" volatile="false"
  20600. static="true" final="true" visibility="public"
  20601. deprecated="not deprecated">
  20602. </field>
  20603. <field name="INCREMENT" type="boolean"
  20604. transient="false" volatile="false"
  20605. static="true" final="true" visibility="public"
  20606. deprecated="not deprecated">
  20607. </field>
  20608. <doc>
  20609. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  20610. </doc>
  20611. </class>
  20612. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  20613. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  20614. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  20615. abstract="false"
  20616. static="false" final="false" visibility="public"
  20617. deprecated="not deprecated">
  20618. <constructor name="NullContext"
  20619. static="false" final="false" visibility="public"
  20620. deprecated="not deprecated">
  20621. <doc>
  20622. <![CDATA[Creates a new instance of NullContext]]>
  20623. </doc>
  20624. </constructor>
  20625. <method name="startMonitoring"
  20626. abstract="false" native="false" synchronized="false"
  20627. static="false" final="false" visibility="public"
  20628. deprecated="not deprecated">
  20629. <doc>
  20630. <![CDATA[Do-nothing version of startMonitoring]]>
  20631. </doc>
  20632. </method>
  20633. <method name="emitRecord"
  20634. abstract="false" native="false" synchronized="false"
  20635. static="false" final="false" visibility="protected"
  20636. deprecated="not deprecated">
  20637. <param name="contextName" type="java.lang.String"/>
  20638. <param name="recordName" type="java.lang.String"/>
  20639. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  20640. <doc>
  20641. <![CDATA[Do-nothing version of emitRecord]]>
  20642. </doc>
  20643. </method>
  20644. <method name="update"
  20645. abstract="false" native="false" synchronized="false"
  20646. static="false" final="false" visibility="protected"
  20647. deprecated="not deprecated">
  20648. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20649. <doc>
  20650. <![CDATA[Do-nothing version of update]]>
  20651. </doc>
  20652. </method>
  20653. <method name="remove"
  20654. abstract="false" native="false" synchronized="false"
  20655. static="false" final="false" visibility="protected"
  20656. deprecated="not deprecated">
  20657. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20658. <doc>
  20659. <![CDATA[Do-nothing version of remove]]>
  20660. </doc>
  20661. </method>
  20662. <doc>
  20663. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  20664. default context, so that no performance data is emitted if no configuration
  20665. data is found.]]>
  20666. </doc>
  20667. </class>
  20668. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  20669. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  20670. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  20671. abstract="false"
  20672. static="false" final="false" visibility="public"
  20673. deprecated="not deprecated">
  20674. <constructor name="NullContextWithUpdateThread"
  20675. static="false" final="false" visibility="public"
  20676. deprecated="not deprecated">
  20677. <doc>
  20678. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  20679. </doc>
  20680. </constructor>
  20681. <method name="init"
  20682. abstract="false" native="false" synchronized="false"
  20683. static="false" final="false" visibility="public"
  20684. deprecated="not deprecated">
  20685. <param name="contextName" type="java.lang.String"/>
  20686. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  20687. </method>
  20688. <method name="emitRecord"
  20689. abstract="false" native="false" synchronized="false"
  20690. static="false" final="false" visibility="protected"
  20691. deprecated="not deprecated">
  20692. <param name="contextName" type="java.lang.String"/>
  20693. <param name="recordName" type="java.lang.String"/>
  20694. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  20695. <doc>
  20696. <![CDATA[Do-nothing version of emitRecord]]>
  20697. </doc>
  20698. </method>
  20699. <method name="update"
  20700. abstract="false" native="false" synchronized="false"
  20701. static="false" final="false" visibility="protected"
  20702. deprecated="not deprecated">
  20703. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20704. <doc>
  20705. <![CDATA[Do-nothing version of update]]>
  20706. </doc>
  20707. </method>
  20708. <method name="remove"
  20709. abstract="false" native="false" synchronized="false"
  20710. static="false" final="false" visibility="protected"
  20711. deprecated="not deprecated">
  20712. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20713. <doc>
  20714. <![CDATA[Do-nothing version of remove]]>
  20715. </doc>
  20716. </method>
  20717. <doc>
  20718. <![CDATA[A null context which has a thread calling
  20719. periodically when monitoring is started. This keeps the data sampled
  20720. correctly.
  20721. In all other respects, this is like the NULL context: No data is emitted.
  20722. This is suitable for Monitoring systems like JMX which reads the metrics
  20723. when someone reads the data from JMX.
  20724. The default impl of start and stop monitoring:
  20725. is the AbstractMetricsContext is good enough.]]>
  20726. </doc>
  20727. </class>
  20728. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  20729. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  20730. <class name="OutputRecord" extends="java.lang.Object"
  20731. abstract="false"
  20732. static="false" final="false" visibility="public"
  20733. deprecated="not deprecated">
  20734. <method name="getTagNames" return="java.util.Set"
  20735. abstract="false" native="false" synchronized="false"
  20736. static="false" final="false" visibility="public"
  20737. deprecated="not deprecated">
  20738. <doc>
  20739. <![CDATA[Returns the set of tag names]]>
  20740. </doc>
  20741. </method>
  20742. <method name="getTag" return="java.lang.Object"
  20743. abstract="false" native="false" synchronized="false"
  20744. static="false" final="false" visibility="public"
  20745. deprecated="not deprecated">
  20746. <param name="name" type="java.lang.String"/>
  20747. <doc>
  20748. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  20749. @return the tag value, or null if there is no such tag]]>
  20750. </doc>
  20751. </method>
  20752. <method name="getMetricNames" return="java.util.Set"
  20753. abstract="false" native="false" synchronized="false"
  20754. static="false" final="false" visibility="public"
  20755. deprecated="not deprecated">
  20756. <doc>
  20757. <![CDATA[Returns the set of metric names.]]>
  20758. </doc>
  20759. </method>
  20760. <method name="getMetric" return="java.lang.Number"
  20761. abstract="false" native="false" synchronized="false"
  20762. static="false" final="false" visibility="public"
  20763. deprecated="not deprecated">
  20764. <param name="name" type="java.lang.String"/>
  20765. <doc>
  20766. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  20767. </doc>
  20768. </method>
  20769. <doc>
  20770. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  20771. </doc>
  20772. </class>
  20773. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  20774. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  20775. <class name="Util" extends="java.lang.Object"
  20776. abstract="false"
  20777. static="false" final="false" visibility="public"
  20778. deprecated="not deprecated">
  20779. <method name="parse" return="java.util.List"
  20780. abstract="false" native="false" synchronized="false"
  20781. static="true" final="false" visibility="public"
  20782. deprecated="not deprecated">
  20783. <param name="specs" type="java.lang.String"/>
  20784. <param name="defaultPort" type="int"/>
  20785. <doc>
  20786. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  20787. of the form <i>hostname</i> or <i>hostname:port</i>. If
  20788. the specs string is null, defaults to localhost:defaultPort.
  20789. @return a list of InetSocketAddress objects.]]>
  20790. </doc>
  20791. </method>
  20792. <doc>
  20793. <![CDATA[Static utility methods]]>
  20794. </doc>
  20795. </class>
  20796. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  20797. <doc>
  20798. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  20799. an interface allowing a variety of metrics reporting implementations to be
  20800. plugged in to the Metrics API. Examples of such implementations can be found
  20801. in the packages <code>org.apache.hadoop.metrics.file</code> and
  20802. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  20803. Plugging in an implementation involves writing a concrete subclass of
  20804. <code>AbstractMetricsContext</code>. The subclass should get its
  20805. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  20806. method.]]>
  20807. </doc>
  20808. </package>
  20809. <package name="org.apache.hadoop.metrics.util">
  20810. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  20811. <class name="MBeanUtil" extends="java.lang.Object"
  20812. abstract="false"
  20813. static="false" final="false" visibility="public"
  20814. deprecated="not deprecated">
  20815. <constructor name="MBeanUtil"
  20816. static="false" final="false" visibility="public"
  20817. deprecated="not deprecated">
  20818. </constructor>
  20819. <method name="registerMBean" return="javax.management.ObjectName"
  20820. abstract="false" native="false" synchronized="false"
  20821. static="true" final="false" visibility="public"
  20822. deprecated="not deprecated">
  20823. <param name="serviceName" type="java.lang.String"/>
  20824. <param name="nameName" type="java.lang.String"/>
  20825. <param name="theMbean" type="java.lang.Object"/>
  20826. <doc>
  20827. <![CDATA[Register the MBean using our standard MBeanName format
  20828. "hadoop:service=<serviceName>,name=<nameName>"
  20829. Where the <serviceName> and <nameName> are the supplied parameters
  20830. @param serviceName
  20831. @param nameName
  20832. @param theMbean - the MBean to register
  20833. @return the named used to register the MBean]]>
  20834. </doc>
  20835. </method>
  20836. <method name="unregisterMBean"
  20837. abstract="false" native="false" synchronized="false"
  20838. static="true" final="false" visibility="public"
  20839. deprecated="not deprecated">
  20840. <param name="mbeanName" type="javax.management.ObjectName"/>
  20841. </method>
  20842. <doc>
  20843. <![CDATA[This util class provides a method to register an MBean using
  20844. our standard naming convention as described in the doc
  20845. for {link {@link #registerMBean(String, String, Object)}]]>
  20846. </doc>
  20847. </class>
  20848. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  20849. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  20850. <class name="MetricsBase" extends="java.lang.Object"
  20851. abstract="true"
  20852. static="false" final="false" visibility="public"
  20853. deprecated="not deprecated">
  20854. <constructor name="MetricsBase" type="java.lang.String"
  20855. static="false" final="false" visibility="protected"
  20856. deprecated="not deprecated">
  20857. </constructor>
  20858. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  20859. static="false" final="false" visibility="protected"
  20860. deprecated="not deprecated">
  20861. </constructor>
  20862. <method name="pushMetric"
  20863. abstract="true" native="false" synchronized="false"
  20864. static="false" final="false" visibility="public"
  20865. deprecated="not deprecated">
  20866. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  20867. </method>
  20868. <method name="getName" return="java.lang.String"
  20869. abstract="false" native="false" synchronized="false"
  20870. static="false" final="false" visibility="public"
  20871. deprecated="not deprecated">
  20872. </method>
  20873. <method name="getDescription" return="java.lang.String"
  20874. abstract="false" native="false" synchronized="false"
  20875. static="false" final="false" visibility="public"
  20876. deprecated="not deprecated">
  20877. </method>
  20878. <field name="NO_DESCRIPTION" type="java.lang.String"
  20879. transient="false" volatile="false"
  20880. static="true" final="true" visibility="public"
  20881. deprecated="not deprecated">
  20882. </field>
  20883. <doc>
  20884. <![CDATA[This is base class for all metrics]]>
  20885. </doc>
  20886. </class>
  20887. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  20888. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  20889. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  20890. abstract="true"
  20891. static="false" final="false" visibility="public"
  20892. deprecated="not deprecated">
  20893. <implements name="javax.management.DynamicMBean"/>
  20894. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  20895. static="false" final="false" visibility="protected"
  20896. deprecated="not deprecated">
  20897. </constructor>
  20898. <method name="getAttribute" return="java.lang.Object"
  20899. abstract="false" native="false" synchronized="false"
  20900. static="false" final="false" visibility="public"
  20901. deprecated="not deprecated">
  20902. <param name="attributeName" type="java.lang.String"/>
  20903. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  20904. <exception name="MBeanException" type="javax.management.MBeanException"/>
  20905. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  20906. </method>
  20907. <method name="getAttributes" return="javax.management.AttributeList"
  20908. abstract="false" native="false" synchronized="false"
  20909. static="false" final="false" visibility="public"
  20910. deprecated="not deprecated">
  20911. <param name="attributeNames" type="java.lang.String[]"/>
  20912. </method>
  20913. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  20914. abstract="false" native="false" synchronized="false"
  20915. static="false" final="false" visibility="public"
  20916. deprecated="not deprecated">
  20917. </method>
  20918. <method name="invoke" return="java.lang.Object"
  20919. abstract="false" native="false" synchronized="false"
  20920. static="false" final="false" visibility="public"
  20921. deprecated="not deprecated">
  20922. <param name="actionName" type="java.lang.String"/>
  20923. <param name="parms" type="java.lang.Object[]"/>
  20924. <param name="signature" type="java.lang.String[]"/>
  20925. <exception name="MBeanException" type="javax.management.MBeanException"/>
  20926. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  20927. </method>
  20928. <method name="setAttribute"
  20929. abstract="false" native="false" synchronized="false"
  20930. static="false" final="false" visibility="public"
  20931. deprecated="not deprecated">
  20932. <param name="attribute" type="javax.management.Attribute"/>
  20933. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  20934. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  20935. <exception name="MBeanException" type="javax.management.MBeanException"/>
  20936. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  20937. </method>
  20938. <method name="setAttributes" return="javax.management.AttributeList"
  20939. abstract="false" native="false" synchronized="false"
  20940. static="false" final="false" visibility="public"
  20941. deprecated="not deprecated">
  20942. <param name="attributes" type="javax.management.AttributeList"/>
  20943. </method>
  20944. <doc>
  20945. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  20946. metrics.
  20947. The metrics constructors registers metrics in a registry.
  20948. Different categories of metrics should be in differnt classes with their own
  20949. registry (as in NameNodeMetrics and DataNodeMetrics).
  20950. Then the MBean can be created passing the registry to the constructor.
  20951. The MBean should be then registered using a mbean name (example):
  20952. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  20953. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  20954. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  20955. "TestStatistics", theMBean);]]>
  20956. </doc>
  20957. </class>
  20958. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  20959. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  20960. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  20961. abstract="false"
  20962. static="false" final="false" visibility="public"
  20963. deprecated="not deprecated">
  20964. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  20965. static="false" final="false" visibility="public"
  20966. deprecated="not deprecated">
  20967. <doc>
  20968. <![CDATA[Constructor - create a new metric
  20969. @param nam the name of the metrics to be used to publish the metric
  20970. @param registry - where the metrics object will be registered]]>
  20971. </doc>
  20972. </constructor>
  20973. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  20974. static="false" final="false" visibility="public"
  20975. deprecated="not deprecated">
  20976. <doc>
  20977. <![CDATA[Constructor - create a new metric
  20978. @param nam the name of the metrics to be used to publish the metric
  20979. @param registry - where the metrics object will be registered
  20980. A description of {@link #NO_DESCRIPTION} is used]]>
  20981. </doc>
  20982. </constructor>
  20983. <method name="set"
  20984. abstract="false" native="false" synchronized="true"
  20985. static="false" final="false" visibility="public"
  20986. deprecated="not deprecated">
  20987. <param name="newValue" type="int"/>
  20988. <doc>
  20989. <![CDATA[Set the value
  20990. @param newValue]]>
  20991. </doc>
  20992. </method>
  20993. <method name="get" return="int"
  20994. abstract="false" native="false" synchronized="true"
  20995. static="false" final="false" visibility="public"
  20996. deprecated="not deprecated">
  20997. <doc>
  20998. <![CDATA[Get value
  20999. @return the value last set]]>
  21000. </doc>
  21001. </method>
  21002. <method name="pushMetric"
  21003. abstract="false" native="false" synchronized="true"
  21004. static="false" final="false" visibility="public"
  21005. deprecated="not deprecated">
  21006. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  21007. <doc>
  21008. <![CDATA[Push the metric to the mr.
  21009. The metric is pushed only if it was updated since last push
  21010. Note this does NOT push to JMX
  21011. (JMX gets the info via {@link #get()}
  21012. @param mr]]>
  21013. </doc>
  21014. </method>
  21015. <doc>
  21016. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  21017. but changes only when it is set.
  21018. Each time its value is set, it is published only *once* at the next update
  21019. call.]]>
  21020. </doc>
  21021. </class>
  21022. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  21023. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  21024. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  21025. abstract="false"
  21026. static="false" final="false" visibility="public"
  21027. deprecated="not deprecated">
  21028. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  21029. static="false" final="false" visibility="public"
  21030. deprecated="not deprecated">
  21031. <doc>
  21032. <![CDATA[Constructor - create a new metric
  21033. @param nam the name of the metrics to be used to publish the metric
  21034. @param registry - where the metrics object will be registered]]>
  21035. </doc>
  21036. </constructor>
  21037. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  21038. static="false" final="false" visibility="public"
  21039. deprecated="not deprecated">
  21040. <doc>
  21041. <![CDATA[Constructor - create a new metric
  21042. @param nam the name of the metrics to be used to publish the metric
  21043. @param registry - where the metrics object will be registered
  21044. A description of {@link #NO_DESCRIPTION} is used]]>
  21045. </doc>
  21046. </constructor>
  21047. <method name="set"
  21048. abstract="false" native="false" synchronized="true"
  21049. static="false" final="false" visibility="public"
  21050. deprecated="not deprecated">
  21051. <param name="newValue" type="long"/>
  21052. <doc>
  21053. <![CDATA[Set the value
  21054. @param newValue]]>
  21055. </doc>
  21056. </method>
  21057. <method name="get" return="long"
  21058. abstract="false" native="false" synchronized="true"
  21059. static="false" final="false" visibility="public"
  21060. deprecated="not deprecated">
  21061. <doc>
  21062. <![CDATA[Get value
  21063. @return the value last set]]>
  21064. </doc>
  21065. </method>
  21066. <method name="pushMetric"
  21067. abstract="false" native="false" synchronized="true"
  21068. static="false" final="false" visibility="public"
  21069. deprecated="not deprecated">
  21070. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  21071. <doc>
  21072. <![CDATA[Push the metric to the mr.
  21073. The metric is pushed only if it was updated since last push
  21074. Note this does NOT push to JMX
  21075. (JMX gets the info via {@link #get()}
  21076. @param mr]]>
  21077. </doc>
  21078. </method>
  21079. <doc>
  21080. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  21081. but changes only when it is set.
  21082. Each time its value is set, it is published only *once* at the next update
  21083. call.]]>
  21084. </doc>
  21085. </class>
  21086. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  21087. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  21088. <class name="MetricsRegistry" extends="java.lang.Object"
  21089. abstract="false"
  21090. static="false" final="false" visibility="public"
  21091. deprecated="not deprecated">
  21092. <constructor name="MetricsRegistry"
  21093. static="false" final="false" visibility="public"
  21094. deprecated="not deprecated">
  21095. </constructor>
  21096. <method name="size" return="int"
  21097. abstract="false" native="false" synchronized="false"
  21098. static="false" final="false" visibility="public"
  21099. deprecated="not deprecated">
  21100. <doc>
  21101. <![CDATA[@return number of metrics in the registry]]>
  21102. </doc>
  21103. </method>
  21104. <method name="add"
  21105. abstract="false" native="false" synchronized="true"
  21106. static="false" final="false" visibility="public"
  21107. deprecated="not deprecated">
  21108. <param name="metricsName" type="java.lang.String"/>
  21109. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  21110. <doc>
  21111. <![CDATA[Add a new metrics to the registry
  21112. @param metricsName - the name
  21113. @param theMetricsObj - the metrics
  21114. @throws IllegalArgumentException if a name is already registered]]>
  21115. </doc>
  21116. </method>
  21117. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  21118. abstract="false" native="false" synchronized="true"
  21119. static="false" final="false" visibility="public"
  21120. deprecated="not deprecated">
  21121. <param name="metricsName" type="java.lang.String"/>
  21122. <doc>
  21123. <![CDATA[@param metricsName
  21124. @return the metrics if there is one registered by the supplied name.
  21125. Returns null if none is registered]]>
  21126. </doc>
  21127. </method>
  21128. <method name="getKeyList" return="java.util.Collection"
  21129. abstract="false" native="false" synchronized="true"
  21130. static="false" final="false" visibility="public"
  21131. deprecated="not deprecated">
  21132. <doc>
  21133. <![CDATA[@return the list of metrics names]]>
  21134. </doc>
  21135. </method>
  21136. <method name="getMetricsList" return="java.util.Collection"
  21137. abstract="false" native="false" synchronized="true"
  21138. static="false" final="false" visibility="public"
  21139. deprecated="not deprecated">
  21140. <doc>
  21141. <![CDATA[@return the list of metrics]]>
  21142. </doc>
  21143. </method>
  21144. <doc>
  21145. <![CDATA[This is the registry for metrics.
  21146. Related set of metrics should be declared in a holding class and registered
  21147. in a registry for those metrics which is also stored in the the holding class.]]>
  21148. </doc>
  21149. </class>
  21150. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  21151. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  21152. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  21153. abstract="false"
  21154. static="false" final="false" visibility="public"
  21155. deprecated="not deprecated">
  21156. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  21157. static="false" final="false" visibility="public"
  21158. deprecated="not deprecated">
  21159. <doc>
  21160. <![CDATA[Constructor - create a new metric
  21161. @param nam the name of the metrics to be used to publish the metric
  21162. @param registry - where the metrics object will be registered
  21163. @param description - the description]]>
  21164. </doc>
  21165. </constructor>
  21166. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  21167. static="false" final="false" visibility="public"
  21168. deprecated="not deprecated">
  21169. <doc>
  21170. <![CDATA[Constructor - create a new metric
  21171. @param nam the name of the metrics to be used to publish the metric
  21172. @param registry - where the metrics object will be registered
  21173. A description of {@link #NO_DESCRIPTION} is used]]>
  21174. </doc>
  21175. </constructor>
  21176. <method name="inc"
  21177. abstract="false" native="false" synchronized="true"
  21178. static="false" final="false" visibility="public"
  21179. deprecated="not deprecated">
  21180. <param name="incr" type="int"/>
  21181. <doc>
  21182. <![CDATA[Inc metrics for incr vlaue
  21183. @param incr - number of operations]]>
  21184. </doc>
  21185. </method>
  21186. <method name="inc"
  21187. abstract="false" native="false" synchronized="true"
  21188. static="false" final="false" visibility="public"
  21189. deprecated="not deprecated">
  21190. <doc>
  21191. <![CDATA[Inc metrics by one]]>
  21192. </doc>
  21193. </method>
  21194. <method name="pushMetric"
  21195. abstract="false" native="false" synchronized="true"
  21196. static="false" final="false" visibility="public"
  21197. deprecated="not deprecated">
  21198. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  21199. <doc>
  21200. <![CDATA[Push the delta metrics to the mr.
  21201. The delta is since the last push/interval.
  21202. Note this does NOT push to JMX
  21203. (JMX gets the info via {@link #previousIntervalValue}
  21204. @param mr]]>
  21205. </doc>
  21206. </method>
  21207. <method name="getPreviousIntervalValue" return="int"
  21208. abstract="false" native="false" synchronized="true"
  21209. static="false" final="false" visibility="public"
  21210. deprecated="not deprecated">
  21211. <doc>
  21212. <![CDATA[The Value at the Previous interval
  21213. @return prev interval value]]>
  21214. </doc>
  21215. </method>
  21216. <method name="getCurrentIntervalValue" return="int"
  21217. abstract="false" native="false" synchronized="true"
  21218. static="false" final="false" visibility="public"
  21219. deprecated="not deprecated">
  21220. <doc>
  21221. <![CDATA[The Value at the current interval
  21222. @return prev interval value]]>
  21223. </doc>
  21224. </method>
  21225. <doc>
  21226. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  21227. varies over time (e.g. number of files created). The metrics is accumulated
  21228. over an interval (set in the metrics config file); the metrics is
  21229. published at the end of each interval and then
  21230. reset to zero. Hence the counter has the value in the current interval.
  21231. Note if one wants a time associated with the metric then use
  21232. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate]]>
  21233. </doc>
  21234. </class>
  21235. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  21236. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  21237. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  21238. abstract="false"
  21239. static="false" final="false" visibility="public"
  21240. deprecated="not deprecated">
  21241. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  21242. static="false" final="false" visibility="public"
  21243. deprecated="not deprecated">
  21244. <doc>
  21245. <![CDATA[Constructor - create a new metric
  21246. @param nam the name of the metrics to be used to publish the metric
  21247. @param registry - where the metrics object will be registered]]>
  21248. </doc>
  21249. </constructor>
  21250. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  21251. static="false" final="false" visibility="public"
  21252. deprecated="not deprecated">
  21253. <doc>
  21254. <![CDATA[Constructor - create a new metric
  21255. @param nam the name of the metrics to be used to publish the metric
  21256. @param registry - where the metrics object will be registered
  21257. A description of {@link #NO_DESCRIPTION} is used]]>
  21258. </doc>
  21259. </constructor>
  21260. <method name="inc"
  21261. abstract="false" native="false" synchronized="true"
  21262. static="false" final="false" visibility="public"
  21263. deprecated="not deprecated">
  21264. <param name="incr" type="long"/>
  21265. <doc>
  21266. <![CDATA[Inc metrics for incr vlaue
  21267. @param incr - number of operations]]>
  21268. </doc>
  21269. </method>
  21270. <method name="inc"
  21271. abstract="false" native="false" synchronized="true"
  21272. static="false" final="false" visibility="public"
  21273. deprecated="not deprecated">
  21274. <doc>
  21275. <![CDATA[Inc metrics by one]]>
  21276. </doc>
  21277. </method>
  21278. <method name="pushMetric"
  21279. abstract="false" native="false" synchronized="true"
  21280. static="false" final="false" visibility="public"
  21281. deprecated="not deprecated">
  21282. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  21283. <doc>
  21284. <![CDATA[Push the delta metrics to the mr.
  21285. The delta is since the last push/interval.
  21286. Note this does NOT push to JMX
  21287. (JMX gets the info via {@link #previousIntervalValue}
  21288. @param mr]]>
  21289. </doc>
  21290. </method>
  21291. <method name="getPreviousIntervalValue" return="long"
  21292. abstract="false" native="false" synchronized="true"
  21293. static="false" final="false" visibility="public"
  21294. deprecated="not deprecated">
  21295. <doc>
  21296. <![CDATA[The Value at the Previous interval
  21297. @return prev interval value]]>
  21298. </doc>
  21299. </method>
  21300. <method name="getCurrentIntervalValue" return="long"
  21301. abstract="false" native="false" synchronized="true"
  21302. static="false" final="false" visibility="public"
  21303. deprecated="not deprecated">
  21304. <doc>
  21305. <![CDATA[The Value at the current interval
  21306. @return prev interval value]]>
  21307. </doc>
  21308. </method>
  21309. <doc>
  21310. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  21311. varies over time (e.g. number of files created). The metrics is accumulated
  21312. over an interval (set in the metrics config file); the metrics is
  21313. published at the end of each interval and then
  21314. reset to zero. Hence the counter has the value in the current interval.
  21315. Note if one wants a time associated with the metric then use
  21316. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate]]>
  21317. </doc>
  21318. </class>
  21319. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  21320. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  21321. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  21322. abstract="false"
  21323. static="false" final="false" visibility="public"
  21324. deprecated="not deprecated">
  21325. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  21326. static="false" final="false" visibility="public"
  21327. deprecated="not deprecated">
  21328. <doc>
  21329. <![CDATA[Constructor - create a new metric
  21330. @param nam the name of the metrics to be used to publish the metric
  21331. @param registry - where the metrics object will be registered]]>
  21332. </doc>
  21333. </constructor>
  21334. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  21335. static="false" final="false" visibility="public"
  21336. deprecated="not deprecated">
  21337. <doc>
  21338. <![CDATA[Constructor - create a new metric
  21339. @param nam the name of the metrics to be used to publish the metric
  21340. @param registry - where the metrics object will be registered
  21341. A description of {@link #NO_DESCRIPTION} is used]]>
  21342. </doc>
  21343. </constructor>
  21344. <method name="inc"
  21345. abstract="false" native="false" synchronized="true"
  21346. static="false" final="false" visibility="public"
  21347. deprecated="not deprecated">
  21348. <param name="numOps" type="int"/>
  21349. <param name="time" type="long"/>
  21350. <doc>
  21351. <![CDATA[Increment the metrics for numOps operations
  21352. @param numOps - number of operations
  21353. @param time - time for numOps operations]]>
  21354. </doc>
  21355. </method>
  21356. <method name="inc"
  21357. abstract="false" native="false" synchronized="true"
  21358. static="false" final="false" visibility="public"
  21359. deprecated="not deprecated">
  21360. <param name="time" type="long"/>
  21361. <doc>
  21362. <![CDATA[Increment the metrics for one operation
  21363. @param time for one operation]]>
  21364. </doc>
  21365. </method>
  21366. <method name="pushMetric"
  21367. abstract="false" native="false" synchronized="true"
  21368. static="false" final="false" visibility="public"
  21369. deprecated="not deprecated">
  21370. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  21371. <doc>
  21372. <![CDATA[Push the delta metrics to the mr.
  21373. The delta is since the last push/interval.
  21374. Note this does NOT push to JMX
  21375. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  21376. {@link #getPreviousIntervalNumOps()}
  21377. @param mr]]>
  21378. </doc>
  21379. </method>
  21380. <method name="getPreviousIntervalNumOps" return="int"
  21381. abstract="false" native="false" synchronized="true"
  21382. static="false" final="false" visibility="public"
  21383. deprecated="not deprecated">
  21384. <doc>
  21385. <![CDATA[The number of operations in the previous interval
  21386. @return - ops in prev interval]]>
  21387. </doc>
  21388. </method>
  21389. <method name="getPreviousIntervalAverageTime" return="long"
  21390. abstract="false" native="false" synchronized="true"
  21391. static="false" final="false" visibility="public"
  21392. deprecated="not deprecated">
  21393. <doc>
  21394. <![CDATA[The average rate of an operation in the previous interval
  21395. @return - the average rate.]]>
  21396. </doc>
  21397. </method>
  21398. <method name="getMinTime" return="long"
  21399. abstract="false" native="false" synchronized="true"
  21400. static="false" final="false" visibility="public"
  21401. deprecated="not deprecated">
  21402. <doc>
  21403. <![CDATA[The min time for a single operation since the last reset
  21404. {@link #resetMinMax()}
  21405. @return min time for an operation]]>
  21406. </doc>
  21407. </method>
  21408. <method name="getMaxTime" return="long"
  21409. abstract="false" native="false" synchronized="true"
  21410. static="false" final="false" visibility="public"
  21411. deprecated="not deprecated">
  21412. <doc>
  21413. <![CDATA[The max time for a single operation since the last reset
  21414. {@link #resetMinMax()}
  21415. @return max time for an operation]]>
  21416. </doc>
  21417. </method>
  21418. <method name="resetMinMax"
  21419. abstract="false" native="false" synchronized="true"
  21420. static="false" final="false" visibility="public"
  21421. deprecated="not deprecated">
  21422. <doc>
  21423. <![CDATA[Reset the min max values]]>
  21424. </doc>
  21425. </method>
  21426. <doc>
  21427. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  21428. naturally varies over time (e.g. time taken to create a file).
  21429. The rate is averaged at each interval heart beat (the interval
  21430. is set in the metrics config file).
  21431. This class also keeps track of the min and max rates along with
  21432. a method to reset the min-max.]]>
  21433. </doc>
  21434. </class>
  21435. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  21436. </package>
  21437. <package name="org.apache.hadoop.net">
  21438. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  21439. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  21440. abstract="false"
  21441. static="false" final="false" visibility="public"
  21442. deprecated="not deprecated">
  21443. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  21444. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  21445. static="false" final="false" visibility="public"
  21446. deprecated="not deprecated">
  21447. </constructor>
  21448. <method name="resolve" return="java.util.List"
  21449. abstract="false" native="false" synchronized="false"
  21450. static="false" final="false" visibility="public"
  21451. deprecated="not deprecated">
  21452. <param name="names" type="java.util.List"/>
  21453. </method>
  21454. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  21455. transient="false" volatile="false"
  21456. static="false" final="false" visibility="protected"
  21457. deprecated="not deprecated">
  21458. </field>
  21459. <doc>
  21460. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  21461. raw DNSToSwitchMapping and stores the resolved network location in
  21462. a cache. The following calls to a resolved network location
  21463. will get its location from the cache.]]>
  21464. </doc>
  21465. </class>
  21466. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  21467. <!-- start class org.apache.hadoop.net.DNS -->
  21468. <class name="DNS" extends="java.lang.Object"
  21469. abstract="false"
  21470. static="false" final="false" visibility="public"
  21471. deprecated="not deprecated">
  21472. <constructor name="DNS"
  21473. static="false" final="false" visibility="public"
  21474. deprecated="not deprecated">
  21475. </constructor>
  21476. <method name="reverseDns" return="java.lang.String"
  21477. abstract="false" native="false" synchronized="false"
  21478. static="true" final="false" visibility="public"
  21479. deprecated="not deprecated">
  21480. <param name="hostIp" type="java.net.InetAddress"/>
  21481. <param name="ns" type="java.lang.String"/>
  21482. <exception name="NamingException" type="javax.naming.NamingException"/>
  21483. <doc>
  21484. <![CDATA[Returns the hostname associated with the specified IP address by the
  21485. provided nameserver.
  21486. @param hostIp
  21487. The address to reverse lookup
  21488. @param ns
  21489. The host name of a reachable DNS server
  21490. @return The host name associated with the provided IP
  21491. @throws NamingException
  21492. If a NamingException is encountered]]>
  21493. </doc>
  21494. </method>
  21495. <method name="getIPs" return="java.lang.String[]"
  21496. abstract="false" native="false" synchronized="false"
  21497. static="true" final="false" visibility="public"
  21498. deprecated="not deprecated">
  21499. <param name="strInterface" type="java.lang.String"/>
  21500. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21501. <doc>
  21502. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  21503. textual form.
  21504. @param strInterface
  21505. The name of the network interface to query (e.g. eth0)
  21506. @return A string vector of all the IPs associated with the provided
  21507. interface
  21508. @throws UnknownHostException
  21509. If an UnknownHostException is encountered in querying the
  21510. default interface]]>
  21511. </doc>
  21512. </method>
  21513. <method name="getDefaultIP" return="java.lang.String"
  21514. abstract="false" native="false" synchronized="false"
  21515. static="true" final="false" visibility="public"
  21516. deprecated="not deprecated">
  21517. <param name="strInterface" type="java.lang.String"/>
  21518. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21519. <doc>
  21520. <![CDATA[Returns the first available IP address associated with the provided
  21521. network interface
  21522. @param strInterface
  21523. The name of the network interface to query (e.g. eth0)
  21524. @return The IP address in text form
  21525. @throws UnknownHostException
  21526. If one is encountered in querying the default interface]]>
  21527. </doc>
  21528. </method>
  21529. <method name="getHosts" return="java.lang.String[]"
  21530. abstract="false" native="false" synchronized="false"
  21531. static="true" final="false" visibility="public"
  21532. deprecated="not deprecated">
  21533. <param name="strInterface" type="java.lang.String"/>
  21534. <param name="nameserver" type="java.lang.String"/>
  21535. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21536. <doc>
  21537. <![CDATA[Returns all the host names associated by the provided nameserver with the
  21538. address bound to the specified network interface
  21539. @param strInterface
  21540. The name of the network interface to query (e.g. eth0)
  21541. @param nameserver
  21542. The DNS host name
  21543. @return A string vector of all host names associated with the IPs tied to
  21544. the specified interface
  21545. @throws UnknownHostException]]>
  21546. </doc>
  21547. </method>
  21548. <method name="getHosts" return="java.lang.String[]"
  21549. abstract="false" native="false" synchronized="false"
  21550. static="true" final="false" visibility="public"
  21551. deprecated="not deprecated">
  21552. <param name="strInterface" type="java.lang.String"/>
  21553. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21554. <doc>
  21555. <![CDATA[Returns all the host names associated by the default nameserver with the
  21556. address bound to the specified network interface
  21557. @param strInterface
  21558. The name of the network interface to query (e.g. eth0)
  21559. @return The list of host names associated with IPs bound to the network
  21560. interface
  21561. @throws UnknownHostException
  21562. If one is encountered while querying the deault interface]]>
  21563. </doc>
  21564. </method>
  21565. <method name="getDefaultHost" return="java.lang.String"
  21566. abstract="false" native="false" synchronized="false"
  21567. static="true" final="false" visibility="public"
  21568. deprecated="not deprecated">
  21569. <param name="strInterface" type="java.lang.String"/>
  21570. <param name="nameserver" type="java.lang.String"/>
  21571. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21572. <doc>
  21573. <![CDATA[Returns the default (first) host name associated by the provided
  21574. nameserver with the address bound to the specified network interface
  21575. @param strInterface
  21576. The name of the network interface to query (e.g. eth0)
  21577. @param nameserver
  21578. The DNS host name
  21579. @return The default host names associated with IPs bound to the network
  21580. interface
  21581. @throws UnknownHostException
  21582. If one is encountered while querying the deault interface]]>
  21583. </doc>
  21584. </method>
  21585. <method name="getDefaultHost" return="java.lang.String"
  21586. abstract="false" native="false" synchronized="false"
  21587. static="true" final="false" visibility="public"
  21588. deprecated="not deprecated">
  21589. <param name="strInterface" type="java.lang.String"/>
  21590. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21591. <doc>
  21592. <![CDATA[Returns the default (first) host name associated by the default
  21593. nameserver with the address bound to the specified network interface
  21594. @param strInterface
  21595. The name of the network interface to query (e.g. eth0)
  21596. @return The default host name associated with IPs bound to the network
  21597. interface
  21598. @throws UnknownHostException
  21599. If one is encountered while querying the deault interface]]>
  21600. </doc>
  21601. </method>
  21602. <doc>
  21603. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  21604. the querying of specific network interfaces or nameservers.]]>
  21605. </doc>
  21606. </class>
  21607. <!-- end class org.apache.hadoop.net.DNS -->
  21608. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  21609. <interface name="DNSToSwitchMapping" abstract="true"
  21610. static="false" final="false" visibility="public"
  21611. deprecated="not deprecated">
  21612. <method name="resolve" return="java.util.List"
  21613. abstract="false" native="false" synchronized="false"
  21614. static="false" final="false" visibility="public"
  21615. deprecated="not deprecated">
  21616. <param name="names" type="java.util.List"/>
  21617. <doc>
  21618. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  21619. switch information (network paths). One-to-one correspondence must be
  21620. maintained between the elements in the lists.
  21621. Consider an element in the argument list - x.y.com. The switch information
  21622. that is returned must be a network path of the form /foo/rack,
  21623. where / is the root, and 'foo' is the switch where 'rack' is connected.
  21624. Note the hostname/ip-address is not part of the returned path.
  21625. The network topology of the cluster would determine the number of
  21626. components in the network path.
  21627. @param names
  21628. @return list of resolved network paths]]>
  21629. </doc>
  21630. </method>
  21631. <doc>
  21632. <![CDATA[An interface that should be implemented to allow pluggable
  21633. DNS-name/IP-address to RackID resolvers.]]>
  21634. </doc>
  21635. </interface>
  21636. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  21637. <!-- start class org.apache.hadoop.net.NetUtils -->
  21638. <class name="NetUtils" extends="java.lang.Object"
  21639. abstract="false"
  21640. static="false" final="false" visibility="public"
  21641. deprecated="not deprecated">
  21642. <constructor name="NetUtils"
  21643. static="false" final="false" visibility="public"
  21644. deprecated="not deprecated">
  21645. </constructor>
  21646. <method name="getSocketFactory" return="javax.net.SocketFactory"
  21647. abstract="false" native="false" synchronized="false"
  21648. static="true" final="false" visibility="public"
  21649. deprecated="not deprecated">
  21650. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21651. <param name="clazz" type="java.lang.Class"/>
  21652. <doc>
  21653. <![CDATA[Get the socket factory for the given class according to its
  21654. configuration parameter
  21655. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  21656. such parameter exists then fall back on the default socket factory as
  21657. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  21658. this default socket factory is not configured, then fall back on the JVM
  21659. default socket factory.
  21660. @param conf the configuration
  21661. @param clazz the class (usually a {@link VersionedProtocol})
  21662. @return a socket factory]]>
  21663. </doc>
  21664. </method>
  21665. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  21666. abstract="false" native="false" synchronized="false"
  21667. static="true" final="false" visibility="public"
  21668. deprecated="not deprecated">
  21669. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21670. <doc>
  21671. <![CDATA[Get the default socket factory as specified by the configuration
  21672. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  21673. @param conf the configuration
  21674. @return the default socket factory as specified in the configuration or
  21675. the JVM default socket factory if the configuration does not
  21676. contain a default socket factory property.]]>
  21677. </doc>
  21678. </method>
  21679. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  21680. abstract="false" native="false" synchronized="false"
  21681. static="true" final="false" visibility="public"
  21682. deprecated="not deprecated">
  21683. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21684. <param name="propValue" type="java.lang.String"/>
  21685. <doc>
  21686. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  21687. given proxy URI corresponds to an absence of configuration parameter,
  21688. returns null. If the URI is malformed raises an exception.
  21689. @param propValue the property which is the class name of the
  21690. SocketFactory to instantiate; assumed non null and non empty.
  21691. @return a socket factory as defined in the property value.]]>
  21692. </doc>
  21693. </method>
  21694. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  21695. abstract="false" native="false" synchronized="false"
  21696. static="true" final="false" visibility="public"
  21697. deprecated="not deprecated">
  21698. <param name="target" type="java.lang.String"/>
  21699. <doc>
  21700. <![CDATA[Util method to build socket addr from either:
  21701. <host>:<post>
  21702. <fs>://<host>:<port>/<path>]]>
  21703. </doc>
  21704. </method>
  21705. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  21706. abstract="false" native="false" synchronized="false"
  21707. static="true" final="false" visibility="public"
  21708. deprecated="not deprecated">
  21709. <param name="target" type="java.lang.String"/>
  21710. <param name="defaultPort" type="int"/>
  21711. <doc>
  21712. <![CDATA[Util method to build socket addr from either:
  21713. <host>
  21714. <host>:<post>
  21715. <fs>://<host>:<port>/<path>]]>
  21716. </doc>
  21717. </method>
  21718. <method name="getServerAddress" return="java.lang.String"
  21719. abstract="false" native="false" synchronized="false"
  21720. static="true" final="false" visibility="public"
  21721. deprecated="not deprecated">
  21722. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21723. <param name="oldBindAddressName" type="java.lang.String"/>
  21724. <param name="oldPortName" type="java.lang.String"/>
  21725. <param name="newBindAddressName" type="java.lang.String"/>
  21726. <doc>
  21727. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  21728. to a single colon separated one.
  21729. @param conf the configuration to check
  21730. @param oldBindAddressName the old address attribute name
  21731. @param oldPortName the old port attribute name
  21732. @param newBindAddressName the new combined name
  21733. @return the complete address from the configuration]]>
  21734. </doc>
  21735. </method>
  21736. <method name="addStaticResolution"
  21737. abstract="false" native="false" synchronized="false"
  21738. static="true" final="false" visibility="public"
  21739. deprecated="not deprecated">
  21740. <param name="host" type="java.lang.String"/>
  21741. <param name="resolvedName" type="java.lang.String"/>
  21742. <doc>
  21743. <![CDATA[Adds a static resolution for host. This can be used for setting up
  21744. hostnames with names that are fake to point to a well known host. For e.g.
  21745. in some testcases we require to have daemons with different hostnames
  21746. running on the same machine. In order to create connections to these
  21747. daemons, one can set up mappings from those hostnames to "localhost".
  21748. {@link NetUtils#getStaticResolution(String)} can be used to query for
  21749. the actual hostname.
  21750. @param host
  21751. @param resolvedName]]>
  21752. </doc>
  21753. </method>
  21754. <method name="getStaticResolution" return="java.lang.String"
  21755. abstract="false" native="false" synchronized="false"
  21756. static="true" final="false" visibility="public"
  21757. deprecated="not deprecated">
  21758. <param name="host" type="java.lang.String"/>
  21759. <doc>
  21760. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  21761. have been set earlier using
  21762. {@link NetUtils#addStaticResolution(String, String)}
  21763. @param host
  21764. @return the resolution]]>
  21765. </doc>
  21766. </method>
  21767. <method name="getAllStaticResolutions" return="java.util.List"
  21768. abstract="false" native="false" synchronized="false"
  21769. static="true" final="false" visibility="public"
  21770. deprecated="not deprecated">
  21771. <doc>
  21772. <![CDATA[This is used to get all the resolutions that were added using
  21773. {@link NetUtils#addStaticResolution(String, String)}. The return
  21774. value is a List each element of which contains an array of String
  21775. of the form String[0]=hostname, String[1]=resolved-hostname
  21776. @return the list of resolutions]]>
  21777. </doc>
  21778. </method>
  21779. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  21780. abstract="false" native="false" synchronized="false"
  21781. static="true" final="false" visibility="public"
  21782. deprecated="not deprecated">
  21783. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  21784. <doc>
  21785. <![CDATA[Returns InetSocketAddress that a client can use to
  21786. connect to the server. Server.getListenerAddress() is not correct when
  21787. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  21788. the getListenerAddress() returns "0.0.0.0:port".
  21789. @param server
  21790. @return socket address that a client can use to connect to the server.]]>
  21791. </doc>
  21792. </method>
  21793. <method name="getInputStream" return="java.io.InputStream"
  21794. abstract="false" native="false" synchronized="false"
  21795. static="true" final="false" visibility="public"
  21796. deprecated="not deprecated">
  21797. <param name="socket" type="java.net.Socket"/>
  21798. <exception name="IOException" type="java.io.IOException"/>
  21799. <doc>
  21800. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  21801. From documentation for {@link #getInputStream(Socket, long)}:<br>
  21802. Returns InputStream for the socket. If the socket has an associated
  21803. SocketChannel then it returns a
  21804. {@link SocketInputStream} with the given timeout. If the socket does not
  21805. have a channel, {@link Socket#getInputStream()} is returned. In the later
  21806. case, the timeout argument is ignored and the timeout set with
  21807. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  21808. Any socket created using socket factories returned by {@link #NetUtils},
  21809. must use this interface instead of {@link Socket#getInputStream()}.
  21810. @see #getInputStream(Socket, long)
  21811. @param socket
  21812. @return InputStream for reading from the socket.
  21813. @throws IOException]]>
  21814. </doc>
  21815. </method>
  21816. <method name="getInputStream" return="java.io.InputStream"
  21817. abstract="false" native="false" synchronized="false"
  21818. static="true" final="false" visibility="public"
  21819. deprecated="not deprecated">
  21820. <param name="socket" type="java.net.Socket"/>
  21821. <param name="timeout" type="long"/>
  21822. <exception name="IOException" type="java.io.IOException"/>
  21823. <doc>
  21824. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  21825. SocketChannel then it returns a
  21826. {@link SocketInputStream} with the given timeout. If the socket does not
  21827. have a channel, {@link Socket#getInputStream()} is returned. In the later
  21828. case, the timeout argument is ignored and the timeout set with
  21829. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  21830. Any socket created using socket factories returned by {@link #NetUtils},
  21831. must use this interface instead of {@link Socket#getInputStream()}.
  21832. @see Socket#getChannel()
  21833. @param socket
  21834. @param timeout timeout in milliseconds. This may not always apply. zero
  21835. for waiting as long as necessary.
  21836. @return InputStream for reading from the socket.
  21837. @throws IOException]]>
  21838. </doc>
  21839. </method>
  21840. <method name="getOutputStream" return="java.io.OutputStream"
  21841. abstract="false" native="false" synchronized="false"
  21842. static="true" final="false" visibility="public"
  21843. deprecated="not deprecated">
  21844. <param name="socket" type="java.net.Socket"/>
  21845. <exception name="IOException" type="java.io.IOException"/>
  21846. <doc>
  21847. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  21848. wait until data is available.<br><br>
  21849. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  21850. Returns OutputStream for the socket. If the socket has an associated
  21851. SocketChannel then it returns a
  21852. {@link SocketOutputStream} with the given timeout. If the socket does not
  21853. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  21854. case, the timeout argument is ignored and the write will wait until
  21855. data is available.<br><br>
  21856. Any socket created using socket factories returned by {@link #NetUtils},
  21857. must use this interface instead of {@link Socket#getOutputStream()}.
  21858. @see #getOutputStream(Socket, long)
  21859. @param socket
  21860. @return OutputStream for writing to the socket.
  21861. @throws IOException]]>
  21862. </doc>
  21863. </method>
  21864. <method name="getOutputStream" return="java.io.OutputStream"
  21865. abstract="false" native="false" synchronized="false"
  21866. static="true" final="false" visibility="public"
  21867. deprecated="not deprecated">
  21868. <param name="socket" type="java.net.Socket"/>
  21869. <param name="timeout" type="long"/>
  21870. <exception name="IOException" type="java.io.IOException"/>
  21871. <doc>
  21872. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  21873. SocketChannel then it returns a
  21874. {@link SocketOutputStream} with the given timeout. If the socket does not
  21875. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  21876. case, the timeout argument is ignored and the write will wait until
  21877. data is available.<br><br>
  21878. Any socket created using socket factories returned by {@link #NetUtils},
  21879. must use this interface instead of {@link Socket#getOutputStream()}.
  21880. @see Socket#getChannel()
  21881. @param socket
  21882. @param timeout timeout in milliseconds. This may not always apply. zero
  21883. for waiting as long as necessary.
  21884. @return OutputStream for writing to the socket.
  21885. @throws IOException]]>
  21886. </doc>
  21887. </method>
  21888. <method name="connect"
  21889. abstract="false" native="false" synchronized="false"
  21890. static="true" final="false" visibility="public"
  21891. deprecated="not deprecated">
  21892. <param name="socket" type="java.net.Socket"/>
  21893. <param name="endpoint" type="java.net.SocketAddress"/>
  21894. <param name="timeout" type="int"/>
  21895. <exception name="IOException" type="java.io.IOException"/>
  21896. <doc>
  21897. <![CDATA[This is a drop-in replacement for
  21898. {@link Socket#connect(SocketAddress, int)}.
  21899. In the case of normal sockets that don't have associated channels, this
  21900. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  21901. <code>socket.getChannel()</code> returns a non-null channel,
  21902. connect is implemented using Hadoop's selectors. This is done mainly
  21903. to avoid Sun's connect implementation from creating thread-local
  21904. selectors, since Hadoop does not have control on when these are closed
  21905. and could end up taking all the available file descriptors.
  21906. @see java.net.Socket#connect(java.net.SocketAddress, int)
  21907. @param socket
  21908. @param endpoint
  21909. @param timeout - timeout in milliseconds]]>
  21910. </doc>
  21911. </method>
  21912. <method name="normalizeHostName" return="java.lang.String"
  21913. abstract="false" native="false" synchronized="false"
  21914. static="true" final="false" visibility="public"
  21915. deprecated="not deprecated">
  21916. <param name="name" type="java.lang.String"/>
  21917. <doc>
  21918. <![CDATA[Given a string representation of a host, return its ip address
  21919. in textual presentation.
  21920. @param name a string representation of a host:
  21921. either a textual representation its IP address or its host name
  21922. @return its IP address in the string format]]>
  21923. </doc>
  21924. </method>
  21925. <method name="normalizeHostNames" return="java.util.List"
  21926. abstract="false" native="false" synchronized="false"
  21927. static="true" final="false" visibility="public"
  21928. deprecated="not deprecated">
  21929. <param name="names" type="java.util.Collection"/>
  21930. <doc>
  21931. <![CDATA[Given a collection of string representation of hosts, return a list of
  21932. corresponding IP addresses in the textual representation.
  21933. @param names a collection of string representations of hosts
  21934. @return a list of corresponding IP addresses in the string format
  21935. @see #normalizeHostName(String)]]>
  21936. </doc>
  21937. </method>
  21938. </class>
  21939. <!-- end class org.apache.hadoop.net.NetUtils -->
  21940. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  21941. <class name="NetworkTopology" extends="java.lang.Object"
  21942. abstract="false"
  21943. static="false" final="false" visibility="public"
  21944. deprecated="not deprecated">
  21945. <constructor name="NetworkTopology"
  21946. static="false" final="false" visibility="public"
  21947. deprecated="not deprecated">
  21948. </constructor>
  21949. <method name="add"
  21950. abstract="false" native="false" synchronized="false"
  21951. static="false" final="false" visibility="public"
  21952. deprecated="not deprecated">
  21953. <param name="node" type="org.apache.hadoop.net.Node"/>
  21954. <doc>
  21955. <![CDATA[Add a leaf node
  21956. Update node counter & rack counter if neccessary
  21957. @param node
  21958. node to be added
  21959. @exception IllegalArgumentException if add a node to a leave
  21960. or node to be added is not a leaf]]>
  21961. </doc>
  21962. </method>
  21963. <method name="remove"
  21964. abstract="false" native="false" synchronized="false"
  21965. static="false" final="false" visibility="public"
  21966. deprecated="not deprecated">
  21967. <param name="node" type="org.apache.hadoop.net.Node"/>
  21968. <doc>
  21969. <![CDATA[Remove a node
  21970. Update node counter & rack counter if neccessary
  21971. @param node
  21972. node to be removed]]>
  21973. </doc>
  21974. </method>
  21975. <method name="contains" return="boolean"
  21976. abstract="false" native="false" synchronized="false"
  21977. static="false" final="false" visibility="public"
  21978. deprecated="not deprecated">
  21979. <param name="node" type="org.apache.hadoop.net.Node"/>
  21980. <doc>
  21981. <![CDATA[Check if the tree contains node <i>node</i>
  21982. @param node
  21983. a node
  21984. @return true if <i>node</i> is already in the tree; false otherwise]]>
  21985. </doc>
  21986. </method>
  21987. <method name="getNode" return="org.apache.hadoop.net.Node"
  21988. abstract="false" native="false" synchronized="false"
  21989. static="false" final="false" visibility="public"
  21990. deprecated="not deprecated">
  21991. <param name="loc" type="java.lang.String"/>
  21992. <doc>
  21993. <![CDATA[Given a string representation of a node, return its reference
  21994. @param loc
  21995. a path-like string representation of a node
  21996. @return a reference to the node; null if the node is not in the tree]]>
  21997. </doc>
  21998. </method>
  21999. <method name="getNumOfRacks" return="int"
  22000. abstract="false" native="false" synchronized="false"
  22001. static="false" final="false" visibility="public"
  22002. deprecated="not deprecated">
  22003. <doc>
  22004. <![CDATA[Return the total number of racks]]>
  22005. </doc>
  22006. </method>
  22007. <method name="getNumOfLeaves" return="int"
  22008. abstract="false" native="false" synchronized="false"
  22009. static="false" final="false" visibility="public"
  22010. deprecated="not deprecated">
  22011. <doc>
  22012. <![CDATA[Return the total number of nodes]]>
  22013. </doc>
  22014. </method>
  22015. <method name="getDistance" return="int"
  22016. abstract="false" native="false" synchronized="false"
  22017. static="false" final="false" visibility="public"
  22018. deprecated="not deprecated">
  22019. <param name="node1" type="org.apache.hadoop.net.Node"/>
  22020. <param name="node2" type="org.apache.hadoop.net.Node"/>
  22021. <doc>
  22022. <![CDATA[Return the distance between two nodes
  22023. It is assumed that the distance from one node to its parent is 1
  22024. The distance between two nodes is calculated by summing up their distances
  22025. to their closest common ancestor.
  22026. @param node1 one node
  22027. @param node2 another node
  22028. @return the distance between node1 and node2
  22029. node1 or node2 do not belong to the cluster]]>
  22030. </doc>
  22031. </method>
  22032. <method name="isOnSameRack" return="boolean"
  22033. abstract="false" native="false" synchronized="false"
  22034. static="false" final="false" visibility="public"
  22035. deprecated="not deprecated">
  22036. <param name="node1" type="org.apache.hadoop.net.Node"/>
  22037. <param name="node2" type="org.apache.hadoop.net.Node"/>
  22038. <doc>
  22039. <![CDATA[Check if two nodes are on the same rack
  22040. @param node1 one node
  22041. @param node2 another node
  22042. @return true if node1 and node2 are pm the same rack; false otherwise
  22043. @exception IllegalArgumentException when either node1 or node2 is null, or
  22044. node1 or node2 do not belong to the cluster]]>
  22045. </doc>
  22046. </method>
  22047. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  22048. abstract="false" native="false" synchronized="false"
  22049. static="false" final="false" visibility="public"
  22050. deprecated="not deprecated">
  22051. <param name="scope" type="java.lang.String"/>
  22052. <doc>
  22053. <![CDATA[randomly choose one node from <i>scope</i>
  22054. if scope starts with ~, choose one from the all nodes except for the
  22055. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  22056. @param scope range of nodes from which a node will be choosen
  22057. @return the choosen node]]>
  22058. </doc>
  22059. </method>
  22060. <method name="countNumOfAvailableNodes" return="int"
  22061. abstract="false" native="false" synchronized="false"
  22062. static="false" final="false" visibility="public"
  22063. deprecated="not deprecated">
  22064. <param name="scope" type="java.lang.String"/>
  22065. <param name="excludedNodes" type="java.util.List"/>
  22066. <doc>
  22067. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  22068. if scope starts with ~, return the number of nodes that are not
  22069. in <i>scope</i> and <i>excludedNodes</i>;
  22070. @param scope a path string that may start with ~
  22071. @param excludedNodes a list of nodes
  22072. @return number of available nodes]]>
  22073. </doc>
  22074. </method>
  22075. <method name="toString" return="java.lang.String"
  22076. abstract="false" native="false" synchronized="false"
  22077. static="false" final="false" visibility="public"
  22078. deprecated="not deprecated">
  22079. <doc>
  22080. <![CDATA[convert a network tree to a string]]>
  22081. </doc>
  22082. </method>
  22083. <method name="pseudoSortByDistance"
  22084. abstract="false" native="false" synchronized="false"
  22085. static="false" final="false" visibility="public"
  22086. deprecated="not deprecated">
  22087. <param name="reader" type="org.apache.hadoop.net.Node"/>
  22088. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  22089. <doc>
  22090. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  22091. It linearly scans the array, if a local node is found, swap it with
  22092. the first element of the array.
  22093. If a local rack node is found, swap it with the first element following
  22094. the local node.
  22095. If neither local node or local rack node is found, put a random replica
  22096. location at postion 0.
  22097. It leaves the rest nodes untouched.]]>
  22098. </doc>
  22099. </method>
  22100. <field name="DEFAULT_RACK" type="java.lang.String"
  22101. transient="false" volatile="false"
  22102. static="true" final="true" visibility="public"
  22103. deprecated="not deprecated">
  22104. </field>
  22105. <field name="DEFAULT_HOST_LEVEL" type="int"
  22106. transient="false" volatile="false"
  22107. static="true" final="true" visibility="public"
  22108. deprecated="not deprecated">
  22109. </field>
  22110. <field name="LOG" type="org.apache.commons.logging.Log"
  22111. transient="false" volatile="false"
  22112. static="true" final="true" visibility="public"
  22113. deprecated="not deprecated">
  22114. </field>
  22115. <doc>
  22116. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  22117. network topology.
  22118. For example, a cluster may be consists of many data centers filled
  22119. with racks of computers.
  22120. In a network topology, leaves represent data nodes (computers) and inner
  22121. nodes represent switches/routers that manage traffic in/out of data centers
  22122. or racks.]]>
  22123. </doc>
  22124. </class>
  22125. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  22126. <!-- start interface org.apache.hadoop.net.Node -->
  22127. <interface name="Node" abstract="true"
  22128. static="false" final="false" visibility="public"
  22129. deprecated="not deprecated">
  22130. <method name="getNetworkLocation" return="java.lang.String"
  22131. abstract="false" native="false" synchronized="false"
  22132. static="false" final="false" visibility="public"
  22133. deprecated="not deprecated">
  22134. <doc>
  22135. <![CDATA[Return the string representation of this node's network location]]>
  22136. </doc>
  22137. </method>
  22138. <method name="setNetworkLocation"
  22139. abstract="false" native="false" synchronized="false"
  22140. static="false" final="false" visibility="public"
  22141. deprecated="not deprecated">
  22142. <param name="location" type="java.lang.String"/>
  22143. <doc>
  22144. <![CDATA[Set the node's network location]]>
  22145. </doc>
  22146. </method>
  22147. <method name="getName" return="java.lang.String"
  22148. abstract="false" native="false" synchronized="false"
  22149. static="false" final="false" visibility="public"
  22150. deprecated="not deprecated">
  22151. <doc>
  22152. <![CDATA[Return this node's name]]>
  22153. </doc>
  22154. </method>
  22155. <method name="getParent" return="org.apache.hadoop.net.Node"
  22156. abstract="false" native="false" synchronized="false"
  22157. static="false" final="false" visibility="public"
  22158. deprecated="not deprecated">
  22159. <doc>
  22160. <![CDATA[Return this node's parent]]>
  22161. </doc>
  22162. </method>
  22163. <method name="setParent"
  22164. abstract="false" native="false" synchronized="false"
  22165. static="false" final="false" visibility="public"
  22166. deprecated="not deprecated">
  22167. <param name="parent" type="org.apache.hadoop.net.Node"/>
  22168. <doc>
  22169. <![CDATA[Set this node's parent]]>
  22170. </doc>
  22171. </method>
  22172. <method name="getLevel" return="int"
  22173. abstract="false" native="false" synchronized="false"
  22174. static="false" final="false" visibility="public"
  22175. deprecated="not deprecated">
  22176. <doc>
  22177. <![CDATA[Return this node's level in the tree.
  22178. E.g. the root of a tree returns 0 and its children return 1]]>
  22179. </doc>
  22180. </method>
  22181. <method name="setLevel"
  22182. abstract="false" native="false" synchronized="false"
  22183. static="false" final="false" visibility="public"
  22184. deprecated="not deprecated">
  22185. <param name="i" type="int"/>
  22186. <doc>
  22187. <![CDATA[Set this node's level in the tree.]]>
  22188. </doc>
  22189. </method>
  22190. <doc>
  22191. <![CDATA[The interface defines a node in a network topology.
  22192. A node may be a leave representing a data node or an inner
  22193. node representing a datacenter or rack.
  22194. Each data has a name and its location in the network is
  22195. decided by a string with syntax similar to a file name.
  22196. For example, a data node's name is hostname:port# and if it's located at
  22197. rack "orange" in datacenter "dog", the string representation of its
  22198. network location is /dog/orange]]>
  22199. </doc>
  22200. </interface>
  22201. <!-- end interface org.apache.hadoop.net.Node -->
  22202. <!-- start class org.apache.hadoop.net.NodeBase -->
  22203. <class name="NodeBase" extends="java.lang.Object"
  22204. abstract="false"
  22205. static="false" final="false" visibility="public"
  22206. deprecated="not deprecated">
  22207. <implements name="org.apache.hadoop.net.Node"/>
  22208. <constructor name="NodeBase"
  22209. static="false" final="false" visibility="public"
  22210. deprecated="not deprecated">
  22211. <doc>
  22212. <![CDATA[Default constructor]]>
  22213. </doc>
  22214. </constructor>
  22215. <constructor name="NodeBase" type="java.lang.String"
  22216. static="false" final="false" visibility="public"
  22217. deprecated="not deprecated">
  22218. <doc>
  22219. <![CDATA[Construct a node from its path
  22220. @param path
  22221. a concatenation of this node's location, the path seperator, and its name]]>
  22222. </doc>
  22223. </constructor>
  22224. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  22225. static="false" final="false" visibility="public"
  22226. deprecated="not deprecated">
  22227. <doc>
  22228. <![CDATA[Construct a node from its name and its location
  22229. @param name this node's name
  22230. @param location this node's location]]>
  22231. </doc>
  22232. </constructor>
  22233. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  22234. static="false" final="false" visibility="public"
  22235. deprecated="not deprecated">
  22236. <doc>
  22237. <![CDATA[Construct a node from its name and its location
  22238. @param name this node's name
  22239. @param location this node's location
  22240. @param parent this node's parent node
  22241. @param level this node's level in the tree]]>
  22242. </doc>
  22243. </constructor>
  22244. <method name="getName" return="java.lang.String"
  22245. abstract="false" native="false" synchronized="false"
  22246. static="false" final="false" visibility="public"
  22247. deprecated="not deprecated">
  22248. <doc>
  22249. <![CDATA[Return this node's name]]>
  22250. </doc>
  22251. </method>
  22252. <method name="getNetworkLocation" return="java.lang.String"
  22253. abstract="false" native="false" synchronized="false"
  22254. static="false" final="false" visibility="public"
  22255. deprecated="not deprecated">
  22256. <doc>
  22257. <![CDATA[Return this node's network location]]>
  22258. </doc>
  22259. </method>
  22260. <method name="setNetworkLocation"
  22261. abstract="false" native="false" synchronized="false"
  22262. static="false" final="false" visibility="public"
  22263. deprecated="not deprecated">
  22264. <param name="location" type="java.lang.String"/>
  22265. <doc>
  22266. <![CDATA[Set this node's network location]]>
  22267. </doc>
  22268. </method>
  22269. <method name="getPath" return="java.lang.String"
  22270. abstract="false" native="false" synchronized="false"
  22271. static="true" final="false" visibility="public"
  22272. deprecated="not deprecated">
  22273. <param name="node" type="org.apache.hadoop.net.Node"/>
  22274. <doc>
  22275. <![CDATA[Return this node's path]]>
  22276. </doc>
  22277. </method>
  22278. <method name="toString" return="java.lang.String"
  22279. abstract="false" native="false" synchronized="false"
  22280. static="false" final="false" visibility="public"
  22281. deprecated="not deprecated">
  22282. <doc>
  22283. <![CDATA[Return this node's string representation]]>
  22284. </doc>
  22285. </method>
  22286. <method name="normalize" return="java.lang.String"
  22287. abstract="false" native="false" synchronized="false"
  22288. static="true" final="false" visibility="public"
  22289. deprecated="not deprecated">
  22290. <param name="path" type="java.lang.String"/>
  22291. <doc>
  22292. <![CDATA[Normalize a path]]>
  22293. </doc>
  22294. </method>
  22295. <method name="getParent" return="org.apache.hadoop.net.Node"
  22296. abstract="false" native="false" synchronized="false"
  22297. static="false" final="false" visibility="public"
  22298. deprecated="not deprecated">
  22299. <doc>
  22300. <![CDATA[Return this node's parent]]>
  22301. </doc>
  22302. </method>
  22303. <method name="setParent"
  22304. abstract="false" native="false" synchronized="false"
  22305. static="false" final="false" visibility="public"
  22306. deprecated="not deprecated">
  22307. <param name="parent" type="org.apache.hadoop.net.Node"/>
  22308. <doc>
  22309. <![CDATA[Set this node's parent]]>
  22310. </doc>
  22311. </method>
  22312. <method name="getLevel" return="int"
  22313. abstract="false" native="false" synchronized="false"
  22314. static="false" final="false" visibility="public"
  22315. deprecated="not deprecated">
  22316. <doc>
  22317. <![CDATA[Return this node's level in the tree.
  22318. E.g. the root of a tree returns 0 and its children return 1]]>
  22319. </doc>
  22320. </method>
  22321. <method name="setLevel"
  22322. abstract="false" native="false" synchronized="false"
  22323. static="false" final="false" visibility="public"
  22324. deprecated="not deprecated">
  22325. <param name="level" type="int"/>
  22326. <doc>
  22327. <![CDATA[Set this node's level in the tree]]>
  22328. </doc>
  22329. </method>
  22330. <field name="PATH_SEPARATOR" type="char"
  22331. transient="false" volatile="false"
  22332. static="true" final="true" visibility="public"
  22333. deprecated="not deprecated">
  22334. </field>
  22335. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  22336. transient="false" volatile="false"
  22337. static="true" final="true" visibility="public"
  22338. deprecated="not deprecated">
  22339. </field>
  22340. <field name="ROOT" type="java.lang.String"
  22341. transient="false" volatile="false"
  22342. static="true" final="true" visibility="public"
  22343. deprecated="not deprecated">
  22344. </field>
  22345. <field name="name" type="java.lang.String"
  22346. transient="false" volatile="false"
  22347. static="false" final="false" visibility="protected"
  22348. deprecated="not deprecated">
  22349. </field>
  22350. <field name="location" type="java.lang.String"
  22351. transient="false" volatile="false"
  22352. static="false" final="false" visibility="protected"
  22353. deprecated="not deprecated">
  22354. </field>
  22355. <field name="level" type="int"
  22356. transient="false" volatile="false"
  22357. static="false" final="false" visibility="protected"
  22358. deprecated="not deprecated">
  22359. </field>
  22360. <field name="parent" type="org.apache.hadoop.net.Node"
  22361. transient="false" volatile="false"
  22362. static="false" final="false" visibility="protected"
  22363. deprecated="not deprecated">
  22364. </field>
  22365. <doc>
  22366. <![CDATA[A base class that implements interface Node]]>
  22367. </doc>
  22368. </class>
  22369. <!-- end class org.apache.hadoop.net.NodeBase -->
  22370. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  22371. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  22372. abstract="false"
  22373. static="false" final="true" visibility="public"
  22374. deprecated="not deprecated">
  22375. <implements name="org.apache.hadoop.conf.Configurable"/>
  22376. <constructor name="ScriptBasedMapping"
  22377. static="false" final="false" visibility="public"
  22378. deprecated="not deprecated">
  22379. </constructor>
  22380. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  22381. static="false" final="false" visibility="public"
  22382. deprecated="not deprecated">
  22383. </constructor>
  22384. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22385. abstract="false" native="false" synchronized="false"
  22386. static="false" final="false" visibility="public"
  22387. deprecated="not deprecated">
  22388. </method>
  22389. <method name="setConf"
  22390. abstract="false" native="false" synchronized="false"
  22391. static="false" final="false" visibility="public"
  22392. deprecated="not deprecated">
  22393. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22394. </method>
  22395. <doc>
  22396. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  22397. script configured via topology.script.file.name .]]>
  22398. </doc>
  22399. </class>
  22400. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  22401. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  22402. <class name="SocketInputStream" extends="java.io.InputStream"
  22403. abstract="false"
  22404. static="false" final="false" visibility="public"
  22405. deprecated="not deprecated">
  22406. <implements name="java.nio.channels.ReadableByteChannel"/>
  22407. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  22408. static="false" final="false" visibility="public"
  22409. deprecated="not deprecated">
  22410. <exception name="IOException" type="java.io.IOException"/>
  22411. <doc>
  22412. <![CDATA[Create a new input stream with the given timeout. If the timeout
  22413. is zero, it will be treated as infinite timeout. The socket's
  22414. channel will be configured to be non-blocking.
  22415. @param channel
  22416. Channel for reading, should also be a {@link SelectableChannel}.
  22417. The channel will be configured to be non-blocking.
  22418. @param timeout timeout in milliseconds. must not be negative.
  22419. @throws IOException]]>
  22420. </doc>
  22421. </constructor>
  22422. <constructor name="SocketInputStream" type="java.net.Socket, long"
  22423. static="false" final="false" visibility="public"
  22424. deprecated="not deprecated">
  22425. <exception name="IOException" type="java.io.IOException"/>
  22426. <doc>
  22427. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  22428. Create a new input stream with the given timeout. If the timeout
  22429. is zero, it will be treated as infinite timeout. The socket's
  22430. channel will be configured to be non-blocking.
  22431. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  22432. @param socket should have a channel associated with it.
  22433. @param timeout timeout timeout in milliseconds. must not be negative.
  22434. @throws IOException]]>
  22435. </doc>
  22436. </constructor>
  22437. <constructor name="SocketInputStream" type="java.net.Socket"
  22438. static="false" final="false" visibility="public"
  22439. deprecated="not deprecated">
  22440. <exception name="IOException" type="java.io.IOException"/>
  22441. <doc>
  22442. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  22443. :<br><br>
  22444. Create a new input stream with the given timeout. If the timeout
  22445. is zero, it will be treated as infinite timeout. The socket's
  22446. channel will be configured to be non-blocking.
  22447. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  22448. @param socket should have a channel associated with it.
  22449. @throws IOException]]>
  22450. </doc>
  22451. </constructor>
  22452. <method name="read" return="int"
  22453. abstract="false" native="false" synchronized="false"
  22454. static="false" final="false" visibility="public"
  22455. deprecated="not deprecated">
  22456. <exception name="IOException" type="java.io.IOException"/>
  22457. </method>
  22458. <method name="read" return="int"
  22459. abstract="false" native="false" synchronized="false"
  22460. static="false" final="false" visibility="public"
  22461. deprecated="not deprecated">
  22462. <param name="b" type="byte[]"/>
  22463. <param name="off" type="int"/>
  22464. <param name="len" type="int"/>
  22465. <exception name="IOException" type="java.io.IOException"/>
  22466. </method>
  22467. <method name="close"
  22468. abstract="false" native="false" synchronized="true"
  22469. static="false" final="false" visibility="public"
  22470. deprecated="not deprecated">
  22471. <exception name="IOException" type="java.io.IOException"/>
  22472. </method>
  22473. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  22474. abstract="false" native="false" synchronized="false"
  22475. static="false" final="false" visibility="public"
  22476. deprecated="not deprecated">
  22477. <doc>
  22478. <![CDATA[Returns underlying channel used by inputstream.
  22479. This is useful in certain cases like channel for
  22480. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  22481. </doc>
  22482. </method>
  22483. <method name="isOpen" return="boolean"
  22484. abstract="false" native="false" synchronized="false"
  22485. static="false" final="false" visibility="public"
  22486. deprecated="not deprecated">
  22487. </method>
  22488. <method name="read" return="int"
  22489. abstract="false" native="false" synchronized="false"
  22490. static="false" final="false" visibility="public"
  22491. deprecated="not deprecated">
  22492. <param name="dst" type="java.nio.ByteBuffer"/>
  22493. <exception name="IOException" type="java.io.IOException"/>
  22494. </method>
  22495. <method name="waitForReadable"
  22496. abstract="false" native="false" synchronized="false"
  22497. static="false" final="false" visibility="public"
  22498. deprecated="not deprecated">
  22499. <exception name="IOException" type="java.io.IOException"/>
  22500. <doc>
  22501. <![CDATA[waits for the underlying channel to be ready for reading.
  22502. The timeout specified for this stream applies to this wait.
  22503. @throws SocketTimeoutException
  22504. if select on the channel times out.
  22505. @throws IOException
  22506. if any other I/O error occurs.]]>
  22507. </doc>
  22508. </method>
  22509. <doc>
  22510. <![CDATA[This implements an input stream that can have a timeout while reading.
  22511. This sets non-blocking flag on the socket channel.
  22512. So after create this object, read() on
  22513. {@link Socket#getInputStream()} and write() on
  22514. {@link Socket#getOutputStream()} for the associated socket will throw
  22515. IllegalBlockingModeException.
  22516. Please use {@link SocketOutputStream} for writing.]]>
  22517. </doc>
  22518. </class>
  22519. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  22520. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  22521. <class name="SocketOutputStream" extends="java.io.OutputStream"
  22522. abstract="false"
  22523. static="false" final="false" visibility="public"
  22524. deprecated="not deprecated">
  22525. <implements name="java.nio.channels.WritableByteChannel"/>
  22526. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  22527. static="false" final="false" visibility="public"
  22528. deprecated="not deprecated">
  22529. <exception name="IOException" type="java.io.IOException"/>
  22530. <doc>
  22531. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  22532. is zero, it will be treated as infinite timeout. The socket's
  22533. channel will be configured to be non-blocking.
  22534. @param channel
  22535. Channel for writing, should also be a {@link SelectableChannel}.
  22536. The channel will be configured to be non-blocking.
  22537. @param timeout timeout in milliseconds. must not be negative.
  22538. @throws IOException]]>
  22539. </doc>
  22540. </constructor>
  22541. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  22542. static="false" final="false" visibility="public"
  22543. deprecated="not deprecated">
  22544. <exception name="IOException" type="java.io.IOException"/>
  22545. <doc>
  22546. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  22547. Create a new ouput stream with the given timeout. If the timeout
  22548. is zero, it will be treated as infinite timeout. The socket's
  22549. channel will be configured to be non-blocking.
  22550. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  22551. @param socket should have a channel associated with it.
  22552. @param timeout timeout timeout in milliseconds. must not be negative.
  22553. @throws IOException]]>
  22554. </doc>
  22555. </constructor>
  22556. <method name="write"
  22557. abstract="false" native="false" synchronized="false"
  22558. static="false" final="false" visibility="public"
  22559. deprecated="not deprecated">
  22560. <param name="b" type="int"/>
  22561. <exception name="IOException" type="java.io.IOException"/>
  22562. </method>
  22563. <method name="write"
  22564. abstract="false" native="false" synchronized="false"
  22565. static="false" final="false" visibility="public"
  22566. deprecated="not deprecated">
  22567. <param name="b" type="byte[]"/>
  22568. <param name="off" type="int"/>
  22569. <param name="len" type="int"/>
  22570. <exception name="IOException" type="java.io.IOException"/>
  22571. </method>
  22572. <method name="close"
  22573. abstract="false" native="false" synchronized="true"
  22574. static="false" final="false" visibility="public"
  22575. deprecated="not deprecated">
  22576. <exception name="IOException" type="java.io.IOException"/>
  22577. </method>
  22578. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  22579. abstract="false" native="false" synchronized="false"
  22580. static="false" final="false" visibility="public"
  22581. deprecated="not deprecated">
  22582. <doc>
  22583. <![CDATA[Returns underlying channel used by this stream.
  22584. This is useful in certain cases like channel for
  22585. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  22586. </doc>
  22587. </method>
  22588. <method name="isOpen" return="boolean"
  22589. abstract="false" native="false" synchronized="false"
  22590. static="false" final="false" visibility="public"
  22591. deprecated="not deprecated">
  22592. </method>
  22593. <method name="write" return="int"
  22594. abstract="false" native="false" synchronized="false"
  22595. static="false" final="false" visibility="public"
  22596. deprecated="not deprecated">
  22597. <param name="src" type="java.nio.ByteBuffer"/>
  22598. <exception name="IOException" type="java.io.IOException"/>
  22599. </method>
  22600. <method name="waitForWritable"
  22601. abstract="false" native="false" synchronized="false"
  22602. static="false" final="false" visibility="public"
  22603. deprecated="not deprecated">
  22604. <exception name="IOException" type="java.io.IOException"/>
  22605. <doc>
  22606. <![CDATA[waits for the underlying channel to be ready for writing.
  22607. The timeout specified for this stream applies to this wait.
  22608. @throws SocketTimeoutException
  22609. if select on the channel times out.
  22610. @throws IOException
  22611. if any other I/O error occurs.]]>
  22612. </doc>
  22613. </method>
  22614. <method name="transferToFully"
  22615. abstract="false" native="false" synchronized="false"
  22616. static="false" final="false" visibility="public"
  22617. deprecated="not deprecated">
  22618. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  22619. <param name="position" type="long"/>
  22620. <param name="count" type="int"/>
  22621. <exception name="IOException" type="java.io.IOException"/>
  22622. <doc>
  22623. <![CDATA[Transfers data from FileChannel using
  22624. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  22625. Similar to readFully(), this waits till requested amount of
  22626. data is transfered.
  22627. @param fileCh FileChannel to transfer data from.
  22628. @param position position within the channel where the transfer begins
  22629. @param count number of bytes to transfer.
  22630. @throws EOFException
  22631. If end of input file is reached before requested number of
  22632. bytes are transfered.
  22633. @throws SocketTimeoutException
  22634. If this channel blocks transfer longer than timeout for
  22635. this stream.
  22636. @throws IOException Includes any exception thrown by
  22637. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  22638. </doc>
  22639. </method>
  22640. <doc>
  22641. <![CDATA[This implements an output stream that can have a timeout while writing.
  22642. This sets non-blocking flag on the socket channel.
  22643. So after creating this object , read() on
  22644. {@link Socket#getInputStream()} and write() on
  22645. {@link Socket#getOutputStream()} on the associated socket will throw
  22646. llegalBlockingModeException.
  22647. Please use {@link SocketInputStream} for reading.]]>
  22648. </doc>
  22649. </class>
  22650. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  22651. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  22652. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  22653. abstract="false"
  22654. static="false" final="false" visibility="public"
  22655. deprecated="not deprecated">
  22656. <implements name="org.apache.hadoop.conf.Configurable"/>
  22657. <constructor name="SocksSocketFactory"
  22658. static="false" final="false" visibility="public"
  22659. deprecated="not deprecated">
  22660. <doc>
  22661. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  22662. </doc>
  22663. </constructor>
  22664. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  22665. static="false" final="false" visibility="public"
  22666. deprecated="not deprecated">
  22667. <doc>
  22668. <![CDATA[Constructor with a supplied Proxy
  22669. @param proxy the proxy to use to create sockets]]>
  22670. </doc>
  22671. </constructor>
  22672. <method name="createSocket" return="java.net.Socket"
  22673. abstract="false" native="false" synchronized="false"
  22674. static="false" final="false" visibility="public"
  22675. deprecated="not deprecated">
  22676. <exception name="IOException" type="java.io.IOException"/>
  22677. </method>
  22678. <method name="createSocket" return="java.net.Socket"
  22679. abstract="false" native="false" synchronized="false"
  22680. static="false" final="false" visibility="public"
  22681. deprecated="not deprecated">
  22682. <param name="addr" type="java.net.InetAddress"/>
  22683. <param name="port" type="int"/>
  22684. <exception name="IOException" type="java.io.IOException"/>
  22685. </method>
  22686. <method name="createSocket" return="java.net.Socket"
  22687. abstract="false" native="false" synchronized="false"
  22688. static="false" final="false" visibility="public"
  22689. deprecated="not deprecated">
  22690. <param name="addr" type="java.net.InetAddress"/>
  22691. <param name="port" type="int"/>
  22692. <param name="localHostAddr" type="java.net.InetAddress"/>
  22693. <param name="localPort" type="int"/>
  22694. <exception name="IOException" type="java.io.IOException"/>
  22695. </method>
  22696. <method name="createSocket" return="java.net.Socket"
  22697. abstract="false" native="false" synchronized="false"
  22698. static="false" final="false" visibility="public"
  22699. deprecated="not deprecated">
  22700. <param name="host" type="java.lang.String"/>
  22701. <param name="port" type="int"/>
  22702. <exception name="IOException" type="java.io.IOException"/>
  22703. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  22704. </method>
  22705. <method name="createSocket" return="java.net.Socket"
  22706. abstract="false" native="false" synchronized="false"
  22707. static="false" final="false" visibility="public"
  22708. deprecated="not deprecated">
  22709. <param name="host" type="java.lang.String"/>
  22710. <param name="port" type="int"/>
  22711. <param name="localHostAddr" type="java.net.InetAddress"/>
  22712. <param name="localPort" type="int"/>
  22713. <exception name="IOException" type="java.io.IOException"/>
  22714. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  22715. </method>
  22716. <method name="hashCode" return="int"
  22717. abstract="false" native="false" synchronized="false"
  22718. static="false" final="false" visibility="public"
  22719. deprecated="not deprecated">
  22720. </method>
  22721. <method name="equals" return="boolean"
  22722. abstract="false" native="false" synchronized="false"
  22723. static="false" final="false" visibility="public"
  22724. deprecated="not deprecated">
  22725. <param name="obj" type="java.lang.Object"/>
  22726. </method>
  22727. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22728. abstract="false" native="false" synchronized="false"
  22729. static="false" final="false" visibility="public"
  22730. deprecated="not deprecated">
  22731. </method>
  22732. <method name="setConf"
  22733. abstract="false" native="false" synchronized="false"
  22734. static="false" final="false" visibility="public"
  22735. deprecated="not deprecated">
  22736. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22737. </method>
  22738. <doc>
  22739. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  22740. </doc>
  22741. </class>
  22742. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  22743. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  22744. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  22745. abstract="false"
  22746. static="false" final="false" visibility="public"
  22747. deprecated="not deprecated">
  22748. <constructor name="StandardSocketFactory"
  22749. static="false" final="false" visibility="public"
  22750. deprecated="not deprecated">
  22751. <doc>
  22752. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  22753. </doc>
  22754. </constructor>
  22755. <method name="createSocket" return="java.net.Socket"
  22756. abstract="false" native="false" synchronized="false"
  22757. static="false" final="false" visibility="public"
  22758. deprecated="not deprecated">
  22759. <exception name="IOException" type="java.io.IOException"/>
  22760. </method>
  22761. <method name="createSocket" return="java.net.Socket"
  22762. abstract="false" native="false" synchronized="false"
  22763. static="false" final="false" visibility="public"
  22764. deprecated="not deprecated">
  22765. <param name="addr" type="java.net.InetAddress"/>
  22766. <param name="port" type="int"/>
  22767. <exception name="IOException" type="java.io.IOException"/>
  22768. </method>
  22769. <method name="createSocket" return="java.net.Socket"
  22770. abstract="false" native="false" synchronized="false"
  22771. static="false" final="false" visibility="public"
  22772. deprecated="not deprecated">
  22773. <param name="addr" type="java.net.InetAddress"/>
  22774. <param name="port" type="int"/>
  22775. <param name="localHostAddr" type="java.net.InetAddress"/>
  22776. <param name="localPort" type="int"/>
  22777. <exception name="IOException" type="java.io.IOException"/>
  22778. </method>
  22779. <method name="createSocket" return="java.net.Socket"
  22780. abstract="false" native="false" synchronized="false"
  22781. static="false" final="false" visibility="public"
  22782. deprecated="not deprecated">
  22783. <param name="host" type="java.lang.String"/>
  22784. <param name="port" type="int"/>
  22785. <exception name="IOException" type="java.io.IOException"/>
  22786. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  22787. </method>
  22788. <method name="createSocket" return="java.net.Socket"
  22789. abstract="false" native="false" synchronized="false"
  22790. static="false" final="false" visibility="public"
  22791. deprecated="not deprecated">
  22792. <param name="host" type="java.lang.String"/>
  22793. <param name="port" type="int"/>
  22794. <param name="localHostAddr" type="java.net.InetAddress"/>
  22795. <param name="localPort" type="int"/>
  22796. <exception name="IOException" type="java.io.IOException"/>
  22797. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  22798. </method>
  22799. <method name="equals" return="boolean"
  22800. abstract="false" native="false" synchronized="false"
  22801. static="false" final="false" visibility="public"
  22802. deprecated="not deprecated">
  22803. <param name="obj" type="java.lang.Object"/>
  22804. </method>
  22805. <method name="hashCode" return="int"
  22806. abstract="false" native="false" synchronized="false"
  22807. static="false" final="false" visibility="public"
  22808. deprecated="not deprecated">
  22809. </method>
  22810. <doc>
  22811. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  22812. </doc>
  22813. </class>
  22814. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  22815. <doc>
  22816. <![CDATA[Network-related classes.]]>
  22817. </doc>
  22818. </package>
  22819. <package name="org.apache.hadoop.record">
  22820. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  22821. <class name="BinaryRecordInput" extends="java.lang.Object"
  22822. abstract="false"
  22823. static="false" final="false" visibility="public"
  22824. deprecated="not deprecated">
  22825. <implements name="org.apache.hadoop.record.RecordInput"/>
  22826. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  22827. static="false" final="false" visibility="public"
  22828. deprecated="not deprecated">
  22829. <doc>
  22830. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  22831. </doc>
  22832. </constructor>
  22833. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  22834. static="false" final="false" visibility="public"
  22835. deprecated="not deprecated">
  22836. <doc>
  22837. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  22838. </doc>
  22839. </constructor>
  22840. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  22841. abstract="false" native="false" synchronized="false"
  22842. static="true" final="false" visibility="public"
  22843. deprecated="not deprecated">
  22844. <param name="inp" type="java.io.DataInput"/>
  22845. <doc>
  22846. <![CDATA[Get a thread-local record input for the supplied DataInput.
  22847. @param inp data input stream
  22848. @return binary record input corresponding to the supplied DataInput.]]>
  22849. </doc>
  22850. </method>
  22851. <method name="readByte" return="byte"
  22852. abstract="false" native="false" synchronized="false"
  22853. static="false" final="false" visibility="public"
  22854. deprecated="not deprecated">
  22855. <param name="tag" type="java.lang.String"/>
  22856. <exception name="IOException" type="java.io.IOException"/>
  22857. </method>
  22858. <method name="readBool" return="boolean"
  22859. abstract="false" native="false" synchronized="false"
  22860. static="false" final="false" visibility="public"
  22861. deprecated="not deprecated">
  22862. <param name="tag" type="java.lang.String"/>
  22863. <exception name="IOException" type="java.io.IOException"/>
  22864. </method>
  22865. <method name="readInt" return="int"
  22866. abstract="false" native="false" synchronized="false"
  22867. static="false" final="false" visibility="public"
  22868. deprecated="not deprecated">
  22869. <param name="tag" type="java.lang.String"/>
  22870. <exception name="IOException" type="java.io.IOException"/>
  22871. </method>
  22872. <method name="readLong" return="long"
  22873. abstract="false" native="false" synchronized="false"
  22874. static="false" final="false" visibility="public"
  22875. deprecated="not deprecated">
  22876. <param name="tag" type="java.lang.String"/>
  22877. <exception name="IOException" type="java.io.IOException"/>
  22878. </method>
  22879. <method name="readFloat" return="float"
  22880. abstract="false" native="false" synchronized="false"
  22881. static="false" final="false" visibility="public"
  22882. deprecated="not deprecated">
  22883. <param name="tag" type="java.lang.String"/>
  22884. <exception name="IOException" type="java.io.IOException"/>
  22885. </method>
  22886. <method name="readDouble" return="double"
  22887. abstract="false" native="false" synchronized="false"
  22888. static="false" final="false" visibility="public"
  22889. deprecated="not deprecated">
  22890. <param name="tag" type="java.lang.String"/>
  22891. <exception name="IOException" type="java.io.IOException"/>
  22892. </method>
  22893. <method name="readString" return="java.lang.String"
  22894. abstract="false" native="false" synchronized="false"
  22895. static="false" final="false" visibility="public"
  22896. deprecated="not deprecated">
  22897. <param name="tag" type="java.lang.String"/>
  22898. <exception name="IOException" type="java.io.IOException"/>
  22899. </method>
  22900. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  22901. abstract="false" native="false" synchronized="false"
  22902. static="false" final="false" visibility="public"
  22903. deprecated="not deprecated">
  22904. <param name="tag" type="java.lang.String"/>
  22905. <exception name="IOException" type="java.io.IOException"/>
  22906. </method>
  22907. <method name="startRecord"
  22908. abstract="false" native="false" synchronized="false"
  22909. static="false" final="false" visibility="public"
  22910. deprecated="not deprecated">
  22911. <param name="tag" type="java.lang.String"/>
  22912. <exception name="IOException" type="java.io.IOException"/>
  22913. </method>
  22914. <method name="endRecord"
  22915. abstract="false" native="false" synchronized="false"
  22916. static="false" final="false" visibility="public"
  22917. deprecated="not deprecated">
  22918. <param name="tag" type="java.lang.String"/>
  22919. <exception name="IOException" type="java.io.IOException"/>
  22920. </method>
  22921. <method name="startVector" return="org.apache.hadoop.record.Index"
  22922. abstract="false" native="false" synchronized="false"
  22923. static="false" final="false" visibility="public"
  22924. deprecated="not deprecated">
  22925. <param name="tag" type="java.lang.String"/>
  22926. <exception name="IOException" type="java.io.IOException"/>
  22927. </method>
  22928. <method name="endVector"
  22929. abstract="false" native="false" synchronized="false"
  22930. static="false" final="false" visibility="public"
  22931. deprecated="not deprecated">
  22932. <param name="tag" type="java.lang.String"/>
  22933. <exception name="IOException" type="java.io.IOException"/>
  22934. </method>
  22935. <method name="startMap" return="org.apache.hadoop.record.Index"
  22936. abstract="false" native="false" synchronized="false"
  22937. static="false" final="false" visibility="public"
  22938. deprecated="not deprecated">
  22939. <param name="tag" type="java.lang.String"/>
  22940. <exception name="IOException" type="java.io.IOException"/>
  22941. </method>
  22942. <method name="endMap"
  22943. abstract="false" native="false" synchronized="false"
  22944. static="false" final="false" visibility="public"
  22945. deprecated="not deprecated">
  22946. <param name="tag" type="java.lang.String"/>
  22947. <exception name="IOException" type="java.io.IOException"/>
  22948. </method>
  22949. </class>
  22950. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  22951. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  22952. <class name="BinaryRecordOutput" extends="java.lang.Object"
  22953. abstract="false"
  22954. static="false" final="false" visibility="public"
  22955. deprecated="not deprecated">
  22956. <implements name="org.apache.hadoop.record.RecordOutput"/>
  22957. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  22958. static="false" final="false" visibility="public"
  22959. deprecated="not deprecated">
  22960. <doc>
  22961. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  22962. </doc>
  22963. </constructor>
  22964. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  22965. static="false" final="false" visibility="public"
  22966. deprecated="not deprecated">
  22967. <doc>
  22968. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  22969. </doc>
  22970. </constructor>
  22971. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  22972. abstract="false" native="false" synchronized="false"
  22973. static="true" final="false" visibility="public"
  22974. deprecated="not deprecated">
  22975. <param name="out" type="java.io.DataOutput"/>
  22976. <doc>
  22977. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  22978. @param out data output stream
  22979. @return binary record output corresponding to the supplied DataOutput.]]>
  22980. </doc>
  22981. </method>
  22982. <method name="writeByte"
  22983. abstract="false" native="false" synchronized="false"
  22984. static="false" final="false" visibility="public"
  22985. deprecated="not deprecated">
  22986. <param name="b" type="byte"/>
  22987. <param name="tag" type="java.lang.String"/>
  22988. <exception name="IOException" type="java.io.IOException"/>
  22989. </method>
  22990. <method name="writeBool"
  22991. abstract="false" native="false" synchronized="false"
  22992. static="false" final="false" visibility="public"
  22993. deprecated="not deprecated">
  22994. <param name="b" type="boolean"/>
  22995. <param name="tag" type="java.lang.String"/>
  22996. <exception name="IOException" type="java.io.IOException"/>
  22997. </method>
  22998. <method name="writeInt"
  22999. abstract="false" native="false" synchronized="false"
  23000. static="false" final="false" visibility="public"
  23001. deprecated="not deprecated">
  23002. <param name="i" type="int"/>
  23003. <param name="tag" type="java.lang.String"/>
  23004. <exception name="IOException" type="java.io.IOException"/>
  23005. </method>
  23006. <method name="writeLong"
  23007. abstract="false" native="false" synchronized="false"
  23008. static="false" final="false" visibility="public"
  23009. deprecated="not deprecated">
  23010. <param name="l" type="long"/>
  23011. <param name="tag" type="java.lang.String"/>
  23012. <exception name="IOException" type="java.io.IOException"/>
  23013. </method>
  23014. <method name="writeFloat"
  23015. abstract="false" native="false" synchronized="false"
  23016. static="false" final="false" visibility="public"
  23017. deprecated="not deprecated">
  23018. <param name="f" type="float"/>
  23019. <param name="tag" type="java.lang.String"/>
  23020. <exception name="IOException" type="java.io.IOException"/>
  23021. </method>
  23022. <method name="writeDouble"
  23023. abstract="false" native="false" synchronized="false"
  23024. static="false" final="false" visibility="public"
  23025. deprecated="not deprecated">
  23026. <param name="d" type="double"/>
  23027. <param name="tag" type="java.lang.String"/>
  23028. <exception name="IOException" type="java.io.IOException"/>
  23029. </method>
  23030. <method name="writeString"
  23031. abstract="false" native="false" synchronized="false"
  23032. static="false" final="false" visibility="public"
  23033. deprecated="not deprecated">
  23034. <param name="s" type="java.lang.String"/>
  23035. <param name="tag" type="java.lang.String"/>
  23036. <exception name="IOException" type="java.io.IOException"/>
  23037. </method>
  23038. <method name="writeBuffer"
  23039. abstract="false" native="false" synchronized="false"
  23040. static="false" final="false" visibility="public"
  23041. deprecated="not deprecated">
  23042. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  23043. <param name="tag" type="java.lang.String"/>
  23044. <exception name="IOException" type="java.io.IOException"/>
  23045. </method>
  23046. <method name="startRecord"
  23047. abstract="false" native="false" synchronized="false"
  23048. static="false" final="false" visibility="public"
  23049. deprecated="not deprecated">
  23050. <param name="r" type="org.apache.hadoop.record.Record"/>
  23051. <param name="tag" type="java.lang.String"/>
  23052. <exception name="IOException" type="java.io.IOException"/>
  23053. </method>
  23054. <method name="endRecord"
  23055. abstract="false" native="false" synchronized="false"
  23056. static="false" final="false" visibility="public"
  23057. deprecated="not deprecated">
  23058. <param name="r" type="org.apache.hadoop.record.Record"/>
  23059. <param name="tag" type="java.lang.String"/>
  23060. <exception name="IOException" type="java.io.IOException"/>
  23061. </method>
  23062. <method name="startVector"
  23063. abstract="false" native="false" synchronized="false"
  23064. static="false" final="false" visibility="public"
  23065. deprecated="not deprecated">
  23066. <param name="v" type="java.util.ArrayList"/>
  23067. <param name="tag" type="java.lang.String"/>
  23068. <exception name="IOException" type="java.io.IOException"/>
  23069. </method>
  23070. <method name="endVector"
  23071. abstract="false" native="false" synchronized="false"
  23072. static="false" final="false" visibility="public"
  23073. deprecated="not deprecated">
  23074. <param name="v" type="java.util.ArrayList"/>
  23075. <param name="tag" type="java.lang.String"/>
  23076. <exception name="IOException" type="java.io.IOException"/>
  23077. </method>
  23078. <method name="startMap"
  23079. abstract="false" native="false" synchronized="false"
  23080. static="false" final="false" visibility="public"
  23081. deprecated="not deprecated">
  23082. <param name="v" type="java.util.TreeMap"/>
  23083. <param name="tag" type="java.lang.String"/>
  23084. <exception name="IOException" type="java.io.IOException"/>
  23085. </method>
  23086. <method name="endMap"
  23087. abstract="false" native="false" synchronized="false"
  23088. static="false" final="false" visibility="public"
  23089. deprecated="not deprecated">
  23090. <param name="v" type="java.util.TreeMap"/>
  23091. <param name="tag" type="java.lang.String"/>
  23092. <exception name="IOException" type="java.io.IOException"/>
  23093. </method>
  23094. </class>
  23095. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  23096. <!-- start class org.apache.hadoop.record.Buffer -->
  23097. <class name="Buffer" extends="java.lang.Object"
  23098. abstract="false"
  23099. static="false" final="false" visibility="public"
  23100. deprecated="not deprecated">
  23101. <implements name="java.lang.Comparable"/>
  23102. <implements name="java.lang.Cloneable"/>
  23103. <constructor name="Buffer"
  23104. static="false" final="false" visibility="public"
  23105. deprecated="not deprecated">
  23106. <doc>
  23107. <![CDATA[Create a zero-count sequence.]]>
  23108. </doc>
  23109. </constructor>
  23110. <constructor name="Buffer" type="byte[]"
  23111. static="false" final="false" visibility="public"
  23112. deprecated="not deprecated">
  23113. <doc>
  23114. <![CDATA[Create a Buffer using the byte array as the initial value.
  23115. @param bytes This array becomes the backing storage for the object.]]>
  23116. </doc>
  23117. </constructor>
  23118. <constructor name="Buffer" type="byte[], int, int"
  23119. static="false" final="false" visibility="public"
  23120. deprecated="not deprecated">
  23121. <doc>
  23122. <![CDATA[Create a Buffer using the byte range as the initial value.
  23123. @param bytes Copy of this array becomes the backing storage for the object.
  23124. @param offset offset into byte array
  23125. @param length length of data]]>
  23126. </doc>
  23127. </constructor>
  23128. <method name="set"
  23129. abstract="false" native="false" synchronized="false"
  23130. static="false" final="false" visibility="public"
  23131. deprecated="not deprecated">
  23132. <param name="bytes" type="byte[]"/>
  23133. <doc>
  23134. <![CDATA[Use the specified bytes array as underlying sequence.
  23135. @param bytes byte sequence]]>
  23136. </doc>
  23137. </method>
  23138. <method name="copy"
  23139. abstract="false" native="false" synchronized="false"
  23140. static="false" final="true" visibility="public"
  23141. deprecated="not deprecated">
  23142. <param name="bytes" type="byte[]"/>
  23143. <param name="offset" type="int"/>
  23144. <param name="length" type="int"/>
  23145. <doc>
  23146. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  23147. @param bytes byte array to be assigned
  23148. @param offset offset into byte array
  23149. @param length length of data]]>
  23150. </doc>
  23151. </method>
  23152. <method name="get" return="byte[]"
  23153. abstract="false" native="false" synchronized="false"
  23154. static="false" final="false" visibility="public"
  23155. deprecated="not deprecated">
  23156. <doc>
  23157. <![CDATA[Get the data from the Buffer.
  23158. @return The data is only valid between 0 and getCount() - 1.]]>
  23159. </doc>
  23160. </method>
  23161. <method name="getCount" return="int"
  23162. abstract="false" native="false" synchronized="false"
  23163. static="false" final="false" visibility="public"
  23164. deprecated="not deprecated">
  23165. <doc>
  23166. <![CDATA[Get the current count of the buffer.]]>
  23167. </doc>
  23168. </method>
  23169. <method name="getCapacity" return="int"
  23170. abstract="false" native="false" synchronized="false"
  23171. static="false" final="false" visibility="public"
  23172. deprecated="not deprecated">
  23173. <doc>
  23174. <![CDATA[Get the capacity, which is the maximum count that could handled without
  23175. resizing the backing storage.
  23176. @return The number of bytes]]>
  23177. </doc>
  23178. </method>
  23179. <method name="setCapacity"
  23180. abstract="false" native="false" synchronized="false"
  23181. static="false" final="false" visibility="public"
  23182. deprecated="not deprecated">
  23183. <param name="newCapacity" type="int"/>
  23184. <doc>
  23185. <![CDATA[Change the capacity of the backing storage.
  23186. The data is preserved if newCapacity >= getCount().
  23187. @param newCapacity The new capacity in bytes.]]>
  23188. </doc>
  23189. </method>
  23190. <method name="reset"
  23191. abstract="false" native="false" synchronized="false"
  23192. static="false" final="false" visibility="public"
  23193. deprecated="not deprecated">
  23194. <doc>
  23195. <![CDATA[Reset the buffer to 0 size]]>
  23196. </doc>
  23197. </method>
  23198. <method name="truncate"
  23199. abstract="false" native="false" synchronized="false"
  23200. static="false" final="false" visibility="public"
  23201. deprecated="not deprecated">
  23202. <doc>
  23203. <![CDATA[Change the capacity of the backing store to be the same as the current
  23204. count of buffer.]]>
  23205. </doc>
  23206. </method>
  23207. <method name="append"
  23208. abstract="false" native="false" synchronized="false"
  23209. static="false" final="false" visibility="public"
  23210. deprecated="not deprecated">
  23211. <param name="bytes" type="byte[]"/>
  23212. <param name="offset" type="int"/>
  23213. <param name="length" type="int"/>
  23214. <doc>
  23215. <![CDATA[Append specified bytes to the buffer.
  23216. @param bytes byte array to be appended
  23217. @param offset offset into byte array
  23218. @param length length of data]]>
  23219. </doc>
  23220. </method>
  23221. <method name="append"
  23222. abstract="false" native="false" synchronized="false"
  23223. static="false" final="false" visibility="public"
  23224. deprecated="not deprecated">
  23225. <param name="bytes" type="byte[]"/>
  23226. <doc>
  23227. <![CDATA[Append specified bytes to the buffer
  23228. @param bytes byte array to be appended]]>
  23229. </doc>
  23230. </method>
  23231. <method name="hashCode" return="int"
  23232. abstract="false" native="false" synchronized="false"
  23233. static="false" final="false" visibility="public"
  23234. deprecated="not deprecated">
  23235. </method>
  23236. <method name="compareTo" return="int"
  23237. abstract="false" native="false" synchronized="false"
  23238. static="false" final="false" visibility="public"
  23239. deprecated="not deprecated">
  23240. <param name="other" type="java.lang.Object"/>
  23241. <doc>
  23242. <![CDATA[Define the sort order of the Buffer.
  23243. @param other The other buffer
  23244. @return Positive if this is bigger than other, 0 if they are equal, and
  23245. negative if this is smaller than other.]]>
  23246. </doc>
  23247. </method>
  23248. <method name="equals" return="boolean"
  23249. abstract="false" native="false" synchronized="false"
  23250. static="false" final="false" visibility="public"
  23251. deprecated="not deprecated">
  23252. <param name="other" type="java.lang.Object"/>
  23253. </method>
  23254. <method name="toString" return="java.lang.String"
  23255. abstract="false" native="false" synchronized="false"
  23256. static="false" final="false" visibility="public"
  23257. deprecated="not deprecated">
  23258. </method>
  23259. <method name="toString" return="java.lang.String"
  23260. abstract="false" native="false" synchronized="false"
  23261. static="false" final="false" visibility="public"
  23262. deprecated="not deprecated">
  23263. <param name="charsetName" type="java.lang.String"/>
  23264. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  23265. <doc>
  23266. <![CDATA[Convert the byte buffer to a string an specific character encoding
  23267. @param charsetName Valid Java Character Set Name]]>
  23268. </doc>
  23269. </method>
  23270. <method name="clone" return="java.lang.Object"
  23271. abstract="false" native="false" synchronized="false"
  23272. static="false" final="false" visibility="public"
  23273. deprecated="not deprecated">
  23274. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  23275. </method>
  23276. <doc>
  23277. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  23278. It is resizable and distinguishes between the count of the seqeunce and
  23279. the current capacity.]]>
  23280. </doc>
  23281. </class>
  23282. <!-- end class org.apache.hadoop.record.Buffer -->
  23283. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  23284. <class name="CsvRecordInput" extends="java.lang.Object"
  23285. abstract="false"
  23286. static="false" final="false" visibility="public"
  23287. deprecated="not deprecated">
  23288. <implements name="org.apache.hadoop.record.RecordInput"/>
  23289. <constructor name="CsvRecordInput" type="java.io.InputStream"
  23290. static="false" final="false" visibility="public"
  23291. deprecated="not deprecated">
  23292. <doc>
  23293. <![CDATA[Creates a new instance of CsvRecordInput]]>
  23294. </doc>
  23295. </constructor>
  23296. <method name="readByte" return="byte"
  23297. abstract="false" native="false" synchronized="false"
  23298. static="false" final="false" visibility="public"
  23299. deprecated="not deprecated">
  23300. <param name="tag" type="java.lang.String"/>
  23301. <exception name="IOException" type="java.io.IOException"/>
  23302. </method>
  23303. <method name="readBool" return="boolean"
  23304. abstract="false" native="false" synchronized="false"
  23305. static="false" final="false" visibility="public"
  23306. deprecated="not deprecated">
  23307. <param name="tag" type="java.lang.String"/>
  23308. <exception name="IOException" type="java.io.IOException"/>
  23309. </method>
  23310. <method name="readInt" return="int"
  23311. abstract="false" native="false" synchronized="false"
  23312. static="false" final="false" visibility="public"
  23313. deprecated="not deprecated">
  23314. <param name="tag" type="java.lang.String"/>
  23315. <exception name="IOException" type="java.io.IOException"/>
  23316. </method>
  23317. <method name="readLong" return="long"
  23318. abstract="false" native="false" synchronized="false"
  23319. static="false" final="false" visibility="public"
  23320. deprecated="not deprecated">
  23321. <param name="tag" type="java.lang.String"/>
  23322. <exception name="IOException" type="java.io.IOException"/>
  23323. </method>
  23324. <method name="readFloat" return="float"
  23325. abstract="false" native="false" synchronized="false"
  23326. static="false" final="false" visibility="public"
  23327. deprecated="not deprecated">
  23328. <param name="tag" type="java.lang.String"/>
  23329. <exception name="IOException" type="java.io.IOException"/>
  23330. </method>
  23331. <method name="readDouble" return="double"
  23332. abstract="false" native="false" synchronized="false"
  23333. static="false" final="false" visibility="public"
  23334. deprecated="not deprecated">
  23335. <param name="tag" type="java.lang.String"/>
  23336. <exception name="IOException" type="java.io.IOException"/>
  23337. </method>
  23338. <method name="readString" return="java.lang.String"
  23339. abstract="false" native="false" synchronized="false"
  23340. static="false" final="false" visibility="public"
  23341. deprecated="not deprecated">
  23342. <param name="tag" type="java.lang.String"/>
  23343. <exception name="IOException" type="java.io.IOException"/>
  23344. </method>
  23345. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  23346. abstract="false" native="false" synchronized="false"
  23347. static="false" final="false" visibility="public"
  23348. deprecated="not deprecated">
  23349. <param name="tag" type="java.lang.String"/>
  23350. <exception name="IOException" type="java.io.IOException"/>
  23351. </method>
  23352. <method name="startRecord"
  23353. abstract="false" native="false" synchronized="false"
  23354. static="false" final="false" visibility="public"
  23355. deprecated="not deprecated">
  23356. <param name="tag" type="java.lang.String"/>
  23357. <exception name="IOException" type="java.io.IOException"/>
  23358. </method>
  23359. <method name="endRecord"
  23360. abstract="false" native="false" synchronized="false"
  23361. static="false" final="false" visibility="public"
  23362. deprecated="not deprecated">
  23363. <param name="tag" type="java.lang.String"/>
  23364. <exception name="IOException" type="java.io.IOException"/>
  23365. </method>
  23366. <method name="startVector" return="org.apache.hadoop.record.Index"
  23367. abstract="false" native="false" synchronized="false"
  23368. static="false" final="false" visibility="public"
  23369. deprecated="not deprecated">
  23370. <param name="tag" type="java.lang.String"/>
  23371. <exception name="IOException" type="java.io.IOException"/>
  23372. </method>
  23373. <method name="endVector"
  23374. abstract="false" native="false" synchronized="false"
  23375. static="false" final="false" visibility="public"
  23376. deprecated="not deprecated">
  23377. <param name="tag" type="java.lang.String"/>
  23378. <exception name="IOException" type="java.io.IOException"/>
  23379. </method>
  23380. <method name="startMap" return="org.apache.hadoop.record.Index"
  23381. abstract="false" native="false" synchronized="false"
  23382. static="false" final="false" visibility="public"
  23383. deprecated="not deprecated">
  23384. <param name="tag" type="java.lang.String"/>
  23385. <exception name="IOException" type="java.io.IOException"/>
  23386. </method>
  23387. <method name="endMap"
  23388. abstract="false" native="false" synchronized="false"
  23389. static="false" final="false" visibility="public"
  23390. deprecated="not deprecated">
  23391. <param name="tag" type="java.lang.String"/>
  23392. <exception name="IOException" type="java.io.IOException"/>
  23393. </method>
  23394. </class>
  23395. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  23396. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  23397. <class name="CsvRecordOutput" extends="java.lang.Object"
  23398. abstract="false"
  23399. static="false" final="false" visibility="public"
  23400. deprecated="not deprecated">
  23401. <implements name="org.apache.hadoop.record.RecordOutput"/>
  23402. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  23403. static="false" final="false" visibility="public"
  23404. deprecated="not deprecated">
  23405. <doc>
  23406. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  23407. </doc>
  23408. </constructor>
  23409. <method name="writeByte"
  23410. abstract="false" native="false" synchronized="false"
  23411. static="false" final="false" visibility="public"
  23412. deprecated="not deprecated">
  23413. <param name="b" type="byte"/>
  23414. <param name="tag" type="java.lang.String"/>
  23415. <exception name="IOException" type="java.io.IOException"/>
  23416. </method>
  23417. <method name="writeBool"
  23418. abstract="false" native="false" synchronized="false"
  23419. static="false" final="false" visibility="public"
  23420. deprecated="not deprecated">
  23421. <param name="b" type="boolean"/>
  23422. <param name="tag" type="java.lang.String"/>
  23423. <exception name="IOException" type="java.io.IOException"/>
  23424. </method>
  23425. <method name="writeInt"
  23426. abstract="false" native="false" synchronized="false"
  23427. static="false" final="false" visibility="public"
  23428. deprecated="not deprecated">
  23429. <param name="i" type="int"/>
  23430. <param name="tag" type="java.lang.String"/>
  23431. <exception name="IOException" type="java.io.IOException"/>
  23432. </method>
  23433. <method name="writeLong"
  23434. abstract="false" native="false" synchronized="false"
  23435. static="false" final="false" visibility="public"
  23436. deprecated="not deprecated">
  23437. <param name="l" type="long"/>
  23438. <param name="tag" type="java.lang.String"/>
  23439. <exception name="IOException" type="java.io.IOException"/>
  23440. </method>
  23441. <method name="writeFloat"
  23442. abstract="false" native="false" synchronized="false"
  23443. static="false" final="false" visibility="public"
  23444. deprecated="not deprecated">
  23445. <param name="f" type="float"/>
  23446. <param name="tag" type="java.lang.String"/>
  23447. <exception name="IOException" type="java.io.IOException"/>
  23448. </method>
  23449. <method name="writeDouble"
  23450. abstract="false" native="false" synchronized="false"
  23451. static="false" final="false" visibility="public"
  23452. deprecated="not deprecated">
  23453. <param name="d" type="double"/>
  23454. <param name="tag" type="java.lang.String"/>
  23455. <exception name="IOException" type="java.io.IOException"/>
  23456. </method>
  23457. <method name="writeString"
  23458. abstract="false" native="false" synchronized="false"
  23459. static="false" final="false" visibility="public"
  23460. deprecated="not deprecated">
  23461. <param name="s" type="java.lang.String"/>
  23462. <param name="tag" type="java.lang.String"/>
  23463. <exception name="IOException" type="java.io.IOException"/>
  23464. </method>
  23465. <method name="writeBuffer"
  23466. abstract="false" native="false" synchronized="false"
  23467. static="false" final="false" visibility="public"
  23468. deprecated="not deprecated">
  23469. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  23470. <param name="tag" type="java.lang.String"/>
  23471. <exception name="IOException" type="java.io.IOException"/>
  23472. </method>
  23473. <method name="startRecord"
  23474. abstract="false" native="false" synchronized="false"
  23475. static="false" final="false" visibility="public"
  23476. deprecated="not deprecated">
  23477. <param name="r" type="org.apache.hadoop.record.Record"/>
  23478. <param name="tag" type="java.lang.String"/>
  23479. <exception name="IOException" type="java.io.IOException"/>
  23480. </method>
  23481. <method name="endRecord"
  23482. abstract="false" native="false" synchronized="false"
  23483. static="false" final="false" visibility="public"
  23484. deprecated="not deprecated">
  23485. <param name="r" type="org.apache.hadoop.record.Record"/>
  23486. <param name="tag" type="java.lang.String"/>
  23487. <exception name="IOException" type="java.io.IOException"/>
  23488. </method>
  23489. <method name="startVector"
  23490. abstract="false" native="false" synchronized="false"
  23491. static="false" final="false" visibility="public"
  23492. deprecated="not deprecated">
  23493. <param name="v" type="java.util.ArrayList"/>
  23494. <param name="tag" type="java.lang.String"/>
  23495. <exception name="IOException" type="java.io.IOException"/>
  23496. </method>
  23497. <method name="endVector"
  23498. abstract="false" native="false" synchronized="false"
  23499. static="false" final="false" visibility="public"
  23500. deprecated="not deprecated">
  23501. <param name="v" type="java.util.ArrayList"/>
  23502. <param name="tag" type="java.lang.String"/>
  23503. <exception name="IOException" type="java.io.IOException"/>
  23504. </method>
  23505. <method name="startMap"
  23506. abstract="false" native="false" synchronized="false"
  23507. static="false" final="false" visibility="public"
  23508. deprecated="not deprecated">
  23509. <param name="v" type="java.util.TreeMap"/>
  23510. <param name="tag" type="java.lang.String"/>
  23511. <exception name="IOException" type="java.io.IOException"/>
  23512. </method>
  23513. <method name="endMap"
  23514. abstract="false" native="false" synchronized="false"
  23515. static="false" final="false" visibility="public"
  23516. deprecated="not deprecated">
  23517. <param name="v" type="java.util.TreeMap"/>
  23518. <param name="tag" type="java.lang.String"/>
  23519. <exception name="IOException" type="java.io.IOException"/>
  23520. </method>
  23521. </class>
  23522. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  23523. <!-- start interface org.apache.hadoop.record.Index -->
  23524. <interface name="Index" abstract="true"
  23525. static="false" final="false" visibility="public"
  23526. deprecated="not deprecated">
  23527. <method name="done" return="boolean"
  23528. abstract="false" native="false" synchronized="false"
  23529. static="false" final="false" visibility="public"
  23530. deprecated="not deprecated">
  23531. </method>
  23532. <method name="incr"
  23533. abstract="false" native="false" synchronized="false"
  23534. static="false" final="false" visibility="public"
  23535. deprecated="not deprecated">
  23536. </method>
  23537. <doc>
  23538. <![CDATA[Interface that acts as an iterator for deserializing maps.
  23539. The deserializer returns an instance that the record uses to
  23540. read vectors and maps. An example of usage is as follows:
  23541. <code>
  23542. Index idx = startVector(...);
  23543. while (!idx.done()) {
  23544. .... // read element of a vector
  23545. idx.incr();
  23546. }
  23547. </code>]]>
  23548. </doc>
  23549. </interface>
  23550. <!-- end interface org.apache.hadoop.record.Index -->
  23551. <!-- start class org.apache.hadoop.record.Record -->
  23552. <class name="Record" extends="java.lang.Object"
  23553. abstract="true"
  23554. static="false" final="false" visibility="public"
  23555. deprecated="not deprecated">
  23556. <implements name="org.apache.hadoop.io.WritableComparable"/>
  23557. <implements name="java.lang.Cloneable"/>
  23558. <constructor name="Record"
  23559. static="false" final="false" visibility="public"
  23560. deprecated="not deprecated">
  23561. </constructor>
  23562. <method name="serialize"
  23563. abstract="true" native="false" synchronized="false"
  23564. static="false" final="false" visibility="public"
  23565. deprecated="not deprecated">
  23566. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  23567. <param name="tag" type="java.lang.String"/>
  23568. <exception name="IOException" type="java.io.IOException"/>
  23569. <doc>
  23570. <![CDATA[Serialize a record with tag (ususally field name)
  23571. @param rout Record output destination
  23572. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  23573. </doc>
  23574. </method>
  23575. <method name="deserialize"
  23576. abstract="true" native="false" synchronized="false"
  23577. static="false" final="false" visibility="public"
  23578. deprecated="not deprecated">
  23579. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  23580. <param name="tag" type="java.lang.String"/>
  23581. <exception name="IOException" type="java.io.IOException"/>
  23582. <doc>
  23583. <![CDATA[Deserialize a record with a tag (usually field name)
  23584. @param rin Record input source
  23585. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  23586. </doc>
  23587. </method>
  23588. <method name="compareTo" return="int"
  23589. abstract="true" native="false" synchronized="false"
  23590. static="false" final="false" visibility="public"
  23591. deprecated="not deprecated">
  23592. <param name="peer" type="java.lang.Object"/>
  23593. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  23594. </method>
  23595. <method name="serialize"
  23596. abstract="false" native="false" synchronized="false"
  23597. static="false" final="false" visibility="public"
  23598. deprecated="not deprecated">
  23599. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  23600. <exception name="IOException" type="java.io.IOException"/>
  23601. <doc>
  23602. <![CDATA[Serialize a record without a tag
  23603. @param rout Record output destination]]>
  23604. </doc>
  23605. </method>
  23606. <method name="deserialize"
  23607. abstract="false" native="false" synchronized="false"
  23608. static="false" final="false" visibility="public"
  23609. deprecated="not deprecated">
  23610. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  23611. <exception name="IOException" type="java.io.IOException"/>
  23612. <doc>
  23613. <![CDATA[Deserialize a record without a tag
  23614. @param rin Record input source]]>
  23615. </doc>
  23616. </method>
  23617. <method name="write"
  23618. abstract="false" native="false" synchronized="false"
  23619. static="false" final="false" visibility="public"
  23620. deprecated="not deprecated">
  23621. <param name="out" type="java.io.DataOutput"/>
  23622. <exception name="IOException" type="java.io.IOException"/>
  23623. </method>
  23624. <method name="readFields"
  23625. abstract="false" native="false" synchronized="false"
  23626. static="false" final="false" visibility="public"
  23627. deprecated="not deprecated">
  23628. <param name="din" type="java.io.DataInput"/>
  23629. <exception name="IOException" type="java.io.IOException"/>
  23630. </method>
  23631. <method name="toString" return="java.lang.String"
  23632. abstract="false" native="false" synchronized="false"
  23633. static="false" final="false" visibility="public"
  23634. deprecated="not deprecated">
  23635. </method>
  23636. <doc>
  23637. <![CDATA[Abstract class that is extended by generated classes.]]>
  23638. </doc>
  23639. </class>
  23640. <!-- end class org.apache.hadoop.record.Record -->
  23641. <!-- start class org.apache.hadoop.record.RecordComparator -->
  23642. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  23643. abstract="true"
  23644. static="false" final="false" visibility="public"
  23645. deprecated="not deprecated">
  23646. <constructor name="RecordComparator" type="java.lang.Class"
  23647. static="false" final="false" visibility="protected"
  23648. deprecated="not deprecated">
  23649. <doc>
  23650. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  23651. </doc>
  23652. </constructor>
  23653. <method name="compare" return="int"
  23654. abstract="true" native="false" synchronized="false"
  23655. static="false" final="false" visibility="public"
  23656. deprecated="not deprecated">
  23657. <param name="b1" type="byte[]"/>
  23658. <param name="s1" type="int"/>
  23659. <param name="l1" type="int"/>
  23660. <param name="b2" type="byte[]"/>
  23661. <param name="s2" type="int"/>
  23662. <param name="l2" type="int"/>
  23663. </method>
  23664. <method name="define"
  23665. abstract="false" native="false" synchronized="true"
  23666. static="true" final="false" visibility="public"
  23667. deprecated="not deprecated">
  23668. <param name="c" type="java.lang.Class"/>
  23669. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  23670. <doc>
  23671. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  23672. @param c record classs for which a raw comparator is provided
  23673. @param comparator Raw comparator instance for class c]]>
  23674. </doc>
  23675. </method>
  23676. <doc>
  23677. <![CDATA[A raw record comparator base class]]>
  23678. </doc>
  23679. </class>
  23680. <!-- end class org.apache.hadoop.record.RecordComparator -->
  23681. <!-- start interface org.apache.hadoop.record.RecordInput -->
  23682. <interface name="RecordInput" abstract="true"
  23683. static="false" final="false" visibility="public"
  23684. deprecated="not deprecated">
  23685. <method name="readByte" return="byte"
  23686. abstract="false" native="false" synchronized="false"
  23687. static="false" final="false" visibility="public"
  23688. deprecated="not deprecated">
  23689. <param name="tag" type="java.lang.String"/>
  23690. <exception name="IOException" type="java.io.IOException"/>
  23691. <doc>
  23692. <![CDATA[Read a byte from serialized record.
  23693. @param tag Used by tagged serialization formats (such as XML)
  23694. @return value read from serialized record.]]>
  23695. </doc>
  23696. </method>
  23697. <method name="readBool" return="boolean"
  23698. abstract="false" native="false" synchronized="false"
  23699. static="false" final="false" visibility="public"
  23700. deprecated="not deprecated">
  23701. <param name="tag" type="java.lang.String"/>
  23702. <exception name="IOException" type="java.io.IOException"/>
  23703. <doc>
  23704. <![CDATA[Read a boolean from serialized record.
  23705. @param tag Used by tagged serialization formats (such as XML)
  23706. @return value read from serialized record.]]>
  23707. </doc>
  23708. </method>
  23709. <method name="readInt" return="int"
  23710. abstract="false" native="false" synchronized="false"
  23711. static="false" final="false" visibility="public"
  23712. deprecated="not deprecated">
  23713. <param name="tag" type="java.lang.String"/>
  23714. <exception name="IOException" type="java.io.IOException"/>
  23715. <doc>
  23716. <![CDATA[Read an integer from serialized record.
  23717. @param tag Used by tagged serialization formats (such as XML)
  23718. @return value read from serialized record.]]>
  23719. </doc>
  23720. </method>
  23721. <method name="readLong" return="long"
  23722. abstract="false" native="false" synchronized="false"
  23723. static="false" final="false" visibility="public"
  23724. deprecated="not deprecated">
  23725. <param name="tag" type="java.lang.String"/>
  23726. <exception name="IOException" type="java.io.IOException"/>
  23727. <doc>
  23728. <![CDATA[Read a long integer from serialized record.
  23729. @param tag Used by tagged serialization formats (such as XML)
  23730. @return value read from serialized record.]]>
  23731. </doc>
  23732. </method>
  23733. <method name="readFloat" return="float"
  23734. abstract="false" native="false" synchronized="false"
  23735. static="false" final="false" visibility="public"
  23736. deprecated="not deprecated">
  23737. <param name="tag" type="java.lang.String"/>
  23738. <exception name="IOException" type="java.io.IOException"/>
  23739. <doc>
  23740. <![CDATA[Read a single-precision float from serialized record.
  23741. @param tag Used by tagged serialization formats (such as XML)
  23742. @return value read from serialized record.]]>
  23743. </doc>
  23744. </method>
  23745. <method name="readDouble" return="double"
  23746. abstract="false" native="false" synchronized="false"
  23747. static="false" final="false" visibility="public"
  23748. deprecated="not deprecated">
  23749. <param name="tag" type="java.lang.String"/>
  23750. <exception name="IOException" type="java.io.IOException"/>
  23751. <doc>
  23752. <![CDATA[Read a double-precision number from serialized record.
  23753. @param tag Used by tagged serialization formats (such as XML)
  23754. @return value read from serialized record.]]>
  23755. </doc>
  23756. </method>
  23757. <method name="readString" return="java.lang.String"
  23758. abstract="false" native="false" synchronized="false"
  23759. static="false" final="false" visibility="public"
  23760. deprecated="not deprecated">
  23761. <param name="tag" type="java.lang.String"/>
  23762. <exception name="IOException" type="java.io.IOException"/>
  23763. <doc>
  23764. <![CDATA[Read a UTF-8 encoded string from serialized record.
  23765. @param tag Used by tagged serialization formats (such as XML)
  23766. @return value read from serialized record.]]>
  23767. </doc>
  23768. </method>
  23769. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  23770. abstract="false" native="false" synchronized="false"
  23771. static="false" final="false" visibility="public"
  23772. deprecated="not deprecated">
  23773. <param name="tag" type="java.lang.String"/>
  23774. <exception name="IOException" type="java.io.IOException"/>
  23775. <doc>
  23776. <![CDATA[Read byte array from serialized record.
  23777. @param tag Used by tagged serialization formats (such as XML)
  23778. @return value read from serialized record.]]>
  23779. </doc>
  23780. </method>
  23781. <method name="startRecord"
  23782. abstract="false" native="false" synchronized="false"
  23783. static="false" final="false" visibility="public"
  23784. deprecated="not deprecated">
  23785. <param name="tag" type="java.lang.String"/>
  23786. <exception name="IOException" type="java.io.IOException"/>
  23787. <doc>
  23788. <![CDATA[Check the mark for start of the serialized record.
  23789. @param tag Used by tagged serialization formats (such as XML)]]>
  23790. </doc>
  23791. </method>
  23792. <method name="endRecord"
  23793. abstract="false" native="false" synchronized="false"
  23794. static="false" final="false" visibility="public"
  23795. deprecated="not deprecated">
  23796. <param name="tag" type="java.lang.String"/>
  23797. <exception name="IOException" type="java.io.IOException"/>
  23798. <doc>
  23799. <![CDATA[Check the mark for end of the serialized record.
  23800. @param tag Used by tagged serialization formats (such as XML)]]>
  23801. </doc>
  23802. </method>
  23803. <method name="startVector" return="org.apache.hadoop.record.Index"
  23804. abstract="false" native="false" synchronized="false"
  23805. static="false" final="false" visibility="public"
  23806. deprecated="not deprecated">
  23807. <param name="tag" type="java.lang.String"/>
  23808. <exception name="IOException" type="java.io.IOException"/>
  23809. <doc>
  23810. <![CDATA[Check the mark for start of the serialized vector.
  23811. @param tag Used by tagged serialization formats (such as XML)
  23812. @return Index that is used to count the number of elements.]]>
  23813. </doc>
  23814. </method>
  23815. <method name="endVector"
  23816. abstract="false" native="false" synchronized="false"
  23817. static="false" final="false" visibility="public"
  23818. deprecated="not deprecated">
  23819. <param name="tag" type="java.lang.String"/>
  23820. <exception name="IOException" type="java.io.IOException"/>
  23821. <doc>
  23822. <![CDATA[Check the mark for end of the serialized vector.
  23823. @param tag Used by tagged serialization formats (such as XML)]]>
  23824. </doc>
  23825. </method>
  23826. <method name="startMap" return="org.apache.hadoop.record.Index"
  23827. abstract="false" native="false" synchronized="false"
  23828. static="false" final="false" visibility="public"
  23829. deprecated="not deprecated">
  23830. <param name="tag" type="java.lang.String"/>
  23831. <exception name="IOException" type="java.io.IOException"/>
  23832. <doc>
  23833. <![CDATA[Check the mark for start of the serialized map.
  23834. @param tag Used by tagged serialization formats (such as XML)
  23835. @return Index that is used to count the number of map entries.]]>
  23836. </doc>
  23837. </method>
  23838. <method name="endMap"
  23839. abstract="false" native="false" synchronized="false"
  23840. static="false" final="false" visibility="public"
  23841. deprecated="not deprecated">
  23842. <param name="tag" type="java.lang.String"/>
  23843. <exception name="IOException" type="java.io.IOException"/>
  23844. <doc>
  23845. <![CDATA[Check the mark for end of the serialized map.
  23846. @param tag Used by tagged serialization formats (such as XML)]]>
  23847. </doc>
  23848. </method>
  23849. <doc>
  23850. <![CDATA[Interface that all the Deserializers have to implement.]]>
  23851. </doc>
  23852. </interface>
  23853. <!-- end interface org.apache.hadoop.record.RecordInput -->
  23854. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  23855. <interface name="RecordOutput" abstract="true"
  23856. static="false" final="false" visibility="public"
  23857. deprecated="not deprecated">
  23858. <method name="writeByte"
  23859. abstract="false" native="false" synchronized="false"
  23860. static="false" final="false" visibility="public"
  23861. deprecated="not deprecated">
  23862. <param name="b" type="byte"/>
  23863. <param name="tag" type="java.lang.String"/>
  23864. <exception name="IOException" type="java.io.IOException"/>
  23865. <doc>
  23866. <![CDATA[Write a byte to serialized record.
  23867. @param b Byte to be serialized
  23868. @param tag Used by tagged serialization formats (such as XML)
  23869. @throws IOException Indicates error in serialization]]>
  23870. </doc>
  23871. </method>
  23872. <method name="writeBool"
  23873. abstract="false" native="false" synchronized="false"
  23874. static="false" final="false" visibility="public"
  23875. deprecated="not deprecated">
  23876. <param name="b" type="boolean"/>
  23877. <param name="tag" type="java.lang.String"/>
  23878. <exception name="IOException" type="java.io.IOException"/>
  23879. <doc>
  23880. <![CDATA[Write a boolean to serialized record.
  23881. @param b Boolean to be serialized
  23882. @param tag Used by tagged serialization formats (such as XML)
  23883. @throws IOException Indicates error in serialization]]>
  23884. </doc>
  23885. </method>
  23886. <method name="writeInt"
  23887. abstract="false" native="false" synchronized="false"
  23888. static="false" final="false" visibility="public"
  23889. deprecated="not deprecated">
  23890. <param name="i" type="int"/>
  23891. <param name="tag" type="java.lang.String"/>
  23892. <exception name="IOException" type="java.io.IOException"/>
  23893. <doc>
  23894. <![CDATA[Write an integer to serialized record.
  23895. @param i Integer to be serialized
  23896. @param tag Used by tagged serialization formats (such as XML)
  23897. @throws IOException Indicates error in serialization]]>
  23898. </doc>
  23899. </method>
  23900. <method name="writeLong"
  23901. abstract="false" native="false" synchronized="false"
  23902. static="false" final="false" visibility="public"
  23903. deprecated="not deprecated">
  23904. <param name="l" type="long"/>
  23905. <param name="tag" type="java.lang.String"/>
  23906. <exception name="IOException" type="java.io.IOException"/>
  23907. <doc>
  23908. <![CDATA[Write a long integer to serialized record.
  23909. @param l Long to be serialized
  23910. @param tag Used by tagged serialization formats (such as XML)
  23911. @throws IOException Indicates error in serialization]]>
  23912. </doc>
  23913. </method>
  23914. <method name="writeFloat"
  23915. abstract="false" native="false" synchronized="false"
  23916. static="false" final="false" visibility="public"
  23917. deprecated="not deprecated">
  23918. <param name="f" type="float"/>
  23919. <param name="tag" type="java.lang.String"/>
  23920. <exception name="IOException" type="java.io.IOException"/>
  23921. <doc>
  23922. <![CDATA[Write a single-precision float to serialized record.
  23923. @param f Float to be serialized
  23924. @param tag Used by tagged serialization formats (such as XML)
  23925. @throws IOException Indicates error in serialization]]>
  23926. </doc>
  23927. </method>
  23928. <method name="writeDouble"
  23929. abstract="false" native="false" synchronized="false"
  23930. static="false" final="false" visibility="public"
  23931. deprecated="not deprecated">
  23932. <param name="d" type="double"/>
  23933. <param name="tag" type="java.lang.String"/>
  23934. <exception name="IOException" type="java.io.IOException"/>
  23935. <doc>
  23936. <![CDATA[Write a double precision floating point number to serialized record.
  23937. @param d Double to be serialized
  23938. @param tag Used by tagged serialization formats (such as XML)
  23939. @throws IOException Indicates error in serialization]]>
  23940. </doc>
  23941. </method>
  23942. <method name="writeString"
  23943. abstract="false" native="false" synchronized="false"
  23944. static="false" final="false" visibility="public"
  23945. deprecated="not deprecated">
  23946. <param name="s" type="java.lang.String"/>
  23947. <param name="tag" type="java.lang.String"/>
  23948. <exception name="IOException" type="java.io.IOException"/>
  23949. <doc>
  23950. <![CDATA[Write a unicode string to serialized record.
  23951. @param s String to be serialized
  23952. @param tag Used by tagged serialization formats (such as XML)
  23953. @throws IOException Indicates error in serialization]]>
  23954. </doc>
  23955. </method>
  23956. <method name="writeBuffer"
  23957. abstract="false" native="false" synchronized="false"
  23958. static="false" final="false" visibility="public"
  23959. deprecated="not deprecated">
  23960. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  23961. <param name="tag" type="java.lang.String"/>
  23962. <exception name="IOException" type="java.io.IOException"/>
  23963. <doc>
  23964. <![CDATA[Write a buffer to serialized record.
  23965. @param buf Buffer to be serialized
  23966. @param tag Used by tagged serialization formats (such as XML)
  23967. @throws IOException Indicates error in serialization]]>
  23968. </doc>
  23969. </method>
  23970. <method name="startRecord"
  23971. abstract="false" native="false" synchronized="false"
  23972. static="false" final="false" visibility="public"
  23973. deprecated="not deprecated">
  23974. <param name="r" type="org.apache.hadoop.record.Record"/>
  23975. <param name="tag" type="java.lang.String"/>
  23976. <exception name="IOException" type="java.io.IOException"/>
  23977. <doc>
  23978. <![CDATA[Mark the start of a record to be serialized.
  23979. @param r Record to be serialized
  23980. @param tag Used by tagged serialization formats (such as XML)
  23981. @throws IOException Indicates error in serialization]]>
  23982. </doc>
  23983. </method>
  23984. <method name="endRecord"
  23985. abstract="false" native="false" synchronized="false"
  23986. static="false" final="false" visibility="public"
  23987. deprecated="not deprecated">
  23988. <param name="r" type="org.apache.hadoop.record.Record"/>
  23989. <param name="tag" type="java.lang.String"/>
  23990. <exception name="IOException" type="java.io.IOException"/>
  23991. <doc>
  23992. <![CDATA[Mark the end of a serialized record.
  23993. @param r Record to be serialized
  23994. @param tag Used by tagged serialization formats (such as XML)
  23995. @throws IOException Indicates error in serialization]]>
  23996. </doc>
  23997. </method>
  23998. <method name="startVector"
  23999. abstract="false" native="false" synchronized="false"
  24000. static="false" final="false" visibility="public"
  24001. deprecated="not deprecated">
  24002. <param name="v" type="java.util.ArrayList"/>
  24003. <param name="tag" type="java.lang.String"/>
  24004. <exception name="IOException" type="java.io.IOException"/>
  24005. <doc>
  24006. <![CDATA[Mark the start of a vector to be serialized.
  24007. @param v Vector to be serialized
  24008. @param tag Used by tagged serialization formats (such as XML)
  24009. @throws IOException Indicates error in serialization]]>
  24010. </doc>
  24011. </method>
  24012. <method name="endVector"
  24013. abstract="false" native="false" synchronized="false"
  24014. static="false" final="false" visibility="public"
  24015. deprecated="not deprecated">
  24016. <param name="v" type="java.util.ArrayList"/>
  24017. <param name="tag" type="java.lang.String"/>
  24018. <exception name="IOException" type="java.io.IOException"/>
  24019. <doc>
  24020. <![CDATA[Mark the end of a serialized vector.
  24021. @param v Vector to be serialized
  24022. @param tag Used by tagged serialization formats (such as XML)
  24023. @throws IOException Indicates error in serialization]]>
  24024. </doc>
  24025. </method>
  24026. <method name="startMap"
  24027. abstract="false" native="false" synchronized="false"
  24028. static="false" final="false" visibility="public"
  24029. deprecated="not deprecated">
  24030. <param name="m" type="java.util.TreeMap"/>
  24031. <param name="tag" type="java.lang.String"/>
  24032. <exception name="IOException" type="java.io.IOException"/>
  24033. <doc>
  24034. <![CDATA[Mark the start of a map to be serialized.
  24035. @param m Map to be serialized
  24036. @param tag Used by tagged serialization formats (such as XML)
  24037. @throws IOException Indicates error in serialization]]>
  24038. </doc>
  24039. </method>
  24040. <method name="endMap"
  24041. abstract="false" native="false" synchronized="false"
  24042. static="false" final="false" visibility="public"
  24043. deprecated="not deprecated">
  24044. <param name="m" type="java.util.TreeMap"/>
  24045. <param name="tag" type="java.lang.String"/>
  24046. <exception name="IOException" type="java.io.IOException"/>
  24047. <doc>
  24048. <![CDATA[Mark the end of a serialized map.
  24049. @param m Map to be serialized
  24050. @param tag Used by tagged serialization formats (such as XML)
  24051. @throws IOException Indicates error in serialization]]>
  24052. </doc>
  24053. </method>
  24054. <doc>
  24055. <![CDATA[Interface that alll the serializers have to implement.]]>
  24056. </doc>
  24057. </interface>
  24058. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  24059. <!-- start class org.apache.hadoop.record.Utils -->
  24060. <class name="Utils" extends="java.lang.Object"
  24061. abstract="false"
  24062. static="false" final="false" visibility="public"
  24063. deprecated="not deprecated">
  24064. <method name="readFloat" return="float"
  24065. abstract="false" native="false" synchronized="false"
  24066. static="true" final="false" visibility="public"
  24067. deprecated="not deprecated">
  24068. <param name="bytes" type="byte[]"/>
  24069. <param name="start" type="int"/>
  24070. <doc>
  24071. <![CDATA[Parse a float from a byte array.]]>
  24072. </doc>
  24073. </method>
  24074. <method name="readDouble" return="double"
  24075. abstract="false" native="false" synchronized="false"
  24076. static="true" final="false" visibility="public"
  24077. deprecated="not deprecated">
  24078. <param name="bytes" type="byte[]"/>
  24079. <param name="start" type="int"/>
  24080. <doc>
  24081. <![CDATA[Parse a double from a byte array.]]>
  24082. </doc>
  24083. </method>
  24084. <method name="readVLong" return="long"
  24085. abstract="false" native="false" synchronized="false"
  24086. static="true" final="false" visibility="public"
  24087. deprecated="not deprecated">
  24088. <param name="bytes" type="byte[]"/>
  24089. <param name="start" type="int"/>
  24090. <exception name="IOException" type="java.io.IOException"/>
  24091. <doc>
  24092. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  24093. @param bytes byte array with decode long
  24094. @param start starting index
  24095. @throws java.io.IOException
  24096. @return deserialized long]]>
  24097. </doc>
  24098. </method>
  24099. <method name="readVInt" return="int"
  24100. abstract="false" native="false" synchronized="false"
  24101. static="true" final="false" visibility="public"
  24102. deprecated="not deprecated">
  24103. <param name="bytes" type="byte[]"/>
  24104. <param name="start" type="int"/>
  24105. <exception name="IOException" type="java.io.IOException"/>
  24106. <doc>
  24107. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  24108. @param bytes byte array with the encoded integer
  24109. @param start start index
  24110. @throws java.io.IOException
  24111. @return deserialized integer]]>
  24112. </doc>
  24113. </method>
  24114. <method name="readVLong" return="long"
  24115. abstract="false" native="false" synchronized="false"
  24116. static="true" final="false" visibility="public"
  24117. deprecated="not deprecated">
  24118. <param name="in" type="java.io.DataInput"/>
  24119. <exception name="IOException" type="java.io.IOException"/>
  24120. <doc>
  24121. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  24122. @param in input stream
  24123. @throws java.io.IOException
  24124. @return deserialized long]]>
  24125. </doc>
  24126. </method>
  24127. <method name="readVInt" return="int"
  24128. abstract="false" native="false" synchronized="false"
  24129. static="true" final="false" visibility="public"
  24130. deprecated="not deprecated">
  24131. <param name="in" type="java.io.DataInput"/>
  24132. <exception name="IOException" type="java.io.IOException"/>
  24133. <doc>
  24134. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  24135. @param in input stream
  24136. @throws java.io.IOException
  24137. @return deserialized integer]]>
  24138. </doc>
  24139. </method>
  24140. <method name="getVIntSize" return="int"
  24141. abstract="false" native="false" synchronized="false"
  24142. static="true" final="false" visibility="public"
  24143. deprecated="not deprecated">
  24144. <param name="i" type="long"/>
  24145. <doc>
  24146. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  24147. @return the encoded length]]>
  24148. </doc>
  24149. </method>
  24150. <method name="writeVLong"
  24151. abstract="false" native="false" synchronized="false"
  24152. static="true" final="false" visibility="public"
  24153. deprecated="not deprecated">
  24154. <param name="stream" type="java.io.DataOutput"/>
  24155. <param name="i" type="long"/>
  24156. <exception name="IOException" type="java.io.IOException"/>
  24157. <doc>
  24158. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  24159. For -112 <= i <= 127, only one byte is used with the actual value.
  24160. For other values of i, the first byte value indicates whether the
  24161. long is positive or negative, and the number of bytes that follow.
  24162. If the first byte value v is between -113 and -120, the following long
  24163. is positive, with number of bytes that follow are -(v+112).
  24164. If the first byte value v is between -121 and -128, the following long
  24165. is negative, with number of bytes that follow are -(v+120). Bytes are
  24166. stored in the high-non-zero-byte-first order.
  24167. @param stream Binary output stream
  24168. @param i Long to be serialized
  24169. @throws java.io.IOException]]>
  24170. </doc>
  24171. </method>
  24172. <method name="writeVInt"
  24173. abstract="false" native="false" synchronized="false"
  24174. static="true" final="false" visibility="public"
  24175. deprecated="not deprecated">
  24176. <param name="stream" type="java.io.DataOutput"/>
  24177. <param name="i" type="int"/>
  24178. <exception name="IOException" type="java.io.IOException"/>
  24179. <doc>
  24180. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  24181. @param stream Binary output stream
  24182. @param i int to be serialized
  24183. @throws java.io.IOException]]>
  24184. </doc>
  24185. </method>
  24186. <method name="compareBytes" return="int"
  24187. abstract="false" native="false" synchronized="false"
  24188. static="true" final="false" visibility="public"
  24189. deprecated="not deprecated">
  24190. <param name="b1" type="byte[]"/>
  24191. <param name="s1" type="int"/>
  24192. <param name="l1" type="int"/>
  24193. <param name="b2" type="byte[]"/>
  24194. <param name="s2" type="int"/>
  24195. <param name="l2" type="int"/>
  24196. <doc>
  24197. <![CDATA[Lexicographic order of binary data.]]>
  24198. </doc>
  24199. </method>
  24200. <field name="hexchars" type="char[]"
  24201. transient="false" volatile="false"
  24202. static="true" final="true" visibility="public"
  24203. deprecated="not deprecated">
  24204. </field>
  24205. <doc>
  24206. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  24207. </doc>
  24208. </class>
  24209. <!-- end class org.apache.hadoop.record.Utils -->
  24210. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  24211. <class name="XmlRecordInput" extends="java.lang.Object"
  24212. abstract="false"
  24213. static="false" final="false" visibility="public"
  24214. deprecated="not deprecated">
  24215. <implements name="org.apache.hadoop.record.RecordInput"/>
  24216. <constructor name="XmlRecordInput" type="java.io.InputStream"
  24217. static="false" final="false" visibility="public"
  24218. deprecated="not deprecated">
  24219. <doc>
  24220. <![CDATA[Creates a new instance of XmlRecordInput]]>
  24221. </doc>
  24222. </constructor>
  24223. <method name="readByte" return="byte"
  24224. abstract="false" native="false" synchronized="false"
  24225. static="false" final="false" visibility="public"
  24226. deprecated="not deprecated">
  24227. <param name="tag" type="java.lang.String"/>
  24228. <exception name="IOException" type="java.io.IOException"/>
  24229. </method>
  24230. <method name="readBool" return="boolean"
  24231. abstract="false" native="false" synchronized="false"
  24232. static="false" final="false" visibility="public"
  24233. deprecated="not deprecated">
  24234. <param name="tag" type="java.lang.String"/>
  24235. <exception name="IOException" type="java.io.IOException"/>
  24236. </method>
  24237. <method name="readInt" return="int"
  24238. abstract="false" native="false" synchronized="false"
  24239. static="false" final="false" visibility="public"
  24240. deprecated="not deprecated">
  24241. <param name="tag" type="java.lang.String"/>
  24242. <exception name="IOException" type="java.io.IOException"/>
  24243. </method>
  24244. <method name="readLong" return="long"
  24245. abstract="false" native="false" synchronized="false"
  24246. static="false" final="false" visibility="public"
  24247. deprecated="not deprecated">
  24248. <param name="tag" type="java.lang.String"/>
  24249. <exception name="IOException" type="java.io.IOException"/>
  24250. </method>
  24251. <method name="readFloat" return="float"
  24252. abstract="false" native="false" synchronized="false"
  24253. static="false" final="false" visibility="public"
  24254. deprecated="not deprecated">
  24255. <param name="tag" type="java.lang.String"/>
  24256. <exception name="IOException" type="java.io.IOException"/>
  24257. </method>
  24258. <method name="readDouble" return="double"
  24259. abstract="false" native="false" synchronized="false"
  24260. static="false" final="false" visibility="public"
  24261. deprecated="not deprecated">
  24262. <param name="tag" type="java.lang.String"/>
  24263. <exception name="IOException" type="java.io.IOException"/>
  24264. </method>
  24265. <method name="readString" return="java.lang.String"
  24266. abstract="false" native="false" synchronized="false"
  24267. static="false" final="false" visibility="public"
  24268. deprecated="not deprecated">
  24269. <param name="tag" type="java.lang.String"/>
  24270. <exception name="IOException" type="java.io.IOException"/>
  24271. </method>
  24272. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  24273. abstract="false" native="false" synchronized="false"
  24274. static="false" final="false" visibility="public"
  24275. deprecated="not deprecated">
  24276. <param name="tag" type="java.lang.String"/>
  24277. <exception name="IOException" type="java.io.IOException"/>
  24278. </method>
  24279. <method name="startRecord"
  24280. abstract="false" native="false" synchronized="false"
  24281. static="false" final="false" visibility="public"
  24282. deprecated="not deprecated">
  24283. <param name="tag" type="java.lang.String"/>
  24284. <exception name="IOException" type="java.io.IOException"/>
  24285. </method>
  24286. <method name="endRecord"
  24287. abstract="false" native="false" synchronized="false"
  24288. static="false" final="false" visibility="public"
  24289. deprecated="not deprecated">
  24290. <param name="tag" type="java.lang.String"/>
  24291. <exception name="IOException" type="java.io.IOException"/>
  24292. </method>
  24293. <method name="startVector" return="org.apache.hadoop.record.Index"
  24294. abstract="false" native="false" synchronized="false"
  24295. static="false" final="false" visibility="public"
  24296. deprecated="not deprecated">
  24297. <param name="tag" type="java.lang.String"/>
  24298. <exception name="IOException" type="java.io.IOException"/>
  24299. </method>
  24300. <method name="endVector"
  24301. abstract="false" native="false" synchronized="false"
  24302. static="false" final="false" visibility="public"
  24303. deprecated="not deprecated">
  24304. <param name="tag" type="java.lang.String"/>
  24305. <exception name="IOException" type="java.io.IOException"/>
  24306. </method>
  24307. <method name="startMap" return="org.apache.hadoop.record.Index"
  24308. abstract="false" native="false" synchronized="false"
  24309. static="false" final="false" visibility="public"
  24310. deprecated="not deprecated">
  24311. <param name="tag" type="java.lang.String"/>
  24312. <exception name="IOException" type="java.io.IOException"/>
  24313. </method>
  24314. <method name="endMap"
  24315. abstract="false" native="false" synchronized="false"
  24316. static="false" final="false" visibility="public"
  24317. deprecated="not deprecated">
  24318. <param name="tag" type="java.lang.String"/>
  24319. <exception name="IOException" type="java.io.IOException"/>
  24320. </method>
  24321. <doc>
  24322. <![CDATA[XML Deserializer.]]>
  24323. </doc>
  24324. </class>
  24325. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  24326. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  24327. <class name="XmlRecordOutput" extends="java.lang.Object"
  24328. abstract="false"
  24329. static="false" final="false" visibility="public"
  24330. deprecated="not deprecated">
  24331. <implements name="org.apache.hadoop.record.RecordOutput"/>
  24332. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  24333. static="false" final="false" visibility="public"
  24334. deprecated="not deprecated">
  24335. <doc>
  24336. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  24337. </doc>
  24338. </constructor>
  24339. <method name="writeByte"
  24340. abstract="false" native="false" synchronized="false"
  24341. static="false" final="false" visibility="public"
  24342. deprecated="not deprecated">
  24343. <param name="b" type="byte"/>
  24344. <param name="tag" type="java.lang.String"/>
  24345. <exception name="IOException" type="java.io.IOException"/>
  24346. </method>
  24347. <method name="writeBool"
  24348. abstract="false" native="false" synchronized="false"
  24349. static="false" final="false" visibility="public"
  24350. deprecated="not deprecated">
  24351. <param name="b" type="boolean"/>
  24352. <param name="tag" type="java.lang.String"/>
  24353. <exception name="IOException" type="java.io.IOException"/>
  24354. </method>
  24355. <method name="writeInt"
  24356. abstract="false" native="false" synchronized="false"
  24357. static="false" final="false" visibility="public"
  24358. deprecated="not deprecated">
  24359. <param name="i" type="int"/>
  24360. <param name="tag" type="java.lang.String"/>
  24361. <exception name="IOException" type="java.io.IOException"/>
  24362. </method>
  24363. <method name="writeLong"
  24364. abstract="false" native="false" synchronized="false"
  24365. static="false" final="false" visibility="public"
  24366. deprecated="not deprecated">
  24367. <param name="l" type="long"/>
  24368. <param name="tag" type="java.lang.String"/>
  24369. <exception name="IOException" type="java.io.IOException"/>
  24370. </method>
  24371. <method name="writeFloat"
  24372. abstract="false" native="false" synchronized="false"
  24373. static="false" final="false" visibility="public"
  24374. deprecated="not deprecated">
  24375. <param name="f" type="float"/>
  24376. <param name="tag" type="java.lang.String"/>
  24377. <exception name="IOException" type="java.io.IOException"/>
  24378. </method>
  24379. <method name="writeDouble"
  24380. abstract="false" native="false" synchronized="false"
  24381. static="false" final="false" visibility="public"
  24382. deprecated="not deprecated">
  24383. <param name="d" type="double"/>
  24384. <param name="tag" type="java.lang.String"/>
  24385. <exception name="IOException" type="java.io.IOException"/>
  24386. </method>
  24387. <method name="writeString"
  24388. abstract="false" native="false" synchronized="false"
  24389. static="false" final="false" visibility="public"
  24390. deprecated="not deprecated">
  24391. <param name="s" type="java.lang.String"/>
  24392. <param name="tag" type="java.lang.String"/>
  24393. <exception name="IOException" type="java.io.IOException"/>
  24394. </method>
  24395. <method name="writeBuffer"
  24396. abstract="false" native="false" synchronized="false"
  24397. static="false" final="false" visibility="public"
  24398. deprecated="not deprecated">
  24399. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  24400. <param name="tag" type="java.lang.String"/>
  24401. <exception name="IOException" type="java.io.IOException"/>
  24402. </method>
  24403. <method name="startRecord"
  24404. abstract="false" native="false" synchronized="false"
  24405. static="false" final="false" visibility="public"
  24406. deprecated="not deprecated">
  24407. <param name="r" type="org.apache.hadoop.record.Record"/>
  24408. <param name="tag" type="java.lang.String"/>
  24409. <exception name="IOException" type="java.io.IOException"/>
  24410. </method>
  24411. <method name="endRecord"
  24412. abstract="false" native="false" synchronized="false"
  24413. static="false" final="false" visibility="public"
  24414. deprecated="not deprecated">
  24415. <param name="r" type="org.apache.hadoop.record.Record"/>
  24416. <param name="tag" type="java.lang.String"/>
  24417. <exception name="IOException" type="java.io.IOException"/>
  24418. </method>
  24419. <method name="startVector"
  24420. abstract="false" native="false" synchronized="false"
  24421. static="false" final="false" visibility="public"
  24422. deprecated="not deprecated">
  24423. <param name="v" type="java.util.ArrayList"/>
  24424. <param name="tag" type="java.lang.String"/>
  24425. <exception name="IOException" type="java.io.IOException"/>
  24426. </method>
  24427. <method name="endVector"
  24428. abstract="false" native="false" synchronized="false"
  24429. static="false" final="false" visibility="public"
  24430. deprecated="not deprecated">
  24431. <param name="v" type="java.util.ArrayList"/>
  24432. <param name="tag" type="java.lang.String"/>
  24433. <exception name="IOException" type="java.io.IOException"/>
  24434. </method>
  24435. <method name="startMap"
  24436. abstract="false" native="false" synchronized="false"
  24437. static="false" final="false" visibility="public"
  24438. deprecated="not deprecated">
  24439. <param name="v" type="java.util.TreeMap"/>
  24440. <param name="tag" type="java.lang.String"/>
  24441. <exception name="IOException" type="java.io.IOException"/>
  24442. </method>
  24443. <method name="endMap"
  24444. abstract="false" native="false" synchronized="false"
  24445. static="false" final="false" visibility="public"
  24446. deprecated="not deprecated">
  24447. <param name="v" type="java.util.TreeMap"/>
  24448. <param name="tag" type="java.lang.String"/>
  24449. <exception name="IOException" type="java.io.IOException"/>
  24450. </method>
  24451. <doc>
  24452. <![CDATA[XML Serializer.]]>
  24453. </doc>
  24454. </class>
  24455. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  24456. <doc>
  24457. <![CDATA[Hadoop record I/O contains classes and a record description language
  24458. translator for simplifying serialization and deserialization of records in a
  24459. language-neutral manner.
  24460. <h2>Introduction</h2>
  24461. Software systems of any significant complexity require mechanisms for data
  24462. interchange with the outside world. These interchanges typically involve the
  24463. marshaling and unmarshaling of logical units of data to and from data streams
  24464. (files, network connections, memory buffers etc.). Applications usually have
  24465. some code for serializing and deserializing the data types that they manipulate
  24466. embedded in them. The work of serialization has several features that make
  24467. automatic code generation for it worthwhile. Given a particular output encoding
  24468. (binary, XML, etc.), serialization of primitive types and simple compositions
  24469. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  24470. written serialization code can be susceptible to bugs especially when records
  24471. have a large number of fields or a record definition changes between software
  24472. versions. Lastly, it can be very useful for applications written in different
  24473. programming languages to be able to share and interchange data. This can be
  24474. made a lot easier by describing the data records manipulated by these
  24475. applications in a language agnostic manner and using the descriptions to derive
  24476. implementations of serialization in multiple target languages.
  24477. This document describes Hadoop Record I/O, a mechanism that is aimed
  24478. at
  24479. <ul>
  24480. <li> enabling the specification of simple serializable data types (records)
  24481. <li> enabling the generation of code in multiple target languages for
  24482. marshaling and unmarshaling such types
  24483. <li> providing target language specific support that will enable application
  24484. programmers to incorporate generated code into their applications
  24485. </ul>
  24486. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  24487. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  24488. the specification of most record types, they differ widely in what else they
  24489. focus on. The focus in Hadoop Record I/O is on data marshaling and
  24490. multi-lingual support. We take a translator-based approach to serialization.
  24491. Hadoop users have to describe their data in a simple data description
  24492. language. The Hadoop DDL translator rcc generates code that users
  24493. can invoke in order to read/write their data from/to simple stream
  24494. abstractions. Next we list explicitly some of the goals and non-goals of
  24495. Hadoop Record I/O.
  24496. <h3>Goals</h3>
  24497. <ul>
  24498. <li> Support for commonly used primitive types. Hadoop should include as
  24499. primitives commonly used builtin types from programming languages we intend to
  24500. support.
  24501. <li> Support for common data compositions (including recursive compositions).
  24502. Hadoop should support widely used composite types such as structs and
  24503. vectors.
  24504. <li> Code generation in multiple target languages. Hadoop should be capable of
  24505. generating serialization code in multiple target languages and should be
  24506. easily extensible to new target languages. The initial target languages are
  24507. C++ and Java.
  24508. <li> Support for generated target languages. Hadooop should include support
  24509. in the form of headers, libraries, packages for supported target languages
  24510. that enable easy inclusion and use of generated code in applications.
  24511. <li> Support for multiple output encodings. Candidates include
  24512. packed binary, comma-separated text, XML etc.
  24513. <li> Support for specifying record types in a backwards/forwards compatible
  24514. manner. This will probably be in the form of support for optional fields in
  24515. records. This version of the document does not include a description of the
  24516. planned mechanism, we intend to include it in the next iteration.
  24517. </ul>
  24518. <h3>Non-Goals</h3>
  24519. <ul>
  24520. <li> Serializing existing arbitrary C++ classes.
  24521. <li> Serializing complex data structures such as trees, linked lists etc.
  24522. <li> Built-in indexing schemes, compression, or check-sums.
  24523. <li> Dynamic construction of objects from an XML schema.
  24524. </ul>
  24525. The remainder of this document describes the features of Hadoop record I/O
  24526. in more detail. Section 2 describes the data types supported by the system.
  24527. Section 3 lays out the DDL syntax with some examples of simple records.
  24528. Section 4 describes the process of code generation with rcc. Section 5
  24529. describes target language mappings and support for Hadoop types. We include a
  24530. fairly complete description of C++ mappings with intent to include Java and
  24531. others in upcoming iterations of this document. The last section talks about
  24532. supported output encodings.
  24533. <h2>Data Types and Streams</h2>
  24534. This section describes the primitive and composite types supported by Hadoop.
  24535. We aim to support a set of types that can be used to simply and efficiently
  24536. express a wide range of record types in different programming languages.
  24537. <h3>Primitive Types</h3>
  24538. For the most part, the primitive types of Hadoop map directly to primitive
  24539. types in high level programming languages. Special cases are the
  24540. ustring (a Unicode string) and buffer types, which we believe
  24541. find wide use and which are usually implemented in library code and not
  24542. available as language built-ins. Hadoop also supplies these via library code
  24543. when a target language built-in is not present and there is no widely
  24544. adopted "standard" implementation. The complete list of primitive types is:
  24545. <ul>
  24546. <li> byte: An 8-bit unsigned integer.
  24547. <li> boolean: A boolean value.
  24548. <li> int: A 32-bit signed integer.
  24549. <li> long: A 64-bit signed integer.
  24550. <li> float: A single precision floating point number as described by
  24551. IEEE-754.
  24552. <li> double: A double precision floating point number as described by
  24553. IEEE-754.
  24554. <li> ustring: A string consisting of Unicode characters.
  24555. <li> buffer: An arbitrary sequence of bytes.
  24556. </ul>
  24557. <h3>Composite Types</h3>
  24558. Hadoop supports a small set of composite types that enable the description
  24559. of simple aggregate types and containers. A composite type is serialized
  24560. by sequentially serializing it constituent elements. The supported
  24561. composite types are:
  24562. <ul>
  24563. <li> record: An aggregate type like a C-struct. This is a list of
  24564. typed fields that are together considered a single unit of data. A record
  24565. is serialized by sequentially serializing its constituent fields. In addition
  24566. to serialization a record has comparison operations (equality and less-than)
  24567. implemented for it, these are defined as memberwise comparisons.
  24568. <li>vector: A sequence of entries of the same data type, primitive
  24569. or composite.
  24570. <li> map: An associative container mapping instances of a key type to
  24571. instances of a value type. The key and value types may themselves be primitive
  24572. or composite types.
  24573. </ul>
  24574. <h3>Streams</h3>
  24575. Hadoop generates code for serializing and deserializing record types to
  24576. abstract streams. For each target language Hadoop defines very simple input
  24577. and output stream interfaces. Application writers can usually develop
  24578. concrete implementations of these by putting a one method wrapper around
  24579. an existing stream implementation.
  24580. <h2>DDL Syntax and Examples</h2>
  24581. We now describe the syntax of the Hadoop data description language. This is
  24582. followed by a few examples of DDL usage.
  24583. <h3>Hadoop DDL Syntax</h3>
  24584. <pre><code>
  24585. recfile = *include module *record
  24586. include = "include" path
  24587. path = (relative-path / absolute-path)
  24588. module = "module" module-name
  24589. module-name = name *("." name)
  24590. record := "class" name "{" 1*(field) "}"
  24591. field := type name ";"
  24592. name := ALPHA (ALPHA / DIGIT / "_" )*
  24593. type := (ptype / ctype)
  24594. ptype := ("byte" / "boolean" / "int" |
  24595. "long" / "float" / "double"
  24596. "ustring" / "buffer")
  24597. ctype := (("vector" "<" type ">") /
  24598. ("map" "<" type "," type ">" ) ) / name)
  24599. </code></pre>
  24600. A DDL file describes one or more record types. It begins with zero or
  24601. more include declarations, a single mandatory module declaration
  24602. followed by zero or more class declarations. The semantics of each of
  24603. these declarations are described below:
  24604. <ul>
  24605. <li>include: An include declaration specifies a DDL file to be
  24606. referenced when generating code for types in the current DDL file. Record types
  24607. in the current compilation unit may refer to types in all included files.
  24608. File inclusion is recursive. An include does not trigger code
  24609. generation for the referenced file.
  24610. <li> module: Every Hadoop DDL file must have a single module
  24611. declaration that follows the list of includes and precedes all record
  24612. declarations. A module declaration identifies a scope within which
  24613. the names of all types in the current file are visible. Module names are
  24614. mapped to C++ namespaces, Java packages etc. in generated code.
  24615. <li> class: Records types are specified through class
  24616. declarations. A class declaration is like a Java class declaration.
  24617. It specifies a named record type and a list of fields that constitute records
  24618. of the type. Usage is illustrated in the following examples.
  24619. </ul>
  24620. <h3>Examples</h3>
  24621. <ul>
  24622. <li>A simple DDL file links.jr with just one record declaration.
  24623. <pre><code>
  24624. module links {
  24625. class Link {
  24626. ustring URL;
  24627. boolean isRelative;
  24628. ustring anchorText;
  24629. };
  24630. }
  24631. </code></pre>
  24632. <li> A DDL file outlinks.jr which includes another
  24633. <pre><code>
  24634. include "links.jr"
  24635. module outlinks {
  24636. class OutLinks {
  24637. ustring baseURL;
  24638. vector<links.Link> outLinks;
  24639. };
  24640. }
  24641. </code></pre>
  24642. </ul>
  24643. <h2>Code Generation</h2>
  24644. The Hadoop translator is written in Java. Invocation is done by executing a
  24645. wrapper shell script named named rcc. It takes a list of
  24646. record description files as a mandatory argument and an
  24647. optional language argument (the default is Java) --language or
  24648. -l. Thus a typical invocation would look like:
  24649. <pre><code>
  24650. $ rcc -l C++ <filename> ...
  24651. </code></pre>
  24652. <h2>Target Language Mappings and Support</h2>
  24653. For all target languages, the unit of code generation is a record type.
  24654. For each record type, Hadoop generates code for serialization and
  24655. deserialization, record comparison and access to record members.
  24656. <h3>C++</h3>
  24657. Support for including Hadoop generated C++ code in applications comes in the
  24658. form of a header file recordio.hh which needs to be included in source
  24659. that uses Hadoop types and a library librecordio.a which applications need
  24660. to be linked with. The header declares the Hadoop C++ namespace which defines
  24661. appropriate types for the various primitives, the basic interfaces for
  24662. records and streams and enumerates the supported serialization encodings.
  24663. Declarations of these interfaces and a description of their semantics follow:
  24664. <pre><code>
  24665. namespace hadoop {
  24666. enum RecFormat { kBinary, kXML, kCSV };
  24667. class InStream {
  24668. public:
  24669. virtual ssize_t read(void *buf, size_t n) = 0;
  24670. };
  24671. class OutStream {
  24672. public:
  24673. virtual ssize_t write(const void *buf, size_t n) = 0;
  24674. };
  24675. class IOError : public runtime_error {
  24676. public:
  24677. explicit IOError(const std::string& msg);
  24678. };
  24679. class IArchive;
  24680. class OArchive;
  24681. class RecordReader {
  24682. public:
  24683. RecordReader(InStream& in, RecFormat fmt);
  24684. virtual ~RecordReader(void);
  24685. virtual void read(Record& rec);
  24686. };
  24687. class RecordWriter {
  24688. public:
  24689. RecordWriter(OutStream& out, RecFormat fmt);
  24690. virtual ~RecordWriter(void);
  24691. virtual void write(Record& rec);
  24692. };
  24693. class Record {
  24694. public:
  24695. virtual std::string type(void) const = 0;
  24696. virtual std::string signature(void) const = 0;
  24697. protected:
  24698. virtual bool validate(void) const = 0;
  24699. virtual void
  24700. serialize(OArchive& oa, const std::string& tag) const = 0;
  24701. virtual void
  24702. deserialize(IArchive& ia, const std::string& tag) = 0;
  24703. };
  24704. }
  24705. </code></pre>
  24706. <ul>
  24707. <li> RecFormat: An enumeration of the serialization encodings supported
  24708. by this implementation of Hadoop.
  24709. <li> InStream: A simple abstraction for an input stream. This has a
  24710. single public read method that reads n bytes from the stream into
  24711. the buffer buf. Has the same semantics as a blocking read system
  24712. call. Returns the number of bytes read or -1 if an error occurs.
  24713. <li> OutStream: A simple abstraction for an output stream. This has a
  24714. single write method that writes n bytes to the stream from the
  24715. buffer buf. Has the same semantics as a blocking write system
  24716. call. Returns the number of bytes written or -1 if an error occurs.
  24717. <li> RecordReader: A RecordReader reads records one at a time from
  24718. an underlying stream in a specified record format. The reader is instantiated
  24719. with a stream and a serialization format. It has a read method that
  24720. takes an instance of a record and deserializes the record from the stream.
  24721. <li> RecordWriter: A RecordWriter writes records one at a
  24722. time to an underlying stream in a specified record format. The writer is
  24723. instantiated with a stream and a serialization format. It has a
  24724. write method that takes an instance of a record and serializes the
  24725. record to the stream.
  24726. <li> Record: The base class for all generated record types. This has two
  24727. public methods type and signature that return the typename and the
  24728. type signature of the record.
  24729. </ul>
  24730. Two files are generated for each record file (note: not for each record). If a
  24731. record file is named "name.jr", the generated files are
  24732. "name.jr.cc" and "name.jr.hh" containing serialization
  24733. implementations and record type declarations respectively.
  24734. For each record in the DDL file, the generated header file will contain a
  24735. class definition corresponding to the record type, method definitions for the
  24736. generated type will be present in the '.cc' file. The generated class will
  24737. inherit from the abstract class hadoop::Record. The DDL files
  24738. module declaration determines the namespace the record belongs to.
  24739. Each '.' delimited token in the module declaration results in the
  24740. creation of a namespace. For instance, the declaration module docs.links
  24741. results in the creation of a docs namespace and a nested
  24742. docs::links namespace. In the preceding examples, the Link class
  24743. is placed in the links namespace. The header file corresponding to
  24744. the links.jr file will contain:
  24745. <pre><code>
  24746. namespace links {
  24747. class Link : public hadoop::Record {
  24748. // ....
  24749. };
  24750. };
  24751. </code></pre>
  24752. Each field within the record will cause the generation of a private member
  24753. declaration of the appropriate type in the class declaration, and one or more
  24754. acccessor methods. The generated class will implement the serialize and
  24755. deserialize methods defined in hadoop::Record+. It will also
  24756. implement the inspection methods type and signature from
  24757. hadoop::Record. A default constructor and virtual destructor will also
  24758. be generated. Serialization code will read/write records into streams that
  24759. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  24760. For each member of a record an accessor method is generated that returns
  24761. either the member or a reference to the member. For members that are returned
  24762. by value, a setter method is also generated. This is true for primitive
  24763. data members of the types byte, int, long, boolean, float and
  24764. double. For example, for a int field called MyField the folowing
  24765. code is generated.
  24766. <pre><code>
  24767. ...
  24768. private:
  24769. int32_t mMyField;
  24770. ...
  24771. public:
  24772. int32_t getMyField(void) const {
  24773. return mMyField;
  24774. };
  24775. void setMyField(int32_t m) {
  24776. mMyField = m;
  24777. };
  24778. ...
  24779. </code></pre>
  24780. For a ustring or buffer or composite field. The generated code
  24781. only contains accessors that return a reference to the field. A const
  24782. and a non-const accessor are generated. For example:
  24783. <pre><code>
  24784. ...
  24785. private:
  24786. std::string mMyBuf;
  24787. ...
  24788. public:
  24789. std::string& getMyBuf() {
  24790. return mMyBuf;
  24791. };
  24792. const std::string& getMyBuf() const {
  24793. return mMyBuf;
  24794. };
  24795. ...
  24796. </code></pre>
  24797. <h4>Examples</h4>
  24798. Suppose the inclrec.jr file contains:
  24799. <pre><code>
  24800. module inclrec {
  24801. class RI {
  24802. int I32;
  24803. double D;
  24804. ustring S;
  24805. };
  24806. }
  24807. </code></pre>
  24808. and the testrec.jr file contains:
  24809. <pre><code>
  24810. include "inclrec.jr"
  24811. module testrec {
  24812. class R {
  24813. vector<float> VF;
  24814. RI Rec;
  24815. buffer Buf;
  24816. };
  24817. }
  24818. </code></pre>
  24819. Then the invocation of rcc such as:
  24820. <pre><code>
  24821. $ rcc -l c++ inclrec.jr testrec.jr
  24822. </code></pre>
  24823. will result in generation of four files:
  24824. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  24825. The inclrec.jr.hh will contain:
  24826. <pre><code>
  24827. #ifndef _INCLREC_JR_HH_
  24828. #define _INCLREC_JR_HH_
  24829. #include "recordio.hh"
  24830. namespace inclrec {
  24831. class RI : public hadoop::Record {
  24832. private:
  24833. int32_t I32;
  24834. double D;
  24835. std::string S;
  24836. public:
  24837. RI(void);
  24838. virtual ~RI(void);
  24839. virtual bool operator==(const RI& peer) const;
  24840. virtual bool operator<(const RI& peer) const;
  24841. virtual int32_t getI32(void) const { return I32; }
  24842. virtual void setI32(int32_t v) { I32 = v; }
  24843. virtual double getD(void) const { return D; }
  24844. virtual void setD(double v) { D = v; }
  24845. virtual std::string& getS(void) const { return S; }
  24846. virtual const std::string& getS(void) const { return S; }
  24847. virtual std::string type(void) const;
  24848. virtual std::string signature(void) const;
  24849. protected:
  24850. virtual void serialize(hadoop::OArchive& a) const;
  24851. virtual void deserialize(hadoop::IArchive& a);
  24852. };
  24853. } // end namespace inclrec
  24854. #endif /* _INCLREC_JR_HH_ */
  24855. </code></pre>
  24856. The testrec.jr.hh file will contain:
  24857. <pre><code>
  24858. #ifndef _TESTREC_JR_HH_
  24859. #define _TESTREC_JR_HH_
  24860. #include "inclrec.jr.hh"
  24861. namespace testrec {
  24862. class R : public hadoop::Record {
  24863. private:
  24864. std::vector<float> VF;
  24865. inclrec::RI Rec;
  24866. std::string Buf;
  24867. public:
  24868. R(void);
  24869. virtual ~R(void);
  24870. virtual bool operator==(const R& peer) const;
  24871. virtual bool operator<(const R& peer) const;
  24872. virtual std::vector<float>& getVF(void) const;
  24873. virtual const std::vector<float>& getVF(void) const;
  24874. virtual std::string& getBuf(void) const ;
  24875. virtual const std::string& getBuf(void) const;
  24876. virtual inclrec::RI& getRec(void) const;
  24877. virtual const inclrec::RI& getRec(void) const;
  24878. virtual bool serialize(hadoop::OutArchive& a) const;
  24879. virtual bool deserialize(hadoop::InArchive& a);
  24880. virtual std::string type(void) const;
  24881. virtual std::string signature(void) const;
  24882. };
  24883. }; // end namespace testrec
  24884. #endif /* _TESTREC_JR_HH_ */
  24885. </code></pre>
  24886. <h3>Java</h3>
  24887. Code generation for Java is similar to that for C++. A Java class is generated
  24888. for each record type with private members corresponding to the fields. Getters
  24889. and setters for fields are also generated. Some differences arise in the
  24890. way comparison is expressed and in the mapping of modules to packages and
  24891. classes to files. For equality testing, an equals method is generated
  24892. for each record type. As per Java requirements a hashCode method is also
  24893. generated. For comparison a compareTo method is generated for each
  24894. record type. This has the semantics as defined by the Java Comparable
  24895. interface, that is, the method returns a negative integer, zero, or a positive
  24896. integer as the invoked object is less than, equal to, or greater than the
  24897. comparison parameter.
  24898. A .java file is generated per record type as opposed to per DDL
  24899. file as in C++. The module declaration translates to a Java
  24900. package declaration. The module name maps to an identical Java package
  24901. name. In addition to this mapping, the DDL compiler creates the appropriate
  24902. directory hierarchy for the package and places the generated .java
  24903. files in the correct directories.
  24904. <h2>Mapping Summary</h2>
  24905. <pre><code>
  24906. DDL Type C++ Type Java Type
  24907. boolean bool boolean
  24908. byte int8_t byte
  24909. int int32_t int
  24910. long int64_t long
  24911. float float float
  24912. double double double
  24913. ustring std::string java.lang.String
  24914. buffer std::string org.apache.hadoop.record.Buffer
  24915. class type class type class type
  24916. vector<type> std::vector<type> java.util.ArrayList<type>
  24917. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  24918. </code></pre>
  24919. <h2>Data encodings</h2>
  24920. This section describes the format of the data encodings supported by Hadoop.
  24921. Currently, three data encodings are supported, namely binary, CSV and XML.
  24922. <h3>Binary Serialization Format</h3>
  24923. The binary data encoding format is fairly dense. Serialization of composite
  24924. types is simply defined as a concatenation of serializations of the constituent
  24925. elements (lengths are included in vectors and maps).
  24926. Composite types are serialized as follows:
  24927. <ul>
  24928. <li> class: Sequence of serialized members.
  24929. <li> vector: The number of elements serialized as an int. Followed by a
  24930. sequence of serialized elements.
  24931. <li> map: The number of key value pairs serialized as an int. Followed
  24932. by a sequence of serialized (key,value) pairs.
  24933. </ul>
  24934. Serialization of primitives is more interesting, with a zero compression
  24935. optimization for integral types and normalization to UTF-8 for strings.
  24936. Primitive types are serialized as follows:
  24937. <ul>
  24938. <li> byte: Represented by 1 byte, as is.
  24939. <li> boolean: Represented by 1-byte (0 or 1)
  24940. <li> int/long: Integers and longs are serialized zero compressed.
  24941. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  24942. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  24943. the number of trailing bytes, N, as the negative number (-120-N). For example,
  24944. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  24945. This doesn't help much for 4-byte integers but does a reasonably good job with
  24946. longs without bit twiddling.
  24947. <li> float/double: Serialized in IEEE 754 single and double precision
  24948. format in network byte order. This is the format used by Java.
  24949. <li> ustring: Serialized as 4-byte zero compressed length followed by
  24950. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  24951. language representation.
  24952. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  24953. raw bytes in the buffer.
  24954. </ul>
  24955. <h3>CSV Serialization Format</h3>
  24956. The CSV serialization format has a lot more structure than the "standard"
  24957. Excel CSV format, but we believe the additional structure is useful because
  24958. <ul>
  24959. <li> it makes parsing a lot easier without detracting too much from legibility
  24960. <li> the delimiters around composites make it obvious when one is reading a
  24961. sequence of Hadoop records
  24962. </ul>
  24963. Serialization formats for the various types are detailed in the grammar that
  24964. follows. The notable feature of the formats is the use of delimiters for
  24965. indicating the certain field types.
  24966. <ul>
  24967. <li> A string field begins with a single quote (').
  24968. <li> A buffer field begins with a sharp (#).
  24969. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  24970. ends with '}'.
  24971. </ul>
  24972. The CSV format can be described by the following grammar:
  24973. <pre><code>
  24974. record = primitive / struct / vector / map
  24975. primitive = boolean / int / long / float / double / ustring / buffer
  24976. boolean = "T" / "F"
  24977. int = ["-"] 1*DIGIT
  24978. long = ";" ["-"] 1*DIGIT
  24979. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  24980. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  24981. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  24982. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  24983. struct = "s{" record *("," record) "}"
  24984. vector = "v{" [record *("," record)] "}"
  24985. map = "m{" [*(record "," record)] "}"
  24986. </code></pre>
  24987. <h3>XML Serialization Format</h3>
  24988. The XML serialization format is the same used by Apache XML-RPC
  24989. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  24990. XML-RPC format and adds some additional data types. All record I/O types are
  24991. not directly expressible in this format, and access to a DDL is required in
  24992. order to convert these to valid types. All types primitive or composite are
  24993. represented by &lt;value&gt; elements. The particular XML-RPC type is
  24994. indicated by a nested element in the &lt;value&gt; element. The encoding for
  24995. records is always UTF-8. Primitive types are serialized as follows:
  24996. <ul>
  24997. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  24998. integers represented in US-ASCII
  24999. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  25000. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  25001. signed integers represented in US-ASCII.
  25002. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  25003. represented in US-ASCII.
  25004. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  25005. floating point numbers represented in US-ASCII.
  25006. <li> double: XML tag &lt;double&gt;. Values: Double precision
  25007. floating point numbers represented in US-ASCII.
  25008. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  25009. represented as UTF-8. XML does not permit all Unicode characters in literal
  25010. data. In particular, NULLs and control chars are not allowed. Additionally,
  25011. XML processors are required to replace carriage returns with line feeds and to
  25012. replace CRLF sequences with line feeds. Programming languages that we work
  25013. with do not impose these restrictions on string types. To work around these
  25014. restrictions, disallowed characters and CRs are percent escaped in strings.
  25015. The '%' character is also percent escaped.
  25016. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  25017. data. Represented as hexBinary, each byte is replaced by its 2-byte
  25018. hexadecimal representation.
  25019. </ul>
  25020. Composite types are serialized as follows:
  25021. <ul>
  25022. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  25023. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  25024. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  25025. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  25026. by a &lt;value&gt; element.
  25027. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  25028. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  25029. &lt;value&gt; elements each of which represents an element of the vector.
  25030. <li> map: XML tag &lt;array&gt;. Same as vector.
  25031. </ul>
  25032. For example:
  25033. <pre><code>
  25034. class {
  25035. int MY_INT; // value 5
  25036. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  25037. buffer MY_BUF; // value '\00\n\tabc%'
  25038. }
  25039. </code></pre>
  25040. is serialized as
  25041. <pre><code class="XML">
  25042. &lt;value&gt;
  25043. &lt;struct&gt;
  25044. &lt;member&gt;
  25045. &lt;name&gt;MY_INT&lt;/name&gt;
  25046. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  25047. &lt;/member&gt;
  25048. &lt;member&gt;
  25049. &lt;name&gt;MY_VEC&lt;/name&gt;
  25050. &lt;value&gt;
  25051. &lt;array&gt;
  25052. &lt;data&gt;
  25053. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  25054. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  25055. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  25056. &lt;/data&gt;
  25057. &lt;/array&gt;
  25058. &lt;/value&gt;
  25059. &lt;/member&gt;
  25060. &lt;member&gt;
  25061. &lt;name&gt;MY_BUF&lt;/name&gt;
  25062. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  25063. &lt;/member&gt;
  25064. &lt;/struct&gt;
  25065. &lt;/value&gt;
  25066. </code></pre>]]>
  25067. </doc>
  25068. </package>
  25069. <package name="org.apache.hadoop.record.compiler">
  25070. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  25071. <class name="CodeBuffer" extends="java.lang.Object"
  25072. abstract="false"
  25073. static="false" final="false" visibility="public"
  25074. deprecated="not deprecated">
  25075. <method name="toString" return="java.lang.String"
  25076. abstract="false" native="false" synchronized="false"
  25077. static="false" final="false" visibility="public"
  25078. deprecated="not deprecated">
  25079. </method>
  25080. <doc>
  25081. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  25082. </doc>
  25083. </class>
  25084. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  25085. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  25086. <class name="Consts" extends="java.lang.Object"
  25087. abstract="false"
  25088. static="false" final="false" visibility="public"
  25089. deprecated="not deprecated">
  25090. <field name="RIO_PREFIX" type="java.lang.String"
  25091. transient="false" volatile="false"
  25092. static="true" final="true" visibility="public"
  25093. deprecated="not deprecated">
  25094. </field>
  25095. <field name="RTI_VAR" type="java.lang.String"
  25096. transient="false" volatile="false"
  25097. static="true" final="true" visibility="public"
  25098. deprecated="not deprecated">
  25099. </field>
  25100. <field name="RTI_FILTER" type="java.lang.String"
  25101. transient="false" volatile="false"
  25102. static="true" final="true" visibility="public"
  25103. deprecated="not deprecated">
  25104. </field>
  25105. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  25106. transient="false" volatile="false"
  25107. static="true" final="true" visibility="public"
  25108. deprecated="not deprecated">
  25109. </field>
  25110. <field name="RECORD_OUTPUT" type="java.lang.String"
  25111. transient="false" volatile="false"
  25112. static="true" final="true" visibility="public"
  25113. deprecated="not deprecated">
  25114. </field>
  25115. <field name="RECORD_INPUT" type="java.lang.String"
  25116. transient="false" volatile="false"
  25117. static="true" final="true" visibility="public"
  25118. deprecated="not deprecated">
  25119. </field>
  25120. <field name="TAG" type="java.lang.String"
  25121. transient="false" volatile="false"
  25122. static="true" final="true" visibility="public"
  25123. deprecated="not deprecated">
  25124. </field>
  25125. <doc>
  25126. <![CDATA[const definitions for Record I/O compiler]]>
  25127. </doc>
  25128. </class>
  25129. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  25130. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  25131. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  25132. abstract="false"
  25133. static="false" final="false" visibility="public"
  25134. deprecated="not deprecated">
  25135. <constructor name="JBoolean"
  25136. static="false" final="false" visibility="public"
  25137. deprecated="not deprecated">
  25138. <doc>
  25139. <![CDATA[Creates a new instance of JBoolean]]>
  25140. </doc>
  25141. </constructor>
  25142. </class>
  25143. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  25144. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  25145. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  25146. abstract="false"
  25147. static="false" final="false" visibility="public"
  25148. deprecated="not deprecated">
  25149. <constructor name="JBuffer"
  25150. static="false" final="false" visibility="public"
  25151. deprecated="not deprecated">
  25152. <doc>
  25153. <![CDATA[Creates a new instance of JBuffer]]>
  25154. </doc>
  25155. </constructor>
  25156. <doc>
  25157. <![CDATA[Code generator for "buffer" type.]]>
  25158. </doc>
  25159. </class>
  25160. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  25161. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  25162. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  25163. abstract="false"
  25164. static="false" final="false" visibility="public"
  25165. deprecated="not deprecated">
  25166. <constructor name="JByte"
  25167. static="false" final="false" visibility="public"
  25168. deprecated="not deprecated">
  25169. </constructor>
  25170. <doc>
  25171. <![CDATA[Code generator for "byte" type.]]>
  25172. </doc>
  25173. </class>
  25174. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  25175. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  25176. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  25177. abstract="false"
  25178. static="false" final="false" visibility="public"
  25179. deprecated="not deprecated">
  25180. <constructor name="JDouble"
  25181. static="false" final="false" visibility="public"
  25182. deprecated="not deprecated">
  25183. <doc>
  25184. <![CDATA[Creates a new instance of JDouble]]>
  25185. </doc>
  25186. </constructor>
  25187. </class>
  25188. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  25189. <!-- start class org.apache.hadoop.record.compiler.JField -->
  25190. <class name="JField" extends="java.lang.Object"
  25191. abstract="false"
  25192. static="false" final="false" visibility="public"
  25193. deprecated="not deprecated">
  25194. <constructor name="JField" type="java.lang.String, java.lang.Object"
  25195. static="false" final="false" visibility="public"
  25196. deprecated="not deprecated">
  25197. <doc>
  25198. <![CDATA[Creates a new instance of JField]]>
  25199. </doc>
  25200. </constructor>
  25201. <doc>
  25202. <![CDATA[A thin wrappper around record field.]]>
  25203. </doc>
  25204. </class>
  25205. <!-- end class org.apache.hadoop.record.compiler.JField -->
  25206. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  25207. <class name="JFile" extends="java.lang.Object"
  25208. abstract="false"
  25209. static="false" final="false" visibility="public"
  25210. deprecated="not deprecated">
  25211. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  25212. static="false" final="false" visibility="public"
  25213. deprecated="not deprecated">
  25214. <doc>
  25215. <![CDATA[Creates a new instance of JFile
  25216. @param name possibly full pathname to the file
  25217. @param inclFiles included files (as JFile)
  25218. @param recList List of records defined within this file]]>
  25219. </doc>
  25220. </constructor>
  25221. <method name="genCode" return="int"
  25222. abstract="false" native="false" synchronized="false"
  25223. static="false" final="false" visibility="public"
  25224. deprecated="not deprecated">
  25225. <param name="language" type="java.lang.String"/>
  25226. <param name="destDir" type="java.lang.String"/>
  25227. <param name="options" type="java.util.ArrayList"/>
  25228. <exception name="IOException" type="java.io.IOException"/>
  25229. <doc>
  25230. <![CDATA[Generate record code in given language. Language should be all
  25231. lowercase.]]>
  25232. </doc>
  25233. </method>
  25234. <doc>
  25235. <![CDATA[Container for the Hadoop Record DDL.
  25236. The main components of the file are filename, list of included files,
  25237. and records defined in that file.]]>
  25238. </doc>
  25239. </class>
  25240. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  25241. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  25242. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  25243. abstract="false"
  25244. static="false" final="false" visibility="public"
  25245. deprecated="not deprecated">
  25246. <constructor name="JFloat"
  25247. static="false" final="false" visibility="public"
  25248. deprecated="not deprecated">
  25249. <doc>
  25250. <![CDATA[Creates a new instance of JFloat]]>
  25251. </doc>
  25252. </constructor>
  25253. </class>
  25254. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  25255. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  25256. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  25257. abstract="false"
  25258. static="false" final="false" visibility="public"
  25259. deprecated="not deprecated">
  25260. <constructor name="JInt"
  25261. static="false" final="false" visibility="public"
  25262. deprecated="not deprecated">
  25263. <doc>
  25264. <![CDATA[Creates a new instance of JInt]]>
  25265. </doc>
  25266. </constructor>
  25267. <doc>
  25268. <![CDATA[Code generator for "int" type]]>
  25269. </doc>
  25270. </class>
  25271. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  25272. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  25273. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  25274. abstract="false"
  25275. static="false" final="false" visibility="public"
  25276. deprecated="not deprecated">
  25277. <constructor name="JLong"
  25278. static="false" final="false" visibility="public"
  25279. deprecated="not deprecated">
  25280. <doc>
  25281. <![CDATA[Creates a new instance of JLong]]>
  25282. </doc>
  25283. </constructor>
  25284. <doc>
  25285. <![CDATA[Code generator for "long" type]]>
  25286. </doc>
  25287. </class>
  25288. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  25289. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  25290. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  25291. abstract="false"
  25292. static="false" final="false" visibility="public"
  25293. deprecated="not deprecated">
  25294. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  25295. static="false" final="false" visibility="public"
  25296. deprecated="not deprecated">
  25297. <doc>
  25298. <![CDATA[Creates a new instance of JMap]]>
  25299. </doc>
  25300. </constructor>
  25301. </class>
  25302. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  25303. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  25304. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  25305. abstract="false"
  25306. static="false" final="false" visibility="public"
  25307. deprecated="not deprecated">
  25308. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  25309. static="false" final="false" visibility="public"
  25310. deprecated="not deprecated">
  25311. <doc>
  25312. <![CDATA[Creates a new instance of JRecord]]>
  25313. </doc>
  25314. </constructor>
  25315. </class>
  25316. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  25317. <!-- start class org.apache.hadoop.record.compiler.JString -->
  25318. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  25319. abstract="false"
  25320. static="false" final="false" visibility="public"
  25321. deprecated="not deprecated">
  25322. <constructor name="JString"
  25323. static="false" final="false" visibility="public"
  25324. deprecated="not deprecated">
  25325. <doc>
  25326. <![CDATA[Creates a new instance of JString]]>
  25327. </doc>
  25328. </constructor>
  25329. </class>
  25330. <!-- end class org.apache.hadoop.record.compiler.JString -->
  25331. <!-- start class org.apache.hadoop.record.compiler.JType -->
  25332. <class name="JType" extends="java.lang.Object"
  25333. abstract="true"
  25334. static="false" final="false" visibility="public"
  25335. deprecated="not deprecated">
  25336. <constructor name="JType"
  25337. static="false" final="false" visibility="public"
  25338. deprecated="not deprecated">
  25339. </constructor>
  25340. <doc>
  25341. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  25342. </doc>
  25343. </class>
  25344. <!-- end class org.apache.hadoop.record.compiler.JType -->
  25345. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  25346. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  25347. abstract="false"
  25348. static="false" final="false" visibility="public"
  25349. deprecated="not deprecated">
  25350. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  25351. static="false" final="false" visibility="public"
  25352. deprecated="not deprecated">
  25353. <doc>
  25354. <![CDATA[Creates a new instance of JVector]]>
  25355. </doc>
  25356. </constructor>
  25357. </class>
  25358. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  25359. <doc>
  25360. <![CDATA[This package contains classes needed for code generation
  25361. from the hadoop record compiler. CppGenerator and JavaGenerator
  25362. are the main entry points from the parser. There are classes
  25363. corrsponding to every primitive type and compound type
  25364. included in Hadoop record I/O syntax.]]>
  25365. </doc>
  25366. </package>
  25367. <package name="org.apache.hadoop.record.compiler.ant">
  25368. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  25369. <class name="RccTask" extends="org.apache.tools.ant.Task"
  25370. abstract="false"
  25371. static="false" final="false" visibility="public"
  25372. deprecated="not deprecated">
  25373. <constructor name="RccTask"
  25374. static="false" final="false" visibility="public"
  25375. deprecated="not deprecated">
  25376. <doc>
  25377. <![CDATA[Creates a new instance of RccTask]]>
  25378. </doc>
  25379. </constructor>
  25380. <method name="setLanguage"
  25381. abstract="false" native="false" synchronized="false"
  25382. static="false" final="false" visibility="public"
  25383. deprecated="not deprecated">
  25384. <param name="language" type="java.lang.String"/>
  25385. <doc>
  25386. <![CDATA[Sets the output language option
  25387. @param language "java"/"c++"]]>
  25388. </doc>
  25389. </method>
  25390. <method name="setFile"
  25391. abstract="false" native="false" synchronized="false"
  25392. static="false" final="false" visibility="public"
  25393. deprecated="not deprecated">
  25394. <param name="file" type="java.io.File"/>
  25395. <doc>
  25396. <![CDATA[Sets the record definition file attribute
  25397. @param file record definition file]]>
  25398. </doc>
  25399. </method>
  25400. <method name="setFailonerror"
  25401. abstract="false" native="false" synchronized="false"
  25402. static="false" final="false" visibility="public"
  25403. deprecated="not deprecated">
  25404. <param name="flag" type="boolean"/>
  25405. <doc>
  25406. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  25407. @param flag true will throw build exception in case of failure (default)]]>
  25408. </doc>
  25409. </method>
  25410. <method name="setDestdir"
  25411. abstract="false" native="false" synchronized="false"
  25412. static="false" final="false" visibility="public"
  25413. deprecated="not deprecated">
  25414. <param name="dir" type="java.io.File"/>
  25415. <doc>
  25416. <![CDATA[Sets directory where output files will be generated
  25417. @param dir output directory]]>
  25418. </doc>
  25419. </method>
  25420. <method name="addFileset"
  25421. abstract="false" native="false" synchronized="false"
  25422. static="false" final="false" visibility="public"
  25423. deprecated="not deprecated">
  25424. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  25425. <doc>
  25426. <![CDATA[Adds a fileset that can consist of one or more files
  25427. @param set Set of record definition files]]>
  25428. </doc>
  25429. </method>
  25430. <method name="execute"
  25431. abstract="false" native="false" synchronized="false"
  25432. static="false" final="false" visibility="public"
  25433. deprecated="not deprecated">
  25434. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  25435. <doc>
  25436. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  25437. </doc>
  25438. </method>
  25439. <doc>
  25440. <![CDATA[Hadoop record compiler ant Task
  25441. <p> This task takes the given record definition files and compiles them into
  25442. java or c++
  25443. files. It is then up to the user to compile the generated files.
  25444. <p> The task requires the <code>file</code> or the nested fileset element to be
  25445. specified. Optional attributes are <code>language</code> (set the output
  25446. language, default is "java"),
  25447. <code>destdir</code> (name of the destination directory for generated java/c++
  25448. code, default is ".") and <code>failonerror</code> (specifies error handling
  25449. behavior. default is true).
  25450. <p><h4>Usage</h4>
  25451. <pre>
  25452. &lt;recordcc
  25453. destdir="${basedir}/gensrc"
  25454. language="java"&gt;
  25455. &lt;fileset include="**\/*.jr" /&gt;
  25456. &lt;/recordcc&gt;
  25457. </pre>]]>
  25458. </doc>
  25459. </class>
  25460. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  25461. </package>
  25462. <package name="org.apache.hadoop.record.compiler.generated">
  25463. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  25464. <class name="ParseException" extends="java.lang.Exception"
  25465. abstract="false"
  25466. static="false" final="false" visibility="public"
  25467. deprecated="not deprecated">
  25468. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  25469. static="false" final="false" visibility="public"
  25470. deprecated="not deprecated">
  25471. <doc>
  25472. <![CDATA[This constructor is used by the method "generateParseException"
  25473. in the generated parser. Calling this constructor generates
  25474. a new object of this type with the fields "currentToken",
  25475. "expectedTokenSequences", and "tokenImage" set. The boolean
  25476. flag "specialConstructor" is also set to true to indicate that
  25477. this constructor was used to create this object.
  25478. This constructor calls its super class with the empty string
  25479. to force the "toString" method of parent class "Throwable" to
  25480. print the error message in the form:
  25481. ParseException: <result of getMessage>]]>
  25482. </doc>
  25483. </constructor>
  25484. <constructor name="ParseException"
  25485. static="false" final="false" visibility="public"
  25486. deprecated="not deprecated">
  25487. <doc>
  25488. <![CDATA[The following constructors are for use by you for whatever
  25489. purpose you can think of. Constructing the exception in this
  25490. manner makes the exception behave in the normal way - i.e., as
  25491. documented in the class "Throwable". The fields "errorToken",
  25492. "expectedTokenSequences", and "tokenImage" do not contain
  25493. relevant information. The JavaCC generated code does not use
  25494. these constructors.]]>
  25495. </doc>
  25496. </constructor>
  25497. <constructor name="ParseException" type="java.lang.String"
  25498. static="false" final="false" visibility="public"
  25499. deprecated="not deprecated">
  25500. </constructor>
  25501. <method name="getMessage" return="java.lang.String"
  25502. abstract="false" native="false" synchronized="false"
  25503. static="false" final="false" visibility="public"
  25504. deprecated="not deprecated">
  25505. <doc>
  25506. <![CDATA[This method has the standard behavior when this object has been
  25507. created using the standard constructors. Otherwise, it uses
  25508. "currentToken" and "expectedTokenSequences" to generate a parse
  25509. error message and returns it. If this object has been created
  25510. due to a parse error, and you do not catch it (it gets thrown
  25511. from the parser), then this method is called during the printing
  25512. of the final stack trace, and hence the correct error message
  25513. gets displayed.]]>
  25514. </doc>
  25515. </method>
  25516. <method name="add_escapes" return="java.lang.String"
  25517. abstract="false" native="false" synchronized="false"
  25518. static="false" final="false" visibility="protected"
  25519. deprecated="not deprecated">
  25520. <param name="str" type="java.lang.String"/>
  25521. <doc>
  25522. <![CDATA[Used to convert raw characters to their escaped version
  25523. when these raw version cannot be used as part of an ASCII
  25524. string literal.]]>
  25525. </doc>
  25526. </method>
  25527. <field name="specialConstructor" type="boolean"
  25528. transient="false" volatile="false"
  25529. static="false" final="false" visibility="protected"
  25530. deprecated="not deprecated">
  25531. <doc>
  25532. <![CDATA[This variable determines which constructor was used to create
  25533. this object and thereby affects the semantics of the
  25534. "getMessage" method (see below).]]>
  25535. </doc>
  25536. </field>
  25537. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  25538. transient="false" volatile="false"
  25539. static="false" final="false" visibility="public"
  25540. deprecated="not deprecated">
  25541. <doc>
  25542. <![CDATA[This is the last token that has been consumed successfully. If
  25543. this object has been created due to a parse error, the token
  25544. followng this token will (therefore) be the first error token.]]>
  25545. </doc>
  25546. </field>
  25547. <field name="expectedTokenSequences" type="int[][]"
  25548. transient="false" volatile="false"
  25549. static="false" final="false" visibility="public"
  25550. deprecated="not deprecated">
  25551. <doc>
  25552. <![CDATA[Each entry in this array is an array of integers. Each array
  25553. of integers represents a sequence of tokens (by their ordinal
  25554. values) that is expected at this point of the parse.]]>
  25555. </doc>
  25556. </field>
  25557. <field name="tokenImage" type="java.lang.String[]"
  25558. transient="false" volatile="false"
  25559. static="false" final="false" visibility="public"
  25560. deprecated="not deprecated">
  25561. <doc>
  25562. <![CDATA[This is a reference to the "tokenImage" array of the generated
  25563. parser within which the parse error occurred. This array is
  25564. defined in the generated ...Constants interface.]]>
  25565. </doc>
  25566. </field>
  25567. <field name="eol" type="java.lang.String"
  25568. transient="false" volatile="false"
  25569. static="false" final="false" visibility="protected"
  25570. deprecated="not deprecated">
  25571. <doc>
  25572. <![CDATA[The end of line string for this machine.]]>
  25573. </doc>
  25574. </field>
  25575. <doc>
  25576. <![CDATA[This exception is thrown when parse errors are encountered.
  25577. You can explicitly create objects of this exception type by
  25578. calling the method generateParseException in the generated
  25579. parser.
  25580. You can modify this class to customize your error reporting
  25581. mechanisms so long as you retain the public fields.]]>
  25582. </doc>
  25583. </class>
  25584. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  25585. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  25586. <class name="Rcc" extends="java.lang.Object"
  25587. abstract="false"
  25588. static="false" final="false" visibility="public"
  25589. deprecated="not deprecated">
  25590. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  25591. <constructor name="Rcc" type="java.io.InputStream"
  25592. static="false" final="false" visibility="public"
  25593. deprecated="not deprecated">
  25594. </constructor>
  25595. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  25596. static="false" final="false" visibility="public"
  25597. deprecated="not deprecated">
  25598. </constructor>
  25599. <constructor name="Rcc" type="java.io.Reader"
  25600. static="false" final="false" visibility="public"
  25601. deprecated="not deprecated">
  25602. </constructor>
  25603. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  25604. static="false" final="false" visibility="public"
  25605. deprecated="not deprecated">
  25606. </constructor>
  25607. <method name="main"
  25608. abstract="false" native="false" synchronized="false"
  25609. static="true" final="false" visibility="public"
  25610. deprecated="not deprecated">
  25611. <param name="args" type="java.lang.String[]"/>
  25612. </method>
  25613. <method name="usage"
  25614. abstract="false" native="false" synchronized="false"
  25615. static="true" final="false" visibility="public"
  25616. deprecated="not deprecated">
  25617. </method>
  25618. <method name="driver" return="int"
  25619. abstract="false" native="false" synchronized="false"
  25620. static="true" final="false" visibility="public"
  25621. deprecated="not deprecated">
  25622. <param name="args" type="java.lang.String[]"/>
  25623. </method>
  25624. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  25625. abstract="false" native="false" synchronized="false"
  25626. static="false" final="true" visibility="public"
  25627. deprecated="not deprecated">
  25628. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  25629. </method>
  25630. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  25631. abstract="false" native="false" synchronized="false"
  25632. static="false" final="true" visibility="public"
  25633. deprecated="not deprecated">
  25634. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  25635. </method>
  25636. <method name="Module" return="java.util.ArrayList"
  25637. abstract="false" native="false" synchronized="false"
  25638. static="false" final="true" visibility="public"
  25639. deprecated="not deprecated">
  25640. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  25641. </method>
  25642. <method name="ModuleName" return="java.lang.String"
  25643. abstract="false" native="false" synchronized="false"
  25644. static="false" final="true" visibility="public"
  25645. deprecated="not deprecated">
  25646. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  25647. </method>
  25648. <method name="RecordList" return="java.util.ArrayList"
  25649. abstract="false" native="false" synchronized="false"
  25650. static="false" final="true" visibility="public"
  25651. deprecated="not deprecated">
  25652. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  25653. </method>
  25654. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  25655. abstract="false" native="false" synchronized="false"
  25656. static="false" final="true" visibility="public"
  25657. deprecated="not deprecated">
  25658. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  25659. </method>
  25660. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  25661. abstract="false" native="false" synchronized="false"
  25662. static="false" final="true" visibility="public"
  25663. deprecated="not deprecated">
  25664. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  25665. </method>
  25666. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  25667. abstract="false" native="false" synchronized="false"
  25668. static="false" final="true" visibility="public"
  25669. deprecated="not deprecated">
  25670. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  25671. </method>
  25672. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  25673. abstract="false" native="false" synchronized="false"
  25674. static="false" final="true" visibility="public"
  25675. deprecated="not deprecated">
  25676. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  25677. </method>
  25678. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  25679. abstract="false" native="false" synchronized="false"
  25680. static="false" final="true" visibility="public"
  25681. deprecated="not deprecated">
  25682. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  25683. </method>
  25684. <method name="ReInit"
  25685. abstract="false" native="false" synchronized="false"
  25686. static="false" final="false" visibility="public"
  25687. deprecated="not deprecated">
  25688. <param name="stream" type="java.io.InputStream"/>
  25689. </method>
  25690. <method name="ReInit"
  25691. abstract="false" native="false" synchronized="false"
  25692. static="false" final="false" visibility="public"
  25693. deprecated="not deprecated">
  25694. <param name="stream" type="java.io.InputStream"/>
  25695. <param name="encoding" type="java.lang.String"/>
  25696. </method>
  25697. <method name="ReInit"
  25698. abstract="false" native="false" synchronized="false"
  25699. static="false" final="false" visibility="public"
  25700. deprecated="not deprecated">
  25701. <param name="stream" type="java.io.Reader"/>
  25702. </method>
  25703. <method name="ReInit"
  25704. abstract="false" native="false" synchronized="false"
  25705. static="false" final="false" visibility="public"
  25706. deprecated="not deprecated">
  25707. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  25708. </method>
  25709. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  25710. abstract="false" native="false" synchronized="false"
  25711. static="false" final="true" visibility="public"
  25712. deprecated="not deprecated">
  25713. </method>
  25714. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  25715. abstract="false" native="false" synchronized="false"
  25716. static="false" final="true" visibility="public"
  25717. deprecated="not deprecated">
  25718. <param name="index" type="int"/>
  25719. </method>
  25720. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  25721. abstract="false" native="false" synchronized="false"
  25722. static="false" final="false" visibility="public"
  25723. deprecated="not deprecated">
  25724. </method>
  25725. <method name="enable_tracing"
  25726. abstract="false" native="false" synchronized="false"
  25727. static="false" final="true" visibility="public"
  25728. deprecated="not deprecated">
  25729. </method>
  25730. <method name="disable_tracing"
  25731. abstract="false" native="false" synchronized="false"
  25732. static="false" final="true" visibility="public"
  25733. deprecated="not deprecated">
  25734. </method>
  25735. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  25736. transient="false" volatile="false"
  25737. static="false" final="false" visibility="public"
  25738. deprecated="not deprecated">
  25739. </field>
  25740. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  25741. transient="false" volatile="false"
  25742. static="false" final="false" visibility="public"
  25743. deprecated="not deprecated">
  25744. </field>
  25745. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  25746. transient="false" volatile="false"
  25747. static="false" final="false" visibility="public"
  25748. deprecated="not deprecated">
  25749. </field>
  25750. </class>
  25751. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  25752. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  25753. <interface name="RccConstants" abstract="true"
  25754. static="false" final="false" visibility="public"
  25755. deprecated="not deprecated">
  25756. <field name="EOF" type="int"
  25757. transient="false" volatile="false"
  25758. static="true" final="true" visibility="public"
  25759. deprecated="not deprecated">
  25760. </field>
  25761. <field name="MODULE_TKN" type="int"
  25762. transient="false" volatile="false"
  25763. static="true" final="true" visibility="public"
  25764. deprecated="not deprecated">
  25765. </field>
  25766. <field name="RECORD_TKN" type="int"
  25767. transient="false" volatile="false"
  25768. static="true" final="true" visibility="public"
  25769. deprecated="not deprecated">
  25770. </field>
  25771. <field name="INCLUDE_TKN" type="int"
  25772. transient="false" volatile="false"
  25773. static="true" final="true" visibility="public"
  25774. deprecated="not deprecated">
  25775. </field>
  25776. <field name="BYTE_TKN" type="int"
  25777. transient="false" volatile="false"
  25778. static="true" final="true" visibility="public"
  25779. deprecated="not deprecated">
  25780. </field>
  25781. <field name="BOOLEAN_TKN" type="int"
  25782. transient="false" volatile="false"
  25783. static="true" final="true" visibility="public"
  25784. deprecated="not deprecated">
  25785. </field>
  25786. <field name="INT_TKN" type="int"
  25787. transient="false" volatile="false"
  25788. static="true" final="true" visibility="public"
  25789. deprecated="not deprecated">
  25790. </field>
  25791. <field name="LONG_TKN" type="int"
  25792. transient="false" volatile="false"
  25793. static="true" final="true" visibility="public"
  25794. deprecated="not deprecated">
  25795. </field>
  25796. <field name="FLOAT_TKN" type="int"
  25797. transient="false" volatile="false"
  25798. static="true" final="true" visibility="public"
  25799. deprecated="not deprecated">
  25800. </field>
  25801. <field name="DOUBLE_TKN" type="int"
  25802. transient="false" volatile="false"
  25803. static="true" final="true" visibility="public"
  25804. deprecated="not deprecated">
  25805. </field>
  25806. <field name="USTRING_TKN" type="int"
  25807. transient="false" volatile="false"
  25808. static="true" final="true" visibility="public"
  25809. deprecated="not deprecated">
  25810. </field>
  25811. <field name="BUFFER_TKN" type="int"
  25812. transient="false" volatile="false"
  25813. static="true" final="true" visibility="public"
  25814. deprecated="not deprecated">
  25815. </field>
  25816. <field name="VECTOR_TKN" type="int"
  25817. transient="false" volatile="false"
  25818. static="true" final="true" visibility="public"
  25819. deprecated="not deprecated">
  25820. </field>
  25821. <field name="MAP_TKN" type="int"
  25822. transient="false" volatile="false"
  25823. static="true" final="true" visibility="public"
  25824. deprecated="not deprecated">
  25825. </field>
  25826. <field name="LBRACE_TKN" type="int"
  25827. transient="false" volatile="false"
  25828. static="true" final="true" visibility="public"
  25829. deprecated="not deprecated">
  25830. </field>
  25831. <field name="RBRACE_TKN" type="int"
  25832. transient="false" volatile="false"
  25833. static="true" final="true" visibility="public"
  25834. deprecated="not deprecated">
  25835. </field>
  25836. <field name="LT_TKN" type="int"
  25837. transient="false" volatile="false"
  25838. static="true" final="true" visibility="public"
  25839. deprecated="not deprecated">
  25840. </field>
  25841. <field name="GT_TKN" type="int"
  25842. transient="false" volatile="false"
  25843. static="true" final="true" visibility="public"
  25844. deprecated="not deprecated">
  25845. </field>
  25846. <field name="SEMICOLON_TKN" type="int"
  25847. transient="false" volatile="false"
  25848. static="true" final="true" visibility="public"
  25849. deprecated="not deprecated">
  25850. </field>
  25851. <field name="COMMA_TKN" type="int"
  25852. transient="false" volatile="false"
  25853. static="true" final="true" visibility="public"
  25854. deprecated="not deprecated">
  25855. </field>
  25856. <field name="DOT_TKN" type="int"
  25857. transient="false" volatile="false"
  25858. static="true" final="true" visibility="public"
  25859. deprecated="not deprecated">
  25860. </field>
  25861. <field name="CSTRING_TKN" type="int"
  25862. transient="false" volatile="false"
  25863. static="true" final="true" visibility="public"
  25864. deprecated="not deprecated">
  25865. </field>
  25866. <field name="IDENT_TKN" type="int"
  25867. transient="false" volatile="false"
  25868. static="true" final="true" visibility="public"
  25869. deprecated="not deprecated">
  25870. </field>
  25871. <field name="DEFAULT" type="int"
  25872. transient="false" volatile="false"
  25873. static="true" final="true" visibility="public"
  25874. deprecated="not deprecated">
  25875. </field>
  25876. <field name="WithinOneLineComment" type="int"
  25877. transient="false" volatile="false"
  25878. static="true" final="true" visibility="public"
  25879. deprecated="not deprecated">
  25880. </field>
  25881. <field name="WithinMultiLineComment" type="int"
  25882. transient="false" volatile="false"
  25883. static="true" final="true" visibility="public"
  25884. deprecated="not deprecated">
  25885. </field>
  25886. <field name="tokenImage" type="java.lang.String[]"
  25887. transient="false" volatile="false"
  25888. static="true" final="true" visibility="public"
  25889. deprecated="not deprecated">
  25890. </field>
  25891. </interface>
  25892. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  25893. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  25894. <class name="RccTokenManager" extends="java.lang.Object"
  25895. abstract="false"
  25896. static="false" final="false" visibility="public"
  25897. deprecated="not deprecated">
  25898. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  25899. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  25900. static="false" final="false" visibility="public"
  25901. deprecated="not deprecated">
  25902. </constructor>
  25903. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  25904. static="false" final="false" visibility="public"
  25905. deprecated="not deprecated">
  25906. </constructor>
  25907. <method name="setDebugStream"
  25908. abstract="false" native="false" synchronized="false"
  25909. static="false" final="false" visibility="public"
  25910. deprecated="not deprecated">
  25911. <param name="ds" type="java.io.PrintStream"/>
  25912. </method>
  25913. <method name="ReInit"
  25914. abstract="false" native="false" synchronized="false"
  25915. static="false" final="false" visibility="public"
  25916. deprecated="not deprecated">
  25917. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  25918. </method>
  25919. <method name="ReInit"
  25920. abstract="false" native="false" synchronized="false"
  25921. static="false" final="false" visibility="public"
  25922. deprecated="not deprecated">
  25923. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  25924. <param name="lexState" type="int"/>
  25925. </method>
  25926. <method name="SwitchTo"
  25927. abstract="false" native="false" synchronized="false"
  25928. static="false" final="false" visibility="public"
  25929. deprecated="not deprecated">
  25930. <param name="lexState" type="int"/>
  25931. </method>
  25932. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  25933. abstract="false" native="false" synchronized="false"
  25934. static="false" final="false" visibility="protected"
  25935. deprecated="not deprecated">
  25936. </method>
  25937. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  25938. abstract="false" native="false" synchronized="false"
  25939. static="false" final="false" visibility="public"
  25940. deprecated="not deprecated">
  25941. </method>
  25942. <field name="debugStream" type="java.io.PrintStream"
  25943. transient="false" volatile="false"
  25944. static="false" final="false" visibility="public"
  25945. deprecated="not deprecated">
  25946. </field>
  25947. <field name="jjstrLiteralImages" type="java.lang.String[]"
  25948. transient="false" volatile="false"
  25949. static="true" final="true" visibility="public"
  25950. deprecated="not deprecated">
  25951. </field>
  25952. <field name="lexStateNames" type="java.lang.String[]"
  25953. transient="false" volatile="false"
  25954. static="true" final="true" visibility="public"
  25955. deprecated="not deprecated">
  25956. </field>
  25957. <field name="jjnewLexState" type="int[]"
  25958. transient="false" volatile="false"
  25959. static="true" final="true" visibility="public"
  25960. deprecated="not deprecated">
  25961. </field>
  25962. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  25963. transient="false" volatile="false"
  25964. static="false" final="false" visibility="protected"
  25965. deprecated="not deprecated">
  25966. </field>
  25967. <field name="curChar" type="char"
  25968. transient="false" volatile="false"
  25969. static="false" final="false" visibility="protected"
  25970. deprecated="not deprecated">
  25971. </field>
  25972. </class>
  25973. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  25974. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  25975. <class name="SimpleCharStream" extends="java.lang.Object"
  25976. abstract="false"
  25977. static="false" final="false" visibility="public"
  25978. deprecated="not deprecated">
  25979. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  25980. static="false" final="false" visibility="public"
  25981. deprecated="not deprecated">
  25982. </constructor>
  25983. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  25984. static="false" final="false" visibility="public"
  25985. deprecated="not deprecated">
  25986. </constructor>
  25987. <constructor name="SimpleCharStream" type="java.io.Reader"
  25988. static="false" final="false" visibility="public"
  25989. deprecated="not deprecated">
  25990. </constructor>
  25991. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  25992. static="false" final="false" visibility="public"
  25993. deprecated="not deprecated">
  25994. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25995. </constructor>
  25996. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  25997. static="false" final="false" visibility="public"
  25998. deprecated="not deprecated">
  25999. </constructor>
  26000. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  26001. static="false" final="false" visibility="public"
  26002. deprecated="not deprecated">
  26003. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  26004. </constructor>
  26005. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  26006. static="false" final="false" visibility="public"
  26007. deprecated="not deprecated">
  26008. </constructor>
  26009. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  26010. static="false" final="false" visibility="public"
  26011. deprecated="not deprecated">
  26012. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  26013. </constructor>
  26014. <constructor name="SimpleCharStream" type="java.io.InputStream"
  26015. static="false" final="false" visibility="public"
  26016. deprecated="not deprecated">
  26017. </constructor>
  26018. <method name="setTabSize"
  26019. abstract="false" native="false" synchronized="false"
  26020. static="false" final="false" visibility="protected"
  26021. deprecated="not deprecated">
  26022. <param name="i" type="int"/>
  26023. </method>
  26024. <method name="getTabSize" return="int"
  26025. abstract="false" native="false" synchronized="false"
  26026. static="false" final="false" visibility="protected"
  26027. deprecated="not deprecated">
  26028. <param name="i" type="int"/>
  26029. </method>
  26030. <method name="ExpandBuff"
  26031. abstract="false" native="false" synchronized="false"
  26032. static="false" final="false" visibility="protected"
  26033. deprecated="not deprecated">
  26034. <param name="wrapAround" type="boolean"/>
  26035. </method>
  26036. <method name="FillBuff"
  26037. abstract="false" native="false" synchronized="false"
  26038. static="false" final="false" visibility="protected"
  26039. deprecated="not deprecated">
  26040. <exception name="IOException" type="java.io.IOException"/>
  26041. </method>
  26042. <method name="BeginToken" return="char"
  26043. abstract="false" native="false" synchronized="false"
  26044. static="false" final="false" visibility="public"
  26045. deprecated="not deprecated">
  26046. <exception name="IOException" type="java.io.IOException"/>
  26047. </method>
  26048. <method name="UpdateLineColumn"
  26049. abstract="false" native="false" synchronized="false"
  26050. static="false" final="false" visibility="protected"
  26051. deprecated="not deprecated">
  26052. <param name="c" type="char"/>
  26053. </method>
  26054. <method name="readChar" return="char"
  26055. abstract="false" native="false" synchronized="false"
  26056. static="false" final="false" visibility="public"
  26057. deprecated="not deprecated">
  26058. <exception name="IOException" type="java.io.IOException"/>
  26059. </method>
  26060. <method name="getEndColumn" return="int"
  26061. abstract="false" native="false" synchronized="false"
  26062. static="false" final="false" visibility="public"
  26063. deprecated="not deprecated">
  26064. </method>
  26065. <method name="getEndLine" return="int"
  26066. abstract="false" native="false" synchronized="false"
  26067. static="false" final="false" visibility="public"
  26068. deprecated="not deprecated">
  26069. </method>
  26070. <method name="getBeginColumn" return="int"
  26071. abstract="false" native="false" synchronized="false"
  26072. static="false" final="false" visibility="public"
  26073. deprecated="not deprecated">
  26074. </method>
  26075. <method name="getBeginLine" return="int"
  26076. abstract="false" native="false" synchronized="false"
  26077. static="false" final="false" visibility="public"
  26078. deprecated="not deprecated">
  26079. </method>
  26080. <method name="backup"
  26081. abstract="false" native="false" synchronized="false"
  26082. static="false" final="false" visibility="public"
  26083. deprecated="not deprecated">
  26084. <param name="amount" type="int"/>
  26085. </method>
  26086. <method name="ReInit"
  26087. abstract="false" native="false" synchronized="false"
  26088. static="false" final="false" visibility="public"
  26089. deprecated="not deprecated">
  26090. <param name="dstream" type="java.io.Reader"/>
  26091. <param name="startline" type="int"/>
  26092. <param name="startcolumn" type="int"/>
  26093. <param name="buffersize" type="int"/>
  26094. </method>
  26095. <method name="ReInit"
  26096. abstract="false" native="false" synchronized="false"
  26097. static="false" final="false" visibility="public"
  26098. deprecated="not deprecated">
  26099. <param name="dstream" type="java.io.Reader"/>
  26100. <param name="startline" type="int"/>
  26101. <param name="startcolumn" type="int"/>
  26102. </method>
  26103. <method name="ReInit"
  26104. abstract="false" native="false" synchronized="false"
  26105. static="false" final="false" visibility="public"
  26106. deprecated="not deprecated">
  26107. <param name="dstream" type="java.io.Reader"/>
  26108. </method>
  26109. <method name="ReInit"
  26110. abstract="false" native="false" synchronized="false"
  26111. static="false" final="false" visibility="public"
  26112. deprecated="not deprecated">
  26113. <param name="dstream" type="java.io.InputStream"/>
  26114. <param name="encoding" type="java.lang.String"/>
  26115. <param name="startline" type="int"/>
  26116. <param name="startcolumn" type="int"/>
  26117. <param name="buffersize" type="int"/>
  26118. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  26119. </method>
  26120. <method name="ReInit"
  26121. abstract="false" native="false" synchronized="false"
  26122. static="false" final="false" visibility="public"
  26123. deprecated="not deprecated">
  26124. <param name="dstream" type="java.io.InputStream"/>
  26125. <param name="startline" type="int"/>
  26126. <param name="startcolumn" type="int"/>
  26127. <param name="buffersize" type="int"/>
  26128. </method>
  26129. <method name="ReInit"
  26130. abstract="false" native="false" synchronized="false"
  26131. static="false" final="false" visibility="public"
  26132. deprecated="not deprecated">
  26133. <param name="dstream" type="java.io.InputStream"/>
  26134. <param name="encoding" type="java.lang.String"/>
  26135. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  26136. </method>
  26137. <method name="ReInit"
  26138. abstract="false" native="false" synchronized="false"
  26139. static="false" final="false" visibility="public"
  26140. deprecated="not deprecated">
  26141. <param name="dstream" type="java.io.InputStream"/>
  26142. </method>
  26143. <method name="ReInit"
  26144. abstract="false" native="false" synchronized="false"
  26145. static="false" final="false" visibility="public"
  26146. deprecated="not deprecated">
  26147. <param name="dstream" type="java.io.InputStream"/>
  26148. <param name="encoding" type="java.lang.String"/>
  26149. <param name="startline" type="int"/>
  26150. <param name="startcolumn" type="int"/>
  26151. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  26152. </method>
  26153. <method name="ReInit"
  26154. abstract="false" native="false" synchronized="false"
  26155. static="false" final="false" visibility="public"
  26156. deprecated="not deprecated">
  26157. <param name="dstream" type="java.io.InputStream"/>
  26158. <param name="startline" type="int"/>
  26159. <param name="startcolumn" type="int"/>
  26160. </method>
  26161. <method name="GetImage" return="java.lang.String"
  26162. abstract="false" native="false" synchronized="false"
  26163. static="false" final="false" visibility="public"
  26164. deprecated="not deprecated">
  26165. </method>
  26166. <method name="GetSuffix" return="char[]"
  26167. abstract="false" native="false" synchronized="false"
  26168. static="false" final="false" visibility="public"
  26169. deprecated="not deprecated">
  26170. <param name="len" type="int"/>
  26171. </method>
  26172. <method name="Done"
  26173. abstract="false" native="false" synchronized="false"
  26174. static="false" final="false" visibility="public"
  26175. deprecated="not deprecated">
  26176. </method>
  26177. <method name="adjustBeginLineColumn"
  26178. abstract="false" native="false" synchronized="false"
  26179. static="false" final="false" visibility="public"
  26180. deprecated="not deprecated">
  26181. <param name="newLine" type="int"/>
  26182. <param name="newCol" type="int"/>
  26183. <doc>
  26184. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  26185. </doc>
  26186. </method>
  26187. <field name="staticFlag" type="boolean"
  26188. transient="false" volatile="false"
  26189. static="true" final="true" visibility="public"
  26190. deprecated="not deprecated">
  26191. </field>
  26192. <field name="bufpos" type="int"
  26193. transient="false" volatile="false"
  26194. static="false" final="false" visibility="public"
  26195. deprecated="not deprecated">
  26196. </field>
  26197. <field name="bufline" type="int[]"
  26198. transient="false" volatile="false"
  26199. static="false" final="false" visibility="protected"
  26200. deprecated="not deprecated">
  26201. </field>
  26202. <field name="bufcolumn" type="int[]"
  26203. transient="false" volatile="false"
  26204. static="false" final="false" visibility="protected"
  26205. deprecated="not deprecated">
  26206. </field>
  26207. <field name="column" type="int"
  26208. transient="false" volatile="false"
  26209. static="false" final="false" visibility="protected"
  26210. deprecated="not deprecated">
  26211. </field>
  26212. <field name="line" type="int"
  26213. transient="false" volatile="false"
  26214. static="false" final="false" visibility="protected"
  26215. deprecated="not deprecated">
  26216. </field>
  26217. <field name="prevCharIsCR" type="boolean"
  26218. transient="false" volatile="false"
  26219. static="false" final="false" visibility="protected"
  26220. deprecated="not deprecated">
  26221. </field>
  26222. <field name="prevCharIsLF" type="boolean"
  26223. transient="false" volatile="false"
  26224. static="false" final="false" visibility="protected"
  26225. deprecated="not deprecated">
  26226. </field>
  26227. <field name="inputStream" type="java.io.Reader"
  26228. transient="false" volatile="false"
  26229. static="false" final="false" visibility="protected"
  26230. deprecated="not deprecated">
  26231. </field>
  26232. <field name="buffer" type="char[]"
  26233. transient="false" volatile="false"
  26234. static="false" final="false" visibility="protected"
  26235. deprecated="not deprecated">
  26236. </field>
  26237. <field name="maxNextCharInd" type="int"
  26238. transient="false" volatile="false"
  26239. static="false" final="false" visibility="protected"
  26240. deprecated="not deprecated">
  26241. </field>
  26242. <field name="inBuf" type="int"
  26243. transient="false" volatile="false"
  26244. static="false" final="false" visibility="protected"
  26245. deprecated="not deprecated">
  26246. </field>
  26247. <field name="tabSize" type="int"
  26248. transient="false" volatile="false"
  26249. static="false" final="false" visibility="protected"
  26250. deprecated="not deprecated">
  26251. </field>
  26252. <doc>
  26253. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  26254. contain only ASCII characters (without unicode processing).]]>
  26255. </doc>
  26256. </class>
  26257. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  26258. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  26259. <class name="Token" extends="java.lang.Object"
  26260. abstract="false"
  26261. static="false" final="false" visibility="public"
  26262. deprecated="not deprecated">
  26263. <constructor name="Token"
  26264. static="false" final="false" visibility="public"
  26265. deprecated="not deprecated">
  26266. </constructor>
  26267. <method name="toString" return="java.lang.String"
  26268. abstract="false" native="false" synchronized="false"
  26269. static="false" final="false" visibility="public"
  26270. deprecated="not deprecated">
  26271. <doc>
  26272. <![CDATA[Returns the image.]]>
  26273. </doc>
  26274. </method>
  26275. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  26276. abstract="false" native="false" synchronized="false"
  26277. static="true" final="true" visibility="public"
  26278. deprecated="not deprecated">
  26279. <param name="ofKind" type="int"/>
  26280. <doc>
  26281. <![CDATA[Returns a new Token object, by default. However, if you want, you
  26282. can create and return subclass objects based on the value of ofKind.
  26283. Simply add the cases to the switch for all those special cases.
  26284. For example, if you have a subclass of Token called IDToken that
  26285. you want to create if ofKind is ID, simlpy add something like :
  26286. case MyParserConstants.ID : return new IDToken();
  26287. to the following switch statement. Then you can cast matchedToken
  26288. variable to the appropriate type and use it in your lexical actions.]]>
  26289. </doc>
  26290. </method>
  26291. <field name="kind" type="int"
  26292. transient="false" volatile="false"
  26293. static="false" final="false" visibility="public"
  26294. deprecated="not deprecated">
  26295. <doc>
  26296. <![CDATA[An integer that describes the kind of this token. This numbering
  26297. system is determined by JavaCCParser, and a table of these numbers is
  26298. stored in the file ...Constants.java.]]>
  26299. </doc>
  26300. </field>
  26301. <field name="beginLine" type="int"
  26302. transient="false" volatile="false"
  26303. static="false" final="false" visibility="public"
  26304. deprecated="not deprecated">
  26305. <doc>
  26306. <![CDATA[beginLine and beginColumn describe the position of the first character
  26307. of this token; endLine and endColumn describe the position of the
  26308. last character of this token.]]>
  26309. </doc>
  26310. </field>
  26311. <field name="beginColumn" type="int"
  26312. transient="false" volatile="false"
  26313. static="false" final="false" visibility="public"
  26314. deprecated="not deprecated">
  26315. <doc>
  26316. <![CDATA[beginLine and beginColumn describe the position of the first character
  26317. of this token; endLine and endColumn describe the position of the
  26318. last character of this token.]]>
  26319. </doc>
  26320. </field>
  26321. <field name="endLine" type="int"
  26322. transient="false" volatile="false"
  26323. static="false" final="false" visibility="public"
  26324. deprecated="not deprecated">
  26325. <doc>
  26326. <![CDATA[beginLine and beginColumn describe the position of the first character
  26327. of this token; endLine and endColumn describe the position of the
  26328. last character of this token.]]>
  26329. </doc>
  26330. </field>
  26331. <field name="endColumn" type="int"
  26332. transient="false" volatile="false"
  26333. static="false" final="false" visibility="public"
  26334. deprecated="not deprecated">
  26335. <doc>
  26336. <![CDATA[beginLine and beginColumn describe the position of the first character
  26337. of this token; endLine and endColumn describe the position of the
  26338. last character of this token.]]>
  26339. </doc>
  26340. </field>
  26341. <field name="image" type="java.lang.String"
  26342. transient="false" volatile="false"
  26343. static="false" final="false" visibility="public"
  26344. deprecated="not deprecated">
  26345. <doc>
  26346. <![CDATA[The string image of the token.]]>
  26347. </doc>
  26348. </field>
  26349. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  26350. transient="false" volatile="false"
  26351. static="false" final="false" visibility="public"
  26352. deprecated="not deprecated">
  26353. <doc>
  26354. <![CDATA[A reference to the next regular (non-special) token from the input
  26355. stream. If this is the last token from the input stream, or if the
  26356. token manager has not read tokens beyond this one, this field is
  26357. set to null. This is true only if this token is also a regular
  26358. token. Otherwise, see below for a description of the contents of
  26359. this field.]]>
  26360. </doc>
  26361. </field>
  26362. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  26363. transient="false" volatile="false"
  26364. static="false" final="false" visibility="public"
  26365. deprecated="not deprecated">
  26366. <doc>
  26367. <![CDATA[This field is used to access special tokens that occur prior to this
  26368. token, but after the immediately preceding regular (non-special) token.
  26369. If there are no such special tokens, this field is set to null.
  26370. When there are more than one such special token, this field refers
  26371. to the last of these special tokens, which in turn refers to the next
  26372. previous special token through its specialToken field, and so on
  26373. until the first special token (whose specialToken field is null).
  26374. The next fields of special tokens refer to other special tokens that
  26375. immediately follow it (without an intervening regular token). If there
  26376. is no such token, this field is null.]]>
  26377. </doc>
  26378. </field>
  26379. <doc>
  26380. <![CDATA[Describes the input token stream.]]>
  26381. </doc>
  26382. </class>
  26383. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  26384. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  26385. <class name="TokenMgrError" extends="java.lang.Error"
  26386. abstract="false"
  26387. static="false" final="false" visibility="public"
  26388. deprecated="not deprecated">
  26389. <constructor name="TokenMgrError"
  26390. static="false" final="false" visibility="public"
  26391. deprecated="not deprecated">
  26392. </constructor>
  26393. <constructor name="TokenMgrError" type="java.lang.String, int"
  26394. static="false" final="false" visibility="public"
  26395. deprecated="not deprecated">
  26396. </constructor>
  26397. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  26398. static="false" final="false" visibility="public"
  26399. deprecated="not deprecated">
  26400. </constructor>
  26401. <method name="addEscapes" return="java.lang.String"
  26402. abstract="false" native="false" synchronized="false"
  26403. static="true" final="true" visibility="protected"
  26404. deprecated="not deprecated">
  26405. <param name="str" type="java.lang.String"/>
  26406. <doc>
  26407. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  26408. equivalents in the given string]]>
  26409. </doc>
  26410. </method>
  26411. <method name="LexicalError" return="java.lang.String"
  26412. abstract="false" native="false" synchronized="false"
  26413. static="true" final="false" visibility="protected"
  26414. deprecated="not deprecated">
  26415. <param name="EOFSeen" type="boolean"/>
  26416. <param name="lexState" type="int"/>
  26417. <param name="errorLine" type="int"/>
  26418. <param name="errorColumn" type="int"/>
  26419. <param name="errorAfter" type="java.lang.String"/>
  26420. <param name="curChar" type="char"/>
  26421. <doc>
  26422. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  26423. token manager to indicate a lexical error.
  26424. Parameters :
  26425. EOFSeen : indicates if EOF caused the lexicl error
  26426. curLexState : lexical state in which this error occured
  26427. errorLine : line number when the error occured
  26428. errorColumn : column number when the error occured
  26429. errorAfter : prefix that was seen before this error occured
  26430. curchar : the offending character
  26431. Note: You can customize the lexical error message by modifying this method.]]>
  26432. </doc>
  26433. </method>
  26434. <method name="getMessage" return="java.lang.String"
  26435. abstract="false" native="false" synchronized="false"
  26436. static="false" final="false" visibility="public"
  26437. deprecated="not deprecated">
  26438. <doc>
  26439. <![CDATA[You can also modify the body of this method to customize your error messages.
  26440. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  26441. of end-users concern, so you can return something like :
  26442. "Internal Error : Please file a bug report .... "
  26443. from this method for such cases in the release version of your parser.]]>
  26444. </doc>
  26445. </method>
  26446. </class>
  26447. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  26448. <doc>
  26449. <![CDATA[This package contains code generated by JavaCC from the
  26450. Hadoop record syntax file rcc.jj. For details about the
  26451. record file syntax please @see org.apache.hadoop.record.]]>
  26452. </doc>
  26453. </package>
  26454. <package name="org.apache.hadoop.record.meta">
  26455. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  26456. <class name="FieldTypeInfo" extends="java.lang.Object"
  26457. abstract="false"
  26458. static="false" final="false" visibility="public"
  26459. deprecated="not deprecated">
  26460. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  26461. abstract="false" native="false" synchronized="false"
  26462. static="false" final="false" visibility="public"
  26463. deprecated="not deprecated">
  26464. <doc>
  26465. <![CDATA[get the field's TypeID object]]>
  26466. </doc>
  26467. </method>
  26468. <method name="getFieldID" return="java.lang.String"
  26469. abstract="false" native="false" synchronized="false"
  26470. static="false" final="false" visibility="public"
  26471. deprecated="not deprecated">
  26472. <doc>
  26473. <![CDATA[get the field's id (name)]]>
  26474. </doc>
  26475. </method>
  26476. <method name="equals" return="boolean"
  26477. abstract="false" native="false" synchronized="false"
  26478. static="false" final="false" visibility="public"
  26479. deprecated="not deprecated">
  26480. <param name="o" type="java.lang.Object"/>
  26481. <doc>
  26482. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  26483. </doc>
  26484. </method>
  26485. <method name="hashCode" return="int"
  26486. abstract="false" native="false" synchronized="false"
  26487. static="false" final="false" visibility="public"
  26488. deprecated="not deprecated">
  26489. <doc>
  26490. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  26491. be used as a hashmap key]]>
  26492. </doc>
  26493. </method>
  26494. <method name="equals" return="boolean"
  26495. abstract="false" native="false" synchronized="false"
  26496. static="false" final="false" visibility="public"
  26497. deprecated="not deprecated">
  26498. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  26499. </method>
  26500. <doc>
  26501. <![CDATA[Represents a type information for a field, which is made up of its
  26502. ID (name) and its type (a TypeID object).]]>
  26503. </doc>
  26504. </class>
  26505. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  26506. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  26507. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  26508. abstract="false"
  26509. static="false" final="false" visibility="public"
  26510. deprecated="not deprecated">
  26511. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  26512. static="false" final="false" visibility="public"
  26513. deprecated="not deprecated">
  26514. </constructor>
  26515. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  26516. abstract="false" native="false" synchronized="false"
  26517. static="false" final="false" visibility="public"
  26518. deprecated="not deprecated">
  26519. <doc>
  26520. <![CDATA[get the TypeID of the map's key element]]>
  26521. </doc>
  26522. </method>
  26523. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  26524. abstract="false" native="false" synchronized="false"
  26525. static="false" final="false" visibility="public"
  26526. deprecated="not deprecated">
  26527. <doc>
  26528. <![CDATA[get the TypeID of the map's value element]]>
  26529. </doc>
  26530. </method>
  26531. <method name="equals" return="boolean"
  26532. abstract="false" native="false" synchronized="false"
  26533. static="false" final="false" visibility="public"
  26534. deprecated="not deprecated">
  26535. <param name="o" type="java.lang.Object"/>
  26536. <doc>
  26537. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  26538. same type]]>
  26539. </doc>
  26540. </method>
  26541. <method name="hashCode" return="int"
  26542. abstract="false" native="false" synchronized="false"
  26543. static="false" final="false" visibility="public"
  26544. deprecated="not deprecated">
  26545. <doc>
  26546. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  26547. be used as a hashmap key]]>
  26548. </doc>
  26549. </method>
  26550. <doc>
  26551. <![CDATA[Represents typeID for a Map]]>
  26552. </doc>
  26553. </class>
  26554. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  26555. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  26556. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  26557. abstract="false"
  26558. static="false" final="false" visibility="public"
  26559. deprecated="not deprecated">
  26560. <constructor name="RecordTypeInfo"
  26561. static="false" final="false" visibility="public"
  26562. deprecated="not deprecated">
  26563. <doc>
  26564. <![CDATA[Create an empty RecordTypeInfo object.]]>
  26565. </doc>
  26566. </constructor>
  26567. <constructor name="RecordTypeInfo" type="java.lang.String"
  26568. static="false" final="false" visibility="public"
  26569. deprecated="not deprecated">
  26570. <doc>
  26571. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  26572. @param name Name of the record]]>
  26573. </doc>
  26574. </constructor>
  26575. <method name="getName" return="java.lang.String"
  26576. abstract="false" native="false" synchronized="false"
  26577. static="false" final="false" visibility="public"
  26578. deprecated="not deprecated">
  26579. <doc>
  26580. <![CDATA[return the name of the record]]>
  26581. </doc>
  26582. </method>
  26583. <method name="setName"
  26584. abstract="false" native="false" synchronized="false"
  26585. static="false" final="false" visibility="public"
  26586. deprecated="not deprecated">
  26587. <param name="name" type="java.lang.String"/>
  26588. <doc>
  26589. <![CDATA[set the name of the record]]>
  26590. </doc>
  26591. </method>
  26592. <method name="addField"
  26593. abstract="false" native="false" synchronized="false"
  26594. static="false" final="false" visibility="public"
  26595. deprecated="not deprecated">
  26596. <param name="fieldName" type="java.lang.String"/>
  26597. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  26598. <doc>
  26599. <![CDATA[Add a field.
  26600. @param fieldName Name of the field
  26601. @param tid Type ID of the field]]>
  26602. </doc>
  26603. </method>
  26604. <method name="getFieldTypeInfos" return="java.util.Collection"
  26605. abstract="false" native="false" synchronized="false"
  26606. static="false" final="false" visibility="public"
  26607. deprecated="not deprecated">
  26608. <doc>
  26609. <![CDATA[Return a collection of field type infos]]>
  26610. </doc>
  26611. </method>
  26612. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  26613. abstract="false" native="false" synchronized="false"
  26614. static="false" final="false" visibility="public"
  26615. deprecated="not deprecated">
  26616. <param name="name" type="java.lang.String"/>
  26617. <doc>
  26618. <![CDATA[Return the type info of a nested record. We only consider nesting
  26619. to one level.
  26620. @param name Name of the nested record]]>
  26621. </doc>
  26622. </method>
  26623. <method name="serialize"
  26624. abstract="false" native="false" synchronized="false"
  26625. static="false" final="false" visibility="public"
  26626. deprecated="not deprecated">
  26627. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  26628. <param name="tag" type="java.lang.String"/>
  26629. <exception name="IOException" type="java.io.IOException"/>
  26630. <doc>
  26631. <![CDATA[Serialize the type information for a record]]>
  26632. </doc>
  26633. </method>
  26634. <method name="deserialize"
  26635. abstract="false" native="false" synchronized="false"
  26636. static="false" final="false" visibility="public"
  26637. deprecated="not deprecated">
  26638. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  26639. <param name="tag" type="java.lang.String"/>
  26640. <exception name="IOException" type="java.io.IOException"/>
  26641. <doc>
  26642. <![CDATA[Deserialize the type information for a record]]>
  26643. </doc>
  26644. </method>
  26645. <method name="compareTo" return="int"
  26646. abstract="false" native="false" synchronized="false"
  26647. static="false" final="false" visibility="public"
  26648. deprecated="not deprecated">
  26649. <param name="peer_" type="java.lang.Object"/>
  26650. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  26651. <doc>
  26652. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  26653. for anything besides de/serializing.
  26654. So we always throw an exception.
  26655. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  26656. </doc>
  26657. </method>
  26658. <doc>
  26659. <![CDATA[A record's Type Information object which can read/write itself.
  26660. Type information for a record comprises metadata about the record,
  26661. as well as a collection of type information for each field in the record.]]>
  26662. </doc>
  26663. </class>
  26664. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  26665. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  26666. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  26667. abstract="false"
  26668. static="false" final="false" visibility="public"
  26669. deprecated="not deprecated">
  26670. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  26671. static="false" final="false" visibility="public"
  26672. deprecated="not deprecated">
  26673. <doc>
  26674. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  26675. </doc>
  26676. </constructor>
  26677. <method name="getFieldTypeInfos" return="java.util.Collection"
  26678. abstract="false" native="false" synchronized="false"
  26679. static="false" final="false" visibility="public"
  26680. deprecated="not deprecated">
  26681. </method>
  26682. <doc>
  26683. <![CDATA[Represents typeID for a struct]]>
  26684. </doc>
  26685. </class>
  26686. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  26687. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  26688. <class name="TypeID" extends="java.lang.Object"
  26689. abstract="false"
  26690. static="false" final="false" visibility="public"
  26691. deprecated="not deprecated">
  26692. <method name="getTypeVal" return="byte"
  26693. abstract="false" native="false" synchronized="false"
  26694. static="false" final="false" visibility="public"
  26695. deprecated="not deprecated">
  26696. <doc>
  26697. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  26698. </doc>
  26699. </method>
  26700. <method name="equals" return="boolean"
  26701. abstract="false" native="false" synchronized="false"
  26702. static="false" final="false" visibility="public"
  26703. deprecated="not deprecated">
  26704. <param name="o" type="java.lang.Object"/>
  26705. <doc>
  26706. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  26707. </doc>
  26708. </method>
  26709. <method name="hashCode" return="int"
  26710. abstract="false" native="false" synchronized="false"
  26711. static="false" final="false" visibility="public"
  26712. deprecated="not deprecated">
  26713. <doc>
  26714. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  26715. be used as a hashmap key]]>
  26716. </doc>
  26717. </method>
  26718. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  26719. transient="false" volatile="false"
  26720. static="true" final="true" visibility="public"
  26721. deprecated="not deprecated">
  26722. <doc>
  26723. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  26724. </doc>
  26725. </field>
  26726. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  26727. transient="false" volatile="false"
  26728. static="true" final="true" visibility="public"
  26729. deprecated="not deprecated">
  26730. </field>
  26731. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  26732. transient="false" volatile="false"
  26733. static="true" final="true" visibility="public"
  26734. deprecated="not deprecated">
  26735. </field>
  26736. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  26737. transient="false" volatile="false"
  26738. static="true" final="true" visibility="public"
  26739. deprecated="not deprecated">
  26740. </field>
  26741. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  26742. transient="false" volatile="false"
  26743. static="true" final="true" visibility="public"
  26744. deprecated="not deprecated">
  26745. </field>
  26746. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  26747. transient="false" volatile="false"
  26748. static="true" final="true" visibility="public"
  26749. deprecated="not deprecated">
  26750. </field>
  26751. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  26752. transient="false" volatile="false"
  26753. static="true" final="true" visibility="public"
  26754. deprecated="not deprecated">
  26755. </field>
  26756. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  26757. transient="false" volatile="false"
  26758. static="true" final="true" visibility="public"
  26759. deprecated="not deprecated">
  26760. </field>
  26761. <field name="typeVal" type="byte"
  26762. transient="false" volatile="false"
  26763. static="false" final="false" visibility="protected"
  26764. deprecated="not deprecated">
  26765. </field>
  26766. <doc>
  26767. <![CDATA[Represents typeID for basic types.]]>
  26768. </doc>
  26769. </class>
  26770. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  26771. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  26772. <class name="TypeID.RIOType" extends="java.lang.Object"
  26773. abstract="false"
  26774. static="true" final="true" visibility="public"
  26775. deprecated="not deprecated">
  26776. <constructor name="TypeID.RIOType"
  26777. static="false" final="false" visibility="public"
  26778. deprecated="not deprecated">
  26779. </constructor>
  26780. <field name="BOOL" type="byte"
  26781. transient="false" volatile="false"
  26782. static="true" final="true" visibility="public"
  26783. deprecated="not deprecated">
  26784. </field>
  26785. <field name="BUFFER" type="byte"
  26786. transient="false" volatile="false"
  26787. static="true" final="true" visibility="public"
  26788. deprecated="not deprecated">
  26789. </field>
  26790. <field name="BYTE" type="byte"
  26791. transient="false" volatile="false"
  26792. static="true" final="true" visibility="public"
  26793. deprecated="not deprecated">
  26794. </field>
  26795. <field name="DOUBLE" type="byte"
  26796. transient="false" volatile="false"
  26797. static="true" final="true" visibility="public"
  26798. deprecated="not deprecated">
  26799. </field>
  26800. <field name="FLOAT" type="byte"
  26801. transient="false" volatile="false"
  26802. static="true" final="true" visibility="public"
  26803. deprecated="not deprecated">
  26804. </field>
  26805. <field name="INT" type="byte"
  26806. transient="false" volatile="false"
  26807. static="true" final="true" visibility="public"
  26808. deprecated="not deprecated">
  26809. </field>
  26810. <field name="LONG" type="byte"
  26811. transient="false" volatile="false"
  26812. static="true" final="true" visibility="public"
  26813. deprecated="not deprecated">
  26814. </field>
  26815. <field name="MAP" type="byte"
  26816. transient="false" volatile="false"
  26817. static="true" final="true" visibility="public"
  26818. deprecated="not deprecated">
  26819. </field>
  26820. <field name="STRING" type="byte"
  26821. transient="false" volatile="false"
  26822. static="true" final="true" visibility="public"
  26823. deprecated="not deprecated">
  26824. </field>
  26825. <field name="STRUCT" type="byte"
  26826. transient="false" volatile="false"
  26827. static="true" final="true" visibility="public"
  26828. deprecated="not deprecated">
  26829. </field>
  26830. <field name="VECTOR" type="byte"
  26831. transient="false" volatile="false"
  26832. static="true" final="true" visibility="public"
  26833. deprecated="not deprecated">
  26834. </field>
  26835. <doc>
  26836. <![CDATA[constants representing the IDL types we support]]>
  26837. </doc>
  26838. </class>
  26839. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  26840. <!-- start class org.apache.hadoop.record.meta.Utils -->
  26841. <class name="Utils" extends="java.lang.Object"
  26842. abstract="false"
  26843. static="false" final="false" visibility="public"
  26844. deprecated="not deprecated">
  26845. <method name="skip"
  26846. abstract="false" native="false" synchronized="false"
  26847. static="true" final="false" visibility="public"
  26848. deprecated="not deprecated">
  26849. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  26850. <param name="tag" type="java.lang.String"/>
  26851. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  26852. <exception name="IOException" type="java.io.IOException"/>
  26853. <doc>
  26854. <![CDATA[read/skip bytes from stream based on a type]]>
  26855. </doc>
  26856. </method>
  26857. <doc>
  26858. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  26859. </doc>
  26860. </class>
  26861. <!-- end class org.apache.hadoop.record.meta.Utils -->
  26862. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  26863. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  26864. abstract="false"
  26865. static="false" final="false" visibility="public"
  26866. deprecated="not deprecated">
  26867. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  26868. static="false" final="false" visibility="public"
  26869. deprecated="not deprecated">
  26870. </constructor>
  26871. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  26872. abstract="false" native="false" synchronized="false"
  26873. static="false" final="false" visibility="public"
  26874. deprecated="not deprecated">
  26875. </method>
  26876. <method name="equals" return="boolean"
  26877. abstract="false" native="false" synchronized="false"
  26878. static="false" final="false" visibility="public"
  26879. deprecated="not deprecated">
  26880. <param name="o" type="java.lang.Object"/>
  26881. <doc>
  26882. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  26883. same type]]>
  26884. </doc>
  26885. </method>
  26886. <method name="hashCode" return="int"
  26887. abstract="false" native="false" synchronized="false"
  26888. static="false" final="false" visibility="public"
  26889. deprecated="not deprecated">
  26890. <doc>
  26891. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  26892. be used as a hashmap key]]>
  26893. </doc>
  26894. </method>
  26895. <doc>
  26896. <![CDATA[Represents typeID for vector.]]>
  26897. </doc>
  26898. </class>
  26899. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  26900. </package>
  26901. <package name="org.apache.hadoop.security">
  26902. <!-- start class org.apache.hadoop.security.AccessControlException -->
  26903. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  26904. abstract="false"
  26905. static="false" final="false" visibility="public"
  26906. deprecated="not deprecated">
  26907. <constructor name="AccessControlException"
  26908. static="false" final="false" visibility="public"
  26909. deprecated="not deprecated">
  26910. <doc>
  26911. <![CDATA[Default constructor is needed for unwrapping from
  26912. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  26913. </doc>
  26914. </constructor>
  26915. <constructor name="AccessControlException" type="java.lang.String"
  26916. static="false" final="false" visibility="public"
  26917. deprecated="not deprecated">
  26918. <doc>
  26919. <![CDATA[Constructs an {@link AccessControlException}
  26920. with the specified detail message.
  26921. @param s the detail message.]]>
  26922. </doc>
  26923. </constructor>
  26924. <constructor name="AccessControlException" type="java.lang.Throwable"
  26925. static="false" final="false" visibility="public"
  26926. deprecated="not deprecated">
  26927. <doc>
  26928. <![CDATA[Constructs a new exception with the specified cause and a detail
  26929. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  26930. typically contains the class and detail message of <tt>cause</tt>).
  26931. @param cause the cause (which is saved for later retrieval by the
  26932. {@link #getCause()} method). (A <tt>null</tt> value is
  26933. permitted, and indicates that the cause is nonexistent or
  26934. unknown.)]]>
  26935. </doc>
  26936. </constructor>
  26937. <doc>
  26938. <![CDATA[An exception class for access control related issues.]]>
  26939. </doc>
  26940. </class>
  26941. <!-- end class org.apache.hadoop.security.AccessControlException -->
  26942. <!-- start class org.apache.hadoop.security.Group -->
  26943. <class name="Group" extends="java.lang.Object"
  26944. abstract="false"
  26945. static="false" final="false" visibility="public"
  26946. deprecated="not deprecated">
  26947. <implements name="java.security.Principal"/>
  26948. <constructor name="Group" type="java.lang.String"
  26949. static="false" final="false" visibility="public"
  26950. deprecated="not deprecated">
  26951. <doc>
  26952. <![CDATA[Create a new <code>Group</code> with the given groupname.
  26953. @param group group name]]>
  26954. </doc>
  26955. </constructor>
  26956. <method name="getName" return="java.lang.String"
  26957. abstract="false" native="false" synchronized="false"
  26958. static="false" final="false" visibility="public"
  26959. deprecated="not deprecated">
  26960. </method>
  26961. <method name="toString" return="java.lang.String"
  26962. abstract="false" native="false" synchronized="false"
  26963. static="false" final="false" visibility="public"
  26964. deprecated="not deprecated">
  26965. </method>
  26966. <method name="hashCode" return="int"
  26967. abstract="false" native="false" synchronized="false"
  26968. static="false" final="false" visibility="public"
  26969. deprecated="not deprecated">
  26970. </method>
  26971. <method name="equals" return="boolean"
  26972. abstract="false" native="false" synchronized="false"
  26973. static="false" final="false" visibility="public"
  26974. deprecated="not deprecated">
  26975. <param name="obj" type="java.lang.Object"/>
  26976. </method>
  26977. <doc>
  26978. <![CDATA[A group to which a user belongs to.]]>
  26979. </doc>
  26980. </class>
  26981. <!-- end class org.apache.hadoop.security.Group -->
  26982. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  26983. <class name="SecurityUtil" extends="java.lang.Object"
  26984. abstract="false"
  26985. static="false" final="false" visibility="public"
  26986. deprecated="not deprecated">
  26987. <constructor name="SecurityUtil"
  26988. static="false" final="false" visibility="public"
  26989. deprecated="not deprecated">
  26990. </constructor>
  26991. <method name="setPolicy"
  26992. abstract="false" native="false" synchronized="false"
  26993. static="true" final="false" visibility="public"
  26994. deprecated="not deprecated">
  26995. <param name="policy" type="java.security.Policy"/>
  26996. <doc>
  26997. <![CDATA[Set the global security policy for Hadoop.
  26998. @param policy {@link Policy} used for authorization.]]>
  26999. </doc>
  27000. </method>
  27001. <method name="getPolicy" return="java.security.Policy"
  27002. abstract="false" native="false" synchronized="false"
  27003. static="true" final="false" visibility="public"
  27004. deprecated="not deprecated">
  27005. <doc>
  27006. <![CDATA[Get the current global security policy for Hadoop.
  27007. @return the current {@link Policy}]]>
  27008. </doc>
  27009. </method>
  27010. <method name="getSubject" return="javax.security.auth.Subject"
  27011. abstract="false" native="false" synchronized="false"
  27012. static="true" final="false" visibility="public"
  27013. deprecated="not deprecated">
  27014. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  27015. <doc>
  27016. <![CDATA[Get the {@link Subject} for the user identified by <code>ugi</code>.
  27017. @param ugi user
  27018. @return the {@link Subject} for the user identified by <code>ugi</code>]]>
  27019. </doc>
  27020. </method>
  27021. </class>
  27022. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  27023. <!-- start class org.apache.hadoop.security.SecurityUtil.AccessControlList -->
  27024. <class name="SecurityUtil.AccessControlList" extends="java.lang.Object"
  27025. abstract="false"
  27026. static="true" final="false" visibility="public"
  27027. deprecated="not deprecated">
  27028. <constructor name="SecurityUtil.AccessControlList" type="java.lang.String"
  27029. static="false" final="false" visibility="public"
  27030. deprecated="not deprecated">
  27031. <doc>
  27032. <![CDATA[Construct a new ACL from a String representation of the same.
  27033. The String is a a comma separated list of users and groups.
  27034. The user list comes first and is separated by a space followed
  27035. by the group list. For e.g. "user1,user2 group1,group2"
  27036. @param aclString String representation of the ACL]]>
  27037. </doc>
  27038. </constructor>
  27039. <method name="allAllowed" return="boolean"
  27040. abstract="false" native="false" synchronized="false"
  27041. static="false" final="false" visibility="public"
  27042. deprecated="not deprecated">
  27043. </method>
  27044. <method name="getUsers" return="java.util.Set"
  27045. abstract="false" native="false" synchronized="false"
  27046. static="false" final="false" visibility="public"
  27047. deprecated="not deprecated">
  27048. </method>
  27049. <method name="getGroups" return="java.util.Set"
  27050. abstract="false" native="false" synchronized="false"
  27051. static="false" final="false" visibility="public"
  27052. deprecated="not deprecated">
  27053. </method>
  27054. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  27055. transient="false" volatile="false"
  27056. static="true" final="true" visibility="public"
  27057. deprecated="not deprecated">
  27058. </field>
  27059. <doc>
  27060. <![CDATA[Class representing a configured access control list.]]>
  27061. </doc>
  27062. </class>
  27063. <!-- end class org.apache.hadoop.security.SecurityUtil.AccessControlList -->
  27064. <!-- start class org.apache.hadoop.security.UnixUserGroupInformation -->
  27065. <class name="UnixUserGroupInformation" extends="org.apache.hadoop.security.UserGroupInformation"
  27066. abstract="false"
  27067. static="false" final="false" visibility="public"
  27068. deprecated="not deprecated">
  27069. <constructor name="UnixUserGroupInformation"
  27070. static="false" final="false" visibility="public"
  27071. deprecated="not deprecated">
  27072. <doc>
  27073. <![CDATA[Default constructor]]>
  27074. </doc>
  27075. </constructor>
  27076. <constructor name="UnixUserGroupInformation" type="java.lang.String, java.lang.String[]"
  27077. static="false" final="false" visibility="public"
  27078. deprecated="not deprecated">
  27079. <doc>
  27080. <![CDATA[Constructor with parameters user name and its group names.
  27081. The first entry in the groups list is the default group.
  27082. @param userName a user's name
  27083. @param groupNames groups list, first of which is the default group
  27084. @exception IllegalArgumentException if any argument is null]]>
  27085. </doc>
  27086. </constructor>
  27087. <constructor name="UnixUserGroupInformation" type="java.lang.String[]"
  27088. static="false" final="false" visibility="public"
  27089. deprecated="not deprecated">
  27090. <doc>
  27091. <![CDATA[Constructor with parameter user/group names
  27092. @param ugi an array containing user/group names, the first
  27093. element of which is the user name, the second of
  27094. which is the default group name.
  27095. @exception IllegalArgumentException if the array size is less than 2
  27096. or any element is null.]]>
  27097. </doc>
  27098. </constructor>
  27099. <method name="createImmutable" return="org.apache.hadoop.security.UnixUserGroupInformation"
  27100. abstract="false" native="false" synchronized="false"
  27101. static="true" final="false" visibility="public"
  27102. deprecated="not deprecated">
  27103. <param name="ugi" type="java.lang.String[]"/>
  27104. <doc>
  27105. <![CDATA[Create an immutable {@link UnixUserGroupInformation} object.]]>
  27106. </doc>
  27107. </method>
  27108. <method name="getGroupNames" return="java.lang.String[]"
  27109. abstract="false" native="false" synchronized="false"
  27110. static="false" final="false" visibility="public"
  27111. deprecated="not deprecated">
  27112. <doc>
  27113. <![CDATA[Return an array of group names]]>
  27114. </doc>
  27115. </method>
  27116. <method name="getUserName" return="java.lang.String"
  27117. abstract="false" native="false" synchronized="false"
  27118. static="false" final="false" visibility="public"
  27119. deprecated="not deprecated">
  27120. <doc>
  27121. <![CDATA[Return the user's name]]>
  27122. </doc>
  27123. </method>
  27124. <method name="readFields"
  27125. abstract="false" native="false" synchronized="false"
  27126. static="false" final="false" visibility="public"
  27127. deprecated="not deprecated">
  27128. <param name="in" type="java.io.DataInput"/>
  27129. <exception name="IOException" type="java.io.IOException"/>
  27130. <doc>
  27131. <![CDATA[Deserialize this object
  27132. First check if this is a UGI in the string format.
  27133. If no, throw an IOException; otherwise
  27134. set this object's fields by reading them from the given data input
  27135. @param in input stream
  27136. @exception IOException is thrown if encounter any error when reading]]>
  27137. </doc>
  27138. </method>
  27139. <method name="write"
  27140. abstract="false" native="false" synchronized="false"
  27141. static="false" final="false" visibility="public"
  27142. deprecated="not deprecated">
  27143. <param name="out" type="java.io.DataOutput"/>
  27144. <exception name="IOException" type="java.io.IOException"/>
  27145. <doc>
  27146. <![CDATA[Serialize this object
  27147. First write a string marking that this is a UGI in the string format,
  27148. then write this object's serialized form to the given data output
  27149. @param out output stream
  27150. @exception IOException if encounter any error during writing]]>
  27151. </doc>
  27152. </method>
  27153. <method name="saveToConf"
  27154. abstract="false" native="false" synchronized="false"
  27155. static="true" final="false" visibility="public"
  27156. deprecated="not deprecated">
  27157. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27158. <param name="attr" type="java.lang.String"/>
  27159. <param name="ugi" type="org.apache.hadoop.security.UnixUserGroupInformation"/>
  27160. <doc>
  27161. <![CDATA[Store the given <code>ugi</code> as a comma separated string in
  27162. <code>conf</code> as a property <code>attr</code>
  27163. The String starts with the user name followed by the default group names,
  27164. and other group names.
  27165. @param conf configuration
  27166. @param attr property name
  27167. @param ugi a UnixUserGroupInformation]]>
  27168. </doc>
  27169. </method>
  27170. <method name="readFromConf" return="org.apache.hadoop.security.UnixUserGroupInformation"
  27171. abstract="false" native="false" synchronized="false"
  27172. static="true" final="false" visibility="public"
  27173. deprecated="not deprecated">
  27174. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27175. <param name="attr" type="java.lang.String"/>
  27176. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  27177. <doc>
  27178. <![CDATA[Read a UGI from the given <code>conf</code>
  27179. The object is expected to store with the property name <code>attr</code>
  27180. as a comma separated string that starts
  27181. with the user name followed by group names.
  27182. If the property name is not defined, return null.
  27183. It's assumed that there is only one UGI per user. If this user already
  27184. has a UGI in the ugi map, return the ugi in the map.
  27185. Otherwise, construct a UGI from the configuration, store it in the
  27186. ugi map and return it.
  27187. @param conf configuration
  27188. @param attr property name
  27189. @return a UnixUGI
  27190. @throws LoginException if the stored string is ill-formatted.]]>
  27191. </doc>
  27192. </method>
  27193. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  27194. abstract="false" native="false" synchronized="false"
  27195. static="true" final="false" visibility="public"
  27196. deprecated="not deprecated">
  27197. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  27198. <doc>
  27199. <![CDATA[Get current user's name and the names of all its groups from Unix.
  27200. It's assumed that there is only one UGI per user. If this user already
  27201. has a UGI in the ugi map, return the ugi in the map.
  27202. Otherwise get the current user's information from Unix, store it
  27203. in the map, and return it.
  27204. If the current user's UNIX username or groups are configured in such a way
  27205. to throw an Exception, for example if the user uses LDAP, then this method
  27206. will use a the {@link #DEFAULT_USERNAME} and {@link #DEFAULT_GROUP}
  27207. constants.]]>
  27208. </doc>
  27209. </method>
  27210. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  27211. abstract="false" native="false" synchronized="false"
  27212. static="true" final="false" visibility="public"
  27213. deprecated="not deprecated">
  27214. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27215. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  27216. <doc>
  27217. <![CDATA[Equivalent to login(conf, false).]]>
  27218. </doc>
  27219. </method>
  27220. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  27221. abstract="false" native="false" synchronized="false"
  27222. static="true" final="false" visibility="public"
  27223. deprecated="not deprecated">
  27224. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27225. <param name="save" type="boolean"/>
  27226. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  27227. <doc>
  27228. <![CDATA[Get a user's name & its group names from the given configuration;
  27229. If it is not defined in the configuration, get the current user's
  27230. information from Unix.
  27231. If the user has a UGI in the ugi map, return the one in
  27232. the UGI map.
  27233. @param conf either a job configuration or client's configuration
  27234. @param save saving it to conf?
  27235. @return UnixUserGroupInformation a user/group information
  27236. @exception LoginException if not able to get the user/group information]]>
  27237. </doc>
  27238. </method>
  27239. <method name="equals" return="boolean"
  27240. abstract="false" native="false" synchronized="false"
  27241. static="false" final="false" visibility="public"
  27242. deprecated="not deprecated">
  27243. <param name="other" type="java.lang.Object"/>
  27244. <doc>
  27245. <![CDATA[Decide if two UGIs are the same
  27246. @param other other object
  27247. @return true if they are the same; false otherwise.]]>
  27248. </doc>
  27249. </method>
  27250. <method name="hashCode" return="int"
  27251. abstract="false" native="false" synchronized="false"
  27252. static="false" final="false" visibility="public"
  27253. deprecated="not deprecated">
  27254. <doc>
  27255. <![CDATA[Returns a hash code for this UGI.
  27256. The hash code for a UGI is the hash code of its user name string.
  27257. @return a hash code value for this UGI.]]>
  27258. </doc>
  27259. </method>
  27260. <method name="toString" return="java.lang.String"
  27261. abstract="false" native="false" synchronized="false"
  27262. static="false" final="false" visibility="public"
  27263. deprecated="not deprecated">
  27264. <doc>
  27265. <![CDATA[Convert this object to a string
  27266. @return a comma separated string containing the user name and group names]]>
  27267. </doc>
  27268. </method>
  27269. <method name="getName" return="java.lang.String"
  27270. abstract="false" native="false" synchronized="false"
  27271. static="false" final="false" visibility="public"
  27272. deprecated="not deprecated">
  27273. </method>
  27274. <field name="DEFAULT_USERNAME" type="java.lang.String"
  27275. transient="false" volatile="false"
  27276. static="true" final="true" visibility="public"
  27277. deprecated="not deprecated">
  27278. </field>
  27279. <field name="DEFAULT_GROUP" type="java.lang.String"
  27280. transient="false" volatile="false"
  27281. static="true" final="true" visibility="public"
  27282. deprecated="not deprecated">
  27283. </field>
  27284. <field name="UGI_PROPERTY_NAME" type="java.lang.String"
  27285. transient="false" volatile="false"
  27286. static="true" final="true" visibility="public"
  27287. deprecated="not deprecated">
  27288. </field>
  27289. <doc>
  27290. <![CDATA[An implementation of UserGroupInformation in the Unix system]]>
  27291. </doc>
  27292. </class>
  27293. <!-- end class org.apache.hadoop.security.UnixUserGroupInformation -->
  27294. <!-- start class org.apache.hadoop.security.User -->
  27295. <class name="User" extends="java.lang.Object"
  27296. abstract="false"
  27297. static="false" final="false" visibility="public"
  27298. deprecated="not deprecated">
  27299. <implements name="java.security.Principal"/>
  27300. <constructor name="User" type="java.lang.String"
  27301. static="false" final="false" visibility="public"
  27302. deprecated="not deprecated">
  27303. <doc>
  27304. <![CDATA[Create a new <code>User</code> with the given username.
  27305. @param user user name]]>
  27306. </doc>
  27307. </constructor>
  27308. <method name="getName" return="java.lang.String"
  27309. abstract="false" native="false" synchronized="false"
  27310. static="false" final="false" visibility="public"
  27311. deprecated="not deprecated">
  27312. </method>
  27313. <method name="toString" return="java.lang.String"
  27314. abstract="false" native="false" synchronized="false"
  27315. static="false" final="false" visibility="public"
  27316. deprecated="not deprecated">
  27317. </method>
  27318. <method name="hashCode" return="int"
  27319. abstract="false" native="false" synchronized="false"
  27320. static="false" final="false" visibility="public"
  27321. deprecated="not deprecated">
  27322. </method>
  27323. <method name="equals" return="boolean"
  27324. abstract="false" native="false" synchronized="false"
  27325. static="false" final="false" visibility="public"
  27326. deprecated="not deprecated">
  27327. <param name="obj" type="java.lang.Object"/>
  27328. </method>
  27329. <doc>
  27330. <![CDATA[The username of a user.]]>
  27331. </doc>
  27332. </class>
  27333. <!-- end class org.apache.hadoop.security.User -->
  27334. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  27335. <class name="UserGroupInformation" extends="java.lang.Object"
  27336. abstract="true"
  27337. static="false" final="false" visibility="public"
  27338. deprecated="not deprecated">
  27339. <implements name="org.apache.hadoop.io.Writable"/>
  27340. <implements name="java.security.Principal"/>
  27341. <constructor name="UserGroupInformation"
  27342. static="false" final="false" visibility="public"
  27343. deprecated="not deprecated">
  27344. </constructor>
  27345. <method name="getCurrentUGI" return="org.apache.hadoop.security.UserGroupInformation"
  27346. abstract="false" native="false" synchronized="false"
  27347. static="true" final="false" visibility="public"
  27348. deprecated="not deprecated">
  27349. <doc>
  27350. <![CDATA[@return the {@link UserGroupInformation} for the current thread]]>
  27351. </doc>
  27352. </method>
  27353. <method name="setCurrentUGI"
  27354. abstract="false" native="false" synchronized="false"
  27355. static="true" final="false" visibility="public"
  27356. deprecated="Use {@link #setCurrentUser(UserGroupInformation)}">
  27357. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  27358. <doc>
  27359. <![CDATA[Set the {@link UserGroupInformation} for the current thread
  27360. @deprecated Use {@link #setCurrentUser(UserGroupInformation)}]]>
  27361. </doc>
  27362. </method>
  27363. <method name="setCurrentUser"
  27364. abstract="false" native="false" synchronized="false"
  27365. static="true" final="false" visibility="public"
  27366. deprecated="not deprecated">
  27367. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  27368. <doc>
  27369. <![CDATA[Set the {@link UserGroupInformation} for the current thread
  27370. WARNING - This method should be used only in test cases and other exceptional
  27371. cases!
  27372. @param ugi {@link UserGroupInformation} for the current thread]]>
  27373. </doc>
  27374. </method>
  27375. <method name="getUserName" return="java.lang.String"
  27376. abstract="true" native="false" synchronized="false"
  27377. static="false" final="false" visibility="public"
  27378. deprecated="not deprecated">
  27379. <doc>
  27380. <![CDATA[Get username
  27381. @return the user's name]]>
  27382. </doc>
  27383. </method>
  27384. <method name="getGroupNames" return="java.lang.String[]"
  27385. abstract="true" native="false" synchronized="false"
  27386. static="false" final="false" visibility="public"
  27387. deprecated="not deprecated">
  27388. <doc>
  27389. <![CDATA[Get the name of the groups that the user belong to
  27390. @return an array of group names]]>
  27391. </doc>
  27392. </method>
  27393. <method name="login" return="org.apache.hadoop.security.UserGroupInformation"
  27394. abstract="false" native="false" synchronized="false"
  27395. static="true" final="false" visibility="public"
  27396. deprecated="not deprecated">
  27397. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27398. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  27399. <doc>
  27400. <![CDATA[Login and return a UserGroupInformation object.]]>
  27401. </doc>
  27402. </method>
  27403. <method name="readFrom" return="org.apache.hadoop.security.UserGroupInformation"
  27404. abstract="false" native="false" synchronized="false"
  27405. static="true" final="false" visibility="public"
  27406. deprecated="not deprecated">
  27407. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27408. <exception name="IOException" type="java.io.IOException"/>
  27409. <doc>
  27410. <![CDATA[Read a {@link UserGroupInformation} from conf]]>
  27411. </doc>
  27412. </method>
  27413. <field name="LOG" type="org.apache.commons.logging.Log"
  27414. transient="false" volatile="false"
  27415. static="true" final="true" visibility="public"
  27416. deprecated="not deprecated">
  27417. </field>
  27418. <doc>
  27419. <![CDATA[A {@link Writable} abstract class for storing user and groups information.]]>
  27420. </doc>
  27421. </class>
  27422. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  27423. </package>
  27424. <package name="org.apache.hadoop.security.authorize">
  27425. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  27426. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  27427. abstract="false"
  27428. static="false" final="false" visibility="public"
  27429. deprecated="not deprecated">
  27430. <constructor name="AuthorizationException"
  27431. static="false" final="false" visibility="public"
  27432. deprecated="not deprecated">
  27433. </constructor>
  27434. <constructor name="AuthorizationException" type="java.lang.String"
  27435. static="false" final="false" visibility="public"
  27436. deprecated="not deprecated">
  27437. </constructor>
  27438. <constructor name="AuthorizationException" type="java.lang.Throwable"
  27439. static="false" final="false" visibility="public"
  27440. deprecated="not deprecated">
  27441. <doc>
  27442. <![CDATA[Constructs a new exception with the specified cause and a detail
  27443. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  27444. typically contains the class and detail message of <tt>cause</tt>).
  27445. @param cause the cause (which is saved for later retrieval by the
  27446. {@link #getCause()} method). (A <tt>null</tt> value is
  27447. permitted, and indicates that the cause is nonexistent or
  27448. unknown.)]]>
  27449. </doc>
  27450. </constructor>
  27451. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  27452. abstract="false" native="false" synchronized="false"
  27453. static="false" final="false" visibility="public"
  27454. deprecated="not deprecated">
  27455. </method>
  27456. <method name="printStackTrace"
  27457. abstract="false" native="false" synchronized="false"
  27458. static="false" final="false" visibility="public"
  27459. deprecated="not deprecated">
  27460. </method>
  27461. <method name="printStackTrace"
  27462. abstract="false" native="false" synchronized="false"
  27463. static="false" final="false" visibility="public"
  27464. deprecated="not deprecated">
  27465. <param name="s" type="java.io.PrintStream"/>
  27466. </method>
  27467. <method name="printStackTrace"
  27468. abstract="false" native="false" synchronized="false"
  27469. static="false" final="false" visibility="public"
  27470. deprecated="not deprecated">
  27471. <param name="s" type="java.io.PrintWriter"/>
  27472. </method>
  27473. <doc>
  27474. <![CDATA[An exception class for authorization-related issues.
  27475. This class <em>does not</em> provide the stack trace for security purposes.]]>
  27476. </doc>
  27477. </class>
  27478. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  27479. <!-- start class org.apache.hadoop.security.authorize.ConfiguredPolicy -->
  27480. <class name="ConfiguredPolicy" extends="java.security.Policy"
  27481. abstract="false"
  27482. static="false" final="false" visibility="public"
  27483. deprecated="not deprecated">
  27484. <implements name="org.apache.hadoop.conf.Configurable"/>
  27485. <constructor name="ConfiguredPolicy" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.PolicyProvider"
  27486. static="false" final="false" visibility="public"
  27487. deprecated="not deprecated">
  27488. </constructor>
  27489. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27490. abstract="false" native="false" synchronized="false"
  27491. static="false" final="false" visibility="public"
  27492. deprecated="not deprecated">
  27493. </method>
  27494. <method name="setConf"
  27495. abstract="false" native="false" synchronized="false"
  27496. static="false" final="false" visibility="public"
  27497. deprecated="not deprecated">
  27498. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27499. </method>
  27500. <method name="implies" return="boolean"
  27501. abstract="false" native="false" synchronized="false"
  27502. static="false" final="false" visibility="public"
  27503. deprecated="not deprecated">
  27504. <param name="domain" type="java.security.ProtectionDomain"/>
  27505. <param name="permission" type="java.security.Permission"/>
  27506. </method>
  27507. <method name="getPermissions" return="java.security.PermissionCollection"
  27508. abstract="false" native="false" synchronized="false"
  27509. static="false" final="false" visibility="public"
  27510. deprecated="not deprecated">
  27511. <param name="domain" type="java.security.ProtectionDomain"/>
  27512. </method>
  27513. <method name="refresh"
  27514. abstract="false" native="false" synchronized="false"
  27515. static="false" final="false" visibility="public"
  27516. deprecated="not deprecated">
  27517. </method>
  27518. <field name="HADOOP_POLICY_FILE" type="java.lang.String"
  27519. transient="false" volatile="false"
  27520. static="true" final="true" visibility="public"
  27521. deprecated="not deprecated">
  27522. </field>
  27523. <doc>
  27524. <![CDATA[A {@link Configuration} based security {@link Policy} for Hadoop.
  27525. {@link ConfiguredPolicy} works in conjunction with a {@link PolicyProvider}
  27526. for providing service-level authorization for Hadoop.]]>
  27527. </doc>
  27528. </class>
  27529. <!-- end class org.apache.hadoop.security.authorize.ConfiguredPolicy -->
  27530. <!-- start class org.apache.hadoop.security.authorize.ConnectionPermission -->
  27531. <class name="ConnectionPermission" extends="java.security.Permission"
  27532. abstract="false"
  27533. static="false" final="false" visibility="public"
  27534. deprecated="not deprecated">
  27535. <constructor name="ConnectionPermission" type="java.lang.Class"
  27536. static="false" final="false" visibility="public"
  27537. deprecated="not deprecated">
  27538. <doc>
  27539. <![CDATA[{@link ConnectionPermission} for a given service.
  27540. @param protocol service to be accessed]]>
  27541. </doc>
  27542. </constructor>
  27543. <method name="equals" return="boolean"
  27544. abstract="false" native="false" synchronized="false"
  27545. static="false" final="false" visibility="public"
  27546. deprecated="not deprecated">
  27547. <param name="obj" type="java.lang.Object"/>
  27548. </method>
  27549. <method name="getActions" return="java.lang.String"
  27550. abstract="false" native="false" synchronized="false"
  27551. static="false" final="false" visibility="public"
  27552. deprecated="not deprecated">
  27553. </method>
  27554. <method name="hashCode" return="int"
  27555. abstract="false" native="false" synchronized="false"
  27556. static="false" final="false" visibility="public"
  27557. deprecated="not deprecated">
  27558. </method>
  27559. <method name="implies" return="boolean"
  27560. abstract="false" native="false" synchronized="false"
  27561. static="false" final="false" visibility="public"
  27562. deprecated="not deprecated">
  27563. <param name="permission" type="java.security.Permission"/>
  27564. </method>
  27565. <method name="toString" return="java.lang.String"
  27566. abstract="false" native="false" synchronized="false"
  27567. static="false" final="false" visibility="public"
  27568. deprecated="not deprecated">
  27569. </method>
  27570. <doc>
  27571. <![CDATA[{@link Permission} to initiate a connection to a given service.]]>
  27572. </doc>
  27573. </class>
  27574. <!-- end class org.apache.hadoop.security.authorize.ConnectionPermission -->
  27575. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  27576. <class name="PolicyProvider" extends="java.lang.Object"
  27577. abstract="true"
  27578. static="false" final="false" visibility="public"
  27579. deprecated="not deprecated">
  27580. <constructor name="PolicyProvider"
  27581. static="false" final="false" visibility="public"
  27582. deprecated="not deprecated">
  27583. </constructor>
  27584. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  27585. abstract="true" native="false" synchronized="false"
  27586. static="false" final="false" visibility="public"
  27587. deprecated="not deprecated">
  27588. <doc>
  27589. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  27590. @return the {@link Service} definitions]]>
  27591. </doc>
  27592. </method>
  27593. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  27594. transient="false" volatile="false"
  27595. static="true" final="true" visibility="public"
  27596. deprecated="not deprecated">
  27597. <doc>
  27598. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  27599. </doc>
  27600. </field>
  27601. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  27602. transient="false" volatile="false"
  27603. static="true" final="true" visibility="public"
  27604. deprecated="not deprecated">
  27605. <doc>
  27606. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  27607. </doc>
  27608. </field>
  27609. <doc>
  27610. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  27611. security {@link Policy} in effect for Hadoop.]]>
  27612. </doc>
  27613. </class>
  27614. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  27615. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  27616. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  27617. static="false" final="false" visibility="public"
  27618. deprecated="not deprecated">
  27619. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  27620. <method name="refreshServiceAcl"
  27621. abstract="false" native="false" synchronized="false"
  27622. static="false" final="false" visibility="public"
  27623. deprecated="not deprecated">
  27624. <exception name="IOException" type="java.io.IOException"/>
  27625. <doc>
  27626. <![CDATA[Refresh the service-level authorization policy in-effect.
  27627. @throws IOException]]>
  27628. </doc>
  27629. </method>
  27630. <field name="versionID" type="long"
  27631. transient="false" volatile="false"
  27632. static="true" final="true" visibility="public"
  27633. deprecated="not deprecated">
  27634. <doc>
  27635. <![CDATA[Version 1: Initial version]]>
  27636. </doc>
  27637. </field>
  27638. <doc>
  27639. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  27640. </doc>
  27641. </interface>
  27642. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  27643. <!-- start class org.apache.hadoop.security.authorize.Service -->
  27644. <class name="Service" extends="java.lang.Object"
  27645. abstract="false"
  27646. static="false" final="false" visibility="public"
  27647. deprecated="not deprecated">
  27648. <constructor name="Service" type="java.lang.String, java.lang.Class"
  27649. static="false" final="false" visibility="public"
  27650. deprecated="not deprecated">
  27651. </constructor>
  27652. <method name="getServiceKey" return="java.lang.String"
  27653. abstract="false" native="false" synchronized="false"
  27654. static="false" final="false" visibility="public"
  27655. deprecated="not deprecated">
  27656. <doc>
  27657. <![CDATA[Get the configuration key for the service.
  27658. @return the configuration key for the service]]>
  27659. </doc>
  27660. </method>
  27661. <method name="getPermission" return="java.security.Permission"
  27662. abstract="false" native="false" synchronized="false"
  27663. static="false" final="false" visibility="public"
  27664. deprecated="not deprecated">
  27665. <doc>
  27666. <![CDATA[Get the {@link Permission} required to access the service.
  27667. @return the {@link Permission} required to access the service]]>
  27668. </doc>
  27669. </method>
  27670. <doc>
  27671. <![CDATA[An abstract definition of <em>service</em> as related to
  27672. Service Level Authorization for Hadoop.
  27673. Each service defines it's configuration key and also the necessary
  27674. {@link Permission} required to access the service.]]>
  27675. </doc>
  27676. </class>
  27677. <!-- end class org.apache.hadoop.security.authorize.Service -->
  27678. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  27679. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  27680. abstract="false"
  27681. static="false" final="false" visibility="public"
  27682. deprecated="not deprecated">
  27683. <constructor name="ServiceAuthorizationManager"
  27684. static="false" final="false" visibility="public"
  27685. deprecated="not deprecated">
  27686. </constructor>
  27687. <method name="authorize"
  27688. abstract="false" native="false" synchronized="false"
  27689. static="true" final="false" visibility="public"
  27690. deprecated="not deprecated">
  27691. <param name="user" type="javax.security.auth.Subject"/>
  27692. <param name="protocol" type="java.lang.Class"/>
  27693. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  27694. <doc>
  27695. <![CDATA[Authorize the user to access the protocol being used.
  27696. @param user user accessing the service
  27697. @param protocol service being accessed
  27698. @throws AuthorizationException on authorization failure]]>
  27699. </doc>
  27700. </method>
  27701. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  27702. transient="false" volatile="false"
  27703. static="true" final="true" visibility="public"
  27704. deprecated="not deprecated">
  27705. <doc>
  27706. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.]]>
  27707. </doc>
  27708. </field>
  27709. <doc>
  27710. <![CDATA[An authorization manager which handles service-level authorization
  27711. for incoming service requests.]]>
  27712. </doc>
  27713. </class>
  27714. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  27715. </package>
  27716. <package name="org.apache.hadoop.util">
  27717. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  27718. <class name="CyclicIteration" extends="java.lang.Object"
  27719. abstract="false"
  27720. static="false" final="false" visibility="public"
  27721. deprecated="not deprecated">
  27722. <implements name="java.lang.Iterable"/>
  27723. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  27724. static="false" final="false" visibility="public"
  27725. deprecated="not deprecated">
  27726. <doc>
  27727. <![CDATA[Construct an {@link Iterable} object,
  27728. so that an {@link Iterator} can be created
  27729. for iterating the given {@link NavigableMap}.
  27730. The iteration begins from the starting key exclusively.]]>
  27731. </doc>
  27732. </constructor>
  27733. <method name="iterator" return="java.util.Iterator"
  27734. abstract="false" native="false" synchronized="false"
  27735. static="false" final="false" visibility="public"
  27736. deprecated="not deprecated">
  27737. <doc>
  27738. <![CDATA[{@inheritDoc}]]>
  27739. </doc>
  27740. </method>
  27741. <doc>
  27742. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  27743. The {@link Iterator} navigates the entries of the map
  27744. according to the map's ordering.
  27745. If the {@link Iterator} hits the last entry of the map,
  27746. it will then continue from the first entry.]]>
  27747. </doc>
  27748. </class>
  27749. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  27750. <!-- start class org.apache.hadoop.util.Daemon -->
  27751. <class name="Daemon" extends="java.lang.Thread"
  27752. abstract="false"
  27753. static="false" final="false" visibility="public"
  27754. deprecated="not deprecated">
  27755. <constructor name="Daemon"
  27756. static="false" final="false" visibility="public"
  27757. deprecated="not deprecated">
  27758. <doc>
  27759. <![CDATA[Construct a daemon thread.]]>
  27760. </doc>
  27761. </constructor>
  27762. <constructor name="Daemon" type="java.lang.Runnable"
  27763. static="false" final="false" visibility="public"
  27764. deprecated="not deprecated">
  27765. <doc>
  27766. <![CDATA[Construct a daemon thread.]]>
  27767. </doc>
  27768. </constructor>
  27769. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  27770. static="false" final="false" visibility="public"
  27771. deprecated="not deprecated">
  27772. <doc>
  27773. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  27774. </doc>
  27775. </constructor>
  27776. <method name="getRunnable" return="java.lang.Runnable"
  27777. abstract="false" native="false" synchronized="false"
  27778. static="false" final="false" visibility="public"
  27779. deprecated="not deprecated">
  27780. </method>
  27781. <doc>
  27782. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  27783. </doc>
  27784. </class>
  27785. <!-- end class org.apache.hadoop.util.Daemon -->
  27786. <!-- start class org.apache.hadoop.util.DataChecksum -->
  27787. <class name="DataChecksum" extends="java.lang.Object"
  27788. abstract="false"
  27789. static="false" final="false" visibility="public"
  27790. deprecated="not deprecated">
  27791. <implements name="java.util.zip.Checksum"/>
  27792. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  27793. abstract="false" native="false" synchronized="false"
  27794. static="true" final="false" visibility="public"
  27795. deprecated="not deprecated">
  27796. <param name="type" type="int"/>
  27797. <param name="bytesPerChecksum" type="int"/>
  27798. </method>
  27799. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  27800. abstract="false" native="false" synchronized="false"
  27801. static="true" final="false" visibility="public"
  27802. deprecated="not deprecated">
  27803. <param name="bytes" type="byte[]"/>
  27804. <param name="offset" type="int"/>
  27805. <doc>
  27806. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  27807. @return DataChecksum of the type in the array or null in case of an error.]]>
  27808. </doc>
  27809. </method>
  27810. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  27811. abstract="false" native="false" synchronized="false"
  27812. static="true" final="false" visibility="public"
  27813. deprecated="not deprecated">
  27814. <param name="in" type="java.io.DataInputStream"/>
  27815. <exception name="IOException" type="java.io.IOException"/>
  27816. <doc>
  27817. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  27818. input stream <i>in</i>]]>
  27819. </doc>
  27820. </method>
  27821. <method name="writeHeader"
  27822. abstract="false" native="false" synchronized="false"
  27823. static="false" final="false" visibility="public"
  27824. deprecated="not deprecated">
  27825. <param name="out" type="java.io.DataOutputStream"/>
  27826. <exception name="IOException" type="java.io.IOException"/>
  27827. <doc>
  27828. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  27829. </doc>
  27830. </method>
  27831. <method name="getHeader" return="byte[]"
  27832. abstract="false" native="false" synchronized="false"
  27833. static="false" final="false" visibility="public"
  27834. deprecated="not deprecated">
  27835. </method>
  27836. <method name="writeValue" return="int"
  27837. abstract="false" native="false" synchronized="false"
  27838. static="false" final="false" visibility="public"
  27839. deprecated="not deprecated">
  27840. <param name="out" type="java.io.DataOutputStream"/>
  27841. <param name="reset" type="boolean"/>
  27842. <exception name="IOException" type="java.io.IOException"/>
  27843. <doc>
  27844. <![CDATA[Writes the current checksum to the stream.
  27845. If <i>reset</i> is true, then resets the checksum.
  27846. @return number of bytes written. Will be equal to getChecksumSize();]]>
  27847. </doc>
  27848. </method>
  27849. <method name="writeValue" return="int"
  27850. abstract="false" native="false" synchronized="false"
  27851. static="false" final="false" visibility="public"
  27852. deprecated="not deprecated">
  27853. <param name="buf" type="byte[]"/>
  27854. <param name="offset" type="int"/>
  27855. <param name="reset" type="boolean"/>
  27856. <exception name="IOException" type="java.io.IOException"/>
  27857. <doc>
  27858. <![CDATA[Writes the current checksum to a buffer.
  27859. If <i>reset</i> is true, then resets the checksum.
  27860. @return number of bytes written. Will be equal to getChecksumSize();]]>
  27861. </doc>
  27862. </method>
  27863. <method name="compare" return="boolean"
  27864. abstract="false" native="false" synchronized="false"
  27865. static="false" final="false" visibility="public"
  27866. deprecated="not deprecated">
  27867. <param name="buf" type="byte[]"/>
  27868. <param name="offset" type="int"/>
  27869. <doc>
  27870. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  27871. @return true if the checksum matches and false otherwise.]]>
  27872. </doc>
  27873. </method>
  27874. <method name="getChecksumType" return="int"
  27875. abstract="false" native="false" synchronized="false"
  27876. static="false" final="false" visibility="public"
  27877. deprecated="not deprecated">
  27878. </method>
  27879. <method name="getChecksumSize" return="int"
  27880. abstract="false" native="false" synchronized="false"
  27881. static="false" final="false" visibility="public"
  27882. deprecated="not deprecated">
  27883. </method>
  27884. <method name="getBytesPerChecksum" return="int"
  27885. abstract="false" native="false" synchronized="false"
  27886. static="false" final="false" visibility="public"
  27887. deprecated="not deprecated">
  27888. </method>
  27889. <method name="getNumBytesInSum" return="int"
  27890. abstract="false" native="false" synchronized="false"
  27891. static="false" final="false" visibility="public"
  27892. deprecated="not deprecated">
  27893. </method>
  27894. <method name="getChecksumHeaderSize" return="int"
  27895. abstract="false" native="false" synchronized="false"
  27896. static="true" final="false" visibility="public"
  27897. deprecated="not deprecated">
  27898. </method>
  27899. <method name="getValue" return="long"
  27900. abstract="false" native="false" synchronized="false"
  27901. static="false" final="false" visibility="public"
  27902. deprecated="not deprecated">
  27903. </method>
  27904. <method name="reset"
  27905. abstract="false" native="false" synchronized="false"
  27906. static="false" final="false" visibility="public"
  27907. deprecated="not deprecated">
  27908. </method>
  27909. <method name="update"
  27910. abstract="false" native="false" synchronized="false"
  27911. static="false" final="false" visibility="public"
  27912. deprecated="not deprecated">
  27913. <param name="b" type="byte[]"/>
  27914. <param name="off" type="int"/>
  27915. <param name="len" type="int"/>
  27916. </method>
  27917. <method name="update"
  27918. abstract="false" native="false" synchronized="false"
  27919. static="false" final="false" visibility="public"
  27920. deprecated="not deprecated">
  27921. <param name="b" type="int"/>
  27922. </method>
  27923. <field name="HEADER_LEN" type="int"
  27924. transient="false" volatile="false"
  27925. static="true" final="true" visibility="public"
  27926. deprecated="not deprecated">
  27927. </field>
  27928. <field name="CHECKSUM_NULL" type="int"
  27929. transient="false" volatile="false"
  27930. static="true" final="true" visibility="public"
  27931. deprecated="not deprecated">
  27932. </field>
  27933. <field name="CHECKSUM_CRC32" type="int"
  27934. transient="false" volatile="false"
  27935. static="true" final="true" visibility="public"
  27936. deprecated="not deprecated">
  27937. </field>
  27938. <field name="SIZE_OF_INTEGER" type="int"
  27939. transient="false" volatile="false"
  27940. static="true" final="true" visibility="public"
  27941. deprecated="not deprecated">
  27942. </field>
  27943. <doc>
  27944. <![CDATA[This class provides inteface and utilities for processing checksums for
  27945. DFS data transfers.]]>
  27946. </doc>
  27947. </class>
  27948. <!-- end class org.apache.hadoop.util.DataChecksum -->
  27949. <!-- start class org.apache.hadoop.util.DiskChecker -->
  27950. <class name="DiskChecker" extends="java.lang.Object"
  27951. abstract="false"
  27952. static="false" final="false" visibility="public"
  27953. deprecated="not deprecated">
  27954. <constructor name="DiskChecker"
  27955. static="false" final="false" visibility="public"
  27956. deprecated="not deprecated">
  27957. </constructor>
  27958. <method name="mkdirsWithExistsCheck" return="boolean"
  27959. abstract="false" native="false" synchronized="false"
  27960. static="true" final="false" visibility="public"
  27961. deprecated="not deprecated">
  27962. <param name="dir" type="java.io.File"/>
  27963. <doc>
  27964. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  27965. method provided in the Sun's java.io.File class in the following way:
  27966. While creating the non-existent parent directories, this method checks for
  27967. the existence of those directories if the mkdir fails at any point (since
  27968. that directory might have just been created by some other process).
  27969. If both mkdir() and the exists() check fails for any seemingly
  27970. non-existent directory, then we signal an error; Sun's mkdir would signal
  27971. an error (return false) if a directory it is attempting to create already
  27972. exists or the mkdir fails.
  27973. @param dir
  27974. @return true on success, false on failure]]>
  27975. </doc>
  27976. </method>
  27977. <method name="checkDir"
  27978. abstract="false" native="false" synchronized="false"
  27979. static="true" final="false" visibility="public"
  27980. deprecated="not deprecated">
  27981. <param name="dir" type="java.io.File"/>
  27982. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  27983. </method>
  27984. <doc>
  27985. <![CDATA[Class that provides utility functions for checking disk problem]]>
  27986. </doc>
  27987. </class>
  27988. <!-- end class org.apache.hadoop.util.DiskChecker -->
  27989. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  27990. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  27991. abstract="false"
  27992. static="true" final="false" visibility="public"
  27993. deprecated="not deprecated">
  27994. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  27995. static="false" final="false" visibility="public"
  27996. deprecated="not deprecated">
  27997. </constructor>
  27998. </class>
  27999. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  28000. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  28001. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  28002. abstract="false"
  28003. static="true" final="false" visibility="public"
  28004. deprecated="not deprecated">
  28005. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  28006. static="false" final="false" visibility="public"
  28007. deprecated="not deprecated">
  28008. </constructor>
  28009. </class>
  28010. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  28011. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  28012. <class name="GenericOptionsParser" extends="java.lang.Object"
  28013. abstract="false"
  28014. static="false" final="false" visibility="public"
  28015. deprecated="not deprecated">
  28016. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  28017. static="false" final="false" visibility="public"
  28018. deprecated="not deprecated">
  28019. <doc>
  28020. <![CDATA[Create an options parser with the given options to parse the args.
  28021. @param opts the options
  28022. @param args the command line arguments]]>
  28023. </doc>
  28024. </constructor>
  28025. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  28026. static="false" final="false" visibility="public"
  28027. deprecated="not deprecated">
  28028. <doc>
  28029. <![CDATA[Create an options parser to parse the args.
  28030. @param args the command line arguments]]>
  28031. </doc>
  28032. </constructor>
  28033. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  28034. static="false" final="false" visibility="public"
  28035. deprecated="not deprecated">
  28036. <doc>
  28037. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  28038. arguments.
  28039. The array of string arguments other than the generic arguments can be
  28040. obtained by {@link #getRemainingArgs()}.
  28041. @param conf the <code>Configuration</code> to modify.
  28042. @param args command-line arguments.]]>
  28043. </doc>
  28044. </constructor>
  28045. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  28046. static="false" final="false" visibility="public"
  28047. deprecated="not deprecated">
  28048. <doc>
  28049. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  28050. as generic Hadoop options.
  28051. The resulting <code>CommandLine</code> object can be obtained by
  28052. {@link #getCommandLine()}.
  28053. @param conf the configuration to modify
  28054. @param options options built by the caller
  28055. @param args User-specified arguments]]>
  28056. </doc>
  28057. </constructor>
  28058. <method name="getRemainingArgs" return="java.lang.String[]"
  28059. abstract="false" native="false" synchronized="false"
  28060. static="false" final="false" visibility="public"
  28061. deprecated="not deprecated">
  28062. <doc>
  28063. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  28064. @return array of <code>String</code>s containing the un-parsed arguments
  28065. or <strong>empty array</strong> if commandLine was not defined.]]>
  28066. </doc>
  28067. </method>
  28068. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  28069. abstract="false" native="false" synchronized="false"
  28070. static="false" final="false" visibility="public"
  28071. deprecated="not deprecated">
  28072. <doc>
  28073. <![CDATA[Get the modified configuration
  28074. @return the configuration that has the modified parameters.]]>
  28075. </doc>
  28076. </method>
  28077. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  28078. abstract="false" native="false" synchronized="false"
  28079. static="false" final="false" visibility="public"
  28080. deprecated="not deprecated">
  28081. <doc>
  28082. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  28083. to process the parsed arguments.
  28084. Note: If the object is created with
  28085. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  28086. object will only contain parsed generic options.
  28087. @return <code>CommandLine</code> representing list of arguments
  28088. parsed against Options descriptor.]]>
  28089. </doc>
  28090. </method>
  28091. <method name="getLibJars" return="java.net.URL[]"
  28092. abstract="false" native="false" synchronized="false"
  28093. static="true" final="false" visibility="public"
  28094. deprecated="not deprecated">
  28095. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28096. <exception name="IOException" type="java.io.IOException"/>
  28097. <doc>
  28098. <![CDATA[If libjars are set in the conf, parse the libjars.
  28099. @param conf
  28100. @return libjar urls
  28101. @throws IOException]]>
  28102. </doc>
  28103. </method>
  28104. <method name="printGenericCommandUsage"
  28105. abstract="false" native="false" synchronized="false"
  28106. static="true" final="false" visibility="public"
  28107. deprecated="not deprecated">
  28108. <param name="out" type="java.io.PrintStream"/>
  28109. <doc>
  28110. <![CDATA[Print the usage message for generic command-line options supported.
  28111. @param out stream to print the usage message to.]]>
  28112. </doc>
  28113. </method>
  28114. <doc>
  28115. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  28116. arguments generic to the Hadoop framework.
  28117. <code>GenericOptionsParser</code> recognizes several standarad command
  28118. line arguments, enabling applications to easily specify a namenode, a
  28119. jobtracker, additional configuration resources etc.
  28120. <h4 id="GenericOptions">Generic Options</h4>
  28121. <p>The supported generic options are:</p>
  28122. <p><blockquote><pre>
  28123. -conf &lt;configuration file&gt; specify a configuration file
  28124. -D &lt;property=value&gt; use value for given property
  28125. -fs &lt;local|namenode:port&gt; specify a namenode
  28126. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  28127. -files &lt;comma separated list of files&gt; specify comma separated
  28128. files to be copied to the map reduce cluster
  28129. -libjars &lt;comma separated list of jars&gt; specify comma separated
  28130. jar files to include in the classpath.
  28131. -archives &lt;comma separated list of archives&gt; specify comma
  28132. separated archives to be unarchived on the compute machines.
  28133. </pre></blockquote></p>
  28134. <p>The general command line syntax is:</p>
  28135. <p><tt><pre>
  28136. bin/hadoop command [genericOptions] [commandOptions]
  28137. </pre></tt></p>
  28138. <p>Generic command line arguments <strong>might</strong> modify
  28139. <code>Configuration </code> objects, given to constructors.</p>
  28140. <p>The functionality is implemented using Commons CLI.</p>
  28141. <p>Examples:</p>
  28142. <p><blockquote><pre>
  28143. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  28144. list /data directory in dfs with namenode darwin:8020
  28145. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  28146. list /data directory in dfs with namenode darwin:8020
  28147. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  28148. list /data directory in dfs with conf specified in hadoop-site.xml
  28149. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  28150. submit a job to job tracker darwin:50020
  28151. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  28152. submit a job to job tracker darwin:50020
  28153. $ bin/hadoop job -jt local -submit job.xml
  28154. submit a job to local runner
  28155. $ bin/hadoop jar -libjars testlib.jar
  28156. -archives test.tgz -files file.txt inputjar args
  28157. job submission with libjars, files and archives
  28158. </pre></blockquote></p>
  28159. @see Tool
  28160. @see ToolRunner]]>
  28161. </doc>
  28162. </class>
  28163. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  28164. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  28165. <class name="GenericsUtil" extends="java.lang.Object"
  28166. abstract="false"
  28167. static="false" final="false" visibility="public"
  28168. deprecated="not deprecated">
  28169. <constructor name="GenericsUtil"
  28170. static="false" final="false" visibility="public"
  28171. deprecated="not deprecated">
  28172. </constructor>
  28173. <method name="getClass" return="java.lang.Class"
  28174. abstract="false" native="false" synchronized="false"
  28175. static="true" final="false" visibility="public"
  28176. deprecated="not deprecated">
  28177. <param name="t" type="java.lang.Object"/>
  28178. <doc>
  28179. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  28180. argument of type <code>T</code>.
  28181. @param <T> The type of the argument
  28182. @param t the object to get it class
  28183. @return <code>Class&lt;T&gt;</code>]]>
  28184. </doc>
  28185. </method>
  28186. <method name="toArray" return="java.lang.Object[]"
  28187. abstract="false" native="false" synchronized="false"
  28188. static="true" final="false" visibility="public"
  28189. deprecated="not deprecated">
  28190. <param name="c" type="java.lang.Class"/>
  28191. <param name="list" type="java.util.List"/>
  28192. <doc>
  28193. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  28194. <code>T[]</code>.
  28195. @param c the Class object of the items in the list
  28196. @param list the list to convert]]>
  28197. </doc>
  28198. </method>
  28199. <method name="toArray" return="java.lang.Object[]"
  28200. abstract="false" native="false" synchronized="false"
  28201. static="true" final="false" visibility="public"
  28202. deprecated="not deprecated">
  28203. <param name="list" type="java.util.List"/>
  28204. <doc>
  28205. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  28206. <code>T[]</code>.
  28207. @param list the list to convert
  28208. @throws ArrayIndexOutOfBoundsException if the list is empty.
  28209. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  28210. </doc>
  28211. </method>
  28212. <doc>
  28213. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  28214. </doc>
  28215. </class>
  28216. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  28217. <!-- start class org.apache.hadoop.util.HeapSort -->
  28218. <class name="HeapSort" extends="java.lang.Object"
  28219. abstract="false"
  28220. static="false" final="true" visibility="public"
  28221. deprecated="not deprecated">
  28222. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  28223. <constructor name="HeapSort"
  28224. static="false" final="false" visibility="public"
  28225. deprecated="not deprecated">
  28226. </constructor>
  28227. <method name="sort"
  28228. abstract="false" native="false" synchronized="false"
  28229. static="false" final="false" visibility="public"
  28230. deprecated="not deprecated">
  28231. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  28232. <param name="p" type="int"/>
  28233. <param name="r" type="int"/>
  28234. <doc>
  28235. <![CDATA[Sort the given range of items using heap sort.
  28236. {@inheritDoc}]]>
  28237. </doc>
  28238. </method>
  28239. <method name="sort"
  28240. abstract="false" native="false" synchronized="false"
  28241. static="false" final="false" visibility="public"
  28242. deprecated="not deprecated">
  28243. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  28244. <param name="p" type="int"/>
  28245. <param name="r" type="int"/>
  28246. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  28247. <doc>
  28248. <![CDATA[{@inheritDoc}]]>
  28249. </doc>
  28250. </method>
  28251. <doc>
  28252. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  28253. </doc>
  28254. </class>
  28255. <!-- end class org.apache.hadoop.util.HeapSort -->
  28256. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  28257. <class name="HostsFileReader" extends="java.lang.Object"
  28258. abstract="false"
  28259. static="false" final="false" visibility="public"
  28260. deprecated="not deprecated">
  28261. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  28262. static="false" final="false" visibility="public"
  28263. deprecated="not deprecated">
  28264. <exception name="IOException" type="java.io.IOException"/>
  28265. </constructor>
  28266. <method name="refresh"
  28267. abstract="false" native="false" synchronized="true"
  28268. static="false" final="false" visibility="public"
  28269. deprecated="not deprecated">
  28270. <exception name="IOException" type="java.io.IOException"/>
  28271. </method>
  28272. <method name="getHosts" return="java.util.Set"
  28273. abstract="false" native="false" synchronized="false"
  28274. static="false" final="false" visibility="public"
  28275. deprecated="not deprecated">
  28276. </method>
  28277. <method name="getExcludedHosts" return="java.util.Set"
  28278. abstract="false" native="false" synchronized="false"
  28279. static="false" final="false" visibility="public"
  28280. deprecated="not deprecated">
  28281. </method>
  28282. <method name="setIncludesFile"
  28283. abstract="false" native="false" synchronized="true"
  28284. static="false" final="false" visibility="public"
  28285. deprecated="not deprecated">
  28286. <param name="includesFile" type="java.lang.String"/>
  28287. </method>
  28288. <method name="setExcludesFile"
  28289. abstract="false" native="false" synchronized="true"
  28290. static="false" final="false" visibility="public"
  28291. deprecated="not deprecated">
  28292. <param name="excludesFile" type="java.lang.String"/>
  28293. </method>
  28294. <method name="updateFileNames"
  28295. abstract="false" native="false" synchronized="true"
  28296. static="false" final="false" visibility="public"
  28297. deprecated="not deprecated">
  28298. <param name="includesFile" type="java.lang.String"/>
  28299. <param name="excludesFile" type="java.lang.String"/>
  28300. <exception name="IOException" type="java.io.IOException"/>
  28301. </method>
  28302. </class>
  28303. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  28304. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  28305. <interface name="IndexedSortable" abstract="true"
  28306. static="false" final="false" visibility="public"
  28307. deprecated="not deprecated">
  28308. <method name="compare" return="int"
  28309. abstract="false" native="false" synchronized="false"
  28310. static="false" final="false" visibility="public"
  28311. deprecated="not deprecated">
  28312. <param name="i" type="int"/>
  28313. <param name="j" type="int"/>
  28314. <doc>
  28315. <![CDATA[Compare items at the given addresses consistent with the semantics of
  28316. {@link java.util.Comparator#compare(Object, Object)}.]]>
  28317. </doc>
  28318. </method>
  28319. <method name="swap"
  28320. abstract="false" native="false" synchronized="false"
  28321. static="false" final="false" visibility="public"
  28322. deprecated="not deprecated">
  28323. <param name="i" type="int"/>
  28324. <param name="j" type="int"/>
  28325. <doc>
  28326. <![CDATA[Swap items at the given addresses.]]>
  28327. </doc>
  28328. </method>
  28329. <doc>
  28330. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  28331. algorithms.]]>
  28332. </doc>
  28333. </interface>
  28334. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  28335. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  28336. <interface name="IndexedSorter" abstract="true"
  28337. static="false" final="false" visibility="public"
  28338. deprecated="not deprecated">
  28339. <method name="sort"
  28340. abstract="false" native="false" synchronized="false"
  28341. static="false" final="false" visibility="public"
  28342. deprecated="not deprecated">
  28343. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  28344. <param name="l" type="int"/>
  28345. <param name="r" type="int"/>
  28346. <doc>
  28347. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  28348. range of logical indices. From the perspective of the sort algorithm,
  28349. each index between l (inclusive) and r (exclusive) is an addressable
  28350. entry.
  28351. @see IndexedSortable#compare
  28352. @see IndexedSortable#swap]]>
  28353. </doc>
  28354. </method>
  28355. <method name="sort"
  28356. abstract="false" native="false" synchronized="false"
  28357. static="false" final="false" visibility="public"
  28358. deprecated="not deprecated">
  28359. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  28360. <param name="l" type="int"/>
  28361. <param name="r" type="int"/>
  28362. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  28363. <doc>
  28364. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  28365. periodically.
  28366. @see #sort(IndexedSortable,int,int)]]>
  28367. </doc>
  28368. </method>
  28369. <doc>
  28370. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  28371. A sort algorithm implementing this interface may only
  28372. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  28373. for a range of indices to effect a sort across that range.]]>
  28374. </doc>
  28375. </interface>
  28376. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  28377. <!-- start class org.apache.hadoop.util.LineReader -->
  28378. <class name="LineReader" extends="java.lang.Object"
  28379. abstract="false"
  28380. static="false" final="false" visibility="public"
  28381. deprecated="not deprecated">
  28382. <constructor name="LineReader" type="java.io.InputStream"
  28383. static="false" final="false" visibility="public"
  28384. deprecated="not deprecated">
  28385. <doc>
  28386. <![CDATA[Create a line reader that reads from the given stream using the
  28387. default buffer-size (64k).
  28388. @param in The input stream
  28389. @throws IOException]]>
  28390. </doc>
  28391. </constructor>
  28392. <constructor name="LineReader" type="java.io.InputStream, int"
  28393. static="false" final="false" visibility="public"
  28394. deprecated="not deprecated">
  28395. <doc>
  28396. <![CDATA[Create a line reader that reads from the given stream using the
  28397. given buffer-size.
  28398. @param in The input stream
  28399. @param bufferSize Size of the read buffer
  28400. @throws IOException]]>
  28401. </doc>
  28402. </constructor>
  28403. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  28404. static="false" final="false" visibility="public"
  28405. deprecated="not deprecated">
  28406. <exception name="IOException" type="java.io.IOException"/>
  28407. <doc>
  28408. <![CDATA[Create a line reader that reads from the given stream using the
  28409. <code>io.file.buffer.size</code> specified in the given
  28410. <code>Configuration</code>.
  28411. @param in input stream
  28412. @param conf configuration
  28413. @throws IOException]]>
  28414. </doc>
  28415. </constructor>
  28416. <method name="close"
  28417. abstract="false" native="false" synchronized="false"
  28418. static="false" final="false" visibility="public"
  28419. deprecated="not deprecated">
  28420. <exception name="IOException" type="java.io.IOException"/>
  28421. <doc>
  28422. <![CDATA[Close the underlying stream.
  28423. @throws IOException]]>
  28424. </doc>
  28425. </method>
  28426. <method name="readLine" return="int"
  28427. abstract="false" native="false" synchronized="false"
  28428. static="false" final="false" visibility="public"
  28429. deprecated="not deprecated">
  28430. <param name="str" type="org.apache.hadoop.io.Text"/>
  28431. <param name="maxLineLength" type="int"/>
  28432. <param name="maxBytesToConsume" type="int"/>
  28433. <exception name="IOException" type="java.io.IOException"/>
  28434. <doc>
  28435. <![CDATA[Read one line from the InputStream into the given Text. A line
  28436. can be terminated by one of the following: '\n' (LF) , '\r' (CR),
  28437. or '\r\n' (CR+LF). EOF also terminates an otherwise unterminated
  28438. line.
  28439. @param str the object to store the given line (without newline)
  28440. @param maxLineLength the maximum number of bytes to store into str;
  28441. the rest of the line is silently discarded.
  28442. @param maxBytesToConsume the maximum number of bytes to consume
  28443. in this call. This is only a hint, because if the line cross
  28444. this threshold, we allow it to happen. It can overshoot
  28445. potentially by as much as one buffer length.
  28446. @return the number of bytes read including the (longest) newline
  28447. found.
  28448. @throws IOException if the underlying stream throws]]>
  28449. </doc>
  28450. </method>
  28451. <method name="readLine" return="int"
  28452. abstract="false" native="false" synchronized="false"
  28453. static="false" final="false" visibility="public"
  28454. deprecated="not deprecated">
  28455. <param name="str" type="org.apache.hadoop.io.Text"/>
  28456. <param name="maxLineLength" type="int"/>
  28457. <exception name="IOException" type="java.io.IOException"/>
  28458. <doc>
  28459. <![CDATA[Read from the InputStream into the given Text.
  28460. @param str the object to store the given line
  28461. @param maxLineLength the maximum number of bytes to store into str.
  28462. @return the number of bytes read including the newline
  28463. @throws IOException if the underlying stream throws]]>
  28464. </doc>
  28465. </method>
  28466. <method name="readLine" return="int"
  28467. abstract="false" native="false" synchronized="false"
  28468. static="false" final="false" visibility="public"
  28469. deprecated="not deprecated">
  28470. <param name="str" type="org.apache.hadoop.io.Text"/>
  28471. <exception name="IOException" type="java.io.IOException"/>
  28472. <doc>
  28473. <![CDATA[Read from the InputStream into the given Text.
  28474. @param str the object to store the given line
  28475. @return the number of bytes read including the newline
  28476. @throws IOException if the underlying stream throws]]>
  28477. </doc>
  28478. </method>
  28479. <doc>
  28480. <![CDATA[A class that provides a line reader from an input stream.]]>
  28481. </doc>
  28482. </class>
  28483. <!-- end class org.apache.hadoop.util.LineReader -->
  28484. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  28485. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  28486. abstract="false"
  28487. static="false" final="false" visibility="public"
  28488. deprecated="not deprecated">
  28489. <constructor name="LinuxMemoryCalculatorPlugin"
  28490. static="false" final="false" visibility="public"
  28491. deprecated="not deprecated">
  28492. </constructor>
  28493. <method name="getPhysicalMemorySize" return="long"
  28494. abstract="false" native="false" synchronized="false"
  28495. static="false" final="false" visibility="public"
  28496. deprecated="not deprecated">
  28497. <doc>
  28498. <![CDATA[{@inheritDoc}]]>
  28499. </doc>
  28500. </method>
  28501. <method name="getVirtualMemorySize" return="long"
  28502. abstract="false" native="false" synchronized="false"
  28503. static="false" final="false" visibility="public"
  28504. deprecated="not deprecated">
  28505. <doc>
  28506. <![CDATA[{@inheritDoc}]]>
  28507. </doc>
  28508. </method>
  28509. <method name="main"
  28510. abstract="false" native="false" synchronized="false"
  28511. static="true" final="false" visibility="public"
  28512. deprecated="not deprecated">
  28513. <param name="args" type="java.lang.String[]"/>
  28514. <doc>
  28515. <![CDATA[Test the {@link LinuxMemoryCalculatorPlugin}
  28516. @param args]]>
  28517. </doc>
  28518. </method>
  28519. <doc>
  28520. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.]]>
  28521. </doc>
  28522. </class>
  28523. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  28524. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  28525. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  28526. abstract="true"
  28527. static="false" final="false" visibility="public"
  28528. deprecated="not deprecated">
  28529. <constructor name="MemoryCalculatorPlugin"
  28530. static="false" final="false" visibility="public"
  28531. deprecated="not deprecated">
  28532. </constructor>
  28533. <method name="getVirtualMemorySize" return="long"
  28534. abstract="true" native="false" synchronized="false"
  28535. static="false" final="false" visibility="public"
  28536. deprecated="not deprecated">
  28537. <doc>
  28538. <![CDATA[Obtain the total size of the virtual memory present in the system.
  28539. @return virtual memory size in bytes.]]>
  28540. </doc>
  28541. </method>
  28542. <method name="getPhysicalMemorySize" return="long"
  28543. abstract="true" native="false" synchronized="false"
  28544. static="false" final="false" visibility="public"
  28545. deprecated="not deprecated">
  28546. <doc>
  28547. <![CDATA[Obtain the total size of the physical memory present in the system.
  28548. @return physical memory size bytes.]]>
  28549. </doc>
  28550. </method>
  28551. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  28552. abstract="false" native="false" synchronized="false"
  28553. static="true" final="false" visibility="public"
  28554. deprecated="not deprecated">
  28555. <param name="clazz" type="java.lang.Class"/>
  28556. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28557. <doc>
  28558. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  28559. class name is null, this method will try and return a memory calculator
  28560. plugin available for this system.
  28561. @param clazz class-name
  28562. @param conf configure the plugin with this.
  28563. @return MemoryCalculatorPlugin]]>
  28564. </doc>
  28565. </method>
  28566. <doc>
  28567. <![CDATA[Plugin to calculate virtual and physical memories on the system.]]>
  28568. </doc>
  28569. </class>
  28570. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  28571. <!-- start class org.apache.hadoop.util.MergeSort -->
  28572. <class name="MergeSort" extends="java.lang.Object"
  28573. abstract="false"
  28574. static="false" final="false" visibility="public"
  28575. deprecated="not deprecated">
  28576. <constructor name="MergeSort" type="java.util.Comparator"
  28577. static="false" final="false" visibility="public"
  28578. deprecated="not deprecated">
  28579. </constructor>
  28580. <method name="mergeSort"
  28581. abstract="false" native="false" synchronized="false"
  28582. static="false" final="false" visibility="public"
  28583. deprecated="not deprecated">
  28584. <param name="src" type="int[]"/>
  28585. <param name="dest" type="int[]"/>
  28586. <param name="low" type="int"/>
  28587. <param name="high" type="int"/>
  28588. </method>
  28589. <doc>
  28590. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  28591. </doc>
  28592. </class>
  28593. <!-- end class org.apache.hadoop.util.MergeSort -->
  28594. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  28595. <class name="NativeCodeLoader" extends="java.lang.Object"
  28596. abstract="false"
  28597. static="false" final="false" visibility="public"
  28598. deprecated="not deprecated">
  28599. <constructor name="NativeCodeLoader"
  28600. static="false" final="false" visibility="public"
  28601. deprecated="not deprecated">
  28602. </constructor>
  28603. <method name="isNativeCodeLoaded" return="boolean"
  28604. abstract="false" native="false" synchronized="false"
  28605. static="true" final="false" visibility="public"
  28606. deprecated="not deprecated">
  28607. <doc>
  28608. <![CDATA[Check if native-hadoop code is loaded for this platform.
  28609. @return <code>true</code> if native-hadoop is loaded,
  28610. else <code>false</code>]]>
  28611. </doc>
  28612. </method>
  28613. <method name="getLoadNativeLibraries" return="boolean"
  28614. abstract="false" native="false" synchronized="false"
  28615. static="false" final="false" visibility="public"
  28616. deprecated="not deprecated">
  28617. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28618. <doc>
  28619. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  28620. @param conf configuration
  28621. @return <code>true</code> if native hadoop libraries, if present, can be
  28622. used for this job; <code>false</code> otherwise.]]>
  28623. </doc>
  28624. </method>
  28625. <method name="setLoadNativeLibraries"
  28626. abstract="false" native="false" synchronized="false"
  28627. static="false" final="false" visibility="public"
  28628. deprecated="not deprecated">
  28629. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28630. <param name="loadNativeLibraries" type="boolean"/>
  28631. <doc>
  28632. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  28633. @param conf configuration
  28634. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  28635. </doc>
  28636. </method>
  28637. <doc>
  28638. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  28639. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  28640. or the default java implementations where appropriate.]]>
  28641. </doc>
  28642. </class>
  28643. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  28644. <!-- start class org.apache.hadoop.util.PlatformName -->
  28645. <class name="PlatformName" extends="java.lang.Object"
  28646. abstract="false"
  28647. static="false" final="false" visibility="public"
  28648. deprecated="not deprecated">
  28649. <constructor name="PlatformName"
  28650. static="false" final="false" visibility="public"
  28651. deprecated="not deprecated">
  28652. </constructor>
  28653. <method name="getPlatformName" return="java.lang.String"
  28654. abstract="false" native="false" synchronized="false"
  28655. static="true" final="false" visibility="public"
  28656. deprecated="not deprecated">
  28657. <doc>
  28658. <![CDATA[Get the complete platform as per the java-vm.
  28659. @return returns the complete platform as per the java-vm.]]>
  28660. </doc>
  28661. </method>
  28662. <method name="main"
  28663. abstract="false" native="false" synchronized="false"
  28664. static="true" final="false" visibility="public"
  28665. deprecated="not deprecated">
  28666. <param name="args" type="java.lang.String[]"/>
  28667. </method>
  28668. <doc>
  28669. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  28670. </doc>
  28671. </class>
  28672. <!-- end class org.apache.hadoop.util.PlatformName -->
  28673. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  28674. <class name="PrintJarMainClass" extends="java.lang.Object"
  28675. abstract="false"
  28676. static="false" final="false" visibility="public"
  28677. deprecated="not deprecated">
  28678. <constructor name="PrintJarMainClass"
  28679. static="false" final="false" visibility="public"
  28680. deprecated="not deprecated">
  28681. </constructor>
  28682. <method name="main"
  28683. abstract="false" native="false" synchronized="false"
  28684. static="true" final="false" visibility="public"
  28685. deprecated="not deprecated">
  28686. <param name="args" type="java.lang.String[]"/>
  28687. <doc>
  28688. <![CDATA[@param args]]>
  28689. </doc>
  28690. </method>
  28691. <doc>
  28692. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  28693. </doc>
  28694. </class>
  28695. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  28696. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  28697. <class name="PriorityQueue" extends="java.lang.Object"
  28698. abstract="true"
  28699. static="false" final="false" visibility="public"
  28700. deprecated="not deprecated">
  28701. <constructor name="PriorityQueue"
  28702. static="false" final="false" visibility="public"
  28703. deprecated="not deprecated">
  28704. </constructor>
  28705. <method name="lessThan" return="boolean"
  28706. abstract="true" native="false" synchronized="false"
  28707. static="false" final="false" visibility="protected"
  28708. deprecated="not deprecated">
  28709. <param name="a" type="java.lang.Object"/>
  28710. <param name="b" type="java.lang.Object"/>
  28711. <doc>
  28712. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  28713. must define this one method.]]>
  28714. </doc>
  28715. </method>
  28716. <method name="initialize"
  28717. abstract="false" native="false" synchronized="false"
  28718. static="false" final="true" visibility="protected"
  28719. deprecated="not deprecated">
  28720. <param name="maxSize" type="int"/>
  28721. <doc>
  28722. <![CDATA[Subclass constructors must call this.]]>
  28723. </doc>
  28724. </method>
  28725. <method name="put"
  28726. abstract="false" native="false" synchronized="false"
  28727. static="false" final="true" visibility="public"
  28728. deprecated="not deprecated">
  28729. <param name="element" type="java.lang.Object"/>
  28730. <doc>
  28731. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  28732. If one tries to add more objects than maxSize from initialize
  28733. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  28734. </doc>
  28735. </method>
  28736. <method name="insert" return="boolean"
  28737. abstract="false" native="false" synchronized="false"
  28738. static="false" final="false" visibility="public"
  28739. deprecated="not deprecated">
  28740. <param name="element" type="java.lang.Object"/>
  28741. <doc>
  28742. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  28743. the PriorityQueue is not full, or not lessThan(element, top()).
  28744. @param element
  28745. @return true if element is added, false otherwise.]]>
  28746. </doc>
  28747. </method>
  28748. <method name="top" return="java.lang.Object"
  28749. abstract="false" native="false" synchronized="false"
  28750. static="false" final="true" visibility="public"
  28751. deprecated="not deprecated">
  28752. <doc>
  28753. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  28754. </doc>
  28755. </method>
  28756. <method name="pop" return="java.lang.Object"
  28757. abstract="false" native="false" synchronized="false"
  28758. static="false" final="true" visibility="public"
  28759. deprecated="not deprecated">
  28760. <doc>
  28761. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  28762. time.]]>
  28763. </doc>
  28764. </method>
  28765. <method name="adjustTop"
  28766. abstract="false" native="false" synchronized="false"
  28767. static="false" final="true" visibility="public"
  28768. deprecated="not deprecated">
  28769. <doc>
  28770. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  28771. worst case, but it's at least twice as fast to <pre>
  28772. { pq.top().change(); pq.adjustTop(); }
  28773. </pre> instead of <pre>
  28774. { o = pq.pop(); o.change(); pq.push(o); }
  28775. </pre>]]>
  28776. </doc>
  28777. </method>
  28778. <method name="size" return="int"
  28779. abstract="false" native="false" synchronized="false"
  28780. static="false" final="true" visibility="public"
  28781. deprecated="not deprecated">
  28782. <doc>
  28783. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  28784. </doc>
  28785. </method>
  28786. <method name="clear"
  28787. abstract="false" native="false" synchronized="false"
  28788. static="false" final="true" visibility="public"
  28789. deprecated="not deprecated">
  28790. <doc>
  28791. <![CDATA[Removes all entries from the PriorityQueue.]]>
  28792. </doc>
  28793. </method>
  28794. <doc>
  28795. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  28796. least element can always be found in constant time. Put()'s and pop()'s
  28797. require log(size) time.]]>
  28798. </doc>
  28799. </class>
  28800. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  28801. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  28802. <class name="ProcfsBasedProcessTree" extends="java.lang.Object"
  28803. abstract="false"
  28804. static="false" final="false" visibility="public"
  28805. deprecated="not deprecated">
  28806. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  28807. static="false" final="false" visibility="public"
  28808. deprecated="not deprecated">
  28809. </constructor>
  28810. <method name="setSigKillInterval"
  28811. abstract="false" native="false" synchronized="false"
  28812. static="false" final="false" visibility="public"
  28813. deprecated="not deprecated">
  28814. <param name="interval" type="long"/>
  28815. </method>
  28816. <method name="isAvailable" return="boolean"
  28817. abstract="false" native="false" synchronized="false"
  28818. static="true" final="false" visibility="public"
  28819. deprecated="not deprecated">
  28820. <doc>
  28821. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  28822. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  28823. </doc>
  28824. </method>
  28825. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  28826. abstract="false" native="false" synchronized="false"
  28827. static="false" final="false" visibility="public"
  28828. deprecated="not deprecated">
  28829. <doc>
  28830. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  28831. an empty tree will be returned.
  28832. @return the process-tree with latest state.]]>
  28833. </doc>
  28834. </method>
  28835. <method name="isAlive" return="boolean"
  28836. abstract="false" native="false" synchronized="false"
  28837. static="false" final="false" visibility="public"
  28838. deprecated="not deprecated">
  28839. <doc>
  28840. <![CDATA[Is the process-tree alive? Currently we care only about the status of the
  28841. root-process.
  28842. @return true if the process-true is alive, false otherwise.]]>
  28843. </doc>
  28844. </method>
  28845. <method name="destroy"
  28846. abstract="false" native="false" synchronized="false"
  28847. static="false" final="false" visibility="public"
  28848. deprecated="not deprecated">
  28849. <doc>
  28850. <![CDATA[Destroy the process-tree. Currently we only make sure the root process is
  28851. gone. It is the responsibility of the root process to make sure that all
  28852. its descendants are cleaned up.]]>
  28853. </doc>
  28854. </method>
  28855. <method name="getCumulativeVmem" return="long"
  28856. abstract="false" native="false" synchronized="false"
  28857. static="false" final="false" visibility="public"
  28858. deprecated="not deprecated">
  28859. <doc>
  28860. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  28861. process-tree.
  28862. @return cumulative virtual memory used by the process-tree in bytes.]]>
  28863. </doc>
  28864. </method>
  28865. <method name="getPidFromPidFile" return="java.lang.String"
  28866. abstract="false" native="false" synchronized="false"
  28867. static="true" final="false" visibility="public"
  28868. deprecated="not deprecated">
  28869. <param name="pidFileName" type="java.lang.String"/>
  28870. <doc>
  28871. <![CDATA[Get PID from a pid-file.
  28872. @param pidFileName
  28873. Name of the pid-file.
  28874. @return the PID string read from the pid-file. Returns null if the
  28875. pidFileName points to a non-existing file or if read fails from the
  28876. file.]]>
  28877. </doc>
  28878. </method>
  28879. <method name="toString" return="java.lang.String"
  28880. abstract="false" native="false" synchronized="false"
  28881. static="false" final="false" visibility="public"
  28882. deprecated="not deprecated">
  28883. <doc>
  28884. <![CDATA[Returns a string printing PIDs of process present in the
  28885. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  28886. </doc>
  28887. </method>
  28888. <field name="DEFAULT_SLEEPTIME_BEFORE_SIGKILL" type="long"
  28889. transient="false" volatile="false"
  28890. static="true" final="true" visibility="public"
  28891. deprecated="not deprecated">
  28892. </field>
  28893. <doc>
  28894. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  28895. </doc>
  28896. </class>
  28897. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  28898. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  28899. <class name="ProgramDriver" extends="java.lang.Object"
  28900. abstract="false"
  28901. static="false" final="false" visibility="public"
  28902. deprecated="not deprecated">
  28903. <constructor name="ProgramDriver"
  28904. static="false" final="false" visibility="public"
  28905. deprecated="not deprecated">
  28906. </constructor>
  28907. <method name="addClass"
  28908. abstract="false" native="false" synchronized="false"
  28909. static="false" final="false" visibility="public"
  28910. deprecated="not deprecated">
  28911. <param name="name" type="java.lang.String"/>
  28912. <param name="mainClass" type="java.lang.Class"/>
  28913. <param name="description" type="java.lang.String"/>
  28914. <exception name="Throwable" type="java.lang.Throwable"/>
  28915. <doc>
  28916. <![CDATA[This is the method that adds the classed to the repository
  28917. @param name The name of the string you want the class instance to be called with
  28918. @param mainClass The class that you want to add to the repository
  28919. @param description The description of the class
  28920. @throws NoSuchMethodException
  28921. @throws SecurityException]]>
  28922. </doc>
  28923. </method>
  28924. <method name="driver"
  28925. abstract="false" native="false" synchronized="false"
  28926. static="false" final="false" visibility="public"
  28927. deprecated="not deprecated">
  28928. <param name="args" type="java.lang.String[]"/>
  28929. <exception name="Throwable" type="java.lang.Throwable"/>
  28930. <doc>
  28931. <![CDATA[This is a driver for the example programs.
  28932. It looks at the first command line argument and tries to find an
  28933. example program with that name.
  28934. If it is found, it calls the main method in that class with the rest
  28935. of the command line arguments.
  28936. @param args The argument from the user. args[0] is the command to run.
  28937. @throws NoSuchMethodException
  28938. @throws SecurityException
  28939. @throws IllegalAccessException
  28940. @throws IllegalArgumentException
  28941. @throws Throwable Anything thrown by the example program's main]]>
  28942. </doc>
  28943. </method>
  28944. <doc>
  28945. <![CDATA[A driver that is used to run programs added to it]]>
  28946. </doc>
  28947. </class>
  28948. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  28949. <!-- start class org.apache.hadoop.util.Progress -->
  28950. <class name="Progress" extends="java.lang.Object"
  28951. abstract="false"
  28952. static="false" final="false" visibility="public"
  28953. deprecated="not deprecated">
  28954. <constructor name="Progress"
  28955. static="false" final="false" visibility="public"
  28956. deprecated="not deprecated">
  28957. <doc>
  28958. <![CDATA[Creates a new root node.]]>
  28959. </doc>
  28960. </constructor>
  28961. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  28962. abstract="false" native="false" synchronized="false"
  28963. static="false" final="false" visibility="public"
  28964. deprecated="not deprecated">
  28965. <param name="status" type="java.lang.String"/>
  28966. <doc>
  28967. <![CDATA[Adds a named node to the tree.]]>
  28968. </doc>
  28969. </method>
  28970. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  28971. abstract="false" native="false" synchronized="true"
  28972. static="false" final="false" visibility="public"
  28973. deprecated="not deprecated">
  28974. <doc>
  28975. <![CDATA[Adds a node to the tree.]]>
  28976. </doc>
  28977. </method>
  28978. <method name="startNextPhase"
  28979. abstract="false" native="false" synchronized="true"
  28980. static="false" final="false" visibility="public"
  28981. deprecated="not deprecated">
  28982. <doc>
  28983. <![CDATA[Called during execution to move to the next phase at this level in the
  28984. tree.]]>
  28985. </doc>
  28986. </method>
  28987. <method name="phase" return="org.apache.hadoop.util.Progress"
  28988. abstract="false" native="false" synchronized="true"
  28989. static="false" final="false" visibility="public"
  28990. deprecated="not deprecated">
  28991. <doc>
  28992. <![CDATA[Returns the current sub-node executing.]]>
  28993. </doc>
  28994. </method>
  28995. <method name="complete"
  28996. abstract="false" native="false" synchronized="false"
  28997. static="false" final="false" visibility="public"
  28998. deprecated="not deprecated">
  28999. <doc>
  29000. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  29001. </doc>
  29002. </method>
  29003. <method name="set"
  29004. abstract="false" native="false" synchronized="true"
  29005. static="false" final="false" visibility="public"
  29006. deprecated="not deprecated">
  29007. <param name="progress" type="float"/>
  29008. <doc>
  29009. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  29010. </doc>
  29011. </method>
  29012. <method name="get" return="float"
  29013. abstract="false" native="false" synchronized="true"
  29014. static="false" final="false" visibility="public"
  29015. deprecated="not deprecated">
  29016. <doc>
  29017. <![CDATA[Returns the overall progress of the root.]]>
  29018. </doc>
  29019. </method>
  29020. <method name="setStatus"
  29021. abstract="false" native="false" synchronized="true"
  29022. static="false" final="false" visibility="public"
  29023. deprecated="not deprecated">
  29024. <param name="status" type="java.lang.String"/>
  29025. </method>
  29026. <method name="toString" return="java.lang.String"
  29027. abstract="false" native="false" synchronized="false"
  29028. static="false" final="false" visibility="public"
  29029. deprecated="not deprecated">
  29030. </method>
  29031. <doc>
  29032. <![CDATA[Utility to assist with generation of progress reports. Applications build
  29033. a hierarchy of {@link Progress} instances, each modelling a phase of
  29034. execution. The root is constructed with {@link #Progress()}. Nodes for
  29035. sub-phases are created by calling {@link #addPhase()}.]]>
  29036. </doc>
  29037. </class>
  29038. <!-- end class org.apache.hadoop.util.Progress -->
  29039. <!-- start interface org.apache.hadoop.util.Progressable -->
  29040. <interface name="Progressable" abstract="true"
  29041. static="false" final="false" visibility="public"
  29042. deprecated="not deprecated">
  29043. <method name="progress"
  29044. abstract="false" native="false" synchronized="false"
  29045. static="false" final="false" visibility="public"
  29046. deprecated="not deprecated">
  29047. <doc>
  29048. <![CDATA[Report progress to the Hadoop framework.]]>
  29049. </doc>
  29050. </method>
  29051. <doc>
  29052. <![CDATA[A facility for reporting progress.
  29053. <p>Clients and/or applications can use the provided <code>Progressable</code>
  29054. to explicitly report progress to the Hadoop framework. This is especially
  29055. important for operations which take an insignificant amount of time since,
  29056. in-lieu of the reported progress, the framework has to assume that an error
  29057. has occured and time-out the operation.</p>]]>
  29058. </doc>
  29059. </interface>
  29060. <!-- end interface org.apache.hadoop.util.Progressable -->
  29061. <!-- start class org.apache.hadoop.util.QuickSort -->
  29062. <class name="QuickSort" extends="java.lang.Object"
  29063. abstract="false"
  29064. static="false" final="true" visibility="public"
  29065. deprecated="not deprecated">
  29066. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  29067. <constructor name="QuickSort"
  29068. static="false" final="false" visibility="public"
  29069. deprecated="not deprecated">
  29070. </constructor>
  29071. <method name="getMaxDepth" return="int"
  29072. abstract="false" native="false" synchronized="false"
  29073. static="true" final="false" visibility="protected"
  29074. deprecated="not deprecated">
  29075. <param name="x" type="int"/>
  29076. <doc>
  29077. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  29078. Returns 2 * ceil(log(n)).]]>
  29079. </doc>
  29080. </method>
  29081. <method name="sort"
  29082. abstract="false" native="false" synchronized="false"
  29083. static="false" final="false" visibility="public"
  29084. deprecated="not deprecated">
  29085. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  29086. <param name="p" type="int"/>
  29087. <param name="r" type="int"/>
  29088. <doc>
  29089. <![CDATA[Sort the given range of items using quick sort.
  29090. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  29091. then switch to {@link HeapSort}.]]>
  29092. </doc>
  29093. </method>
  29094. <method name="sort"
  29095. abstract="false" native="false" synchronized="false"
  29096. static="false" final="false" visibility="public"
  29097. deprecated="not deprecated">
  29098. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  29099. <param name="p" type="int"/>
  29100. <param name="r" type="int"/>
  29101. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  29102. <doc>
  29103. <![CDATA[{@inheritDoc}]]>
  29104. </doc>
  29105. </method>
  29106. <doc>
  29107. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  29108. </doc>
  29109. </class>
  29110. <!-- end class org.apache.hadoop.util.QuickSort -->
  29111. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  29112. <class name="ReflectionUtils" extends="java.lang.Object"
  29113. abstract="false"
  29114. static="false" final="false" visibility="public"
  29115. deprecated="not deprecated">
  29116. <constructor name="ReflectionUtils"
  29117. static="false" final="false" visibility="public"
  29118. deprecated="not deprecated">
  29119. </constructor>
  29120. <method name="setConf"
  29121. abstract="false" native="false" synchronized="false"
  29122. static="true" final="false" visibility="public"
  29123. deprecated="not deprecated">
  29124. <param name="theObject" type="java.lang.Object"/>
  29125. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29126. <doc>
  29127. <![CDATA[Check and set 'configuration' if necessary.
  29128. @param theObject object for which to set configuration
  29129. @param conf Configuration]]>
  29130. </doc>
  29131. </method>
  29132. <method name="newInstance" return="java.lang.Object"
  29133. abstract="false" native="false" synchronized="false"
  29134. static="true" final="false" visibility="public"
  29135. deprecated="not deprecated">
  29136. <param name="theClass" type="java.lang.Class"/>
  29137. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29138. <doc>
  29139. <![CDATA[Create an object for the given class and initialize it from conf
  29140. @param theClass class of which an object is created
  29141. @param conf Configuration
  29142. @return a new object]]>
  29143. </doc>
  29144. </method>
  29145. <method name="setContentionTracing"
  29146. abstract="false" native="false" synchronized="false"
  29147. static="true" final="false" visibility="public"
  29148. deprecated="not deprecated">
  29149. <param name="val" type="boolean"/>
  29150. </method>
  29151. <method name="printThreadInfo"
  29152. abstract="false" native="false" synchronized="false"
  29153. static="true" final="false" visibility="public"
  29154. deprecated="not deprecated">
  29155. <param name="stream" type="java.io.PrintWriter"/>
  29156. <param name="title" type="java.lang.String"/>
  29157. <doc>
  29158. <![CDATA[Print all of the thread's information and stack traces.
  29159. @param stream the stream to
  29160. @param title a string title for the stack trace]]>
  29161. </doc>
  29162. </method>
  29163. <method name="logThreadInfo"
  29164. abstract="false" native="false" synchronized="false"
  29165. static="true" final="false" visibility="public"
  29166. deprecated="not deprecated">
  29167. <param name="log" type="org.apache.commons.logging.Log"/>
  29168. <param name="title" type="java.lang.String"/>
  29169. <param name="minInterval" type="long"/>
  29170. <doc>
  29171. <![CDATA[Log the current thread stacks at INFO level.
  29172. @param log the logger that logs the stack trace
  29173. @param title a descriptive title for the call stacks
  29174. @param minInterval the minimum time from the last]]>
  29175. </doc>
  29176. </method>
  29177. <method name="getClass" return="java.lang.Class"
  29178. abstract="false" native="false" synchronized="false"
  29179. static="true" final="false" visibility="public"
  29180. deprecated="not deprecated">
  29181. <param name="o" type="java.lang.Object"/>
  29182. <doc>
  29183. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  29184. @param o object whose correctly-typed <code>Class</code> is to be obtained
  29185. @return the correctly typed <code>Class</code> of the given object.]]>
  29186. </doc>
  29187. </method>
  29188. <method name="copy" return="java.lang.Object"
  29189. abstract="false" native="false" synchronized="false"
  29190. static="true" final="false" visibility="public"
  29191. deprecated="not deprecated">
  29192. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29193. <param name="src" type="java.lang.Object"/>
  29194. <param name="dst" type="java.lang.Object"/>
  29195. <exception name="IOException" type="java.io.IOException"/>
  29196. <doc>
  29197. <![CDATA[Make a copy of the writable object using serialization to a buffer
  29198. @param dst the object to copy from
  29199. @param src the object to copy into, which is destroyed
  29200. @throws IOException]]>
  29201. </doc>
  29202. </method>
  29203. <method name="cloneWritableInto"
  29204. abstract="false" native="false" synchronized="false"
  29205. static="true" final="false" visibility="public"
  29206. deprecated="not deprecated">
  29207. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  29208. <param name="src" type="org.apache.hadoop.io.Writable"/>
  29209. <exception name="IOException" type="java.io.IOException"/>
  29210. </method>
  29211. <doc>
  29212. <![CDATA[General reflection utils]]>
  29213. </doc>
  29214. </class>
  29215. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  29216. <!-- start class org.apache.hadoop.util.RunJar -->
  29217. <class name="RunJar" extends="java.lang.Object"
  29218. abstract="false"
  29219. static="false" final="false" visibility="public"
  29220. deprecated="not deprecated">
  29221. <constructor name="RunJar"
  29222. static="false" final="false" visibility="public"
  29223. deprecated="not deprecated">
  29224. </constructor>
  29225. <method name="unJar"
  29226. abstract="false" native="false" synchronized="false"
  29227. static="true" final="false" visibility="public"
  29228. deprecated="not deprecated">
  29229. <param name="jarFile" type="java.io.File"/>
  29230. <param name="toDir" type="java.io.File"/>
  29231. <exception name="IOException" type="java.io.IOException"/>
  29232. <doc>
  29233. <![CDATA[Unpack a jar file into a directory.]]>
  29234. </doc>
  29235. </method>
  29236. <method name="main"
  29237. abstract="false" native="false" synchronized="false"
  29238. static="true" final="false" visibility="public"
  29239. deprecated="not deprecated">
  29240. <param name="args" type="java.lang.String[]"/>
  29241. <exception name="Throwable" type="java.lang.Throwable"/>
  29242. <doc>
  29243. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  29244. then it must be provided on the command line.]]>
  29245. </doc>
  29246. </method>
  29247. <doc>
  29248. <![CDATA[Run a Hadoop job jar.]]>
  29249. </doc>
  29250. </class>
  29251. <!-- end class org.apache.hadoop.util.RunJar -->
  29252. <!-- start class org.apache.hadoop.util.ServletUtil -->
  29253. <class name="ServletUtil" extends="java.lang.Object"
  29254. abstract="false"
  29255. static="false" final="false" visibility="public"
  29256. deprecated="not deprecated">
  29257. <constructor name="ServletUtil"
  29258. static="false" final="false" visibility="public"
  29259. deprecated="not deprecated">
  29260. </constructor>
  29261. <method name="initHTML" return="java.io.PrintWriter"
  29262. abstract="false" native="false" synchronized="false"
  29263. static="true" final="false" visibility="public"
  29264. deprecated="not deprecated">
  29265. <param name="response" type="javax.servlet.ServletResponse"/>
  29266. <param name="title" type="java.lang.String"/>
  29267. <exception name="IOException" type="java.io.IOException"/>
  29268. <doc>
  29269. <![CDATA[Initial HTML header]]>
  29270. </doc>
  29271. </method>
  29272. <method name="getParameter" return="java.lang.String"
  29273. abstract="false" native="false" synchronized="false"
  29274. static="true" final="false" visibility="public"
  29275. deprecated="not deprecated">
  29276. <param name="request" type="javax.servlet.ServletRequest"/>
  29277. <param name="name" type="java.lang.String"/>
  29278. <doc>
  29279. <![CDATA[Get a parameter from a ServletRequest.
  29280. Return null if the parameter contains only white spaces.]]>
  29281. </doc>
  29282. </method>
  29283. <method name="htmlFooter" return="java.lang.String"
  29284. abstract="false" native="false" synchronized="false"
  29285. static="true" final="false" visibility="public"
  29286. deprecated="not deprecated">
  29287. <doc>
  29288. <![CDATA[HTML footer to be added in the jsps.
  29289. @return the HTML footer.]]>
  29290. </doc>
  29291. </method>
  29292. <method name="percentageGraph" return="java.lang.String"
  29293. abstract="false" native="false" synchronized="false"
  29294. static="true" final="false" visibility="public"
  29295. deprecated="not deprecated">
  29296. <param name="perc" type="int"/>
  29297. <param name="width" type="int"/>
  29298. <exception name="IOException" type="java.io.IOException"/>
  29299. <doc>
  29300. <![CDATA[Generate the percentage graph and returns HTML representation string
  29301. of the same.
  29302. @param perc The percentage value for which graph is to be generated
  29303. @param width The width of the display table
  29304. @return HTML String representation of the percentage graph
  29305. @throws IOException]]>
  29306. </doc>
  29307. </method>
  29308. <method name="percentageGraph" return="java.lang.String"
  29309. abstract="false" native="false" synchronized="false"
  29310. static="true" final="false" visibility="public"
  29311. deprecated="not deprecated">
  29312. <param name="perc" type="float"/>
  29313. <param name="width" type="int"/>
  29314. <exception name="IOException" type="java.io.IOException"/>
  29315. <doc>
  29316. <![CDATA[Generate the percentage graph and returns HTML representation string
  29317. of the same.
  29318. @param perc The percentage value for which graph is to be generated
  29319. @param width The width of the display table
  29320. @return HTML String representation of the percentage graph
  29321. @throws IOException]]>
  29322. </doc>
  29323. </method>
  29324. <field name="HTML_TAIL" type="java.lang.String"
  29325. transient="false" volatile="false"
  29326. static="true" final="true" visibility="public"
  29327. deprecated="not deprecated">
  29328. </field>
  29329. </class>
  29330. <!-- end class org.apache.hadoop.util.ServletUtil -->
  29331. <!-- start class org.apache.hadoop.util.Shell -->
  29332. <class name="Shell" extends="java.lang.Object"
  29333. abstract="true"
  29334. static="false" final="false" visibility="public"
  29335. deprecated="not deprecated">
  29336. <constructor name="Shell"
  29337. static="false" final="false" visibility="public"
  29338. deprecated="not deprecated">
  29339. </constructor>
  29340. <constructor name="Shell" type="long"
  29341. static="false" final="false" visibility="public"
  29342. deprecated="not deprecated">
  29343. <doc>
  29344. <![CDATA[@param interval the minimum duration to wait before re-executing the
  29345. command.]]>
  29346. </doc>
  29347. </constructor>
  29348. <method name="getGROUPS_COMMAND" return="java.lang.String[]"
  29349. abstract="false" native="false" synchronized="false"
  29350. static="true" final="false" visibility="public"
  29351. deprecated="not deprecated">
  29352. <doc>
  29353. <![CDATA[a Unix command to get the current user's groups list]]>
  29354. </doc>
  29355. </method>
  29356. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  29357. abstract="false" native="false" synchronized="false"
  29358. static="true" final="false" visibility="public"
  29359. deprecated="not deprecated">
  29360. <doc>
  29361. <![CDATA[Return a Unix command to get permission information.]]>
  29362. </doc>
  29363. </method>
  29364. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  29365. abstract="false" native="false" synchronized="false"
  29366. static="true" final="false" visibility="public"
  29367. deprecated="not deprecated">
  29368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29369. <doc>
  29370. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  29371. to a given child process. This is only relevant when we are forking a
  29372. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  29373. {@link org.apache.hadoop.mapred.Reducer} implementations
  29374. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  29375. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  29376. It also checks to ensure that we are running on a *nix platform else
  29377. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  29378. @param conf configuration
  29379. @return a <code>String[]</code> with the ulimit command arguments or
  29380. <code>null</code> if we are running on a non *nix platform or
  29381. if the limit is unspecified.]]>
  29382. </doc>
  29383. </method>
  29384. <method name="setEnvironment"
  29385. abstract="false" native="false" synchronized="false"
  29386. static="false" final="false" visibility="protected"
  29387. deprecated="not deprecated">
  29388. <param name="env" type="java.util.Map"/>
  29389. <doc>
  29390. <![CDATA[set the environment for the command
  29391. @param env Mapping of environment variables]]>
  29392. </doc>
  29393. </method>
  29394. <method name="setWorkingDirectory"
  29395. abstract="false" native="false" synchronized="false"
  29396. static="false" final="false" visibility="protected"
  29397. deprecated="not deprecated">
  29398. <param name="dir" type="java.io.File"/>
  29399. <doc>
  29400. <![CDATA[set the working directory
  29401. @param dir The directory where the command would be executed]]>
  29402. </doc>
  29403. </method>
  29404. <method name="run"
  29405. abstract="false" native="false" synchronized="false"
  29406. static="false" final="false" visibility="protected"
  29407. deprecated="not deprecated">
  29408. <exception name="IOException" type="java.io.IOException"/>
  29409. <doc>
  29410. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  29411. </doc>
  29412. </method>
  29413. <method name="getExecString" return="java.lang.String[]"
  29414. abstract="true" native="false" synchronized="false"
  29415. static="false" final="false" visibility="protected"
  29416. deprecated="not deprecated">
  29417. <doc>
  29418. <![CDATA[return an array containing the command name & its parameters]]>
  29419. </doc>
  29420. </method>
  29421. <method name="parseExecResult"
  29422. abstract="true" native="false" synchronized="false"
  29423. static="false" final="false" visibility="protected"
  29424. deprecated="not deprecated">
  29425. <param name="lines" type="java.io.BufferedReader"/>
  29426. <exception name="IOException" type="java.io.IOException"/>
  29427. <doc>
  29428. <![CDATA[Parse the execution result]]>
  29429. </doc>
  29430. </method>
  29431. <method name="getProcess" return="java.lang.Process"
  29432. abstract="false" native="false" synchronized="false"
  29433. static="false" final="false" visibility="public"
  29434. deprecated="not deprecated">
  29435. <doc>
  29436. <![CDATA[get the current sub-process executing the given command
  29437. @return process executing the command]]>
  29438. </doc>
  29439. </method>
  29440. <method name="getExitCode" return="int"
  29441. abstract="false" native="false" synchronized="false"
  29442. static="false" final="false" visibility="public"
  29443. deprecated="not deprecated">
  29444. <doc>
  29445. <![CDATA[get the exit code
  29446. @return the exit code of the process]]>
  29447. </doc>
  29448. </method>
  29449. <method name="execCommand" return="java.lang.String"
  29450. abstract="false" native="false" synchronized="false"
  29451. static="true" final="false" visibility="public"
  29452. deprecated="not deprecated">
  29453. <param name="cmd" type="java.lang.String[]"/>
  29454. <exception name="IOException" type="java.io.IOException"/>
  29455. <doc>
  29456. <![CDATA[Static method to execute a shell command.
  29457. Covers most of the simple cases without requiring the user to implement
  29458. the <code>Shell</code> interface.
  29459. @param cmd shell command to execute.
  29460. @return the output of the executed command.]]>
  29461. </doc>
  29462. </method>
  29463. <method name="execCommand" return="java.lang.String"
  29464. abstract="false" native="false" synchronized="false"
  29465. static="true" final="false" visibility="public"
  29466. deprecated="not deprecated">
  29467. <param name="env" type="java.util.Map"/>
  29468. <param name="cmd" type="java.lang.String[]"/>
  29469. <exception name="IOException" type="java.io.IOException"/>
  29470. <doc>
  29471. <![CDATA[Static method to execute a shell command.
  29472. Covers most of the simple cases without requiring the user to implement
  29473. the <code>Shell</code> interface.
  29474. @param env the map of environment key=value
  29475. @param cmd shell command to execute.
  29476. @return the output of the executed command.]]>
  29477. </doc>
  29478. </method>
  29479. <field name="LOG" type="org.apache.commons.logging.Log"
  29480. transient="false" volatile="false"
  29481. static="true" final="true" visibility="public"
  29482. deprecated="not deprecated">
  29483. </field>
  29484. <field name="USER_NAME_COMMAND" type="java.lang.String"
  29485. transient="false" volatile="false"
  29486. static="true" final="true" visibility="public"
  29487. deprecated="not deprecated">
  29488. <doc>
  29489. <![CDATA[a Unix command to get the current user's name]]>
  29490. </doc>
  29491. </field>
  29492. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  29493. transient="false" volatile="false"
  29494. static="true" final="true" visibility="public"
  29495. deprecated="not deprecated">
  29496. <doc>
  29497. <![CDATA[a Unix command to set permission]]>
  29498. </doc>
  29499. </field>
  29500. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  29501. transient="false" volatile="false"
  29502. static="true" final="true" visibility="public"
  29503. deprecated="not deprecated">
  29504. <doc>
  29505. <![CDATA[a Unix command to set owner]]>
  29506. </doc>
  29507. </field>
  29508. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  29509. transient="false" volatile="false"
  29510. static="true" final="true" visibility="public"
  29511. deprecated="not deprecated">
  29512. </field>
  29513. <field name="WINDOWS" type="boolean"
  29514. transient="false" volatile="false"
  29515. static="true" final="true" visibility="public"
  29516. deprecated="not deprecated">
  29517. <doc>
  29518. <![CDATA[Set to true on Windows platforms]]>
  29519. </doc>
  29520. </field>
  29521. <doc>
  29522. <![CDATA[A base class for running a Unix command.
  29523. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  29524. <code>df</code>. It also offers facilities to gate commands by
  29525. time-intervals.]]>
  29526. </doc>
  29527. </class>
  29528. <!-- end class org.apache.hadoop.util.Shell -->
  29529. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  29530. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  29531. abstract="false"
  29532. static="true" final="false" visibility="public"
  29533. deprecated="not deprecated">
  29534. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  29535. static="false" final="false" visibility="public"
  29536. deprecated="not deprecated">
  29537. </constructor>
  29538. <method name="getExitCode" return="int"
  29539. abstract="false" native="false" synchronized="false"
  29540. static="false" final="false" visibility="public"
  29541. deprecated="not deprecated">
  29542. </method>
  29543. <doc>
  29544. <![CDATA[This is an IOException with exit code added.]]>
  29545. </doc>
  29546. </class>
  29547. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  29548. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  29549. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  29550. abstract="false"
  29551. static="true" final="false" visibility="public"
  29552. deprecated="not deprecated">
  29553. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  29554. static="false" final="false" visibility="public"
  29555. deprecated="not deprecated">
  29556. </constructor>
  29557. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  29558. static="false" final="false" visibility="public"
  29559. deprecated="not deprecated">
  29560. </constructor>
  29561. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  29562. static="false" final="false" visibility="public"
  29563. deprecated="not deprecated">
  29564. </constructor>
  29565. <method name="execute"
  29566. abstract="false" native="false" synchronized="false"
  29567. static="false" final="false" visibility="public"
  29568. deprecated="not deprecated">
  29569. <exception name="IOException" type="java.io.IOException"/>
  29570. <doc>
  29571. <![CDATA[Execute the shell command.]]>
  29572. </doc>
  29573. </method>
  29574. <method name="getExecString" return="java.lang.String[]"
  29575. abstract="false" native="false" synchronized="false"
  29576. static="false" final="false" visibility="protected"
  29577. deprecated="not deprecated">
  29578. </method>
  29579. <method name="parseExecResult"
  29580. abstract="false" native="false" synchronized="false"
  29581. static="false" final="false" visibility="protected"
  29582. deprecated="not deprecated">
  29583. <param name="lines" type="java.io.BufferedReader"/>
  29584. <exception name="IOException" type="java.io.IOException"/>
  29585. </method>
  29586. <method name="getOutput" return="java.lang.String"
  29587. abstract="false" native="false" synchronized="false"
  29588. static="false" final="false" visibility="public"
  29589. deprecated="not deprecated">
  29590. <doc>
  29591. <![CDATA[Get the output of the shell command.]]>
  29592. </doc>
  29593. </method>
  29594. <method name="toString" return="java.lang.String"
  29595. abstract="false" native="false" synchronized="false"
  29596. static="false" final="false" visibility="public"
  29597. deprecated="not deprecated">
  29598. <doc>
  29599. <![CDATA[Returns the commands of this instance.
  29600. Arguments with spaces in are presented with quotes round; other
  29601. arguments are presented raw
  29602. @return a string representation of the object.]]>
  29603. </doc>
  29604. </method>
  29605. <doc>
  29606. <![CDATA[A simple shell command executor.
  29607. <code>ShellCommandExecutor</code>should be used in cases where the output
  29608. of the command needs no explicit parsing and where the command, working
  29609. directory and the environment remains unchanged. The output of the command
  29610. is stored as-is and is expected to be small.]]>
  29611. </doc>
  29612. </class>
  29613. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  29614. <!-- start class org.apache.hadoop.util.StringUtils -->
  29615. <class name="StringUtils" extends="java.lang.Object"
  29616. abstract="false"
  29617. static="false" final="false" visibility="public"
  29618. deprecated="not deprecated">
  29619. <constructor name="StringUtils"
  29620. static="false" final="false" visibility="public"
  29621. deprecated="not deprecated">
  29622. </constructor>
  29623. <method name="stringifyException" return="java.lang.String"
  29624. abstract="false" native="false" synchronized="false"
  29625. static="true" final="false" visibility="public"
  29626. deprecated="not deprecated">
  29627. <param name="e" type="java.lang.Throwable"/>
  29628. <doc>
  29629. <![CDATA[Make a string representation of the exception.
  29630. @param e The exception to stringify
  29631. @return A string with exception name and call stack.]]>
  29632. </doc>
  29633. </method>
  29634. <method name="simpleHostname" return="java.lang.String"
  29635. abstract="false" native="false" synchronized="false"
  29636. static="true" final="false" visibility="public"
  29637. deprecated="not deprecated">
  29638. <param name="fullHostname" type="java.lang.String"/>
  29639. <doc>
  29640. <![CDATA[Given a full hostname, return the word upto the first dot.
  29641. @param fullHostname the full hostname
  29642. @return the hostname to the first dot]]>
  29643. </doc>
  29644. </method>
  29645. <method name="humanReadableInt" return="java.lang.String"
  29646. abstract="false" native="false" synchronized="false"
  29647. static="true" final="false" visibility="public"
  29648. deprecated="not deprecated">
  29649. <param name="number" type="long"/>
  29650. <doc>
  29651. <![CDATA[Given an integer, return a string that is in an approximate, but human
  29652. readable format.
  29653. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  29654. @param number the number to format
  29655. @return a human readable form of the integer]]>
  29656. </doc>
  29657. </method>
  29658. <method name="formatPercent" return="java.lang.String"
  29659. abstract="false" native="false" synchronized="false"
  29660. static="true" final="false" visibility="public"
  29661. deprecated="not deprecated">
  29662. <param name="done" type="double"/>
  29663. <param name="digits" type="int"/>
  29664. <doc>
  29665. <![CDATA[Format a percentage for presentation to the user.
  29666. @param done the percentage to format (0.0 to 1.0)
  29667. @param digits the number of digits past the decimal point
  29668. @return a string representation of the percentage]]>
  29669. </doc>
  29670. </method>
  29671. <method name="arrayToString" return="java.lang.String"
  29672. abstract="false" native="false" synchronized="false"
  29673. static="true" final="false" visibility="public"
  29674. deprecated="not deprecated">
  29675. <param name="strs" type="java.lang.String[]"/>
  29676. <doc>
  29677. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  29678. @param strs Array of strings
  29679. @return Empty string if strs.length is 0, comma separated list of strings
  29680. otherwise]]>
  29681. </doc>
  29682. </method>
  29683. <method name="byteToHexString" return="java.lang.String"
  29684. abstract="false" native="false" synchronized="false"
  29685. static="true" final="false" visibility="public"
  29686. deprecated="not deprecated">
  29687. <param name="bytes" type="byte[]"/>
  29688. <param name="start" type="int"/>
  29689. <param name="end" type="int"/>
  29690. <doc>
  29691. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  29692. representation of the bytes
  29693. @param bytes
  29694. @param start start index, inclusively
  29695. @param end end index, exclusively
  29696. @return hex string representation of the byte array]]>
  29697. </doc>
  29698. </method>
  29699. <method name="byteToHexString" return="java.lang.String"
  29700. abstract="false" native="false" synchronized="false"
  29701. static="true" final="false" visibility="public"
  29702. deprecated="not deprecated">
  29703. <param name="bytes" type="byte[]"/>
  29704. <doc>
  29705. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  29706. </doc>
  29707. </method>
  29708. <method name="hexStringToByte" return="byte[]"
  29709. abstract="false" native="false" synchronized="false"
  29710. static="true" final="false" visibility="public"
  29711. deprecated="not deprecated">
  29712. <param name="hex" type="java.lang.String"/>
  29713. <doc>
  29714. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  29715. string
  29716. @param hex the hex String array
  29717. @return a byte array that is a hex string representation of the given
  29718. string. The size of the byte array is therefore hex.length/2]]>
  29719. </doc>
  29720. </method>
  29721. <method name="uriToString" return="java.lang.String"
  29722. abstract="false" native="false" synchronized="false"
  29723. static="true" final="false" visibility="public"
  29724. deprecated="not deprecated">
  29725. <param name="uris" type="java.net.URI[]"/>
  29726. <doc>
  29727. <![CDATA[@param uris]]>
  29728. </doc>
  29729. </method>
  29730. <method name="stringToURI" return="java.net.URI[]"
  29731. abstract="false" native="false" synchronized="false"
  29732. static="true" final="false" visibility="public"
  29733. deprecated="not deprecated">
  29734. <param name="str" type="java.lang.String[]"/>
  29735. <doc>
  29736. <![CDATA[@param str]]>
  29737. </doc>
  29738. </method>
  29739. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  29740. abstract="false" native="false" synchronized="false"
  29741. static="true" final="false" visibility="public"
  29742. deprecated="not deprecated">
  29743. <param name="str" type="java.lang.String[]"/>
  29744. <doc>
  29745. <![CDATA[@param str]]>
  29746. </doc>
  29747. </method>
  29748. <method name="formatTimeDiff" return="java.lang.String"
  29749. abstract="false" native="false" synchronized="false"
  29750. static="true" final="false" visibility="public"
  29751. deprecated="not deprecated">
  29752. <param name="finishTime" type="long"/>
  29753. <param name="startTime" type="long"/>
  29754. <doc>
  29755. <![CDATA[Given a finish and start time in long milliseconds, returns a
  29756. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  29757. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  29758. @param finishTime finish time
  29759. @param startTime start time]]>
  29760. </doc>
  29761. </method>
  29762. <method name="formatTime" return="java.lang.String"
  29763. abstract="false" native="false" synchronized="false"
  29764. static="true" final="false" visibility="public"
  29765. deprecated="not deprecated">
  29766. <param name="timeDiff" type="long"/>
  29767. <doc>
  29768. <![CDATA[Given the time in long milliseconds, returns a
  29769. String in the format Xhrs, Ymins, Z sec.
  29770. @param timeDiff The time difference to format]]>
  29771. </doc>
  29772. </method>
  29773. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  29774. abstract="false" native="false" synchronized="false"
  29775. static="true" final="false" visibility="public"
  29776. deprecated="not deprecated">
  29777. <param name="dateFormat" type="java.text.DateFormat"/>
  29778. <param name="finishTime" type="long"/>
  29779. <param name="startTime" type="long"/>
  29780. <doc>
  29781. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  29782. as returned by formatTimeDiff().
  29783. If finish time is 0, empty string is returned, if start time is 0
  29784. then difference is not appended to return value.
  29785. @param dateFormat date format to use
  29786. @param finishTime fnish time
  29787. @param startTime start time
  29788. @return formatted value.]]>
  29789. </doc>
  29790. </method>
  29791. <method name="getStrings" return="java.lang.String[]"
  29792. abstract="false" native="false" synchronized="false"
  29793. static="true" final="false" visibility="public"
  29794. deprecated="not deprecated">
  29795. <param name="str" type="java.lang.String"/>
  29796. <doc>
  29797. <![CDATA[Returns an arraylist of strings.
  29798. @param str the comma seperated string values
  29799. @return the arraylist of the comma seperated string values]]>
  29800. </doc>
  29801. </method>
  29802. <method name="getStringCollection" return="java.util.Collection"
  29803. abstract="false" native="false" synchronized="false"
  29804. static="true" final="false" visibility="public"
  29805. deprecated="not deprecated">
  29806. <param name="str" type="java.lang.String"/>
  29807. <doc>
  29808. <![CDATA[Returns a collection of strings.
  29809. @param str comma seperated string values
  29810. @return an <code>ArrayList</code> of string values]]>
  29811. </doc>
  29812. </method>
  29813. <method name="split" return="java.lang.String[]"
  29814. abstract="false" native="false" synchronized="false"
  29815. static="true" final="false" visibility="public"
  29816. deprecated="not deprecated">
  29817. <param name="str" type="java.lang.String"/>
  29818. <doc>
  29819. <![CDATA[Split a string using the default separator
  29820. @param str a string that may have escaped separator
  29821. @return an array of strings]]>
  29822. </doc>
  29823. </method>
  29824. <method name="split" return="java.lang.String[]"
  29825. abstract="false" native="false" synchronized="false"
  29826. static="true" final="false" visibility="public"
  29827. deprecated="not deprecated">
  29828. <param name="str" type="java.lang.String"/>
  29829. <param name="escapeChar" type="char"/>
  29830. <param name="separator" type="char"/>
  29831. <doc>
  29832. <![CDATA[Split a string using the given separator
  29833. @param str a string that may have escaped separator
  29834. @param escapeChar a char that be used to escape the separator
  29835. @param separator a separator char
  29836. @return an array of strings]]>
  29837. </doc>
  29838. </method>
  29839. <method name="findNext" return="int"
  29840. abstract="false" native="false" synchronized="false"
  29841. static="true" final="false" visibility="public"
  29842. deprecated="not deprecated">
  29843. <param name="str" type="java.lang.String"/>
  29844. <param name="separator" type="char"/>
  29845. <param name="escapeChar" type="char"/>
  29846. <param name="start" type="int"/>
  29847. <param name="split" type="java.lang.StringBuilder"/>
  29848. <doc>
  29849. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  29850. separators starting from the index. Note the substring between the index
  29851. and the position of the separator is passed.
  29852. @param str the source string
  29853. @param separator the character to find
  29854. @param escapeChar character used to escape
  29855. @param start from where to search
  29856. @param split used to pass back the extracted string]]>
  29857. </doc>
  29858. </method>
  29859. <method name="escapeString" return="java.lang.String"
  29860. abstract="false" native="false" synchronized="false"
  29861. static="true" final="false" visibility="public"
  29862. deprecated="not deprecated">
  29863. <param name="str" type="java.lang.String"/>
  29864. <doc>
  29865. <![CDATA[Escape commas in the string using the default escape char
  29866. @param str a string
  29867. @return an escaped string]]>
  29868. </doc>
  29869. </method>
  29870. <method name="escapeString" return="java.lang.String"
  29871. abstract="false" native="false" synchronized="false"
  29872. static="true" final="false" visibility="public"
  29873. deprecated="not deprecated">
  29874. <param name="str" type="java.lang.String"/>
  29875. <param name="escapeChar" type="char"/>
  29876. <param name="charToEscape" type="char"/>
  29877. <doc>
  29878. <![CDATA[Escape <code>charToEscape</code> in the string
  29879. with the escape char <code>escapeChar</code>
  29880. @param str string
  29881. @param escapeChar escape char
  29882. @param charToEscape the char to be escaped
  29883. @return an escaped string]]>
  29884. </doc>
  29885. </method>
  29886. <method name="escapeString" return="java.lang.String"
  29887. abstract="false" native="false" synchronized="false"
  29888. static="true" final="false" visibility="public"
  29889. deprecated="not deprecated">
  29890. <param name="str" type="java.lang.String"/>
  29891. <param name="escapeChar" type="char"/>
  29892. <param name="charsToEscape" type="char[]"/>
  29893. <doc>
  29894. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  29895. </doc>
  29896. </method>
  29897. <method name="unEscapeString" return="java.lang.String"
  29898. abstract="false" native="false" synchronized="false"
  29899. static="true" final="false" visibility="public"
  29900. deprecated="not deprecated">
  29901. <param name="str" type="java.lang.String"/>
  29902. <doc>
  29903. <![CDATA[Unescape commas in the string using the default escape char
  29904. @param str a string
  29905. @return an unescaped string]]>
  29906. </doc>
  29907. </method>
  29908. <method name="unEscapeString" return="java.lang.String"
  29909. abstract="false" native="false" synchronized="false"
  29910. static="true" final="false" visibility="public"
  29911. deprecated="not deprecated">
  29912. <param name="str" type="java.lang.String"/>
  29913. <param name="escapeChar" type="char"/>
  29914. <param name="charToEscape" type="char"/>
  29915. <doc>
  29916. <![CDATA[Unescape <code>charToEscape</code> in the string
  29917. with the escape char <code>escapeChar</code>
  29918. @param str string
  29919. @param escapeChar escape char
  29920. @param charToEscape the escaped char
  29921. @return an unescaped string]]>
  29922. </doc>
  29923. </method>
  29924. <method name="unEscapeString" return="java.lang.String"
  29925. abstract="false" native="false" synchronized="false"
  29926. static="true" final="false" visibility="public"
  29927. deprecated="not deprecated">
  29928. <param name="str" type="java.lang.String"/>
  29929. <param name="escapeChar" type="char"/>
  29930. <param name="charsToEscape" type="char[]"/>
  29931. <doc>
  29932. <![CDATA[@param charsToEscape array of characters to unescape]]>
  29933. </doc>
  29934. </method>
  29935. <method name="getHostname" return="java.lang.String"
  29936. abstract="false" native="false" synchronized="false"
  29937. static="true" final="false" visibility="public"
  29938. deprecated="not deprecated">
  29939. <doc>
  29940. <![CDATA[Return hostname without throwing exception.
  29941. @return hostname]]>
  29942. </doc>
  29943. </method>
  29944. <method name="startupShutdownMessage"
  29945. abstract="false" native="false" synchronized="false"
  29946. static="true" final="false" visibility="public"
  29947. deprecated="not deprecated">
  29948. <param name="clazz" type="java.lang.Class"/>
  29949. <param name="args" type="java.lang.String[]"/>
  29950. <param name="LOG" type="org.apache.commons.logging.Log"/>
  29951. <doc>
  29952. <![CDATA[Print a log message for starting up and shutting down
  29953. @param clazz the class of the server
  29954. @param args arguments
  29955. @param LOG the target log object]]>
  29956. </doc>
  29957. </method>
  29958. <method name="escapeHTML" return="java.lang.String"
  29959. abstract="false" native="false" synchronized="false"
  29960. static="true" final="false" visibility="public"
  29961. deprecated="not deprecated">
  29962. <param name="string" type="java.lang.String"/>
  29963. <doc>
  29964. <![CDATA[Escapes HTML Special characters present in the string.
  29965. @param string
  29966. @return HTML Escaped String representation]]>
  29967. </doc>
  29968. </method>
  29969. <method name="byteDesc" return="java.lang.String"
  29970. abstract="false" native="false" synchronized="false"
  29971. static="true" final="false" visibility="public"
  29972. deprecated="not deprecated">
  29973. <param name="len" type="long"/>
  29974. <doc>
  29975. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  29976. </doc>
  29977. </method>
  29978. <method name="limitDecimalTo2" return="java.lang.String"
  29979. abstract="false" native="false" synchronized="true"
  29980. static="true" final="false" visibility="public"
  29981. deprecated="not deprecated">
  29982. <param name="d" type="double"/>
  29983. </method>
  29984. <field name="COMMA" type="char"
  29985. transient="false" volatile="false"
  29986. static="true" final="true" visibility="public"
  29987. deprecated="not deprecated">
  29988. </field>
  29989. <field name="COMMA_STR" type="java.lang.String"
  29990. transient="false" volatile="false"
  29991. static="true" final="true" visibility="public"
  29992. deprecated="not deprecated">
  29993. </field>
  29994. <field name="ESCAPE_CHAR" type="char"
  29995. transient="false" volatile="false"
  29996. static="true" final="true" visibility="public"
  29997. deprecated="not deprecated">
  29998. </field>
  29999. <doc>
  30000. <![CDATA[General string utils]]>
  30001. </doc>
  30002. </class>
  30003. <!-- end class org.apache.hadoop.util.StringUtils -->
  30004. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  30005. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  30006. abstract="false"
  30007. static="true" final="true" visibility="public"
  30008. deprecated="not deprecated">
  30009. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  30010. abstract="false" native="false" synchronized="false"
  30011. static="true" final="false" visibility="public"
  30012. deprecated="not deprecated">
  30013. </method>
  30014. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  30015. abstract="false" native="false" synchronized="false"
  30016. static="true" final="false" visibility="public"
  30017. deprecated="not deprecated">
  30018. <param name="name" type="java.lang.String"/>
  30019. </method>
  30020. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  30021. abstract="false" native="false" synchronized="false"
  30022. static="true" final="false" visibility="public"
  30023. deprecated="not deprecated">
  30024. <param name="symbol" type="char"/>
  30025. <doc>
  30026. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  30027. </doc>
  30028. </method>
  30029. <method name="string2long" return="long"
  30030. abstract="false" native="false" synchronized="false"
  30031. static="true" final="false" visibility="public"
  30032. deprecated="not deprecated">
  30033. <param name="s" type="java.lang.String"/>
  30034. <doc>
  30035. <![CDATA[Convert a string to long.
  30036. The input string is first be trimmed
  30037. and then it is parsed with traditional binary prefix.
  30038. For example,
  30039. "-1230k" will be converted to -1230 * 1024 = -1259520;
  30040. "891g" will be converted to 891 * 1024^3 = 956703965184;
  30041. @param s input string
  30042. @return a long value represented by the input string.]]>
  30043. </doc>
  30044. </method>
  30045. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  30046. transient="false" volatile="false"
  30047. static="true" final="true" visibility="public"
  30048. deprecated="not deprecated">
  30049. </field>
  30050. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  30051. transient="false" volatile="false"
  30052. static="true" final="true" visibility="public"
  30053. deprecated="not deprecated">
  30054. </field>
  30055. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  30056. transient="false" volatile="false"
  30057. static="true" final="true" visibility="public"
  30058. deprecated="not deprecated">
  30059. </field>
  30060. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  30061. transient="false" volatile="false"
  30062. static="true" final="true" visibility="public"
  30063. deprecated="not deprecated">
  30064. </field>
  30065. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  30066. transient="false" volatile="false"
  30067. static="true" final="true" visibility="public"
  30068. deprecated="not deprecated">
  30069. </field>
  30070. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  30071. transient="false" volatile="false"
  30072. static="true" final="true" visibility="public"
  30073. deprecated="not deprecated">
  30074. </field>
  30075. <field name="value" type="long"
  30076. transient="false" volatile="false"
  30077. static="false" final="true" visibility="public"
  30078. deprecated="not deprecated">
  30079. </field>
  30080. <field name="symbol" type="char"
  30081. transient="false" volatile="false"
  30082. static="false" final="true" visibility="public"
  30083. deprecated="not deprecated">
  30084. </field>
  30085. <doc>
  30086. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  30087. which can be represented by a 64-bit integer.
  30088. TraditionalBinaryPrefix symbol are case insensitive.]]>
  30089. </doc>
  30090. </class>
  30091. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  30092. <!-- start interface org.apache.hadoop.util.Tool -->
  30093. <interface name="Tool" abstract="true"
  30094. static="false" final="false" visibility="public"
  30095. deprecated="not deprecated">
  30096. <implements name="org.apache.hadoop.conf.Configurable"/>
  30097. <method name="run" return="int"
  30098. abstract="false" native="false" synchronized="false"
  30099. static="false" final="false" visibility="public"
  30100. deprecated="not deprecated">
  30101. <param name="args" type="java.lang.String[]"/>
  30102. <exception name="Exception" type="java.lang.Exception"/>
  30103. <doc>
  30104. <![CDATA[Execute the command with the given arguments.
  30105. @param args command specific arguments.
  30106. @return exit code.
  30107. @throws Exception]]>
  30108. </doc>
  30109. </method>
  30110. <doc>
  30111. <![CDATA[A tool interface that supports handling of generic command-line options.
  30112. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  30113. The tool/application should delegate the handling of
  30114. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  30115. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  30116. and only handle its custom arguments.</p>
  30117. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  30118. <p><blockquote><pre>
  30119. public class MyApp extends Configured implements Tool {
  30120. public int run(String[] args) throws Exception {
  30121. // <code>Configuration</code> processed by <code>ToolRunner</code>
  30122. Configuration conf = getConf();
  30123. // Create a JobConf using the processed <code>conf</code>
  30124. JobConf job = new JobConf(conf, MyApp.class);
  30125. // Process custom command-line options
  30126. Path in = new Path(args[1]);
  30127. Path out = new Path(args[2]);
  30128. // Specify various job-specific parameters
  30129. job.setJobName("my-app");
  30130. job.setInputPath(in);
  30131. job.setOutputPath(out);
  30132. job.setMapperClass(MyApp.MyMapper.class);
  30133. job.setReducerClass(MyApp.MyReducer.class);
  30134. // Submit the job, then poll for progress until the job is complete
  30135. JobClient.runJob(job);
  30136. }
  30137. public static void main(String[] args) throws Exception {
  30138. // Let <code>ToolRunner</code> handle generic command-line options
  30139. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  30140. System.exit(res);
  30141. }
  30142. }
  30143. </pre></blockquote></p>
  30144. @see GenericOptionsParser
  30145. @see ToolRunner]]>
  30146. </doc>
  30147. </interface>
  30148. <!-- end interface org.apache.hadoop.util.Tool -->
  30149. <!-- start class org.apache.hadoop.util.ToolRunner -->
  30150. <class name="ToolRunner" extends="java.lang.Object"
  30151. abstract="false"
  30152. static="false" final="false" visibility="public"
  30153. deprecated="not deprecated">
  30154. <constructor name="ToolRunner"
  30155. static="false" final="false" visibility="public"
  30156. deprecated="not deprecated">
  30157. </constructor>
  30158. <method name="run" return="int"
  30159. abstract="false" native="false" synchronized="false"
  30160. static="true" final="false" visibility="public"
  30161. deprecated="not deprecated">
  30162. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30163. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  30164. <param name="args" type="java.lang.String[]"/>
  30165. <exception name="Exception" type="java.lang.Exception"/>
  30166. <doc>
  30167. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  30168. parsing with the given generic arguments. Uses the given
  30169. <code>Configuration</code>, or builds one if null.
  30170. Sets the <code>Tool</code>'s configuration with the possibly modified
  30171. version of the <code>conf</code>.
  30172. @param conf <code>Configuration</code> for the <code>Tool</code>.
  30173. @param tool <code>Tool</code> to run.
  30174. @param args command-line arguments to the tool.
  30175. @return exit code of the {@link Tool#run(String[])} method.]]>
  30176. </doc>
  30177. </method>
  30178. <method name="run" return="int"
  30179. abstract="false" native="false" synchronized="false"
  30180. static="true" final="false" visibility="public"
  30181. deprecated="not deprecated">
  30182. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  30183. <param name="args" type="java.lang.String[]"/>
  30184. <exception name="Exception" type="java.lang.Exception"/>
  30185. <doc>
  30186. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  30187. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  30188. @param tool <code>Tool</code> to run.
  30189. @param args command-line arguments to the tool.
  30190. @return exit code of the {@link Tool#run(String[])} method.]]>
  30191. </doc>
  30192. </method>
  30193. <method name="printGenericCommandUsage"
  30194. abstract="false" native="false" synchronized="false"
  30195. static="true" final="false" visibility="public"
  30196. deprecated="not deprecated">
  30197. <param name="out" type="java.io.PrintStream"/>
  30198. <doc>
  30199. <![CDATA[Prints generic command-line argurments and usage information.
  30200. @param out stream to write usage information to.]]>
  30201. </doc>
  30202. </method>
  30203. <doc>
  30204. <![CDATA[A utility to help run {@link Tool}s.
  30205. <p><code>ToolRunner</code> can be used to run classes implementing
  30206. <code>Tool</code> interface. It works in conjunction with
  30207. {@link GenericOptionsParser} to parse the
  30208. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  30209. generic hadoop command line arguments</a> and modifies the
  30210. <code>Configuration</code> of the <code>Tool</code>. The
  30211. application-specific options are passed along without being modified.
  30212. </p>
  30213. @see Tool
  30214. @see GenericOptionsParser]]>
  30215. </doc>
  30216. </class>
  30217. <!-- end class org.apache.hadoop.util.ToolRunner -->
  30218. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  30219. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  30220. abstract="false"
  30221. static="false" final="false" visibility="public"
  30222. deprecated="not deprecated">
  30223. <constructor name="UTF8ByteArrayUtils"
  30224. static="false" final="false" visibility="public"
  30225. deprecated="not deprecated">
  30226. </constructor>
  30227. <method name="findByte" return="int"
  30228. abstract="false" native="false" synchronized="false"
  30229. static="true" final="false" visibility="public"
  30230. deprecated="not deprecated">
  30231. <param name="utf" type="byte[]"/>
  30232. <param name="start" type="int"/>
  30233. <param name="end" type="int"/>
  30234. <param name="b" type="byte"/>
  30235. <doc>
  30236. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  30237. @param utf a byte array containing a UTF-8 encoded string
  30238. @param start starting offset
  30239. @param end ending position
  30240. @param b the byte to find
  30241. @return position that first byte occures otherwise -1]]>
  30242. </doc>
  30243. </method>
  30244. <method name="findBytes" return="int"
  30245. abstract="false" native="false" synchronized="false"
  30246. static="true" final="false" visibility="public"
  30247. deprecated="not deprecated">
  30248. <param name="utf" type="byte[]"/>
  30249. <param name="start" type="int"/>
  30250. <param name="end" type="int"/>
  30251. <param name="b" type="byte[]"/>
  30252. <doc>
  30253. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  30254. @param utf a byte array containing a UTF-8 encoded string
  30255. @param start starting offset
  30256. @param end ending position
  30257. @param b the bytes to find
  30258. @return position that first byte occures otherwise -1]]>
  30259. </doc>
  30260. </method>
  30261. <method name="findNthByte" return="int"
  30262. abstract="false" native="false" synchronized="false"
  30263. static="true" final="false" visibility="public"
  30264. deprecated="not deprecated">
  30265. <param name="utf" type="byte[]"/>
  30266. <param name="start" type="int"/>
  30267. <param name="length" type="int"/>
  30268. <param name="b" type="byte"/>
  30269. <param name="n" type="int"/>
  30270. <doc>
  30271. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  30272. @param utf a byte array containing a UTF-8 encoded string
  30273. @param start starting offset
  30274. @param length the length of byte array
  30275. @param b the byte to find
  30276. @param n the desired occurrence of the given byte
  30277. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  30278. </doc>
  30279. </method>
  30280. <method name="findNthByte" return="int"
  30281. abstract="false" native="false" synchronized="false"
  30282. static="true" final="false" visibility="public"
  30283. deprecated="not deprecated">
  30284. <param name="utf" type="byte[]"/>
  30285. <param name="b" type="byte"/>
  30286. <param name="n" type="int"/>
  30287. <doc>
  30288. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  30289. @param utf a byte array containing a UTF-8 encoded string
  30290. @param b the byte to find
  30291. @param n the desired occurrence of the given byte
  30292. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  30293. </doc>
  30294. </method>
  30295. </class>
  30296. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  30297. <!-- start class org.apache.hadoop.util.VersionInfo -->
  30298. <class name="VersionInfo" extends="java.lang.Object"
  30299. abstract="false"
  30300. static="false" final="false" visibility="public"
  30301. deprecated="not deprecated">
  30302. <constructor name="VersionInfo"
  30303. static="false" final="false" visibility="public"
  30304. deprecated="not deprecated">
  30305. </constructor>
  30306. <method name="getVersion" return="java.lang.String"
  30307. abstract="false" native="false" synchronized="false"
  30308. static="true" final="false" visibility="public"
  30309. deprecated="not deprecated">
  30310. <doc>
  30311. <![CDATA[Get the Hadoop version.
  30312. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  30313. </doc>
  30314. </method>
  30315. <method name="getRevision" return="java.lang.String"
  30316. abstract="false" native="false" synchronized="false"
  30317. static="true" final="false" visibility="public"
  30318. deprecated="not deprecated">
  30319. <doc>
  30320. <![CDATA[Get the subversion revision number for the root directory
  30321. @return the revision number, eg. "451451"]]>
  30322. </doc>
  30323. </method>
  30324. <method name="getDate" return="java.lang.String"
  30325. abstract="false" native="false" synchronized="false"
  30326. static="true" final="false" visibility="public"
  30327. deprecated="not deprecated">
  30328. <doc>
  30329. <![CDATA[The date that Hadoop was compiled.
  30330. @return the compilation date in unix date format]]>
  30331. </doc>
  30332. </method>
  30333. <method name="getUser" return="java.lang.String"
  30334. abstract="false" native="false" synchronized="false"
  30335. static="true" final="false" visibility="public"
  30336. deprecated="not deprecated">
  30337. <doc>
  30338. <![CDATA[The user that compiled Hadoop.
  30339. @return the username of the user]]>
  30340. </doc>
  30341. </method>
  30342. <method name="getUrl" return="java.lang.String"
  30343. abstract="false" native="false" synchronized="false"
  30344. static="true" final="false" visibility="public"
  30345. deprecated="not deprecated">
  30346. <doc>
  30347. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  30348. </doc>
  30349. </method>
  30350. <method name="getBuildVersion" return="java.lang.String"
  30351. abstract="false" native="false" synchronized="false"
  30352. static="true" final="false" visibility="public"
  30353. deprecated="not deprecated">
  30354. <doc>
  30355. <![CDATA[Returns the buildVersion which includes version,
  30356. revision, user and date.]]>
  30357. </doc>
  30358. </method>
  30359. <method name="main"
  30360. abstract="false" native="false" synchronized="false"
  30361. static="true" final="false" visibility="public"
  30362. deprecated="not deprecated">
  30363. <param name="args" type="java.lang.String[]"/>
  30364. </method>
  30365. <doc>
  30366. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  30367. information.]]>
  30368. </doc>
  30369. </class>
  30370. <!-- end class org.apache.hadoop.util.VersionInfo -->
  30371. <!-- start class org.apache.hadoop.util.XMLUtils -->
  30372. <class name="XMLUtils" extends="java.lang.Object"
  30373. abstract="false"
  30374. static="false" final="false" visibility="public"
  30375. deprecated="not deprecated">
  30376. <constructor name="XMLUtils"
  30377. static="false" final="false" visibility="public"
  30378. deprecated="not deprecated">
  30379. </constructor>
  30380. <method name="transform"
  30381. abstract="false" native="false" synchronized="false"
  30382. static="true" final="false" visibility="public"
  30383. deprecated="not deprecated">
  30384. <param name="styleSheet" type="java.io.InputStream"/>
  30385. <param name="xml" type="java.io.InputStream"/>
  30386. <param name="out" type="java.io.Writer"/>
  30387. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  30388. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  30389. <doc>
  30390. <![CDATA[Transform input xml given a stylesheet.
  30391. @param styleSheet the style-sheet
  30392. @param xml input xml data
  30393. @param out output
  30394. @throws TransformerConfigurationException
  30395. @throws TransformerException]]>
  30396. </doc>
  30397. </method>
  30398. <doc>
  30399. <![CDATA[General xml utilities.]]>
  30400. </doc>
  30401. </class>
  30402. <!-- end class org.apache.hadoop.util.XMLUtils -->
  30403. <doc>
  30404. <![CDATA[Common utilities.]]>
  30405. </doc>
  30406. </package>
  30407. <package name="org.apache.hadoop.util.bloom">
  30408. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  30409. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  30410. abstract="false"
  30411. static="false" final="false" visibility="public"
  30412. deprecated="not deprecated">
  30413. <constructor name="BloomFilter"
  30414. static="false" final="false" visibility="public"
  30415. deprecated="not deprecated">
  30416. <doc>
  30417. <![CDATA[Default constructor - use with readFields]]>
  30418. </doc>
  30419. </constructor>
  30420. <constructor name="BloomFilter" type="int, int, int"
  30421. static="false" final="false" visibility="public"
  30422. deprecated="not deprecated">
  30423. <doc>
  30424. <![CDATA[Constructor
  30425. @param vectorSize The vector size of <i>this</i> filter.
  30426. @param nbHash The number of hash function to consider.
  30427. @param hashType type of the hashing function (see
  30428. {@link org.apache.hadoop.util.hash.Hash}).]]>
  30429. </doc>
  30430. </constructor>
  30431. <method name="add"
  30432. abstract="false" native="false" synchronized="false"
  30433. static="false" final="false" visibility="public"
  30434. deprecated="not deprecated">
  30435. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30436. </method>
  30437. <method name="and"
  30438. abstract="false" native="false" synchronized="false"
  30439. static="false" final="false" visibility="public"
  30440. deprecated="not deprecated">
  30441. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30442. </method>
  30443. <method name="membershipTest" return="boolean"
  30444. abstract="false" native="false" synchronized="false"
  30445. static="false" final="false" visibility="public"
  30446. deprecated="not deprecated">
  30447. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30448. </method>
  30449. <method name="not"
  30450. abstract="false" native="false" synchronized="false"
  30451. static="false" final="false" visibility="public"
  30452. deprecated="not deprecated">
  30453. </method>
  30454. <method name="or"
  30455. abstract="false" native="false" synchronized="false"
  30456. static="false" final="false" visibility="public"
  30457. deprecated="not deprecated">
  30458. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30459. </method>
  30460. <method name="xor"
  30461. abstract="false" native="false" synchronized="false"
  30462. static="false" final="false" visibility="public"
  30463. deprecated="not deprecated">
  30464. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30465. </method>
  30466. <method name="toString" return="java.lang.String"
  30467. abstract="false" native="false" synchronized="false"
  30468. static="false" final="false" visibility="public"
  30469. deprecated="not deprecated">
  30470. </method>
  30471. <method name="getVectorSize" return="int"
  30472. abstract="false" native="false" synchronized="false"
  30473. static="false" final="false" visibility="public"
  30474. deprecated="not deprecated">
  30475. <doc>
  30476. <![CDATA[@return size of the the bloomfilter]]>
  30477. </doc>
  30478. </method>
  30479. <method name="write"
  30480. abstract="false" native="false" synchronized="false"
  30481. static="false" final="false" visibility="public"
  30482. deprecated="not deprecated">
  30483. <param name="out" type="java.io.DataOutput"/>
  30484. <exception name="IOException" type="java.io.IOException"/>
  30485. </method>
  30486. <method name="readFields"
  30487. abstract="false" native="false" synchronized="false"
  30488. static="false" final="false" visibility="public"
  30489. deprecated="not deprecated">
  30490. <param name="in" type="java.io.DataInput"/>
  30491. <exception name="IOException" type="java.io.IOException"/>
  30492. </method>
  30493. <doc>
  30494. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  30495. <p>
  30496. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  30497. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  30498. offers for the transmission of set membership information between networked hosts. A sender encodes
  30499. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  30500. representation. Computation and space costs for construction are linear in the number of elements.
  30501. The receiver uses the filter to test whether various elements are members of the set. Though the
  30502. filter will occasionally return a false positive, it will never return a false negative. When creating
  30503. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  30504. <p>
  30505. Originally created by
  30506. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  30507. @see Filter The general behavior of a filter
  30508. @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>]]>
  30509. </doc>
  30510. </class>
  30511. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  30512. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  30513. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  30514. abstract="false"
  30515. static="false" final="true" visibility="public"
  30516. deprecated="not deprecated">
  30517. <constructor name="CountingBloomFilter"
  30518. static="false" final="false" visibility="public"
  30519. deprecated="not deprecated">
  30520. <doc>
  30521. <![CDATA[Default constructor - use with readFields]]>
  30522. </doc>
  30523. </constructor>
  30524. <constructor name="CountingBloomFilter" type="int, int, int"
  30525. static="false" final="false" visibility="public"
  30526. deprecated="not deprecated">
  30527. <doc>
  30528. <![CDATA[Constructor
  30529. @param vectorSize The vector size of <i>this</i> filter.
  30530. @param nbHash The number of hash function to consider.
  30531. @param hashType type of the hashing function (see
  30532. {@link org.apache.hadoop.util.hash.Hash}).]]>
  30533. </doc>
  30534. </constructor>
  30535. <method name="add"
  30536. abstract="false" native="false" synchronized="false"
  30537. static="false" final="false" visibility="public"
  30538. deprecated="not deprecated">
  30539. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30540. </method>
  30541. <method name="delete"
  30542. abstract="false" native="false" synchronized="false"
  30543. static="false" final="false" visibility="public"
  30544. deprecated="not deprecated">
  30545. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30546. <doc>
  30547. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  30548. <p>
  30549. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  30550. @param key The key to remove.]]>
  30551. </doc>
  30552. </method>
  30553. <method name="and"
  30554. abstract="false" native="false" synchronized="false"
  30555. static="false" final="false" visibility="public"
  30556. deprecated="not deprecated">
  30557. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30558. </method>
  30559. <method name="membershipTest" return="boolean"
  30560. abstract="false" native="false" synchronized="false"
  30561. static="false" final="false" visibility="public"
  30562. deprecated="not deprecated">
  30563. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30564. </method>
  30565. <method name="approximateCount" return="int"
  30566. abstract="false" native="false" synchronized="false"
  30567. static="false" final="false" visibility="public"
  30568. deprecated="not deprecated">
  30569. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30570. <doc>
  30571. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  30572. times the key was added to the filter. This allows the filter to be
  30573. used as an approximate <code>key -&gt; count</code> map.
  30574. <p>NOTE: due to the bucket size of this filter, inserting the same
  30575. key more than 15 times will cause an overflow at all filter positions
  30576. associated with this key, and it will significantly increase the error
  30577. rate for this and other keys. For this reason the filter can only be
  30578. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  30579. @param key key to be tested
  30580. @return 0 if the key is not present. Otherwise, a positive value v will
  30581. be returned such that <code>v == count</code> with probability equal to the
  30582. error rate of this filter, and <code>v &gt; count</code> otherwise.
  30583. Additionally, if the filter experienced an underflow as a result of
  30584. {@link #delete(Key)} operation, the return value may be lower than the
  30585. <code>count</code> with the probability of the false negative rate of such
  30586. filter.]]>
  30587. </doc>
  30588. </method>
  30589. <method name="not"
  30590. abstract="false" native="false" synchronized="false"
  30591. static="false" final="false" visibility="public"
  30592. deprecated="not deprecated">
  30593. </method>
  30594. <method name="or"
  30595. abstract="false" native="false" synchronized="false"
  30596. static="false" final="false" visibility="public"
  30597. deprecated="not deprecated">
  30598. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30599. </method>
  30600. <method name="xor"
  30601. abstract="false" native="false" synchronized="false"
  30602. static="false" final="false" visibility="public"
  30603. deprecated="not deprecated">
  30604. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30605. </method>
  30606. <method name="toString" return="java.lang.String"
  30607. abstract="false" native="false" synchronized="false"
  30608. static="false" final="false" visibility="public"
  30609. deprecated="not deprecated">
  30610. </method>
  30611. <method name="write"
  30612. abstract="false" native="false" synchronized="false"
  30613. static="false" final="false" visibility="public"
  30614. deprecated="not deprecated">
  30615. <param name="out" type="java.io.DataOutput"/>
  30616. <exception name="IOException" type="java.io.IOException"/>
  30617. </method>
  30618. <method name="readFields"
  30619. abstract="false" native="false" synchronized="false"
  30620. static="false" final="false" visibility="public"
  30621. deprecated="not deprecated">
  30622. <param name="in" type="java.io.DataInput"/>
  30623. <exception name="IOException" type="java.io.IOException"/>
  30624. </method>
  30625. <doc>
  30626. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  30627. 2000 paper.
  30628. <p>
  30629. A counting Bloom filter is an improvement to standard a Bloom filter as it
  30630. allows dynamic additions and deletions of set membership information. This
  30631. is achieved through the use of a counting vector instead of a bit vector.
  30632. <p>
  30633. Originally created by
  30634. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  30635. @see Filter The general behavior of a filter
  30636. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  30637. </doc>
  30638. </class>
  30639. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  30640. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  30641. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  30642. abstract="false"
  30643. static="false" final="false" visibility="public"
  30644. deprecated="not deprecated">
  30645. <constructor name="DynamicBloomFilter"
  30646. static="false" final="false" visibility="public"
  30647. deprecated="not deprecated">
  30648. <doc>
  30649. <![CDATA[Zero-args constructor for the serialization.]]>
  30650. </doc>
  30651. </constructor>
  30652. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  30653. static="false" final="false" visibility="public"
  30654. deprecated="not deprecated">
  30655. <doc>
  30656. <![CDATA[Constructor.
  30657. <p>
  30658. Builds an empty Dynamic Bloom filter.
  30659. @param vectorSize The number of bits in the vector.
  30660. @param nbHash The number of hash function to consider.
  30661. @param hashType type of the hashing function (see
  30662. {@link org.apache.hadoop.util.hash.Hash}).
  30663. @param nr The threshold for the maximum number of keys to record in a
  30664. dynamic Bloom filter row.]]>
  30665. </doc>
  30666. </constructor>
  30667. <method name="add"
  30668. abstract="false" native="false" synchronized="false"
  30669. static="false" final="false" visibility="public"
  30670. deprecated="not deprecated">
  30671. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30672. </method>
  30673. <method name="and"
  30674. abstract="false" native="false" synchronized="false"
  30675. static="false" final="false" visibility="public"
  30676. deprecated="not deprecated">
  30677. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30678. </method>
  30679. <method name="membershipTest" return="boolean"
  30680. abstract="false" native="false" synchronized="false"
  30681. static="false" final="false" visibility="public"
  30682. deprecated="not deprecated">
  30683. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30684. </method>
  30685. <method name="not"
  30686. abstract="false" native="false" synchronized="false"
  30687. static="false" final="false" visibility="public"
  30688. deprecated="not deprecated">
  30689. </method>
  30690. <method name="or"
  30691. abstract="false" native="false" synchronized="false"
  30692. static="false" final="false" visibility="public"
  30693. deprecated="not deprecated">
  30694. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30695. </method>
  30696. <method name="xor"
  30697. abstract="false" native="false" synchronized="false"
  30698. static="false" final="false" visibility="public"
  30699. deprecated="not deprecated">
  30700. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30701. </method>
  30702. <method name="toString" return="java.lang.String"
  30703. abstract="false" native="false" synchronized="false"
  30704. static="false" final="false" visibility="public"
  30705. deprecated="not deprecated">
  30706. </method>
  30707. <method name="write"
  30708. abstract="false" native="false" synchronized="false"
  30709. static="false" final="false" visibility="public"
  30710. deprecated="not deprecated">
  30711. <param name="out" type="java.io.DataOutput"/>
  30712. <exception name="IOException" type="java.io.IOException"/>
  30713. </method>
  30714. <method name="readFields"
  30715. abstract="false" native="false" synchronized="false"
  30716. static="false" final="false" visibility="public"
  30717. deprecated="not deprecated">
  30718. <param name="in" type="java.io.DataInput"/>
  30719. <exception name="IOException" type="java.io.IOException"/>
  30720. </method>
  30721. <doc>
  30722. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  30723. <p>
  30724. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  30725. each of the <code>s</code> rows is a standard Bloom filter. The creation
  30726. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  30727. bit matrix, i.e., it is composed of a single standard Bloom filter.
  30728. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  30729. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  30730. the cardinality of the set <code>A</code> to record in the filter).
  30731. <p>
  30732. As the size of <code>A</code> grows during the execution of the application,
  30733. several keys must be inserted in the DBF. When inserting a key into the DBF,
  30734. one must first get an active Bloom filter in the matrix. A Bloom filter is
  30735. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  30736. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  30737. If an active Bloom filter is found, the key is inserted and
  30738. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  30739. is no active Bloom filter, a new one is created (i.e., a new row is added to
  30740. the matrix) according to the current size of <code>A</code> and the element
  30741. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  30742. this new Bloom filter is set to one. A given key is said to belong to the
  30743. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  30744. <p>
  30745. Originally created by
  30746. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  30747. @see Filter The general behavior of a filter
  30748. @see BloomFilter A Bloom filter
  30749. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  30750. </doc>
  30751. </class>
  30752. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  30753. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  30754. <class name="Filter" extends="java.lang.Object"
  30755. abstract="true"
  30756. static="false" final="false" visibility="public"
  30757. deprecated="not deprecated">
  30758. <implements name="org.apache.hadoop.io.Writable"/>
  30759. <constructor name="Filter"
  30760. static="false" final="false" visibility="protected"
  30761. deprecated="not deprecated">
  30762. </constructor>
  30763. <constructor name="Filter" type="int, int, int"
  30764. static="false" final="false" visibility="protected"
  30765. deprecated="not deprecated">
  30766. <doc>
  30767. <![CDATA[Constructor.
  30768. @param vectorSize The vector size of <i>this</i> filter.
  30769. @param nbHash The number of hash functions to consider.
  30770. @param hashType type of the hashing function (see {@link Hash}).]]>
  30771. </doc>
  30772. </constructor>
  30773. <method name="add"
  30774. abstract="true" native="false" synchronized="false"
  30775. static="false" final="false" visibility="public"
  30776. deprecated="not deprecated">
  30777. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30778. <doc>
  30779. <![CDATA[Adds a key to <i>this</i> filter.
  30780. @param key The key to add.]]>
  30781. </doc>
  30782. </method>
  30783. <method name="membershipTest" return="boolean"
  30784. abstract="true" native="false" synchronized="false"
  30785. static="false" final="false" visibility="public"
  30786. deprecated="not deprecated">
  30787. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30788. <doc>
  30789. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  30790. @param key The key to test.
  30791. @return boolean True if the specified key belongs to <i>this</i> filter.
  30792. False otherwise.]]>
  30793. </doc>
  30794. </method>
  30795. <method name="and"
  30796. abstract="true" native="false" synchronized="false"
  30797. static="false" final="false" visibility="public"
  30798. deprecated="not deprecated">
  30799. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30800. <doc>
  30801. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  30802. <p>
  30803. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  30804. @param filter The filter to AND with.]]>
  30805. </doc>
  30806. </method>
  30807. <method name="or"
  30808. abstract="true" native="false" synchronized="false"
  30809. static="false" final="false" visibility="public"
  30810. deprecated="not deprecated">
  30811. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30812. <doc>
  30813. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  30814. <p>
  30815. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  30816. @param filter The filter to OR with.]]>
  30817. </doc>
  30818. </method>
  30819. <method name="xor"
  30820. abstract="true" native="false" synchronized="false"
  30821. static="false" final="false" visibility="public"
  30822. deprecated="not deprecated">
  30823. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  30824. <doc>
  30825. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  30826. <p>
  30827. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  30828. @param filter The filter to XOR with.]]>
  30829. </doc>
  30830. </method>
  30831. <method name="not"
  30832. abstract="true" native="false" synchronized="false"
  30833. static="false" final="false" visibility="public"
  30834. deprecated="not deprecated">
  30835. <doc>
  30836. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  30837. <p>
  30838. The result is assigned to <i>this</i> filter.]]>
  30839. </doc>
  30840. </method>
  30841. <method name="add"
  30842. abstract="false" native="false" synchronized="false"
  30843. static="false" final="false" visibility="public"
  30844. deprecated="not deprecated">
  30845. <param name="keys" type="java.util.List"/>
  30846. <doc>
  30847. <![CDATA[Adds a list of keys to <i>this</i> filter.
  30848. @param keys The list of keys.]]>
  30849. </doc>
  30850. </method>
  30851. <method name="add"
  30852. abstract="false" native="false" synchronized="false"
  30853. static="false" final="false" visibility="public"
  30854. deprecated="not deprecated">
  30855. <param name="keys" type="java.util.Collection"/>
  30856. <doc>
  30857. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  30858. @param keys The collection of keys.]]>
  30859. </doc>
  30860. </method>
  30861. <method name="add"
  30862. abstract="false" native="false" synchronized="false"
  30863. static="false" final="false" visibility="public"
  30864. deprecated="not deprecated">
  30865. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  30866. <doc>
  30867. <![CDATA[Adds an array of keys to <i>this</i> filter.
  30868. @param keys The array of keys.]]>
  30869. </doc>
  30870. </method>
  30871. <method name="write"
  30872. abstract="false" native="false" synchronized="false"
  30873. static="false" final="false" visibility="public"
  30874. deprecated="not deprecated">
  30875. <param name="out" type="java.io.DataOutput"/>
  30876. <exception name="IOException" type="java.io.IOException"/>
  30877. </method>
  30878. <method name="readFields"
  30879. abstract="false" native="false" synchronized="false"
  30880. static="false" final="false" visibility="public"
  30881. deprecated="not deprecated">
  30882. <param name="in" type="java.io.DataInput"/>
  30883. <exception name="IOException" type="java.io.IOException"/>
  30884. </method>
  30885. <field name="vectorSize" type="int"
  30886. transient="false" volatile="false"
  30887. static="false" final="false" visibility="protected"
  30888. deprecated="not deprecated">
  30889. <doc>
  30890. <![CDATA[The vector size of <i>this</i> filter.]]>
  30891. </doc>
  30892. </field>
  30893. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  30894. transient="false" volatile="false"
  30895. static="false" final="false" visibility="protected"
  30896. deprecated="not deprecated">
  30897. <doc>
  30898. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  30899. </doc>
  30900. </field>
  30901. <field name="nbHash" type="int"
  30902. transient="false" volatile="false"
  30903. static="false" final="false" visibility="protected"
  30904. deprecated="not deprecated">
  30905. <doc>
  30906. <![CDATA[The number of hash function to consider.]]>
  30907. </doc>
  30908. </field>
  30909. <field name="hashType" type="int"
  30910. transient="false" volatile="false"
  30911. static="false" final="false" visibility="protected"
  30912. deprecated="not deprecated">
  30913. <doc>
  30914. <![CDATA[Type of hashing function to use.]]>
  30915. </doc>
  30916. </field>
  30917. <doc>
  30918. <![CDATA[Defines the general behavior of a filter.
  30919. <p>
  30920. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  30921. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  30922. in a vector through the use of several hash functions.
  30923. <p>
  30924. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  30925. <p>
  30926. It must be extended in order to define the real behavior.
  30927. @see Key The general behavior of a key
  30928. @see HashFunction A hash function]]>
  30929. </doc>
  30930. </class>
  30931. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  30932. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  30933. <class name="HashFunction" extends="java.lang.Object"
  30934. abstract="false"
  30935. static="false" final="true" visibility="public"
  30936. deprecated="not deprecated">
  30937. <constructor name="HashFunction" type="int, int, int"
  30938. static="false" final="false" visibility="public"
  30939. deprecated="not deprecated">
  30940. <doc>
  30941. <![CDATA[Constructor.
  30942. <p>
  30943. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  30944. @param maxValue The maximum highest returned value.
  30945. @param nbHash The number of resulting hashed values.
  30946. @param hashType type of the hashing function (see {@link Hash}).]]>
  30947. </doc>
  30948. </constructor>
  30949. <method name="clear"
  30950. abstract="false" native="false" synchronized="false"
  30951. static="false" final="false" visibility="public"
  30952. deprecated="not deprecated">
  30953. <doc>
  30954. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  30955. </doc>
  30956. </method>
  30957. <method name="hash" return="int[]"
  30958. abstract="false" native="false" synchronized="false"
  30959. static="false" final="false" visibility="public"
  30960. deprecated="not deprecated">
  30961. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  30962. <doc>
  30963. <![CDATA[Hashes a specified key into several integers.
  30964. @param k The specified key.
  30965. @return The array of hashed values.]]>
  30966. </doc>
  30967. </method>
  30968. <doc>
  30969. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  30970. @see Key The general behavior of a key being stored in a filter
  30971. @see Filter The general behavior of a filter]]>
  30972. </doc>
  30973. </class>
  30974. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  30975. <!-- start class org.apache.hadoop.util.bloom.Key -->
  30976. <class name="Key" extends="java.lang.Object"
  30977. abstract="false"
  30978. static="false" final="false" visibility="public"
  30979. deprecated="not deprecated">
  30980. <implements name="org.apache.hadoop.io.WritableComparable"/>
  30981. <constructor name="Key"
  30982. static="false" final="false" visibility="public"
  30983. deprecated="not deprecated">
  30984. <doc>
  30985. <![CDATA[default constructor - use with readFields]]>
  30986. </doc>
  30987. </constructor>
  30988. <constructor name="Key" type="byte[]"
  30989. static="false" final="false" visibility="public"
  30990. deprecated="not deprecated">
  30991. <doc>
  30992. <![CDATA[Constructor.
  30993. <p>
  30994. Builds a key with a default weight.
  30995. @param value The byte value of <i>this</i> key.]]>
  30996. </doc>
  30997. </constructor>
  30998. <constructor name="Key" type="byte[], double"
  30999. static="false" final="false" visibility="public"
  31000. deprecated="not deprecated">
  31001. <doc>
  31002. <![CDATA[Constructor.
  31003. <p>
  31004. Builds a key with a specified weight.
  31005. @param value The value of <i>this</i> key.
  31006. @param weight The weight associated to <i>this</i> key.]]>
  31007. </doc>
  31008. </constructor>
  31009. <method name="set"
  31010. abstract="false" native="false" synchronized="false"
  31011. static="false" final="false" visibility="public"
  31012. deprecated="not deprecated">
  31013. <param name="value" type="byte[]"/>
  31014. <param name="weight" type="double"/>
  31015. <doc>
  31016. <![CDATA[@param value
  31017. @param weight]]>
  31018. </doc>
  31019. </method>
  31020. <method name="getBytes" return="byte[]"
  31021. abstract="false" native="false" synchronized="false"
  31022. static="false" final="false" visibility="public"
  31023. deprecated="not deprecated">
  31024. <doc>
  31025. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  31026. </doc>
  31027. </method>
  31028. <method name="getWeight" return="double"
  31029. abstract="false" native="false" synchronized="false"
  31030. static="false" final="false" visibility="public"
  31031. deprecated="not deprecated">
  31032. <doc>
  31033. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  31034. </doc>
  31035. </method>
  31036. <method name="incrementWeight"
  31037. abstract="false" native="false" synchronized="false"
  31038. static="false" final="false" visibility="public"
  31039. deprecated="not deprecated">
  31040. <param name="weight" type="double"/>
  31041. <doc>
  31042. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  31043. @param weight The increment.]]>
  31044. </doc>
  31045. </method>
  31046. <method name="incrementWeight"
  31047. abstract="false" native="false" synchronized="false"
  31048. static="false" final="false" visibility="public"
  31049. deprecated="not deprecated">
  31050. <doc>
  31051. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  31052. </doc>
  31053. </method>
  31054. <method name="equals" return="boolean"
  31055. abstract="false" native="false" synchronized="false"
  31056. static="false" final="false" visibility="public"
  31057. deprecated="not deprecated">
  31058. <param name="o" type="java.lang.Object"/>
  31059. </method>
  31060. <method name="hashCode" return="int"
  31061. abstract="false" native="false" synchronized="false"
  31062. static="false" final="false" visibility="public"
  31063. deprecated="not deprecated">
  31064. </method>
  31065. <method name="write"
  31066. abstract="false" native="false" synchronized="false"
  31067. static="false" final="false" visibility="public"
  31068. deprecated="not deprecated">
  31069. <param name="out" type="java.io.DataOutput"/>
  31070. <exception name="IOException" type="java.io.IOException"/>
  31071. </method>
  31072. <method name="readFields"
  31073. abstract="false" native="false" synchronized="false"
  31074. static="false" final="false" visibility="public"
  31075. deprecated="not deprecated">
  31076. <param name="in" type="java.io.DataInput"/>
  31077. <exception name="IOException" type="java.io.IOException"/>
  31078. </method>
  31079. <method name="compareTo" return="int"
  31080. abstract="false" native="false" synchronized="false"
  31081. static="false" final="false" visibility="public"
  31082. deprecated="not deprecated">
  31083. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  31084. </method>
  31085. <doc>
  31086. <![CDATA[The general behavior of a key that must be stored in a filter.
  31087. @see Filter The general behavior of a filter]]>
  31088. </doc>
  31089. </class>
  31090. <!-- end class org.apache.hadoop.util.bloom.Key -->
  31091. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  31092. <interface name="RemoveScheme" abstract="true"
  31093. static="false" final="false" visibility="public"
  31094. deprecated="not deprecated">
  31095. <field name="RANDOM" type="short"
  31096. transient="false" volatile="false"
  31097. static="true" final="true" visibility="public"
  31098. deprecated="not deprecated">
  31099. <doc>
  31100. <![CDATA[Random selection.
  31101. <p>
  31102. The idea is to randomly select a bit to reset.]]>
  31103. </doc>
  31104. </field>
  31105. <field name="MINIMUM_FN" type="short"
  31106. transient="false" volatile="false"
  31107. static="true" final="true" visibility="public"
  31108. deprecated="not deprecated">
  31109. <doc>
  31110. <![CDATA[MinimumFN Selection.
  31111. <p>
  31112. The idea is to select the bit to reset that will generate the minimum
  31113. number of false negative.]]>
  31114. </doc>
  31115. </field>
  31116. <field name="MAXIMUM_FP" type="short"
  31117. transient="false" volatile="false"
  31118. static="true" final="true" visibility="public"
  31119. deprecated="not deprecated">
  31120. <doc>
  31121. <![CDATA[MaximumFP Selection.
  31122. <p>
  31123. The idea is to select the bit to reset that will remove the maximum number
  31124. of false positive.]]>
  31125. </doc>
  31126. </field>
  31127. <field name="RATIO" type="short"
  31128. transient="false" volatile="false"
  31129. static="true" final="true" visibility="public"
  31130. deprecated="not deprecated">
  31131. <doc>
  31132. <![CDATA[Ratio Selection.
  31133. <p>
  31134. The idea is to select the bit to reset that will, at the same time, remove
  31135. the maximum number of false positve while minimizing the amount of false
  31136. negative generated.]]>
  31137. </doc>
  31138. </field>
  31139. <doc>
  31140. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  31141. <p>
  31142. Originally created by
  31143. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  31144. </doc>
  31145. </interface>
  31146. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  31147. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  31148. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  31149. abstract="false"
  31150. static="false" final="true" visibility="public"
  31151. deprecated="not deprecated">
  31152. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  31153. <constructor name="RetouchedBloomFilter"
  31154. static="false" final="false" visibility="public"
  31155. deprecated="not deprecated">
  31156. <doc>
  31157. <![CDATA[Default constructor - use with readFields]]>
  31158. </doc>
  31159. </constructor>
  31160. <constructor name="RetouchedBloomFilter" type="int, int, int"
  31161. static="false" final="false" visibility="public"
  31162. deprecated="not deprecated">
  31163. <doc>
  31164. <![CDATA[Constructor
  31165. @param vectorSize The vector size of <i>this</i> filter.
  31166. @param nbHash The number of hash function to consider.
  31167. @param hashType type of the hashing function (see
  31168. {@link org.apache.hadoop.util.hash.Hash}).]]>
  31169. </doc>
  31170. </constructor>
  31171. <method name="add"
  31172. abstract="false" native="false" synchronized="false"
  31173. static="false" final="false" visibility="public"
  31174. deprecated="not deprecated">
  31175. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31176. </method>
  31177. <method name="addFalsePositive"
  31178. abstract="false" native="false" synchronized="false"
  31179. static="false" final="false" visibility="public"
  31180. deprecated="not deprecated">
  31181. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31182. <doc>
  31183. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  31184. <p>
  31185. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  31186. @param key The false positive key to add.]]>
  31187. </doc>
  31188. </method>
  31189. <method name="addFalsePositive"
  31190. abstract="false" native="false" synchronized="false"
  31191. static="false" final="false" visibility="public"
  31192. deprecated="not deprecated">
  31193. <param name="coll" type="java.util.Collection"/>
  31194. <doc>
  31195. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  31196. @param coll The collection of false positive.]]>
  31197. </doc>
  31198. </method>
  31199. <method name="addFalsePositive"
  31200. abstract="false" native="false" synchronized="false"
  31201. static="false" final="false" visibility="public"
  31202. deprecated="not deprecated">
  31203. <param name="keys" type="java.util.List"/>
  31204. <doc>
  31205. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  31206. @param keys The list of false positive.]]>
  31207. </doc>
  31208. </method>
  31209. <method name="addFalsePositive"
  31210. abstract="false" native="false" synchronized="false"
  31211. static="false" final="false" visibility="public"
  31212. deprecated="not deprecated">
  31213. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  31214. <doc>
  31215. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  31216. @param keys The array of false positive.]]>
  31217. </doc>
  31218. </method>
  31219. <method name="selectiveClearing"
  31220. abstract="false" native="false" synchronized="false"
  31221. static="false" final="false" visibility="public"
  31222. deprecated="not deprecated">
  31223. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  31224. <param name="scheme" type="short"/>
  31225. <doc>
  31226. <![CDATA[Performs the selective clearing for a given key.
  31227. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  31228. @param scheme The selective clearing scheme to apply.]]>
  31229. </doc>
  31230. </method>
  31231. <method name="write"
  31232. abstract="false" native="false" synchronized="false"
  31233. static="false" final="false" visibility="public"
  31234. deprecated="not deprecated">
  31235. <param name="out" type="java.io.DataOutput"/>
  31236. <exception name="IOException" type="java.io.IOException"/>
  31237. </method>
  31238. <method name="readFields"
  31239. abstract="false" native="false" synchronized="false"
  31240. static="false" final="false" visibility="public"
  31241. deprecated="not deprecated">
  31242. <param name="in" type="java.io.DataInput"/>
  31243. <exception name="IOException" type="java.io.IOException"/>
  31244. </method>
  31245. <doc>
  31246. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  31247. <p>
  31248. It allows the removal of selected false positives at the cost of introducing
  31249. random false negatives, and with the benefit of eliminating some random false
  31250. positives at the same time.
  31251. <p>
  31252. Originally created by
  31253. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  31254. @see Filter The general behavior of a filter
  31255. @see BloomFilter A Bloom filter
  31256. @see RemoveScheme The different selective clearing algorithms
  31257. @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>]]>
  31258. </doc>
  31259. </class>
  31260. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  31261. </package>
  31262. <package name="org.apache.hadoop.util.hash">
  31263. <!-- start class org.apache.hadoop.util.hash.Hash -->
  31264. <class name="Hash" extends="java.lang.Object"
  31265. abstract="true"
  31266. static="false" final="false" visibility="public"
  31267. deprecated="not deprecated">
  31268. <constructor name="Hash"
  31269. static="false" final="false" visibility="public"
  31270. deprecated="not deprecated">
  31271. </constructor>
  31272. <method name="parseHashType" return="int"
  31273. abstract="false" native="false" synchronized="false"
  31274. static="true" final="false" visibility="public"
  31275. deprecated="not deprecated">
  31276. <param name="name" type="java.lang.String"/>
  31277. <doc>
  31278. <![CDATA[This utility method converts String representation of hash function name
  31279. to a symbolic constant. Currently two function types are supported,
  31280. "jenkins" and "murmur".
  31281. @param name hash function name
  31282. @return one of the predefined constants]]>
  31283. </doc>
  31284. </method>
  31285. <method name="getHashType" return="int"
  31286. abstract="false" native="false" synchronized="false"
  31287. static="true" final="false" visibility="public"
  31288. deprecated="not deprecated">
  31289. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31290. <doc>
  31291. <![CDATA[This utility method converts the name of the configured
  31292. hash type to a symbolic constant.
  31293. @param conf configuration
  31294. @return one of the predefined constants]]>
  31295. </doc>
  31296. </method>
  31297. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  31298. abstract="false" native="false" synchronized="false"
  31299. static="true" final="false" visibility="public"
  31300. deprecated="not deprecated">
  31301. <param name="type" type="int"/>
  31302. <doc>
  31303. <![CDATA[Get a singleton instance of hash function of a given type.
  31304. @param type predefined hash type
  31305. @return hash function instance, or null if type is invalid]]>
  31306. </doc>
  31307. </method>
  31308. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  31309. abstract="false" native="false" synchronized="false"
  31310. static="true" final="false" visibility="public"
  31311. deprecated="not deprecated">
  31312. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31313. <doc>
  31314. <![CDATA[Get a singleton instance of hash function of a type
  31315. defined in the configuration.
  31316. @param conf current configuration
  31317. @return defined hash type, or null if type is invalid]]>
  31318. </doc>
  31319. </method>
  31320. <method name="hash" return="int"
  31321. abstract="false" native="false" synchronized="false"
  31322. static="false" final="false" visibility="public"
  31323. deprecated="not deprecated">
  31324. <param name="bytes" type="byte[]"/>
  31325. <doc>
  31326. <![CDATA[Calculate a hash using all bytes from the input argument, and
  31327. a seed of -1.
  31328. @param bytes input bytes
  31329. @return hash value]]>
  31330. </doc>
  31331. </method>
  31332. <method name="hash" return="int"
  31333. abstract="false" native="false" synchronized="false"
  31334. static="false" final="false" visibility="public"
  31335. deprecated="not deprecated">
  31336. <param name="bytes" type="byte[]"/>
  31337. <param name="initval" type="int"/>
  31338. <doc>
  31339. <![CDATA[Calculate a hash using all bytes from the input argument,
  31340. and a provided seed value.
  31341. @param bytes input bytes
  31342. @param initval seed value
  31343. @return hash value]]>
  31344. </doc>
  31345. </method>
  31346. <method name="hash" return="int"
  31347. abstract="true" native="false" synchronized="false"
  31348. static="false" final="false" visibility="public"
  31349. deprecated="not deprecated">
  31350. <param name="bytes" type="byte[]"/>
  31351. <param name="length" type="int"/>
  31352. <param name="initval" type="int"/>
  31353. <doc>
  31354. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  31355. the provided seed value
  31356. @param bytes input bytes
  31357. @param length length of the valid bytes to consider
  31358. @param initval seed value
  31359. @return hash value]]>
  31360. </doc>
  31361. </method>
  31362. <field name="INVALID_HASH" type="int"
  31363. transient="false" volatile="false"
  31364. static="true" final="true" visibility="public"
  31365. deprecated="not deprecated">
  31366. <doc>
  31367. <![CDATA[Constant to denote invalid hash type.]]>
  31368. </doc>
  31369. </field>
  31370. <field name="JENKINS_HASH" type="int"
  31371. transient="false" volatile="false"
  31372. static="true" final="true" visibility="public"
  31373. deprecated="not deprecated">
  31374. <doc>
  31375. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  31376. </doc>
  31377. </field>
  31378. <field name="MURMUR_HASH" type="int"
  31379. transient="false" volatile="false"
  31380. static="true" final="true" visibility="public"
  31381. deprecated="not deprecated">
  31382. <doc>
  31383. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  31384. </doc>
  31385. </field>
  31386. <doc>
  31387. <![CDATA[This class represents a common API for hashing functions.]]>
  31388. </doc>
  31389. </class>
  31390. <!-- end class org.apache.hadoop.util.hash.Hash -->
  31391. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  31392. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  31393. abstract="false"
  31394. static="false" final="false" visibility="public"
  31395. deprecated="not deprecated">
  31396. <constructor name="JenkinsHash"
  31397. static="false" final="false" visibility="public"
  31398. deprecated="not deprecated">
  31399. </constructor>
  31400. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  31401. abstract="false" native="false" synchronized="false"
  31402. static="true" final="false" visibility="public"
  31403. deprecated="not deprecated">
  31404. </method>
  31405. <method name="hash" return="int"
  31406. abstract="false" native="false" synchronized="false"
  31407. static="false" final="false" visibility="public"
  31408. deprecated="not deprecated">
  31409. <param name="key" type="byte[]"/>
  31410. <param name="nbytes" type="int"/>
  31411. <param name="initval" type="int"/>
  31412. <doc>
  31413. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  31414. @param key the key (the unaligned variable-length array of bytes)
  31415. @param nbytes number of bytes to include in hash
  31416. @param initval can be any integer value
  31417. @return a 32-bit value. Every bit of the key affects every bit of the
  31418. return value. Two keys differing by one or two bits will have totally
  31419. different hash values.
  31420. <p>The best hash table sizes are powers of 2. There is no need to do mod
  31421. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  31422. For example, if you need only 10 bits, do
  31423. <code>h = (h & hashmask(10));</code>
  31424. In which case, the hash table should have hashsize(10) elements.
  31425. <p>If you are hashing n strings byte[][] k, do it like this:
  31426. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  31427. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  31428. code any way you wish, private, educational, or commercial. It's free.
  31429. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  31430. acceptable. Do NOT use for cryptographic purposes.]]>
  31431. </doc>
  31432. </method>
  31433. <method name="main"
  31434. abstract="false" native="false" synchronized="false"
  31435. static="true" final="false" visibility="public"
  31436. deprecated="not deprecated">
  31437. <param name="args" type="java.lang.String[]"/>
  31438. <exception name="IOException" type="java.io.IOException"/>
  31439. <doc>
  31440. <![CDATA[Compute the hash of the specified file
  31441. @param args name of file to compute hash of.
  31442. @throws IOException]]>
  31443. </doc>
  31444. </method>
  31445. <doc>
  31446. <![CDATA[Produces 32-bit hash for hash table lookup.
  31447. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  31448. You can use this free for any purpose. It's in the public domain.
  31449. It has no warranty.
  31450. </pre>
  31451. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  31452. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  31453. function compares to others such as CRC, MD?, etc</a>
  31454. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  31455. Dr. Dobbs Article</a>]]>
  31456. </doc>
  31457. </class>
  31458. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  31459. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  31460. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  31461. abstract="false"
  31462. static="false" final="false" visibility="public"
  31463. deprecated="not deprecated">
  31464. <constructor name="MurmurHash"
  31465. static="false" final="false" visibility="public"
  31466. deprecated="not deprecated">
  31467. </constructor>
  31468. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  31469. abstract="false" native="false" synchronized="false"
  31470. static="true" final="false" visibility="public"
  31471. deprecated="not deprecated">
  31472. </method>
  31473. <method name="hash" return="int"
  31474. abstract="false" native="false" synchronized="false"
  31475. static="false" final="false" visibility="public"
  31476. deprecated="not deprecated">
  31477. <param name="data" type="byte[]"/>
  31478. <param name="length" type="int"/>
  31479. <param name="seed" type="int"/>
  31480. </method>
  31481. <doc>
  31482. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  31483. lookup. See http://murmurhash.googlepages.com/ for more details.
  31484. <p>The C version of MurmurHash 2.0 found at that site was ported
  31485. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  31486. </doc>
  31487. </class>
  31488. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  31489. </package>
  31490. </api>