Apache_Hadoop_Common_2.10.0.xml 1.7 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847
  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 Tue Oct 29 19:50:43 PDT 2019 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop Common 2.10.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet -docletpath /home/jhung/hadoop/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/home/jhung/hadoop/hadoop-common-project/hadoop-common/target/jdiff.jar -verbose -classpath /home/jhung/hadoop/hadoop-common-project/hadoop-common/target/classes:/home/jhung/hadoop/hadoop-common-project/hadoop-annotations/target/hadoop-annotations-2.10.0.jar:/export/apps/jdk/JDK-1_7_0_51/lib/tools.jar:/home/jhung/.m2/repository/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/home/jhung/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/home/jhung/.m2/repository/org/apache/commons/commons-math3/3.1.1/commons-math3-3.1.1.jar:/home/jhung/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/home/jhung/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar:/home/jhung/.m2/repository/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar:/home/jhung/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/home/jhung/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/jhung/.m2/repository/commons-net/commons-net/3.1/commons-net-3.1.jar:/home/jhung/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/jhung/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/home/jhung/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/home/jhung/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/home/jhung/.m2/repository/org/mortbay/jetty/jetty-sslengine/6.1.26/jetty-sslengine-6.1.26.jar:/home/jhung/.m2/repository/com/sun/jersey/jersey-core/1.9/jersey-core-1.9.jar:/home/jhung/.m2/repository/com/sun/jersey/jersey-json/1.9/jersey-json-1.9.jar:/home/jhung/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/home/jhung/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/home/jhung/.m2/repository/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar:/home/jhung/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/home/jhung/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/jhung/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/home/jhung/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/home/jhung/.m2/repository/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.jar:/home/jhung/.m2/repository/asm/asm/3.2/asm-3.2.jar:/home/jhung/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/home/jhung/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/home/jhung/.m2/repository/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar:/home/jhung/.m2/repository/com/jamesmurty/utils/java-xmlbuilder/0.4/java-xmlbuilder-0.4.jar:/home/jhung/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/jhung/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/home/jhung/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/home/jhung/.m2/repository/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4.jar:/home/jhung/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar:/home/jhung/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/home/jhung/.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar:/home/jhung/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/home/jhung/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/home/jhung/.m2/repository/org/apache/avro/avro/1.7.7/avro-1.7.7.jar:/home/jhung/.m2/repository/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/home/jhung/.m2/repository/org/xerial/snappy/snappy-java/1.0.5/snappy-java-1.0.5.jar:/home/jhung/.m2/repository/org/apache/ant/ant/1.8.1/ant-1.8.1.jar:/home/jhung/.m2/repository/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar:/home/jhung/.m2/repository/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/home/jhung/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/home/jhung/hadoop/hadoop-common-project/hadoop-auth/target/hadoop-auth-2.10.0.jar:/home/jhung/.m2/repository/com/nimbusds/nimbus-jose-jwt/4.41.1/nimbus-jose-jwt-4.41.1.jar:/home/jhung/.m2/repository/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/home/jhung/.m2/repository/net/minidev/json-smart/1.3.1/json-smart-1.3.1.jar:/home/jhung/.m2/repository/org/apache/directory/server/apacheds-kerberos-codec/2.0.0-M15/apacheds-kerberos-codec-2.0.0-M15.jar:/home/jhung/.m2/repository/org/apache/directory/server/apacheds-i18n/2.0.0-M15/apacheds-i18n-2.0.0-M15.jar:/home/jhung/.m2/repository/org/apache/directory/api/api-asn1-api/1.0.0-M20/api-asn1-api-1.0.0-M20.jar:/home/jhung/.m2/repository/org/apache/directory/api/api-util/1.0.0-M20/api-util-1.0.0-M20.jar:/home/jhung/.m2/repository/org/apache/curator/curator-framework/2.7.1/curator-framework-2.7.1.jar:/home/jhung/.m2/repository/com/jcraft/jsch/0.1.54/jsch-0.1.54.jar:/home/jhung/.m2/repository/org/apache/curator/curator-client/2.7.1/curator-client-2.7.1.jar:/home/jhung/.m2/repository/org/apache/curator/curator-recipes/2.7.1/curator-recipes-2.7.1.jar:/home/jhung/.m2/repository/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar:/home/jhung/.m2/repository/org/apache/htrace/htrace-core4/4.1.0-incubating/htrace-core4-4.1.0-incubating.jar:/home/jhung/.m2/repository/org/apache/zookeeper/zookeeper/3.4.9/zookeeper-3.4.9.jar:/home/jhung/.m2/repository/io/netty/netty/3.10.6.Final/netty-3.10.6.Final.jar:/home/jhung/.m2/repository/org/apache/commons/commons-compress/1.19/commons-compress-1.19.jar:/home/jhung/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar:/home/jhung/.m2/repository/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar -sourcepath /home/jhung/hadoop/hadoop-common-project/hadoop-common/src/main/java -apidir /home/jhung/hadoop/hadoop-common-project/hadoop-common/target/site/jdiff/xml -apiname Apache Hadoop Common 2.10.0 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start class org.apache.hadoop.HadoopIllegalArgumentException -->
  13. <class name="HadoopIllegalArgumentException" extends="java.lang.IllegalArgumentException"
  14. abstract="false"
  15. static="false" final="false" visibility="public"
  16. deprecated="not deprecated">
  17. <constructor name="HadoopIllegalArgumentException" type="java.lang.String"
  18. static="false" final="false" visibility="public"
  19. deprecated="not deprecated">
  20. <doc>
  21. <![CDATA[Constructs exception with the specified detail message.
  22. @param message detailed message.]]>
  23. </doc>
  24. </constructor>
  25. <doc>
  26. <![CDATA[Indicates that a method has been passed illegal or invalid argument. This
  27. exception is thrown instead of IllegalArgumentException to differentiate the
  28. exception thrown in Hadoop implementation from the one thrown in JDK.]]>
  29. </doc>
  30. </class>
  31. <!-- end class org.apache.hadoop.HadoopIllegalArgumentException -->
  32. </package>
  33. <package name="org.apache.hadoop.conf">
  34. <!-- start interface org.apache.hadoop.conf.Configurable -->
  35. <interface name="Configurable" abstract="true"
  36. static="false" final="false" visibility="public"
  37. deprecated="not deprecated">
  38. <method name="setConf"
  39. abstract="false" native="false" synchronized="false"
  40. static="false" final="false" visibility="public"
  41. deprecated="not deprecated">
  42. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43. <doc>
  44. <![CDATA[Set the configuration to be used by this object.]]>
  45. </doc>
  46. </method>
  47. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  48. abstract="false" native="false" synchronized="false"
  49. static="false" final="false" visibility="public"
  50. deprecated="not deprecated">
  51. <doc>
  52. <![CDATA[Return the configuration used by this object.]]>
  53. </doc>
  54. </method>
  55. <doc>
  56. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  57. </doc>
  58. </interface>
  59. <!-- end interface org.apache.hadoop.conf.Configurable -->
  60. <!-- start class org.apache.hadoop.conf.Configuration -->
  61. <class name="Configuration" extends="java.lang.Object"
  62. abstract="false"
  63. static="false" final="false" visibility="public"
  64. deprecated="not deprecated">
  65. <implements name="java.lang.Iterable"/>
  66. <implements name="org.apache.hadoop.io.Writable"/>
  67. <constructor name="Configuration"
  68. static="false" final="false" visibility="public"
  69. deprecated="not deprecated">
  70. <doc>
  71. <![CDATA[A new configuration.]]>
  72. </doc>
  73. </constructor>
  74. <constructor name="Configuration" type="boolean"
  75. static="false" final="false" visibility="public"
  76. deprecated="not deprecated">
  77. <doc>
  78. <![CDATA[A new configuration where the behavior of reading from the default
  79. resources can be turned off.
  80. If the parameter {@code loadDefaults} is false, the new instance
  81. will not load resources from the default files.
  82. @param loadDefaults specifies whether to load from the default files]]>
  83. </doc>
  84. </constructor>
  85. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  86. static="false" final="false" visibility="public"
  87. deprecated="not deprecated">
  88. <doc>
  89. <![CDATA[A new configuration with the same settings cloned from another.
  90. @param other the configuration from which to clone settings.]]>
  91. </doc>
  92. </constructor>
  93. <method name="addDeprecations"
  94. abstract="false" native="false" synchronized="false"
  95. static="true" final="false" visibility="public"
  96. deprecated="not deprecated">
  97. <param name="deltas" type="org.apache.hadoop.conf.Configuration.DeprecationDelta[]"/>
  98. <doc>
  99. <![CDATA[Adds a set of deprecated keys to the global deprecations.
  100. This method is lockless. It works by means of creating a new
  101. DeprecationContext based on the old one, and then atomically swapping in
  102. the new context. If someone else updated the context in between us reading
  103. the old context and swapping in the new one, we try again until we win the
  104. race.
  105. @param deltas The deprecations to add.]]>
  106. </doc>
  107. </method>
  108. <method name="addDeprecation"
  109. abstract="false" native="false" synchronized="false"
  110. static="true" final="false" visibility="public"
  111. deprecated="use {@link #addDeprecation(String key, String newKey,
  112. String customMessage)} instead">
  113. <param name="key" type="java.lang.String"/>
  114. <param name="newKeys" type="java.lang.String[]"/>
  115. <param name="customMessage" type="java.lang.String"/>
  116. <doc>
  117. <![CDATA[Adds the deprecated key to the global deprecation map.
  118. It does not override any existing entries in the deprecation map.
  119. This is to be used only by the developers in order to add deprecation of
  120. keys, and attempts to call this method after loading resources once,
  121. would lead to <tt>UnsupportedOperationException</tt>
  122. If a key is deprecated in favor of multiple keys, they are all treated as
  123. aliases of each other, and setting any one of them resets all the others
  124. to the new value.
  125. If you have multiple deprecation entries to add, it is more efficient to
  126. use #addDeprecations(DeprecationDelta[] deltas) instead.
  127. @param key
  128. @param newKeys
  129. @param customMessage
  130. @deprecated use {@link #addDeprecation(String key, String newKey,
  131. String customMessage)} instead]]>
  132. </doc>
  133. </method>
  134. <method name="addDeprecation"
  135. abstract="false" native="false" synchronized="false"
  136. static="true" final="false" visibility="public"
  137. deprecated="not deprecated">
  138. <param name="key" type="java.lang.String"/>
  139. <param name="newKey" type="java.lang.String"/>
  140. <param name="customMessage" type="java.lang.String"/>
  141. <doc>
  142. <![CDATA[Adds the deprecated key to the global deprecation map.
  143. It does not override any existing entries in the deprecation map.
  144. This is to be used only by the developers in order to add deprecation of
  145. keys, and attempts to call this method after loading resources once,
  146. would lead to <tt>UnsupportedOperationException</tt>
  147. If you have multiple deprecation entries to add, it is more efficient to
  148. use #addDeprecations(DeprecationDelta[] deltas) instead.
  149. @param key
  150. @param newKey
  151. @param customMessage]]>
  152. </doc>
  153. </method>
  154. <method name="addDeprecation"
  155. abstract="false" native="false" synchronized="false"
  156. static="true" final="false" visibility="public"
  157. deprecated="use {@link #addDeprecation(String key, String newKey)} instead">
  158. <param name="key" type="java.lang.String"/>
  159. <param name="newKeys" type="java.lang.String[]"/>
  160. <doc>
  161. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  162. message is provided.
  163. It does not override any existing entries in the deprecation map.
  164. This is to be used only by the developers in order to add deprecation of
  165. keys, and attempts to call this method after loading resources once,
  166. would lead to <tt>UnsupportedOperationException</tt>
  167. If a key is deprecated in favor of multiple keys, they are all treated as
  168. aliases of each other, and setting any one of them resets all the others
  169. to the new value.
  170. If you have multiple deprecation entries to add, it is more efficient to
  171. use #addDeprecations(DeprecationDelta[] deltas) instead.
  172. @param key Key that is to be deprecated
  173. @param newKeys list of keys that take up the values of deprecated key
  174. @deprecated use {@link #addDeprecation(String key, String newKey)} instead]]>
  175. </doc>
  176. </method>
  177. <method name="addDeprecation"
  178. abstract="false" native="false" synchronized="false"
  179. static="true" final="false" visibility="public"
  180. deprecated="not deprecated">
  181. <param name="key" type="java.lang.String"/>
  182. <param name="newKey" type="java.lang.String"/>
  183. <doc>
  184. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  185. message is provided.
  186. It does not override any existing entries in the deprecation map.
  187. This is to be used only by the developers in order to add deprecation of
  188. keys, and attempts to call this method after loading resources once,
  189. would lead to <tt>UnsupportedOperationException</tt>
  190. If you have multiple deprecation entries to add, it is more efficient to
  191. use #addDeprecations(DeprecationDelta[] deltas) instead.
  192. @param key Key that is to be deprecated
  193. @param newKey key that takes up the value of deprecated key]]>
  194. </doc>
  195. </method>
  196. <method name="isDeprecated" return="boolean"
  197. abstract="false" native="false" synchronized="false"
  198. static="true" final="false" visibility="public"
  199. deprecated="not deprecated">
  200. <param name="key" type="java.lang.String"/>
  201. <doc>
  202. <![CDATA[checks whether the given <code>key</code> is deprecated.
  203. @param key the parameter which is to be checked for deprecation
  204. @return <code>true</code> if the key is deprecated and
  205. <code>false</code> otherwise.]]>
  206. </doc>
  207. </method>
  208. <method name="setDeprecatedProperties"
  209. abstract="false" native="false" synchronized="false"
  210. static="false" final="false" visibility="public"
  211. deprecated="not deprecated">
  212. <doc>
  213. <![CDATA[Sets all deprecated properties that are not currently set but have a
  214. corresponding new property that is set. Useful for iterating the
  215. properties when all deprecated properties for currently set properties
  216. need to be present.]]>
  217. </doc>
  218. </method>
  219. <method name="reloadExistingConfigurations"
  220. abstract="false" native="false" synchronized="true"
  221. static="true" final="false" visibility="public"
  222. deprecated="not deprecated">
  223. <doc>
  224. <![CDATA[Reload existing configuration instances.]]>
  225. </doc>
  226. </method>
  227. <method name="addDefaultResource"
  228. abstract="false" native="false" synchronized="true"
  229. static="true" final="false" visibility="public"
  230. deprecated="not deprecated">
  231. <param name="name" type="java.lang.String"/>
  232. <doc>
  233. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  234. added.
  235. @param name file name. File should be present in the classpath.]]>
  236. </doc>
  237. </method>
  238. <method name="setRestrictSystemPropertiesDefault"
  239. abstract="false" native="false" synchronized="false"
  240. static="true" final="false" visibility="public"
  241. deprecated="not deprecated">
  242. <param name="val" type="boolean"/>
  243. </method>
  244. <method name="setRestrictSystemProperties"
  245. abstract="false" native="false" synchronized="false"
  246. static="false" final="false" visibility="public"
  247. deprecated="not deprecated">
  248. <param name="val" type="boolean"/>
  249. </method>
  250. <method name="addResource"
  251. abstract="false" native="false" synchronized="false"
  252. static="false" final="false" visibility="public"
  253. deprecated="not deprecated">
  254. <param name="name" type="java.lang.String"/>
  255. <doc>
  256. <![CDATA[Add a configuration resource.
  257. The properties of this resource will override properties of previously
  258. added resources, unless they were marked <a href="#Final">final</a>.
  259. @param name resource to be added, the classpath is examined for a file
  260. with that name.]]>
  261. </doc>
  262. </method>
  263. <method name="addResource"
  264. abstract="false" native="false" synchronized="false"
  265. static="false" final="false" visibility="public"
  266. deprecated="not deprecated">
  267. <param name="name" type="java.lang.String"/>
  268. <param name="restrictedParser" type="boolean"/>
  269. </method>
  270. <method name="addResource"
  271. abstract="false" native="false" synchronized="false"
  272. static="false" final="false" visibility="public"
  273. deprecated="not deprecated">
  274. <param name="url" type="java.net.URL"/>
  275. <doc>
  276. <![CDATA[Add a configuration resource.
  277. The properties of this resource will override properties of previously
  278. added resources, unless they were marked <a href="#Final">final</a>.
  279. @param url url of the resource to be added, the local filesystem is
  280. examined directly to find the resource, without referring to
  281. the classpath.]]>
  282. </doc>
  283. </method>
  284. <method name="addResource"
  285. abstract="false" native="false" synchronized="false"
  286. static="false" final="false" visibility="public"
  287. deprecated="not deprecated">
  288. <param name="url" type="java.net.URL"/>
  289. <param name="restrictedParser" type="boolean"/>
  290. </method>
  291. <method name="addResource"
  292. abstract="false" native="false" synchronized="false"
  293. static="false" final="false" visibility="public"
  294. deprecated="not deprecated">
  295. <param name="file" type="org.apache.hadoop.fs.Path"/>
  296. <doc>
  297. <![CDATA[Add a configuration resource.
  298. The properties of this resource will override properties of previously
  299. added resources, unless they were marked <a href="#Final">final</a>.
  300. @param file file-path of resource to be added, the local filesystem is
  301. examined directly to find the resource, without referring to
  302. the classpath.]]>
  303. </doc>
  304. </method>
  305. <method name="addResource"
  306. abstract="false" native="false" synchronized="false"
  307. static="false" final="false" visibility="public"
  308. deprecated="not deprecated">
  309. <param name="file" type="org.apache.hadoop.fs.Path"/>
  310. <param name="restrictedParser" type="boolean"/>
  311. </method>
  312. <method name="addResource"
  313. abstract="false" native="false" synchronized="false"
  314. static="false" final="false" visibility="public"
  315. deprecated="not deprecated">
  316. <param name="in" type="java.io.InputStream"/>
  317. <doc>
  318. <![CDATA[Add a configuration resource.
  319. The properties of this resource will override properties of previously
  320. added resources, unless they were marked <a href="#Final">final</a>.
  321. WARNING: The contents of the InputStream will be cached, by this method.
  322. So use this sparingly because it does increase the memory consumption.
  323. @param in InputStream to deserialize the object from. In will be read from
  324. when a get or set is called next. After it is read the stream will be
  325. closed.]]>
  326. </doc>
  327. </method>
  328. <method name="addResource"
  329. abstract="false" native="false" synchronized="false"
  330. static="false" final="false" visibility="public"
  331. deprecated="not deprecated">
  332. <param name="in" type="java.io.InputStream"/>
  333. <param name="restrictedParser" type="boolean"/>
  334. </method>
  335. <method name="addResource"
  336. abstract="false" native="false" synchronized="false"
  337. static="false" final="false" visibility="public"
  338. deprecated="not deprecated">
  339. <param name="in" type="java.io.InputStream"/>
  340. <param name="name" type="java.lang.String"/>
  341. <doc>
  342. <![CDATA[Add a configuration resource.
  343. The properties of this resource will override properties of previously
  344. added resources, unless they were marked <a href="#Final">final</a>.
  345. @param in InputStream to deserialize the object from.
  346. @param name the name of the resource because InputStream.toString is not
  347. very descriptive some times.]]>
  348. </doc>
  349. </method>
  350. <method name="addResource"
  351. abstract="false" native="false" synchronized="false"
  352. static="false" final="false" visibility="public"
  353. deprecated="not deprecated">
  354. <param name="in" type="java.io.InputStream"/>
  355. <param name="name" type="java.lang.String"/>
  356. <param name="restrictedParser" type="boolean"/>
  357. </method>
  358. <method name="addResource"
  359. abstract="false" native="false" synchronized="false"
  360. static="false" final="false" visibility="public"
  361. deprecated="not deprecated">
  362. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  363. <doc>
  364. <![CDATA[Add a configuration resource.
  365. The properties of this resource will override properties of previously
  366. added resources, unless they were marked <a href="#Final">final</a>.
  367. @param conf Configuration object from which to load properties]]>
  368. </doc>
  369. </method>
  370. <method name="reloadConfiguration"
  371. abstract="false" native="false" synchronized="true"
  372. static="false" final="false" visibility="public"
  373. deprecated="not deprecated">
  374. <doc>
  375. <![CDATA[Reload configuration from previously added resources.
  376. This method will clear all the configuration read from the added
  377. resources, and final parameters. This will make the resources to
  378. be read again before accessing the values. Values that are added
  379. via set methods will overlay values read from the resources.]]>
  380. </doc>
  381. </method>
  382. <method name="get" return="java.lang.String"
  383. abstract="false" native="false" synchronized="false"
  384. static="false" final="false" visibility="public"
  385. deprecated="not deprecated">
  386. <param name="name" type="java.lang.String"/>
  387. <doc>
  388. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  389. no such property exists. If the key is deprecated, it returns the value of
  390. the first key which replaces the deprecated key and is not null.
  391. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  392. before being returned.
  393. @param name the property name, will be trimmed before get value.
  394. @return the value of the <code>name</code> or its replacing property,
  395. or null if no such property exists.]]>
  396. </doc>
  397. </method>
  398. <method name="setAllowNullValueProperties"
  399. abstract="false" native="false" synchronized="false"
  400. static="false" final="false" visibility="public"
  401. deprecated="not deprecated">
  402. <param name="val" type="boolean"/>
  403. <doc>
  404. <![CDATA[Set Configuration to allow keys without values during setup. Intended
  405. for use during testing.
  406. @param val If true, will allow Configuration to store keys without values]]>
  407. </doc>
  408. </method>
  409. <method name="setRestrictSystemProps"
  410. abstract="false" native="false" synchronized="false"
  411. static="false" final="false" visibility="public"
  412. deprecated="not deprecated">
  413. <param name="val" type="boolean"/>
  414. </method>
  415. <method name="onlyKeyExists" return="boolean"
  416. abstract="false" native="false" synchronized="false"
  417. static="false" final="false" visibility="public"
  418. deprecated="not deprecated">
  419. <param name="name" type="java.lang.String"/>
  420. <doc>
  421. <![CDATA[Return existence of the <code>name</code> property, but only for
  422. names which have no valid value, usually non-existent or commented
  423. out in XML.
  424. @param name the property name
  425. @return true if the property <code>name</code> exists without value]]>
  426. </doc>
  427. </method>
  428. <method name="getTrimmed" return="java.lang.String"
  429. abstract="false" native="false" synchronized="false"
  430. static="false" final="false" visibility="public"
  431. deprecated="not deprecated">
  432. <param name="name" type="java.lang.String"/>
  433. <doc>
  434. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  435. <code>null</code> if no such property exists.
  436. If the key is deprecated, it returns the value of
  437. the first key which replaces the deprecated key and is not null
  438. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  439. before being returned.
  440. @param name the property name.
  441. @return the value of the <code>name</code> or its replacing property,
  442. or null if no such property exists.]]>
  443. </doc>
  444. </method>
  445. <method name="getTrimmed" return="java.lang.String"
  446. abstract="false" native="false" synchronized="false"
  447. static="false" final="false" visibility="public"
  448. deprecated="not deprecated">
  449. <param name="name" type="java.lang.String"/>
  450. <param name="defaultValue" type="java.lang.String"/>
  451. <doc>
  452. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  453. <code>defaultValue</code> if no such property exists.
  454. See @{Configuration#getTrimmed} for more details.
  455. @param name the property name.
  456. @param defaultValue the property default value.
  457. @return the value of the <code>name</code> or defaultValue
  458. if it is not set.]]>
  459. </doc>
  460. </method>
  461. <method name="getRaw" return="java.lang.String"
  462. abstract="false" native="false" synchronized="false"
  463. static="false" final="false" visibility="public"
  464. deprecated="not deprecated">
  465. <param name="name" type="java.lang.String"/>
  466. <doc>
  467. <![CDATA[Get the value of the <code>name</code> property, without doing
  468. <a href="#VariableExpansion">variable expansion</a>.If the key is
  469. deprecated, it returns the value of the first key which replaces
  470. the deprecated key and is not null.
  471. @param name the property name.
  472. @return the value of the <code>name</code> property or
  473. its replacing property and null if no such property exists.]]>
  474. </doc>
  475. </method>
  476. <method name="set"
  477. abstract="false" native="false" synchronized="false"
  478. static="false" final="false" visibility="public"
  479. deprecated="not deprecated">
  480. <param name="name" type="java.lang.String"/>
  481. <param name="value" type="java.lang.String"/>
  482. <doc>
  483. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  484. <code>name</code> is deprecated or there is a deprecated name associated to it,
  485. it sets the value to both names. Name will be trimmed before put into
  486. configuration.
  487. @param name property name.
  488. @param value property value.]]>
  489. </doc>
  490. </method>
  491. <method name="set"
  492. abstract="false" native="false" synchronized="false"
  493. static="false" final="false" visibility="public"
  494. deprecated="not deprecated">
  495. <param name="name" type="java.lang.String"/>
  496. <param name="value" type="java.lang.String"/>
  497. <param name="source" type="java.lang.String"/>
  498. <doc>
  499. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  500. <code>name</code> is deprecated, it also sets the <code>value</code> to
  501. the keys that replace the deprecated key. Name will be trimmed before put
  502. into configuration.
  503. @param name property name.
  504. @param value property value.
  505. @param source the place that this configuration value came from
  506. (For debugging).
  507. @throws IllegalArgumentException when the value or name is null.]]>
  508. </doc>
  509. </method>
  510. <method name="unset"
  511. abstract="false" native="false" synchronized="true"
  512. static="false" final="false" visibility="public"
  513. deprecated="not deprecated">
  514. <param name="name" type="java.lang.String"/>
  515. <doc>
  516. <![CDATA[Unset a previously set property.]]>
  517. </doc>
  518. </method>
  519. <method name="setIfUnset"
  520. abstract="false" native="false" synchronized="true"
  521. static="false" final="false" visibility="public"
  522. deprecated="not deprecated">
  523. <param name="name" type="java.lang.String"/>
  524. <param name="value" type="java.lang.String"/>
  525. <doc>
  526. <![CDATA[Sets a property if it is currently unset.
  527. @param name the property name
  528. @param value the new value]]>
  529. </doc>
  530. </method>
  531. <method name="get" return="java.lang.String"
  532. abstract="false" native="false" synchronized="false"
  533. static="false" final="false" visibility="public"
  534. deprecated="not deprecated">
  535. <param name="name" type="java.lang.String"/>
  536. <param name="defaultValue" type="java.lang.String"/>
  537. <doc>
  538. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  539. it returns the value of the first key which replaces the deprecated key
  540. and is not null.
  541. If no such property exists,
  542. then <code>defaultValue</code> is returned.
  543. @param name property name, will be trimmed before get value.
  544. @param defaultValue default value.
  545. @return property value, or <code>defaultValue</code> if the property
  546. doesn't exist.]]>
  547. </doc>
  548. </method>
  549. <method name="getInt" return="int"
  550. abstract="false" native="false" synchronized="false"
  551. static="false" final="false" visibility="public"
  552. deprecated="not deprecated">
  553. <param name="name" type="java.lang.String"/>
  554. <param name="defaultValue" type="int"/>
  555. <doc>
  556. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  557. If no such property exists, the provided default value is returned,
  558. or if the specified value is not a valid <code>int</code>,
  559. then an error is thrown.
  560. @param name property name.
  561. @param defaultValue default value.
  562. @throws NumberFormatException when the value is invalid
  563. @return property value as an <code>int</code>,
  564. or <code>defaultValue</code>.]]>
  565. </doc>
  566. </method>
  567. <method name="getInts" return="int[]"
  568. abstract="false" native="false" synchronized="false"
  569. static="false" final="false" visibility="public"
  570. deprecated="not deprecated">
  571. <param name="name" type="java.lang.String"/>
  572. <doc>
  573. <![CDATA[Get the value of the <code>name</code> property as a set of comma-delimited
  574. <code>int</code> values.
  575. If no such property exists, an empty array is returned.
  576. @param name property name
  577. @return property value interpreted as an array of comma-delimited
  578. <code>int</code> values]]>
  579. </doc>
  580. </method>
  581. <method name="setInt"
  582. abstract="false" native="false" synchronized="false"
  583. static="false" final="false" visibility="public"
  584. deprecated="not deprecated">
  585. <param name="name" type="java.lang.String"/>
  586. <param name="value" type="int"/>
  587. <doc>
  588. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  589. @param name property name.
  590. @param value <code>int</code> value of the property.]]>
  591. </doc>
  592. </method>
  593. <method name="getLong" return="long"
  594. abstract="false" native="false" synchronized="false"
  595. static="false" final="false" visibility="public"
  596. deprecated="not deprecated">
  597. <param name="name" type="java.lang.String"/>
  598. <param name="defaultValue" type="long"/>
  599. <doc>
  600. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  601. If no such property exists, the provided default value is returned,
  602. or if the specified value is not a valid <code>long</code>,
  603. then an error is thrown.
  604. @param name property name.
  605. @param defaultValue default value.
  606. @throws NumberFormatException when the value is invalid
  607. @return property value as a <code>long</code>,
  608. or <code>defaultValue</code>.]]>
  609. </doc>
  610. </method>
  611. <method name="getLongBytes" return="long"
  612. abstract="false" native="false" synchronized="false"
  613. static="false" final="false" visibility="public"
  614. deprecated="not deprecated">
  615. <param name="name" type="java.lang.String"/>
  616. <param name="defaultValue" type="long"/>
  617. <doc>
  618. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code> or
  619. human readable format. If no such property exists, the provided default
  620. value is returned, or if the specified value is not a valid
  621. <code>long</code> or human readable format, then an error is thrown. You
  622. can use the following suffix (case insensitive): k(kilo), m(mega), g(giga),
  623. t(tera), p(peta), e(exa)
  624. @param name property name.
  625. @param defaultValue default value.
  626. @throws NumberFormatException when the value is invalid
  627. @return property value as a <code>long</code>,
  628. or <code>defaultValue</code>.]]>
  629. </doc>
  630. </method>
  631. <method name="setLong"
  632. abstract="false" native="false" synchronized="false"
  633. static="false" final="false" visibility="public"
  634. deprecated="not deprecated">
  635. <param name="name" type="java.lang.String"/>
  636. <param name="value" type="long"/>
  637. <doc>
  638. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  639. @param name property name.
  640. @param value <code>long</code> value of the property.]]>
  641. </doc>
  642. </method>
  643. <method name="getFloat" return="float"
  644. abstract="false" native="false" synchronized="false"
  645. static="false" final="false" visibility="public"
  646. deprecated="not deprecated">
  647. <param name="name" type="java.lang.String"/>
  648. <param name="defaultValue" type="float"/>
  649. <doc>
  650. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  651. If no such property exists, the provided default value is returned,
  652. or if the specified value is not a valid <code>float</code>,
  653. then an error is thrown.
  654. @param name property name.
  655. @param defaultValue default value.
  656. @throws NumberFormatException when the value is invalid
  657. @return property value as a <code>float</code>,
  658. or <code>defaultValue</code>.]]>
  659. </doc>
  660. </method>
  661. <method name="setFloat"
  662. abstract="false" native="false" synchronized="false"
  663. static="false" final="false" visibility="public"
  664. deprecated="not deprecated">
  665. <param name="name" type="java.lang.String"/>
  666. <param name="value" type="float"/>
  667. <doc>
  668. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  669. @param name property name.
  670. @param value property value.]]>
  671. </doc>
  672. </method>
  673. <method name="getDouble" return="double"
  674. abstract="false" native="false" synchronized="false"
  675. static="false" final="false" visibility="public"
  676. deprecated="not deprecated">
  677. <param name="name" type="java.lang.String"/>
  678. <param name="defaultValue" type="double"/>
  679. <doc>
  680. <![CDATA[Get the value of the <code>name</code> property as a <code>double</code>.
  681. If no such property exists, the provided default value is returned,
  682. or if the specified value is not a valid <code>double</code>,
  683. then an error is thrown.
  684. @param name property name.
  685. @param defaultValue default value.
  686. @throws NumberFormatException when the value is invalid
  687. @return property value as a <code>double</code>,
  688. or <code>defaultValue</code>.]]>
  689. </doc>
  690. </method>
  691. <method name="setDouble"
  692. abstract="false" native="false" synchronized="false"
  693. static="false" final="false" visibility="public"
  694. deprecated="not deprecated">
  695. <param name="name" type="java.lang.String"/>
  696. <param name="value" type="double"/>
  697. <doc>
  698. <![CDATA[Set the value of the <code>name</code> property to a <code>double</code>.
  699. @param name property name.
  700. @param value property value.]]>
  701. </doc>
  702. </method>
  703. <method name="getBoolean" return="boolean"
  704. abstract="false" native="false" synchronized="false"
  705. static="false" final="false" visibility="public"
  706. deprecated="not deprecated">
  707. <param name="name" type="java.lang.String"/>
  708. <param name="defaultValue" type="boolean"/>
  709. <doc>
  710. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  711. If no such property is specified, or if the specified value is not a valid
  712. <code>boolean</code>, then <code>defaultValue</code> is returned.
  713. @param name property name.
  714. @param defaultValue default value.
  715. @return property value as a <code>boolean</code>,
  716. or <code>defaultValue</code>.]]>
  717. </doc>
  718. </method>
  719. <method name="setBoolean"
  720. abstract="false" native="false" synchronized="false"
  721. static="false" final="false" visibility="public"
  722. deprecated="not deprecated">
  723. <param name="name" type="java.lang.String"/>
  724. <param name="value" type="boolean"/>
  725. <doc>
  726. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  727. @param name property name.
  728. @param value <code>boolean</code> value of the property.]]>
  729. </doc>
  730. </method>
  731. <method name="setBooleanIfUnset"
  732. abstract="false" native="false" synchronized="false"
  733. static="false" final="false" visibility="public"
  734. deprecated="not deprecated">
  735. <param name="name" type="java.lang.String"/>
  736. <param name="value" type="boolean"/>
  737. <doc>
  738. <![CDATA[Set the given property, if it is currently unset.
  739. @param name property name
  740. @param value new value]]>
  741. </doc>
  742. </method>
  743. <method name="setEnum"
  744. abstract="false" native="false" synchronized="false"
  745. static="false" final="false" visibility="public"
  746. deprecated="not deprecated">
  747. <param name="name" type="java.lang.String"/>
  748. <param name="value" type="T"/>
  749. <doc>
  750. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  751. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  752. @param name property name
  753. @param value new value]]>
  754. </doc>
  755. </method>
  756. <method name="getEnum" return="T"
  757. abstract="false" native="false" synchronized="false"
  758. static="false" final="false" visibility="public"
  759. deprecated="not deprecated">
  760. <param name="name" type="java.lang.String"/>
  761. <param name="defaultValue" type="T"/>
  762. <doc>
  763. <![CDATA[Return value matching this enumerated type.
  764. Note that the returned value is trimmed by this method.
  765. @param name Property name
  766. @param defaultValue Value returned if no mapping exists
  767. @throws IllegalArgumentException If mapping is illegal for the type
  768. provided]]>
  769. </doc>
  770. </method>
  771. <method name="setTimeDuration"
  772. abstract="false" native="false" synchronized="false"
  773. static="false" final="false" visibility="public"
  774. deprecated="not deprecated">
  775. <param name="name" type="java.lang.String"/>
  776. <param name="value" type="long"/>
  777. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  778. <doc>
  779. <![CDATA[Set the value of <code>name</code> to the given time duration. This
  780. is equivalent to <code>set(&lt;name&gt;, value + &lt;time suffix&gt;)</code>.
  781. @param name Property name
  782. @param value Time duration
  783. @param unit Unit of time]]>
  784. </doc>
  785. </method>
  786. <method name="getTimeDuration" return="long"
  787. abstract="false" native="false" synchronized="false"
  788. static="false" final="false" visibility="public"
  789. deprecated="not deprecated">
  790. <param name="name" type="java.lang.String"/>
  791. <param name="defaultValue" type="long"/>
  792. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  793. <doc>
  794. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  795. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  796. (ms), seconds (s), minutes (m), hours (h), and days (d).
  797. @param name Property name
  798. @param defaultValue Value returned if no mapping exists.
  799. @param unit Unit to convert the stored property, if it exists.
  800. @throws NumberFormatException If the property stripped of its unit is not
  801. a number]]>
  802. </doc>
  803. </method>
  804. <method name="getTimeDurations" return="long[]"
  805. abstract="false" native="false" synchronized="false"
  806. static="false" final="false" visibility="public"
  807. deprecated="not deprecated">
  808. <param name="name" type="java.lang.String"/>
  809. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  810. </method>
  811. <method name="getPattern" return="java.util.regex.Pattern"
  812. abstract="false" native="false" synchronized="false"
  813. static="false" final="false" visibility="public"
  814. deprecated="not deprecated">
  815. <param name="name" type="java.lang.String"/>
  816. <param name="defaultValue" type="java.util.regex.Pattern"/>
  817. <doc>
  818. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  819. If no such property is specified, or if the specified value is not a valid
  820. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  821. Note that the returned value is NOT trimmed by this method.
  822. @param name property name
  823. @param defaultValue default value
  824. @return property value as a compiled Pattern, or defaultValue]]>
  825. </doc>
  826. </method>
  827. <method name="setPattern"
  828. abstract="false" native="false" synchronized="false"
  829. static="false" final="false" visibility="public"
  830. deprecated="not deprecated">
  831. <param name="name" type="java.lang.String"/>
  832. <param name="pattern" type="java.util.regex.Pattern"/>
  833. <doc>
  834. <![CDATA[Set the given property to <code>Pattern</code>.
  835. If the pattern is passed as null, sets the empty pattern which results in
  836. further calls to getPattern(...) returning the default value.
  837. @param name property name
  838. @param pattern new value]]>
  839. </doc>
  840. </method>
  841. <method name="getPropertySources" return="java.lang.String[]"
  842. abstract="false" native="false" synchronized="true"
  843. static="false" final="false" visibility="public"
  844. deprecated="not deprecated">
  845. <param name="name" type="java.lang.String"/>
  846. <doc>
  847. <![CDATA[Gets information about why a property was set. Typically this is the
  848. path to the resource objects (file, URL, etc.) the property came from, but
  849. it can also indicate that it was set programatically, or because of the
  850. command line.
  851. @param name - The property name to get the source of.
  852. @return null - If the property or its source wasn't found. Otherwise,
  853. returns a list of the sources of the resource. The older sources are
  854. the first ones in the list. So for example if a configuration is set from
  855. the command line, and then written out to a file that is read back in the
  856. first entry would indicate that it was set from the command line, while
  857. the second one would indicate the file that the new configuration was read
  858. in from.]]>
  859. </doc>
  860. </method>
  861. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  862. abstract="false" native="false" synchronized="false"
  863. static="false" final="false" visibility="public"
  864. deprecated="not deprecated">
  865. <param name="name" type="java.lang.String"/>
  866. <param name="defaultValue" type="java.lang.String"/>
  867. <doc>
  868. <![CDATA[Parse the given attribute as a set of integer ranges
  869. @param name the attribute name
  870. @param defaultValue the default value if it is not set
  871. @return a new set of ranges from the configured value]]>
  872. </doc>
  873. </method>
  874. <method name="getStringCollection" return="java.util.Collection"
  875. abstract="false" native="false" synchronized="false"
  876. static="false" final="false" visibility="public"
  877. deprecated="not deprecated">
  878. <param name="name" type="java.lang.String"/>
  879. <doc>
  880. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  881. a collection of <code>String</code>s.
  882. If no such property is specified then empty collection is returned.
  883. <p>
  884. This is an optimized version of {@link #getStrings(String)}
  885. @param name property name.
  886. @return property value as a collection of <code>String</code>s.]]>
  887. </doc>
  888. </method>
  889. <method name="getStrings" return="java.lang.String[]"
  890. abstract="false" native="false" synchronized="false"
  891. static="false" final="false" visibility="public"
  892. deprecated="not deprecated">
  893. <param name="name" type="java.lang.String"/>
  894. <doc>
  895. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  896. an array of <code>String</code>s.
  897. If no such property is specified then <code>null</code> is returned.
  898. @param name property name.
  899. @return property value as an array of <code>String</code>s,
  900. or <code>null</code>.]]>
  901. </doc>
  902. </method>
  903. <method name="getStrings" return="java.lang.String[]"
  904. abstract="false" native="false" synchronized="false"
  905. static="false" final="false" visibility="public"
  906. deprecated="not deprecated">
  907. <param name="name" type="java.lang.String"/>
  908. <param name="defaultValue" type="java.lang.String[]"/>
  909. <doc>
  910. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  911. an array of <code>String</code>s.
  912. If no such property is specified then default value is returned.
  913. @param name property name.
  914. @param defaultValue The default value
  915. @return property value as an array of <code>String</code>s,
  916. or default value.]]>
  917. </doc>
  918. </method>
  919. <method name="getTrimmedStringCollection" return="java.util.Collection"
  920. abstract="false" native="false" synchronized="false"
  921. static="false" final="false" visibility="public"
  922. deprecated="not deprecated">
  923. <param name="name" type="java.lang.String"/>
  924. <doc>
  925. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  926. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  927. If no such property is specified then empty <code>Collection</code> is returned.
  928. @param name property name.
  929. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  930. </doc>
  931. </method>
  932. <method name="getTrimmedStrings" return="java.lang.String[]"
  933. abstract="false" native="false" synchronized="false"
  934. static="false" final="false" visibility="public"
  935. deprecated="not deprecated">
  936. <param name="name" type="java.lang.String"/>
  937. <doc>
  938. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  939. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  940. If no such property is specified then an empty array is returned.
  941. @param name property name.
  942. @return property value as an array of trimmed <code>String</code>s,
  943. or empty array.]]>
  944. </doc>
  945. </method>
  946. <method name="getTrimmedStrings" return="java.lang.String[]"
  947. abstract="false" native="false" synchronized="false"
  948. static="false" final="false" visibility="public"
  949. deprecated="not deprecated">
  950. <param name="name" type="java.lang.String"/>
  951. <param name="defaultValue" type="java.lang.String[]"/>
  952. <doc>
  953. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  954. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  955. If no such property is specified then default value is returned.
  956. @param name property name.
  957. @param defaultValue The default value
  958. @return property value as an array of trimmed <code>String</code>s,
  959. or default value.]]>
  960. </doc>
  961. </method>
  962. <method name="setStrings"
  963. abstract="false" native="false" synchronized="false"
  964. static="false" final="false" visibility="public"
  965. deprecated="not deprecated">
  966. <param name="name" type="java.lang.String"/>
  967. <param name="values" type="java.lang.String[]"/>
  968. <doc>
  969. <![CDATA[Set the array of string values for the <code>name</code> property as
  970. as comma delimited values.
  971. @param name property name.
  972. @param values The values]]>
  973. </doc>
  974. </method>
  975. <method name="getPassword" return="char[]"
  976. abstract="false" native="false" synchronized="false"
  977. static="false" final="false" visibility="public"
  978. deprecated="not deprecated">
  979. <param name="name" type="java.lang.String"/>
  980. <exception name="IOException" type="java.io.IOException"/>
  981. <doc>
  982. <![CDATA[Get the value for a known password configuration element.
  983. In order to enable the elimination of clear text passwords in config,
  984. this method attempts to resolve the property name as an alias through
  985. the CredentialProvider API and conditionally fallsback to config.
  986. @param name property name
  987. @return password]]>
  988. </doc>
  989. </method>
  990. <method name="getPasswordFromCredentialProviders" return="char[]"
  991. abstract="false" native="false" synchronized="false"
  992. static="false" final="false" visibility="public"
  993. deprecated="not deprecated">
  994. <param name="name" type="java.lang.String"/>
  995. <exception name="IOException" type="java.io.IOException"/>
  996. <doc>
  997. <![CDATA[Try and resolve the provided element name as a credential provider
  998. alias.
  999. @param name alias of the provisioned credential
  1000. @return password or null if not found
  1001. @throws IOException]]>
  1002. </doc>
  1003. </method>
  1004. <method name="getPasswordFromConfig" return="char[]"
  1005. abstract="false" native="false" synchronized="false"
  1006. static="false" final="false" visibility="protected"
  1007. deprecated="not deprecated">
  1008. <param name="name" type="java.lang.String"/>
  1009. <doc>
  1010. <![CDATA[Fallback to clear text passwords in configuration.
  1011. @param name
  1012. @return clear text password or null]]>
  1013. </doc>
  1014. </method>
  1015. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1016. abstract="false" native="false" synchronized="false"
  1017. static="false" final="false" visibility="public"
  1018. deprecated="not deprecated">
  1019. <param name="hostProperty" type="java.lang.String"/>
  1020. <param name="addressProperty" type="java.lang.String"/>
  1021. <param name="defaultAddressValue" type="java.lang.String"/>
  1022. <param name="defaultPort" type="int"/>
  1023. <doc>
  1024. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  1025. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  1026. <code>null</code>, <code>addressProperty</code> will be used. This
  1027. is useful for cases where we want to differentiate between host
  1028. bind address and address clients should use to establish connection.
  1029. @param hostProperty bind host property name.
  1030. @param addressProperty address property name.
  1031. @param defaultAddressValue the default value
  1032. @param defaultPort the default port
  1033. @return InetSocketAddress]]>
  1034. </doc>
  1035. </method>
  1036. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1037. abstract="false" native="false" synchronized="false"
  1038. static="false" final="false" visibility="public"
  1039. deprecated="not deprecated">
  1040. <param name="name" type="java.lang.String"/>
  1041. <param name="defaultAddress" type="java.lang.String"/>
  1042. <param name="defaultPort" type="int"/>
  1043. <doc>
  1044. <![CDATA[Get the socket address for <code>name</code> property as a
  1045. <code>InetSocketAddress</code>.
  1046. @param name property name.
  1047. @param defaultAddress the default value
  1048. @param defaultPort the default port
  1049. @return InetSocketAddress]]>
  1050. </doc>
  1051. </method>
  1052. <method name="setSocketAddr"
  1053. abstract="false" native="false" synchronized="false"
  1054. static="false" final="false" visibility="public"
  1055. deprecated="not deprecated">
  1056. <param name="name" type="java.lang.String"/>
  1057. <param name="addr" type="java.net.InetSocketAddress"/>
  1058. <doc>
  1059. <![CDATA[Set the socket address for the <code>name</code> property as
  1060. a <code>host:port</code>.]]>
  1061. </doc>
  1062. </method>
  1063. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1064. abstract="false" native="false" synchronized="false"
  1065. static="false" final="false" visibility="public"
  1066. deprecated="not deprecated">
  1067. <param name="hostProperty" type="java.lang.String"/>
  1068. <param name="addressProperty" type="java.lang.String"/>
  1069. <param name="defaultAddressValue" type="java.lang.String"/>
  1070. <param name="addr" type="java.net.InetSocketAddress"/>
  1071. <doc>
  1072. <![CDATA[Set the socket address a client can use to connect for the
  1073. <code>name</code> property as a <code>host:port</code>. The wildcard
  1074. address is replaced with the local host's address. If the host and address
  1075. properties are configured the host component of the address will be combined
  1076. with the port component of the addr to generate the address. This is to allow
  1077. optional control over which host name is used in multi-home bind-host
  1078. cases where a host can have multiple names
  1079. @param hostProperty the bind-host configuration name
  1080. @param addressProperty the service address configuration name
  1081. @param defaultAddressValue the service default address configuration value
  1082. @param addr InetSocketAddress of the service listener
  1083. @return InetSocketAddress for clients to connect]]>
  1084. </doc>
  1085. </method>
  1086. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1087. abstract="false" native="false" synchronized="false"
  1088. static="false" final="false" visibility="public"
  1089. deprecated="not deprecated">
  1090. <param name="name" type="java.lang.String"/>
  1091. <param name="addr" type="java.net.InetSocketAddress"/>
  1092. <doc>
  1093. <![CDATA[Set the socket address a client can use to connect for the
  1094. <code>name</code> property as a <code>host:port</code>. The wildcard
  1095. address is replaced with the local host's address.
  1096. @param name property name.
  1097. @param addr InetSocketAddress of a listener to store in the given property
  1098. @return InetSocketAddress for clients to connect]]>
  1099. </doc>
  1100. </method>
  1101. <method name="getClassByName" return="java.lang.Class"
  1102. abstract="false" native="false" synchronized="false"
  1103. static="false" final="false" visibility="public"
  1104. deprecated="not deprecated">
  1105. <param name="name" type="java.lang.String"/>
  1106. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1107. <doc>
  1108. <![CDATA[Load a class by name.
  1109. @param name the class name.
  1110. @return the class object.
  1111. @throws ClassNotFoundException if the class is not found.]]>
  1112. </doc>
  1113. </method>
  1114. <method name="getClassByNameOrNull" return="java.lang.Class"
  1115. abstract="false" native="false" synchronized="false"
  1116. static="false" final="false" visibility="public"
  1117. deprecated="not deprecated">
  1118. <param name="name" type="java.lang.String"/>
  1119. <doc>
  1120. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1121. if it couldn't be loaded. This is to avoid the overhead of creating
  1122. an exception.
  1123. @param name the class name
  1124. @return the class object, or null if it could not be found.]]>
  1125. </doc>
  1126. </method>
  1127. <method name="getClasses" return="java.lang.Class[]"
  1128. abstract="false" native="false" synchronized="false"
  1129. static="false" final="false" visibility="public"
  1130. deprecated="not deprecated">
  1131. <param name="name" type="java.lang.String"/>
  1132. <param name="defaultValue" type="java.lang.Class[]"/>
  1133. <doc>
  1134. <![CDATA[Get the value of the <code>name</code> property
  1135. as an array of <code>Class</code>.
  1136. The value of the property specifies a list of comma separated class names.
  1137. If no such property is specified, then <code>defaultValue</code> is
  1138. returned.
  1139. @param name the property name.
  1140. @param defaultValue default value.
  1141. @return property value as a <code>Class[]</code>,
  1142. or <code>defaultValue</code>.]]>
  1143. </doc>
  1144. </method>
  1145. <method name="getClass" return="java.lang.Class"
  1146. abstract="false" native="false" synchronized="false"
  1147. static="false" final="false" visibility="public"
  1148. deprecated="not deprecated">
  1149. <param name="name" type="java.lang.String"/>
  1150. <param name="defaultValue" type="java.lang.Class"/>
  1151. <doc>
  1152. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1153. If no such property is specified, then <code>defaultValue</code> is
  1154. returned.
  1155. @param name the class name.
  1156. @param defaultValue default value.
  1157. @return property value as a <code>Class</code>,
  1158. or <code>defaultValue</code>.]]>
  1159. </doc>
  1160. </method>
  1161. <method name="getClass" return="java.lang.Class"
  1162. abstract="false" native="false" synchronized="false"
  1163. static="false" final="false" visibility="public"
  1164. deprecated="not deprecated">
  1165. <param name="name" type="java.lang.String"/>
  1166. <param name="defaultValue" type="java.lang.Class"/>
  1167. <param name="xface" type="java.lang.Class"/>
  1168. <doc>
  1169. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1170. implementing the interface specified by <code>xface</code>.
  1171. If no such property is specified, then <code>defaultValue</code> is
  1172. returned.
  1173. An exception is thrown if the returned class does not implement the named
  1174. interface.
  1175. @param name the class name.
  1176. @param defaultValue default value.
  1177. @param xface the interface implemented by the named class.
  1178. @return property value as a <code>Class</code>,
  1179. or <code>defaultValue</code>.]]>
  1180. </doc>
  1181. </method>
  1182. <method name="getInstances" return="java.util.List"
  1183. abstract="false" native="false" synchronized="false"
  1184. static="false" final="false" visibility="public"
  1185. deprecated="not deprecated">
  1186. <param name="name" type="java.lang.String"/>
  1187. <param name="xface" type="java.lang.Class"/>
  1188. <doc>
  1189. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1190. of objects implementing the interface specified by <code>xface</code>.
  1191. An exception is thrown if any of the classes does not exist, or if it does
  1192. not implement the named interface.
  1193. @param name the property name.
  1194. @param xface the interface implemented by the classes named by
  1195. <code>name</code>.
  1196. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1197. </doc>
  1198. </method>
  1199. <method name="setClass"
  1200. abstract="false" native="false" synchronized="false"
  1201. static="false" final="false" visibility="public"
  1202. deprecated="not deprecated">
  1203. <param name="name" type="java.lang.String"/>
  1204. <param name="theClass" type="java.lang.Class"/>
  1205. <param name="xface" type="java.lang.Class"/>
  1206. <doc>
  1207. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1208. <code>theClass</code> implementing the given interface <code>xface</code>.
  1209. An exception is thrown if <code>theClass</code> does not implement the
  1210. interface <code>xface</code>.
  1211. @param name property name.
  1212. @param theClass property value.
  1213. @param xface the interface implemented by the named class.]]>
  1214. </doc>
  1215. </method>
  1216. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1217. abstract="false" native="false" synchronized="false"
  1218. static="false" final="false" visibility="public"
  1219. deprecated="not deprecated">
  1220. <param name="dirsProp" type="java.lang.String"/>
  1221. <param name="path" type="java.lang.String"/>
  1222. <exception name="IOException" type="java.io.IOException"/>
  1223. <doc>
  1224. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1225. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1226. then one is chosen based on <i>path</i>'s hash code. If the selected
  1227. directory does not exist, an attempt is made to create it.
  1228. @param dirsProp directory in which to locate the file.
  1229. @param path file-path.
  1230. @return local file under the directory with the given path.]]>
  1231. </doc>
  1232. </method>
  1233. <method name="getFile" return="java.io.File"
  1234. abstract="false" native="false" synchronized="false"
  1235. static="false" final="false" visibility="public"
  1236. deprecated="not deprecated">
  1237. <param name="dirsProp" type="java.lang.String"/>
  1238. <param name="path" type="java.lang.String"/>
  1239. <exception name="IOException" type="java.io.IOException"/>
  1240. <doc>
  1241. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1242. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1243. then one is chosen based on <i>path</i>'s hash code. If the selected
  1244. directory does not exist, an attempt is made to create it.
  1245. @param dirsProp directory in which to locate the file.
  1246. @param path file-path.
  1247. @return local file under the directory with the given path.]]>
  1248. </doc>
  1249. </method>
  1250. <method name="getResource" return="java.net.URL"
  1251. abstract="false" native="false" synchronized="false"
  1252. static="false" final="false" visibility="public"
  1253. deprecated="not deprecated">
  1254. <param name="name" type="java.lang.String"/>
  1255. <doc>
  1256. <![CDATA[Get the {@link URL} for the named resource.
  1257. @param name resource name.
  1258. @return the url for the named resource.]]>
  1259. </doc>
  1260. </method>
  1261. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1262. abstract="false" native="false" synchronized="false"
  1263. static="false" final="false" visibility="public"
  1264. deprecated="not deprecated">
  1265. <param name="name" type="java.lang.String"/>
  1266. <doc>
  1267. <![CDATA[Get an input stream attached to the configuration resource with the
  1268. given <code>name</code>.
  1269. @param name configuration resource name.
  1270. @return an input stream attached to the resource.]]>
  1271. </doc>
  1272. </method>
  1273. <method name="getConfResourceAsReader" return="java.io.Reader"
  1274. abstract="false" native="false" synchronized="false"
  1275. static="false" final="false" visibility="public"
  1276. deprecated="not deprecated">
  1277. <param name="name" type="java.lang.String"/>
  1278. <doc>
  1279. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1280. given <code>name</code>.
  1281. @param name configuration resource name.
  1282. @return a reader attached to the resource.]]>
  1283. </doc>
  1284. </method>
  1285. <method name="getFinalParameters" return="java.util.Set"
  1286. abstract="false" native="false" synchronized="false"
  1287. static="false" final="false" visibility="public"
  1288. deprecated="not deprecated">
  1289. <doc>
  1290. <![CDATA[Get the set of parameters marked final.
  1291. @return final parameter set.]]>
  1292. </doc>
  1293. </method>
  1294. <method name="getProps" return="java.util.Properties"
  1295. abstract="false" native="false" synchronized="true"
  1296. static="false" final="false" visibility="protected"
  1297. deprecated="not deprecated">
  1298. </method>
  1299. <method name="size" return="int"
  1300. abstract="false" native="false" synchronized="false"
  1301. static="false" final="false" visibility="public"
  1302. deprecated="not deprecated">
  1303. <doc>
  1304. <![CDATA[Return the number of keys in the configuration.
  1305. @return number of keys in the configuration.]]>
  1306. </doc>
  1307. </method>
  1308. <method name="clear"
  1309. abstract="false" native="false" synchronized="false"
  1310. static="false" final="false" visibility="public"
  1311. deprecated="not deprecated">
  1312. <doc>
  1313. <![CDATA[Clears all keys from the configuration.]]>
  1314. </doc>
  1315. </method>
  1316. <method name="iterator" return="java.util.Iterator"
  1317. abstract="false" native="false" synchronized="false"
  1318. static="false" final="false" visibility="public"
  1319. deprecated="not deprecated">
  1320. <doc>
  1321. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1322. key-value pairs in the configuration.
  1323. @return an iterator over the entries.]]>
  1324. </doc>
  1325. </method>
  1326. <method name="getPropsWithPrefix" return="java.util.Map"
  1327. abstract="false" native="false" synchronized="false"
  1328. static="false" final="false" visibility="public"
  1329. deprecated="not deprecated">
  1330. <param name="confPrefix" type="java.lang.String"/>
  1331. <doc>
  1332. <![CDATA[Constructs a mapping of configuration and includes all properties that
  1333. start with the specified configuration prefix. Property names in the
  1334. mapping are trimmed to remove the configuration prefix.
  1335. @param confPrefix configuration prefix
  1336. @return mapping of configuration properties with prefix stripped]]>
  1337. </doc>
  1338. </method>
  1339. <method name="writeXml"
  1340. abstract="false" native="false" synchronized="false"
  1341. static="false" final="false" visibility="public"
  1342. deprecated="not deprecated">
  1343. <param name="out" type="java.io.OutputStream"/>
  1344. <exception name="IOException" type="java.io.IOException"/>
  1345. <doc>
  1346. <![CDATA[Write out the non-default properties in this configuration to the given
  1347. {@link OutputStream} using UTF-8 encoding.
  1348. @param out the output stream to write to.]]>
  1349. </doc>
  1350. </method>
  1351. <method name="writeXml"
  1352. abstract="false" native="false" synchronized="false"
  1353. static="false" final="false" visibility="public"
  1354. deprecated="not deprecated">
  1355. <param name="out" type="java.io.Writer"/>
  1356. <exception name="IOException" type="java.io.IOException"/>
  1357. </method>
  1358. <method name="writeXml"
  1359. abstract="false" native="false" synchronized="false"
  1360. static="false" final="false" visibility="public"
  1361. deprecated="not deprecated">
  1362. <param name="propertyName" type="java.lang.String"/>
  1363. <param name="out" type="java.io.Writer"/>
  1364. <exception name="IOException" type="java.io.IOException"/>
  1365. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  1366. <doc>
  1367. <![CDATA[Write out the non-default properties in this configuration to the
  1368. given {@link Writer}.
  1369. <li>
  1370. When property name is not empty and the property exists in the
  1371. configuration, this method writes the property and its attributes
  1372. to the {@link Writer}.
  1373. </li>
  1374. <p>
  1375. <li>
  1376. When property name is null or empty, this method writes all the
  1377. configuration properties and their attributes to the {@link Writer}.
  1378. </li>
  1379. <p>
  1380. <li>
  1381. When property name is not empty but the property doesn't exist in
  1382. the configuration, this method throws an {@link IllegalArgumentException}.
  1383. </li>
  1384. <p>
  1385. @param out the writer to write to.]]>
  1386. </doc>
  1387. </method>
  1388. <method name="dumpConfiguration"
  1389. abstract="false" native="false" synchronized="false"
  1390. static="true" final="false" visibility="public"
  1391. deprecated="not deprecated">
  1392. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1393. <param name="propertyName" type="java.lang.String"/>
  1394. <param name="out" type="java.io.Writer"/>
  1395. <exception name="IOException" type="java.io.IOException"/>
  1396. <doc>
  1397. <![CDATA[Writes properties and their attributes (final and resource)
  1398. to the given {@link Writer}.
  1399. <li>
  1400. When propertyName is not empty, and the property exists
  1401. in the configuration, the format of the output would be,
  1402. <pre>
  1403. {
  1404. "property": {
  1405. "key" : "key1",
  1406. "value" : "value1",
  1407. "isFinal" : "key1.isFinal",
  1408. "resource" : "key1.resource"
  1409. }
  1410. }
  1411. </pre>
  1412. </li>
  1413. <li>
  1414. When propertyName is null or empty, it behaves same as
  1415. {@link #dumpConfiguration(Configuration, Writer)}, the
  1416. output would be,
  1417. <pre>
  1418. { "properties" :
  1419. [ { key : "key1",
  1420. value : "value1",
  1421. isFinal : "key1.isFinal",
  1422. resource : "key1.resource" },
  1423. { key : "key2",
  1424. value : "value2",
  1425. isFinal : "ke2.isFinal",
  1426. resource : "key2.resource" }
  1427. ]
  1428. }
  1429. </pre>
  1430. </li>
  1431. <li>
  1432. When propertyName is not empty, and the property is not
  1433. found in the configuration, this method will throw an
  1434. {@link IllegalArgumentException}.
  1435. </li>
  1436. <p>
  1437. @param config the configuration
  1438. @param propertyName property name
  1439. @param out the Writer to write to
  1440. @throws IOException
  1441. @throws IllegalArgumentException when property name is not
  1442. empty and the property is not found in configuration]]>
  1443. </doc>
  1444. </method>
  1445. <method name="dumpConfiguration"
  1446. abstract="false" native="false" synchronized="false"
  1447. static="true" final="false" visibility="public"
  1448. deprecated="not deprecated">
  1449. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1450. <param name="out" type="java.io.Writer"/>
  1451. <exception name="IOException" type="java.io.IOException"/>
  1452. <doc>
  1453. <![CDATA[Writes out all properties and their attributes (final and resource) to
  1454. the given {@link Writer}, the format of the output would be,
  1455. <pre>
  1456. { "properties" :
  1457. [ { key : "key1",
  1458. value : "value1",
  1459. isFinal : "key1.isFinal",
  1460. resource : "key1.resource" },
  1461. { key : "key2",
  1462. value : "value2",
  1463. isFinal : "ke2.isFinal",
  1464. resource : "key2.resource" }
  1465. ]
  1466. }
  1467. </pre>
  1468. It does not output the properties of the configuration object which
  1469. is loaded from an input stream.
  1470. <p>
  1471. @param config the configuration
  1472. @param out the Writer to write to
  1473. @throws IOException]]>
  1474. </doc>
  1475. </method>
  1476. <method name="getClassLoader" return="java.lang.ClassLoader"
  1477. abstract="false" native="false" synchronized="false"
  1478. static="false" final="false" visibility="public"
  1479. deprecated="not deprecated">
  1480. <doc>
  1481. <![CDATA[Get the {@link ClassLoader} for this job.
  1482. @return the correct class loader.]]>
  1483. </doc>
  1484. </method>
  1485. <method name="setClassLoader"
  1486. abstract="false" native="false" synchronized="false"
  1487. static="false" final="false" visibility="public"
  1488. deprecated="not deprecated">
  1489. <param name="classLoader" type="java.lang.ClassLoader"/>
  1490. <doc>
  1491. <![CDATA[Set the class loader that will be used to load the various objects.
  1492. @param classLoader the new class loader.]]>
  1493. </doc>
  1494. </method>
  1495. <method name="toString" return="java.lang.String"
  1496. abstract="false" native="false" synchronized="false"
  1497. static="false" final="false" visibility="public"
  1498. deprecated="not deprecated">
  1499. </method>
  1500. <method name="setQuietMode"
  1501. abstract="false" native="false" synchronized="true"
  1502. static="false" final="false" visibility="public"
  1503. deprecated="not deprecated">
  1504. <param name="quietmode" type="boolean"/>
  1505. <doc>
  1506. <![CDATA[Set the quietness-mode.
  1507. In the quiet-mode, error and informational messages might not be logged.
  1508. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1509. to turn it off.]]>
  1510. </doc>
  1511. </method>
  1512. <method name="main"
  1513. abstract="false" native="false" synchronized="false"
  1514. static="true" final="false" visibility="public"
  1515. deprecated="not deprecated">
  1516. <param name="args" type="java.lang.String[]"/>
  1517. <exception name="Exception" type="java.lang.Exception"/>
  1518. <doc>
  1519. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  1520. </doc>
  1521. </method>
  1522. <method name="readFields"
  1523. abstract="false" native="false" synchronized="false"
  1524. static="false" final="false" visibility="public"
  1525. deprecated="not deprecated">
  1526. <param name="in" type="java.io.DataInput"/>
  1527. <exception name="IOException" type="java.io.IOException"/>
  1528. </method>
  1529. <method name="write"
  1530. abstract="false" native="false" synchronized="false"
  1531. static="false" final="false" visibility="public"
  1532. deprecated="not deprecated">
  1533. <param name="out" type="java.io.DataOutput"/>
  1534. <exception name="IOException" type="java.io.IOException"/>
  1535. </method>
  1536. <method name="getValByRegex" return="java.util.Map"
  1537. abstract="false" native="false" synchronized="false"
  1538. static="false" final="false" visibility="public"
  1539. deprecated="not deprecated">
  1540. <param name="regex" type="java.lang.String"/>
  1541. <doc>
  1542. <![CDATA[get keys matching the the regex
  1543. @param regex
  1544. @return Map<String,String> with matching keys]]>
  1545. </doc>
  1546. </method>
  1547. <method name="dumpDeprecatedKeys"
  1548. abstract="false" native="false" synchronized="false"
  1549. static="true" final="false" visibility="public"
  1550. deprecated="not deprecated">
  1551. </method>
  1552. <method name="hasWarnedDeprecation" return="boolean"
  1553. abstract="false" native="false" synchronized="false"
  1554. static="true" final="false" visibility="public"
  1555. deprecated="not deprecated">
  1556. <param name="name" type="java.lang.String"/>
  1557. <doc>
  1558. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1559. deprecated then always return false]]>
  1560. </doc>
  1561. </method>
  1562. <doc>
  1563. <![CDATA[Provides access to configuration parameters.
  1564. <h4 id="Resources">Resources</h4>
  1565. <p>Configurations are specified by resources. A resource contains a set of
  1566. name/value pairs as XML data. Each resource is named by either a
  1567. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1568. then the classpath is examined for a file with that name. If named by a
  1569. <code>Path</code>, then the local filesystem is examined directly, without
  1570. referring to the classpath.
  1571. <p>Unless explicitly turned off, Hadoop by default specifies two
  1572. resources, loaded in-order from the classpath: <ol>
  1573. <li><tt>
  1574. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1575. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1576. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1577. installation.</li>
  1578. </ol>
  1579. Applications may add additional resources, which are loaded
  1580. subsequent to these resources in the order they are added.
  1581. <h4 id="FinalParams">Final Parameters</h4>
  1582. <p>Configuration parameters may be declared <i>final</i>.
  1583. Once a resource declares a value final, no subsequently-loaded
  1584. resource can alter that value.
  1585. For example, one might define a final parameter with:
  1586. <tt><pre>
  1587. &lt;property&gt;
  1588. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1589. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1590. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1591. &lt;/property&gt;</pre></tt>
  1592. Administrators typically define parameters as final in
  1593. <tt>core-site.xml</tt> for values that user applications may not alter.
  1594. <h4 id="VariableExpansion">Variable Expansion</h4>
  1595. <p>Value strings are first processed for <i>variable expansion</i>. The
  1596. available properties are:<ol>
  1597. <li>Other properties defined in this Configuration; and, if a name is
  1598. undefined here,</li>
  1599. <li>Properties in {@link System#getProperties()}.</li>
  1600. </ol>
  1601. <p>For example, if a configuration resource contains the following property
  1602. definitions:
  1603. <tt><pre>
  1604. &lt;property&gt;
  1605. &lt;name&gt;basedir&lt;/name&gt;
  1606. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1607. &lt;/property&gt;
  1608. &lt;property&gt;
  1609. &lt;name&gt;tempdir&lt;/name&gt;
  1610. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1611. &lt;/property&gt;</pre></tt>
  1612. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1613. will be resolved to another property in this Configuration, while
  1614. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1615. of the System property with that name.
  1616. <p>When <tt>conf.get("otherdir")</tt> is called, then <tt>${<i>env.BASE_DIR</i>}</tt>
  1617. will be resolved to the value of the <tt>${<i>BASE_DIR</i>}</tt> environment variable.
  1618. It supports <tt>${<i>env.NAME:-default</i>}</tt> and <tt>${<i>env.NAME-default</i>}</tt> notations.
  1619. The former is resolved to "default" if <tt>${<i>NAME</i>}</tt> environment variable is undefined
  1620. or its value is empty.
  1621. The latter behaves the same way only if <tt>${<i>NAME</i>}</tt> is undefined.
  1622. <p>By default, warnings will be given to any deprecated configuration
  1623. parameters and these are suppressible by configuring
  1624. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1625. log4j.properties file.]]>
  1626. </doc>
  1627. </class>
  1628. <!-- end class org.apache.hadoop.conf.Configuration -->
  1629. <!-- start class org.apache.hadoop.conf.Configured -->
  1630. <class name="Configured" extends="java.lang.Object"
  1631. abstract="false"
  1632. static="false" final="false" visibility="public"
  1633. deprecated="not deprecated">
  1634. <implements name="org.apache.hadoop.conf.Configurable"/>
  1635. <constructor name="Configured"
  1636. static="false" final="false" visibility="public"
  1637. deprecated="not deprecated">
  1638. <doc>
  1639. <![CDATA[Construct a Configured.]]>
  1640. </doc>
  1641. </constructor>
  1642. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1643. static="false" final="false" visibility="public"
  1644. deprecated="not deprecated">
  1645. <doc>
  1646. <![CDATA[Construct a Configured.]]>
  1647. </doc>
  1648. </constructor>
  1649. <method name="setConf"
  1650. abstract="false" native="false" synchronized="false"
  1651. static="false" final="false" visibility="public"
  1652. deprecated="not deprecated">
  1653. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1654. </method>
  1655. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1656. abstract="false" native="false" synchronized="false"
  1657. static="false" final="false" visibility="public"
  1658. deprecated="not deprecated">
  1659. </method>
  1660. <doc>
  1661. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1662. </doc>
  1663. </class>
  1664. <!-- end class org.apache.hadoop.conf.Configured -->
  1665. <!-- start class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1666. <class name="ReconfigurationTaskStatus" extends="java.lang.Object"
  1667. abstract="false"
  1668. static="false" final="false" visibility="public"
  1669. deprecated="not deprecated">
  1670. <constructor name="ReconfigurationTaskStatus" type="long, long, java.util.Map"
  1671. static="false" final="false" visibility="public"
  1672. deprecated="not deprecated">
  1673. </constructor>
  1674. <method name="hasTask" return="boolean"
  1675. abstract="false" native="false" synchronized="false"
  1676. static="false" final="false" visibility="public"
  1677. deprecated="not deprecated">
  1678. <doc>
  1679. <![CDATA[Return true if
  1680. - A reconfiguration task has finished or
  1681. - an active reconfiguration task is running]]>
  1682. </doc>
  1683. </method>
  1684. <method name="stopped" return="boolean"
  1685. abstract="false" native="false" synchronized="false"
  1686. static="false" final="false" visibility="public"
  1687. deprecated="not deprecated">
  1688. <doc>
  1689. <![CDATA[Return true if the latest reconfiguration task has finished and there is
  1690. no another active task running.]]>
  1691. </doc>
  1692. </method>
  1693. <method name="getStartTime" return="long"
  1694. abstract="false" native="false" synchronized="false"
  1695. static="false" final="false" visibility="public"
  1696. deprecated="not deprecated">
  1697. </method>
  1698. <method name="getEndTime" return="long"
  1699. abstract="false" native="false" synchronized="false"
  1700. static="false" final="false" visibility="public"
  1701. deprecated="not deprecated">
  1702. </method>
  1703. <method name="getStatus" return="java.util.Map"
  1704. abstract="false" native="false" synchronized="false"
  1705. static="false" final="true" visibility="public"
  1706. deprecated="not deprecated">
  1707. </method>
  1708. </class>
  1709. <!-- end class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1710. <doc>
  1711. <![CDATA[Configuration of system parameters.]]>
  1712. </doc>
  1713. </package>
  1714. <package name="org.apache.hadoop.crypto">
  1715. </package>
  1716. <package name="org.apache.hadoop.crypto.key">
  1717. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  1718. <class name="KeyProvider" extends="java.lang.Object"
  1719. abstract="true"
  1720. static="false" final="false" visibility="public"
  1721. deprecated="not deprecated">
  1722. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  1723. static="false" final="false" visibility="public"
  1724. deprecated="not deprecated">
  1725. <doc>
  1726. <![CDATA[Constructor.
  1727. @param conf configuration for the provider]]>
  1728. </doc>
  1729. </constructor>
  1730. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1731. abstract="false" native="false" synchronized="false"
  1732. static="false" final="false" visibility="public"
  1733. deprecated="not deprecated">
  1734. <doc>
  1735. <![CDATA[Return the provider configuration.
  1736. @return the provider configuration]]>
  1737. </doc>
  1738. </method>
  1739. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  1740. abstract="false" native="false" synchronized="false"
  1741. static="true" final="false" visibility="public"
  1742. deprecated="not deprecated">
  1743. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1744. <doc>
  1745. <![CDATA[A helper function to create an options object.
  1746. @param conf the configuration to use
  1747. @return a new options object]]>
  1748. </doc>
  1749. </method>
  1750. <method name="isTransient" return="boolean"
  1751. abstract="false" native="false" synchronized="false"
  1752. static="false" final="false" visibility="public"
  1753. deprecated="not deprecated">
  1754. <doc>
  1755. <![CDATA[Indicates whether this provider represents a store
  1756. that is intended for transient use - such as the UserProvider
  1757. is. These providers are generally used to provide access to
  1758. keying material rather than for long term storage.
  1759. @return true if transient, false otherwise]]>
  1760. </doc>
  1761. </method>
  1762. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1763. abstract="true" native="false" synchronized="false"
  1764. static="false" final="false" visibility="public"
  1765. deprecated="not deprecated">
  1766. <param name="versionName" type="java.lang.String"/>
  1767. <exception name="IOException" type="java.io.IOException"/>
  1768. <doc>
  1769. <![CDATA[Get the key material for a specific version of the key. This method is used
  1770. when decrypting data.
  1771. @param versionName the name of a specific version of the key
  1772. @return the key material
  1773. @throws IOException]]>
  1774. </doc>
  1775. </method>
  1776. <method name="getKeys" return="java.util.List"
  1777. abstract="true" native="false" synchronized="false"
  1778. static="false" final="false" visibility="public"
  1779. deprecated="not deprecated">
  1780. <exception name="IOException" type="java.io.IOException"/>
  1781. <doc>
  1782. <![CDATA[Get the key names for all keys.
  1783. @return the list of key names
  1784. @throws IOException]]>
  1785. </doc>
  1786. </method>
  1787. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  1788. abstract="false" native="false" synchronized="false"
  1789. static="false" final="false" visibility="public"
  1790. deprecated="not deprecated">
  1791. <param name="names" type="java.lang.String[]"/>
  1792. <exception name="IOException" type="java.io.IOException"/>
  1793. <doc>
  1794. <![CDATA[Get key metadata in bulk.
  1795. @param names the names of the keys to get
  1796. @throws IOException]]>
  1797. </doc>
  1798. </method>
  1799. <method name="getKeyVersions" return="java.util.List"
  1800. abstract="true" native="false" synchronized="false"
  1801. static="false" final="false" visibility="public"
  1802. deprecated="not deprecated">
  1803. <param name="name" type="java.lang.String"/>
  1804. <exception name="IOException" type="java.io.IOException"/>
  1805. <doc>
  1806. <![CDATA[Get the key material for all versions of a specific key name.
  1807. @return the list of key material
  1808. @throws IOException]]>
  1809. </doc>
  1810. </method>
  1811. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1812. abstract="false" native="false" synchronized="false"
  1813. static="false" final="false" visibility="public"
  1814. deprecated="not deprecated">
  1815. <param name="name" type="java.lang.String"/>
  1816. <exception name="IOException" type="java.io.IOException"/>
  1817. <doc>
  1818. <![CDATA[Get the current version of the key, which should be used for encrypting new
  1819. data.
  1820. @param name the base name of the key
  1821. @return the version name of the current version of the key or null if the
  1822. key version doesn't exist
  1823. @throws IOException]]>
  1824. </doc>
  1825. </method>
  1826. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  1827. abstract="true" native="false" synchronized="false"
  1828. static="false" final="false" visibility="public"
  1829. deprecated="not deprecated">
  1830. <param name="name" type="java.lang.String"/>
  1831. <exception name="IOException" type="java.io.IOException"/>
  1832. <doc>
  1833. <![CDATA[Get metadata about the key.
  1834. @param name the basename of the key
  1835. @return the key's metadata or null if the key doesn't exist
  1836. @throws IOException]]>
  1837. </doc>
  1838. </method>
  1839. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1840. abstract="true" native="false" synchronized="false"
  1841. static="false" final="false" visibility="public"
  1842. deprecated="not deprecated">
  1843. <param name="name" type="java.lang.String"/>
  1844. <param name="material" type="byte[]"/>
  1845. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1846. <exception name="IOException" type="java.io.IOException"/>
  1847. <doc>
  1848. <![CDATA[Create a new key. The given key must not already exist.
  1849. @param name the base name of the key
  1850. @param material the key material for the first version of the key.
  1851. @param options the options for the new key.
  1852. @return the version name of the first version of the key.
  1853. @throws IOException]]>
  1854. </doc>
  1855. </method>
  1856. <method name="generateKey" return="byte[]"
  1857. abstract="false" native="false" synchronized="false"
  1858. static="false" final="false" visibility="protected"
  1859. deprecated="not deprecated">
  1860. <param name="size" type="int"/>
  1861. <param name="algorithm" type="java.lang.String"/>
  1862. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1863. <doc>
  1864. <![CDATA[Generates a key material.
  1865. @param size length of the key.
  1866. @param algorithm algorithm to use for generating the key.
  1867. @return the generated key.
  1868. @throws NoSuchAlgorithmException]]>
  1869. </doc>
  1870. </method>
  1871. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1872. abstract="false" native="false" synchronized="false"
  1873. static="false" final="false" visibility="public"
  1874. deprecated="not deprecated">
  1875. <param name="name" type="java.lang.String"/>
  1876. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1877. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1878. <exception name="IOException" type="java.io.IOException"/>
  1879. <doc>
  1880. <![CDATA[Create a new key generating the material for it.
  1881. The given key must not already exist.
  1882. <p/>
  1883. This implementation generates the key material and calls the
  1884. {@link #createKey(String, byte[], Options)} method.
  1885. @param name the base name of the key
  1886. @param options the options for the new key.
  1887. @return the version name of the first version of the key.
  1888. @throws IOException
  1889. @throws NoSuchAlgorithmException]]>
  1890. </doc>
  1891. </method>
  1892. <method name="deleteKey"
  1893. abstract="true" native="false" synchronized="false"
  1894. static="false" final="false" visibility="public"
  1895. deprecated="not deprecated">
  1896. <param name="name" type="java.lang.String"/>
  1897. <exception name="IOException" type="java.io.IOException"/>
  1898. <doc>
  1899. <![CDATA[Delete the given key.
  1900. @param name the name of the key to delete
  1901. @throws IOException]]>
  1902. </doc>
  1903. </method>
  1904. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1905. abstract="true" native="false" synchronized="false"
  1906. static="false" final="false" visibility="public"
  1907. deprecated="not deprecated">
  1908. <param name="name" type="java.lang.String"/>
  1909. <param name="material" type="byte[]"/>
  1910. <exception name="IOException" type="java.io.IOException"/>
  1911. <doc>
  1912. <![CDATA[Roll a new version of the given key.
  1913. @param name the basename of the key
  1914. @param material the new key material
  1915. @return the name of the new version of the key
  1916. @throws IOException]]>
  1917. </doc>
  1918. </method>
  1919. <method name="close"
  1920. abstract="false" native="false" synchronized="false"
  1921. static="false" final="false" visibility="public"
  1922. deprecated="not deprecated">
  1923. <exception name="IOException" type="java.io.IOException"/>
  1924. <doc>
  1925. <![CDATA[Can be used by implementing classes to close any resources
  1926. that require closing]]>
  1927. </doc>
  1928. </method>
  1929. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1930. abstract="false" native="false" synchronized="false"
  1931. static="false" final="false" visibility="public"
  1932. deprecated="not deprecated">
  1933. <param name="name" type="java.lang.String"/>
  1934. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1935. <exception name="IOException" type="java.io.IOException"/>
  1936. <doc>
  1937. <![CDATA[Roll a new version of the given key generating the material for it.
  1938. <p/>
  1939. This implementation generates the key material and calls the
  1940. {@link #rollNewVersion(String, byte[])} method.
  1941. @param name the basename of the key
  1942. @return the name of the new version of the key
  1943. @throws IOException]]>
  1944. </doc>
  1945. </method>
  1946. <method name="flush"
  1947. abstract="true" native="false" synchronized="false"
  1948. static="false" final="false" visibility="public"
  1949. deprecated="not deprecated">
  1950. <exception name="IOException" type="java.io.IOException"/>
  1951. <doc>
  1952. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  1953. @throws IOException]]>
  1954. </doc>
  1955. </method>
  1956. <method name="getBaseName" return="java.lang.String"
  1957. abstract="false" native="false" synchronized="false"
  1958. static="true" final="false" visibility="public"
  1959. deprecated="not deprecated">
  1960. <param name="versionName" type="java.lang.String"/>
  1961. <exception name="IOException" type="java.io.IOException"/>
  1962. <doc>
  1963. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  1964. "/aaa/bbb".
  1965. @param versionName the version name to split
  1966. @return the base name of the key
  1967. @throws IOException]]>
  1968. </doc>
  1969. </method>
  1970. <method name="buildVersionName" return="java.lang.String"
  1971. abstract="false" native="false" synchronized="false"
  1972. static="true" final="false" visibility="protected"
  1973. deprecated="not deprecated">
  1974. <param name="name" type="java.lang.String"/>
  1975. <param name="version" type="int"/>
  1976. <doc>
  1977. <![CDATA[Build a version string from a basename and version number. Converts
  1978. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  1979. @param name the basename of the key
  1980. @param version the version of the key
  1981. @return the versionName of the key.]]>
  1982. </doc>
  1983. </method>
  1984. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  1985. abstract="false" native="false" synchronized="false"
  1986. static="true" final="false" visibility="public"
  1987. deprecated="not deprecated">
  1988. <param name="providerList" type="java.util.List"/>
  1989. <param name="keyName" type="java.lang.String"/>
  1990. <exception name="IOException" type="java.io.IOException"/>
  1991. <doc>
  1992. <![CDATA[Find the provider with the given key.
  1993. @param providerList the list of providers
  1994. @param keyName the key name we are looking for
  1995. @return the KeyProvider that has the key]]>
  1996. </doc>
  1997. </method>
  1998. <method name="needsPassword" return="boolean"
  1999. abstract="false" native="false" synchronized="false"
  2000. static="false" final="false" visibility="public"
  2001. deprecated="not deprecated">
  2002. <exception name="IOException" type="java.io.IOException"/>
  2003. <doc>
  2004. <![CDATA[Does this provider require a password? This means that a password is
  2005. required for normal operation, and it has not been found through normal
  2006. means. If true, the password should be provided by the caller using
  2007. setPassword().
  2008. @return Whether or not the provider requires a password
  2009. @throws IOException]]>
  2010. </doc>
  2011. </method>
  2012. <method name="noPasswordWarning" return="java.lang.String"
  2013. abstract="false" native="false" synchronized="false"
  2014. static="false" final="false" visibility="public"
  2015. deprecated="not deprecated">
  2016. <doc>
  2017. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2018. return a warning and instructions for supplying said password to the
  2019. provider.
  2020. @return A warning and instructions for supplying the password]]>
  2021. </doc>
  2022. </method>
  2023. <method name="noPasswordError" return="java.lang.String"
  2024. abstract="false" native="false" synchronized="false"
  2025. static="false" final="false" visibility="public"
  2026. deprecated="not deprecated">
  2027. <doc>
  2028. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2029. return an error message and instructions for supplying said password to
  2030. the provider.
  2031. @return An error message and instructions for supplying the password]]>
  2032. </doc>
  2033. </method>
  2034. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  2035. transient="false" volatile="false"
  2036. static="true" final="true" visibility="public"
  2037. deprecated="not deprecated">
  2038. </field>
  2039. <field name="DEFAULT_CIPHER" type="java.lang.String"
  2040. transient="false" volatile="false"
  2041. static="true" final="true" visibility="public"
  2042. deprecated="not deprecated">
  2043. </field>
  2044. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  2045. transient="false" volatile="false"
  2046. static="true" final="true" visibility="public"
  2047. deprecated="not deprecated">
  2048. </field>
  2049. <field name="DEFAULT_BITLENGTH" type="int"
  2050. transient="false" volatile="false"
  2051. static="true" final="true" visibility="public"
  2052. deprecated="not deprecated">
  2053. </field>
  2054. <field name="JCEKS_KEY_SERIALFILTER_DEFAULT" type="java.lang.String"
  2055. transient="false" volatile="false"
  2056. static="true" final="true" visibility="public"
  2057. deprecated="not deprecated">
  2058. </field>
  2059. <field name="JCEKS_KEY_SERIAL_FILTER" type="java.lang.String"
  2060. transient="false" volatile="false"
  2061. static="true" final="true" visibility="public"
  2062. deprecated="not deprecated">
  2063. </field>
  2064. <doc>
  2065. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  2066. abstraction to separate key storage from users of encryption. It
  2067. is intended to support getting or storing keys in a variety of ways,
  2068. including third party bindings.
  2069. <P/>
  2070. <code>KeyProvider</code> implementations must be thread safe.]]>
  2071. </doc>
  2072. </class>
  2073. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  2074. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2075. <class name="KeyProviderFactory" extends="java.lang.Object"
  2076. abstract="true"
  2077. static="false" final="false" visibility="public"
  2078. deprecated="not deprecated">
  2079. <constructor name="KeyProviderFactory"
  2080. static="false" final="false" visibility="public"
  2081. deprecated="not deprecated">
  2082. </constructor>
  2083. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2084. abstract="true" native="false" synchronized="false"
  2085. static="false" final="false" visibility="public"
  2086. deprecated="not deprecated">
  2087. <param name="providerName" type="java.net.URI"/>
  2088. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2089. <exception name="IOException" type="java.io.IOException"/>
  2090. </method>
  2091. <method name="getProviders" return="java.util.List"
  2092. abstract="false" native="false" synchronized="false"
  2093. static="true" final="false" visibility="public"
  2094. deprecated="not deprecated">
  2095. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2096. <exception name="IOException" type="java.io.IOException"/>
  2097. </method>
  2098. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  2099. abstract="false" native="false" synchronized="false"
  2100. static="true" final="false" visibility="public"
  2101. deprecated="not deprecated">
  2102. <param name="uri" type="java.net.URI"/>
  2103. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2104. <exception name="IOException" type="java.io.IOException"/>
  2105. <doc>
  2106. <![CDATA[Create a KeyProvider based on a provided URI.
  2107. @param uri key provider URI
  2108. @param conf configuration to initialize the key provider
  2109. @return the key provider for the specified URI, or <code>NULL</code> if
  2110. a provider for the specified URI scheme could not be found.
  2111. @throws IOException thrown if the provider failed to initialize.]]>
  2112. </doc>
  2113. </method>
  2114. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  2115. transient="false" volatile="false"
  2116. static="true" final="true" visibility="public"
  2117. deprecated="not deprecated">
  2118. </field>
  2119. <doc>
  2120. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  2121. Configuration. It uses a service loader interface to find the available
  2122. KeyProviders and create them based on the list of URIs.]]>
  2123. </doc>
  2124. </class>
  2125. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2126. </package>
  2127. <package name="org.apache.hadoop.crypto.key.kms">
  2128. </package>
  2129. <package name="org.apache.hadoop.crypto.random">
  2130. </package>
  2131. <package name="org.apache.hadoop.fs">
  2132. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  2133. <class name="AbstractFileSystem" extends="java.lang.Object"
  2134. abstract="true"
  2135. static="false" final="false" visibility="public"
  2136. deprecated="not deprecated">
  2137. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  2138. static="false" final="false" visibility="public"
  2139. deprecated="not deprecated">
  2140. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  2141. <doc>
  2142. <![CDATA[Constructor to be called by subclasses.
  2143. @param uri for this file system.
  2144. @param supportedScheme the scheme supported by the implementor
  2145. @param authorityNeeded if true then theURI must have authority, if false
  2146. then the URI must have null authority.
  2147. @throws URISyntaxException <code>uri</code> has syntax error]]>
  2148. </doc>
  2149. </constructor>
  2150. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2151. abstract="false" native="false" synchronized="false"
  2152. static="false" final="false" visibility="public"
  2153. deprecated="not deprecated">
  2154. </method>
  2155. <method name="isValidName" return="boolean"
  2156. abstract="false" native="false" synchronized="false"
  2157. static="false" final="false" visibility="public"
  2158. deprecated="not deprecated">
  2159. <param name="src" type="java.lang.String"/>
  2160. <doc>
  2161. <![CDATA[Returns true if the specified string is considered valid in the path part
  2162. of a URI by this file system. The default implementation enforces the rules
  2163. of HDFS, but subclasses may override this method to implement specific
  2164. validation rules for specific file systems.
  2165. @param src String source filename to check, path part of the URI
  2166. @return boolean true if the specified string is considered valid]]>
  2167. </doc>
  2168. </method>
  2169. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  2170. abstract="false" native="false" synchronized="false"
  2171. static="true" final="false" visibility="public"
  2172. deprecated="not deprecated">
  2173. <param name="uri" type="java.net.URI"/>
  2174. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2175. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2176. <doc>
  2177. <![CDATA[Create a file system instance for the specified uri using the conf. The
  2178. conf is used to find the class name that implements the file system. The
  2179. conf is also passed to the file system for its configuration.
  2180. @param uri URI of the file system
  2181. @param conf Configuration for the file system
  2182. @return Returns the file system for the given URI
  2183. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  2184. not found]]>
  2185. </doc>
  2186. </method>
  2187. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2188. abstract="false" native="false" synchronized="true"
  2189. static="true" final="false" visibility="protected"
  2190. deprecated="not deprecated">
  2191. <param name="uri" type="java.net.URI"/>
  2192. <doc>
  2193. <![CDATA[Get the statistics for a particular file system.
  2194. @param uri
  2195. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  2196. part of the uri are used.
  2197. @return a statistics object]]>
  2198. </doc>
  2199. </method>
  2200. <method name="clearStatistics"
  2201. abstract="false" native="false" synchronized="true"
  2202. static="true" final="false" visibility="public"
  2203. deprecated="not deprecated">
  2204. </method>
  2205. <method name="printStatistics"
  2206. abstract="false" native="false" synchronized="true"
  2207. static="true" final="false" visibility="public"
  2208. deprecated="not deprecated">
  2209. <doc>
  2210. <![CDATA[Prints statistics for all file systems.]]>
  2211. </doc>
  2212. </method>
  2213. <method name="getAllStatistics" return="java.util.Map"
  2214. abstract="false" native="false" synchronized="true"
  2215. static="true" final="false" visibility="protected"
  2216. deprecated="not deprecated">
  2217. </method>
  2218. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  2219. abstract="false" native="false" synchronized="false"
  2220. static="true" final="false" visibility="public"
  2221. deprecated="not deprecated">
  2222. <param name="uri" type="java.net.URI"/>
  2223. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2224. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2225. <doc>
  2226. <![CDATA[The main factory method for creating a file system. Get a file system for
  2227. the URI's scheme and authority. The scheme of the <code>uri</code>
  2228. determines a configuration property name,
  2229. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  2230. AbstractFileSystem class.
  2231. The entire URI and conf is passed to the AbstractFileSystem factory method.
  2232. @param uri for the file system to be created.
  2233. @param conf which is passed to the file system impl.
  2234. @return file system for the given URI.
  2235. @throws UnsupportedFileSystemException if the file system for
  2236. <code>uri</code> is not supported.]]>
  2237. </doc>
  2238. </method>
  2239. <method name="checkScheme"
  2240. abstract="false" native="false" synchronized="false"
  2241. static="false" final="false" visibility="public"
  2242. deprecated="not deprecated">
  2243. <param name="uri" type="java.net.URI"/>
  2244. <param name="supportedScheme" type="java.lang.String"/>
  2245. <doc>
  2246. <![CDATA[Check that the Uri's scheme matches
  2247. @param uri
  2248. @param supportedScheme]]>
  2249. </doc>
  2250. </method>
  2251. <method name="getUriDefaultPort" return="int"
  2252. abstract="true" native="false" synchronized="false"
  2253. static="false" final="false" visibility="public"
  2254. deprecated="not deprecated">
  2255. <doc>
  2256. <![CDATA[The default port of this file system.
  2257. @return default port of this file system's Uri scheme
  2258. A uri with a port of -1 => default port;]]>
  2259. </doc>
  2260. </method>
  2261. <method name="getUri" return="java.net.URI"
  2262. abstract="false" native="false" synchronized="false"
  2263. static="false" final="false" visibility="public"
  2264. deprecated="not deprecated">
  2265. <doc>
  2266. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  2267. @return the uri of this file system.]]>
  2268. </doc>
  2269. </method>
  2270. <method name="checkPath"
  2271. abstract="false" native="false" synchronized="false"
  2272. static="false" final="false" visibility="public"
  2273. deprecated="not deprecated">
  2274. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2275. <doc>
  2276. <![CDATA[Check that a Path belongs to this FileSystem.
  2277. If the path is fully qualified URI, then its scheme and authority
  2278. matches that of this file system. Otherwise the path must be
  2279. slash-relative name.
  2280. @throws InvalidPathException if the path is invalid]]>
  2281. </doc>
  2282. </method>
  2283. <method name="getUriPath" return="java.lang.String"
  2284. abstract="false" native="false" synchronized="false"
  2285. static="false" final="false" visibility="public"
  2286. deprecated="not deprecated">
  2287. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2288. <doc>
  2289. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  2290. and that the path-part is a valid name.
  2291. @param p path
  2292. @return path-part of the Path p]]>
  2293. </doc>
  2294. </method>
  2295. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2296. abstract="false" native="false" synchronized="false"
  2297. static="false" final="false" visibility="public"
  2298. deprecated="not deprecated">
  2299. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2300. <doc>
  2301. <![CDATA[Make the path fully qualified to this file system
  2302. @param path
  2303. @return the qualified path]]>
  2304. </doc>
  2305. </method>
  2306. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2307. abstract="false" native="false" synchronized="false"
  2308. static="false" final="false" visibility="public"
  2309. deprecated="not deprecated">
  2310. <doc>
  2311. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  2312. that is used as the starting workingDir. For other file systems
  2313. like HDFS there is no built in notion of an initial workingDir.
  2314. @return the initial workingDir if the file system has such a notion
  2315. otherwise return a null.]]>
  2316. </doc>
  2317. </method>
  2318. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2319. abstract="false" native="false" synchronized="false"
  2320. static="false" final="false" visibility="public"
  2321. deprecated="not deprecated">
  2322. <doc>
  2323. <![CDATA[Return the current user's home directory in this file system.
  2324. The default implementation returns "/user/$USER/".
  2325. @return current user's home directory.]]>
  2326. </doc>
  2327. </method>
  2328. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2329. abstract="true" native="false" synchronized="false"
  2330. static="false" final="false" visibility="public"
  2331. deprecated="use {@link #getServerDefaults(Path)} instead">
  2332. <exception name="IOException" type="java.io.IOException"/>
  2333. <doc>
  2334. <![CDATA[Return a set of server default configuration values.
  2335. @return server default configuration values
  2336. @throws IOException an I/O error occurred
  2337. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  2338. </doc>
  2339. </method>
  2340. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2341. abstract="false" native="false" synchronized="false"
  2342. static="false" final="false" visibility="public"
  2343. deprecated="not deprecated">
  2344. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2345. <exception name="IOException" type="java.io.IOException"/>
  2346. <doc>
  2347. <![CDATA[Return a set of server default configuration values based on path.
  2348. @param f path to fetch server defaults
  2349. @return server default configuration values for path
  2350. @throws IOException an I/O error occurred]]>
  2351. </doc>
  2352. </method>
  2353. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  2354. abstract="false" native="false" synchronized="false"
  2355. static="false" final="false" visibility="public"
  2356. deprecated="not deprecated">
  2357. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2358. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2359. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2360. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2361. <exception name="IOException" type="java.io.IOException"/>
  2362. <doc>
  2363. <![CDATA[Return the fully-qualified path of path f resolving the path
  2364. through any internal symlinks or mount point
  2365. @param p path to be resolved
  2366. @return fully qualified path
  2367. @throws FileNotFoundException, AccessControlException, IOException
  2368. UnresolvedLinkException if symbolic link on path cannot be resolved
  2369. internally]]>
  2370. </doc>
  2371. </method>
  2372. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2373. abstract="false" native="false" synchronized="false"
  2374. static="false" final="true" visibility="public"
  2375. deprecated="not deprecated">
  2376. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2377. <param name="createFlag" type="java.util.EnumSet"/>
  2378. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  2379. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2380. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2381. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2382. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2383. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2384. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2385. <exception name="IOException" type="java.io.IOException"/>
  2386. <doc>
  2387. <![CDATA[The specification of this method matches that of
  2388. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  2389. that the Path f must be fully qualified and the permission is absolute
  2390. (i.e. umask has been applied).]]>
  2391. </doc>
  2392. </method>
  2393. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  2394. abstract="true" native="false" synchronized="false"
  2395. static="false" final="false" visibility="public"
  2396. deprecated="not deprecated">
  2397. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2398. <param name="flag" type="java.util.EnumSet"/>
  2399. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2400. <param name="bufferSize" type="int"/>
  2401. <param name="replication" type="short"/>
  2402. <param name="blockSize" type="long"/>
  2403. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2404. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  2405. <param name="createParent" type="boolean"/>
  2406. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2407. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2408. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2409. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2410. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2411. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2412. <exception name="IOException" type="java.io.IOException"/>
  2413. <doc>
  2414. <![CDATA[The specification of this method matches that of
  2415. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  2416. have been declared explicitly.]]>
  2417. </doc>
  2418. </method>
  2419. <method name="mkdir"
  2420. abstract="true" native="false" synchronized="false"
  2421. static="false" final="false" visibility="public"
  2422. deprecated="not deprecated">
  2423. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2424. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2425. <param name="createParent" type="boolean"/>
  2426. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2427. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2428. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2429. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2430. <exception name="IOException" type="java.io.IOException"/>
  2431. <doc>
  2432. <![CDATA[The specification of this method matches that of
  2433. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  2434. f must be fully qualified and the permission is absolute (i.e.
  2435. umask has been applied).]]>
  2436. </doc>
  2437. </method>
  2438. <method name="delete" return="boolean"
  2439. abstract="true" native="false" synchronized="false"
  2440. static="false" final="false" visibility="public"
  2441. deprecated="not deprecated">
  2442. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2443. <param name="recursive" type="boolean"/>
  2444. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2445. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2446. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2447. <exception name="IOException" type="java.io.IOException"/>
  2448. <doc>
  2449. <![CDATA[The specification of this method matches that of
  2450. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  2451. this file system.]]>
  2452. </doc>
  2453. </method>
  2454. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2455. abstract="false" native="false" synchronized="false"
  2456. static="false" final="false" visibility="public"
  2457. deprecated="not deprecated">
  2458. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2459. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2460. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2461. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2462. <exception name="IOException" type="java.io.IOException"/>
  2463. <doc>
  2464. <![CDATA[The specification of this method matches that of
  2465. {@link FileContext#open(Path)} except that Path f must be for this
  2466. file system.]]>
  2467. </doc>
  2468. </method>
  2469. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2470. abstract="true" native="false" synchronized="false"
  2471. static="false" final="false" visibility="public"
  2472. deprecated="not deprecated">
  2473. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2474. <param name="bufferSize" type="int"/>
  2475. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2476. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2477. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2478. <exception name="IOException" type="java.io.IOException"/>
  2479. <doc>
  2480. <![CDATA[The specification of this method matches that of
  2481. {@link FileContext#open(Path, int)} except that Path f must be for this
  2482. file system.]]>
  2483. </doc>
  2484. </method>
  2485. <method name="truncate" return="boolean"
  2486. abstract="false" native="false" synchronized="false"
  2487. static="false" final="false" visibility="public"
  2488. deprecated="not deprecated">
  2489. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2490. <param name="newLength" type="long"/>
  2491. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2492. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2493. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2494. <exception name="IOException" type="java.io.IOException"/>
  2495. <doc>
  2496. <![CDATA[The specification of this method matches that of
  2497. {@link FileContext#truncate(Path, long)} except that Path f must be for
  2498. this file system.]]>
  2499. </doc>
  2500. </method>
  2501. <method name="setReplication" return="boolean"
  2502. abstract="true" native="false" synchronized="false"
  2503. static="false" final="false" visibility="public"
  2504. deprecated="not deprecated">
  2505. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2506. <param name="replication" type="short"/>
  2507. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2508. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2509. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2510. <exception name="IOException" type="java.io.IOException"/>
  2511. <doc>
  2512. <![CDATA[The specification of this method matches that of
  2513. {@link FileContext#setReplication(Path, short)} except that Path f must be
  2514. for this file system.]]>
  2515. </doc>
  2516. </method>
  2517. <method name="rename"
  2518. abstract="false" native="false" synchronized="false"
  2519. static="false" final="true" visibility="public"
  2520. deprecated="not deprecated">
  2521. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2522. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2523. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  2524. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2525. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2526. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2527. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2528. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2529. <exception name="IOException" type="java.io.IOException"/>
  2530. <doc>
  2531. <![CDATA[The specification of this method matches that of
  2532. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2533. f must be for this file system.]]>
  2534. </doc>
  2535. </method>
  2536. <method name="renameInternal"
  2537. abstract="true" native="false" synchronized="false"
  2538. static="false" final="false" visibility="public"
  2539. deprecated="not deprecated">
  2540. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2541. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2542. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2543. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2544. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2545. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2546. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2547. <exception name="IOException" type="java.io.IOException"/>
  2548. <doc>
  2549. <![CDATA[The specification of this method matches that of
  2550. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2551. f must be for this file system and NO OVERWRITE is performed.
  2552. File systems that do not have a built in overwrite need implement only this
  2553. method and can take advantage of the default impl of the other
  2554. {@link #renameInternal(Path, Path, boolean)}]]>
  2555. </doc>
  2556. </method>
  2557. <method name="renameInternal"
  2558. abstract="false" native="false" synchronized="false"
  2559. static="false" final="false" visibility="public"
  2560. deprecated="not deprecated">
  2561. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2562. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2563. <param name="overwrite" type="boolean"/>
  2564. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2565. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2566. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2567. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2568. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2569. <exception name="IOException" type="java.io.IOException"/>
  2570. <doc>
  2571. <![CDATA[The specification of this method matches that of
  2572. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2573. f must be for this file system.]]>
  2574. </doc>
  2575. </method>
  2576. <method name="supportsSymlinks" return="boolean"
  2577. abstract="false" native="false" synchronized="false"
  2578. static="false" final="false" visibility="public"
  2579. deprecated="not deprecated">
  2580. <doc>
  2581. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  2582. @return true if filesystem supports symlinks]]>
  2583. </doc>
  2584. </method>
  2585. <method name="createSymlink"
  2586. abstract="false" native="false" synchronized="false"
  2587. static="false" final="false" visibility="public"
  2588. deprecated="not deprecated">
  2589. <param name="target" type="org.apache.hadoop.fs.Path"/>
  2590. <param name="link" type="org.apache.hadoop.fs.Path"/>
  2591. <param name="createParent" type="boolean"/>
  2592. <exception name="IOException" type="java.io.IOException"/>
  2593. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2594. <doc>
  2595. <![CDATA[The specification of this method matches that of
  2596. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  2597. </doc>
  2598. </method>
  2599. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  2600. abstract="false" native="false" synchronized="false"
  2601. static="false" final="false" visibility="public"
  2602. deprecated="not deprecated">
  2603. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2604. <exception name="IOException" type="java.io.IOException"/>
  2605. <doc>
  2606. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  2607. {@link FSLinkResolver}, and differs from the similarly named method
  2608. {@link FileContext#getLinkTarget(Path)}.
  2609. @throws IOException subclass implementations may throw IOException]]>
  2610. </doc>
  2611. </method>
  2612. <method name="setPermission"
  2613. abstract="true" native="false" synchronized="false"
  2614. static="false" final="false" visibility="public"
  2615. deprecated="not deprecated">
  2616. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2617. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2618. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2619. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2620. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2621. <exception name="IOException" type="java.io.IOException"/>
  2622. <doc>
  2623. <![CDATA[The specification of this method matches that of
  2624. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  2625. must be for this file system.]]>
  2626. </doc>
  2627. </method>
  2628. <method name="setOwner"
  2629. abstract="true" native="false" synchronized="false"
  2630. static="false" final="false" visibility="public"
  2631. deprecated="not deprecated">
  2632. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2633. <param name="username" type="java.lang.String"/>
  2634. <param name="groupname" type="java.lang.String"/>
  2635. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2636. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2637. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2638. <exception name="IOException" type="java.io.IOException"/>
  2639. <doc>
  2640. <![CDATA[The specification of this method matches that of
  2641. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  2642. be for this file system.]]>
  2643. </doc>
  2644. </method>
  2645. <method name="setTimes"
  2646. abstract="true" native="false" synchronized="false"
  2647. static="false" final="false" visibility="public"
  2648. deprecated="not deprecated">
  2649. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2650. <param name="mtime" type="long"/>
  2651. <param name="atime" type="long"/>
  2652. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2653. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2654. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2655. <exception name="IOException" type="java.io.IOException"/>
  2656. <doc>
  2657. <![CDATA[The specification of this method matches that of
  2658. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  2659. for this file system.]]>
  2660. </doc>
  2661. </method>
  2662. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  2663. abstract="true" native="false" synchronized="false"
  2664. static="false" final="false" visibility="public"
  2665. deprecated="not deprecated">
  2666. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2667. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2668. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2669. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2670. <exception name="IOException" type="java.io.IOException"/>
  2671. <doc>
  2672. <![CDATA[The specification of this method matches that of
  2673. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  2674. this file system.]]>
  2675. </doc>
  2676. </method>
  2677. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2678. abstract="true" native="false" synchronized="false"
  2679. static="false" final="false" visibility="public"
  2680. deprecated="not deprecated">
  2681. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2682. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2683. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2684. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2685. <exception name="IOException" type="java.io.IOException"/>
  2686. <doc>
  2687. <![CDATA[The specification of this method matches that of
  2688. {@link FileContext#getFileStatus(Path)}
  2689. except that an UnresolvedLinkException may be thrown if a symlink is
  2690. encountered in the path.]]>
  2691. </doc>
  2692. </method>
  2693. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  2694. abstract="false" native="false" synchronized="false"
  2695. static="false" final="false" visibility="public"
  2696. deprecated="not deprecated">
  2697. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2698. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2699. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2700. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2701. <exception name="IOException" type="java.io.IOException"/>
  2702. <doc>
  2703. <![CDATA[The specification of this method matches that of
  2704. {@link FileContext#getFileLinkStatus(Path)}
  2705. except that an UnresolvedLinkException may be thrown if a symlink is
  2706. encountered in the path leading up to the final path component.
  2707. If the file system does not support symlinks then the behavior is
  2708. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  2709. </doc>
  2710. </method>
  2711. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2712. abstract="true" native="false" synchronized="false"
  2713. static="false" final="false" visibility="public"
  2714. deprecated="not deprecated">
  2715. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2716. <param name="start" type="long"/>
  2717. <param name="len" type="long"/>
  2718. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2719. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2720. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2721. <exception name="IOException" type="java.io.IOException"/>
  2722. <doc>
  2723. <![CDATA[The specification of this method matches that of
  2724. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  2725. Path f must be for this file system.]]>
  2726. </doc>
  2727. </method>
  2728. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2729. abstract="false" native="false" synchronized="false"
  2730. static="false" final="false" visibility="public"
  2731. deprecated="not deprecated">
  2732. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2733. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2734. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2735. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2736. <exception name="IOException" type="java.io.IOException"/>
  2737. <doc>
  2738. <![CDATA[The specification of this method matches that of
  2739. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  2740. file system.]]>
  2741. </doc>
  2742. </method>
  2743. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2744. abstract="true" native="false" synchronized="false"
  2745. static="false" final="false" visibility="public"
  2746. deprecated="not deprecated">
  2747. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2748. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2749. <exception name="IOException" type="java.io.IOException"/>
  2750. <doc>
  2751. <![CDATA[The specification of this method matches that of
  2752. {@link FileContext#getFsStatus(Path)}.]]>
  2753. </doc>
  2754. </method>
  2755. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  2756. abstract="false" native="false" synchronized="false"
  2757. static="false" final="false" visibility="public"
  2758. deprecated="not deprecated">
  2759. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2760. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2761. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2762. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2763. <exception name="IOException" type="java.io.IOException"/>
  2764. <doc>
  2765. <![CDATA[The specification of this method matches that of
  2766. {@link FileContext#listStatus(Path)} except that Path f must be for this
  2767. file system.]]>
  2768. </doc>
  2769. </method>
  2770. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  2771. abstract="false" native="false" synchronized="false"
  2772. static="false" final="false" visibility="public"
  2773. deprecated="not deprecated">
  2774. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2775. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2776. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2777. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2778. <exception name="IOException" type="java.io.IOException"/>
  2779. <doc>
  2780. <![CDATA[The specification of this method matches that of
  2781. {@link FileContext#listLocatedStatus(Path)} except that Path f
  2782. must be for this file system.]]>
  2783. </doc>
  2784. </method>
  2785. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2786. abstract="true" native="false" synchronized="false"
  2787. static="false" final="false" visibility="public"
  2788. deprecated="not deprecated">
  2789. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2790. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2791. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2792. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2793. <exception name="IOException" type="java.io.IOException"/>
  2794. <doc>
  2795. <![CDATA[The specification of this method matches that of
  2796. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  2797. for this file system.]]>
  2798. </doc>
  2799. </method>
  2800. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  2801. abstract="false" native="false" synchronized="false"
  2802. static="false" final="false" visibility="public"
  2803. deprecated="not deprecated">
  2804. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2805. <exception name="IOException" type="java.io.IOException"/>
  2806. <doc>
  2807. <![CDATA[@return an iterator over the corrupt files under the given path
  2808. (may contain duplicates if a file has more than one corrupt block)
  2809. @throws IOException]]>
  2810. </doc>
  2811. </method>
  2812. <method name="setVerifyChecksum"
  2813. abstract="true" native="false" synchronized="false"
  2814. static="false" final="false" visibility="public"
  2815. deprecated="not deprecated">
  2816. <param name="verifyChecksum" type="boolean"/>
  2817. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2818. <exception name="IOException" type="java.io.IOException"/>
  2819. <doc>
  2820. <![CDATA[The specification of this method matches that of
  2821. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  2822. must be for this file system.]]>
  2823. </doc>
  2824. </method>
  2825. <method name="getCanonicalServiceName" return="java.lang.String"
  2826. abstract="false" native="false" synchronized="false"
  2827. static="false" final="false" visibility="public"
  2828. deprecated="not deprecated">
  2829. <doc>
  2830. <![CDATA[Get a canonical name for this file system.
  2831. @return a URI string that uniquely identifies this file system]]>
  2832. </doc>
  2833. </method>
  2834. <method name="modifyAclEntries"
  2835. abstract="false" native="false" synchronized="false"
  2836. static="false" final="false" visibility="public"
  2837. deprecated="not deprecated">
  2838. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2839. <param name="aclSpec" type="java.util.List"/>
  2840. <exception name="IOException" type="java.io.IOException"/>
  2841. <doc>
  2842. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  2843. entries or modify the permissions on existing ACL entries. All existing
  2844. ACL entries that are not specified in this call are retained without
  2845. changes. (Modifications are merged into the current ACL.)
  2846. @param path Path to modify
  2847. @param aclSpec List<AclEntry> describing modifications
  2848. @throws IOException if an ACL could not be modified]]>
  2849. </doc>
  2850. </method>
  2851. <method name="removeAclEntries"
  2852. abstract="false" native="false" synchronized="false"
  2853. static="false" final="false" visibility="public"
  2854. deprecated="not deprecated">
  2855. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2856. <param name="aclSpec" type="java.util.List"/>
  2857. <exception name="IOException" type="java.io.IOException"/>
  2858. <doc>
  2859. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  2860. retained.
  2861. @param path Path to modify
  2862. @param aclSpec List<AclEntry> describing entries to remove
  2863. @throws IOException if an ACL could not be modified]]>
  2864. </doc>
  2865. </method>
  2866. <method name="removeDefaultAcl"
  2867. abstract="false" native="false" synchronized="false"
  2868. static="false" final="false" visibility="public"
  2869. deprecated="not deprecated">
  2870. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2871. <exception name="IOException" type="java.io.IOException"/>
  2872. <doc>
  2873. <![CDATA[Removes all default ACL entries from files and directories.
  2874. @param path Path to modify
  2875. @throws IOException if an ACL could not be modified]]>
  2876. </doc>
  2877. </method>
  2878. <method name="removeAcl"
  2879. abstract="false" native="false" synchronized="false"
  2880. static="false" final="false" visibility="public"
  2881. deprecated="not deprecated">
  2882. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2883. <exception name="IOException" type="java.io.IOException"/>
  2884. <doc>
  2885. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  2886. for user, group, and others are retained for compatibility with permission
  2887. bits.
  2888. @param path Path to modify
  2889. @throws IOException if an ACL could not be removed]]>
  2890. </doc>
  2891. </method>
  2892. <method name="setAcl"
  2893. abstract="false" native="false" synchronized="false"
  2894. static="false" final="false" visibility="public"
  2895. deprecated="not deprecated">
  2896. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2897. <param name="aclSpec" type="java.util.List"/>
  2898. <exception name="IOException" type="java.io.IOException"/>
  2899. <doc>
  2900. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  2901. entries.
  2902. @param path Path to modify
  2903. @param aclSpec List<AclEntry> describing modifications, must include entries
  2904. for user, group, and others for compatibility with permission bits.
  2905. @throws IOException if an ACL could not be modified]]>
  2906. </doc>
  2907. </method>
  2908. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  2909. abstract="false" native="false" synchronized="false"
  2910. static="false" final="false" visibility="public"
  2911. deprecated="not deprecated">
  2912. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2913. <exception name="IOException" type="java.io.IOException"/>
  2914. <doc>
  2915. <![CDATA[Gets the ACLs of files and directories.
  2916. @param path Path to get
  2917. @return RemoteIterator<AclStatus> which returns each AclStatus
  2918. @throws IOException if an ACL could not be read]]>
  2919. </doc>
  2920. </method>
  2921. <method name="setXAttr"
  2922. abstract="false" native="false" synchronized="false"
  2923. static="false" final="false" visibility="public"
  2924. deprecated="not deprecated">
  2925. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2926. <param name="name" type="java.lang.String"/>
  2927. <param name="value" type="byte[]"/>
  2928. <exception name="IOException" type="java.io.IOException"/>
  2929. <doc>
  2930. <![CDATA[Set an xattr of a file or directory.
  2931. The name must be prefixed with the namespace followed by ".". For example,
  2932. "user.attr".
  2933. <p/>
  2934. Refer to the HDFS extended attributes user documentation for details.
  2935. @param path Path to modify
  2936. @param name xattr name.
  2937. @param value xattr value.
  2938. @throws IOException]]>
  2939. </doc>
  2940. </method>
  2941. <method name="setXAttr"
  2942. abstract="false" native="false" synchronized="false"
  2943. static="false" final="false" visibility="public"
  2944. deprecated="not deprecated">
  2945. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2946. <param name="name" type="java.lang.String"/>
  2947. <param name="value" type="byte[]"/>
  2948. <param name="flag" type="java.util.EnumSet"/>
  2949. <exception name="IOException" type="java.io.IOException"/>
  2950. <doc>
  2951. <![CDATA[Set an xattr of a file or directory.
  2952. The name must be prefixed with the namespace followed by ".". For example,
  2953. "user.attr".
  2954. <p/>
  2955. Refer to the HDFS extended attributes user documentation for details.
  2956. @param path Path to modify
  2957. @param name xattr name.
  2958. @param value xattr value.
  2959. @param flag xattr set flag
  2960. @throws IOException]]>
  2961. </doc>
  2962. </method>
  2963. <method name="getXAttr" return="byte[]"
  2964. abstract="false" native="false" synchronized="false"
  2965. static="false" final="false" visibility="public"
  2966. deprecated="not deprecated">
  2967. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2968. <param name="name" type="java.lang.String"/>
  2969. <exception name="IOException" type="java.io.IOException"/>
  2970. <doc>
  2971. <![CDATA[Get an xattr for a file or directory.
  2972. The name must be prefixed with the namespace followed by ".". For example,
  2973. "user.attr".
  2974. <p/>
  2975. Refer to the HDFS extended attributes user documentation for details.
  2976. @param path Path to get extended attribute
  2977. @param name xattr name.
  2978. @return byte[] xattr value.
  2979. @throws IOException]]>
  2980. </doc>
  2981. </method>
  2982. <method name="getXAttrs" return="java.util.Map"
  2983. abstract="false" native="false" synchronized="false"
  2984. static="false" final="false" visibility="public"
  2985. deprecated="not deprecated">
  2986. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2987. <exception name="IOException" type="java.io.IOException"/>
  2988. <doc>
  2989. <![CDATA[Get all of the xattrs for a file or directory.
  2990. Only those xattrs for which the logged-in user has permissions to view
  2991. are returned.
  2992. <p/>
  2993. Refer to the HDFS extended attributes user documentation for details.
  2994. @param path Path to get extended attributes
  2995. @return Map<String, byte[]> describing the XAttrs of the file or directory
  2996. @throws IOException]]>
  2997. </doc>
  2998. </method>
  2999. <method name="getXAttrs" return="java.util.Map"
  3000. abstract="false" native="false" synchronized="false"
  3001. static="false" final="false" visibility="public"
  3002. deprecated="not deprecated">
  3003. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3004. <param name="names" type="java.util.List"/>
  3005. <exception name="IOException" type="java.io.IOException"/>
  3006. <doc>
  3007. <![CDATA[Get all of the xattrs for a file or directory.
  3008. Only those xattrs for which the logged-in user has permissions to view
  3009. are returned.
  3010. <p/>
  3011. Refer to the HDFS extended attributes user documentation for details.
  3012. @param path Path to get extended attributes
  3013. @param names XAttr names.
  3014. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3015. @throws IOException]]>
  3016. </doc>
  3017. </method>
  3018. <method name="listXAttrs" return="java.util.List"
  3019. abstract="false" native="false" synchronized="false"
  3020. static="false" final="false" visibility="public"
  3021. deprecated="not deprecated">
  3022. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3023. <exception name="IOException" type="java.io.IOException"/>
  3024. <doc>
  3025. <![CDATA[Get all of the xattr names for a file or directory.
  3026. Only the xattr names for which the logged-in user has permissions to view
  3027. are returned.
  3028. <p/>
  3029. Refer to the HDFS extended attributes user documentation for details.
  3030. @param path Path to get extended attributes
  3031. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3032. @throws IOException]]>
  3033. </doc>
  3034. </method>
  3035. <method name="removeXAttr"
  3036. abstract="false" native="false" synchronized="false"
  3037. static="false" final="false" visibility="public"
  3038. deprecated="not deprecated">
  3039. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3040. <param name="name" type="java.lang.String"/>
  3041. <exception name="IOException" type="java.io.IOException"/>
  3042. <doc>
  3043. <![CDATA[Remove an xattr of a file or directory.
  3044. The name must be prefixed with the namespace followed by ".". For example,
  3045. "user.attr".
  3046. <p/>
  3047. Refer to the HDFS extended attributes user documentation for details.
  3048. @param path Path to remove extended attribute
  3049. @param name xattr name
  3050. @throws IOException]]>
  3051. </doc>
  3052. </method>
  3053. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  3054. abstract="false" native="false" synchronized="false"
  3055. static="false" final="false" visibility="public"
  3056. deprecated="not deprecated">
  3057. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3058. <param name="snapshotName" type="java.lang.String"/>
  3059. <exception name="IOException" type="java.io.IOException"/>
  3060. <doc>
  3061. <![CDATA[The specification of this method matches that of
  3062. {@link FileContext#createSnapshot(Path, String)}.]]>
  3063. </doc>
  3064. </method>
  3065. <method name="renameSnapshot"
  3066. abstract="false" native="false" synchronized="false"
  3067. static="false" final="false" visibility="public"
  3068. deprecated="not deprecated">
  3069. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3070. <param name="snapshotOldName" type="java.lang.String"/>
  3071. <param name="snapshotNewName" type="java.lang.String"/>
  3072. <exception name="IOException" type="java.io.IOException"/>
  3073. <doc>
  3074. <![CDATA[The specification of this method matches that of
  3075. {@link FileContext#renameSnapshot(Path, String, String)}.]]>
  3076. </doc>
  3077. </method>
  3078. <method name="deleteSnapshot"
  3079. abstract="false" native="false" synchronized="false"
  3080. static="false" final="false" visibility="public"
  3081. deprecated="not deprecated">
  3082. <param name="snapshotDir" type="org.apache.hadoop.fs.Path"/>
  3083. <param name="snapshotName" type="java.lang.String"/>
  3084. <exception name="IOException" type="java.io.IOException"/>
  3085. <doc>
  3086. <![CDATA[The specification of this method matches that of
  3087. {@link FileContext#deleteSnapshot(Path, String)}.]]>
  3088. </doc>
  3089. </method>
  3090. <method name="setStoragePolicy"
  3091. abstract="false" native="false" synchronized="false"
  3092. static="false" final="false" visibility="public"
  3093. deprecated="not deprecated">
  3094. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3095. <param name="policyName" type="java.lang.String"/>
  3096. <exception name="IOException" type="java.io.IOException"/>
  3097. <doc>
  3098. <![CDATA[Set the storage policy for a given file or directory.
  3099. @param path file or directory path.
  3100. @param policyName the name of the target storage policy. The list
  3101. of supported Storage policies can be retrieved
  3102. via {@link #getAllStoragePolicies}.]]>
  3103. </doc>
  3104. </method>
  3105. <method name="unsetStoragePolicy"
  3106. abstract="false" native="false" synchronized="false"
  3107. static="false" final="false" visibility="public"
  3108. deprecated="not deprecated">
  3109. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3110. <exception name="IOException" type="java.io.IOException"/>
  3111. <doc>
  3112. <![CDATA[Unset the storage policy set for a given file or directory.
  3113. @param src file or directory path.
  3114. @throws IOException]]>
  3115. </doc>
  3116. </method>
  3117. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  3118. abstract="false" native="false" synchronized="false"
  3119. static="false" final="false" visibility="public"
  3120. deprecated="not deprecated">
  3121. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3122. <exception name="IOException" type="java.io.IOException"/>
  3123. <doc>
  3124. <![CDATA[Retrieve the storage policy for a given file or directory.
  3125. @param src file or directory path.
  3126. @return storage policy for give file.
  3127. @throws IOException]]>
  3128. </doc>
  3129. </method>
  3130. <method name="getAllStoragePolicies" return="java.util.Collection"
  3131. abstract="false" native="false" synchronized="false"
  3132. static="false" final="false" visibility="public"
  3133. deprecated="not deprecated">
  3134. <exception name="IOException" type="java.io.IOException"/>
  3135. <doc>
  3136. <![CDATA[Retrieve all the storage policies supported by this file system.
  3137. @return all storage policies supported by this filesystem.
  3138. @throws IOException]]>
  3139. </doc>
  3140. </method>
  3141. <method name="hashCode" return="int"
  3142. abstract="false" native="false" synchronized="false"
  3143. static="false" final="false" visibility="public"
  3144. deprecated="not deprecated">
  3145. </method>
  3146. <method name="equals" return="boolean"
  3147. abstract="false" native="false" synchronized="false"
  3148. static="false" final="false" visibility="public"
  3149. deprecated="not deprecated">
  3150. <param name="other" type="java.lang.Object"/>
  3151. </method>
  3152. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3153. transient="false" volatile="false"
  3154. static="false" final="false" visibility="protected"
  3155. deprecated="not deprecated">
  3156. <doc>
  3157. <![CDATA[The statistics for this file system.]]>
  3158. </doc>
  3159. </field>
  3160. <doc>
  3161. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  3162. (analogous to the VFS of Unix). Applications do not access this class;
  3163. instead they access files across all file systems using {@link FileContext}.
  3164. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  3165. matches the "this" file system (ie same scheme and authority)
  3166. or a Slash-relative name that is assumed to be relative
  3167. to the root of the "this" file system .]]>
  3168. </doc>
  3169. </class>
  3170. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  3171. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  3172. <class name="AvroFSInput" extends="java.lang.Object"
  3173. abstract="false"
  3174. static="false" final="false" visibility="public"
  3175. deprecated="not deprecated">
  3176. <implements name="java.io.Closeable"/>
  3177. <implements name="org.apache.avro.file.SeekableInput"/>
  3178. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  3179. static="false" final="false" visibility="public"
  3180. deprecated="not deprecated">
  3181. <doc>
  3182. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  3183. </doc>
  3184. </constructor>
  3185. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  3186. static="false" final="false" visibility="public"
  3187. deprecated="not deprecated">
  3188. <exception name="IOException" type="java.io.IOException"/>
  3189. <doc>
  3190. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  3191. </doc>
  3192. </constructor>
  3193. <method name="length" return="long"
  3194. abstract="false" native="false" synchronized="false"
  3195. static="false" final="false" visibility="public"
  3196. deprecated="not deprecated">
  3197. </method>
  3198. <method name="read" return="int"
  3199. abstract="false" native="false" synchronized="false"
  3200. static="false" final="false" visibility="public"
  3201. deprecated="not deprecated">
  3202. <param name="b" type="byte[]"/>
  3203. <param name="off" type="int"/>
  3204. <param name="len" type="int"/>
  3205. <exception name="IOException" type="java.io.IOException"/>
  3206. </method>
  3207. <method name="seek"
  3208. abstract="false" native="false" synchronized="false"
  3209. static="false" final="false" visibility="public"
  3210. deprecated="not deprecated">
  3211. <param name="p" type="long"/>
  3212. <exception name="IOException" type="java.io.IOException"/>
  3213. </method>
  3214. <method name="tell" return="long"
  3215. abstract="false" native="false" synchronized="false"
  3216. static="false" final="false" visibility="public"
  3217. deprecated="not deprecated">
  3218. <exception name="IOException" type="java.io.IOException"/>
  3219. </method>
  3220. <method name="close"
  3221. abstract="false" native="false" synchronized="false"
  3222. static="false" final="false" visibility="public"
  3223. deprecated="not deprecated">
  3224. <exception name="IOException" type="java.io.IOException"/>
  3225. </method>
  3226. <doc>
  3227. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  3228. </doc>
  3229. </class>
  3230. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  3231. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  3232. <class name="BlockLocation" extends="java.lang.Object"
  3233. abstract="false"
  3234. static="false" final="false" visibility="public"
  3235. deprecated="not deprecated">
  3236. <constructor name="BlockLocation"
  3237. static="false" final="false" visibility="public"
  3238. deprecated="not deprecated">
  3239. <doc>
  3240. <![CDATA[Default Constructor]]>
  3241. </doc>
  3242. </constructor>
  3243. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  3244. static="false" final="false" visibility="public"
  3245. deprecated="not deprecated">
  3246. <doc>
  3247. <![CDATA[Copy constructor]]>
  3248. </doc>
  3249. </constructor>
  3250. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  3251. static="false" final="false" visibility="public"
  3252. deprecated="not deprecated">
  3253. <doc>
  3254. <![CDATA[Constructor with host, name, offset and length]]>
  3255. </doc>
  3256. </constructor>
  3257. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  3258. static="false" final="false" visibility="public"
  3259. deprecated="not deprecated">
  3260. <doc>
  3261. <![CDATA[Constructor with host, name, offset, length and corrupt flag]]>
  3262. </doc>
  3263. </constructor>
  3264. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  3265. static="false" final="false" visibility="public"
  3266. deprecated="not deprecated">
  3267. <doc>
  3268. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  3269. </doc>
  3270. </constructor>
  3271. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3272. static="false" final="false" visibility="public"
  3273. deprecated="not deprecated">
  3274. <doc>
  3275. <![CDATA[Constructor with host, name, network topology, offset, length
  3276. and corrupt flag]]>
  3277. </doc>
  3278. </constructor>
  3279. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3280. static="false" final="false" visibility="public"
  3281. deprecated="not deprecated">
  3282. </constructor>
  3283. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], org.apache.hadoop.fs.StorageType[], long, long, boolean"
  3284. static="false" final="false" visibility="public"
  3285. deprecated="not deprecated">
  3286. </constructor>
  3287. <method name="getHosts" return="java.lang.String[]"
  3288. abstract="false" native="false" synchronized="false"
  3289. static="false" final="false" visibility="public"
  3290. deprecated="not deprecated">
  3291. <exception name="IOException" type="java.io.IOException"/>
  3292. <doc>
  3293. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  3294. </doc>
  3295. </method>
  3296. <method name="getCachedHosts" return="java.lang.String[]"
  3297. abstract="false" native="false" synchronized="false"
  3298. static="false" final="false" visibility="public"
  3299. deprecated="not deprecated">
  3300. <doc>
  3301. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block]]>
  3302. </doc>
  3303. </method>
  3304. <method name="getNames" return="java.lang.String[]"
  3305. abstract="false" native="false" synchronized="false"
  3306. static="false" final="false" visibility="public"
  3307. deprecated="not deprecated">
  3308. <exception name="IOException" type="java.io.IOException"/>
  3309. <doc>
  3310. <![CDATA[Get the list of names (IP:xferPort) hosting this block]]>
  3311. </doc>
  3312. </method>
  3313. <method name="getTopologyPaths" return="java.lang.String[]"
  3314. abstract="false" native="false" synchronized="false"
  3315. static="false" final="false" visibility="public"
  3316. deprecated="not deprecated">
  3317. <exception name="IOException" type="java.io.IOException"/>
  3318. <doc>
  3319. <![CDATA[Get the list of network topology paths for each of the hosts.
  3320. The last component of the path is the "name" (IP:xferPort).]]>
  3321. </doc>
  3322. </method>
  3323. <method name="getStorageIds" return="java.lang.String[]"
  3324. abstract="false" native="false" synchronized="false"
  3325. static="false" final="false" visibility="public"
  3326. deprecated="not deprecated">
  3327. <doc>
  3328. <![CDATA[Get the storageID of each replica of the block.]]>
  3329. </doc>
  3330. </method>
  3331. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3332. abstract="false" native="false" synchronized="false"
  3333. static="false" final="false" visibility="public"
  3334. deprecated="not deprecated">
  3335. <doc>
  3336. <![CDATA[Get the storage type of each replica of the block.]]>
  3337. </doc>
  3338. </method>
  3339. <method name="getOffset" return="long"
  3340. abstract="false" native="false" synchronized="false"
  3341. static="false" final="false" visibility="public"
  3342. deprecated="not deprecated">
  3343. <doc>
  3344. <![CDATA[Get the start offset of file associated with this block]]>
  3345. </doc>
  3346. </method>
  3347. <method name="getLength" return="long"
  3348. abstract="false" native="false" synchronized="false"
  3349. static="false" final="false" visibility="public"
  3350. deprecated="not deprecated">
  3351. <doc>
  3352. <![CDATA[Get the length of the block]]>
  3353. </doc>
  3354. </method>
  3355. <method name="isCorrupt" return="boolean"
  3356. abstract="false" native="false" synchronized="false"
  3357. static="false" final="false" visibility="public"
  3358. deprecated="not deprecated">
  3359. <doc>
  3360. <![CDATA[Get the corrupt flag.]]>
  3361. </doc>
  3362. </method>
  3363. <method name="setOffset"
  3364. abstract="false" native="false" synchronized="false"
  3365. static="false" final="false" visibility="public"
  3366. deprecated="not deprecated">
  3367. <param name="offset" type="long"/>
  3368. <doc>
  3369. <![CDATA[Set the start offset of file associated with this block]]>
  3370. </doc>
  3371. </method>
  3372. <method name="setLength"
  3373. abstract="false" native="false" synchronized="false"
  3374. static="false" final="false" visibility="public"
  3375. deprecated="not deprecated">
  3376. <param name="length" type="long"/>
  3377. <doc>
  3378. <![CDATA[Set the length of block]]>
  3379. </doc>
  3380. </method>
  3381. <method name="setCorrupt"
  3382. abstract="false" native="false" synchronized="false"
  3383. static="false" final="false" visibility="public"
  3384. deprecated="not deprecated">
  3385. <param name="corrupt" type="boolean"/>
  3386. <doc>
  3387. <![CDATA[Set the corrupt flag.]]>
  3388. </doc>
  3389. </method>
  3390. <method name="setHosts"
  3391. abstract="false" native="false" synchronized="false"
  3392. static="false" final="false" visibility="public"
  3393. deprecated="not deprecated">
  3394. <param name="hosts" type="java.lang.String[]"/>
  3395. <exception name="IOException" type="java.io.IOException"/>
  3396. <doc>
  3397. <![CDATA[Set the hosts hosting this block]]>
  3398. </doc>
  3399. </method>
  3400. <method name="setCachedHosts"
  3401. abstract="false" native="false" synchronized="false"
  3402. static="false" final="false" visibility="public"
  3403. deprecated="not deprecated">
  3404. <param name="cachedHosts" type="java.lang.String[]"/>
  3405. <doc>
  3406. <![CDATA[Set the hosts hosting a cached replica of this block]]>
  3407. </doc>
  3408. </method>
  3409. <method name="setNames"
  3410. abstract="false" native="false" synchronized="false"
  3411. static="false" final="false" visibility="public"
  3412. deprecated="not deprecated">
  3413. <param name="names" type="java.lang.String[]"/>
  3414. <exception name="IOException" type="java.io.IOException"/>
  3415. <doc>
  3416. <![CDATA[Set the names (host:port) hosting this block]]>
  3417. </doc>
  3418. </method>
  3419. <method name="setTopologyPaths"
  3420. abstract="false" native="false" synchronized="false"
  3421. static="false" final="false" visibility="public"
  3422. deprecated="not deprecated">
  3423. <param name="topologyPaths" type="java.lang.String[]"/>
  3424. <exception name="IOException" type="java.io.IOException"/>
  3425. <doc>
  3426. <![CDATA[Set the network topology paths of the hosts]]>
  3427. </doc>
  3428. </method>
  3429. <method name="setStorageIds"
  3430. abstract="false" native="false" synchronized="false"
  3431. static="false" final="false" visibility="public"
  3432. deprecated="not deprecated">
  3433. <param name="storageIds" type="java.lang.String[]"/>
  3434. </method>
  3435. <method name="setStorageTypes"
  3436. abstract="false" native="false" synchronized="false"
  3437. static="false" final="false" visibility="public"
  3438. deprecated="not deprecated">
  3439. <param name="storageTypes" type="org.apache.hadoop.fs.StorageType[]"/>
  3440. </method>
  3441. <method name="toString" return="java.lang.String"
  3442. abstract="false" native="false" synchronized="false"
  3443. static="false" final="false" visibility="public"
  3444. deprecated="not deprecated">
  3445. </method>
  3446. <doc>
  3447. <![CDATA[Represents the network location of a block, information about the hosts
  3448. that contain block replicas, and other block metadata (E.g. the file
  3449. offset associated with the block, length, whether it is corrupt, etc).]]>
  3450. </doc>
  3451. </class>
  3452. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  3453. <!-- start interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3454. <interface name="BlockStoragePolicySpi" abstract="true"
  3455. static="false" final="false" visibility="public"
  3456. deprecated="not deprecated">
  3457. <method name="getName" return="java.lang.String"
  3458. abstract="false" native="false" synchronized="false"
  3459. static="false" final="false" visibility="public"
  3460. deprecated="not deprecated">
  3461. <doc>
  3462. <![CDATA[Return the name of the storage policy. Policies are uniquely
  3463. identified by name.
  3464. @return the name of the storage policy.]]>
  3465. </doc>
  3466. </method>
  3467. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3468. abstract="false" native="false" synchronized="false"
  3469. static="false" final="false" visibility="public"
  3470. deprecated="not deprecated">
  3471. <doc>
  3472. <![CDATA[Return the preferred storage types associated with this policy. These
  3473. storage types are used sequentially for successive block replicas.
  3474. @return preferred storage types used for placing block replicas.]]>
  3475. </doc>
  3476. </method>
  3477. <method name="getCreationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3478. abstract="false" native="false" synchronized="false"
  3479. static="false" final="false" visibility="public"
  3480. deprecated="not deprecated">
  3481. <doc>
  3482. <![CDATA[Get the fallback storage types for creating new block replicas. Fallback
  3483. storage types are used if the preferred storage types are not available.
  3484. @return fallback storage types for new block replicas..]]>
  3485. </doc>
  3486. </method>
  3487. <method name="getReplicationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3488. abstract="false" native="false" synchronized="false"
  3489. static="false" final="false" visibility="public"
  3490. deprecated="not deprecated">
  3491. <doc>
  3492. <![CDATA[Get the fallback storage types for replicating existing block replicas.
  3493. Fallback storage types are used if the preferred storage types are not
  3494. available.
  3495. @return fallback storage types for replicating existing block replicas.]]>
  3496. </doc>
  3497. </method>
  3498. <method name="isCopyOnCreateFile" return="boolean"
  3499. abstract="false" native="false" synchronized="false"
  3500. static="false" final="false" visibility="public"
  3501. deprecated="not deprecated">
  3502. <doc>
  3503. <![CDATA[Returns true if the policy is inherit-only and cannot be changed for
  3504. an existing file.
  3505. @return true if the policy is inherit-only.]]>
  3506. </doc>
  3507. </method>
  3508. <doc>
  3509. <![CDATA[A storage policy specifies the placement of block replicas on specific
  3510. storage types.]]>
  3511. </doc>
  3512. </interface>
  3513. <!-- end interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3514. <!-- start interface org.apache.hadoop.fs.ByteBufferPositionedReadable -->
  3515. <interface name="ByteBufferPositionedReadable" abstract="true"
  3516. static="false" final="false" visibility="public"
  3517. deprecated="not deprecated">
  3518. <method name="read" return="int"
  3519. abstract="false" native="false" synchronized="false"
  3520. static="false" final="false" visibility="public"
  3521. deprecated="not deprecated">
  3522. <param name="position" type="long"/>
  3523. <param name="buf" type="java.nio.ByteBuffer"/>
  3524. <exception name="IOException" type="java.io.IOException"/>
  3525. <doc>
  3526. <![CDATA[Reads up to {@code buf.remaining()} bytes into buf from a given position in
  3527. the file and returns the number of bytes read. Callers should use
  3528. {@code buf.limit(...)} to control the size of the desired read and
  3529. {@code buf.position(...)} to control the offset into the buffer the data
  3530. should be written to.
  3531. <p>
  3532. After a successful call, {@code buf.position()} will be advanced by the
  3533. number of bytes read and {@code buf.limit()} will be unchanged.
  3534. <p>
  3535. In the case of an exception, the state of the buffer (the contents of the
  3536. buffer, the {@code buf.position()}, the {@code buf.limit()}, etc.) is
  3537. undefined, and callers should be prepared to recover from this eventuality.
  3538. <p>
  3539. Callers should use {@link StreamCapabilities#hasCapability(String)} with
  3540. {@link StreamCapabilities#PREADBYTEBUFFER} to check if the underlying
  3541. stream supports this interface, otherwise they might get a
  3542. {@link UnsupportedOperationException}.
  3543. <p>
  3544. Implementations should treat 0-length requests as legitimate, and must not
  3545. signal an error upon their receipt.
  3546. @param position position within file
  3547. @param buf the ByteBuffer to receive the results of the read operation.
  3548. @return the number of bytes read, possibly zero, or -1 if reached
  3549. end-of-stream
  3550. @throws IOException if there is some error performing the read]]>
  3551. </doc>
  3552. </method>
  3553. <doc>
  3554. <![CDATA[Implementers of this interface provide a positioned read API that writes to a
  3555. {@link ByteBuffer} rather than a {@code byte[]}.
  3556. @see PositionedReadable
  3557. @see ByteBufferReadable]]>
  3558. </doc>
  3559. </interface>
  3560. <!-- end interface org.apache.hadoop.fs.ByteBufferPositionedReadable -->
  3561. <!-- start interface org.apache.hadoop.fs.ByteBufferReadable -->
  3562. <interface name="ByteBufferReadable" abstract="true"
  3563. static="false" final="false" visibility="public"
  3564. deprecated="not deprecated">
  3565. <method name="read" return="int"
  3566. abstract="false" native="false" synchronized="false"
  3567. static="false" final="false" visibility="public"
  3568. deprecated="not deprecated">
  3569. <param name="buf" type="java.nio.ByteBuffer"/>
  3570. <exception name="IOException" type="java.io.IOException"/>
  3571. <doc>
  3572. <![CDATA[Reads up to buf.remaining() bytes into buf. Callers should use
  3573. buf.limit(..) to control the size of the desired read.
  3574. <p/>
  3575. After a successful call, buf.position() will be advanced by the number
  3576. of bytes read and buf.limit() should be unchanged.
  3577. <p/>
  3578. In the case of an exception, the values of buf.position() and buf.limit()
  3579. are undefined, and callers should be prepared to recover from this
  3580. eventuality.
  3581. <p/>
  3582. Many implementations will throw {@link UnsupportedOperationException}, so
  3583. callers that are not confident in support for this method from the
  3584. underlying filesystem should be prepared to handle that exception.
  3585. <p/>
  3586. Implementations should treat 0-length requests as legitimate, and must not
  3587. signal an error upon their receipt.
  3588. @param buf
  3589. the ByteBuffer to receive the results of the read operation.
  3590. @return the number of bytes read, possibly zero, or -1 if
  3591. reach end-of-stream
  3592. @throws IOException
  3593. if there is some error performing the read]]>
  3594. </doc>
  3595. </method>
  3596. <doc>
  3597. <![CDATA[Implementers of this interface provide a read API that writes to a
  3598. ByteBuffer, not a byte[].]]>
  3599. </doc>
  3600. </interface>
  3601. <!-- end interface org.apache.hadoop.fs.ByteBufferReadable -->
  3602. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  3603. <interface name="CanSetDropBehind" abstract="true"
  3604. static="false" final="false" visibility="public"
  3605. deprecated="not deprecated">
  3606. <method name="setDropBehind"
  3607. abstract="false" native="false" synchronized="false"
  3608. static="false" final="false" visibility="public"
  3609. deprecated="not deprecated">
  3610. <param name="dropCache" type="java.lang.Boolean"/>
  3611. <exception name="IOException" type="java.io.IOException"/>
  3612. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3613. <doc>
  3614. <![CDATA[Configure whether the stream should drop the cache.
  3615. @param dropCache Whether to drop the cache. null means to use the
  3616. default value.
  3617. @throws IOException If there was an error changing the dropBehind
  3618. setting.
  3619. UnsupportedOperationException If this stream doesn't support
  3620. setting the drop-behind.]]>
  3621. </doc>
  3622. </method>
  3623. </interface>
  3624. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  3625. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  3626. <interface name="CanSetReadahead" abstract="true"
  3627. static="false" final="false" visibility="public"
  3628. deprecated="not deprecated">
  3629. <method name="setReadahead"
  3630. abstract="false" native="false" synchronized="false"
  3631. static="false" final="false" visibility="public"
  3632. deprecated="not deprecated">
  3633. <param name="readahead" type="java.lang.Long"/>
  3634. <exception name="IOException" type="java.io.IOException"/>
  3635. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3636. <doc>
  3637. <![CDATA[Set the readahead on this stream.
  3638. @param readahead The readahead to use. null means to use the default.
  3639. @throws IOException If there was an error changing the dropBehind
  3640. setting.
  3641. UnsupportedOperationException If this stream doesn't support
  3642. setting readahead.]]>
  3643. </doc>
  3644. </method>
  3645. </interface>
  3646. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  3647. <!-- start interface org.apache.hadoop.fs.CanUnbuffer -->
  3648. <interface name="CanUnbuffer" abstract="true"
  3649. static="false" final="false" visibility="public"
  3650. deprecated="not deprecated">
  3651. <method name="unbuffer"
  3652. abstract="false" native="false" synchronized="false"
  3653. static="false" final="false" visibility="public"
  3654. deprecated="not deprecated">
  3655. <doc>
  3656. <![CDATA[Reduce the buffering. This will also free sockets and file descriptors
  3657. held by the stream, if possible.]]>
  3658. </doc>
  3659. </method>
  3660. <doc>
  3661. <![CDATA[FSDataInputStreams implement this interface to indicate that they can clear
  3662. their buffers on request.]]>
  3663. </doc>
  3664. </interface>
  3665. <!-- end interface org.apache.hadoop.fs.CanUnbuffer -->
  3666. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  3667. <class name="ChecksumException" extends="java.io.IOException"
  3668. abstract="false"
  3669. static="false" final="false" visibility="public"
  3670. deprecated="not deprecated">
  3671. <constructor name="ChecksumException" type="java.lang.String, long"
  3672. static="false" final="false" visibility="public"
  3673. deprecated="not deprecated">
  3674. </constructor>
  3675. <method name="getPos" return="long"
  3676. abstract="false" native="false" synchronized="false"
  3677. static="false" final="false" visibility="public"
  3678. deprecated="not deprecated">
  3679. </method>
  3680. <doc>
  3681. <![CDATA[Thrown for checksum errors.]]>
  3682. </doc>
  3683. </class>
  3684. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  3685. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  3686. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  3687. abstract="true"
  3688. static="false" final="false" visibility="public"
  3689. deprecated="not deprecated">
  3690. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  3691. static="false" final="false" visibility="public"
  3692. deprecated="not deprecated">
  3693. </constructor>
  3694. <method name="getApproxChkSumLength" return="double"
  3695. abstract="false" native="false" synchronized="false"
  3696. static="true" final="false" visibility="public"
  3697. deprecated="not deprecated">
  3698. <param name="size" type="long"/>
  3699. </method>
  3700. <method name="setConf"
  3701. abstract="false" native="false" synchronized="false"
  3702. static="false" final="false" visibility="public"
  3703. deprecated="not deprecated">
  3704. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3705. </method>
  3706. <method name="setVerifyChecksum"
  3707. abstract="false" native="false" synchronized="false"
  3708. static="false" final="false" visibility="public"
  3709. deprecated="not deprecated">
  3710. <param name="verifyChecksum" type="boolean"/>
  3711. <doc>
  3712. <![CDATA[Set whether to verify checksum.]]>
  3713. </doc>
  3714. </method>
  3715. <method name="setWriteChecksum"
  3716. abstract="false" native="false" synchronized="false"
  3717. static="false" final="false" visibility="public"
  3718. deprecated="not deprecated">
  3719. <param name="writeChecksum" type="boolean"/>
  3720. </method>
  3721. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  3722. abstract="false" native="false" synchronized="false"
  3723. static="false" final="false" visibility="public"
  3724. deprecated="not deprecated">
  3725. <doc>
  3726. <![CDATA[get the raw file system]]>
  3727. </doc>
  3728. </method>
  3729. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  3730. abstract="false" native="false" synchronized="false"
  3731. static="false" final="false" visibility="public"
  3732. deprecated="not deprecated">
  3733. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3734. <doc>
  3735. <![CDATA[Return the name of the checksum file associated with a file.]]>
  3736. </doc>
  3737. </method>
  3738. <method name="isChecksumFile" return="boolean"
  3739. abstract="false" native="false" synchronized="false"
  3740. static="true" final="false" visibility="public"
  3741. deprecated="not deprecated">
  3742. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3743. <doc>
  3744. <![CDATA[Return true iff file is a checksum file name.]]>
  3745. </doc>
  3746. </method>
  3747. <method name="getChecksumFileLength" return="long"
  3748. abstract="false" native="false" synchronized="false"
  3749. static="false" final="false" visibility="public"
  3750. deprecated="not deprecated">
  3751. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3752. <param name="fileSize" type="long"/>
  3753. <doc>
  3754. <![CDATA[Return the length of the checksum file given the size of the
  3755. actual file.]]>
  3756. </doc>
  3757. </method>
  3758. <method name="getBytesPerSum" return="int"
  3759. abstract="false" native="false" synchronized="false"
  3760. static="false" final="false" visibility="public"
  3761. deprecated="not deprecated">
  3762. <doc>
  3763. <![CDATA[Return the bytes Per Checksum]]>
  3764. </doc>
  3765. </method>
  3766. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3767. abstract="false" native="false" synchronized="false"
  3768. static="false" final="false" visibility="public"
  3769. deprecated="not deprecated">
  3770. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3771. <param name="bufferSize" type="int"/>
  3772. <exception name="IOException" type="java.io.IOException"/>
  3773. <doc>
  3774. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  3775. @param f the file name to open
  3776. @param bufferSize the size of the buffer to be used.]]>
  3777. </doc>
  3778. </method>
  3779. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  3780. abstract="false" native="false" synchronized="false"
  3781. static="false" final="false" visibility="public"
  3782. deprecated="not deprecated">
  3783. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3784. <param name="bufferSize" type="int"/>
  3785. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3786. <exception name="IOException" type="java.io.IOException"/>
  3787. </method>
  3788. <method name="truncate" return="boolean"
  3789. abstract="false" native="false" synchronized="false"
  3790. static="false" final="false" visibility="public"
  3791. deprecated="not deprecated">
  3792. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3793. <param name="newLength" type="long"/>
  3794. <exception name="IOException" type="java.io.IOException"/>
  3795. </method>
  3796. <method name="getChecksumLength" return="long"
  3797. abstract="false" native="false" synchronized="false"
  3798. static="true" final="false" visibility="public"
  3799. deprecated="not deprecated">
  3800. <param name="size" type="long"/>
  3801. <param name="bytesPerSum" type="int"/>
  3802. <doc>
  3803. <![CDATA[Calculated the length of the checksum file in bytes.
  3804. @param size the length of the data file in bytes
  3805. @param bytesPerSum the number of bytes in a checksum block
  3806. @return the number of bytes in the checksum file]]>
  3807. </doc>
  3808. </method>
  3809. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3810. abstract="false" native="false" synchronized="false"
  3811. static="false" final="false" visibility="public"
  3812. deprecated="not deprecated">
  3813. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3814. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3815. <param name="overwrite" type="boolean"/>
  3816. <param name="bufferSize" type="int"/>
  3817. <param name="replication" type="short"/>
  3818. <param name="blockSize" type="long"/>
  3819. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3820. <exception name="IOException" type="java.io.IOException"/>
  3821. </method>
  3822. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  3823. abstract="false" native="false" synchronized="false"
  3824. static="false" final="false" visibility="public"
  3825. deprecated="not deprecated">
  3826. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3827. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3828. <param name="overwrite" type="boolean"/>
  3829. <param name="bufferSize" type="int"/>
  3830. <param name="replication" type="short"/>
  3831. <param name="blockSize" type="long"/>
  3832. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3833. <exception name="IOException" type="java.io.IOException"/>
  3834. </method>
  3835. <method name="setPermission"
  3836. abstract="false" native="false" synchronized="false"
  3837. static="false" final="false" visibility="public"
  3838. deprecated="not deprecated">
  3839. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3840. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3841. <exception name="IOException" type="java.io.IOException"/>
  3842. </method>
  3843. <method name="setOwner"
  3844. abstract="false" native="false" synchronized="false"
  3845. static="false" final="false" visibility="public"
  3846. deprecated="not deprecated">
  3847. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3848. <param name="username" type="java.lang.String"/>
  3849. <param name="groupname" type="java.lang.String"/>
  3850. <exception name="IOException" type="java.io.IOException"/>
  3851. </method>
  3852. <method name="setAcl"
  3853. abstract="false" native="false" synchronized="false"
  3854. static="false" final="false" visibility="public"
  3855. deprecated="not deprecated">
  3856. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3857. <param name="aclSpec" type="java.util.List"/>
  3858. <exception name="IOException" type="java.io.IOException"/>
  3859. </method>
  3860. <method name="modifyAclEntries"
  3861. abstract="false" native="false" synchronized="false"
  3862. static="false" final="false" visibility="public"
  3863. deprecated="not deprecated">
  3864. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3865. <param name="aclSpec" type="java.util.List"/>
  3866. <exception name="IOException" type="java.io.IOException"/>
  3867. </method>
  3868. <method name="removeAcl"
  3869. abstract="false" native="false" synchronized="false"
  3870. static="false" final="false" visibility="public"
  3871. deprecated="not deprecated">
  3872. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3873. <exception name="IOException" type="java.io.IOException"/>
  3874. </method>
  3875. <method name="removeAclEntries"
  3876. abstract="false" native="false" synchronized="false"
  3877. static="false" final="false" visibility="public"
  3878. deprecated="not deprecated">
  3879. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3880. <param name="aclSpec" type="java.util.List"/>
  3881. <exception name="IOException" type="java.io.IOException"/>
  3882. </method>
  3883. <method name="removeDefaultAcl"
  3884. abstract="false" native="false" synchronized="false"
  3885. static="false" final="false" visibility="public"
  3886. deprecated="not deprecated">
  3887. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3888. <exception name="IOException" type="java.io.IOException"/>
  3889. </method>
  3890. <method name="setReplication" return="boolean"
  3891. abstract="false" native="false" synchronized="false"
  3892. static="false" final="false" visibility="public"
  3893. deprecated="not deprecated">
  3894. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3895. <param name="replication" type="short"/>
  3896. <exception name="IOException" type="java.io.IOException"/>
  3897. <doc>
  3898. <![CDATA[Set replication for an existing file.
  3899. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  3900. @param src file name
  3901. @param replication new replication
  3902. @throws IOException
  3903. @return true if successful;
  3904. false if file does not exist or is a directory]]>
  3905. </doc>
  3906. </method>
  3907. <method name="rename" return="boolean"
  3908. abstract="false" native="false" synchronized="false"
  3909. static="false" final="false" visibility="public"
  3910. deprecated="not deprecated">
  3911. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3912. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3913. <exception name="IOException" type="java.io.IOException"/>
  3914. <doc>
  3915. <![CDATA[Rename files/dirs]]>
  3916. </doc>
  3917. </method>
  3918. <method name="delete" return="boolean"
  3919. abstract="false" native="false" synchronized="false"
  3920. static="false" final="false" visibility="public"
  3921. deprecated="not deprecated">
  3922. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3923. <param name="recursive" type="boolean"/>
  3924. <exception name="IOException" type="java.io.IOException"/>
  3925. <doc>
  3926. <![CDATA[Implement the delete(Path, boolean) in checksum
  3927. file system.]]>
  3928. </doc>
  3929. </method>
  3930. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3931. abstract="false" native="false" synchronized="false"
  3932. static="false" final="false" visibility="public"
  3933. deprecated="not deprecated">
  3934. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3935. <exception name="IOException" type="java.io.IOException"/>
  3936. <doc>
  3937. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3938. a directory.
  3939. @param f
  3940. given path
  3941. @return the statuses of the files/directories in the given path
  3942. @throws IOException]]>
  3943. </doc>
  3944. </method>
  3945. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  3946. abstract="false" native="false" synchronized="false"
  3947. static="false" final="false" visibility="public"
  3948. deprecated="not deprecated">
  3949. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3950. <exception name="IOException" type="java.io.IOException"/>
  3951. <doc>
  3952. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3953. a directory.
  3954. @param f
  3955. given path
  3956. @return the statuses of the files/directories in the given patch
  3957. @throws IOException]]>
  3958. </doc>
  3959. </method>
  3960. <method name="mkdirs" return="boolean"
  3961. abstract="false" native="false" synchronized="false"
  3962. static="false" final="false" visibility="public"
  3963. deprecated="not deprecated">
  3964. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3965. <exception name="IOException" type="java.io.IOException"/>
  3966. </method>
  3967. <method name="copyFromLocalFile"
  3968. abstract="false" native="false" synchronized="false"
  3969. static="false" final="false" visibility="public"
  3970. deprecated="not deprecated">
  3971. <param name="delSrc" type="boolean"/>
  3972. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3973. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3974. <exception name="IOException" type="java.io.IOException"/>
  3975. </method>
  3976. <method name="copyToLocalFile"
  3977. abstract="false" native="false" synchronized="false"
  3978. static="false" final="false" visibility="public"
  3979. deprecated="not deprecated">
  3980. <param name="delSrc" type="boolean"/>
  3981. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3982. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3983. <exception name="IOException" type="java.io.IOException"/>
  3984. <doc>
  3985. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3986. Copy it from FS control to the local dst name.]]>
  3987. </doc>
  3988. </method>
  3989. <method name="copyToLocalFile"
  3990. abstract="false" native="false" synchronized="false"
  3991. static="false" final="false" visibility="public"
  3992. deprecated="not deprecated">
  3993. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3994. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3995. <param name="copyCrc" type="boolean"/>
  3996. <exception name="IOException" type="java.io.IOException"/>
  3997. <doc>
  3998. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3999. Copy it from FS control to the local dst name.
  4000. If src and dst are directories, the copyCrc parameter
  4001. determines whether to copy CRC files.]]>
  4002. </doc>
  4003. </method>
  4004. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4005. abstract="false" native="false" synchronized="false"
  4006. static="false" final="false" visibility="public"
  4007. deprecated="not deprecated">
  4008. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4009. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4010. <exception name="IOException" type="java.io.IOException"/>
  4011. </method>
  4012. <method name="completeLocalOutput"
  4013. abstract="false" native="false" synchronized="false"
  4014. static="false" final="false" visibility="public"
  4015. deprecated="not deprecated">
  4016. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4017. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4018. <exception name="IOException" type="java.io.IOException"/>
  4019. </method>
  4020. <method name="reportChecksumFailure" return="boolean"
  4021. abstract="false" native="false" synchronized="false"
  4022. static="false" final="false" visibility="public"
  4023. deprecated="not deprecated">
  4024. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4025. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4026. <param name="inPos" type="long"/>
  4027. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4028. <param name="sumsPos" type="long"/>
  4029. <doc>
  4030. <![CDATA[Report a checksum error to the file system.
  4031. @param f the file name containing the error
  4032. @param in the stream open on the file
  4033. @param inPos the position of the beginning of the bad data in the file
  4034. @param sums the stream open on the checksum file
  4035. @param sumsPos the position of the beginning of the bad data in the checksum file
  4036. @return if retry is neccessary]]>
  4037. </doc>
  4038. </method>
  4039. <doc>
  4040. <![CDATA[Abstract Checksumed FileSystem.
  4041. It provide a basic implementation of a Checksumed FileSystem,
  4042. which creates a checksum file for each raw file.
  4043. It generates & verifies checksums at the client side.]]>
  4044. </doc>
  4045. </class>
  4046. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  4047. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  4048. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  4049. abstract="false"
  4050. static="false" final="false" visibility="public"
  4051. deprecated="not deprecated">
  4052. <constructor name="CommonConfigurationKeysPublic"
  4053. static="false" final="false" visibility="public"
  4054. deprecated="not deprecated">
  4055. </constructor>
  4056. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  4057. transient="false" volatile="false"
  4058. static="true" final="true" visibility="public"
  4059. deprecated="not deprecated">
  4060. <doc>
  4061. <![CDATA[@see
  4062. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4063. core-default.xml</a>]]>
  4064. </doc>
  4065. </field>
  4066. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  4067. transient="false" volatile="false"
  4068. static="true" final="true" visibility="public"
  4069. deprecated="not deprecated">
  4070. <doc>
  4071. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  4072. </doc>
  4073. </field>
  4074. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  4075. transient="false" volatile="false"
  4076. static="true" final="true" visibility="public"
  4077. deprecated="not deprecated">
  4078. <doc>
  4079. <![CDATA[@see
  4080. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4081. core-default.xml</a>]]>
  4082. </doc>
  4083. </field>
  4084. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  4085. transient="false" volatile="false"
  4086. static="true" final="true" visibility="public"
  4087. deprecated="not deprecated">
  4088. <doc>
  4089. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  4090. </doc>
  4091. </field>
  4092. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  4093. transient="false" volatile="false"
  4094. static="true" final="true" visibility="public"
  4095. deprecated="not deprecated">
  4096. <doc>
  4097. <![CDATA[@see
  4098. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4099. core-default.xml</a>]]>
  4100. </doc>
  4101. </field>
  4102. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  4103. transient="false" volatile="false"
  4104. static="true" final="true" visibility="public"
  4105. deprecated="not deprecated">
  4106. <doc>
  4107. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  4108. </doc>
  4109. </field>
  4110. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  4111. transient="false" volatile="false"
  4112. static="true" final="true" visibility="public"
  4113. deprecated="not deprecated">
  4114. <doc>
  4115. <![CDATA[@see
  4116. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4117. core-default.xml</a>]]>
  4118. </doc>
  4119. </field>
  4120. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  4121. transient="false" volatile="false"
  4122. static="true" final="true" visibility="public"
  4123. deprecated="not deprecated">
  4124. <doc>
  4125. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  4126. </doc>
  4127. </field>
  4128. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  4129. transient="false" volatile="false"
  4130. static="true" final="true" visibility="public"
  4131. deprecated="not deprecated">
  4132. <doc>
  4133. <![CDATA[@see
  4134. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4135. core-default.xml</a>]]>
  4136. </doc>
  4137. </field>
  4138. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  4139. transient="false" volatile="false"
  4140. static="true" final="true" visibility="public"
  4141. deprecated="not deprecated">
  4142. <doc>
  4143. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  4144. </doc>
  4145. </field>
  4146. <field name="FS_GETSPACEUSED_CLASSNAME" type="java.lang.String"
  4147. transient="false" volatile="false"
  4148. static="true" final="true" visibility="public"
  4149. deprecated="not deprecated">
  4150. <doc>
  4151. <![CDATA[@see
  4152. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4153. core-default.xml</a>]]>
  4154. </doc>
  4155. </field>
  4156. <field name="FS_GETSPACEUSED_JITTER_KEY" type="java.lang.String"
  4157. transient="false" volatile="false"
  4158. static="true" final="true" visibility="public"
  4159. deprecated="not deprecated">
  4160. <doc>
  4161. <![CDATA[@see
  4162. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4163. core-default.xml</a>]]>
  4164. </doc>
  4165. </field>
  4166. <field name="FS_GETSPACEUSED_JITTER_DEFAULT" type="long"
  4167. transient="false" volatile="false"
  4168. static="true" final="true" visibility="public"
  4169. deprecated="not deprecated">
  4170. <doc>
  4171. <![CDATA[Default value for FS_GETSPACEUSED_JITTER_KEY]]>
  4172. </doc>
  4173. </field>
  4174. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY" type="java.lang.String"
  4175. transient="false" volatile="false"
  4176. static="true" final="true" visibility="public"
  4177. deprecated="not deprecated">
  4178. <doc>
  4179. <![CDATA[@see
  4180. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4181. core-default.xml</a>]]>
  4182. </doc>
  4183. </field>
  4184. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  4185. transient="false" volatile="false"
  4186. static="true" final="true" visibility="public"
  4187. deprecated="not deprecated">
  4188. <doc>
  4189. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  4190. </doc>
  4191. </field>
  4192. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4193. transient="false" volatile="false"
  4194. static="true" final="true" visibility="public"
  4195. deprecated="not deprecated">
  4196. <doc>
  4197. <![CDATA[@see
  4198. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4199. core-default.xml</a>]]>
  4200. </doc>
  4201. </field>
  4202. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  4203. transient="false" volatile="false"
  4204. static="true" final="true" visibility="public"
  4205. deprecated="not deprecated">
  4206. <doc>
  4207. <![CDATA[@see
  4208. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4209. core-default.xml</a>]]>
  4210. </doc>
  4211. </field>
  4212. <field name="NET_TOPOLOGY_IMPL_KEY" type="java.lang.String"
  4213. transient="false" volatile="false"
  4214. static="true" final="true" visibility="public"
  4215. deprecated="not deprecated">
  4216. <doc>
  4217. <![CDATA[@see
  4218. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4219. core-default.xml</a>]]>
  4220. </doc>
  4221. </field>
  4222. <field name="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  4223. transient="false" volatile="false"
  4224. static="true" final="true" visibility="public"
  4225. deprecated="not deprecated">
  4226. <doc>
  4227. <![CDATA[@see
  4228. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4229. core-default.xml</a>]]>
  4230. </doc>
  4231. </field>
  4232. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4233. transient="false" volatile="false"
  4234. static="true" final="true" visibility="public"
  4235. deprecated="not deprecated">
  4236. </field>
  4237. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  4238. transient="false" volatile="false"
  4239. static="true" final="true" visibility="public"
  4240. deprecated="not deprecated">
  4241. <doc>
  4242. <![CDATA[@see
  4243. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4244. core-default.xml</a>]]>
  4245. </doc>
  4246. </field>
  4247. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  4248. transient="false" volatile="false"
  4249. static="true" final="true" visibility="public"
  4250. deprecated="not deprecated">
  4251. <doc>
  4252. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  4253. </doc>
  4254. </field>
  4255. <field name="FS_PROTECTED_DIRECTORIES" type="java.lang.String"
  4256. transient="false" volatile="false"
  4257. static="true" final="true" visibility="public"
  4258. deprecated="not deprecated">
  4259. <doc>
  4260. <![CDATA[Directories that cannot be removed unless empty, even by an
  4261. administrator.]]>
  4262. </doc>
  4263. </field>
  4264. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  4265. transient="false" volatile="false"
  4266. static="true" final="true" visibility="public"
  4267. deprecated="not deprecated">
  4268. <doc>
  4269. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  4270. </doc>
  4271. </field>
  4272. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  4273. transient="false" volatile="false"
  4274. static="true" final="true" visibility="public"
  4275. deprecated="not deprecated">
  4276. <doc>
  4277. <![CDATA[@see
  4278. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4279. core-default.xml</a>]]>
  4280. </doc>
  4281. </field>
  4282. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  4283. transient="false" volatile="false"
  4284. static="true" final="true" visibility="public"
  4285. deprecated="not deprecated">
  4286. <doc>
  4287. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  4288. </doc>
  4289. </field>
  4290. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  4291. transient="false" volatile="false"
  4292. static="true" final="true" visibility="public"
  4293. deprecated="not deprecated">
  4294. <doc>
  4295. <![CDATA[@see
  4296. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4297. core-default.xml</a>]]>
  4298. </doc>
  4299. </field>
  4300. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  4301. transient="false" volatile="false"
  4302. static="true" final="true" visibility="public"
  4303. deprecated="not deprecated">
  4304. <doc>
  4305. <![CDATA[@see
  4306. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4307. core-default.xml</a>]]>
  4308. </doc>
  4309. </field>
  4310. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  4311. transient="false" volatile="false"
  4312. static="true" final="true" visibility="public"
  4313. deprecated="not deprecated">
  4314. <doc>
  4315. <![CDATA[@see
  4316. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4317. core-default.xml</a>]]>
  4318. </doc>
  4319. </field>
  4320. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  4321. transient="false" volatile="false"
  4322. static="true" final="true" visibility="public"
  4323. deprecated="not deprecated">
  4324. <doc>
  4325. <![CDATA[@see
  4326. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4327. core-default.xml</a>]]>
  4328. </doc>
  4329. </field>
  4330. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  4331. transient="false" volatile="false"
  4332. static="true" final="true" visibility="public"
  4333. deprecated="not deprecated">
  4334. <doc>
  4335. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  4336. </doc>
  4337. </field>
  4338. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED" type="java.lang.String"
  4339. transient="false" volatile="false"
  4340. static="true" final="true" visibility="public"
  4341. deprecated="not deprecated">
  4342. <doc>
  4343. <![CDATA[@see
  4344. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4345. core-default.xml</a>]]>
  4346. </doc>
  4347. </field>
  4348. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED_DEFAULT" type="boolean"
  4349. transient="false" volatile="false"
  4350. static="true" final="true" visibility="public"
  4351. deprecated="not deprecated">
  4352. <doc>
  4353. <![CDATA[Default value for FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED.]]>
  4354. </doc>
  4355. </field>
  4356. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  4357. transient="false" volatile="false"
  4358. static="true" final="true" visibility="public"
  4359. deprecated="not deprecated">
  4360. <doc>
  4361. <![CDATA[@see
  4362. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4363. core-default.xml</a>]]>
  4364. </doc>
  4365. </field>
  4366. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  4367. transient="false" volatile="false"
  4368. static="true" final="true" visibility="public"
  4369. deprecated="not deprecated">
  4370. <doc>
  4371. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  4372. </doc>
  4373. </field>
  4374. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  4375. transient="false" volatile="false"
  4376. static="true" final="true" visibility="public"
  4377. deprecated="not deprecated">
  4378. <doc>
  4379. <![CDATA[@see
  4380. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4381. core-default.xml</a>]]>
  4382. </doc>
  4383. </field>
  4384. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  4385. transient="false" volatile="false"
  4386. static="true" final="true" visibility="public"
  4387. deprecated="not deprecated">
  4388. <doc>
  4389. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  4390. </doc>
  4391. </field>
  4392. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  4393. transient="false" volatile="false"
  4394. static="true" final="true" visibility="public"
  4395. deprecated="not deprecated">
  4396. <doc>
  4397. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  4398. </doc>
  4399. </field>
  4400. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  4401. transient="false" volatile="false"
  4402. static="true" final="true" visibility="public"
  4403. deprecated="not deprecated">
  4404. <doc>
  4405. <![CDATA[@see
  4406. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4407. core-default.xml</a>]]>
  4408. </doc>
  4409. </field>
  4410. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  4411. transient="false" volatile="false"
  4412. static="true" final="true" visibility="public"
  4413. deprecated="not deprecated">
  4414. <doc>
  4415. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  4416. </doc>
  4417. </field>
  4418. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  4419. transient="false" volatile="false"
  4420. static="true" final="true" visibility="public"
  4421. deprecated="not deprecated">
  4422. <doc>
  4423. <![CDATA[@see
  4424. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4425. core-default.xml</a>]]>
  4426. </doc>
  4427. </field>
  4428. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  4429. transient="false" volatile="false"
  4430. static="true" final="true" visibility="public"
  4431. deprecated="not deprecated">
  4432. <doc>
  4433. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  4434. </doc>
  4435. </field>
  4436. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  4437. transient="false" volatile="false"
  4438. static="true" final="true" visibility="public"
  4439. deprecated="not deprecated">
  4440. <doc>
  4441. <![CDATA[@see
  4442. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4443. core-default.xml</a>]]>
  4444. </doc>
  4445. </field>
  4446. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  4447. transient="false" volatile="false"
  4448. static="true" final="true" visibility="public"
  4449. deprecated="not deprecated">
  4450. <doc>
  4451. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  4452. </doc>
  4453. </field>
  4454. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  4455. transient="false" volatile="false"
  4456. static="true" final="true" visibility="public"
  4457. deprecated="not deprecated">
  4458. <doc>
  4459. <![CDATA[@see
  4460. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4461. core-default.xml</a>]]>
  4462. </doc>
  4463. </field>
  4464. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  4465. transient="false" volatile="false"
  4466. static="true" final="true" visibility="public"
  4467. deprecated="not deprecated">
  4468. <doc>
  4469. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  4470. </doc>
  4471. </field>
  4472. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  4473. transient="false" volatile="false"
  4474. static="true" final="true" visibility="public"
  4475. deprecated="not deprecated">
  4476. <doc>
  4477. <![CDATA[@see
  4478. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4479. core-default.xml</a>]]>
  4480. </doc>
  4481. </field>
  4482. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  4483. transient="false" volatile="false"
  4484. static="true" final="true" visibility="public"
  4485. deprecated="not deprecated">
  4486. <doc>
  4487. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  4488. </doc>
  4489. </field>
  4490. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  4491. transient="false" volatile="false"
  4492. static="true" final="true" visibility="public"
  4493. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  4494. in mapred-default.xml
  4495. See https://issues.apache.org/jira/browse/HADOOP-6801
  4496. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4497. instead, see {@link #SEQ_IO_SORT_MB_KEY}.">
  4498. <doc>
  4499. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  4500. in mapred-default.xml
  4501. See https://issues.apache.org/jira/browse/HADOOP-6801
  4502. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4503. instead, see {@link #SEQ_IO_SORT_MB_KEY}.]]>
  4504. </doc>
  4505. </field>
  4506. <field name="IO_SORT_MB_DEFAULT" type="int"
  4507. transient="false" volatile="false"
  4508. static="true" final="true" visibility="public"
  4509. deprecated="not deprecated">
  4510. <doc>
  4511. <![CDATA[Default value for {@link #IO_SORT_MB_KEY}.]]>
  4512. </doc>
  4513. </field>
  4514. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  4515. transient="false" volatile="false"
  4516. static="true" final="true" visibility="public"
  4517. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  4518. in mapred-default.xml
  4519. See https://issues.apache.org/jira/browse/HADOOP-6801
  4520. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4521. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.">
  4522. <doc>
  4523. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  4524. in mapred-default.xml
  4525. See https://issues.apache.org/jira/browse/HADOOP-6801
  4526. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4527. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  4528. </doc>
  4529. </field>
  4530. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  4531. transient="false" volatile="false"
  4532. static="true" final="true" visibility="public"
  4533. deprecated="not deprecated">
  4534. <doc>
  4535. <![CDATA[Default value for {@link #IO_SORT_FACTOR_KEY}.]]>
  4536. </doc>
  4537. </field>
  4538. <field name="SEQ_IO_SORT_MB_KEY" type="java.lang.String"
  4539. transient="false" volatile="false"
  4540. static="true" final="true" visibility="public"
  4541. deprecated="not deprecated">
  4542. <doc>
  4543. <![CDATA[@see
  4544. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4545. core-default.xml</a>]]>
  4546. </doc>
  4547. </field>
  4548. <field name="SEQ_IO_SORT_MB_DEFAULT" type="int"
  4549. transient="false" volatile="false"
  4550. static="true" final="true" visibility="public"
  4551. deprecated="not deprecated">
  4552. <doc>
  4553. <![CDATA[Default value for {@link #SEQ_IO_SORT_MB_KEY}.]]>
  4554. </doc>
  4555. </field>
  4556. <field name="SEQ_IO_SORT_FACTOR_KEY" type="java.lang.String"
  4557. transient="false" volatile="false"
  4558. static="true" final="true" visibility="public"
  4559. deprecated="not deprecated">
  4560. <doc>
  4561. <![CDATA[@see
  4562. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4563. core-default.xml</a>]]>
  4564. </doc>
  4565. </field>
  4566. <field name="SEQ_IO_SORT_FACTOR_DEFAULT" type="int"
  4567. transient="false" volatile="false"
  4568. static="true" final="true" visibility="public"
  4569. deprecated="not deprecated">
  4570. <doc>
  4571. <![CDATA[Default value for {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  4572. </doc>
  4573. </field>
  4574. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  4575. transient="false" volatile="false"
  4576. static="true" final="true" visibility="public"
  4577. deprecated="not deprecated">
  4578. <doc>
  4579. <![CDATA[@see
  4580. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4581. core-default.xml</a>]]>
  4582. </doc>
  4583. </field>
  4584. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  4585. transient="false" volatile="false"
  4586. static="true" final="true" visibility="public"
  4587. deprecated="not deprecated">
  4588. <doc>
  4589. <![CDATA[@see
  4590. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4591. core-default.xml</a>]]>
  4592. </doc>
  4593. </field>
  4594. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  4595. transient="false" volatile="false"
  4596. static="true" final="true" visibility="public"
  4597. deprecated="not deprecated">
  4598. <doc>
  4599. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  4600. </doc>
  4601. </field>
  4602. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4603. transient="false" volatile="false"
  4604. static="true" final="true" visibility="public"
  4605. deprecated="not deprecated">
  4606. <doc>
  4607. <![CDATA[@see
  4608. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4609. core-default.xml</a>]]>
  4610. </doc>
  4611. </field>
  4612. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  4613. transient="false" volatile="false"
  4614. static="true" final="true" visibility="public"
  4615. deprecated="not deprecated">
  4616. <doc>
  4617. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  4618. </doc>
  4619. </field>
  4620. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4621. transient="false" volatile="false"
  4622. static="true" final="true" visibility="public"
  4623. deprecated="not deprecated">
  4624. <doc>
  4625. <![CDATA[@see
  4626. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4627. core-default.xml</a>]]>
  4628. </doc>
  4629. </field>
  4630. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  4631. transient="false" volatile="false"
  4632. static="true" final="true" visibility="public"
  4633. deprecated="not deprecated">
  4634. <doc>
  4635. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  4636. </doc>
  4637. </field>
  4638. <field name="HADOOP_CALLER_CONTEXT_ENABLED_KEY" type="java.lang.String"
  4639. transient="false" volatile="false"
  4640. static="true" final="true" visibility="public"
  4641. deprecated="not deprecated">
  4642. </field>
  4643. <field name="HADOOP_CALLER_CONTEXT_ENABLED_DEFAULT" type="boolean"
  4644. transient="false" volatile="false"
  4645. static="true" final="true" visibility="public"
  4646. deprecated="not deprecated">
  4647. </field>
  4648. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_KEY" type="java.lang.String"
  4649. transient="false" volatile="false"
  4650. static="true" final="true" visibility="public"
  4651. deprecated="not deprecated">
  4652. </field>
  4653. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_DEFAULT" type="int"
  4654. transient="false" volatile="false"
  4655. static="true" final="true" visibility="public"
  4656. deprecated="not deprecated">
  4657. </field>
  4658. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_KEY" type="java.lang.String"
  4659. transient="false" volatile="false"
  4660. static="true" final="true" visibility="public"
  4661. deprecated="not deprecated">
  4662. </field>
  4663. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_DEFAULT" type="int"
  4664. transient="false" volatile="false"
  4665. static="true" final="true" visibility="public"
  4666. deprecated="not deprecated">
  4667. </field>
  4668. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  4669. transient="false" volatile="false"
  4670. static="true" final="true" visibility="public"
  4671. deprecated="not deprecated">
  4672. <doc>
  4673. <![CDATA[@see
  4674. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4675. core-default.xml</a>]]>
  4676. </doc>
  4677. </field>
  4678. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  4679. transient="false" volatile="false"
  4680. static="true" final="true" visibility="public"
  4681. deprecated="not deprecated">
  4682. <doc>
  4683. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  4684. </doc>
  4685. </field>
  4686. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  4687. transient="false" volatile="false"
  4688. static="true" final="true" visibility="public"
  4689. deprecated="not deprecated">
  4690. <doc>
  4691. <![CDATA[@see
  4692. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4693. core-default.xml</a>]]>
  4694. </doc>
  4695. </field>
  4696. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  4697. transient="false" volatile="false"
  4698. static="true" final="true" visibility="public"
  4699. deprecated="not deprecated">
  4700. <doc>
  4701. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  4702. </doc>
  4703. </field>
  4704. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  4705. transient="false" volatile="false"
  4706. static="true" final="true" visibility="public"
  4707. deprecated="not deprecated">
  4708. <doc>
  4709. <![CDATA[@see
  4710. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4711. core-default.xml</a>]]>
  4712. </doc>
  4713. </field>
  4714. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  4715. transient="false" volatile="false"
  4716. static="true" final="true" visibility="public"
  4717. deprecated="not deprecated">
  4718. <doc>
  4719. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  4720. </doc>
  4721. </field>
  4722. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  4723. transient="false" volatile="false"
  4724. static="true" final="true" visibility="public"
  4725. deprecated="not deprecated">
  4726. <doc>
  4727. <![CDATA[@see
  4728. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4729. core-default.xml</a>]]>
  4730. </doc>
  4731. </field>
  4732. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  4733. transient="false" volatile="false"
  4734. static="true" final="true" visibility="public"
  4735. deprecated="not deprecated">
  4736. <doc>
  4737. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  4738. </doc>
  4739. </field>
  4740. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  4741. transient="false" volatile="false"
  4742. static="true" final="true" visibility="public"
  4743. deprecated="not deprecated">
  4744. <doc>
  4745. <![CDATA[@see
  4746. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4747. core-default.xml</a>]]>
  4748. </doc>
  4749. </field>
  4750. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  4751. transient="false" volatile="false"
  4752. static="true" final="true" visibility="public"
  4753. deprecated="not deprecated">
  4754. <doc>
  4755. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  4756. </doc>
  4757. </field>
  4758. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  4759. transient="false" volatile="false"
  4760. static="true" final="true" visibility="public"
  4761. deprecated="not deprecated">
  4762. <doc>
  4763. <![CDATA[@see
  4764. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4765. core-default.xml</a>]]>
  4766. </doc>
  4767. </field>
  4768. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  4769. transient="false" volatile="false"
  4770. static="true" final="true" visibility="public"
  4771. deprecated="not deprecated">
  4772. <doc>
  4773. <![CDATA[Default value for IPC_CLIENT_TCPNODELAY_KEY]]>
  4774. </doc>
  4775. </field>
  4776. <field name="IPC_CLIENT_LOW_LATENCY" type="java.lang.String"
  4777. transient="false" volatile="false"
  4778. static="true" final="true" visibility="public"
  4779. deprecated="not deprecated">
  4780. <doc>
  4781. <![CDATA[Enable low-latency connections from the client]]>
  4782. </doc>
  4783. </field>
  4784. <field name="IPC_CLIENT_LOW_LATENCY_DEFAULT" type="boolean"
  4785. transient="false" volatile="false"
  4786. static="true" final="true" visibility="public"
  4787. deprecated="not deprecated">
  4788. <doc>
  4789. <![CDATA[Default value of IPC_CLIENT_LOW_LATENCY]]>
  4790. </doc>
  4791. </field>
  4792. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  4793. transient="false" volatile="false"
  4794. static="true" final="true" visibility="public"
  4795. deprecated="not deprecated">
  4796. <doc>
  4797. <![CDATA[@see
  4798. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4799. core-default.xml</a>]]>
  4800. </doc>
  4801. </field>
  4802. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  4803. transient="false" volatile="false"
  4804. static="true" final="true" visibility="public"
  4805. deprecated="not deprecated">
  4806. <doc>
  4807. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  4808. </doc>
  4809. </field>
  4810. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  4811. transient="false" volatile="false"
  4812. static="true" final="true" visibility="public"
  4813. deprecated="not deprecated">
  4814. <doc>
  4815. <![CDATA[@see
  4816. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4817. core-default.xml</a>]]>
  4818. </doc>
  4819. </field>
  4820. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  4821. transient="false" volatile="false"
  4822. static="true" final="true" visibility="public"
  4823. deprecated="not deprecated">
  4824. <doc>
  4825. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  4826. </doc>
  4827. </field>
  4828. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  4829. transient="false" volatile="false"
  4830. static="true" final="true" visibility="public"
  4831. deprecated="not deprecated">
  4832. <doc>
  4833. <![CDATA[@see
  4834. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4835. core-default.xml</a>]]>
  4836. </doc>
  4837. </field>
  4838. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  4839. transient="false" volatile="false"
  4840. static="true" final="true" visibility="public"
  4841. deprecated="not deprecated">
  4842. <doc>
  4843. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  4844. </doc>
  4845. </field>
  4846. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  4847. transient="false" volatile="false"
  4848. static="true" final="true" visibility="public"
  4849. deprecated="not deprecated">
  4850. <doc>
  4851. <![CDATA[@see
  4852. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4853. core-default.xml</a>]]>
  4854. </doc>
  4855. </field>
  4856. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  4857. transient="false" volatile="false"
  4858. static="true" final="true" visibility="public"
  4859. deprecated="not deprecated">
  4860. <doc>
  4861. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  4862. </doc>
  4863. </field>
  4864. <field name="IPC_SERVER_MAX_CONNECTIONS_KEY" type="java.lang.String"
  4865. transient="false" volatile="false"
  4866. static="true" final="true" visibility="public"
  4867. deprecated="not deprecated">
  4868. <doc>
  4869. <![CDATA[@see
  4870. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4871. core-default.xml</a>]]>
  4872. </doc>
  4873. </field>
  4874. <field name="IPC_SERVER_MAX_CONNECTIONS_DEFAULT" type="int"
  4875. transient="false" volatile="false"
  4876. static="true" final="true" visibility="public"
  4877. deprecated="not deprecated">
  4878. <doc>
  4879. <![CDATA[Default value for IPC_SERVER_MAX_CONNECTIONS_KEY]]>
  4880. </doc>
  4881. </field>
  4882. <field name="IPC_SERVER_LOG_SLOW_RPC" type="java.lang.String"
  4883. transient="false" volatile="false"
  4884. static="true" final="true" visibility="public"
  4885. deprecated="not deprecated">
  4886. <doc>
  4887. <![CDATA[Logs if a RPC is really slow compared to rest of RPCs.]]>
  4888. </doc>
  4889. </field>
  4890. <field name="IPC_SERVER_LOG_SLOW_RPC_DEFAULT" type="boolean"
  4891. transient="false" volatile="false"
  4892. static="true" final="true" visibility="public"
  4893. deprecated="not deprecated">
  4894. </field>
  4895. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  4896. transient="false" volatile="false"
  4897. static="true" final="true" visibility="public"
  4898. deprecated="not deprecated">
  4899. <doc>
  4900. <![CDATA[@see
  4901. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4902. core-default.xml</a>]]>
  4903. </doc>
  4904. </field>
  4905. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  4906. transient="false" volatile="false"
  4907. static="true" final="true" visibility="public"
  4908. deprecated="not deprecated">
  4909. </field>
  4910. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  4911. transient="false" volatile="false"
  4912. static="true" final="true" visibility="public"
  4913. deprecated="not deprecated">
  4914. <doc>
  4915. <![CDATA[@see
  4916. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4917. core-default.xml</a>]]>
  4918. </doc>
  4919. </field>
  4920. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  4921. transient="false" volatile="false"
  4922. static="true" final="true" visibility="public"
  4923. deprecated="not deprecated">
  4924. <doc>
  4925. <![CDATA[@see
  4926. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4927. core-default.xml</a>]]>
  4928. </doc>
  4929. </field>
  4930. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  4931. transient="false" volatile="false"
  4932. static="true" final="true" visibility="public"
  4933. deprecated="not deprecated">
  4934. <doc>
  4935. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  4936. </doc>
  4937. </field>
  4938. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  4939. transient="false" volatile="false"
  4940. static="true" final="true" visibility="public"
  4941. deprecated="not deprecated">
  4942. <doc>
  4943. <![CDATA[@see
  4944. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4945. core-default.xml</a>]]>
  4946. </doc>
  4947. </field>
  4948. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  4949. transient="false" volatile="false"
  4950. static="true" final="true" visibility="public"
  4951. deprecated="not deprecated">
  4952. <doc>
  4953. <![CDATA[@see
  4954. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4955. core-default.xml</a>]]>
  4956. </doc>
  4957. </field>
  4958. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  4959. transient="false" volatile="false"
  4960. static="true" final="true" visibility="public"
  4961. deprecated="not deprecated">
  4962. <doc>
  4963. <![CDATA[@see
  4964. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4965. core-default.xml</a>]]>
  4966. </doc>
  4967. </field>
  4968. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  4969. transient="false" volatile="false"
  4970. static="true" final="true" visibility="public"
  4971. deprecated="not deprecated">
  4972. <doc>
  4973. <![CDATA[@see
  4974. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4975. core-default.xml</a>]]>
  4976. </doc>
  4977. </field>
  4978. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  4979. transient="false" volatile="false"
  4980. static="true" final="true" visibility="public"
  4981. deprecated="not deprecated">
  4982. <doc>
  4983. <![CDATA[@see
  4984. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4985. core-default.xml</a>]]>
  4986. </doc>
  4987. </field>
  4988. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  4989. transient="false" volatile="false"
  4990. static="true" final="true" visibility="public"
  4991. deprecated="not deprecated">
  4992. <doc>
  4993. <![CDATA[@see
  4994. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4995. core-default.xml</a>]]>
  4996. </doc>
  4997. </field>
  4998. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  4999. transient="false" volatile="false"
  5000. static="true" final="true" visibility="public"
  5001. deprecated="not deprecated">
  5002. </field>
  5003. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD" type="java.lang.String"
  5004. transient="false" volatile="false"
  5005. static="true" final="true" visibility="public"
  5006. deprecated="not deprecated">
  5007. <doc>
  5008. <![CDATA[@see
  5009. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5010. core-default.xml</a>]]>
  5011. </doc>
  5012. </field>
  5013. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_DEFAULT" type="boolean"
  5014. transient="false" volatile="false"
  5015. static="true" final="true" visibility="public"
  5016. deprecated="not deprecated">
  5017. <doc>
  5018. <![CDATA[@see
  5019. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5020. core-default.xml</a>]]>
  5021. </doc>
  5022. </field>
  5023. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS" type="java.lang.String"
  5024. transient="false" volatile="false"
  5025. static="true" final="true" visibility="public"
  5026. deprecated="not deprecated">
  5027. <doc>
  5028. <![CDATA[@see
  5029. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5030. core-default.xml</a>]]>
  5031. </doc>
  5032. </field>
  5033. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS_DEFAULT" type="int"
  5034. transient="false" volatile="false"
  5035. static="true" final="true" visibility="public"
  5036. deprecated="not deprecated">
  5037. <doc>
  5038. <![CDATA[@see
  5039. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5040. core-default.xml</a>]]>
  5041. </doc>
  5042. </field>
  5043. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY" type="java.lang.String"
  5044. transient="false" volatile="false"
  5045. static="true" final="true" visibility="public"
  5046. deprecated="not deprecated">
  5047. <doc>
  5048. <![CDATA[@see
  5049. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5050. core-default.xml</a>]]>
  5051. </doc>
  5052. </field>
  5053. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS" type="java.lang.String"
  5054. transient="false" volatile="false"
  5055. static="true" final="true" visibility="public"
  5056. deprecated="use
  5057. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5058. instead.">
  5059. <doc>
  5060. <![CDATA[@deprecated use
  5061. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5062. instead.]]>
  5063. </doc>
  5064. </field>
  5065. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT" type="long"
  5066. transient="false" volatile="false"
  5067. static="true" final="true" visibility="public"
  5068. deprecated="not deprecated">
  5069. <doc>
  5070. <![CDATA[@see
  5071. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5072. core-default.xml</a>]]>
  5073. </doc>
  5074. </field>
  5075. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS_DEFAULT" type="long"
  5076. transient="false" volatile="false"
  5077. static="true" final="true" visibility="public"
  5078. deprecated="use
  5079. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5080. instead.">
  5081. <doc>
  5082. <![CDATA[@deprecated use
  5083. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5084. instead.]]>
  5085. </doc>
  5086. </field>
  5087. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  5088. transient="false" volatile="false"
  5089. static="true" final="true" visibility="public"
  5090. deprecated="not deprecated">
  5091. <doc>
  5092. <![CDATA[@see
  5093. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5094. core-default.xml</a>]]>
  5095. </doc>
  5096. </field>
  5097. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  5098. transient="false" volatile="false"
  5099. static="true" final="true" visibility="public"
  5100. deprecated="not deprecated">
  5101. <doc>
  5102. <![CDATA[@see
  5103. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5104. core-default.xml</a>]]>
  5105. </doc>
  5106. </field>
  5107. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  5108. transient="false" volatile="false"
  5109. static="true" final="true" visibility="public"
  5110. deprecated="not deprecated">
  5111. <doc>
  5112. <![CDATA[@see
  5113. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5114. core-default.xml</a>]]>
  5115. </doc>
  5116. </field>
  5117. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  5118. transient="false" volatile="false"
  5119. static="true" final="true" visibility="public"
  5120. deprecated="not deprecated">
  5121. <doc>
  5122. <![CDATA[@see
  5123. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5124. core-default.xml</a>]]>
  5125. </doc>
  5126. </field>
  5127. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  5128. transient="false" volatile="false"
  5129. static="true" final="true" visibility="public"
  5130. deprecated="not deprecated">
  5131. <doc>
  5132. <![CDATA[@see
  5133. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5134. core-default.xml</a>]]>
  5135. </doc>
  5136. </field>
  5137. <field name="HADOOP_SECURITY_DNS_INTERFACE_KEY" type="java.lang.String"
  5138. transient="false" volatile="false"
  5139. static="true" final="true" visibility="public"
  5140. deprecated="not deprecated">
  5141. <doc>
  5142. <![CDATA[@see
  5143. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5144. core-default.xml</a>]]>
  5145. </doc>
  5146. </field>
  5147. <field name="HADOOP_SECURITY_DNS_NAMESERVER_KEY" type="java.lang.String"
  5148. transient="false" volatile="false"
  5149. static="true" final="true" visibility="public"
  5150. deprecated="not deprecated">
  5151. <doc>
  5152. <![CDATA[@see
  5153. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5154. core-default.xml</a>]]>
  5155. </doc>
  5156. </field>
  5157. <field name="HADOOP_TOKEN_FILES" type="java.lang.String"
  5158. transient="false" volatile="false"
  5159. static="true" final="true" visibility="public"
  5160. deprecated="not deprecated">
  5161. <doc>
  5162. <![CDATA[@see
  5163. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5164. core-default.xml</a>]]>
  5165. </doc>
  5166. </field>
  5167. <field name="HADOOP_HTTP_AUTHENTICATION_TYPE" type="java.lang.String"
  5168. transient="false" volatile="false"
  5169. static="true" final="true" visibility="public"
  5170. deprecated="not deprecated">
  5171. </field>
  5172. <field name="HADOOP_SSL_ENABLED_KEY" type="java.lang.String"
  5173. transient="false" volatile="false"
  5174. static="true" final="true" visibility="public"
  5175. deprecated="not deprecated">
  5176. </field>
  5177. <field name="HADOOP_SSL_ENABLED_DEFAULT" type="boolean"
  5178. transient="false" volatile="false"
  5179. static="true" final="true" visibility="public"
  5180. deprecated="not deprecated">
  5181. </field>
  5182. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN" type="java.lang.String"
  5183. transient="false" volatile="false"
  5184. static="true" final="true" visibility="public"
  5185. deprecated="not deprecated">
  5186. <doc>
  5187. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5188. </doc>
  5189. </field>
  5190. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN_DEFAULT" type="int"
  5191. transient="false" volatile="false"
  5192. static="true" final="true" visibility="public"
  5193. deprecated="not deprecated">
  5194. <doc>
  5195. <![CDATA[Default value for HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN]]>
  5196. </doc>
  5197. </field>
  5198. <field name="HTTP_POLICY_HTTP_ONLY" type="java.lang.String"
  5199. transient="false" volatile="false"
  5200. static="true" final="true" visibility="public"
  5201. deprecated="not deprecated">
  5202. </field>
  5203. <field name="HTTP_POLICY_HTTPS_ONLY" type="java.lang.String"
  5204. transient="false" volatile="false"
  5205. static="true" final="true" visibility="public"
  5206. deprecated="not deprecated">
  5207. </field>
  5208. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  5209. transient="false" volatile="false"
  5210. static="true" final="true" visibility="public"
  5211. deprecated="not deprecated">
  5212. <doc>
  5213. <![CDATA[@see
  5214. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5215. core-default.xml</a>]]>
  5216. </doc>
  5217. </field>
  5218. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  5219. transient="false" volatile="false"
  5220. static="true" final="true" visibility="public"
  5221. deprecated="not deprecated">
  5222. <doc>
  5223. <![CDATA[Class to override Sasl Properties for a connection]]>
  5224. </doc>
  5225. </field>
  5226. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  5227. transient="false" volatile="false"
  5228. static="true" final="true" visibility="public"
  5229. deprecated="not deprecated">
  5230. </field>
  5231. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY" type="java.lang.String"
  5232. transient="false" volatile="false"
  5233. static="true" final="true" visibility="public"
  5234. deprecated="not deprecated">
  5235. </field>
  5236. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_DEFAULT" type="java.lang.String"
  5237. transient="false" volatile="false"
  5238. static="true" final="true" visibility="public"
  5239. deprecated="not deprecated">
  5240. </field>
  5241. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY" type="java.lang.String"
  5242. transient="false" volatile="false"
  5243. static="true" final="true" visibility="public"
  5244. deprecated="not deprecated">
  5245. <doc>
  5246. <![CDATA[@see
  5247. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5248. core-default.xml</a>]]>
  5249. </doc>
  5250. </field>
  5251. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  5252. transient="false" volatile="false"
  5253. static="true" final="true" visibility="public"
  5254. deprecated="not deprecated">
  5255. </field>
  5256. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  5257. transient="false" volatile="false"
  5258. static="true" final="true" visibility="public"
  5259. deprecated="not deprecated">
  5260. <doc>
  5261. <![CDATA[@see
  5262. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5263. core-default.xml</a>]]>
  5264. </doc>
  5265. </field>
  5266. <field name="HADOOP_SECURITY_CRYPTO_JCEKS_KEY_SERIALFILTER" type="java.lang.String"
  5267. transient="false" volatile="false"
  5268. static="true" final="true" visibility="public"
  5269. deprecated="not deprecated">
  5270. <doc>
  5271. <![CDATA[@see
  5272. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5273. core-default.xml</a>]]>
  5274. </doc>
  5275. </field>
  5276. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  5277. transient="false" volatile="false"
  5278. static="true" final="true" visibility="public"
  5279. deprecated="not deprecated">
  5280. <doc>
  5281. <![CDATA[@see
  5282. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5283. core-default.xml</a>]]>
  5284. </doc>
  5285. </field>
  5286. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  5287. transient="false" volatile="false"
  5288. static="true" final="true" visibility="public"
  5289. deprecated="not deprecated">
  5290. <doc>
  5291. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  5292. </doc>
  5293. </field>
  5294. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  5295. transient="false" volatile="false"
  5296. static="true" final="true" visibility="public"
  5297. deprecated="not deprecated">
  5298. <doc>
  5299. <![CDATA[Class to override Impersonation provider]]>
  5300. </doc>
  5301. </field>
  5302. <field name="HADOOP_SECURITY_KEY_PROVIDER_PATH" type="java.lang.String"
  5303. transient="false" volatile="false"
  5304. static="true" final="true" visibility="public"
  5305. deprecated="not deprecated">
  5306. <doc>
  5307. <![CDATA[@see
  5308. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5309. core-default.xml</a>]]>
  5310. </doc>
  5311. </field>
  5312. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY" type="java.lang.String"
  5313. transient="false" volatile="false"
  5314. static="true" final="true" visibility="public"
  5315. deprecated="not deprecated">
  5316. <doc>
  5317. <![CDATA[@see
  5318. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5319. core-default.xml</a>]]>
  5320. </doc>
  5321. </field>
  5322. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_DEFAULT" type="int"
  5323. transient="false" volatile="false"
  5324. static="true" final="true" visibility="public"
  5325. deprecated="not deprecated">
  5326. <doc>
  5327. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY.]]>
  5328. </doc>
  5329. </field>
  5330. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY" type="java.lang.String"
  5331. transient="false" volatile="false"
  5332. static="true" final="true" visibility="public"
  5333. deprecated="not deprecated">
  5334. <doc>
  5335. <![CDATA[@see
  5336. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5337. core-default.xml</a>]]>
  5338. </doc>
  5339. </field>
  5340. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_DEFAULT" type="java.lang.String"
  5341. transient="false" volatile="false"
  5342. static="true" final="true" visibility="public"
  5343. deprecated="not deprecated">
  5344. <doc>
  5345. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY.]]>
  5346. </doc>
  5347. </field>
  5348. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  5349. transient="false" volatile="false"
  5350. static="true" final="true" visibility="public"
  5351. deprecated="not deprecated">
  5352. <doc>
  5353. <![CDATA[@see
  5354. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5355. core-default.xml</a>]]>
  5356. </doc>
  5357. </field>
  5358. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  5359. transient="false" volatile="false"
  5360. static="true" final="true" visibility="public"
  5361. deprecated="not deprecated">
  5362. <doc>
  5363. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  5364. </doc>
  5365. </field>
  5366. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  5367. transient="false" volatile="false"
  5368. static="true" final="true" visibility="public"
  5369. deprecated="not deprecated">
  5370. <doc>
  5371. <![CDATA[@see
  5372. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5373. core-default.xml</a>]]>
  5374. </doc>
  5375. </field>
  5376. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  5377. transient="false" volatile="false"
  5378. static="true" final="true" visibility="public"
  5379. deprecated="not deprecated">
  5380. <doc>
  5381. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  5382. </doc>
  5383. </field>
  5384. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  5385. transient="false" volatile="false"
  5386. static="true" final="true" visibility="public"
  5387. deprecated="not deprecated">
  5388. <doc>
  5389. <![CDATA[@see
  5390. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5391. core-default.xml</a>]]>
  5392. </doc>
  5393. </field>
  5394. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  5395. transient="false" volatile="false"
  5396. static="true" final="true" visibility="public"
  5397. deprecated="not deprecated">
  5398. <doc>
  5399. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  5400. </doc>
  5401. </field>
  5402. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  5403. transient="false" volatile="false"
  5404. static="true" final="true" visibility="public"
  5405. deprecated="not deprecated">
  5406. <doc>
  5407. <![CDATA[@see
  5408. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5409. core-default.xml</a>]]>
  5410. </doc>
  5411. </field>
  5412. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  5413. transient="false" volatile="false"
  5414. static="true" final="true" visibility="public"
  5415. deprecated="not deprecated">
  5416. <doc>
  5417. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  5418. </doc>
  5419. </field>
  5420. <field name="KMS_CLIENT_TIMEOUT_SECONDS" type="java.lang.String"
  5421. transient="false" volatile="false"
  5422. static="true" final="true" visibility="public"
  5423. deprecated="not deprecated">
  5424. <doc>
  5425. <![CDATA[@see
  5426. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5427. core-default.xml</a>]]>
  5428. </doc>
  5429. </field>
  5430. <field name="KMS_CLIENT_TIMEOUT_DEFAULT" type="int"
  5431. transient="false" volatile="false"
  5432. static="true" final="true" visibility="public"
  5433. deprecated="not deprecated">
  5434. </field>
  5435. <field name="KMS_CLIENT_FAILOVER_MAX_RETRIES_KEY" type="java.lang.String"
  5436. transient="false" volatile="false"
  5437. static="true" final="true" visibility="public"
  5438. deprecated="not deprecated">
  5439. <doc>
  5440. <![CDATA[Default value is the number of providers specified.]]>
  5441. </doc>
  5442. </field>
  5443. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_KEY" type="java.lang.String"
  5444. transient="false" volatile="false"
  5445. static="true" final="true" visibility="public"
  5446. deprecated="not deprecated">
  5447. <doc>
  5448. <![CDATA[@see
  5449. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5450. core-default.xml</a>]]>
  5451. </doc>
  5452. </field>
  5453. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_DEFAULT" type="int"
  5454. transient="false" volatile="false"
  5455. static="true" final="true" visibility="public"
  5456. deprecated="not deprecated">
  5457. <doc>
  5458. <![CDATA[Default value is 100 ms.]]>
  5459. </doc>
  5460. </field>
  5461. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_KEY" type="java.lang.String"
  5462. transient="false" volatile="false"
  5463. static="true" final="true" visibility="public"
  5464. deprecated="not deprecated">
  5465. <doc>
  5466. <![CDATA[@see
  5467. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5468. core-default.xml</a>]]>
  5469. </doc>
  5470. </field>
  5471. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_DEFAULT" type="int"
  5472. transient="false" volatile="false"
  5473. static="true" final="true" visibility="public"
  5474. deprecated="not deprecated">
  5475. <doc>
  5476. <![CDATA[Default value is 2 secs.]]>
  5477. </doc>
  5478. </field>
  5479. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  5480. transient="false" volatile="false"
  5481. static="true" final="true" visibility="public"
  5482. deprecated="not deprecated">
  5483. <doc>
  5484. <![CDATA[@see
  5485. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5486. core-default.xml</a>]]>
  5487. </doc>
  5488. </field>
  5489. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  5490. transient="false" volatile="false"
  5491. static="true" final="true" visibility="public"
  5492. deprecated="not deprecated">
  5493. <doc>
  5494. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  5495. </doc>
  5496. </field>
  5497. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  5498. transient="false" volatile="false"
  5499. static="true" final="true" visibility="public"
  5500. deprecated="not deprecated">
  5501. <doc>
  5502. <![CDATA[@see
  5503. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5504. core-default.xml</a>]]>
  5505. </doc>
  5506. </field>
  5507. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  5508. transient="false" volatile="false"
  5509. static="true" final="true" visibility="public"
  5510. deprecated="not deprecated">
  5511. <doc>
  5512. <![CDATA[@see
  5513. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5514. core-default.xml</a>]]>
  5515. </doc>
  5516. </field>
  5517. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  5518. transient="false" volatile="false"
  5519. static="true" final="true" visibility="public"
  5520. deprecated="not deprecated">
  5521. </field>
  5522. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_KEY" type="java.lang.String"
  5523. transient="false" volatile="false"
  5524. static="true" final="true" visibility="public"
  5525. deprecated="not deprecated">
  5526. <doc>
  5527. <![CDATA[@see
  5528. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5529. core-default.xml</a>]]>
  5530. </doc>
  5531. </field>
  5532. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_DEFAULT" type="boolean"
  5533. transient="false" volatile="false"
  5534. static="true" final="true" visibility="public"
  5535. deprecated="not deprecated">
  5536. </field>
  5537. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES" type="java.lang.String"
  5538. transient="false" volatile="false"
  5539. static="true" final="true" visibility="public"
  5540. deprecated="not deprecated">
  5541. <doc>
  5542. <![CDATA[@see
  5543. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5544. core-default.xml</a>]]>
  5545. </doc>
  5546. </field>
  5547. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES_DEFAULT" type="long"
  5548. transient="false" volatile="false"
  5549. static="true" final="true" visibility="public"
  5550. deprecated="not deprecated">
  5551. </field>
  5552. <field name="HADOOP_HTTP_LOGS_ENABLED" type="java.lang.String"
  5553. transient="false" volatile="false"
  5554. static="true" final="true" visibility="public"
  5555. deprecated="not deprecated">
  5556. <doc>
  5557. <![CDATA[@see
  5558. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5559. core-default.xml</a>]]>
  5560. </doc>
  5561. </field>
  5562. <field name="HADOOP_HTTP_LOGS_ENABLED_DEFAULT" type="boolean"
  5563. transient="false" volatile="false"
  5564. static="true" final="true" visibility="public"
  5565. deprecated="not deprecated">
  5566. <doc>
  5567. <![CDATA[Defalt value for HADOOP_HTTP_LOGS_ENABLED]]>
  5568. </doc>
  5569. </field>
  5570. <field name="HADOOP_SECURITY_CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  5571. transient="false" volatile="false"
  5572. static="true" final="true" visibility="public"
  5573. deprecated="not deprecated">
  5574. <doc>
  5575. <![CDATA[@see
  5576. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5577. core-default.xml</a>]]>
  5578. </doc>
  5579. </field>
  5580. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK" type="java.lang.String"
  5581. transient="false" volatile="false"
  5582. static="true" final="true" visibility="public"
  5583. deprecated="not deprecated">
  5584. <doc>
  5585. <![CDATA[@see
  5586. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5587. core-default.xml</a>]]>
  5588. </doc>
  5589. </field>
  5590. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK_DEFAULT" type="boolean"
  5591. transient="false" volatile="false"
  5592. static="true" final="true" visibility="public"
  5593. deprecated="not deprecated">
  5594. </field>
  5595. <field name="HADOOP_SECURITY_CREDENTIAL_PASSWORD_FILE_KEY" type="java.lang.String"
  5596. transient="false" volatile="false"
  5597. static="true" final="true" visibility="public"
  5598. deprecated="not deprecated">
  5599. <doc>
  5600. <![CDATA[@see
  5601. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5602. core-default.xml</a>]]>
  5603. </doc>
  5604. </field>
  5605. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS" type="java.lang.String"
  5606. transient="false" volatile="false"
  5607. static="true" final="true" visibility="public"
  5608. deprecated="not deprecated">
  5609. <doc>
  5610. <![CDATA[@see
  5611. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5612. core-default.xml</a>]]>
  5613. </doc>
  5614. </field>
  5615. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS_DEFAULT" type="java.lang.String"
  5616. transient="false" volatile="false"
  5617. static="true" final="true" visibility="public"
  5618. deprecated="not deprecated">
  5619. </field>
  5620. <field name="SERVICE_SHUTDOWN_TIMEOUT" type="java.lang.String"
  5621. transient="false" volatile="false"
  5622. static="true" final="true" visibility="public"
  5623. deprecated="not deprecated">
  5624. <doc>
  5625. <![CDATA[Configuration option for the shutdown hook manager shutdown time:
  5626. {@value}.]]>
  5627. </doc>
  5628. </field>
  5629. <field name="SERVICE_SHUTDOWN_TIMEOUT_DEFAULT" type="long"
  5630. transient="false" volatile="false"
  5631. static="true" final="true" visibility="public"
  5632. deprecated="not deprecated">
  5633. <doc>
  5634. <![CDATA[Default shutdown hook timeout: {@value} seconds.]]>
  5635. </doc>
  5636. </field>
  5637. <doc>
  5638. <![CDATA[This class contains constants for configuration keys used
  5639. in the common code.
  5640. It includes all publicly documented configuration keys. In general
  5641. this class should not be used directly (use CommonConfigurationKeys
  5642. instead)]]>
  5643. </doc>
  5644. </class>
  5645. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  5646. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  5647. <class name="ContentSummary" extends="org.apache.hadoop.fs.QuotaUsage"
  5648. abstract="false"
  5649. static="false" final="false" visibility="public"
  5650. deprecated="not deprecated">
  5651. <implements name="org.apache.hadoop.io.Writable"/>
  5652. <constructor name="ContentSummary"
  5653. static="false" final="false" visibility="public"
  5654. deprecated="not deprecated">
  5655. <doc>
  5656. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  5657. </doc>
  5658. </constructor>
  5659. <constructor name="ContentSummary" type="long, long, long"
  5660. static="false" final="false" visibility="public"
  5661. deprecated="not deprecated">
  5662. <doc>
  5663. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  5664. This constructor implicitly set spaceConsumed the same as length.
  5665. spaceConsumed and length must be set explicitly with
  5666. ContentSummary.Builder]]>
  5667. </doc>
  5668. </constructor>
  5669. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  5670. static="false" final="false" visibility="public"
  5671. deprecated="not deprecated">
  5672. <doc>
  5673. <![CDATA[Constructor, deprecated by ContentSummary.Builder]]>
  5674. </doc>
  5675. </constructor>
  5676. <method name="getLength" return="long"
  5677. abstract="false" native="false" synchronized="false"
  5678. static="false" final="false" visibility="public"
  5679. deprecated="not deprecated">
  5680. <doc>
  5681. <![CDATA[@return the length]]>
  5682. </doc>
  5683. </method>
  5684. <method name="getSnapshotLength" return="long"
  5685. abstract="false" native="false" synchronized="false"
  5686. static="false" final="false" visibility="public"
  5687. deprecated="not deprecated">
  5688. </method>
  5689. <method name="getDirectoryCount" return="long"
  5690. abstract="false" native="false" synchronized="false"
  5691. static="false" final="false" visibility="public"
  5692. deprecated="not deprecated">
  5693. <doc>
  5694. <![CDATA[@return the directory count]]>
  5695. </doc>
  5696. </method>
  5697. <method name="getSnapshotDirectoryCount" return="long"
  5698. abstract="false" native="false" synchronized="false"
  5699. static="false" final="false" visibility="public"
  5700. deprecated="not deprecated">
  5701. </method>
  5702. <method name="getFileCount" return="long"
  5703. abstract="false" native="false" synchronized="false"
  5704. static="false" final="false" visibility="public"
  5705. deprecated="not deprecated">
  5706. <doc>
  5707. <![CDATA[@return the file count]]>
  5708. </doc>
  5709. </method>
  5710. <method name="getSnapshotFileCount" return="long"
  5711. abstract="false" native="false" synchronized="false"
  5712. static="false" final="false" visibility="public"
  5713. deprecated="not deprecated">
  5714. </method>
  5715. <method name="getSnapshotSpaceConsumed" return="long"
  5716. abstract="false" native="false" synchronized="false"
  5717. static="false" final="false" visibility="public"
  5718. deprecated="not deprecated">
  5719. </method>
  5720. <method name="equals" return="boolean"
  5721. abstract="false" native="false" synchronized="false"
  5722. static="false" final="false" visibility="public"
  5723. deprecated="not deprecated">
  5724. <param name="to" type="java.lang.Object"/>
  5725. </method>
  5726. <method name="hashCode" return="int"
  5727. abstract="false" native="false" synchronized="false"
  5728. static="false" final="false" visibility="public"
  5729. deprecated="not deprecated">
  5730. </method>
  5731. <method name="getHeader" return="java.lang.String"
  5732. abstract="false" native="false" synchronized="false"
  5733. static="true" final="false" visibility="public"
  5734. deprecated="not deprecated">
  5735. <param name="qOption" type="boolean"/>
  5736. <doc>
  5737. <![CDATA[Return the header of the output.
  5738. if qOption is false, output directory count, file count, and content size;
  5739. if qOption is true, output quota and remaining quota as well.
  5740. @param qOption a flag indicating if quota needs to be printed or not
  5741. @return the header of the output]]>
  5742. </doc>
  5743. </method>
  5744. <method name="getHeaderFields" return="java.lang.String[]"
  5745. abstract="false" native="false" synchronized="false"
  5746. static="true" final="false" visibility="public"
  5747. deprecated="not deprecated">
  5748. <doc>
  5749. <![CDATA[Returns the names of the fields from the summary header.
  5750. @return names of fields as displayed in the header]]>
  5751. </doc>
  5752. </method>
  5753. <method name="getQuotaHeaderFields" return="java.lang.String[]"
  5754. abstract="false" native="false" synchronized="false"
  5755. static="true" final="false" visibility="public"
  5756. deprecated="not deprecated">
  5757. <doc>
  5758. <![CDATA[Returns the names of the fields used in the quota summary.
  5759. @return names of quota fields as displayed in the header]]>
  5760. </doc>
  5761. </method>
  5762. <method name="toString" return="java.lang.String"
  5763. abstract="false" native="false" synchronized="false"
  5764. static="false" final="false" visibility="public"
  5765. deprecated="not deprecated">
  5766. </method>
  5767. <method name="toString" return="java.lang.String"
  5768. abstract="false" native="false" synchronized="false"
  5769. static="false" final="false" visibility="public"
  5770. deprecated="not deprecated">
  5771. <param name="qOption" type="boolean"/>
  5772. <doc>
  5773. <![CDATA[Return the string representation of the object in the output format.
  5774. if qOption is false, output directory count, file count, and content size;
  5775. if qOption is true, output quota and remaining quota as well.
  5776. @param qOption a flag indicating if quota needs to be printed or not
  5777. @return the string representation of the object]]>
  5778. </doc>
  5779. </method>
  5780. <method name="toString" return="java.lang.String"
  5781. abstract="false" native="false" synchronized="false"
  5782. static="false" final="false" visibility="public"
  5783. deprecated="not deprecated">
  5784. <param name="qOption" type="boolean"/>
  5785. <param name="hOption" type="boolean"/>
  5786. <doc>
  5787. <![CDATA[Return the string representation of the object in the output format.
  5788. For description of the options,
  5789. @see #toString(boolean, boolean, boolean, boolean, List)
  5790. @param qOption a flag indicating if quota needs to be printed or not
  5791. @param hOption a flag indicating if human readable output if to be used
  5792. @return the string representation of the object]]>
  5793. </doc>
  5794. </method>
  5795. <method name="toString" return="java.lang.String"
  5796. abstract="false" native="false" synchronized="false"
  5797. static="false" final="false" visibility="public"
  5798. deprecated="not deprecated">
  5799. <param name="qOption" type="boolean"/>
  5800. <param name="hOption" type="boolean"/>
  5801. <param name="xOption" type="boolean"/>
  5802. <doc>
  5803. <![CDATA[Return the string representation of the object in the output format.
  5804. For description of the options,
  5805. @see #toString(boolean, boolean, boolean, boolean, List)
  5806. @param qOption a flag indicating if quota needs to be printed or not
  5807. @param hOption a flag indicating if human readable output is to be used
  5808. @param xOption a flag indicating if calculation from snapshots is to be
  5809. included in the output
  5810. @return the string representation of the object]]>
  5811. </doc>
  5812. </method>
  5813. <method name="toString" return="java.lang.String"
  5814. abstract="false" native="false" synchronized="false"
  5815. static="false" final="false" visibility="public"
  5816. deprecated="not deprecated">
  5817. <param name="qOption" type="boolean"/>
  5818. <param name="hOption" type="boolean"/>
  5819. <param name="tOption" type="boolean"/>
  5820. <param name="types" type="java.util.List"/>
  5821. <doc>
  5822. <![CDATA[Return the string representation of the object in the output format.
  5823. For description of the options,
  5824. @see #toString(boolean, boolean, boolean, boolean, List)
  5825. @param qOption a flag indicating if quota needs to be printed or not
  5826. @param hOption a flag indicating if human readable output if to be used
  5827. @param tOption a flag indicating if display quota by storage types
  5828. @param types Storage types to display
  5829. @return the string representation of the object]]>
  5830. </doc>
  5831. </method>
  5832. <method name="toString" return="java.lang.String"
  5833. abstract="false" native="false" synchronized="false"
  5834. static="false" final="false" visibility="public"
  5835. deprecated="not deprecated">
  5836. <param name="qOption" type="boolean"/>
  5837. <param name="hOption" type="boolean"/>
  5838. <param name="tOption" type="boolean"/>
  5839. <param name="xOption" type="boolean"/>
  5840. <param name="types" type="java.util.List"/>
  5841. <doc>
  5842. <![CDATA[Return the string representation of the object in the output format.
  5843. if qOption is false, output directory count, file count, and content size;
  5844. if qOption is true, output quota and remaining quota as well.
  5845. if hOption is false, file sizes are returned in bytes
  5846. if hOption is true, file sizes are returned in human readable
  5847. if tOption is true, display the quota by storage types
  5848. if tOption is false, same logic with #toString(boolean,boolean)
  5849. if xOption is false, output includes the calculation from snapshots
  5850. if xOption is true, output excludes the calculation from snapshots
  5851. @param qOption a flag indicating if quota needs to be printed or not
  5852. @param hOption a flag indicating if human readable output is to be used
  5853. @param tOption a flag indicating if display quota by storage types
  5854. @param xOption a flag indicating if calculation from snapshots is to be
  5855. included in the output
  5856. @param types Storage types to display
  5857. @return the string representation of the object]]>
  5858. </doc>
  5859. </method>
  5860. <doc>
  5861. <![CDATA[Store the summary of a content (a directory or a file).]]>
  5862. </doc>
  5863. </class>
  5864. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  5865. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  5866. <class name="CreateFlag" extends="java.lang.Enum"
  5867. abstract="false"
  5868. static="false" final="true" visibility="public"
  5869. deprecated="not deprecated">
  5870. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  5871. abstract="false" native="false" synchronized="false"
  5872. static="true" final="false" visibility="public"
  5873. deprecated="not deprecated">
  5874. </method>
  5875. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  5876. abstract="false" native="false" synchronized="false"
  5877. static="true" final="false" visibility="public"
  5878. deprecated="not deprecated">
  5879. <param name="name" type="java.lang.String"/>
  5880. </method>
  5881. <method name="validate"
  5882. abstract="false" native="false" synchronized="false"
  5883. static="true" final="false" visibility="public"
  5884. deprecated="not deprecated">
  5885. <param name="flag" type="java.util.EnumSet"/>
  5886. <doc>
  5887. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  5888. @param flag set of CreateFlag
  5889. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5890. </doc>
  5891. </method>
  5892. <method name="validate"
  5893. abstract="false" native="false" synchronized="false"
  5894. static="true" final="false" visibility="public"
  5895. deprecated="not deprecated">
  5896. <param name="path" type="java.lang.Object"/>
  5897. <param name="pathExists" type="boolean"/>
  5898. <param name="flag" type="java.util.EnumSet"/>
  5899. <exception name="IOException" type="java.io.IOException"/>
  5900. <doc>
  5901. <![CDATA[Validate the CreateFlag for create operation
  5902. @param path Object representing the path; usually String or {@link Path}
  5903. @param pathExists pass true if the path exists in the file system
  5904. @param flag set of CreateFlag
  5905. @throws IOException on error
  5906. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5907. </doc>
  5908. </method>
  5909. <method name="validateForAppend"
  5910. abstract="false" native="false" synchronized="false"
  5911. static="true" final="false" visibility="public"
  5912. deprecated="not deprecated">
  5913. <param name="flag" type="java.util.EnumSet"/>
  5914. <doc>
  5915. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  5916. APPEND, and cannot contain OVERWRITE.]]>
  5917. </doc>
  5918. </method>
  5919. <doc>
  5920. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  5921. <code>
  5922. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  5923. <code>
  5924. <p>
  5925. Use the CreateFlag as follows:
  5926. <ol>
  5927. <li> CREATE - to create a file if it does not exist,
  5928. else throw FileAlreadyExists.</li>
  5929. <li> APPEND - to append to a file if it exists,
  5930. else throw FileNotFoundException.</li>
  5931. <li> OVERWRITE - to truncate a file if it exists,
  5932. else throw FileNotFoundException.</li>
  5933. <li> CREATE|APPEND - to create a file if it does not exist,
  5934. else append to an existing file.</li>
  5935. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  5936. else overwrite an existing file.</li>
  5937. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  5938. In addition {@link Syncable#hsync()} should be called after each write,
  5939. if true synchronous behavior is required.</li>
  5940. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  5941. available.</li>
  5942. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  5943. partial block.</li>
  5944. </ol>
  5945. Following combinations are not valid and will result in
  5946. {@link HadoopIllegalArgumentException}:
  5947. <ol>
  5948. <li> APPEND|OVERWRITE</li>
  5949. <li> CREATE|APPEND|OVERWRITE</li>
  5950. </ol>]]>
  5951. </doc>
  5952. </class>
  5953. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  5954. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  5955. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  5956. abstract="false"
  5957. static="false" final="false" visibility="public"
  5958. deprecated="not deprecated">
  5959. <constructor name="FileAlreadyExistsException"
  5960. static="false" final="false" visibility="public"
  5961. deprecated="not deprecated">
  5962. </constructor>
  5963. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  5964. static="false" final="false" visibility="public"
  5965. deprecated="not deprecated">
  5966. </constructor>
  5967. <doc>
  5968. <![CDATA[Used when target file already exists for any operation and
  5969. is not configured to be overwritten.]]>
  5970. </doc>
  5971. </class>
  5972. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  5973. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  5974. <class name="FileChecksum" extends="java.lang.Object"
  5975. abstract="true"
  5976. static="false" final="false" visibility="public"
  5977. deprecated="not deprecated">
  5978. <implements name="org.apache.hadoop.io.Writable"/>
  5979. <constructor name="FileChecksum"
  5980. static="false" final="false" visibility="public"
  5981. deprecated="not deprecated">
  5982. </constructor>
  5983. <method name="getAlgorithmName" return="java.lang.String"
  5984. abstract="true" native="false" synchronized="false"
  5985. static="false" final="false" visibility="public"
  5986. deprecated="not deprecated">
  5987. <doc>
  5988. <![CDATA[The checksum algorithm name]]>
  5989. </doc>
  5990. </method>
  5991. <method name="getLength" return="int"
  5992. abstract="true" native="false" synchronized="false"
  5993. static="false" final="false" visibility="public"
  5994. deprecated="not deprecated">
  5995. <doc>
  5996. <![CDATA[The length of the checksum in bytes]]>
  5997. </doc>
  5998. </method>
  5999. <method name="getBytes" return="byte[]"
  6000. abstract="true" native="false" synchronized="false"
  6001. static="false" final="false" visibility="public"
  6002. deprecated="not deprecated">
  6003. <doc>
  6004. <![CDATA[The value of the checksum in bytes]]>
  6005. </doc>
  6006. </method>
  6007. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  6008. abstract="false" native="false" synchronized="false"
  6009. static="false" final="false" visibility="public"
  6010. deprecated="not deprecated">
  6011. </method>
  6012. <method name="equals" return="boolean"
  6013. abstract="false" native="false" synchronized="false"
  6014. static="false" final="false" visibility="public"
  6015. deprecated="not deprecated">
  6016. <param name="other" type="java.lang.Object"/>
  6017. <doc>
  6018. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  6019. </doc>
  6020. </method>
  6021. <method name="hashCode" return="int"
  6022. abstract="false" native="false" synchronized="false"
  6023. static="false" final="false" visibility="public"
  6024. deprecated="not deprecated">
  6025. </method>
  6026. <doc>
  6027. <![CDATA[An abstract class representing file checksums for files.]]>
  6028. </doc>
  6029. </class>
  6030. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  6031. <!-- start class org.apache.hadoop.fs.FileContext -->
  6032. <class name="FileContext" extends="java.lang.Object"
  6033. abstract="false"
  6034. static="false" final="false" visibility="public"
  6035. deprecated="not deprecated">
  6036. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  6037. abstract="false" native="false" synchronized="false"
  6038. static="false" final="false" visibility="protected"
  6039. deprecated="not deprecated">
  6040. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  6041. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6042. <exception name="IOException" type="java.io.IOException"/>
  6043. <doc>
  6044. <![CDATA[Get the file system of supplied path.
  6045. @param absOrFqPath - absolute or fully qualified path
  6046. @return the file system of the path
  6047. @throws UnsupportedFileSystemException If the file system for
  6048. <code>absOrFqPath</code> is not supported.
  6049. @throws IOException If the file system for <code>absOrFqPath</code> could
  6050. not be instantiated.]]>
  6051. </doc>
  6052. </method>
  6053. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6054. abstract="false" native="false" synchronized="false"
  6055. static="true" final="false" visibility="public"
  6056. deprecated="not deprecated">
  6057. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6058. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6059. <doc>
  6060. <![CDATA[Create a FileContext with specified FS as default using the specified
  6061. config.
  6062. @param defFS
  6063. @param aConf
  6064. @return new FileContext with specifed FS as default.]]>
  6065. </doc>
  6066. </method>
  6067. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6068. abstract="false" native="false" synchronized="false"
  6069. static="true" final="false" visibility="protected"
  6070. deprecated="not deprecated">
  6071. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6072. <doc>
  6073. <![CDATA[Create a FileContext for specified file system using the default config.
  6074. @param defaultFS
  6075. @return a FileContext with the specified AbstractFileSystem
  6076. as the default FS.]]>
  6077. </doc>
  6078. </method>
  6079. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6080. abstract="false" native="false" synchronized="false"
  6081. static="true" final="false" visibility="public"
  6082. deprecated="not deprecated">
  6083. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6084. <doc>
  6085. <![CDATA[Create a FileContext using the default config read from the
  6086. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  6087. from core-defaults.xml in the release jar.
  6088. @throws UnsupportedFileSystemException If the file system from the default
  6089. configuration is not supported]]>
  6090. </doc>
  6091. </method>
  6092. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6093. abstract="false" native="false" synchronized="false"
  6094. static="true" final="false" visibility="public"
  6095. deprecated="not deprecated">
  6096. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6097. <doc>
  6098. <![CDATA[@return a FileContext for the local file system using the default config.
  6099. @throws UnsupportedFileSystemException If the file system for
  6100. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  6101. </doc>
  6102. </method>
  6103. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6104. abstract="false" native="false" synchronized="false"
  6105. static="true" final="false" visibility="public"
  6106. deprecated="not deprecated">
  6107. <param name="defaultFsUri" type="java.net.URI"/>
  6108. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6109. <doc>
  6110. <![CDATA[Create a FileContext for specified URI using the default config.
  6111. @param defaultFsUri
  6112. @return a FileContext with the specified URI as the default FS.
  6113. @throws UnsupportedFileSystemException If the file system for
  6114. <code>defaultFsUri</code> is not supported]]>
  6115. </doc>
  6116. </method>
  6117. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6118. abstract="false" native="false" synchronized="false"
  6119. static="true" final="false" visibility="public"
  6120. deprecated="not deprecated">
  6121. <param name="defaultFsUri" type="java.net.URI"/>
  6122. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6123. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6124. <doc>
  6125. <![CDATA[Create a FileContext for specified default URI using the specified config.
  6126. @param defaultFsUri
  6127. @param aConf
  6128. @return new FileContext for specified uri
  6129. @throws UnsupportedFileSystemException If the file system with specified is
  6130. not supported
  6131. @throws RuntimeException If the file system specified is supported but
  6132. could not be instantiated, or if login fails.]]>
  6133. </doc>
  6134. </method>
  6135. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6136. abstract="false" native="false" synchronized="false"
  6137. static="true" final="false" visibility="public"
  6138. deprecated="not deprecated">
  6139. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6140. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6141. <doc>
  6142. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  6143. {@link #getFileContext(URI, Configuration)} instead of this one.
  6144. @param aConf
  6145. @return new FileContext
  6146. @throws UnsupportedFileSystemException If file system in the config
  6147. is not supported]]>
  6148. </doc>
  6149. </method>
  6150. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6151. abstract="false" native="false" synchronized="false"
  6152. static="true" final="false" visibility="public"
  6153. deprecated="not deprecated">
  6154. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6155. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6156. <doc>
  6157. <![CDATA[@param aConf - from which the FileContext is configured
  6158. @return a FileContext for the local file system using the specified config.
  6159. @throws UnsupportedFileSystemException If default file system in the config
  6160. is not supported]]>
  6161. </doc>
  6162. </method>
  6163. <method name="setWorkingDirectory"
  6164. abstract="false" native="false" synchronized="false"
  6165. static="false" final="false" visibility="public"
  6166. deprecated="not deprecated">
  6167. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  6168. <exception name="IOException" type="java.io.IOException"/>
  6169. <doc>
  6170. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  6171. directory feature is provided by simply prefixing relative names with the
  6172. working dir. Note this is different from Unix where the wd is actually set
  6173. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  6174. better in a distributed environment that has multiple independent roots.
  6175. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  6176. @param newWDir new working directory
  6177. @throws IOException
  6178. <br>
  6179. NewWdir can be one of:
  6180. <ul>
  6181. <li>relative path: "foo/bar";</li>
  6182. <li>absolute without scheme: "/foo/bar"</li>
  6183. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  6184. </ul>
  6185. <br>
  6186. Illegal WDs:
  6187. <ul>
  6188. <li>relative with scheme: "xx:foo/bar"</li>
  6189. <li>non existent directory</li>
  6190. </ul>]]>
  6191. </doc>
  6192. </method>
  6193. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6194. abstract="false" native="false" synchronized="false"
  6195. static="false" final="false" visibility="public"
  6196. deprecated="not deprecated">
  6197. <doc>
  6198. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  6199. </doc>
  6200. </method>
  6201. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  6202. abstract="false" native="false" synchronized="false"
  6203. static="false" final="false" visibility="public"
  6204. deprecated="not deprecated">
  6205. <doc>
  6206. <![CDATA[Gets the ugi in the file-context
  6207. @return UserGroupInformation]]>
  6208. </doc>
  6209. </method>
  6210. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6211. abstract="false" native="false" synchronized="false"
  6212. static="false" final="false" visibility="public"
  6213. deprecated="not deprecated">
  6214. <doc>
  6215. <![CDATA[Return the current user's home directory in this file system.
  6216. The default implementation returns "/user/$USER/".
  6217. @return the home directory]]>
  6218. </doc>
  6219. </method>
  6220. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6221. abstract="false" native="false" synchronized="false"
  6222. static="false" final="false" visibility="public"
  6223. deprecated="not deprecated">
  6224. <doc>
  6225. <![CDATA[@return the umask of this FileContext]]>
  6226. </doc>
  6227. </method>
  6228. <method name="setUMask"
  6229. abstract="false" native="false" synchronized="false"
  6230. static="false" final="false" visibility="public"
  6231. deprecated="not deprecated">
  6232. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6233. <doc>
  6234. <![CDATA[Set umask to the supplied parameter.
  6235. @param newUmask the new umask]]>
  6236. </doc>
  6237. </method>
  6238. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  6239. abstract="false" native="false" synchronized="false"
  6240. static="false" final="false" visibility="public"
  6241. deprecated="not deprecated">
  6242. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6243. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6244. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6245. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6246. <exception name="IOException" type="java.io.IOException"/>
  6247. <doc>
  6248. <![CDATA[Resolve the path following any symlinks or mount points
  6249. @param f to be resolved
  6250. @return fully qualified resolved path
  6251. @throws FileNotFoundException If <code>f</code> does not exist
  6252. @throws AccessControlException if access denied
  6253. @throws IOException If an IO Error occurred
  6254. Exceptions applicable to file systems accessed over RPC:
  6255. @throws RpcClientException If an exception occurred in the RPC client
  6256. @throws RpcServerException If an exception occurred in the RPC server
  6257. @throws UnexpectedServerException If server implementation throws
  6258. undeclared exception to RPC server
  6259. RuntimeExceptions:
  6260. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6261. </doc>
  6262. </method>
  6263. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6264. abstract="false" native="false" synchronized="false"
  6265. static="false" final="false" visibility="public"
  6266. deprecated="not deprecated">
  6267. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6268. <doc>
  6269. <![CDATA[Make the path fully qualified if it is isn't.
  6270. A Fully-qualified path has scheme and authority specified and an absolute
  6271. path.
  6272. Use the default file system and working dir in this FileContext to qualify.
  6273. @param path
  6274. @return qualified path]]>
  6275. </doc>
  6276. </method>
  6277. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6278. abstract="false" native="false" synchronized="false"
  6279. static="false" final="false" visibility="public"
  6280. deprecated="not deprecated">
  6281. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6282. <param name="createFlag" type="java.util.EnumSet"/>
  6283. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  6284. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6285. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6286. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6287. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6288. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6289. <exception name="IOException" type="java.io.IOException"/>
  6290. <doc>
  6291. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  6292. writing into the file.
  6293. @param f the file name to open
  6294. @param createFlag gives the semantics of create; see {@link CreateFlag}
  6295. @param opts file creation options; see {@link Options.CreateOpts}.
  6296. <ul>
  6297. <li>Progress - to report progress on the operation - default null
  6298. <li>Permission - umask is applied against permisssion: default is
  6299. FsPermissions:getDefault()
  6300. <li>CreateParent - create missing parent path; default is to not
  6301. to create parents
  6302. <li>The defaults for the following are SS defaults of the file
  6303. server implementing the target path. Not all parameters make sense
  6304. for all kinds of file system - eg. localFS ignores Blocksize,
  6305. replication, checksum
  6306. <ul>
  6307. <li>BufferSize - buffersize used in FSDataOutputStream
  6308. <li>Blocksize - block size for file blocks
  6309. <li>ReplicationFactor - replication for blocks
  6310. <li>ChecksumParam - Checksum parameters. server default is used
  6311. if not specified.
  6312. </ul>
  6313. </ul>
  6314. @return {@link FSDataOutputStream} for created file
  6315. @throws AccessControlException If access is denied
  6316. @throws FileAlreadyExistsException If file <code>f</code> already exists
  6317. @throws FileNotFoundException If parent of <code>f</code> does not exist
  6318. and <code>createParent</code> is false
  6319. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  6320. directory.
  6321. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6322. not supported
  6323. @throws IOException If an I/O error occurred
  6324. Exceptions applicable to file systems accessed over RPC:
  6325. @throws RpcClientException If an exception occurred in the RPC client
  6326. @throws RpcServerException If an exception occurred in the RPC server
  6327. @throws UnexpectedServerException If server implementation throws
  6328. undeclared exception to RPC server
  6329. RuntimeExceptions:
  6330. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6331. </doc>
  6332. </method>
  6333. <method name="mkdir"
  6334. abstract="false" native="false" synchronized="false"
  6335. static="false" final="false" visibility="public"
  6336. deprecated="not deprecated">
  6337. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6338. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6339. <param name="createParent" type="boolean"/>
  6340. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6341. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6342. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6343. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6344. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6345. <exception name="IOException" type="java.io.IOException"/>
  6346. <doc>
  6347. <![CDATA[Make(create) a directory and all the non-existent parents.
  6348. @param dir - the dir to make
  6349. @param permission - permissions is set permission&~umask
  6350. @param createParent - if true then missing parent dirs are created if false
  6351. then parent must exist
  6352. @throws AccessControlException If access is denied
  6353. @throws FileAlreadyExistsException If directory <code>dir</code> already
  6354. exists
  6355. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  6356. and <code>createParent</code> is false
  6357. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  6358. directory
  6359. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  6360. is not supported
  6361. @throws IOException If an I/O error occurred
  6362. Exceptions applicable to file systems accessed over RPC:
  6363. @throws RpcClientException If an exception occurred in the RPC client
  6364. @throws UnexpectedServerException If server implementation throws
  6365. undeclared exception to RPC server
  6366. RuntimeExceptions:
  6367. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  6368. </doc>
  6369. </method>
  6370. <method name="delete" return="boolean"
  6371. abstract="false" native="false" synchronized="false"
  6372. static="false" final="false" visibility="public"
  6373. deprecated="not deprecated">
  6374. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6375. <param name="recursive" type="boolean"/>
  6376. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6377. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6378. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6379. <exception name="IOException" type="java.io.IOException"/>
  6380. <doc>
  6381. <![CDATA[Delete a file.
  6382. @param f the path to delete.
  6383. @param recursive if path is a directory and set to
  6384. true, the directory is deleted else throws an exception. In
  6385. case of a file the recursive can be set to either true or false.
  6386. @throws AccessControlException If access is denied
  6387. @throws FileNotFoundException If <code>f</code> does not exist
  6388. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6389. not supported
  6390. @throws IOException If an I/O error occurred
  6391. Exceptions applicable to file systems accessed over RPC:
  6392. @throws RpcClientException If an exception occurred in the RPC client
  6393. @throws RpcServerException If an exception occurred in the RPC server
  6394. @throws UnexpectedServerException If server implementation throws
  6395. undeclared exception to RPC server
  6396. RuntimeExceptions:
  6397. @throws InvalidPathException If path <code>f</code> is invalid]]>
  6398. </doc>
  6399. </method>
  6400. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6401. abstract="false" native="false" synchronized="false"
  6402. static="false" final="false" visibility="public"
  6403. deprecated="not deprecated">
  6404. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6405. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6406. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6407. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6408. <exception name="IOException" type="java.io.IOException"/>
  6409. <doc>
  6410. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  6411. default buffersize.
  6412. @param f the file name to open
  6413. @throws AccessControlException If access is denied
  6414. @throws FileNotFoundException If file <code>f</code> does not exist
  6415. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6416. is not supported
  6417. @throws IOException If an I/O error occurred
  6418. Exceptions applicable to file systems accessed over RPC:
  6419. @throws RpcClientException If an exception occurred in the RPC client
  6420. @throws RpcServerException If an exception occurred in the RPC server
  6421. @throws UnexpectedServerException If server implementation throws
  6422. undeclared exception to RPC server]]>
  6423. </doc>
  6424. </method>
  6425. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6426. abstract="false" native="false" synchronized="false"
  6427. static="false" final="false" visibility="public"
  6428. deprecated="not deprecated">
  6429. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6430. <param name="bufferSize" type="int"/>
  6431. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6432. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6433. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6434. <exception name="IOException" type="java.io.IOException"/>
  6435. <doc>
  6436. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6437. @param f the file name to open
  6438. @param bufferSize the size of the buffer to be used.
  6439. @throws AccessControlException If access is denied
  6440. @throws FileNotFoundException If file <code>f</code> does not exist
  6441. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6442. not supported
  6443. @throws IOException If an I/O error occurred
  6444. Exceptions applicable to file systems accessed over RPC:
  6445. @throws RpcClientException If an exception occurred in the RPC client
  6446. @throws RpcServerException If an exception occurred in the RPC server
  6447. @throws UnexpectedServerException If server implementation throws
  6448. undeclared exception to RPC server]]>
  6449. </doc>
  6450. </method>
  6451. <method name="truncate" return="boolean"
  6452. abstract="false" native="false" synchronized="false"
  6453. static="false" final="false" visibility="public"
  6454. deprecated="not deprecated">
  6455. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6456. <param name="newLength" type="long"/>
  6457. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6458. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6459. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6460. <exception name="IOException" type="java.io.IOException"/>
  6461. <doc>
  6462. <![CDATA[Truncate the file in the indicated path to the indicated size.
  6463. <ul>
  6464. <li>Fails if path is a directory.
  6465. <li>Fails if path does not exist.
  6466. <li>Fails if path is not closed.
  6467. <li>Fails if new size is greater than current size.
  6468. </ul>
  6469. @param f The path to the file to be truncated
  6470. @param newLength The size the file is to be truncated to
  6471. @return <code>true</code> if the file has been truncated to the desired
  6472. <code>newLength</code> and is immediately available to be reused for
  6473. write operations such as <code>append</code>, or
  6474. <code>false</code> if a background process of adjusting the length of
  6475. the last block has been started, and clients should wait for it to
  6476. complete before proceeding with further file updates.
  6477. @throws AccessControlException If access is denied
  6478. @throws FileNotFoundException If file <code>f</code> does not exist
  6479. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6480. not supported
  6481. @throws IOException If an I/O error occurred
  6482. Exceptions applicable to file systems accessed over RPC:
  6483. @throws RpcClientException If an exception occurred in the RPC client
  6484. @throws RpcServerException If an exception occurred in the RPC server
  6485. @throws UnexpectedServerException If server implementation throws
  6486. undeclared exception to RPC server]]>
  6487. </doc>
  6488. </method>
  6489. <method name="setReplication" return="boolean"
  6490. abstract="false" native="false" synchronized="false"
  6491. static="false" final="false" visibility="public"
  6492. deprecated="not deprecated">
  6493. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6494. <param name="replication" type="short"/>
  6495. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6496. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6497. <exception name="IOException" type="java.io.IOException"/>
  6498. <doc>
  6499. <![CDATA[Set replication for an existing file.
  6500. @param f file name
  6501. @param replication new replication
  6502. @return true if successful
  6503. @throws AccessControlException If access is denied
  6504. @throws FileNotFoundException If file <code>f</code> does not exist
  6505. @throws IOException If an I/O error occurred
  6506. Exceptions applicable to file systems accessed over RPC:
  6507. @throws RpcClientException If an exception occurred in the RPC client
  6508. @throws RpcServerException If an exception occurred in the RPC server
  6509. @throws UnexpectedServerException If server implementation throws
  6510. undeclared exception to RPC server]]>
  6511. </doc>
  6512. </method>
  6513. <method name="rename"
  6514. abstract="false" native="false" synchronized="false"
  6515. static="false" final="false" visibility="public"
  6516. deprecated="not deprecated">
  6517. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6518. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6519. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  6520. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6521. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6522. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6523. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6524. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6525. <exception name="IOException" type="java.io.IOException"/>
  6526. <doc>
  6527. <![CDATA[Renames Path src to Path dst
  6528. <ul>
  6529. <li
  6530. <li>Fails if src is a file and dst is a directory.
  6531. <li>Fails if src is a directory and dst is a file.
  6532. <li>Fails if the parent of dst does not exist or is a file.
  6533. </ul>
  6534. <p>
  6535. If OVERWRITE option is not passed as an argument, rename fails if the dst
  6536. already exists.
  6537. <p>
  6538. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  6539. it is a file or an empty directory. Rename fails if dst is a non-empty
  6540. directory.
  6541. <p>
  6542. Note that atomicity of rename is dependent on the file system
  6543. implementation. Please refer to the file system documentation for details
  6544. <p>
  6545. @param src path to be renamed
  6546. @param dst new path after rename
  6547. @throws AccessControlException If access is denied
  6548. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  6549. <code>options</options> has {@link Options.Rename#OVERWRITE}
  6550. option false.
  6551. @throws FileNotFoundException If <code>src</code> does not exist
  6552. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  6553. directory
  6554. @throws UnsupportedFileSystemException If file system for <code>src</code>
  6555. and <code>dst</code> is not supported
  6556. @throws IOException If an I/O error occurred
  6557. Exceptions applicable to file systems accessed over RPC:
  6558. @throws RpcClientException If an exception occurred in the RPC client
  6559. @throws RpcServerException If an exception occurred in the RPC server
  6560. @throws UnexpectedServerException If server implementation throws
  6561. undeclared exception to RPC server]]>
  6562. </doc>
  6563. </method>
  6564. <method name="setPermission"
  6565. abstract="false" native="false" synchronized="false"
  6566. static="false" final="false" visibility="public"
  6567. deprecated="not deprecated">
  6568. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6569. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6570. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6571. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6572. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6573. <exception name="IOException" type="java.io.IOException"/>
  6574. <doc>
  6575. <![CDATA[Set permission of a path.
  6576. @param f
  6577. @param permission - the new absolute permission (umask is not applied)
  6578. @throws AccessControlException If access is denied
  6579. @throws FileNotFoundException If <code>f</code> does not exist
  6580. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6581. is not supported
  6582. @throws IOException If an I/O error occurred
  6583. Exceptions applicable to file systems accessed over RPC:
  6584. @throws RpcClientException If an exception occurred in the RPC client
  6585. @throws RpcServerException If an exception occurred in the RPC server
  6586. @throws UnexpectedServerException If server implementation throws
  6587. undeclared exception to RPC server]]>
  6588. </doc>
  6589. </method>
  6590. <method name="setOwner"
  6591. abstract="false" native="false" synchronized="false"
  6592. static="false" final="false" visibility="public"
  6593. deprecated="not deprecated">
  6594. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6595. <param name="username" type="java.lang.String"/>
  6596. <param name="groupname" type="java.lang.String"/>
  6597. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6598. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6599. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6600. <exception name="IOException" type="java.io.IOException"/>
  6601. <doc>
  6602. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  6603. and groupname cannot both be null.
  6604. @param f The path
  6605. @param username If it is null, the original username remains unchanged.
  6606. @param groupname If it is null, the original groupname remains unchanged.
  6607. @throws AccessControlException If access is denied
  6608. @throws FileNotFoundException If <code>f</code> does not exist
  6609. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6610. not supported
  6611. @throws IOException If an I/O error occurred
  6612. Exceptions applicable to file systems accessed over RPC:
  6613. @throws RpcClientException If an exception occurred in the RPC client
  6614. @throws RpcServerException If an exception occurred in the RPC server
  6615. @throws UnexpectedServerException If server implementation throws
  6616. undeclared exception to RPC server
  6617. RuntimeExceptions:
  6618. @throws HadoopIllegalArgumentException If <code>username</code> or
  6619. <code>groupname</code> is invalid.]]>
  6620. </doc>
  6621. </method>
  6622. <method name="setTimes"
  6623. abstract="false" native="false" synchronized="false"
  6624. static="false" final="false" visibility="public"
  6625. deprecated="not deprecated">
  6626. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6627. <param name="mtime" type="long"/>
  6628. <param name="atime" type="long"/>
  6629. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6630. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6631. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6632. <exception name="IOException" type="java.io.IOException"/>
  6633. <doc>
  6634. <![CDATA[Set access time of a file.
  6635. @param f The path
  6636. @param mtime Set the modification time of this file.
  6637. The number of milliseconds since epoch (Jan 1, 1970).
  6638. A value of -1 means that this call should not set modification time.
  6639. @param atime Set the access time of this file.
  6640. The number of milliseconds since Jan 1, 1970.
  6641. A value of -1 means that this call should not set access time.
  6642. @throws AccessControlException If access is denied
  6643. @throws FileNotFoundException If <code>f</code> does not exist
  6644. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6645. not supported
  6646. @throws IOException If an I/O error occurred
  6647. Exceptions applicable to file systems accessed over RPC:
  6648. @throws RpcClientException If an exception occurred in the RPC client
  6649. @throws RpcServerException If an exception occurred in the RPC server
  6650. @throws UnexpectedServerException If server implementation throws
  6651. undeclared exception to RPC server]]>
  6652. </doc>
  6653. </method>
  6654. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  6655. abstract="false" native="false" synchronized="false"
  6656. static="false" final="false" visibility="public"
  6657. deprecated="not deprecated">
  6658. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6659. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6660. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6661. <exception name="IOException" type="java.io.IOException"/>
  6662. <doc>
  6663. <![CDATA[Get the checksum of a file.
  6664. @param f file path
  6665. @return The file checksum. The default return value is null,
  6666. which indicates that no checksum algorithm is implemented
  6667. in the corresponding FileSystem.
  6668. @throws AccessControlException If access is denied
  6669. @throws FileNotFoundException If <code>f</code> does not exist
  6670. @throws IOException If an I/O error occurred
  6671. Exceptions applicable to file systems accessed over RPC:
  6672. @throws RpcClientException If an exception occurred in the RPC client
  6673. @throws RpcServerException If an exception occurred in the RPC server
  6674. @throws UnexpectedServerException If server implementation throws
  6675. undeclared exception to RPC server]]>
  6676. </doc>
  6677. </method>
  6678. <method name="setVerifyChecksum"
  6679. abstract="false" native="false" synchronized="false"
  6680. static="false" final="false" visibility="public"
  6681. deprecated="not deprecated">
  6682. <param name="verifyChecksum" type="boolean"/>
  6683. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6684. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6685. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6686. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6687. <exception name="IOException" type="java.io.IOException"/>
  6688. <doc>
  6689. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  6690. This is only applicable if the
  6691. corresponding FileSystem supports checksum. By default doesn't do anything.
  6692. @param verifyChecksum
  6693. @param f set the verifyChecksum for the Filesystem containing this path
  6694. @throws AccessControlException If access is denied
  6695. @throws FileNotFoundException If <code>f</code> does not exist
  6696. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6697. not supported
  6698. @throws IOException If an I/O error occurred
  6699. Exceptions applicable to file systems accessed over RPC:
  6700. @throws RpcClientException If an exception occurred in the RPC client
  6701. @throws RpcServerException If an exception occurred in the RPC server
  6702. @throws UnexpectedServerException If server implementation throws
  6703. undeclared exception to RPC server]]>
  6704. </doc>
  6705. </method>
  6706. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6707. abstract="false" native="false" synchronized="false"
  6708. static="false" final="false" visibility="public"
  6709. deprecated="not deprecated">
  6710. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6711. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6712. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6713. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6714. <exception name="IOException" type="java.io.IOException"/>
  6715. <doc>
  6716. <![CDATA[Return a file status object that represents the path.
  6717. @param f The path we want information from
  6718. @return a FileStatus object
  6719. @throws AccessControlException If access is denied
  6720. @throws FileNotFoundException If <code>f</code> does not exist
  6721. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6722. not supported
  6723. @throws IOException If an I/O error occurred
  6724. Exceptions applicable to file systems accessed over RPC:
  6725. @throws RpcClientException If an exception occurred in the RPC client
  6726. @throws RpcServerException If an exception occurred in the RPC server
  6727. @throws UnexpectedServerException If server implementation throws
  6728. undeclared exception to RPC server]]>
  6729. </doc>
  6730. </method>
  6731. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  6732. abstract="false" native="false" synchronized="false"
  6733. static="false" final="false" visibility="public"
  6734. deprecated="not deprecated">
  6735. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6736. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6737. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6738. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6739. <exception name="IOException" type="java.io.IOException"/>
  6740. <doc>
  6741. <![CDATA[Return a file status object that represents the path. If the path
  6742. refers to a symlink then the FileStatus of the symlink is returned.
  6743. The behavior is equivalent to #getFileStatus() if the underlying
  6744. file system does not support symbolic links.
  6745. @param f The path we want information from.
  6746. @return A FileStatus object
  6747. @throws AccessControlException If access is denied
  6748. @throws FileNotFoundException If <code>f</code> does not exist
  6749. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6750. not supported
  6751. @throws IOException If an I/O error occurred]]>
  6752. </doc>
  6753. </method>
  6754. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  6755. abstract="false" native="false" synchronized="false"
  6756. static="false" final="false" visibility="public"
  6757. deprecated="not deprecated">
  6758. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6759. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6760. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6761. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6762. <exception name="IOException" type="java.io.IOException"/>
  6763. <doc>
  6764. <![CDATA[Returns the target of the given symbolic link as it was specified
  6765. when the link was created. Links in the path leading up to the
  6766. final path component are resolved transparently.
  6767. @param f the path to return the target of
  6768. @return The un-interpreted target of the symbolic link.
  6769. @throws AccessControlException If access is denied
  6770. @throws FileNotFoundException If path <code>f</code> does not exist
  6771. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6772. not supported
  6773. @throws IOException If the given path does not refer to a symlink
  6774. or an I/O error occurred]]>
  6775. </doc>
  6776. </method>
  6777. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  6778. abstract="false" native="false" synchronized="false"
  6779. static="false" final="false" visibility="public"
  6780. deprecated="not deprecated">
  6781. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6782. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6783. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6784. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6785. <exception name="IOException" type="java.io.IOException"/>
  6786. <doc>
  6787. <![CDATA[Returns a status object describing the use and capacity of the
  6788. file system denoted by the Parh argument p.
  6789. If the file system has multiple partitions, the
  6790. use and capacity of the partition pointed to by the specified
  6791. path is reflected.
  6792. @param f Path for which status should be obtained. null means the
  6793. root partition of the default file system.
  6794. @return a FsStatus object
  6795. @throws AccessControlException If access is denied
  6796. @throws FileNotFoundException If <code>f</code> does not exist
  6797. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6798. not supported
  6799. @throws IOException If an I/O error occurred
  6800. Exceptions applicable to file systems accessed over RPC:
  6801. @throws RpcClientException If an exception occurred in the RPC client
  6802. @throws RpcServerException If an exception occurred in the RPC server
  6803. @throws UnexpectedServerException If server implementation throws
  6804. undeclared exception to RPC server]]>
  6805. </doc>
  6806. </method>
  6807. <method name="createSymlink"
  6808. abstract="false" native="false" synchronized="false"
  6809. static="false" final="false" visibility="public"
  6810. deprecated="not deprecated">
  6811. <param name="target" type="org.apache.hadoop.fs.Path"/>
  6812. <param name="link" type="org.apache.hadoop.fs.Path"/>
  6813. <param name="createParent" type="boolean"/>
  6814. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6815. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6816. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6817. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6818. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6819. <exception name="IOException" type="java.io.IOException"/>
  6820. <doc>
  6821. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  6822. the symlink exits, the user does not have permission to create symlink,
  6823. or the underlying file system does not support symlinks.
  6824. Symlink permissions are ignored, access to a symlink is determined by
  6825. the permissions of the symlink target.
  6826. Symlinks in paths leading up to the final path component are resolved
  6827. transparently. If the final path component refers to a symlink some
  6828. functions operate on the symlink itself, these are:
  6829. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  6830. - rename(src, dst) - If src refers to a symlink, the symlink is
  6831. renamed. If dst refers to a symlink, the symlink is over-written.
  6832. - getLinkTarget(f) - Returns the target of the symlink.
  6833. - getFileLinkStatus(f) - Returns a FileStatus object describing
  6834. the symlink.
  6835. Some functions, create() and mkdir(), expect the final path component
  6836. does not exist. If they are given a path that refers to a symlink that
  6837. does exist they behave as if the path referred to an existing file or
  6838. directory. All other functions fully resolve, ie follow, the symlink.
  6839. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  6840. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  6841. getFsStatus, getFileStatus, exists, and listStatus.
  6842. Symlink targets are stored as given to createSymlink, assuming the
  6843. underlying file system is capable of storing a fully qualified URI.
  6844. Dangling symlinks are permitted. FileContext supports four types of
  6845. symlink targets, and resolves them as follows
  6846. <pre>
  6847. Given a path referring to a symlink of form:
  6848. <---X--->
  6849. fs://host/A/B/link
  6850. <-----Y----->
  6851. In this path X is the scheme and authority that identify the file system,
  6852. and Y is the path leading up to the final path component "link". If Y is
  6853. a symlink itself then let Y' be the target of Y and X' be the scheme and
  6854. authority of Y'. Symlink targets may:
  6855. 1. Fully qualified URIs
  6856. fs://hostX/A/B/file Resolved according to the target file system.
  6857. 2. Partially qualified URIs (eg scheme but no host)
  6858. fs:///A/B/file Resolved according to the target file system. Eg resolving
  6859. a symlink to hdfs:///A results in an exception because
  6860. HDFS URIs must be fully qualified, while a symlink to
  6861. file:///A will not since Hadoop's local file systems
  6862. require partially qualified URIs.
  6863. 3. Relative paths
  6864. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  6865. is "../B/file" then [Y'][path] is hdfs://host/B/file
  6866. 4. Absolute paths
  6867. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  6868. is "/file" then [X][path] is hdfs://host/file
  6869. </pre>
  6870. @param target the target of the symbolic link
  6871. @param link the path to be created that points to target
  6872. @param createParent if true then missing parent dirs are created if
  6873. false then parent must exist
  6874. @throws AccessControlException If access is denied
  6875. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  6876. @throws FileNotFoundException If <code>target</code> does not exist
  6877. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  6878. directory.
  6879. @throws UnsupportedFileSystemException If file system for
  6880. <code>target</code> or <code>link</code> is not supported
  6881. @throws IOException If an I/O error occurred]]>
  6882. </doc>
  6883. </method>
  6884. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6885. abstract="false" native="false" synchronized="false"
  6886. static="false" final="false" visibility="public"
  6887. deprecated="not deprecated">
  6888. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6889. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6890. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6891. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6892. <exception name="IOException" type="java.io.IOException"/>
  6893. <doc>
  6894. <![CDATA[List the statuses of the files/directories in the given path if the path is
  6895. a directory.
  6896. @param f is the path
  6897. @return an iterator that traverses statuses of the files/directories
  6898. in the given path
  6899. @throws AccessControlException If access is denied
  6900. @throws FileNotFoundException If <code>f</code> does not exist
  6901. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6902. not supported
  6903. @throws IOException If an I/O error occurred
  6904. Exceptions applicable to file systems accessed over RPC:
  6905. @throws RpcClientException If an exception occurred in the RPC client
  6906. @throws RpcServerException If an exception occurred in the RPC server
  6907. @throws UnexpectedServerException If server implementation throws
  6908. undeclared exception to RPC server]]>
  6909. </doc>
  6910. </method>
  6911. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  6912. abstract="false" native="false" synchronized="false"
  6913. static="false" final="false" visibility="public"
  6914. deprecated="not deprecated">
  6915. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6916. <exception name="IOException" type="java.io.IOException"/>
  6917. <doc>
  6918. <![CDATA[@return an iterator over the corrupt files under the given path
  6919. (may contain duplicates if a file has more than one corrupt block)
  6920. @throws IOException]]>
  6921. </doc>
  6922. </method>
  6923. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6924. abstract="false" native="false" synchronized="false"
  6925. static="false" final="false" visibility="public"
  6926. deprecated="not deprecated">
  6927. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6928. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6929. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6930. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6931. <exception name="IOException" type="java.io.IOException"/>
  6932. <doc>
  6933. <![CDATA[List the statuses of the files/directories in the given path if the path is
  6934. a directory.
  6935. Return the file's status and block locations If the path is a file.
  6936. If a returned status is a file, it contains the file's block locations.
  6937. @param f is the path
  6938. @return an iterator that traverses statuses of the files/directories
  6939. in the given path
  6940. If any IO exception (for example the input directory gets deleted while
  6941. listing is being executed), next() or hasNext() of the returned iterator
  6942. may throw a RuntimeException with the io exception as the cause.
  6943. @throws AccessControlException If access is denied
  6944. @throws FileNotFoundException If <code>f</code> does not exist
  6945. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6946. not supported
  6947. @throws IOException If an I/O error occurred
  6948. Exceptions applicable to file systems accessed over RPC:
  6949. @throws RpcClientException If an exception occurred in the RPC client
  6950. @throws RpcServerException If an exception occurred in the RPC server
  6951. @throws UnexpectedServerException If server implementation throws
  6952. undeclared exception to RPC server]]>
  6953. </doc>
  6954. </method>
  6955. <method name="deleteOnExit" return="boolean"
  6956. abstract="false" native="false" synchronized="false"
  6957. static="false" final="false" visibility="public"
  6958. deprecated="not deprecated">
  6959. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6960. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6961. <exception name="IOException" type="java.io.IOException"/>
  6962. <doc>
  6963. <![CDATA[Mark a path to be deleted on JVM shutdown.
  6964. @param f the existing path to delete.
  6965. @return true if deleteOnExit is successful, otherwise false.
  6966. @throws AccessControlException If access is denied
  6967. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6968. not supported
  6969. @throws IOException If an I/O error occurred
  6970. Exceptions applicable to file systems accessed over RPC:
  6971. @throws RpcClientException If an exception occurred in the RPC client
  6972. @throws RpcServerException If an exception occurred in the RPC server
  6973. @throws UnexpectedServerException If server implementation throws
  6974. undeclared exception to RPC server]]>
  6975. </doc>
  6976. </method>
  6977. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  6978. abstract="false" native="false" synchronized="false"
  6979. static="false" final="false" visibility="public"
  6980. deprecated="not deprecated">
  6981. </method>
  6982. <method name="resolve" return="org.apache.hadoop.fs.Path"
  6983. abstract="false" native="false" synchronized="false"
  6984. static="false" final="false" visibility="protected"
  6985. deprecated="not deprecated">
  6986. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6987. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6988. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6989. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6990. <exception name="IOException" type="java.io.IOException"/>
  6991. <doc>
  6992. <![CDATA[Resolves all symbolic links in the specified path.
  6993. Returns the new path object.]]>
  6994. </doc>
  6995. </method>
  6996. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  6997. abstract="false" native="false" synchronized="false"
  6998. static="false" final="false" visibility="protected"
  6999. deprecated="not deprecated">
  7000. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7001. <exception name="IOException" type="java.io.IOException"/>
  7002. <doc>
  7003. <![CDATA[Resolves all symbolic links in the specified path leading up
  7004. to, but not including the final path component.
  7005. @param f path to resolve
  7006. @return the new path object.]]>
  7007. </doc>
  7008. </method>
  7009. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  7010. abstract="false" native="false" synchronized="false"
  7011. static="true" final="false" visibility="public"
  7012. deprecated="not deprecated">
  7013. <param name="uri" type="java.net.URI"/>
  7014. <doc>
  7015. <![CDATA[Get the statistics for a particular file system
  7016. @param uri
  7017. the uri to lookup the statistics. Only scheme and authority part
  7018. of the uri are used as the key to store and lookup.
  7019. @return a statistics object]]>
  7020. </doc>
  7021. </method>
  7022. <method name="clearStatistics"
  7023. abstract="false" native="false" synchronized="false"
  7024. static="true" final="false" visibility="public"
  7025. deprecated="not deprecated">
  7026. <doc>
  7027. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  7028. systems.]]>
  7029. </doc>
  7030. </method>
  7031. <method name="printStatistics"
  7032. abstract="false" native="false" synchronized="false"
  7033. static="true" final="false" visibility="public"
  7034. deprecated="not deprecated">
  7035. <doc>
  7036. <![CDATA[Prints the statistics to standard output. File System is identified by the
  7037. scheme and authority.]]>
  7038. </doc>
  7039. </method>
  7040. <method name="getAllStatistics" return="java.util.Map"
  7041. abstract="false" native="false" synchronized="false"
  7042. static="true" final="false" visibility="public"
  7043. deprecated="not deprecated">
  7044. <doc>
  7045. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  7046. consists of scheme and authority for the filesystem.]]>
  7047. </doc>
  7048. </method>
  7049. <method name="modifyAclEntries"
  7050. abstract="false" native="false" synchronized="false"
  7051. static="false" final="false" visibility="public"
  7052. deprecated="not deprecated">
  7053. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7054. <param name="aclSpec" type="java.util.List"/>
  7055. <exception name="IOException" type="java.io.IOException"/>
  7056. <doc>
  7057. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  7058. entries or modify the permissions on existing ACL entries. All existing
  7059. ACL entries that are not specified in this call are retained without
  7060. changes. (Modifications are merged into the current ACL.)
  7061. @param path Path to modify
  7062. @param aclSpec List<AclEntry> describing modifications
  7063. @throws IOException if an ACL could not be modified]]>
  7064. </doc>
  7065. </method>
  7066. <method name="removeAclEntries"
  7067. abstract="false" native="false" synchronized="false"
  7068. static="false" final="false" visibility="public"
  7069. deprecated="not deprecated">
  7070. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7071. <param name="aclSpec" type="java.util.List"/>
  7072. <exception name="IOException" type="java.io.IOException"/>
  7073. <doc>
  7074. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  7075. retained.
  7076. @param path Path to modify
  7077. @param aclSpec List<AclEntry> describing entries to remove
  7078. @throws IOException if an ACL could not be modified]]>
  7079. </doc>
  7080. </method>
  7081. <method name="removeDefaultAcl"
  7082. abstract="false" native="false" synchronized="false"
  7083. static="false" final="false" visibility="public"
  7084. deprecated="not deprecated">
  7085. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7086. <exception name="IOException" type="java.io.IOException"/>
  7087. <doc>
  7088. <![CDATA[Removes all default ACL entries from files and directories.
  7089. @param path Path to modify
  7090. @throws IOException if an ACL could not be modified]]>
  7091. </doc>
  7092. </method>
  7093. <method name="removeAcl"
  7094. abstract="false" native="false" synchronized="false"
  7095. static="false" final="false" visibility="public"
  7096. deprecated="not deprecated">
  7097. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7098. <exception name="IOException" type="java.io.IOException"/>
  7099. <doc>
  7100. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  7101. for user, group, and others are retained for compatibility with permission
  7102. bits.
  7103. @param path Path to modify
  7104. @throws IOException if an ACL could not be removed]]>
  7105. </doc>
  7106. </method>
  7107. <method name="setAcl"
  7108. abstract="false" native="false" synchronized="false"
  7109. static="false" final="false" visibility="public"
  7110. deprecated="not deprecated">
  7111. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7112. <param name="aclSpec" type="java.util.List"/>
  7113. <exception name="IOException" type="java.io.IOException"/>
  7114. <doc>
  7115. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  7116. entries.
  7117. @param path Path to modify
  7118. @param aclSpec List<AclEntry> describing modifications, must include entries
  7119. for user, group, and others for compatibility with permission bits.
  7120. @throws IOException if an ACL could not be modified]]>
  7121. </doc>
  7122. </method>
  7123. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  7124. abstract="false" native="false" synchronized="false"
  7125. static="false" final="false" visibility="public"
  7126. deprecated="not deprecated">
  7127. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7128. <exception name="IOException" type="java.io.IOException"/>
  7129. <doc>
  7130. <![CDATA[Gets the ACLs of files and directories.
  7131. @param path Path to get
  7132. @return RemoteIterator<AclStatus> which returns each AclStatus
  7133. @throws IOException if an ACL could not be read]]>
  7134. </doc>
  7135. </method>
  7136. <method name="setXAttr"
  7137. abstract="false" native="false" synchronized="false"
  7138. static="false" final="false" visibility="public"
  7139. deprecated="not deprecated">
  7140. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7141. <param name="name" type="java.lang.String"/>
  7142. <param name="value" type="byte[]"/>
  7143. <exception name="IOException" type="java.io.IOException"/>
  7144. <doc>
  7145. <![CDATA[Set an xattr of a file or directory.
  7146. The name must be prefixed with the namespace followed by ".". For example,
  7147. "user.attr".
  7148. <p/>
  7149. Refer to the HDFS extended attributes user documentation for details.
  7150. @param path Path to modify
  7151. @param name xattr name.
  7152. @param value xattr value.
  7153. @throws IOException]]>
  7154. </doc>
  7155. </method>
  7156. <method name="setXAttr"
  7157. abstract="false" native="false" synchronized="false"
  7158. static="false" final="false" visibility="public"
  7159. deprecated="not deprecated">
  7160. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7161. <param name="name" type="java.lang.String"/>
  7162. <param name="value" type="byte[]"/>
  7163. <param name="flag" type="java.util.EnumSet"/>
  7164. <exception name="IOException" type="java.io.IOException"/>
  7165. <doc>
  7166. <![CDATA[Set an xattr of a file or directory.
  7167. The name must be prefixed with the namespace followed by ".". For example,
  7168. "user.attr".
  7169. <p/>
  7170. Refer to the HDFS extended attributes user documentation for details.
  7171. @param path Path to modify
  7172. @param name xattr name.
  7173. @param value xattr value.
  7174. @param flag xattr set flag
  7175. @throws IOException]]>
  7176. </doc>
  7177. </method>
  7178. <method name="getXAttr" return="byte[]"
  7179. abstract="false" native="false" synchronized="false"
  7180. static="false" final="false" visibility="public"
  7181. deprecated="not deprecated">
  7182. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7183. <param name="name" type="java.lang.String"/>
  7184. <exception name="IOException" type="java.io.IOException"/>
  7185. <doc>
  7186. <![CDATA[Get an xattr for a file or directory.
  7187. The name must be prefixed with the namespace followed by ".". For example,
  7188. "user.attr".
  7189. <p/>
  7190. Refer to the HDFS extended attributes user documentation for details.
  7191. @param path Path to get extended attribute
  7192. @param name xattr name.
  7193. @return byte[] xattr value.
  7194. @throws IOException]]>
  7195. </doc>
  7196. </method>
  7197. <method name="getXAttrs" return="java.util.Map"
  7198. abstract="false" native="false" synchronized="false"
  7199. static="false" final="false" visibility="public"
  7200. deprecated="not deprecated">
  7201. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7202. <exception name="IOException" type="java.io.IOException"/>
  7203. <doc>
  7204. <![CDATA[Get all of the xattrs for a file or directory.
  7205. Only those xattrs for which the logged-in user has permissions to view
  7206. are returned.
  7207. <p/>
  7208. Refer to the HDFS extended attributes user documentation for details.
  7209. @param path Path to get extended attributes
  7210. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7211. @throws IOException]]>
  7212. </doc>
  7213. </method>
  7214. <method name="getXAttrs" return="java.util.Map"
  7215. abstract="false" native="false" synchronized="false"
  7216. static="false" final="false" visibility="public"
  7217. deprecated="not deprecated">
  7218. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7219. <param name="names" type="java.util.List"/>
  7220. <exception name="IOException" type="java.io.IOException"/>
  7221. <doc>
  7222. <![CDATA[Get all of the xattrs for a file or directory.
  7223. Only those xattrs for which the logged-in user has permissions to view
  7224. are returned.
  7225. <p/>
  7226. Refer to the HDFS extended attributes user documentation for details.
  7227. @param path Path to get extended attributes
  7228. @param names XAttr names.
  7229. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7230. @throws IOException]]>
  7231. </doc>
  7232. </method>
  7233. <method name="removeXAttr"
  7234. abstract="false" native="false" synchronized="false"
  7235. static="false" final="false" visibility="public"
  7236. deprecated="not deprecated">
  7237. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7238. <param name="name" type="java.lang.String"/>
  7239. <exception name="IOException" type="java.io.IOException"/>
  7240. <doc>
  7241. <![CDATA[Remove an xattr of a file or directory.
  7242. The name must be prefixed with the namespace followed by ".". For example,
  7243. "user.attr".
  7244. <p/>
  7245. Refer to the HDFS extended attributes user documentation for details.
  7246. @param path Path to remove extended attribute
  7247. @param name xattr name
  7248. @throws IOException]]>
  7249. </doc>
  7250. </method>
  7251. <method name="listXAttrs" return="java.util.List"
  7252. abstract="false" native="false" synchronized="false"
  7253. static="false" final="false" visibility="public"
  7254. deprecated="not deprecated">
  7255. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7256. <exception name="IOException" type="java.io.IOException"/>
  7257. <doc>
  7258. <![CDATA[Get all of the xattr names for a file or directory.
  7259. Only those xattr names which the logged-in user has permissions to view
  7260. are returned.
  7261. <p/>
  7262. Refer to the HDFS extended attributes user documentation for details.
  7263. @param path Path to get extended attributes
  7264. @return List<String> of the XAttr names of the file or directory
  7265. @throws IOException]]>
  7266. </doc>
  7267. </method>
  7268. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7269. abstract="false" native="false" synchronized="false"
  7270. static="false" final="true" visibility="public"
  7271. deprecated="not deprecated">
  7272. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7273. <exception name="IOException" type="java.io.IOException"/>
  7274. <doc>
  7275. <![CDATA[Create a snapshot with a default name.
  7276. @param path The directory where snapshots will be taken.
  7277. @return the snapshot path.
  7278. @throws IOException If an I/O error occurred
  7279. <p>Exceptions applicable to file systems accessed over RPC:
  7280. @throws RpcClientException If an exception occurred in the RPC client
  7281. @throws RpcServerException If an exception occurred in the RPC server
  7282. @throws UnexpectedServerException If server implementation throws
  7283. undeclared exception to RPC server]]>
  7284. </doc>
  7285. </method>
  7286. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7287. abstract="false" native="false" synchronized="false"
  7288. static="false" final="false" visibility="public"
  7289. deprecated="not deprecated">
  7290. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7291. <param name="snapshotName" type="java.lang.String"/>
  7292. <exception name="IOException" type="java.io.IOException"/>
  7293. <doc>
  7294. <![CDATA[Create a snapshot.
  7295. @param path The directory where snapshots will be taken.
  7296. @param snapshotName The name of the snapshot
  7297. @return the snapshot path.
  7298. @throws IOException If an I/O error occurred
  7299. <p>Exceptions applicable to file systems accessed over RPC:
  7300. @throws RpcClientException If an exception occurred in the RPC client
  7301. @throws RpcServerException If an exception occurred in the RPC server
  7302. @throws UnexpectedServerException If server implementation throws
  7303. undeclared exception to RPC server]]>
  7304. </doc>
  7305. </method>
  7306. <method name="renameSnapshot"
  7307. abstract="false" native="false" synchronized="false"
  7308. static="false" final="false" visibility="public"
  7309. deprecated="not deprecated">
  7310. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7311. <param name="snapshotOldName" type="java.lang.String"/>
  7312. <param name="snapshotNewName" type="java.lang.String"/>
  7313. <exception name="IOException" type="java.io.IOException"/>
  7314. <doc>
  7315. <![CDATA[Rename a snapshot.
  7316. @param path The directory path where the snapshot was taken
  7317. @param snapshotOldName Old name of the snapshot
  7318. @param snapshotNewName New name of the snapshot
  7319. @throws IOException If an I/O error occurred
  7320. <p>Exceptions applicable to file systems accessed over RPC:
  7321. @throws RpcClientException If an exception occurred in the RPC client
  7322. @throws RpcServerException If an exception occurred in the RPC server
  7323. @throws UnexpectedServerException If server implementation throws
  7324. undeclared exception to RPC server]]>
  7325. </doc>
  7326. </method>
  7327. <method name="deleteSnapshot"
  7328. abstract="false" native="false" synchronized="false"
  7329. static="false" final="false" visibility="public"
  7330. deprecated="not deprecated">
  7331. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7332. <param name="snapshotName" type="java.lang.String"/>
  7333. <exception name="IOException" type="java.io.IOException"/>
  7334. <doc>
  7335. <![CDATA[Delete a snapshot of a directory.
  7336. @param path The directory that the to-be-deleted snapshot belongs to
  7337. @param snapshotName The name of the snapshot
  7338. @throws IOException If an I/O error occurred
  7339. <p>Exceptions applicable to file systems accessed over RPC:
  7340. @throws RpcClientException If an exception occurred in the RPC client
  7341. @throws RpcServerException If an exception occurred in the RPC server
  7342. @throws UnexpectedServerException If server implementation throws
  7343. undeclared exception to RPC server]]>
  7344. </doc>
  7345. </method>
  7346. <method name="setStoragePolicy"
  7347. abstract="false" native="false" synchronized="false"
  7348. static="false" final="false" visibility="public"
  7349. deprecated="not deprecated">
  7350. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7351. <param name="policyName" type="java.lang.String"/>
  7352. <exception name="IOException" type="java.io.IOException"/>
  7353. <doc>
  7354. <![CDATA[Set the storage policy for a given file or directory.
  7355. @param path file or directory path.
  7356. @param policyName the name of the target storage policy. The list
  7357. of supported Storage policies can be retrieved
  7358. via {@link #getAllStoragePolicies}.]]>
  7359. </doc>
  7360. </method>
  7361. <method name="unsetStoragePolicy"
  7362. abstract="false" native="false" synchronized="false"
  7363. static="false" final="false" visibility="public"
  7364. deprecated="not deprecated">
  7365. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7366. <exception name="IOException" type="java.io.IOException"/>
  7367. <doc>
  7368. <![CDATA[Unset the storage policy set for a given file or directory.
  7369. @param src file or directory path.
  7370. @throws IOException]]>
  7371. </doc>
  7372. </method>
  7373. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  7374. abstract="false" native="false" synchronized="false"
  7375. static="false" final="false" visibility="public"
  7376. deprecated="not deprecated">
  7377. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7378. <exception name="IOException" type="java.io.IOException"/>
  7379. <doc>
  7380. <![CDATA[Query the effective storage policy ID for the given file or directory.
  7381. @param path file or directory path.
  7382. @return storage policy for give file.
  7383. @throws IOException]]>
  7384. </doc>
  7385. </method>
  7386. <method name="getAllStoragePolicies" return="java.util.Collection"
  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. <doc>
  7392. <![CDATA[Retrieve all the storage policies supported by this file system.
  7393. @return all storage policies supported by this filesystem.
  7394. @throws IOException]]>
  7395. </doc>
  7396. </method>
  7397. <field name="LOG" type="org.slf4j.Logger"
  7398. transient="false" volatile="false"
  7399. static="true" final="true" visibility="public"
  7400. deprecated="not deprecated">
  7401. </field>
  7402. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7403. transient="false" volatile="false"
  7404. static="true" final="true" visibility="public"
  7405. deprecated="not deprecated">
  7406. <doc>
  7407. <![CDATA[Default permission for directory and symlink
  7408. In previous versions, this default permission was also used to
  7409. create files, so files created end up with ugo+x permission.
  7410. See HADOOP-9155 for detail.
  7411. Two new constants are added to solve this, please use
  7412. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  7413. {@link FileContext#FILE_DEFAULT_PERM} for file.
  7414. This constant is kept for compatibility.]]>
  7415. </doc>
  7416. </field>
  7417. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7418. transient="false" volatile="false"
  7419. static="true" final="true" visibility="public"
  7420. deprecated="not deprecated">
  7421. <doc>
  7422. <![CDATA[Default permission for directory]]>
  7423. </doc>
  7424. </field>
  7425. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7426. transient="false" volatile="false"
  7427. static="true" final="true" visibility="public"
  7428. deprecated="not deprecated">
  7429. <doc>
  7430. <![CDATA[Default permission for file]]>
  7431. </doc>
  7432. </field>
  7433. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  7434. transient="false" volatile="false"
  7435. static="true" final="true" visibility="public"
  7436. deprecated="not deprecated">
  7437. <doc>
  7438. <![CDATA[Priority of the FileContext shutdown hook.]]>
  7439. </doc>
  7440. </field>
  7441. <doc>
  7442. <![CDATA[The FileContext class provides an interface to the application writer for
  7443. using the Hadoop file system.
  7444. It provides a set of methods for the usual operation: create, open,
  7445. list, etc
  7446. <p>
  7447. <b> *** Path Names *** </b>
  7448. <p>
  7449. The Hadoop file system supports a URI name space and URI names.
  7450. It offers a forest of file systems that can be referenced using fully
  7451. qualified URIs.
  7452. Two common Hadoop file systems implementations are
  7453. <ul>
  7454. <li> the local file system: file:///path
  7455. <li> the hdfs file system hdfs://nnAddress:nnPort/path
  7456. </ul>
  7457. While URI names are very flexible, it requires knowing the name or address
  7458. of the server. For convenience one often wants to access the default system
  7459. in one's environment without knowing its name/address. This has an
  7460. additional benefit that it allows one to change one's default fs
  7461. (e.g. admin moves application from cluster1 to cluster2).
  7462. <p>
  7463. To facilitate this, Hadoop supports a notion of a default file system.
  7464. The user can set his default file system, although this is
  7465. typically set up for you in your environment via your default config.
  7466. A default file system implies a default scheme and authority; slash-relative
  7467. names (such as /for/bar) are resolved relative to that default FS.
  7468. Similarly a user can also have working-directory-relative names (i.e. names
  7469. not starting with a slash). While the working directory is generally in the
  7470. same default FS, the wd can be in a different FS.
  7471. <p>
  7472. Hence Hadoop path names can be one of:
  7473. <ul>
  7474. <li> fully qualified URI: scheme://authority/path
  7475. <li> slash relative names: /path relative to the default file system
  7476. <li> wd-relative names: path relative to the working dir
  7477. </ul>
  7478. Relative paths with scheme (scheme:foo/bar) are illegal.
  7479. <p>
  7480. <b>****The Role of the FileContext and configuration defaults****</b>
  7481. <p>
  7482. The FileContext provides file namespace context for resolving file names;
  7483. it also contains the umask for permissions, In that sense it is like the
  7484. per-process file-related state in Unix system.
  7485. These two properties
  7486. <ul>
  7487. <li> default file system i.e your slash)
  7488. <li> umask
  7489. </ul>
  7490. in general, are obtained from the default configuration file
  7491. in your environment, (@see {@link Configuration}).
  7492. No other configuration parameters are obtained from the default config as
  7493. far as the file context layer is concerned. All file system instances
  7494. (i.e. deployments of file systems) have default properties; we call these
  7495. server side (SS) defaults. Operation like create allow one to select many
  7496. properties: either pass them in as explicit parameters or use
  7497. the SS properties.
  7498. <p>
  7499. The file system related SS defaults are
  7500. <ul>
  7501. <li> the home directory (default is "/user/userName")
  7502. <li> the initial wd (only for local fs)
  7503. <li> replication factor
  7504. <li> block size
  7505. <li> buffer size
  7506. <li> encryptDataTransfer
  7507. <li> checksum option. (checksumType and bytesPerChecksum)
  7508. </ul>
  7509. <p>
  7510. <b> *** Usage Model for the FileContext class *** </b>
  7511. <p>
  7512. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  7513. Unspecified values come from core-defaults.xml in the release jar.
  7514. <ul>
  7515. <li> myFContext = FileContext.getFileContext(); // uses the default config
  7516. // which has your default FS
  7517. <li> myFContext.create(path, ...);
  7518. <li> myFContext.setWorkingDir(path)
  7519. <li> myFContext.open (path, ...);
  7520. </ul>
  7521. Example 2: Get a FileContext with a specific URI as the default FS
  7522. <ul>
  7523. <li> myFContext = FileContext.getFileContext(URI)
  7524. <li> myFContext.create(path, ...);
  7525. ...
  7526. </ul>
  7527. Example 3: FileContext with local file system as the default
  7528. <ul>
  7529. <li> myFContext = FileContext.getLocalFSFileContext()
  7530. <li> myFContext.create(path, ...);
  7531. <li> ...
  7532. </ul>
  7533. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  7534. Generally you should not need use a config unless you are doing
  7535. <ul>
  7536. <li> configX = someConfigSomeOnePassedToYou.
  7537. <li> myFContext = getFileContext(configX); // configX is not changed,
  7538. // is passed down
  7539. <li> myFContext.create(path, ...);
  7540. <li>...
  7541. </ul>]]>
  7542. </doc>
  7543. </class>
  7544. <!-- end class org.apache.hadoop.fs.FileContext -->
  7545. <!-- start class org.apache.hadoop.fs.FileStatus -->
  7546. <class name="FileStatus" extends="java.lang.Object"
  7547. abstract="false"
  7548. static="false" final="false" visibility="public"
  7549. deprecated="not deprecated">
  7550. <implements name="org.apache.hadoop.io.Writable"/>
  7551. <implements name="java.lang.Comparable"/>
  7552. <constructor name="FileStatus"
  7553. static="false" final="false" visibility="public"
  7554. deprecated="not deprecated">
  7555. </constructor>
  7556. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  7557. static="false" final="false" visibility="public"
  7558. deprecated="not deprecated">
  7559. </constructor>
  7560. <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"
  7561. static="false" final="false" visibility="public"
  7562. deprecated="not deprecated">
  7563. <doc>
  7564. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  7565. </doc>
  7566. </constructor>
  7567. <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, org.apache.hadoop.fs.Path"
  7568. static="false" final="false" visibility="public"
  7569. deprecated="not deprecated">
  7570. </constructor>
  7571. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  7572. static="false" final="false" visibility="public"
  7573. deprecated="not deprecated">
  7574. <exception name="IOException" type="java.io.IOException"/>
  7575. <doc>
  7576. <![CDATA[Copy constructor.
  7577. @param other FileStatus to copy]]>
  7578. </doc>
  7579. </constructor>
  7580. <method name="getLen" return="long"
  7581. abstract="false" native="false" synchronized="false"
  7582. static="false" final="false" visibility="public"
  7583. deprecated="not deprecated">
  7584. <doc>
  7585. <![CDATA[Get the length of this file, in bytes.
  7586. @return the length of this file, in bytes.]]>
  7587. </doc>
  7588. </method>
  7589. <method name="isFile" return="boolean"
  7590. abstract="false" native="false" synchronized="false"
  7591. static="false" final="false" visibility="public"
  7592. deprecated="not deprecated">
  7593. <doc>
  7594. <![CDATA[Is this a file?
  7595. @return true if this is a file]]>
  7596. </doc>
  7597. </method>
  7598. <method name="isDirectory" return="boolean"
  7599. abstract="false" native="false" synchronized="false"
  7600. static="false" final="false" visibility="public"
  7601. deprecated="not deprecated">
  7602. <doc>
  7603. <![CDATA[Is this a directory?
  7604. @return true if this is a directory]]>
  7605. </doc>
  7606. </method>
  7607. <method name="isDir" return="boolean"
  7608. abstract="false" native="false" synchronized="false"
  7609. static="false" final="false" visibility="public"
  7610. deprecated="Use {@link FileStatus#isFile()},
  7611. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7612. instead.">
  7613. <doc>
  7614. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  7615. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7616. @return true if this is a directory.
  7617. @deprecated Use {@link FileStatus#isFile()},
  7618. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7619. instead.]]>
  7620. </doc>
  7621. </method>
  7622. <method name="isSymlink" return="boolean"
  7623. abstract="false" native="false" synchronized="false"
  7624. static="false" final="false" visibility="public"
  7625. deprecated="not deprecated">
  7626. <doc>
  7627. <![CDATA[Is this a symbolic link?
  7628. @return true if this is a symbolic link]]>
  7629. </doc>
  7630. </method>
  7631. <method name="getBlockSize" return="long"
  7632. abstract="false" native="false" synchronized="false"
  7633. static="false" final="false" visibility="public"
  7634. deprecated="not deprecated">
  7635. <doc>
  7636. <![CDATA[Get the block size of the file.
  7637. @return the number of bytes]]>
  7638. </doc>
  7639. </method>
  7640. <method name="getReplication" return="short"
  7641. abstract="false" native="false" synchronized="false"
  7642. static="false" final="false" visibility="public"
  7643. deprecated="not deprecated">
  7644. <doc>
  7645. <![CDATA[Get the replication factor of a file.
  7646. @return the replication factor of a file.]]>
  7647. </doc>
  7648. </method>
  7649. <method name="getModificationTime" return="long"
  7650. abstract="false" native="false" synchronized="false"
  7651. static="false" final="false" visibility="public"
  7652. deprecated="not deprecated">
  7653. <doc>
  7654. <![CDATA[Get the modification time of the file.
  7655. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  7656. </doc>
  7657. </method>
  7658. <method name="getAccessTime" return="long"
  7659. abstract="false" native="false" synchronized="false"
  7660. static="false" final="false" visibility="public"
  7661. deprecated="not deprecated">
  7662. <doc>
  7663. <![CDATA[Get the access time of the file.
  7664. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  7665. </doc>
  7666. </method>
  7667. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7668. abstract="false" native="false" synchronized="false"
  7669. static="false" final="false" visibility="public"
  7670. deprecated="not deprecated">
  7671. <doc>
  7672. <![CDATA[Get FsPermission associated with the file.
  7673. @return permssion. If a filesystem does not have a notion of permissions
  7674. or if permissions could not be determined, then default
  7675. permissions equivalent of "rwxrwxrwx" is returned.]]>
  7676. </doc>
  7677. </method>
  7678. <method name="isEncrypted" return="boolean"
  7679. abstract="false" native="false" synchronized="false"
  7680. static="false" final="false" visibility="public"
  7681. deprecated="not deprecated">
  7682. <doc>
  7683. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  7684. @return true if the underlying file is encrypted.]]>
  7685. </doc>
  7686. </method>
  7687. <method name="getOwner" return="java.lang.String"
  7688. abstract="false" native="false" synchronized="false"
  7689. static="false" final="false" visibility="public"
  7690. deprecated="not deprecated">
  7691. <doc>
  7692. <![CDATA[Get the owner of the file.
  7693. @return owner of the file. The string could be empty if there is no
  7694. notion of owner of a file in a filesystem or if it could not
  7695. be determined (rare).]]>
  7696. </doc>
  7697. </method>
  7698. <method name="getGroup" return="java.lang.String"
  7699. abstract="false" native="false" synchronized="false"
  7700. static="false" final="false" visibility="public"
  7701. deprecated="not deprecated">
  7702. <doc>
  7703. <![CDATA[Get the group associated with the file.
  7704. @return group for the file. The string could be empty if there is no
  7705. notion of group of a file in a filesystem or if it could not
  7706. be determined (rare).]]>
  7707. </doc>
  7708. </method>
  7709. <method name="getPath" return="org.apache.hadoop.fs.Path"
  7710. abstract="false" native="false" synchronized="false"
  7711. static="false" final="false" visibility="public"
  7712. deprecated="not deprecated">
  7713. </method>
  7714. <method name="setPath"
  7715. abstract="false" native="false" synchronized="false"
  7716. static="false" final="false" visibility="public"
  7717. deprecated="not deprecated">
  7718. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7719. </method>
  7720. <method name="setPermission"
  7721. abstract="false" native="false" synchronized="false"
  7722. static="false" final="false" visibility="protected"
  7723. deprecated="not deprecated">
  7724. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7725. <doc>
  7726. <![CDATA[Sets permission.
  7727. @param permission if permission is null, default value is set]]>
  7728. </doc>
  7729. </method>
  7730. <method name="setOwner"
  7731. abstract="false" native="false" synchronized="false"
  7732. static="false" final="false" visibility="protected"
  7733. deprecated="not deprecated">
  7734. <param name="owner" type="java.lang.String"/>
  7735. <doc>
  7736. <![CDATA[Sets owner.
  7737. @param owner if it is null, default value is set]]>
  7738. </doc>
  7739. </method>
  7740. <method name="setGroup"
  7741. abstract="false" native="false" synchronized="false"
  7742. static="false" final="false" visibility="protected"
  7743. deprecated="not deprecated">
  7744. <param name="group" type="java.lang.String"/>
  7745. <doc>
  7746. <![CDATA[Sets group.
  7747. @param group if it is null, default value is set]]>
  7748. </doc>
  7749. </method>
  7750. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  7751. abstract="false" native="false" synchronized="false"
  7752. static="false" final="false" visibility="public"
  7753. deprecated="not deprecated">
  7754. <exception name="IOException" type="java.io.IOException"/>
  7755. <doc>
  7756. <![CDATA[@return The contents of the symbolic link.]]>
  7757. </doc>
  7758. </method>
  7759. <method name="setSymlink"
  7760. abstract="false" native="false" synchronized="false"
  7761. static="false" final="false" visibility="public"
  7762. deprecated="not deprecated">
  7763. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7764. </method>
  7765. <method name="write"
  7766. abstract="false" native="false" synchronized="false"
  7767. static="false" final="false" visibility="public"
  7768. deprecated="not deprecated">
  7769. <param name="out" type="java.io.DataOutput"/>
  7770. <exception name="IOException" type="java.io.IOException"/>
  7771. </method>
  7772. <method name="readFields"
  7773. abstract="false" native="false" synchronized="false"
  7774. static="false" final="false" visibility="public"
  7775. deprecated="not deprecated">
  7776. <param name="in" type="java.io.DataInput"/>
  7777. <exception name="IOException" type="java.io.IOException"/>
  7778. </method>
  7779. <method name="compareTo" return="int"
  7780. abstract="false" native="false" synchronized="false"
  7781. static="false" final="false" visibility="public"
  7782. deprecated="not deprecated">
  7783. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  7784. <doc>
  7785. <![CDATA[Compare this FileStatus to another FileStatus
  7786. @param o the FileStatus to be compared.
  7787. @return a negative integer, zero, or a positive integer as this object
  7788. is less than, equal to, or greater than the specified object.]]>
  7789. </doc>
  7790. </method>
  7791. <method name="equals" return="boolean"
  7792. abstract="false" native="false" synchronized="false"
  7793. static="false" final="false" visibility="public"
  7794. deprecated="not deprecated">
  7795. <param name="o" type="java.lang.Object"/>
  7796. <doc>
  7797. <![CDATA[Compare if this object is equal to another object
  7798. @param o the object to be compared.
  7799. @return true if two file status has the same path name; false if not.]]>
  7800. </doc>
  7801. </method>
  7802. <method name="hashCode" return="int"
  7803. abstract="false" native="false" synchronized="false"
  7804. static="false" final="false" visibility="public"
  7805. deprecated="not deprecated">
  7806. <doc>
  7807. <![CDATA[Returns a hash code value for the object, which is defined as
  7808. the hash code of the path name.
  7809. @return a hash code value for the path name.]]>
  7810. </doc>
  7811. </method>
  7812. <method name="toString" return="java.lang.String"
  7813. abstract="false" native="false" synchronized="false"
  7814. static="false" final="false" visibility="public"
  7815. deprecated="not deprecated">
  7816. </method>
  7817. <doc>
  7818. <![CDATA[Interface that represents the client side information for a file.]]>
  7819. </doc>
  7820. </class>
  7821. <!-- end class org.apache.hadoop.fs.FileStatus -->
  7822. <!-- start class org.apache.hadoop.fs.FileSystem -->
  7823. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  7824. abstract="true"
  7825. static="false" final="false" visibility="public"
  7826. deprecated="not deprecated">
  7827. <implements name="java.io.Closeable"/>
  7828. <constructor name="FileSystem"
  7829. static="false" final="false" visibility="protected"
  7830. deprecated="not deprecated">
  7831. </constructor>
  7832. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7833. abstract="false" native="false" synchronized="false"
  7834. static="true" final="false" visibility="public"
  7835. deprecated="not deprecated">
  7836. <param name="uri" type="java.net.URI"/>
  7837. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7838. <param name="user" type="java.lang.String"/>
  7839. <exception name="IOException" type="java.io.IOException"/>
  7840. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  7841. <doc>
  7842. <![CDATA[Get a FileSystem instance based on the uri, the passed in
  7843. configuration and the user.
  7844. @param uri of the filesystem
  7845. @param conf the configuration to use
  7846. @param user to perform the get as
  7847. @return the filesystem instance
  7848. @throws IOException failure to load
  7849. @throws InterruptedException If the {@code UGI.doAs()} call was
  7850. somehow interrupted.]]>
  7851. </doc>
  7852. </method>
  7853. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7854. abstract="false" native="false" synchronized="false"
  7855. static="true" final="false" visibility="public"
  7856. deprecated="not deprecated">
  7857. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7858. <exception name="IOException" type="java.io.IOException"/>
  7859. <doc>
  7860. <![CDATA[Returns the configured FileSystem implementation.
  7861. @param conf the configuration to use]]>
  7862. </doc>
  7863. </method>
  7864. <method name="getDefaultUri" return="java.net.URI"
  7865. abstract="false" native="false" synchronized="false"
  7866. static="true" final="false" visibility="public"
  7867. deprecated="not deprecated">
  7868. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7869. <doc>
  7870. <![CDATA[Get the default FileSystem URI from a configuration.
  7871. @param conf the configuration to use
  7872. @return the uri of the default filesystem]]>
  7873. </doc>
  7874. </method>
  7875. <method name="setDefaultUri"
  7876. abstract="false" native="false" synchronized="false"
  7877. static="true" final="false" visibility="public"
  7878. deprecated="not deprecated">
  7879. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7880. <param name="uri" type="java.net.URI"/>
  7881. <doc>
  7882. <![CDATA[Set the default FileSystem URI in a configuration.
  7883. @param conf the configuration to alter
  7884. @param uri the new default filesystem uri]]>
  7885. </doc>
  7886. </method>
  7887. <method name="setDefaultUri"
  7888. abstract="false" native="false" synchronized="false"
  7889. static="true" final="false" visibility="public"
  7890. deprecated="not deprecated">
  7891. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7892. <param name="uri" type="java.lang.String"/>
  7893. <doc>
  7894. <![CDATA[Set the default FileSystem URI in a configuration.
  7895. @param conf the configuration to alter
  7896. @param uri the new default filesystem uri]]>
  7897. </doc>
  7898. </method>
  7899. <method name="initialize"
  7900. abstract="false" native="false" synchronized="false"
  7901. static="false" final="false" visibility="public"
  7902. deprecated="not deprecated">
  7903. <param name="name" type="java.net.URI"/>
  7904. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7905. <exception name="IOException" type="java.io.IOException"/>
  7906. <doc>
  7907. <![CDATA[Initialize a FileSystem.
  7908. Called after the new FileSystem instance is constructed, and before it
  7909. is ready for use.
  7910. FileSystem implementations overriding this method MUST forward it to
  7911. their superclass, though the order in which it is done, and whether
  7912. to alter the configuration before the invocation are options of the
  7913. subclass.
  7914. @param name a URI whose authority section names the host, port, etc.
  7915. for this FileSystem
  7916. @param conf the configuration
  7917. @throws IOException on any failure to initialize this instance.
  7918. @throws IllegalArgumentException if the URI is considered invalid.]]>
  7919. </doc>
  7920. </method>
  7921. <method name="getScheme" return="java.lang.String"
  7922. abstract="false" native="false" synchronized="false"
  7923. static="false" final="false" visibility="public"
  7924. deprecated="not deprecated">
  7925. <doc>
  7926. <![CDATA[Return the protocol scheme for this FileSystem.
  7927. <p>
  7928. This implementation throws an <code>UnsupportedOperationException</code>.
  7929. @return the protocol scheme for this FileSystem.
  7930. @throws UnsupportedOperationException if the operation is unsupported
  7931. (default).]]>
  7932. </doc>
  7933. </method>
  7934. <method name="getUri" return="java.net.URI"
  7935. abstract="true" native="false" synchronized="false"
  7936. static="false" final="false" visibility="public"
  7937. deprecated="not deprecated">
  7938. <doc>
  7939. <![CDATA[Returns a URI which identifies this FileSystem.
  7940. @return the URI of this filesystem.]]>
  7941. </doc>
  7942. </method>
  7943. <method name="getCanonicalUri" return="java.net.URI"
  7944. abstract="false" native="false" synchronized="false"
  7945. static="false" final="false" visibility="protected"
  7946. deprecated="not deprecated">
  7947. <doc>
  7948. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  7949. The default implementation simply calls {@link #canonicalizeUri(URI)}
  7950. on the filesystem's own URI, so subclasses typically only need to
  7951. implement that method.
  7952. @see #canonicalizeUri(URI)]]>
  7953. </doc>
  7954. </method>
  7955. <method name="canonicalizeUri" return="java.net.URI"
  7956. abstract="false" native="false" synchronized="false"
  7957. static="false" final="false" visibility="protected"
  7958. deprecated="not deprecated">
  7959. <param name="uri" type="java.net.URI"/>
  7960. <doc>
  7961. <![CDATA[Canonicalize the given URI.
  7962. This is implementation-dependent, and may for example consist of
  7963. canonicalizing the hostname using DNS and adding the default
  7964. port if not specified.
  7965. The default implementation simply fills in the default port if
  7966. not specified and if {@link #getDefaultPort()} returns a
  7967. default port.
  7968. @return URI
  7969. @see NetUtils#getCanonicalUri(URI, int)]]>
  7970. </doc>
  7971. </method>
  7972. <method name="getDefaultPort" return="int"
  7973. abstract="false" native="false" synchronized="false"
  7974. static="false" final="false" visibility="protected"
  7975. deprecated="not deprecated">
  7976. <doc>
  7977. <![CDATA[Get the default port for this FileSystem.
  7978. @return the default port or 0 if there isn't one]]>
  7979. </doc>
  7980. </method>
  7981. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  7982. abstract="false" native="false" synchronized="false"
  7983. static="true" final="false" visibility="protected"
  7984. deprecated="not deprecated">
  7985. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  7986. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7987. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7988. <exception name="IOException" type="java.io.IOException"/>
  7989. </method>
  7990. <method name="getCanonicalServiceName" return="java.lang.String"
  7991. abstract="false" native="false" synchronized="false"
  7992. static="false" final="false" visibility="public"
  7993. deprecated="not deprecated">
  7994. <doc>
  7995. <![CDATA[Get a canonical service name for this FileSystem.
  7996. The token cache is the only user of the canonical service name,
  7997. and uses it to lookup this FileSystem's service tokens.
  7998. If the file system provides a token of its own then it must have a canonical
  7999. name, otherwise the canonical name can be null.
  8000. Default implementation: If the FileSystem has child file systems
  8001. (such as an embedded file system) then it is assumed that the FS has no
  8002. tokens of its own and hence returns a null name; otherwise a service
  8003. name is built using Uri and port.
  8004. @return a service string that uniquely identifies this file system, null
  8005. if the filesystem does not implement tokens
  8006. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  8007. </doc>
  8008. </method>
  8009. <method name="getName" return="java.lang.String"
  8010. abstract="false" native="false" synchronized="false"
  8011. static="false" final="false" visibility="public"
  8012. deprecated="call {@link #getUri()} instead.">
  8013. <doc>
  8014. <![CDATA[@deprecated call {@link #getUri()} instead.]]>
  8015. </doc>
  8016. </method>
  8017. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  8018. abstract="false" native="false" synchronized="false"
  8019. static="true" final="false" visibility="public"
  8020. deprecated="call {@link #get(URI, Configuration)} instead.">
  8021. <param name="name" type="java.lang.String"/>
  8022. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8023. <exception name="IOException" type="java.io.IOException"/>
  8024. <doc>
  8025. <![CDATA[@deprecated call {@link #get(URI, Configuration)} instead.]]>
  8026. </doc>
  8027. </method>
  8028. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8029. abstract="false" native="false" synchronized="false"
  8030. static="true" final="false" visibility="public"
  8031. deprecated="not deprecated">
  8032. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8033. <exception name="IOException" type="java.io.IOException"/>
  8034. <doc>
  8035. <![CDATA[Get the local FileSystem.
  8036. @param conf the configuration to configure the FileSystem with
  8037. if it is newly instantiated.
  8038. @return a LocalFileSystem
  8039. @throws IOException if somehow the local FS cannot be instantiated.]]>
  8040. </doc>
  8041. </method>
  8042. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8043. abstract="false" native="false" synchronized="false"
  8044. static="true" final="false" visibility="public"
  8045. deprecated="not deprecated">
  8046. <param name="uri" type="java.net.URI"/>
  8047. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8048. <exception name="IOException" type="java.io.IOException"/>
  8049. <doc>
  8050. <![CDATA[Get a FileSystem for this URI's scheme and authority.
  8051. <ol>
  8052. <li>
  8053. If the configuration has the property
  8054. {@code "fs.$SCHEME.impl.disable.cache"} set to true,
  8055. a new instance will be created, initialized with the supplied URI and
  8056. configuration, then returned without being cached.
  8057. </li>
  8058. <li>
  8059. If the there is a cached FS instance matching the same URI, it will
  8060. be returned.
  8061. </li>
  8062. <li>
  8063. Otherwise: a new FS instance will be created, initialized with the
  8064. configuration and URI, cached and returned to the caller.
  8065. </li>
  8066. </ol>
  8067. @throws IOException if the FileSystem cannot be instantiated.]]>
  8068. </doc>
  8069. </method>
  8070. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8071. abstract="false" native="false" synchronized="false"
  8072. static="true" final="false" visibility="public"
  8073. deprecated="not deprecated">
  8074. <param name="uri" type="java.net.URI"/>
  8075. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8076. <param name="user" type="java.lang.String"/>
  8077. <exception name="IOException" type="java.io.IOException"/>
  8078. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8079. <doc>
  8080. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  8081. given user. Internally invokes {@link #newInstance(URI, Configuration)}
  8082. @param uri of the filesystem
  8083. @param conf the configuration to use
  8084. @param user to perform the get as
  8085. @return filesystem instance
  8086. @throws IOException if the FileSystem cannot be instantiated.
  8087. @throws InterruptedException If the {@code UGI.doAs()} call was
  8088. somehow interrupted.]]>
  8089. </doc>
  8090. </method>
  8091. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8092. abstract="false" native="false" synchronized="false"
  8093. static="true" final="false" visibility="public"
  8094. deprecated="not deprecated">
  8095. <param name="uri" type="java.net.URI"/>
  8096. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  8097. <exception name="IOException" type="java.io.IOException"/>
  8098. <doc>
  8099. <![CDATA[Returns the FileSystem for this URI's scheme and authority.
  8100. The entire URI is passed to the FileSystem instance's initialize method.
  8101. This always returns a new FileSystem object.
  8102. @param uri FS URI
  8103. @param config configuration to use
  8104. @return the new FS instance
  8105. @throws IOException FS creation or initialization failure.]]>
  8106. </doc>
  8107. </method>
  8108. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8109. abstract="false" native="false" synchronized="false"
  8110. static="true" final="false" visibility="public"
  8111. deprecated="not deprecated">
  8112. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8113. <exception name="IOException" type="java.io.IOException"/>
  8114. <doc>
  8115. <![CDATA[Returns a unique configured FileSystem implementation for the default
  8116. filesystem of the supplied configuration.
  8117. This always returns a new FileSystem object.
  8118. @param conf the configuration to use
  8119. @return the new FS instance
  8120. @throws IOException FS creation or initialization failure.]]>
  8121. </doc>
  8122. </method>
  8123. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8124. abstract="false" native="false" synchronized="false"
  8125. static="true" final="false" visibility="public"
  8126. deprecated="not deprecated">
  8127. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8128. <exception name="IOException" type="java.io.IOException"/>
  8129. <doc>
  8130. <![CDATA[Get a unique local FileSystem object.
  8131. @param conf the configuration to configure the FileSystem with
  8132. @return a new LocalFileSystem object.
  8133. @throws IOException FS creation or initialization failure.]]>
  8134. </doc>
  8135. </method>
  8136. <method name="closeAll"
  8137. abstract="false" native="false" synchronized="false"
  8138. static="true" final="false" visibility="public"
  8139. deprecated="not deprecated">
  8140. <exception name="IOException" type="java.io.IOException"/>
  8141. <doc>
  8142. <![CDATA[Close all cached FileSystem instances. After this operation, they
  8143. may not be used in any operations.
  8144. @throws IOException a problem arose closing one or more filesystem.]]>
  8145. </doc>
  8146. </method>
  8147. <method name="closeAllForUGI"
  8148. abstract="false" native="false" synchronized="false"
  8149. static="true" final="false" visibility="public"
  8150. deprecated="not deprecated">
  8151. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  8152. <exception name="IOException" type="java.io.IOException"/>
  8153. <doc>
  8154. <![CDATA[Close all cached FileSystem instances for a given UGI.
  8155. Be sure those filesystems are not used anymore.
  8156. @param ugi user group info to close
  8157. @throws IOException a problem arose closing one or more filesystem.]]>
  8158. </doc>
  8159. </method>
  8160. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8161. abstract="false" native="false" synchronized="false"
  8162. static="false" final="false" visibility="public"
  8163. deprecated="not deprecated">
  8164. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8165. <doc>
  8166. <![CDATA[Qualify a path to one which uses this FileSystem and, if relative,
  8167. made absolute.
  8168. @param path to qualify.
  8169. @return this path if it contains a scheme and authority and is absolute, or
  8170. a new path that includes a path and authority and is fully qualified
  8171. @see Path#makeQualified(URI, Path)
  8172. @throws IllegalArgumentException if the path has a schema/URI different
  8173. from this FileSystem.]]>
  8174. </doc>
  8175. </method>
  8176. <method name="addDelegationTokens" return="org.apache.hadoop.security.token.Token[]"
  8177. abstract="false" native="false" synchronized="false"
  8178. static="false" final="false" visibility="public"
  8179. deprecated="not deprecated">
  8180. <param name="renewer" type="java.lang.String"/>
  8181. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  8182. <exception name="IOException" type="java.io.IOException"/>
  8183. <doc>
  8184. <![CDATA[Obtain all delegation tokens used by this FileSystem that are not
  8185. already present in the given Credentials. Existing tokens will neither
  8186. be verified as valid nor having the given renewer. Missing tokens will
  8187. be acquired and added to the given Credentials.
  8188. Default Impl: works for simple FS with its own token
  8189. and also for an embedded FS whose tokens are those of its
  8190. child FileSystems (i.e. the embedded FS has no tokens of its own).
  8191. @param renewer the user allowed to renew the delegation tokens
  8192. @param credentials cache in which to add new delegation tokens
  8193. @return list of new delegation tokens
  8194. @throws IOException]]>
  8195. </doc>
  8196. </method>
  8197. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8198. abstract="false" native="false" synchronized="false"
  8199. static="true" final="false" visibility="public"
  8200. deprecated="not deprecated">
  8201. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8202. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8203. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8204. <exception name="IOException" type="java.io.IOException"/>
  8205. <doc>
  8206. <![CDATA[Create a file with the provided permission.
  8207. The permission of the file is set to be the provided permission as in
  8208. setPermission, not permission&~umask
  8209. The HDFS implementation is implemented using two RPCs.
  8210. It is understood that it is inefficient,
  8211. but the implementation is thread-safe. The other option is to change the
  8212. value of umask in configuration to be 0, but it is not thread-safe.
  8213. @param fs FileSystem
  8214. @param file the name of the file to be created
  8215. @param permission the permission of the file
  8216. @return an output stream
  8217. @throws IOException IO failure]]>
  8218. </doc>
  8219. </method>
  8220. <method name="mkdirs" return="boolean"
  8221. abstract="false" native="false" synchronized="false"
  8222. static="true" final="false" visibility="public"
  8223. deprecated="not deprecated">
  8224. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8225. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8226. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8227. <exception name="IOException" type="java.io.IOException"/>
  8228. <doc>
  8229. <![CDATA[Create a directory with the provided permission.
  8230. The permission of the directory is set to be the provided permission as in
  8231. setPermission, not permission&~umask
  8232. @see #create(FileSystem, Path, FsPermission)
  8233. @param fs FileSystem handle
  8234. @param dir the name of the directory to be created
  8235. @param permission the permission of the directory
  8236. @return true if the directory creation succeeds; false otherwise
  8237. @throws IOException A problem creating the directories.]]>
  8238. </doc>
  8239. </method>
  8240. <method name="checkPath"
  8241. abstract="false" native="false" synchronized="false"
  8242. static="false" final="false" visibility="protected"
  8243. deprecated="not deprecated">
  8244. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8245. <doc>
  8246. <![CDATA[Check that a Path belongs to this FileSystem.
  8247. The base implementation performs case insensitive equality checks
  8248. of the URIs' schemes and authorities. Subclasses may implement slightly
  8249. different checks.
  8250. @param path to check
  8251. @throws IllegalArgumentException if the path is not considered to be
  8252. part of this FileSystem.]]>
  8253. </doc>
  8254. </method>
  8255. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8256. abstract="false" native="false" synchronized="false"
  8257. static="false" final="false" visibility="public"
  8258. deprecated="not deprecated">
  8259. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  8260. <param name="start" type="long"/>
  8261. <param name="len" type="long"/>
  8262. <exception name="IOException" type="java.io.IOException"/>
  8263. <doc>
  8264. <![CDATA[Return an array containing hostnames, offset and size of
  8265. portions of the given file. For nonexistent
  8266. file or regions, {@code null} is returned.
  8267. <pre>
  8268. if f == null :
  8269. result = null
  8270. elif f.getLen() <= start:
  8271. result = []
  8272. else result = [ locations(FS, b) for b in blocks(FS, p, s, s+l)]
  8273. </pre>
  8274. This call is most helpful with and distributed filesystem
  8275. where the hostnames of machines that contain blocks of the given file
  8276. can be determined.
  8277. The default implementation returns an array containing one element:
  8278. <pre>
  8279. BlockLocation( { "localhost:50010" }, { "localhost" }, 0, file.getLen())
  8280. </pre>>
  8281. @param file FilesStatus to get data from
  8282. @param start offset into the given file
  8283. @param len length for which to get locations for
  8284. @throws IOException IO failure]]>
  8285. </doc>
  8286. </method>
  8287. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8288. abstract="false" native="false" synchronized="false"
  8289. static="false" final="false" visibility="public"
  8290. deprecated="not deprecated">
  8291. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8292. <param name="start" type="long"/>
  8293. <param name="len" type="long"/>
  8294. <exception name="IOException" type="java.io.IOException"/>
  8295. <doc>
  8296. <![CDATA[Return an array containing hostnames, offset and size of
  8297. portions of the given file. For a nonexistent
  8298. file or regions, {@code null} is returned.
  8299. This call is most helpful with location-aware distributed
  8300. filesystems, where it returns hostnames of machines that
  8301. contain the given file.
  8302. A FileSystem will normally return the equivalent result
  8303. of passing the {@code FileStatus} of the path to
  8304. {@link #getFileBlockLocations(FileStatus, long, long)}
  8305. @param p path is used to identify an FS since an FS could have
  8306. another FS that it could be delegating the call to
  8307. @param start offset into the given file
  8308. @param len length for which to get locations for
  8309. @throws FileNotFoundException when the path does not exist
  8310. @throws IOException IO failure]]>
  8311. </doc>
  8312. </method>
  8313. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8314. abstract="false" native="false" synchronized="false"
  8315. static="false" final="false" visibility="public"
  8316. deprecated="use {@link #getServerDefaults(Path)} instead">
  8317. <exception name="IOException" type="java.io.IOException"/>
  8318. <doc>
  8319. <![CDATA[Return a set of server default configuration values.
  8320. @return server default configuration values
  8321. @throws IOException IO failure
  8322. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  8323. </doc>
  8324. </method>
  8325. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8326. abstract="false" native="false" synchronized="false"
  8327. static="false" final="false" visibility="public"
  8328. deprecated="not deprecated">
  8329. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8330. <exception name="IOException" type="java.io.IOException"/>
  8331. <doc>
  8332. <![CDATA[Return a set of server default configuration values.
  8333. @param p path is used to identify an FS since an FS could have
  8334. another FS that it could be delegating the call to
  8335. @return server default configuration values
  8336. @throws IOException IO failure]]>
  8337. </doc>
  8338. </method>
  8339. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  8340. abstract="false" native="false" synchronized="false"
  8341. static="false" final="false" visibility="public"
  8342. deprecated="not deprecated">
  8343. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8344. <exception name="IOException" type="java.io.IOException"/>
  8345. <doc>
  8346. <![CDATA[Return the fully-qualified path of path, resolving the path
  8347. through any symlinks or mount point.
  8348. @param p path to be resolved
  8349. @return fully qualified path
  8350. @throws FileNotFoundException if the path is not present
  8351. @throws IOException for any other error]]>
  8352. </doc>
  8353. </method>
  8354. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8355. abstract="true" native="false" synchronized="false"
  8356. static="false" final="false" visibility="public"
  8357. deprecated="not deprecated">
  8358. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8359. <param name="bufferSize" type="int"/>
  8360. <exception name="IOException" type="java.io.IOException"/>
  8361. <doc>
  8362. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8363. @param f the file name to open
  8364. @param bufferSize the size of the buffer to be used.
  8365. @throws IOException IO failure]]>
  8366. </doc>
  8367. </method>
  8368. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8369. abstract="false" native="false" synchronized="false"
  8370. static="false" final="false" visibility="public"
  8371. deprecated="not deprecated">
  8372. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8373. <exception name="IOException" type="java.io.IOException"/>
  8374. <doc>
  8375. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8376. @param f the file to open
  8377. @throws IOException IO failure]]>
  8378. </doc>
  8379. </method>
  8380. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8381. abstract="false" native="false" synchronized="false"
  8382. static="false" final="false" visibility="public"
  8383. deprecated="not deprecated">
  8384. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8385. <exception name="IOException" type="java.io.IOException"/>
  8386. <doc>
  8387. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8388. Files are overwritten by default.
  8389. @param f the file to create
  8390. @throws IOException IO failure]]>
  8391. </doc>
  8392. </method>
  8393. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8394. abstract="false" native="false" synchronized="false"
  8395. static="false" final="false" visibility="public"
  8396. deprecated="not deprecated">
  8397. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8398. <param name="overwrite" type="boolean"/>
  8399. <exception name="IOException" type="java.io.IOException"/>
  8400. <doc>
  8401. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8402. @param f the file to create
  8403. @param overwrite if a file with this name already exists, then if true,
  8404. the file will be overwritten, and if false an exception will be thrown.
  8405. @throws IOException IO failure]]>
  8406. </doc>
  8407. </method>
  8408. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8409. abstract="false" native="false" synchronized="false"
  8410. static="false" final="false" visibility="public"
  8411. deprecated="not deprecated">
  8412. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8413. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8414. <exception name="IOException" type="java.io.IOException"/>
  8415. <doc>
  8416. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8417. reporting.
  8418. Files are overwritten by default.
  8419. @param f the file to create
  8420. @param progress to report progress
  8421. @throws IOException IO failure]]>
  8422. </doc>
  8423. </method>
  8424. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8425. abstract="false" native="false" synchronized="false"
  8426. static="false" final="false" visibility="public"
  8427. deprecated="not deprecated">
  8428. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8429. <param name="replication" type="short"/>
  8430. <exception name="IOException" type="java.io.IOException"/>
  8431. <doc>
  8432. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8433. Files are overwritten by default.
  8434. @param f the file to create
  8435. @param replication the replication factor
  8436. @throws IOException IO failure]]>
  8437. </doc>
  8438. </method>
  8439. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8440. abstract="false" native="false" synchronized="false"
  8441. static="false" final="false" visibility="public"
  8442. deprecated="not deprecated">
  8443. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8444. <param name="replication" type="short"/>
  8445. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8446. <exception name="IOException" type="java.io.IOException"/>
  8447. <doc>
  8448. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8449. reporting.
  8450. Files are overwritten by default.
  8451. @param f the file to create
  8452. @param replication the replication factor
  8453. @param progress to report progress
  8454. @throws IOException IO failure]]>
  8455. </doc>
  8456. </method>
  8457. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8458. abstract="false" native="false" synchronized="false"
  8459. static="false" final="false" visibility="public"
  8460. deprecated="not deprecated">
  8461. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8462. <param name="overwrite" type="boolean"/>
  8463. <param name="bufferSize" type="int"/>
  8464. <exception name="IOException" type="java.io.IOException"/>
  8465. <doc>
  8466. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8467. @param f the file to create
  8468. @param overwrite if a path with this name already exists, then if true,
  8469. the file will be overwritten, and if false an error will be thrown.
  8470. @param bufferSize the size of the buffer to be used.
  8471. @throws IOException IO failure]]>
  8472. </doc>
  8473. </method>
  8474. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8475. abstract="false" native="false" synchronized="false"
  8476. static="false" final="false" visibility="public"
  8477. deprecated="not deprecated">
  8478. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8479. <param name="overwrite" type="boolean"/>
  8480. <param name="bufferSize" type="int"/>
  8481. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8482. <exception name="IOException" type="java.io.IOException"/>
  8483. <doc>
  8484. <![CDATA[Create an {@link FSDataOutputStream} at the indicated Path
  8485. with write-progress reporting.
  8486. The frequency of callbacks is implementation-specific; it may be "none".
  8487. @param f the path of the file to open
  8488. @param overwrite if a file with this name already exists, then if true,
  8489. the file will be overwritten, and if false an error will be thrown.
  8490. @param bufferSize the size of the buffer to be used.
  8491. @throws IOException IO failure]]>
  8492. </doc>
  8493. </method>
  8494. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8495. abstract="false" native="false" synchronized="false"
  8496. static="false" final="false" visibility="public"
  8497. deprecated="not deprecated">
  8498. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8499. <param name="overwrite" type="boolean"/>
  8500. <param name="bufferSize" type="int"/>
  8501. <param name="replication" type="short"/>
  8502. <param name="blockSize" type="long"/>
  8503. <exception name="IOException" type="java.io.IOException"/>
  8504. <doc>
  8505. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8506. @param f the file name to open
  8507. @param overwrite if a file with this name already exists, then if true,
  8508. the file will be overwritten, and if false an error will be thrown.
  8509. @param bufferSize the size of the buffer to be used.
  8510. @param replication required block replication for the file.
  8511. @throws IOException IO failure]]>
  8512. </doc>
  8513. </method>
  8514. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8515. abstract="false" native="false" synchronized="false"
  8516. static="false" final="false" visibility="public"
  8517. deprecated="not deprecated">
  8518. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8519. <param name="overwrite" type="boolean"/>
  8520. <param name="bufferSize" type="int"/>
  8521. <param name="replication" type="short"/>
  8522. <param name="blockSize" type="long"/>
  8523. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8524. <exception name="IOException" type="java.io.IOException"/>
  8525. <doc>
  8526. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8527. reporting.
  8528. @param f the file name to open
  8529. @param overwrite if a file with this name already exists, then if true,
  8530. the file will be overwritten, and if false an error will be thrown.
  8531. @param bufferSize the size of the buffer to be used.
  8532. @param replication required block replication for the file.
  8533. @throws IOException IO failure]]>
  8534. </doc>
  8535. </method>
  8536. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8537. abstract="true" native="false" synchronized="false"
  8538. static="false" final="false" visibility="public"
  8539. deprecated="not deprecated">
  8540. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8541. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8542. <param name="overwrite" type="boolean"/>
  8543. <param name="bufferSize" type="int"/>
  8544. <param name="replication" type="short"/>
  8545. <param name="blockSize" type="long"/>
  8546. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8547. <exception name="IOException" type="java.io.IOException"/>
  8548. <doc>
  8549. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8550. reporting.
  8551. @param f the file name to open
  8552. @param permission file permission
  8553. @param overwrite if a file with this name already exists, then if true,
  8554. the file will be overwritten, and if false an error will be thrown.
  8555. @param bufferSize the size of the buffer to be used.
  8556. @param replication required block replication for the file.
  8557. @param blockSize block size
  8558. @param progress the progress reporter
  8559. @throws IOException IO failure
  8560. @see #setPermission(Path, FsPermission)]]>
  8561. </doc>
  8562. </method>
  8563. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8564. abstract="false" native="false" synchronized="false"
  8565. static="false" final="false" visibility="public"
  8566. deprecated="not deprecated">
  8567. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8568. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8569. <param name="flags" type="java.util.EnumSet"/>
  8570. <param name="bufferSize" type="int"/>
  8571. <param name="replication" type="short"/>
  8572. <param name="blockSize" type="long"/>
  8573. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8574. <exception name="IOException" type="java.io.IOException"/>
  8575. <doc>
  8576. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8577. reporting.
  8578. @param f the file name to open
  8579. @param permission file permission
  8580. @param flags {@link CreateFlag}s to use for this stream.
  8581. @param bufferSize the size of the buffer to be used.
  8582. @param replication required block replication for the file.
  8583. @param blockSize block size
  8584. @param progress the progress reporter
  8585. @throws IOException IO failure
  8586. @see #setPermission(Path, FsPermission)]]>
  8587. </doc>
  8588. </method>
  8589. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8590. abstract="false" native="false" synchronized="false"
  8591. static="false" final="false" visibility="public"
  8592. deprecated="not deprecated">
  8593. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8594. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8595. <param name="flags" type="java.util.EnumSet"/>
  8596. <param name="bufferSize" type="int"/>
  8597. <param name="replication" type="short"/>
  8598. <param name="blockSize" type="long"/>
  8599. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8600. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  8601. <exception name="IOException" type="java.io.IOException"/>
  8602. <doc>
  8603. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  8604. checksum option.
  8605. @param f the file name to open
  8606. @param permission file permission
  8607. @param flags {@link CreateFlag}s to use for this stream.
  8608. @param bufferSize the size of the buffer to be used.
  8609. @param replication required block replication for the file.
  8610. @param blockSize block size
  8611. @param progress the progress reporter
  8612. @param checksumOpt checksum parameter. If null, the values
  8613. found in conf will be used.
  8614. @throws IOException IO failure
  8615. @see #setPermission(Path, FsPermission)]]>
  8616. </doc>
  8617. </method>
  8618. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  8619. abstract="false" native="false" synchronized="false"
  8620. static="false" final="false" visibility="protected"
  8621. deprecated="not deprecated">
  8622. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8623. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8624. <param name="flag" type="java.util.EnumSet"/>
  8625. <param name="bufferSize" type="int"/>
  8626. <param name="replication" type="short"/>
  8627. <param name="blockSize" type="long"/>
  8628. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8629. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  8630. <exception name="IOException" type="java.io.IOException"/>
  8631. <doc>
  8632. <![CDATA[This create has been added to support the FileContext that processes
  8633. the permission with umask before calling this method.
  8634. This a temporary method added to support the transition from FileSystem
  8635. to FileContext for user applications.
  8636. @throws IOException IO failure]]>
  8637. </doc>
  8638. </method>
  8639. <method name="primitiveMkdir" return="boolean"
  8640. abstract="false" native="false" synchronized="false"
  8641. static="false" final="false" visibility="protected"
  8642. deprecated="not deprecated">
  8643. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8644. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8645. <exception name="IOException" type="java.io.IOException"/>
  8646. <doc>
  8647. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  8648. It has been added to support the FileContext that processes the permission
  8649. with umask before calling this method.
  8650. This a temporary method added to support the transition from FileSystem
  8651. to FileContext for user applications.
  8652. @param f path
  8653. @param absolutePermission permissions
  8654. @return true if the directory was actually created.
  8655. @throws IOException IO failure
  8656. @see #mkdirs(Path, FsPermission)]]>
  8657. </doc>
  8658. </method>
  8659. <method name="primitiveMkdir"
  8660. abstract="false" native="false" synchronized="false"
  8661. static="false" final="false" visibility="protected"
  8662. deprecated="not deprecated">
  8663. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8664. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8665. <param name="createParent" type="boolean"/>
  8666. <exception name="IOException" type="java.io.IOException"/>
  8667. <doc>
  8668. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  8669. It has been added to support the FileContext that processes the permission
  8670. with umask before calling this method.
  8671. This a temporary method added to support the transition from FileSystem
  8672. to FileContext for user applications.]]>
  8673. </doc>
  8674. </method>
  8675. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8676. abstract="false" native="false" synchronized="false"
  8677. static="false" final="false" visibility="public"
  8678. deprecated="not deprecated">
  8679. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8680. <param name="overwrite" type="boolean"/>
  8681. <param name="bufferSize" type="int"/>
  8682. <param name="replication" type="short"/>
  8683. <param name="blockSize" type="long"/>
  8684. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8685. <exception name="IOException" type="java.io.IOException"/>
  8686. <doc>
  8687. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8688. reporting. Same as create(), except fails if parent directory doesn't
  8689. already exist.
  8690. @param f the file name to open
  8691. @param overwrite if a file with this name already exists, then if true,
  8692. the file will be overwritten, and if false an error will be thrown.
  8693. @param bufferSize the size of the buffer to be used.
  8694. @param replication required block replication for the file.
  8695. @param blockSize block size
  8696. @param progress the progress reporter
  8697. @throws IOException IO failure
  8698. @see #setPermission(Path, FsPermission)]]>
  8699. </doc>
  8700. </method>
  8701. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8702. abstract="false" native="false" synchronized="false"
  8703. static="false" final="false" visibility="public"
  8704. deprecated="not deprecated">
  8705. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8706. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8707. <param name="overwrite" type="boolean"/>
  8708. <param name="bufferSize" type="int"/>
  8709. <param name="replication" type="short"/>
  8710. <param name="blockSize" type="long"/>
  8711. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8712. <exception name="IOException" type="java.io.IOException"/>
  8713. <doc>
  8714. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8715. reporting. Same as create(), except fails if parent directory doesn't
  8716. already exist.
  8717. @param f the file name to open
  8718. @param permission file permission
  8719. @param overwrite if a file with this name already exists, then if true,
  8720. the file will be overwritten, and if false an error will be thrown.
  8721. @param bufferSize the size of the buffer to be used.
  8722. @param replication required block replication for the file.
  8723. @param blockSize block size
  8724. @param progress the progress reporter
  8725. @throws IOException IO failure
  8726. @see #setPermission(Path, FsPermission)]]>
  8727. </doc>
  8728. </method>
  8729. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8730. abstract="false" native="false" synchronized="false"
  8731. static="false" final="false" visibility="public"
  8732. deprecated="not deprecated">
  8733. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8734. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8735. <param name="flags" type="java.util.EnumSet"/>
  8736. <param name="bufferSize" type="int"/>
  8737. <param name="replication" type="short"/>
  8738. <param name="blockSize" type="long"/>
  8739. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8740. <exception name="IOException" type="java.io.IOException"/>
  8741. <doc>
  8742. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8743. reporting. Same as create(), except fails if parent directory doesn't
  8744. already exist.
  8745. @param f the file name to open
  8746. @param permission file permission
  8747. @param flags {@link CreateFlag}s to use for this stream.
  8748. @param bufferSize the size of the buffer to be used.
  8749. @param replication required block replication for the file.
  8750. @param blockSize block size
  8751. @param progress the progress reporter
  8752. @throws IOException IO failure
  8753. @see #setPermission(Path, FsPermission)]]>
  8754. </doc>
  8755. </method>
  8756. <method name="createNewFile" return="boolean"
  8757. abstract="false" native="false" synchronized="false"
  8758. static="false" final="false" visibility="public"
  8759. deprecated="not deprecated">
  8760. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8761. <exception name="IOException" type="java.io.IOException"/>
  8762. <doc>
  8763. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  8764. create fails, or if it already existed, return false.
  8765. <i>Important: the default implementation is not atomic</i>
  8766. @param f path to use for create
  8767. @throws IOException IO failure]]>
  8768. </doc>
  8769. </method>
  8770. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8771. abstract="false" native="false" synchronized="false"
  8772. static="false" final="false" visibility="public"
  8773. deprecated="not deprecated">
  8774. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8775. <exception name="IOException" type="java.io.IOException"/>
  8776. <doc>
  8777. <![CDATA[Append to an existing file (optional operation).
  8778. Same as
  8779. {@code append(f, getConf().getInt(IO_FILE_BUFFER_SIZE_KEY,
  8780. IO_FILE_BUFFER_SIZE_DEFAULT), null)}
  8781. @param f the existing file to be appended.
  8782. @throws IOException IO failure
  8783. @throws UnsupportedOperationException if the operation is unsupported
  8784. (default).]]>
  8785. </doc>
  8786. </method>
  8787. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8788. abstract="false" native="false" synchronized="false"
  8789. static="false" final="false" visibility="public"
  8790. deprecated="not deprecated">
  8791. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8792. <param name="bufferSize" type="int"/>
  8793. <exception name="IOException" type="java.io.IOException"/>
  8794. <doc>
  8795. <![CDATA[Append to an existing file (optional operation).
  8796. Same as append(f, bufferSize, null).
  8797. @param f the existing file to be appended.
  8798. @param bufferSize the size of the buffer to be used.
  8799. @throws IOException IO failure
  8800. @throws UnsupportedOperationException if the operation is unsupported
  8801. (default).]]>
  8802. </doc>
  8803. </method>
  8804. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8805. abstract="true" native="false" synchronized="false"
  8806. static="false" final="false" visibility="public"
  8807. deprecated="not deprecated">
  8808. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8809. <param name="bufferSize" type="int"/>
  8810. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8811. <exception name="IOException" type="java.io.IOException"/>
  8812. <doc>
  8813. <![CDATA[Append to an existing file (optional operation).
  8814. @param f the existing file to be appended.
  8815. @param bufferSize the size of the buffer to be used.
  8816. @param progress for reporting progress if it is not null.
  8817. @throws IOException IO failure
  8818. @throws UnsupportedOperationException if the operation is unsupported
  8819. (default).]]>
  8820. </doc>
  8821. </method>
  8822. <method name="concat"
  8823. abstract="false" native="false" synchronized="false"
  8824. static="false" final="false" visibility="public"
  8825. deprecated="not deprecated">
  8826. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  8827. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  8828. <exception name="IOException" type="java.io.IOException"/>
  8829. <doc>
  8830. <![CDATA[Concat existing files together.
  8831. @param trg the path to the target destination.
  8832. @param psrcs the paths to the sources to use for the concatenation.
  8833. @throws IOException IO failure
  8834. @throws UnsupportedOperationException if the operation is unsupported
  8835. (default).]]>
  8836. </doc>
  8837. </method>
  8838. <method name="getReplication" return="short"
  8839. abstract="false" native="false" synchronized="false"
  8840. static="false" final="false" visibility="public"
  8841. deprecated="Use {@link #getFileStatus(Path)} instead">
  8842. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8843. <exception name="IOException" type="java.io.IOException"/>
  8844. <doc>
  8845. <![CDATA[Get the replication factor.
  8846. @deprecated Use {@link #getFileStatus(Path)} instead
  8847. @param src file name
  8848. @return file replication
  8849. @throws FileNotFoundException if the path does not resolve.
  8850. @throws IOException an IO failure]]>
  8851. </doc>
  8852. </method>
  8853. <method name="setReplication" return="boolean"
  8854. abstract="false" native="false" synchronized="false"
  8855. static="false" final="false" visibility="public"
  8856. deprecated="not deprecated">
  8857. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8858. <param name="replication" type="short"/>
  8859. <exception name="IOException" type="java.io.IOException"/>
  8860. <doc>
  8861. <![CDATA[Set the replication for an existing file.
  8862. If a filesystem does not support replication, it will always
  8863. return true: the check for a file existing may be bypassed.
  8864. This is the default behavior.
  8865. @param src file name
  8866. @param replication new replication
  8867. @throws IOException
  8868. @return true if successful, or the feature in unsupported;
  8869. false if replication is supported but the file does not exist,
  8870. or is a directory]]>
  8871. </doc>
  8872. </method>
  8873. <method name="rename" return="boolean"
  8874. abstract="true" native="false" synchronized="false"
  8875. static="false" final="false" visibility="public"
  8876. deprecated="not deprecated">
  8877. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8878. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8879. <exception name="IOException" type="java.io.IOException"/>
  8880. <doc>
  8881. <![CDATA[Renames Path src to Path dst.
  8882. @param src path to be renamed
  8883. @param dst new path after rename
  8884. @throws IOException on failure
  8885. @return true if rename is successful]]>
  8886. </doc>
  8887. </method>
  8888. <method name="rename"
  8889. abstract="false" native="false" synchronized="false"
  8890. static="false" final="false" visibility="protected"
  8891. deprecated="not deprecated">
  8892. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8893. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8894. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  8895. <exception name="IOException" type="java.io.IOException"/>
  8896. <doc>
  8897. <![CDATA[Renames Path src to Path dst
  8898. <ul>
  8899. <li>Fails if src is a file and dst is a directory.</li>
  8900. <li>Fails if src is a directory and dst is a file.</li>
  8901. <li>Fails if the parent of dst does not exist or is a file.</li>
  8902. </ul>
  8903. <p>
  8904. If OVERWRITE option is not passed as an argument, rename fails
  8905. if the dst already exists.
  8906. <p>
  8907. If OVERWRITE option is passed as an argument, rename overwrites
  8908. the dst if it is a file or an empty directory. Rename fails if dst is
  8909. a non-empty directory.
  8910. <p>
  8911. Note that atomicity of rename is dependent on the file system
  8912. implementation. Please refer to the file system documentation for
  8913. details. This default implementation is non atomic.
  8914. <p>
  8915. This method is deprecated since it is a temporary method added to
  8916. support the transition from FileSystem to FileContext for user
  8917. applications.
  8918. @param src path to be renamed
  8919. @param dst new path after rename
  8920. @throws FileNotFoundException src path does not exist, or the parent
  8921. path of dst does not exist.
  8922. @throws FileAlreadyExistsException dest path exists and is a file
  8923. @throws ParentNotDirectoryException if the parent path of dest is not
  8924. a directory
  8925. @throws IOException on failure]]>
  8926. </doc>
  8927. </method>
  8928. <method name="truncate" return="boolean"
  8929. abstract="false" native="false" synchronized="false"
  8930. static="false" final="false" visibility="public"
  8931. deprecated="not deprecated">
  8932. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8933. <param name="newLength" type="long"/>
  8934. <exception name="IOException" type="java.io.IOException"/>
  8935. <doc>
  8936. <![CDATA[Truncate the file in the indicated path to the indicated size.
  8937. <ul>
  8938. <li>Fails if path is a directory.</li>
  8939. <li>Fails if path does not exist.</li>
  8940. <li>Fails if path is not closed.</li>
  8941. <li>Fails if new size is greater than current size.</li>
  8942. </ul>
  8943. @param f The path to the file to be truncated
  8944. @param newLength The size the file is to be truncated to
  8945. @return <code>true</code> if the file has been truncated to the desired
  8946. <code>newLength</code> and is immediately available to be reused for
  8947. write operations such as <code>append</code>, or
  8948. <code>false</code> if a background process of adjusting the length of
  8949. the last block has been started, and clients should wait for it to
  8950. complete before proceeding with further file updates.
  8951. @throws IOException IO failure
  8952. @throws UnsupportedOperationException if the operation is unsupported
  8953. (default).]]>
  8954. </doc>
  8955. </method>
  8956. <method name="delete" return="boolean"
  8957. abstract="false" native="false" synchronized="false"
  8958. static="false" final="false" visibility="public"
  8959. deprecated="Use {@link #delete(Path, boolean)} instead.">
  8960. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8961. <exception name="IOException" type="java.io.IOException"/>
  8962. <doc>
  8963. <![CDATA[Delete a file/directory.
  8964. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  8965. </doc>
  8966. </method>
  8967. <method name="delete" return="boolean"
  8968. abstract="true" native="false" synchronized="false"
  8969. static="false" final="false" visibility="public"
  8970. deprecated="not deprecated">
  8971. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8972. <param name="recursive" type="boolean"/>
  8973. <exception name="IOException" type="java.io.IOException"/>
  8974. <doc>
  8975. <![CDATA[Delete a file.
  8976. @param f the path to delete.
  8977. @param recursive if path is a directory and set to
  8978. true, the directory is deleted else throws an exception. In
  8979. case of a file the recursive can be set to either true or false.
  8980. @return true if delete is successful else false.
  8981. @throws IOException IO failure]]>
  8982. </doc>
  8983. </method>
  8984. <method name="deleteOnExit" return="boolean"
  8985. abstract="false" native="false" synchronized="false"
  8986. static="false" final="false" visibility="public"
  8987. deprecated="not deprecated">
  8988. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8989. <exception name="IOException" type="java.io.IOException"/>
  8990. <doc>
  8991. <![CDATA[Mark a path to be deleted when its FileSystem is closed.
  8992. When the JVM shuts down cleanly, all cached FileSystem objects will be
  8993. closed automatically #these the marked paths will be deleted as a result.
  8994. If a FileSystem instance is not cached, i.e. has been created with
  8995. {@link #createFileSystem(URI, Configuration)}, then the paths will
  8996. be deleted in when {@link #close()} is called on that instance.
  8997. The path must exist in the filesystem at the time of the method call;
  8998. it does not have to exist at the time of JVM shutdown.
  8999. Notes
  9000. <ol>
  9001. <li>Clean shutdown of the JVM cannot be guaranteed.</li>
  9002. <li>The time to shut down a FileSystem will depends on the number of
  9003. files to delete. For filesystems where the cost of checking
  9004. for the existence of a file/directory and the actual delete operation
  9005. (for example: object stores) is high, the time to shutdown the JVM can be
  9006. significantly extended by over-use of this feature.</li>
  9007. <li>Connectivity problems with a remote filesystem may delay shutdown
  9008. further, and may cause the files to not be deleted.</li>
  9009. </ol>
  9010. @param f the path to delete.
  9011. @return true if deleteOnExit is successful, otherwise false.
  9012. @throws IOException IO failure]]>
  9013. </doc>
  9014. </method>
  9015. <method name="cancelDeleteOnExit" return="boolean"
  9016. abstract="false" native="false" synchronized="false"
  9017. static="false" final="false" visibility="public"
  9018. deprecated="not deprecated">
  9019. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9020. <doc>
  9021. <![CDATA[Cancel the scheduled deletion of the path when the FileSystem is closed.
  9022. @param f the path to cancel deletion
  9023. @return true if the path was found in the delete-on-exit list.]]>
  9024. </doc>
  9025. </method>
  9026. <method name="processDeleteOnExit"
  9027. abstract="false" native="false" synchronized="false"
  9028. static="false" final="false" visibility="protected"
  9029. deprecated="not deprecated">
  9030. <doc>
  9031. <![CDATA[Delete all paths that were marked as delete-on-exit. This recursively
  9032. deletes all files and directories in the specified paths.
  9033. The time to process this operation is {@code O(paths)}, with the actual
  9034. time dependent on the time for existence and deletion operations to
  9035. complete, successfully or not.]]>
  9036. </doc>
  9037. </method>
  9038. <method name="exists" return="boolean"
  9039. abstract="false" native="false" synchronized="false"
  9040. static="false" final="false" visibility="public"
  9041. deprecated="not deprecated">
  9042. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9043. <exception name="IOException" type="java.io.IOException"/>
  9044. <doc>
  9045. <![CDATA[Check if a path exists.
  9046. @param f source path
  9047. @return true if the path exists
  9048. @throws IOException IO failure]]>
  9049. </doc>
  9050. </method>
  9051. <method name="isDirectory" return="boolean"
  9052. abstract="false" native="false" synchronized="false"
  9053. static="false" final="false" visibility="public"
  9054. deprecated="not deprecated">
  9055. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9056. <exception name="IOException" type="java.io.IOException"/>
  9057. <doc>
  9058. <![CDATA[True iff the named path is a directory.
  9059. Note: Avoid using this method. Instead reuse the FileStatus
  9060. returned by getFileStatus() or listStatus() methods.
  9061. @param f path to check
  9062. @throws IOException IO failure]]>
  9063. </doc>
  9064. </method>
  9065. <method name="isFile" return="boolean"
  9066. abstract="false" native="false" synchronized="false"
  9067. static="false" final="false" visibility="public"
  9068. deprecated="not deprecated">
  9069. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9070. <exception name="IOException" type="java.io.IOException"/>
  9071. <doc>
  9072. <![CDATA[True iff the named path is a regular file.
  9073. Note: Avoid using this method. Instead reuse the FileStatus
  9074. returned by {@link #getFileStatus(Path)} or listStatus() methods.
  9075. @param f path to check
  9076. @throws IOException IO failure]]>
  9077. </doc>
  9078. </method>
  9079. <method name="getLength" return="long"
  9080. abstract="false" native="false" synchronized="false"
  9081. static="false" final="false" visibility="public"
  9082. deprecated="Use {@link #getFileStatus(Path)} instead.">
  9083. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9084. <exception name="IOException" type="java.io.IOException"/>
  9085. <doc>
  9086. <![CDATA[The number of bytes in a file.
  9087. @return the number of bytes; 0 for a directory
  9088. @deprecated Use {@link #getFileStatus(Path)} instead.
  9089. @throws FileNotFoundException if the path does not resolve
  9090. @throws IOException IO failure]]>
  9091. </doc>
  9092. </method>
  9093. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  9094. abstract="false" native="false" synchronized="false"
  9095. static="false" final="false" visibility="public"
  9096. deprecated="not deprecated">
  9097. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9098. <exception name="IOException" type="java.io.IOException"/>
  9099. <doc>
  9100. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  9101. @param f path to use
  9102. @throws FileNotFoundException if the path does not resolve
  9103. @throws IOException IO failure]]>
  9104. </doc>
  9105. </method>
  9106. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  9107. abstract="false" native="false" synchronized="false"
  9108. static="false" final="false" visibility="public"
  9109. deprecated="not deprecated">
  9110. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9111. <exception name="IOException" type="java.io.IOException"/>
  9112. <doc>
  9113. <![CDATA[Return the {@link QuotaUsage} of a given {@link Path}.
  9114. @param f path to use
  9115. @return the quota usage
  9116. @throws IOException IO failure]]>
  9117. </doc>
  9118. </method>
  9119. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9120. abstract="true" native="false" synchronized="false"
  9121. static="false" final="false" visibility="public"
  9122. deprecated="not deprecated">
  9123. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9124. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9125. <exception name="IOException" type="java.io.IOException"/>
  9126. <doc>
  9127. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9128. a directory.
  9129. <p>
  9130. Does not guarantee to return the List of files/directories status in a
  9131. sorted order.
  9132. @param f given path
  9133. @return the statuses of the files/directories in the given patch
  9134. @throws FileNotFoundException when the path does not exist
  9135. @throws IOException see specific implementation]]>
  9136. </doc>
  9137. </method>
  9138. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  9139. abstract="false" native="false" synchronized="false"
  9140. static="false" final="false" visibility="public"
  9141. deprecated="not deprecated">
  9142. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9143. <exception name="IOException" type="java.io.IOException"/>
  9144. <doc>
  9145. <![CDATA[List corrupted file blocks.
  9146. @return an iterator over the corrupt files under the given path
  9147. (may contain duplicates if a file has more than one corrupt block)
  9148. @throws UnsupportedOperationException if the operation is unsupported
  9149. (default).
  9150. @throws IOException IO failure]]>
  9151. </doc>
  9152. </method>
  9153. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9154. abstract="false" native="false" synchronized="false"
  9155. static="false" final="false" visibility="public"
  9156. deprecated="not deprecated">
  9157. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9158. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9159. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9160. <exception name="IOException" type="java.io.IOException"/>
  9161. <doc>
  9162. <![CDATA[Filter files/directories in the given path using the user-supplied path
  9163. filter.
  9164. <p>
  9165. Does not guarantee to return the List of files/directories status in a
  9166. sorted order.
  9167. @param f
  9168. a path name
  9169. @param filter
  9170. the user-supplied path filter
  9171. @return an array of FileStatus objects for the files under the given path
  9172. after applying the filter
  9173. @throws FileNotFoundException when the path does not exist
  9174. @throws IOException see specific implementation]]>
  9175. </doc>
  9176. </method>
  9177. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9178. abstract="false" native="false" synchronized="false"
  9179. static="false" final="false" visibility="public"
  9180. deprecated="not deprecated">
  9181. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9182. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9183. <exception name="IOException" type="java.io.IOException"/>
  9184. <doc>
  9185. <![CDATA[Filter files/directories in the given list of paths using default
  9186. path filter.
  9187. <p>
  9188. Does not guarantee to return the List of files/directories status in a
  9189. sorted order.
  9190. @param files
  9191. a list of paths
  9192. @return a list of statuses for the files under the given paths after
  9193. applying the filter default Path filter
  9194. @throws FileNotFoundException when the path does not exist
  9195. @throws IOException see specific implementation]]>
  9196. </doc>
  9197. </method>
  9198. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9199. abstract="false" native="false" synchronized="false"
  9200. static="false" final="false" visibility="public"
  9201. deprecated="not deprecated">
  9202. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9203. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9204. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9205. <exception name="IOException" type="java.io.IOException"/>
  9206. <doc>
  9207. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  9208. path filter.
  9209. <p>
  9210. Does not guarantee to return the List of files/directories status in a
  9211. sorted order.
  9212. @param files
  9213. a list of paths
  9214. @param filter
  9215. the user-supplied path filter
  9216. @return a list of statuses for the files under the given paths after
  9217. applying the filter
  9218. @throws FileNotFoundException when the path does not exist
  9219. @throws IOException see specific implementation]]>
  9220. </doc>
  9221. </method>
  9222. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9223. abstract="false" native="false" synchronized="false"
  9224. static="false" final="false" visibility="public"
  9225. deprecated="not deprecated">
  9226. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9227. <exception name="IOException" type="java.io.IOException"/>
  9228. <doc>
  9229. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  9230. files. Results are sorted by their names.
  9231. <p>
  9232. A filename pattern is composed of <i>regular</i> characters and
  9233. <i>special pattern matching</i> characters, which are:
  9234. <dl>
  9235. <dd>
  9236. <dl>
  9237. <p>
  9238. <dt> <tt> ? </tt>
  9239. <dd> Matches any single character.
  9240. <p>
  9241. <dt> <tt> * </tt>
  9242. <dd> Matches zero or more characters.
  9243. <p>
  9244. <dt> <tt> [<i>abc</i>] </tt>
  9245. <dd> Matches a single character from character set
  9246. <tt>{<i>a,b,c</i>}</tt>.
  9247. <p>
  9248. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  9249. <dd> Matches a single character from the character range
  9250. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  9251. lexicographically less than or equal to character <tt><i>b</i></tt>.
  9252. <p>
  9253. <dt> <tt> [^<i>a</i>] </tt>
  9254. <dd> Matches a single character that is not from character set or range
  9255. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  9256. immediately to the right of the opening bracket.
  9257. <p>
  9258. <dt> <tt> \<i>c</i> </tt>
  9259. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  9260. <p>
  9261. <dt> <tt> {ab,cd} </tt>
  9262. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  9263. <p>
  9264. <dt> <tt> {ab,c{de,fh}} </tt>
  9265. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  9266. </dl>
  9267. </dd>
  9268. </dl>
  9269. @param pathPattern a regular expression specifying a pth pattern
  9270. @return an array of paths that match the path pattern
  9271. @throws IOException IO failure]]>
  9272. </doc>
  9273. </method>
  9274. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9275. abstract="false" native="false" synchronized="false"
  9276. static="false" final="false" visibility="public"
  9277. deprecated="not deprecated">
  9278. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9279. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9280. <exception name="IOException" type="java.io.IOException"/>
  9281. <doc>
  9282. <![CDATA[Return an array of {@link FileStatus} objects whose path names match
  9283. {@code pathPattern}
  9284. and is accepted by the user-supplied path filter. Results are sorted by
  9285. their path names.
  9286. Return
  9287. @param pathPattern
  9288. a regular expression specifying the path pattern
  9289. @param filter
  9290. a user-supplied path filter
  9291. @return an array of FileStatus objects.
  9292. null if pathPattern has no glob and the path does not exist.
  9293. an empty array if pathPattern has a glob and no path matches it.
  9294. @throws IOException if any I/O error occurs when fetching file status]]>
  9295. </doc>
  9296. </method>
  9297. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9298. abstract="false" native="false" synchronized="false"
  9299. static="false" final="false" visibility="public"
  9300. deprecated="not deprecated">
  9301. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9302. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9303. <exception name="IOException" type="java.io.IOException"/>
  9304. <doc>
  9305. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9306. a directory.
  9307. Return the file's status and block locations If the path is a file.
  9308. If a returned status is a file, it contains the file's block locations.
  9309. @param f is the path
  9310. @return an iterator that traverses statuses of the files/directories
  9311. in the given path
  9312. @throws FileNotFoundException If <code>f</code> does not exist
  9313. @throws IOException If an I/O error occurred]]>
  9314. </doc>
  9315. </method>
  9316. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9317. abstract="false" native="false" synchronized="false"
  9318. static="false" final="false" visibility="protected"
  9319. deprecated="not deprecated">
  9320. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9321. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9322. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9323. <exception name="IOException" type="java.io.IOException"/>
  9324. <doc>
  9325. <![CDATA[List a directory.
  9326. The returned results include its block location if it is a file
  9327. The results are filtered by the given path filter
  9328. @param f a path
  9329. @param filter a path filter
  9330. @return an iterator that traverses statuses of the files/directories
  9331. in the given path
  9332. @throws FileNotFoundException if <code>f</code> does not exist
  9333. @throws IOException if any I/O error occurred]]>
  9334. </doc>
  9335. </method>
  9336. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  9337. abstract="false" native="false" synchronized="false"
  9338. static="false" final="false" visibility="public"
  9339. deprecated="not deprecated">
  9340. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9341. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9342. <exception name="IOException" type="java.io.IOException"/>
  9343. <doc>
  9344. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  9345. while consuming the entries. Each FileSystem implementation should
  9346. override this method and provide a more efficient implementation, if
  9347. possible.
  9348. Does not guarantee to return the iterator that traverses statuses
  9349. of the files in a sorted order.
  9350. @param p target path
  9351. @return remote iterator
  9352. @throws FileNotFoundException if <code>p</code> does not exist
  9353. @throws IOException if any I/O error occurred]]>
  9354. </doc>
  9355. </method>
  9356. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  9357. abstract="false" native="false" synchronized="false"
  9358. static="false" final="false" visibility="public"
  9359. deprecated="not deprecated">
  9360. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9361. <param name="recursive" type="boolean"/>
  9362. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9363. <exception name="IOException" type="java.io.IOException"/>
  9364. <doc>
  9365. <![CDATA[List the statuses and block locations of the files in the given path.
  9366. Does not guarantee to return the iterator that traverses statuses
  9367. of the files in a sorted order.
  9368. <pre>
  9369. If the path is a directory,
  9370. if recursive is false, returns files in the directory;
  9371. if recursive is true, return files in the subtree rooted at the path.
  9372. If the path is a file, return the file's status and block locations.
  9373. </pre>
  9374. @param f is the path
  9375. @param recursive if the subdirectories need to be traversed recursively
  9376. @return an iterator that traverses statuses of the files
  9377. @throws FileNotFoundException when the path does not exist;
  9378. @throws IOException see specific implementation]]>
  9379. </doc>
  9380. </method>
  9381. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  9382. abstract="false" native="false" synchronized="false"
  9383. static="false" final="false" visibility="public"
  9384. deprecated="not deprecated">
  9385. <doc>
  9386. <![CDATA[Return the current user's home directory in this FileSystem.
  9387. The default implementation returns {@code "/user/$USER/"}.]]>
  9388. </doc>
  9389. </method>
  9390. <method name="setWorkingDirectory"
  9391. abstract="true" native="false" synchronized="false"
  9392. static="false" final="false" visibility="public"
  9393. deprecated="not deprecated">
  9394. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  9395. <doc>
  9396. <![CDATA[Set the current working directory for the given FileSystem. All relative
  9397. paths will be resolved relative to it.
  9398. @param new_dir Path of new working directory]]>
  9399. </doc>
  9400. </method>
  9401. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9402. abstract="true" native="false" synchronized="false"
  9403. static="false" final="false" visibility="public"
  9404. deprecated="not deprecated">
  9405. <doc>
  9406. <![CDATA[Get the current working directory for the given FileSystem
  9407. @return the directory pathname]]>
  9408. </doc>
  9409. </method>
  9410. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9411. abstract="false" native="false" synchronized="false"
  9412. static="false" final="false" visibility="protected"
  9413. deprecated="not deprecated">
  9414. <doc>
  9415. <![CDATA[Note: with the new FileContext class, getWorkingDirectory()
  9416. will be removed.
  9417. The working directory is implemented in FileContext.
  9418. Some FileSystems like LocalFileSystem have an initial workingDir
  9419. that we use as the starting workingDir. For other file systems
  9420. like HDFS there is no built in notion of an initial workingDir.
  9421. @return if there is built in notion of workingDir then it
  9422. is returned; else a null is returned.]]>
  9423. </doc>
  9424. </method>
  9425. <method name="mkdirs" return="boolean"
  9426. abstract="false" native="false" synchronized="false"
  9427. static="false" final="false" visibility="public"
  9428. deprecated="not deprecated">
  9429. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9430. <exception name="IOException" type="java.io.IOException"/>
  9431. <doc>
  9432. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.
  9433. @param f path
  9434. @return true if the directory was created
  9435. @throws IOException IO failure]]>
  9436. </doc>
  9437. </method>
  9438. <method name="mkdirs" return="boolean"
  9439. abstract="true" native="false" synchronized="false"
  9440. static="false" final="false" visibility="public"
  9441. deprecated="not deprecated">
  9442. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9443. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9444. <exception name="IOException" type="java.io.IOException"/>
  9445. <doc>
  9446. <![CDATA[Make the given file and all non-existent parents into
  9447. directories. Has roughly the semantics of Unix @{code mkdir -p}.
  9448. Existence of the directory hierarchy is not an error.
  9449. @param f path to create
  9450. @param permission to apply to f
  9451. @throws IOException IO failure]]>
  9452. </doc>
  9453. </method>
  9454. <method name="copyFromLocalFile"
  9455. abstract="false" native="false" synchronized="false"
  9456. static="false" final="false" visibility="public"
  9457. deprecated="not deprecated">
  9458. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9459. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9460. <exception name="IOException" type="java.io.IOException"/>
  9461. <doc>
  9462. <![CDATA[The src file is on the local disk. Add it to filesystem at
  9463. the given dst name and the source is kept intact afterwards
  9464. @param src path
  9465. @param dst path
  9466. @throws IOException IO failure]]>
  9467. </doc>
  9468. </method>
  9469. <method name="moveFromLocalFile"
  9470. abstract="false" native="false" synchronized="false"
  9471. static="false" final="false" visibility="public"
  9472. deprecated="not deprecated">
  9473. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9474. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9475. <exception name="IOException" type="java.io.IOException"/>
  9476. <doc>
  9477. <![CDATA[The src files is on the local disk. Add it to filesystem at
  9478. the given dst name, removing the source afterwards.
  9479. @param srcs source paths
  9480. @param dst path
  9481. @throws IOException IO failure]]>
  9482. </doc>
  9483. </method>
  9484. <method name="moveFromLocalFile"
  9485. abstract="false" native="false" synchronized="false"
  9486. static="false" final="false" visibility="public"
  9487. deprecated="not deprecated">
  9488. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9489. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9490. <exception name="IOException" type="java.io.IOException"/>
  9491. <doc>
  9492. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9493. the given dst name, removing the source afterwards.
  9494. @param src local path
  9495. @param dst path
  9496. @throws IOException IO failure]]>
  9497. </doc>
  9498. </method>
  9499. <method name="copyFromLocalFile"
  9500. abstract="false" native="false" synchronized="false"
  9501. static="false" final="false" visibility="public"
  9502. deprecated="not deprecated">
  9503. <param name="delSrc" type="boolean"/>
  9504. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9505. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9506. <exception name="IOException" type="java.io.IOException"/>
  9507. <doc>
  9508. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9509. the given dst name.
  9510. delSrc indicates if the source should be removed
  9511. @param delSrc whether to delete the src
  9512. @param src path
  9513. @param dst path]]>
  9514. </doc>
  9515. </method>
  9516. <method name="copyFromLocalFile"
  9517. abstract="false" native="false" synchronized="false"
  9518. static="false" final="false" visibility="public"
  9519. deprecated="not deprecated">
  9520. <param name="delSrc" type="boolean"/>
  9521. <param name="overwrite" type="boolean"/>
  9522. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9523. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9524. <exception name="IOException" type="java.io.IOException"/>
  9525. <doc>
  9526. <![CDATA[The src files are on the local disk. Add it to the filesystem at
  9527. the given dst name.
  9528. delSrc indicates if the source should be removed
  9529. @param delSrc whether to delete the src
  9530. @param overwrite whether to overwrite an existing file
  9531. @param srcs array of paths which are source
  9532. @param dst path
  9533. @throws IOException IO failure]]>
  9534. </doc>
  9535. </method>
  9536. <method name="copyFromLocalFile"
  9537. abstract="false" native="false" synchronized="false"
  9538. static="false" final="false" visibility="public"
  9539. deprecated="not deprecated">
  9540. <param name="delSrc" type="boolean"/>
  9541. <param name="overwrite" type="boolean"/>
  9542. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9543. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9544. <exception name="IOException" type="java.io.IOException"/>
  9545. <doc>
  9546. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9547. the given dst name.
  9548. delSrc indicates if the source should be removed
  9549. @param delSrc whether to delete the src
  9550. @param overwrite whether to overwrite an existing file
  9551. @param src path
  9552. @param dst path
  9553. @throws IOException IO failure]]>
  9554. </doc>
  9555. </method>
  9556. <method name="copyToLocalFile"
  9557. abstract="false" native="false" synchronized="false"
  9558. static="false" final="false" visibility="public"
  9559. deprecated="not deprecated">
  9560. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9561. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9562. <exception name="IOException" type="java.io.IOException"/>
  9563. <doc>
  9564. <![CDATA[Copy it a file from the remote filesystem to the local one.
  9565. @param src path src file in the remote filesystem
  9566. @param dst path local destination
  9567. @throws IOException IO failure]]>
  9568. </doc>
  9569. </method>
  9570. <method name="moveToLocalFile"
  9571. abstract="false" native="false" synchronized="false"
  9572. static="false" final="false" visibility="public"
  9573. deprecated="not deprecated">
  9574. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9575. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9576. <exception name="IOException" type="java.io.IOException"/>
  9577. <doc>
  9578. <![CDATA[Copy a file to the local filesystem, then delete it from the
  9579. remote filesystem (if successfully copied).
  9580. @param src path src file in the remote filesystem
  9581. @param dst path local destination
  9582. @throws IOException IO failure]]>
  9583. </doc>
  9584. </method>
  9585. <method name="copyToLocalFile"
  9586. abstract="false" native="false" synchronized="false"
  9587. static="false" final="false" visibility="public"
  9588. deprecated="not deprecated">
  9589. <param name="delSrc" type="boolean"/>
  9590. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9591. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9592. <exception name="IOException" type="java.io.IOException"/>
  9593. <doc>
  9594. <![CDATA[Copy it a file from a remote filesystem to the local one.
  9595. delSrc indicates if the src will be removed or not.
  9596. @param delSrc whether to delete the src
  9597. @param src path src file in the remote filesystem
  9598. @param dst path local destination
  9599. @throws IOException IO failure]]>
  9600. </doc>
  9601. </method>
  9602. <method name="copyToLocalFile"
  9603. abstract="false" native="false" synchronized="false"
  9604. static="false" final="false" visibility="public"
  9605. deprecated="not deprecated">
  9606. <param name="delSrc" type="boolean"/>
  9607. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9608. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9609. <param name="useRawLocalFileSystem" type="boolean"/>
  9610. <exception name="IOException" type="java.io.IOException"/>
  9611. <doc>
  9612. <![CDATA[The src file is under this filesystem, and the dst is on the local disk.
  9613. Copy it from the remote filesystem to the local dst name.
  9614. delSrc indicates if the src will be removed
  9615. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  9616. as the local file system or not. RawLocalFileSystem is non checksumming,
  9617. So, It will not create any crc files at local.
  9618. @param delSrc
  9619. whether to delete the src
  9620. @param src
  9621. path
  9622. @param dst
  9623. path
  9624. @param useRawLocalFileSystem
  9625. whether to use RawLocalFileSystem as local file system or not.
  9626. @throws IOException for any IO error]]>
  9627. </doc>
  9628. </method>
  9629. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  9630. abstract="false" native="false" synchronized="false"
  9631. static="false" final="false" visibility="public"
  9632. deprecated="not deprecated">
  9633. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9634. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9635. <exception name="IOException" type="java.io.IOException"/>
  9636. <doc>
  9637. <![CDATA[Returns a local file that the user can write output to. The caller
  9638. provides both the eventual target name in this FileSystem
  9639. and the local working file path.
  9640. If this FileSystem is local, we write directly into the target. If
  9641. the FileSystem is not local, we write into the tmp local area.
  9642. @param fsOutputFile path of output file
  9643. @param tmpLocalFile path of local tmp file
  9644. @throws IOException IO failure]]>
  9645. </doc>
  9646. </method>
  9647. <method name="completeLocalOutput"
  9648. abstract="false" native="false" synchronized="false"
  9649. static="false" final="false" visibility="public"
  9650. deprecated="not deprecated">
  9651. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9652. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9653. <exception name="IOException" type="java.io.IOException"/>
  9654. <doc>
  9655. <![CDATA[Called when we're all done writing to the target.
  9656. A local FS will do nothing, because we've written to exactly the
  9657. right place.
  9658. A remote FS will copy the contents of tmpLocalFile to the correct target at
  9659. fsOutputFile.
  9660. @param fsOutputFile path of output file
  9661. @param tmpLocalFile path to local tmp file
  9662. @throws IOException IO failure]]>
  9663. </doc>
  9664. </method>
  9665. <method name="close"
  9666. abstract="false" native="false" synchronized="false"
  9667. static="false" final="false" visibility="public"
  9668. deprecated="not deprecated">
  9669. <exception name="IOException" type="java.io.IOException"/>
  9670. <doc>
  9671. <![CDATA[Close this FileSystem instance.
  9672. Will release any held locks, delete all files queued for deletion
  9673. through calls to {@link #deleteOnExit(Path)}, and remove this FS instance
  9674. from the cache, if cached.
  9675. After this operation, the outcome of any method call on this FileSystem
  9676. instance, or any input/output stream created by it is <i>undefined</i>.
  9677. @throws IOException IO failure]]>
  9678. </doc>
  9679. </method>
  9680. <method name="getUsed" return="long"
  9681. abstract="false" native="false" synchronized="false"
  9682. static="false" final="false" visibility="public"
  9683. deprecated="not deprecated">
  9684. <exception name="IOException" type="java.io.IOException"/>
  9685. <doc>
  9686. <![CDATA[Return the total size of all files in the filesystem.
  9687. @throws IOException IO failure]]>
  9688. </doc>
  9689. </method>
  9690. <method name="getUsed" return="long"
  9691. abstract="false" native="false" synchronized="false"
  9692. static="false" final="false" visibility="public"
  9693. deprecated="not deprecated">
  9694. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9695. <exception name="IOException" type="java.io.IOException"/>
  9696. <doc>
  9697. <![CDATA[Return the total size of all files from a specified path.
  9698. @throws IOException IO failure]]>
  9699. </doc>
  9700. </method>
  9701. <method name="getBlockSize" return="long"
  9702. abstract="false" native="false" synchronized="false"
  9703. static="false" final="false" visibility="public"
  9704. deprecated="Use {@link #getFileStatus(Path)} instead">
  9705. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9706. <exception name="IOException" type="java.io.IOException"/>
  9707. <doc>
  9708. <![CDATA[Get the block size for a particular file.
  9709. @param f the filename
  9710. @return the number of bytes in a block
  9711. @deprecated Use {@link #getFileStatus(Path)} instead
  9712. @throws FileNotFoundException if the path is not present
  9713. @throws IOException IO failure]]>
  9714. </doc>
  9715. </method>
  9716. <method name="getDefaultBlockSize" return="long"
  9717. abstract="false" native="false" synchronized="false"
  9718. static="false" final="false" visibility="public"
  9719. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  9720. <doc>
  9721. <![CDATA[Return the number of bytes that large input files should be optimally
  9722. be split into to minimize I/O time.
  9723. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  9724. </doc>
  9725. </method>
  9726. <method name="getDefaultBlockSize" return="long"
  9727. abstract="false" native="false" synchronized="false"
  9728. static="false" final="false" visibility="public"
  9729. deprecated="not deprecated">
  9730. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9731. <doc>
  9732. <![CDATA[Return the number of bytes that large input files should be optimally
  9733. be split into to minimize I/O time. The given path will be used to
  9734. locate the actual filesystem. The full path does not have to exist.
  9735. @param f path of file
  9736. @return the default block size for the path's filesystem]]>
  9737. </doc>
  9738. </method>
  9739. <method name="getDefaultReplication" return="short"
  9740. abstract="false" native="false" synchronized="false"
  9741. static="false" final="false" visibility="public"
  9742. deprecated="use {@link #getDefaultReplication(Path)} instead">
  9743. <doc>
  9744. <![CDATA[Get the default replication.
  9745. @return the replication; the default value is "1".
  9746. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  9747. </doc>
  9748. </method>
  9749. <method name="getDefaultReplication" return="short"
  9750. abstract="false" native="false" synchronized="false"
  9751. static="false" final="false" visibility="public"
  9752. deprecated="not deprecated">
  9753. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9754. <doc>
  9755. <![CDATA[Get the default replication for a path.
  9756. The given path will be used to locate the actual FileSystem to query.
  9757. The full path does not have to exist.
  9758. @param path of the file
  9759. @return default replication for the path's filesystem]]>
  9760. </doc>
  9761. </method>
  9762. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9763. abstract="true" native="false" synchronized="false"
  9764. static="false" final="false" visibility="public"
  9765. deprecated="not deprecated">
  9766. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9767. <exception name="IOException" type="java.io.IOException"/>
  9768. <doc>
  9769. <![CDATA[Return a file status object that represents the path.
  9770. @param f The path we want information from
  9771. @return a FileStatus object
  9772. @throws FileNotFoundException when the path does not exist
  9773. @throws IOException see specific implementation]]>
  9774. </doc>
  9775. </method>
  9776. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  9777. abstract="false" native="false" synchronized="false"
  9778. static="false" final="false" visibility="protected"
  9779. deprecated="not deprecated">
  9780. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9781. <doc>
  9782. <![CDATA[See {@link FileContext#fixRelativePart}.]]>
  9783. </doc>
  9784. </method>
  9785. <method name="createSymlink"
  9786. abstract="false" native="false" synchronized="false"
  9787. static="false" final="false" visibility="public"
  9788. deprecated="not deprecated">
  9789. <param name="target" type="org.apache.hadoop.fs.Path"/>
  9790. <param name="link" type="org.apache.hadoop.fs.Path"/>
  9791. <param name="createParent" type="boolean"/>
  9792. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9793. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  9794. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9795. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  9796. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9797. <exception name="IOException" type="java.io.IOException"/>
  9798. <doc>
  9799. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}.]]>
  9800. </doc>
  9801. </method>
  9802. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  9803. abstract="false" native="false" synchronized="false"
  9804. static="false" final="false" visibility="public"
  9805. deprecated="not deprecated">
  9806. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9807. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9808. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9809. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9810. <exception name="IOException" type="java.io.IOException"/>
  9811. <doc>
  9812. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}.
  9813. @throws FileNotFoundException when the path does not exist
  9814. @throws IOException see specific implementation]]>
  9815. </doc>
  9816. </method>
  9817. <method name="supportsSymlinks" return="boolean"
  9818. abstract="false" native="false" synchronized="false"
  9819. static="false" final="false" visibility="public"
  9820. deprecated="not deprecated">
  9821. <doc>
  9822. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}.]]>
  9823. </doc>
  9824. </method>
  9825. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  9826. abstract="false" native="false" synchronized="false"
  9827. static="false" final="false" visibility="public"
  9828. deprecated="not deprecated">
  9829. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9830. <exception name="IOException" type="java.io.IOException"/>
  9831. <doc>
  9832. <![CDATA[See {@link FileContext#getLinkTarget(Path)}.
  9833. @throws UnsupportedOperationException if the operation is unsupported
  9834. (default outcome).]]>
  9835. </doc>
  9836. </method>
  9837. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  9838. abstract="false" native="false" synchronized="false"
  9839. static="false" final="false" visibility="protected"
  9840. deprecated="not deprecated">
  9841. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9842. <exception name="IOException" type="java.io.IOException"/>
  9843. <doc>
  9844. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}.
  9845. @throws UnsupportedOperationException if the operation is unsupported
  9846. (default outcome).]]>
  9847. </doc>
  9848. </method>
  9849. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  9850. abstract="false" native="false" synchronized="false"
  9851. static="false" final="false" visibility="public"
  9852. deprecated="not deprecated">
  9853. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9854. <exception name="IOException" type="java.io.IOException"/>
  9855. <doc>
  9856. <![CDATA[Get the checksum of a file, if the FS supports checksums.
  9857. @param f The file path
  9858. @return The file checksum. The default return value is null,
  9859. which indicates that no checksum algorithm is implemented
  9860. in the corresponding FileSystem.
  9861. @throws IOException IO failure]]>
  9862. </doc>
  9863. </method>
  9864. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  9865. abstract="false" native="false" synchronized="false"
  9866. static="false" final="false" visibility="public"
  9867. deprecated="not deprecated">
  9868. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9869. <param name="length" type="long"/>
  9870. <exception name="IOException" type="java.io.IOException"/>
  9871. <doc>
  9872. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  9873. specific length.
  9874. @param f The file path
  9875. @param length The length of the file range for checksum calculation
  9876. @return The file checksum or null if checksums are not supported.
  9877. @throws IOException IO failure]]>
  9878. </doc>
  9879. </method>
  9880. <method name="setVerifyChecksum"
  9881. abstract="false" native="false" synchronized="false"
  9882. static="false" final="false" visibility="public"
  9883. deprecated="not deprecated">
  9884. <param name="verifyChecksum" type="boolean"/>
  9885. <doc>
  9886. <![CDATA[Set the verify checksum flag. This is only applicable if the
  9887. corresponding filesystem supports checksums. By default doesn't do anything.
  9888. @param verifyChecksum Verify checksum flag]]>
  9889. </doc>
  9890. </method>
  9891. <method name="setWriteChecksum"
  9892. abstract="false" native="false" synchronized="false"
  9893. static="false" final="false" visibility="public"
  9894. deprecated="not deprecated">
  9895. <param name="writeChecksum" type="boolean"/>
  9896. <doc>
  9897. <![CDATA[Set the write checksum flag. This is only applicable if the
  9898. corresponding filesystem supports checksums. By default doesn't do anything.
  9899. @param writeChecksum Write checksum flag]]>
  9900. </doc>
  9901. </method>
  9902. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  9903. abstract="false" native="false" synchronized="false"
  9904. static="false" final="false" visibility="public"
  9905. deprecated="not deprecated">
  9906. <exception name="IOException" type="java.io.IOException"/>
  9907. <doc>
  9908. <![CDATA[Returns a status object describing the use and capacity of the
  9909. filesystem. If the filesystem has multiple partitions, the
  9910. use and capacity of the root partition is reflected.
  9911. @return a FsStatus object
  9912. @throws IOException
  9913. see specific implementation]]>
  9914. </doc>
  9915. </method>
  9916. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  9917. abstract="false" native="false" synchronized="false"
  9918. static="false" final="false" visibility="public"
  9919. deprecated="not deprecated">
  9920. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9921. <exception name="IOException" type="java.io.IOException"/>
  9922. <doc>
  9923. <![CDATA[Returns a status object describing the use and capacity of the
  9924. filesystem. If the filesystem has multiple partitions, the
  9925. use and capacity of the partition pointed to by the specified
  9926. path is reflected.
  9927. @param p Path for which status should be obtained. null means
  9928. the default partition.
  9929. @return a FsStatus object
  9930. @throws IOException
  9931. see specific implementation]]>
  9932. </doc>
  9933. </method>
  9934. <method name="setPermission"
  9935. abstract="false" native="false" synchronized="false"
  9936. static="false" final="false" visibility="public"
  9937. deprecated="not deprecated">
  9938. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9939. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9940. <exception name="IOException" type="java.io.IOException"/>
  9941. <doc>
  9942. <![CDATA[Set permission of a path.
  9943. @param p The path
  9944. @param permission permission
  9945. @throws IOException IO failure]]>
  9946. </doc>
  9947. </method>
  9948. <method name="setOwner"
  9949. abstract="false" native="false" synchronized="false"
  9950. static="false" final="false" visibility="public"
  9951. deprecated="not deprecated">
  9952. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9953. <param name="username" type="java.lang.String"/>
  9954. <param name="groupname" type="java.lang.String"/>
  9955. <exception name="IOException" type="java.io.IOException"/>
  9956. <doc>
  9957. <![CDATA[Set owner of a path (i.e. a file or a directory).
  9958. The parameters username and groupname cannot both be null.
  9959. @param p The path
  9960. @param username If it is null, the original username remains unchanged.
  9961. @param groupname If it is null, the original groupname remains unchanged.
  9962. @throws IOException IO failure]]>
  9963. </doc>
  9964. </method>
  9965. <method name="setTimes"
  9966. abstract="false" native="false" synchronized="false"
  9967. static="false" final="false" visibility="public"
  9968. deprecated="not deprecated">
  9969. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9970. <param name="mtime" type="long"/>
  9971. <param name="atime" type="long"/>
  9972. <exception name="IOException" type="java.io.IOException"/>
  9973. <doc>
  9974. <![CDATA[Set access time of a file.
  9975. @param p The path
  9976. @param mtime Set the modification time of this file.
  9977. The number of milliseconds since Jan 1, 1970.
  9978. A value of -1 means that this call should not set modification time.
  9979. @param atime Set the access time of this file.
  9980. The number of milliseconds since Jan 1, 1970.
  9981. A value of -1 means that this call should not set access time.
  9982. @throws IOException IO failure]]>
  9983. </doc>
  9984. </method>
  9985. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  9986. abstract="false" native="false" synchronized="false"
  9987. static="false" final="true" visibility="public"
  9988. deprecated="not deprecated">
  9989. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9990. <exception name="IOException" type="java.io.IOException"/>
  9991. <doc>
  9992. <![CDATA[Create a snapshot with a default name.
  9993. @param path The directory where snapshots will be taken.
  9994. @return the snapshot path.
  9995. @throws IOException IO failure
  9996. @throws UnsupportedOperationException if the operation is unsupported]]>
  9997. </doc>
  9998. </method>
  9999. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10000. abstract="false" native="false" synchronized="false"
  10001. static="false" final="false" visibility="public"
  10002. deprecated="not deprecated">
  10003. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10004. <param name="snapshotName" type="java.lang.String"/>
  10005. <exception name="IOException" type="java.io.IOException"/>
  10006. <doc>
  10007. <![CDATA[Create a snapshot.
  10008. @param path The directory where snapshots will be taken.
  10009. @param snapshotName The name of the snapshot
  10010. @return the snapshot path.
  10011. @throws IOException IO failure
  10012. @throws UnsupportedOperationException if the operation is unsupported]]>
  10013. </doc>
  10014. </method>
  10015. <method name="renameSnapshot"
  10016. abstract="false" native="false" synchronized="false"
  10017. static="false" final="false" visibility="public"
  10018. deprecated="not deprecated">
  10019. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10020. <param name="snapshotOldName" type="java.lang.String"/>
  10021. <param name="snapshotNewName" type="java.lang.String"/>
  10022. <exception name="IOException" type="java.io.IOException"/>
  10023. <doc>
  10024. <![CDATA[Rename a snapshot.
  10025. @param path The directory path where the snapshot was taken
  10026. @param snapshotOldName Old name of the snapshot
  10027. @param snapshotNewName New name of the snapshot
  10028. @throws IOException IO failure
  10029. @throws UnsupportedOperationException if the operation is unsupported
  10030. (default outcome).]]>
  10031. </doc>
  10032. </method>
  10033. <method name="deleteSnapshot"
  10034. abstract="false" native="false" synchronized="false"
  10035. static="false" final="false" visibility="public"
  10036. deprecated="not deprecated">
  10037. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10038. <param name="snapshotName" type="java.lang.String"/>
  10039. <exception name="IOException" type="java.io.IOException"/>
  10040. <doc>
  10041. <![CDATA[Delete a snapshot of a directory.
  10042. @param path The directory that the to-be-deleted snapshot belongs to
  10043. @param snapshotName The name of the snapshot
  10044. @throws IOException IO failure
  10045. @throws UnsupportedOperationException if the operation is unsupported
  10046. (default outcome).]]>
  10047. </doc>
  10048. </method>
  10049. <method name="modifyAclEntries"
  10050. abstract="false" native="false" synchronized="false"
  10051. static="false" final="false" visibility="public"
  10052. deprecated="not deprecated">
  10053. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10054. <param name="aclSpec" type="java.util.List"/>
  10055. <exception name="IOException" type="java.io.IOException"/>
  10056. <doc>
  10057. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  10058. entries or modify the permissions on existing ACL entries. All existing
  10059. ACL entries that are not specified in this call are retained without
  10060. changes. (Modifications are merged into the current ACL.)
  10061. @param path Path to modify
  10062. @param aclSpec List<AclEntry> describing modifications
  10063. @throws IOException if an ACL could not be modified
  10064. @throws UnsupportedOperationException if the operation is unsupported
  10065. (default outcome).]]>
  10066. </doc>
  10067. </method>
  10068. <method name="removeAclEntries"
  10069. abstract="false" native="false" synchronized="false"
  10070. static="false" final="false" visibility="public"
  10071. deprecated="not deprecated">
  10072. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10073. <param name="aclSpec" type="java.util.List"/>
  10074. <exception name="IOException" type="java.io.IOException"/>
  10075. <doc>
  10076. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  10077. retained.
  10078. @param path Path to modify
  10079. @param aclSpec List describing entries to remove
  10080. @throws IOException if an ACL could not be modified
  10081. @throws UnsupportedOperationException if the operation is unsupported
  10082. (default outcome).]]>
  10083. </doc>
  10084. </method>
  10085. <method name="removeDefaultAcl"
  10086. abstract="false" native="false" synchronized="false"
  10087. static="false" final="false" visibility="public"
  10088. deprecated="not deprecated">
  10089. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10090. <exception name="IOException" type="java.io.IOException"/>
  10091. <doc>
  10092. <![CDATA[Removes all default ACL entries from files and directories.
  10093. @param path Path to modify
  10094. @throws IOException if an ACL could not be modified
  10095. @throws UnsupportedOperationException if the operation is unsupported
  10096. (default outcome).]]>
  10097. </doc>
  10098. </method>
  10099. <method name="removeAcl"
  10100. abstract="false" native="false" synchronized="false"
  10101. static="false" final="false" visibility="public"
  10102. deprecated="not deprecated">
  10103. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10104. <exception name="IOException" type="java.io.IOException"/>
  10105. <doc>
  10106. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  10107. for user, group, and others are retained for compatibility with permission
  10108. bits.
  10109. @param path Path to modify
  10110. @throws IOException if an ACL could not be removed
  10111. @throws UnsupportedOperationException if the operation is unsupported
  10112. (default outcome).]]>
  10113. </doc>
  10114. </method>
  10115. <method name="setAcl"
  10116. abstract="false" native="false" synchronized="false"
  10117. static="false" final="false" visibility="public"
  10118. deprecated="not deprecated">
  10119. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10120. <param name="aclSpec" type="java.util.List"/>
  10121. <exception name="IOException" type="java.io.IOException"/>
  10122. <doc>
  10123. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  10124. entries.
  10125. @param path Path to modify
  10126. @param aclSpec List describing modifications, which must include entries
  10127. for user, group, and others for compatibility with permission bits.
  10128. @throws IOException if an ACL could not be modified
  10129. @throws UnsupportedOperationException if the operation is unsupported
  10130. (default outcome).]]>
  10131. </doc>
  10132. </method>
  10133. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  10134. abstract="false" native="false" synchronized="false"
  10135. static="false" final="false" visibility="public"
  10136. deprecated="not deprecated">
  10137. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10138. <exception name="IOException" type="java.io.IOException"/>
  10139. <doc>
  10140. <![CDATA[Gets the ACL of a file or directory.
  10141. @param path Path to get
  10142. @return AclStatus describing the ACL of the file or directory
  10143. @throws IOException if an ACL could not be read
  10144. @throws UnsupportedOperationException if the operation is unsupported
  10145. (default outcome).]]>
  10146. </doc>
  10147. </method>
  10148. <method name="setXAttr"
  10149. abstract="false" native="false" synchronized="false"
  10150. static="false" final="false" visibility="public"
  10151. deprecated="not deprecated">
  10152. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10153. <param name="name" type="java.lang.String"/>
  10154. <param name="value" type="byte[]"/>
  10155. <exception name="IOException" type="java.io.IOException"/>
  10156. <doc>
  10157. <![CDATA[Set an xattr of a file or directory.
  10158. The name must be prefixed with the namespace followed by ".". For example,
  10159. "user.attr".
  10160. <p>
  10161. Refer to the HDFS extended attributes user documentation for details.
  10162. @param path Path to modify
  10163. @param name xattr name.
  10164. @param value xattr value.
  10165. @throws IOException IO failure
  10166. @throws UnsupportedOperationException if the operation is unsupported
  10167. (default outcome).]]>
  10168. </doc>
  10169. </method>
  10170. <method name="setXAttr"
  10171. abstract="false" native="false" synchronized="false"
  10172. static="false" final="false" visibility="public"
  10173. deprecated="not deprecated">
  10174. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10175. <param name="name" type="java.lang.String"/>
  10176. <param name="value" type="byte[]"/>
  10177. <param name="flag" type="java.util.EnumSet"/>
  10178. <exception name="IOException" type="java.io.IOException"/>
  10179. <doc>
  10180. <![CDATA[Set an xattr of a file or directory.
  10181. The name must be prefixed with the namespace followed by ".". For example,
  10182. "user.attr".
  10183. <p>
  10184. Refer to the HDFS extended attributes user documentation for details.
  10185. @param path Path to modify
  10186. @param name xattr name.
  10187. @param value xattr value.
  10188. @param flag xattr set flag
  10189. @throws IOException IO failure
  10190. @throws UnsupportedOperationException if the operation is unsupported
  10191. (default outcome).]]>
  10192. </doc>
  10193. </method>
  10194. <method name="getXAttr" return="byte[]"
  10195. abstract="false" native="false" synchronized="false"
  10196. static="false" final="false" visibility="public"
  10197. deprecated="not deprecated">
  10198. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10199. <param name="name" type="java.lang.String"/>
  10200. <exception name="IOException" type="java.io.IOException"/>
  10201. <doc>
  10202. <![CDATA[Get an xattr name and value for a file or directory.
  10203. The name must be prefixed with the namespace followed by ".". For example,
  10204. "user.attr".
  10205. <p>
  10206. Refer to the HDFS extended attributes user documentation for details.
  10207. @param path Path to get extended attribute
  10208. @param name xattr name.
  10209. @return byte[] xattr value.
  10210. @throws IOException IO failure
  10211. @throws UnsupportedOperationException if the operation is unsupported
  10212. (default outcome).]]>
  10213. </doc>
  10214. </method>
  10215. <method name="getXAttrs" return="java.util.Map"
  10216. abstract="false" native="false" synchronized="false"
  10217. static="false" final="false" visibility="public"
  10218. deprecated="not deprecated">
  10219. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10220. <exception name="IOException" type="java.io.IOException"/>
  10221. <doc>
  10222. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  10223. Only those xattrs which the logged-in user has permissions to view
  10224. are returned.
  10225. <p>
  10226. Refer to the HDFS extended attributes user documentation for details.
  10227. @param path Path to get extended attributes
  10228. @return Map describing the XAttrs of the file or directory
  10229. @throws IOException IO failure
  10230. @throws UnsupportedOperationException if the operation is unsupported
  10231. (default outcome).]]>
  10232. </doc>
  10233. </method>
  10234. <method name="getXAttrs" return="java.util.Map"
  10235. abstract="false" native="false" synchronized="false"
  10236. static="false" final="false" visibility="public"
  10237. deprecated="not deprecated">
  10238. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10239. <param name="names" type="java.util.List"/>
  10240. <exception name="IOException" type="java.io.IOException"/>
  10241. <doc>
  10242. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  10243. Only those xattrs which the logged-in user has permissions to view
  10244. are returned.
  10245. <p>
  10246. Refer to the HDFS extended attributes user documentation for details.
  10247. @param path Path to get extended attributes
  10248. @param names XAttr names.
  10249. @return Map describing the XAttrs of the file or directory
  10250. @throws IOException IO failure
  10251. @throws UnsupportedOperationException if the operation is unsupported
  10252. (default outcome).]]>
  10253. </doc>
  10254. </method>
  10255. <method name="listXAttrs" return="java.util.List"
  10256. abstract="false" native="false" synchronized="false"
  10257. static="false" final="false" visibility="public"
  10258. deprecated="not deprecated">
  10259. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10260. <exception name="IOException" type="java.io.IOException"/>
  10261. <doc>
  10262. <![CDATA[Get all of the xattr names for a file or directory.
  10263. Only those xattr names which the logged-in user has permissions to view
  10264. are returned.
  10265. <p>
  10266. Refer to the HDFS extended attributes user documentation for details.
  10267. @param path Path to get extended attributes
  10268. @return List<String> of the XAttr names of the file or directory
  10269. @throws IOException IO failure
  10270. @throws UnsupportedOperationException if the operation is unsupported
  10271. (default outcome).]]>
  10272. </doc>
  10273. </method>
  10274. <method name="removeXAttr"
  10275. abstract="false" native="false" synchronized="false"
  10276. static="false" final="false" visibility="public"
  10277. deprecated="not deprecated">
  10278. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10279. <param name="name" type="java.lang.String"/>
  10280. <exception name="IOException" type="java.io.IOException"/>
  10281. <doc>
  10282. <![CDATA[Remove an xattr of a file or directory.
  10283. The name must be prefixed with the namespace followed by ".". For example,
  10284. "user.attr".
  10285. <p>
  10286. Refer to the HDFS extended attributes user documentation for details.
  10287. @param path Path to remove extended attribute
  10288. @param name xattr name
  10289. @throws IOException IO failure
  10290. @throws UnsupportedOperationException if the operation is unsupported
  10291. (default outcome).]]>
  10292. </doc>
  10293. </method>
  10294. <method name="setStoragePolicy"
  10295. abstract="false" native="false" synchronized="false"
  10296. static="false" final="false" visibility="public"
  10297. deprecated="not deprecated">
  10298. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10299. <param name="policyName" type="java.lang.String"/>
  10300. <exception name="IOException" type="java.io.IOException"/>
  10301. <doc>
  10302. <![CDATA[Set the storage policy for a given file or directory.
  10303. @param src file or directory path.
  10304. @param policyName the name of the target storage policy. The list
  10305. of supported Storage policies can be retrieved
  10306. via {@link #getAllStoragePolicies}.
  10307. @throws IOException IO failure
  10308. @throws UnsupportedOperationException if the operation is unsupported
  10309. (default outcome).]]>
  10310. </doc>
  10311. </method>
  10312. <method name="unsetStoragePolicy"
  10313. abstract="false" native="false" synchronized="false"
  10314. static="false" final="false" visibility="public"
  10315. deprecated="not deprecated">
  10316. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10317. <exception name="IOException" type="java.io.IOException"/>
  10318. <doc>
  10319. <![CDATA[Unset the storage policy set for a given file or directory.
  10320. @param src file or directory path.
  10321. @throws IOException IO failure
  10322. @throws UnsupportedOperationException if the operation is unsupported
  10323. (default outcome).]]>
  10324. </doc>
  10325. </method>
  10326. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  10327. abstract="false" native="false" synchronized="false"
  10328. static="false" final="false" visibility="public"
  10329. deprecated="not deprecated">
  10330. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10331. <exception name="IOException" type="java.io.IOException"/>
  10332. <doc>
  10333. <![CDATA[Query the effective storage policy ID for the given file or directory.
  10334. @param src file or directory path.
  10335. @return storage policy for give file.
  10336. @throws IOException IO failure
  10337. @throws UnsupportedOperationException if the operation is unsupported
  10338. (default outcome).]]>
  10339. </doc>
  10340. </method>
  10341. <method name="getAllStoragePolicies" return="java.util.Collection"
  10342. abstract="false" native="false" synchronized="false"
  10343. static="false" final="false" visibility="public"
  10344. deprecated="not deprecated">
  10345. <exception name="IOException" type="java.io.IOException"/>
  10346. <doc>
  10347. <![CDATA[Retrieve all the storage policies supported by this file system.
  10348. @return all storage policies supported by this filesystem.
  10349. @throws IOException IO failure
  10350. @throws UnsupportedOperationException if the operation is unsupported
  10351. (default outcome).]]>
  10352. </doc>
  10353. </method>
  10354. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  10355. abstract="false" native="false" synchronized="false"
  10356. static="false" final="false" visibility="public"
  10357. deprecated="not deprecated">
  10358. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10359. <doc>
  10360. <![CDATA[Get the root directory of Trash for current user when the path specified
  10361. is deleted.
  10362. @param path the trash root of the path to be determined.
  10363. @return the default implementation returns {@code /user/$USER/.Trash}]]>
  10364. </doc>
  10365. </method>
  10366. <method name="getTrashRoots" return="java.util.Collection"
  10367. abstract="false" native="false" synchronized="false"
  10368. static="false" final="false" visibility="public"
  10369. deprecated="not deprecated">
  10370. <param name="allUsers" type="boolean"/>
  10371. <doc>
  10372. <![CDATA[Get all the trash roots for current user or all users.
  10373. @param allUsers return trash roots for all users if true.
  10374. @return all the trash root directories.
  10375. Default FileSystem returns .Trash under users' home directories if
  10376. {@code /user/$USER/.Trash} exists.]]>
  10377. </doc>
  10378. </method>
  10379. <method name="getFileSystemClass" return="java.lang.Class"
  10380. abstract="false" native="false" synchronized="false"
  10381. static="true" final="false" visibility="public"
  10382. deprecated="not deprecated">
  10383. <param name="scheme" type="java.lang.String"/>
  10384. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10385. <exception name="IOException" type="java.io.IOException"/>
  10386. <doc>
  10387. <![CDATA[Get the FileSystem implementation class of a filesystem.
  10388. This triggers a scan and load of all FileSystem implementations listed as
  10389. services and discovered via the {@link ServiceLoader}
  10390. @param scheme URL scheme of FS
  10391. @param conf configuration: can be null, in which case the check for
  10392. a filesystem binding declaration in the configuration is skipped.
  10393. @return the filesystem
  10394. @throws UnsupportedFileSystemException if there was no known implementation
  10395. for the scheme.
  10396. @throws IOException if the filesystem could not be loaded]]>
  10397. </doc>
  10398. </method>
  10399. <method name="getStatistics" return="java.util.Map"
  10400. abstract="false" native="false" synchronized="true"
  10401. static="true" final="false" visibility="public"
  10402. deprecated="use {@link #getGlobalStorageStatistics()}">
  10403. <doc>
  10404. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  10405. @return a Map having a key as URI scheme and value as Statistics object
  10406. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10407. </doc>
  10408. </method>
  10409. <method name="getAllStatistics" return="java.util.List"
  10410. abstract="false" native="false" synchronized="true"
  10411. static="true" final="false" visibility="public"
  10412. deprecated="use {@link #getGlobalStorageStatistics()}">
  10413. <doc>
  10414. <![CDATA[Return the FileSystem classes that have Statistics.
  10415. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10416. </doc>
  10417. </method>
  10418. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  10419. abstract="false" native="false" synchronized="true"
  10420. static="true" final="false" visibility="public"
  10421. deprecated="use {@link #getGlobalStorageStatistics()}">
  10422. <param name="scheme" type="java.lang.String"/>
  10423. <param name="cls" type="java.lang.Class"/>
  10424. <doc>
  10425. <![CDATA[Get the statistics for a particular file system.
  10426. @param cls the class to lookup
  10427. @return a statistics object
  10428. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10429. </doc>
  10430. </method>
  10431. <method name="clearStatistics"
  10432. abstract="false" native="false" synchronized="true"
  10433. static="true" final="false" visibility="public"
  10434. deprecated="not deprecated">
  10435. <doc>
  10436. <![CDATA[Reset all statistics for all file systems.]]>
  10437. </doc>
  10438. </method>
  10439. <method name="printStatistics"
  10440. abstract="false" native="false" synchronized="true"
  10441. static="true" final="false" visibility="public"
  10442. deprecated="not deprecated">
  10443. <exception name="IOException" type="java.io.IOException"/>
  10444. <doc>
  10445. <![CDATA[Print all statistics for all file systems to {@code System.out}]]>
  10446. </doc>
  10447. </method>
  10448. <method name="areSymlinksEnabled" return="boolean"
  10449. abstract="false" native="false" synchronized="false"
  10450. static="true" final="false" visibility="public"
  10451. deprecated="not deprecated">
  10452. </method>
  10453. <method name="enableSymlinks"
  10454. abstract="false" native="false" synchronized="false"
  10455. static="true" final="false" visibility="public"
  10456. deprecated="not deprecated">
  10457. </method>
  10458. <method name="getStorageStatistics" return="org.apache.hadoop.fs.StorageStatistics"
  10459. abstract="false" native="false" synchronized="false"
  10460. static="false" final="false" visibility="public"
  10461. deprecated="not deprecated">
  10462. <doc>
  10463. <![CDATA[Get the StorageStatistics for this FileSystem object. These statistics are
  10464. per-instance. They are not shared with any other FileSystem object.
  10465. <p>This is a default method which is intended to be overridden by
  10466. subclasses. The default implementation returns an empty storage statistics
  10467. object.</p>
  10468. @return The StorageStatistics for this FileSystem instance.
  10469. Will never be null.]]>
  10470. </doc>
  10471. </method>
  10472. <method name="getGlobalStorageStatistics" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  10473. abstract="false" native="false" synchronized="false"
  10474. static="true" final="false" visibility="public"
  10475. deprecated="not deprecated">
  10476. <doc>
  10477. <![CDATA[Get the global storage statistics.]]>
  10478. </doc>
  10479. </method>
  10480. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  10481. abstract="false" native="false" synchronized="false"
  10482. static="false" final="false" visibility="public"
  10483. deprecated="not deprecated">
  10484. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10485. <doc>
  10486. <![CDATA[Create a new FSDataOutputStreamBuilder for the file with path.
  10487. Files are overwritten by default.
  10488. @param path file path
  10489. @return a FSDataOutputStreamBuilder object to build the file
  10490. HADOOP-14384. Temporarily reduce the visibility of method before the
  10491. builder interface becomes stable.]]>
  10492. </doc>
  10493. </method>
  10494. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  10495. abstract="false" native="false" synchronized="false"
  10496. static="false" final="false" visibility="public"
  10497. deprecated="not deprecated">
  10498. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10499. <doc>
  10500. <![CDATA[Create a Builder to append a file.
  10501. @param path file path.
  10502. @return a {@link FSDataOutputStreamBuilder} to build file append request.]]>
  10503. </doc>
  10504. </method>
  10505. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  10506. transient="false" volatile="false"
  10507. static="true" final="true" visibility="public"
  10508. deprecated="not deprecated">
  10509. </field>
  10510. <field name="DEFAULT_FS" type="java.lang.String"
  10511. transient="false" volatile="false"
  10512. static="true" final="true" visibility="public"
  10513. deprecated="not deprecated">
  10514. </field>
  10515. <field name="LOG" type="org.apache.commons.logging.Log"
  10516. transient="false" volatile="false"
  10517. static="true" final="true" visibility="public"
  10518. deprecated="not deprecated">
  10519. <doc>
  10520. <![CDATA[This log is widely used in the org.apache.hadoop.fs code and tests,
  10521. so must be considered something to only be changed with care.]]>
  10522. </doc>
  10523. </field>
  10524. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  10525. transient="false" volatile="false"
  10526. static="true" final="true" visibility="public"
  10527. deprecated="not deprecated">
  10528. <doc>
  10529. <![CDATA[Priority of the FileSystem shutdown hook: {@value}.]]>
  10530. </doc>
  10531. </field>
  10532. <field name="TRASH_PREFIX" type="java.lang.String"
  10533. transient="false" volatile="false"
  10534. static="true" final="true" visibility="public"
  10535. deprecated="not deprecated">
  10536. <doc>
  10537. <![CDATA[Prefix for trash directory: {@value}.]]>
  10538. </doc>
  10539. </field>
  10540. <field name="USER_HOME_PREFIX" type="java.lang.String"
  10541. transient="false" volatile="false"
  10542. static="true" final="true" visibility="public"
  10543. deprecated="not deprecated">
  10544. </field>
  10545. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  10546. transient="false" volatile="false"
  10547. static="false" final="false" visibility="protected"
  10548. deprecated="not deprecated">
  10549. <doc>
  10550. <![CDATA[The statistics for this file system.]]>
  10551. </doc>
  10552. </field>
  10553. <doc>
  10554. <![CDATA[An abstract base class for a fairly generic filesystem. It
  10555. may be implemented as a distributed filesystem, or as a "local"
  10556. one that reflects the locally-connected disk. The local version
  10557. exists for small Hadoop instances and for testing.
  10558. <p>
  10559. All user code that may potentially use the Hadoop Distributed
  10560. File System should be written to use a FileSystem object or its
  10561. successor, {@link FileContext}.
  10562. <p>
  10563. The local implementation is {@link LocalFileSystem} and distributed
  10564. implementation is DistributedFileSystem. There are other implementations
  10565. for object stores and (outside the Apache Hadoop codebase),
  10566. third party filesystems.
  10567. <p>
  10568. Notes
  10569. <ol>
  10570. <li>The behaviour of the filesystem is
  10571. <a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/filesystem/filesystem.html">
  10572. specified in the Hadoop documentation. </a>
  10573. However, the normative specification of the behavior of this class is
  10574. actually HDFS: if HDFS does not behave the way these Javadocs or
  10575. the specification in the Hadoop documentations define, assume that
  10576. the documentation is incorrect.
  10577. </li>
  10578. <li>The term {@code FileSystem} refers to an instance of this class.</li>
  10579. <li>The acronym "FS" is used as an abbreviation of FileSystem.</li>
  10580. <li>The term {@code filesystem} refers to the distributed/local filesystem
  10581. itself, rather than the class used to interact with it.</li>
  10582. <li>The term "file" refers to a file in the remote filesystem,
  10583. rather than instances of {@code java.io.File}.</li>
  10584. </ol>]]>
  10585. </doc>
  10586. </class>
  10587. <!-- end class org.apache.hadoop.fs.FileSystem -->
  10588. <!-- start class org.apache.hadoop.fs.FileUtil -->
  10589. <class name="FileUtil" extends="java.lang.Object"
  10590. abstract="false"
  10591. static="false" final="false" visibility="public"
  10592. deprecated="not deprecated">
  10593. <constructor name="FileUtil"
  10594. static="false" final="false" visibility="public"
  10595. deprecated="not deprecated">
  10596. </constructor>
  10597. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  10598. abstract="false" native="false" synchronized="false"
  10599. static="true" final="false" visibility="public"
  10600. deprecated="not deprecated">
  10601. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  10602. <doc>
  10603. <![CDATA[convert an array of FileStatus to an array of Path
  10604. @param stats
  10605. an array of FileStatus objects
  10606. @return an array of paths corresponding to the input]]>
  10607. </doc>
  10608. </method>
  10609. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  10610. abstract="false" native="false" synchronized="false"
  10611. static="true" final="false" visibility="public"
  10612. deprecated="not deprecated">
  10613. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  10614. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10615. <doc>
  10616. <![CDATA[convert an array of FileStatus to an array of Path.
  10617. If stats if null, return path
  10618. @param stats
  10619. an array of FileStatus objects
  10620. @param path
  10621. default path to return in stats is null
  10622. @return an array of paths corresponding to the input]]>
  10623. </doc>
  10624. </method>
  10625. <method name="fullyDeleteOnExit"
  10626. abstract="false" native="false" synchronized="false"
  10627. static="true" final="false" visibility="public"
  10628. deprecated="not deprecated">
  10629. <param name="file" type="java.io.File"/>
  10630. <doc>
  10631. <![CDATA[Register all files recursively to be deleted on exit.
  10632. @param file File/directory to be deleted]]>
  10633. </doc>
  10634. </method>
  10635. <method name="fullyDelete" return="boolean"
  10636. abstract="false" native="false" synchronized="false"
  10637. static="true" final="false" visibility="public"
  10638. deprecated="not deprecated">
  10639. <param name="dir" type="java.io.File"/>
  10640. <doc>
  10641. <![CDATA[Delete a directory and all its contents. If
  10642. we return false, the directory may be partially-deleted.
  10643. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  10644. to by the symlink is not deleted.
  10645. (2) If dir is symlink to a directory, symlink is deleted. The directory
  10646. pointed to by symlink is not deleted.
  10647. (3) If dir is a normal file, it is deleted.
  10648. (4) If dir is a normal directory, then dir and all its contents recursively
  10649. are deleted.]]>
  10650. </doc>
  10651. </method>
  10652. <method name="fullyDelete" return="boolean"
  10653. abstract="false" native="false" synchronized="false"
  10654. static="true" final="false" visibility="public"
  10655. deprecated="not deprecated">
  10656. <param name="dir" type="java.io.File"/>
  10657. <param name="tryGrantPermissions" type="boolean"/>
  10658. <doc>
  10659. <![CDATA[Delete a directory and all its contents. If
  10660. we return false, the directory may be partially-deleted.
  10661. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  10662. to by the symlink is not deleted.
  10663. (2) If dir is symlink to a directory, symlink is deleted. The directory
  10664. pointed to by symlink is not deleted.
  10665. (3) If dir is a normal file, it is deleted.
  10666. (4) If dir is a normal directory, then dir and all its contents recursively
  10667. are deleted.
  10668. @param dir the file or directory to be deleted
  10669. @param tryGrantPermissions true if permissions should be modified to delete a file.
  10670. @return true on success false on failure.]]>
  10671. </doc>
  10672. </method>
  10673. <method name="readLink" return="java.lang.String"
  10674. abstract="false" native="false" synchronized="false"
  10675. static="true" final="false" visibility="public"
  10676. deprecated="not deprecated">
  10677. <param name="f" type="java.io.File"/>
  10678. <doc>
  10679. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  10680. the given path does not refer to a symlink or there is an error
  10681. accessing the symlink.
  10682. @param f File representing the symbolic link.
  10683. @return The target of the symbolic link, empty string on error or if not
  10684. a symlink.]]>
  10685. </doc>
  10686. </method>
  10687. <method name="fullyDeleteContents" return="boolean"
  10688. abstract="false" native="false" synchronized="false"
  10689. static="true" final="false" visibility="public"
  10690. deprecated="not deprecated">
  10691. <param name="dir" type="java.io.File"/>
  10692. <doc>
  10693. <![CDATA[Delete the contents of a directory, not the directory itself. If
  10694. we return false, the directory may be partially-deleted.
  10695. If dir is a symlink to a directory, all the contents of the actual
  10696. directory pointed to by dir will be deleted.]]>
  10697. </doc>
  10698. </method>
  10699. <method name="fullyDeleteContents" return="boolean"
  10700. abstract="false" native="false" synchronized="false"
  10701. static="true" final="false" visibility="public"
  10702. deprecated="not deprecated">
  10703. <param name="dir" type="java.io.File"/>
  10704. <param name="tryGrantPermissions" type="boolean"/>
  10705. <doc>
  10706. <![CDATA[Delete the contents of a directory, not the directory itself. If
  10707. we return false, the directory may be partially-deleted.
  10708. If dir is a symlink to a directory, all the contents of the actual
  10709. directory pointed to by dir will be deleted.
  10710. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  10711. and all the underlying directories before trying to delete their contents.]]>
  10712. </doc>
  10713. </method>
  10714. <method name="fullyDelete"
  10715. abstract="false" native="false" synchronized="false"
  10716. static="true" final="false" visibility="public"
  10717. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  10718. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10719. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  10720. <exception name="IOException" type="java.io.IOException"/>
  10721. <doc>
  10722. <![CDATA[Recursively delete a directory.
  10723. @param fs {@link FileSystem} on which the path is present
  10724. @param dir directory to recursively delete
  10725. @throws IOException
  10726. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  10727. </doc>
  10728. </method>
  10729. <method name="copy" return="boolean"
  10730. abstract="false" native="false" synchronized="false"
  10731. static="true" final="false" visibility="public"
  10732. deprecated="not deprecated">
  10733. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10734. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10735. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10736. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10737. <param name="deleteSource" type="boolean"/>
  10738. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10739. <exception name="IOException" type="java.io.IOException"/>
  10740. <doc>
  10741. <![CDATA[Copy files between FileSystems.]]>
  10742. </doc>
  10743. </method>
  10744. <method name="copy" return="boolean"
  10745. abstract="false" native="false" synchronized="false"
  10746. static="true" final="false" visibility="public"
  10747. deprecated="not deprecated">
  10748. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10749. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10750. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10751. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10752. <param name="deleteSource" type="boolean"/>
  10753. <param name="overwrite" type="boolean"/>
  10754. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10755. <exception name="IOException" type="java.io.IOException"/>
  10756. </method>
  10757. <method name="copy" return="boolean"
  10758. abstract="false" native="false" synchronized="false"
  10759. static="true" final="false" visibility="public"
  10760. deprecated="not deprecated">
  10761. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10762. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10763. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10764. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10765. <param name="deleteSource" type="boolean"/>
  10766. <param name="overwrite" type="boolean"/>
  10767. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10768. <exception name="IOException" type="java.io.IOException"/>
  10769. <doc>
  10770. <![CDATA[Copy files between FileSystems.]]>
  10771. </doc>
  10772. </method>
  10773. <method name="copy" return="boolean"
  10774. abstract="false" native="false" synchronized="false"
  10775. static="true" final="false" visibility="public"
  10776. deprecated="not deprecated">
  10777. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10778. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  10779. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10780. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10781. <param name="deleteSource" type="boolean"/>
  10782. <param name="overwrite" type="boolean"/>
  10783. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10784. <exception name="IOException" type="java.io.IOException"/>
  10785. <doc>
  10786. <![CDATA[Copy files between FileSystems.]]>
  10787. </doc>
  10788. </method>
  10789. <method name="copyMerge" return="boolean"
  10790. abstract="false" native="false" synchronized="false"
  10791. static="true" final="false" visibility="public"
  10792. deprecated="not deprecated">
  10793. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10794. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  10795. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10796. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  10797. <param name="deleteSource" type="boolean"/>
  10798. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10799. <param name="addString" type="java.lang.String"/>
  10800. <exception name="IOException" type="java.io.IOException"/>
  10801. </method>
  10802. <method name="copy" return="boolean"
  10803. abstract="false" native="false" synchronized="false"
  10804. static="true" final="false" visibility="public"
  10805. deprecated="not deprecated">
  10806. <param name="src" type="java.io.File"/>
  10807. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10808. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10809. <param name="deleteSource" type="boolean"/>
  10810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10811. <exception name="IOException" type="java.io.IOException"/>
  10812. <doc>
  10813. <![CDATA[Copy local files to a FileSystem.]]>
  10814. </doc>
  10815. </method>
  10816. <method name="copy" return="boolean"
  10817. abstract="false" native="false" synchronized="false"
  10818. static="true" final="false" visibility="public"
  10819. deprecated="not deprecated">
  10820. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10821. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10822. <param name="dst" type="java.io.File"/>
  10823. <param name="deleteSource" type="boolean"/>
  10824. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10825. <exception name="IOException" type="java.io.IOException"/>
  10826. <doc>
  10827. <![CDATA[Copy FileSystem files to local files.]]>
  10828. </doc>
  10829. </method>
  10830. <method name="makeShellPath" return="java.lang.String"
  10831. abstract="false" native="false" synchronized="false"
  10832. static="true" final="false" visibility="public"
  10833. deprecated="not deprecated">
  10834. <param name="filename" type="java.lang.String"/>
  10835. <exception name="IOException" type="java.io.IOException"/>
  10836. <doc>
  10837. <![CDATA[Convert a os-native filename to a path that works for the shell.
  10838. @param filename The filename to convert
  10839. @return The unix pathname
  10840. @throws IOException on windows, there can be problems with the subprocess]]>
  10841. </doc>
  10842. </method>
  10843. <method name="makeShellPath" return="java.lang.String"
  10844. abstract="false" native="false" synchronized="false"
  10845. static="true" final="false" visibility="public"
  10846. deprecated="not deprecated">
  10847. <param name="file" type="java.io.File"/>
  10848. <exception name="IOException" type="java.io.IOException"/>
  10849. <doc>
  10850. <![CDATA[Convert a os-native filename to a path that works for the shell.
  10851. @param file The filename to convert
  10852. @return The unix pathname
  10853. @throws IOException on windows, there can be problems with the subprocess]]>
  10854. </doc>
  10855. </method>
  10856. <method name="makeShellPath" return="java.lang.String"
  10857. abstract="false" native="false" synchronized="false"
  10858. static="true" final="false" visibility="public"
  10859. deprecated="not deprecated">
  10860. <param name="file" type="java.io.File"/>
  10861. <param name="makeCanonicalPath" type="boolean"/>
  10862. <exception name="IOException" type="java.io.IOException"/>
  10863. <doc>
  10864. <![CDATA[Convert a os-native filename to a path that works for the shell.
  10865. @param file The filename to convert
  10866. @param makeCanonicalPath
  10867. Whether to make canonical path for the file passed
  10868. @return The unix pathname
  10869. @throws IOException on windows, there can be problems with the subprocess]]>
  10870. </doc>
  10871. </method>
  10872. <method name="getDU" return="long"
  10873. abstract="false" native="false" synchronized="false"
  10874. static="true" final="false" visibility="public"
  10875. deprecated="not deprecated">
  10876. <param name="dir" type="java.io.File"/>
  10877. <doc>
  10878. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  10879. implementation.
  10880. @param dir
  10881. The input dir to get the disk space of this local dir
  10882. @return The total disk space of the input local directory]]>
  10883. </doc>
  10884. </method>
  10885. <method name="unZip"
  10886. abstract="false" native="false" synchronized="false"
  10887. static="true" final="false" visibility="public"
  10888. deprecated="not deprecated">
  10889. <param name="inFile" type="java.io.File"/>
  10890. <param name="unzipDir" type="java.io.File"/>
  10891. <exception name="IOException" type="java.io.IOException"/>
  10892. <doc>
  10893. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  10894. passed as the second parameter
  10895. @param inFile The zip file as input
  10896. @param unzipDir The unzip directory where to unzip the zip file.
  10897. @throws IOException]]>
  10898. </doc>
  10899. </method>
  10900. <method name="unTar"
  10901. abstract="false" native="false" synchronized="false"
  10902. static="true" final="false" visibility="public"
  10903. deprecated="not deprecated">
  10904. <param name="inFile" type="java.io.File"/>
  10905. <param name="untarDir" type="java.io.File"/>
  10906. <exception name="IOException" type="java.io.IOException"/>
  10907. <doc>
  10908. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  10909. passed as the second parameter
  10910. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  10911. @param inFile The tar file as input.
  10912. @param untarDir The untar directory where to untar the tar file.
  10913. @throws IOException]]>
  10914. </doc>
  10915. </method>
  10916. <method name="symLink" return="int"
  10917. abstract="false" native="false" synchronized="false"
  10918. static="true" final="false" visibility="public"
  10919. deprecated="not deprecated">
  10920. <param name="target" type="java.lang.String"/>
  10921. <param name="linkname" type="java.lang.String"/>
  10922. <exception name="IOException" type="java.io.IOException"/>
  10923. <doc>
  10924. <![CDATA[Create a soft link between a src and destination
  10925. only on a local disk. HDFS does not support this.
  10926. On Windows, when symlink creation fails due to security
  10927. setting, we will log a warning. The return code in this
  10928. case is 2.
  10929. @param target the target for symlink
  10930. @param linkname the symlink
  10931. @return 0 on success]]>
  10932. </doc>
  10933. </method>
  10934. <method name="chmod" return="int"
  10935. abstract="false" native="false" synchronized="false"
  10936. static="true" final="false" visibility="public"
  10937. deprecated="not deprecated">
  10938. <param name="filename" type="java.lang.String"/>
  10939. <param name="perm" type="java.lang.String"/>
  10940. <exception name="IOException" type="java.io.IOException"/>
  10941. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  10942. <doc>
  10943. <![CDATA[Change the permissions on a filename.
  10944. @param filename the name of the file to change
  10945. @param perm the permission string
  10946. @return the exit code from the command
  10947. @throws IOException
  10948. @throws InterruptedException]]>
  10949. </doc>
  10950. </method>
  10951. <method name="chmod" return="int"
  10952. abstract="false" native="false" synchronized="false"
  10953. static="true" final="false" visibility="public"
  10954. deprecated="not deprecated">
  10955. <param name="filename" type="java.lang.String"/>
  10956. <param name="perm" type="java.lang.String"/>
  10957. <param name="recursive" type="boolean"/>
  10958. <exception name="IOException" type="java.io.IOException"/>
  10959. <doc>
  10960. <![CDATA[Change the permissions on a file / directory, recursively, if
  10961. needed.
  10962. @param filename name of the file whose permissions are to change
  10963. @param perm permission string
  10964. @param recursive true, if permissions should be changed recursively
  10965. @return the exit code from the command.
  10966. @throws IOException]]>
  10967. </doc>
  10968. </method>
  10969. <method name="setOwner"
  10970. abstract="false" native="false" synchronized="false"
  10971. static="true" final="false" visibility="public"
  10972. deprecated="not deprecated">
  10973. <param name="file" type="java.io.File"/>
  10974. <param name="username" type="java.lang.String"/>
  10975. <param name="groupname" type="java.lang.String"/>
  10976. <exception name="IOException" type="java.io.IOException"/>
  10977. <doc>
  10978. <![CDATA[Set the ownership on a file / directory. User name and group name
  10979. cannot both be null.
  10980. @param file the file to change
  10981. @param username the new user owner name
  10982. @param groupname the new group owner name
  10983. @throws IOException]]>
  10984. </doc>
  10985. </method>
  10986. <method name="setReadable" return="boolean"
  10987. abstract="false" native="false" synchronized="false"
  10988. static="true" final="false" visibility="public"
  10989. deprecated="not deprecated">
  10990. <param name="f" type="java.io.File"/>
  10991. <param name="readable" type="boolean"/>
  10992. <doc>
  10993. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  10994. File#setReadable does not work as expected on Windows.
  10995. @param f input file
  10996. @param readable
  10997. @return true on success, false otherwise]]>
  10998. </doc>
  10999. </method>
  11000. <method name="setWritable" return="boolean"
  11001. abstract="false" native="false" synchronized="false"
  11002. static="true" final="false" visibility="public"
  11003. deprecated="not deprecated">
  11004. <param name="f" type="java.io.File"/>
  11005. <param name="writable" type="boolean"/>
  11006. <doc>
  11007. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  11008. File#setWritable does not work as expected on Windows.
  11009. @param f input file
  11010. @param writable
  11011. @return true on success, false otherwise]]>
  11012. </doc>
  11013. </method>
  11014. <method name="setExecutable" return="boolean"
  11015. abstract="false" native="false" synchronized="false"
  11016. static="true" final="false" visibility="public"
  11017. deprecated="not deprecated">
  11018. <param name="f" type="java.io.File"/>
  11019. <param name="executable" type="boolean"/>
  11020. <doc>
  11021. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  11022. File#setExecutable does not work as expected on Windows.
  11023. Note: revoking execute permission on folders does not have the same
  11024. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  11025. a file within that folder will still succeed on Windows.
  11026. @param f input file
  11027. @param executable
  11028. @return true on success, false otherwise]]>
  11029. </doc>
  11030. </method>
  11031. <method name="canRead" return="boolean"
  11032. abstract="false" native="false" synchronized="false"
  11033. static="true" final="false" visibility="public"
  11034. deprecated="not deprecated">
  11035. <param name="f" type="java.io.File"/>
  11036. <doc>
  11037. <![CDATA[Platform independent implementation for {@link File#canRead()}
  11038. @param f input file
  11039. @return On Unix, same as {@link File#canRead()}
  11040. On Windows, true if process has read access on the path]]>
  11041. </doc>
  11042. </method>
  11043. <method name="canWrite" return="boolean"
  11044. abstract="false" native="false" synchronized="false"
  11045. static="true" final="false" visibility="public"
  11046. deprecated="not deprecated">
  11047. <param name="f" type="java.io.File"/>
  11048. <doc>
  11049. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  11050. @param f input file
  11051. @return On Unix, same as {@link File#canWrite()}
  11052. On Windows, true if process has write access on the path]]>
  11053. </doc>
  11054. </method>
  11055. <method name="canExecute" return="boolean"
  11056. abstract="false" native="false" synchronized="false"
  11057. static="true" final="false" visibility="public"
  11058. deprecated="not deprecated">
  11059. <param name="f" type="java.io.File"/>
  11060. <doc>
  11061. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  11062. @param f input file
  11063. @return On Unix, same as {@link File#canExecute()}
  11064. On Windows, true if process has execute access on the path]]>
  11065. </doc>
  11066. </method>
  11067. <method name="setPermission"
  11068. abstract="false" native="false" synchronized="false"
  11069. static="true" final="false" visibility="public"
  11070. deprecated="not deprecated">
  11071. <param name="f" type="java.io.File"/>
  11072. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11073. <exception name="IOException" type="java.io.IOException"/>
  11074. <doc>
  11075. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  11076. of forking if group == other.
  11077. @param f the file to change
  11078. @param permission the new permissions
  11079. @throws IOException]]>
  11080. </doc>
  11081. </method>
  11082. <method name="createLocalTempFile" return="java.io.File"
  11083. abstract="false" native="false" synchronized="false"
  11084. static="true" final="true" visibility="public"
  11085. deprecated="not deprecated">
  11086. <param name="basefile" type="java.io.File"/>
  11087. <param name="prefix" type="java.lang.String"/>
  11088. <param name="isDeleteOnExit" type="boolean"/>
  11089. <exception name="IOException" type="java.io.IOException"/>
  11090. <doc>
  11091. <![CDATA[Create a tmp file for a base file.
  11092. @param basefile the base file of the tmp
  11093. @param prefix file name prefix of tmp
  11094. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  11095. @return a newly created tmp file
  11096. @exception IOException If a tmp file cannot created
  11097. @see java.io.File#createTempFile(String, String, File)
  11098. @see java.io.File#deleteOnExit()]]>
  11099. </doc>
  11100. </method>
  11101. <method name="replaceFile"
  11102. abstract="false" native="false" synchronized="false"
  11103. static="true" final="false" visibility="public"
  11104. deprecated="not deprecated">
  11105. <param name="src" type="java.io.File"/>
  11106. <param name="target" type="java.io.File"/>
  11107. <exception name="IOException" type="java.io.IOException"/>
  11108. <doc>
  11109. <![CDATA[Move the src file to the name specified by target.
  11110. @param src the source file
  11111. @param target the target file
  11112. @exception IOException If this operation fails]]>
  11113. </doc>
  11114. </method>
  11115. <method name="listFiles" return="java.io.File[]"
  11116. abstract="false" native="false" synchronized="false"
  11117. static="true" final="false" visibility="public"
  11118. deprecated="not deprecated">
  11119. <param name="dir" type="java.io.File"/>
  11120. <exception name="IOException" type="java.io.IOException"/>
  11121. <doc>
  11122. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  11123. when a dir is not a directory or for any I/O error. Instead of having
  11124. null check everywhere File#listFiles() is used, we will add utility API
  11125. to get around this problem. For the majority of cases where we prefer
  11126. an IOException to be thrown.
  11127. @param dir directory for which listing should be performed
  11128. @return list of files or empty list
  11129. @exception IOException for invalid directory or for a bad disk.]]>
  11130. </doc>
  11131. </method>
  11132. <method name="list" return="java.lang.String[]"
  11133. abstract="false" native="false" synchronized="false"
  11134. static="true" final="false" visibility="public"
  11135. deprecated="not deprecated">
  11136. <param name="dir" type="java.io.File"/>
  11137. <exception name="IOException" type="java.io.IOException"/>
  11138. <doc>
  11139. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  11140. when a dir is not a directory or for any I/O error. Instead of having
  11141. null check everywhere File#list() is used, we will add utility API
  11142. to get around this problem. For the majority of cases where we prefer
  11143. an IOException to be thrown.
  11144. @param dir directory for which listing should be performed
  11145. @return list of file names or empty string list
  11146. @exception IOException for invalid directory or for a bad disk.]]>
  11147. </doc>
  11148. </method>
  11149. <method name="createJarWithClassPath" return="java.lang.String[]"
  11150. abstract="false" native="false" synchronized="false"
  11151. static="true" final="false" visibility="public"
  11152. deprecated="not deprecated">
  11153. <param name="inputClassPath" type="java.lang.String"/>
  11154. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11155. <param name="callerEnv" type="java.util.Map"/>
  11156. <exception name="IOException" type="java.io.IOException"/>
  11157. </method>
  11158. <method name="createJarWithClassPath" return="java.lang.String[]"
  11159. abstract="false" native="false" synchronized="false"
  11160. static="true" final="false" visibility="public"
  11161. deprecated="not deprecated">
  11162. <param name="inputClassPath" type="java.lang.String"/>
  11163. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11164. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  11165. <param name="callerEnv" type="java.util.Map"/>
  11166. <exception name="IOException" type="java.io.IOException"/>
  11167. <doc>
  11168. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  11169. that references all specified entries.
  11170. Some platforms may have an upper limit on command line length. For example,
  11171. the maximum command line length on Windows is 8191 characters, but the
  11172. length of the classpath may exceed this. To work around this limitation,
  11173. use this method to create a small intermediate jar with a manifest that
  11174. contains the full classpath. It returns the absolute path to the new jar,
  11175. which the caller may set as the classpath for a new process.
  11176. Environment variable evaluation is not supported within a jar manifest, so
  11177. this method expands environment variables before inserting classpath entries
  11178. to the manifest. The method parses environment variables according to
  11179. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  11180. environment variables are case-insensitive. For example, %VAR% and %var%
  11181. evaluate to the same value.
  11182. Specifying the classpath in a jar manifest does not support wildcards, so
  11183. this method expands wildcards internally. Any classpath entry that ends
  11184. with * is translated to all files at that path with extension .jar or .JAR.
  11185. @param inputClassPath String input classpath to bundle into the jar manifest
  11186. @param pwd Path to working directory to save jar
  11187. @param targetDir path to where the jar execution will have its working dir
  11188. @param callerEnv Map<String, String> caller's environment variables to use
  11189. for expansion
  11190. @return String[] with absolute path to new jar in position 0 and
  11191. unexpanded wild card entry path in position 1
  11192. @throws IOException if there is an I/O error while writing the jar file]]>
  11193. </doc>
  11194. </method>
  11195. <method name="getJarsInDirectory" return="java.util.List"
  11196. abstract="false" native="false" synchronized="false"
  11197. static="true" final="false" visibility="public"
  11198. deprecated="not deprecated">
  11199. <param name="path" type="java.lang.String"/>
  11200. <doc>
  11201. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  11202. wildcard path to return all jars from the directory to use in a classpath.
  11203. It operates only on local paths.
  11204. @param path the path to the directory. The path may include the wildcard.
  11205. @return the list of jars as URLs, or an empty list if there are no jars, or
  11206. the directory does not exist locally]]>
  11207. </doc>
  11208. </method>
  11209. <method name="getJarsInDirectory" return="java.util.List"
  11210. abstract="false" native="false" synchronized="false"
  11211. static="true" final="false" visibility="public"
  11212. deprecated="not deprecated">
  11213. <param name="path" type="java.lang.String"/>
  11214. <param name="useLocal" type="boolean"/>
  11215. <doc>
  11216. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  11217. wildcard path to return all jars from the directory to use in a classpath.
  11218. @param path the path to the directory. The path may include the wildcard.
  11219. @return the list of jars as URLs, or an empty list if there are no jars, or
  11220. the directory does not exist]]>
  11221. </doc>
  11222. </method>
  11223. <method name="compareFs" return="boolean"
  11224. abstract="false" native="false" synchronized="false"
  11225. static="true" final="false" visibility="public"
  11226. deprecated="not deprecated">
  11227. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  11228. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  11229. </method>
  11230. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  11231. transient="false" volatile="false"
  11232. static="true" final="true" visibility="public"
  11233. deprecated="not deprecated">
  11234. </field>
  11235. <doc>
  11236. <![CDATA[A collection of file-processing util methods]]>
  11237. </doc>
  11238. </class>
  11239. <!-- end class org.apache.hadoop.fs.FileUtil -->
  11240. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  11241. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11242. abstract="false"
  11243. static="false" final="false" visibility="public"
  11244. deprecated="not deprecated">
  11245. <constructor name="FilterFileSystem"
  11246. static="false" final="false" visibility="public"
  11247. deprecated="not deprecated">
  11248. </constructor>
  11249. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  11250. static="false" final="false" visibility="public"
  11251. deprecated="not deprecated">
  11252. </constructor>
  11253. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  11254. abstract="false" native="false" synchronized="false"
  11255. static="false" final="false" visibility="public"
  11256. deprecated="not deprecated">
  11257. <doc>
  11258. <![CDATA[Get the raw file system
  11259. @return FileSystem being filtered]]>
  11260. </doc>
  11261. </method>
  11262. <method name="initialize"
  11263. abstract="false" native="false" synchronized="false"
  11264. static="false" final="false" visibility="public"
  11265. deprecated="not deprecated">
  11266. <param name="name" type="java.net.URI"/>
  11267. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11268. <exception name="IOException" type="java.io.IOException"/>
  11269. <doc>
  11270. <![CDATA[Called after a new FileSystem instance is constructed.
  11271. @param name a uri whose authority section names the host, port, etc.
  11272. for this FileSystem
  11273. @param conf the configuration]]>
  11274. </doc>
  11275. </method>
  11276. <method name="getUri" return="java.net.URI"
  11277. abstract="false" native="false" synchronized="false"
  11278. static="false" final="false" visibility="public"
  11279. deprecated="not deprecated">
  11280. <doc>
  11281. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  11282. </doc>
  11283. </method>
  11284. <method name="getCanonicalUri" return="java.net.URI"
  11285. abstract="false" native="false" synchronized="false"
  11286. static="false" final="false" visibility="protected"
  11287. deprecated="not deprecated">
  11288. </method>
  11289. <method name="canonicalizeUri" return="java.net.URI"
  11290. abstract="false" native="false" synchronized="false"
  11291. static="false" final="false" visibility="protected"
  11292. deprecated="not deprecated">
  11293. <param name="uri" type="java.net.URI"/>
  11294. </method>
  11295. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  11296. abstract="false" native="false" synchronized="false"
  11297. static="false" final="false" visibility="public"
  11298. deprecated="not deprecated">
  11299. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11300. <doc>
  11301. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  11302. </doc>
  11303. </method>
  11304. <method name="checkPath"
  11305. abstract="false" native="false" synchronized="false"
  11306. static="false" final="false" visibility="protected"
  11307. deprecated="not deprecated">
  11308. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11309. <doc>
  11310. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  11311. </doc>
  11312. </method>
  11313. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  11314. abstract="false" native="false" synchronized="false"
  11315. static="false" final="false" visibility="public"
  11316. deprecated="not deprecated">
  11317. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  11318. <param name="start" type="long"/>
  11319. <param name="len" type="long"/>
  11320. <exception name="IOException" type="java.io.IOException"/>
  11321. </method>
  11322. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  11323. abstract="false" native="false" synchronized="false"
  11324. static="false" final="false" visibility="public"
  11325. deprecated="not deprecated">
  11326. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11327. <exception name="IOException" type="java.io.IOException"/>
  11328. </method>
  11329. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11330. abstract="false" native="false" synchronized="false"
  11331. static="false" final="false" visibility="public"
  11332. deprecated="not deprecated">
  11333. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11334. <param name="bufferSize" type="int"/>
  11335. <exception name="IOException" type="java.io.IOException"/>
  11336. <doc>
  11337. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  11338. @param f the file name to open
  11339. @param bufferSize the size of the buffer to be used.]]>
  11340. </doc>
  11341. </method>
  11342. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  11343. abstract="false" native="false" synchronized="false"
  11344. static="false" final="false" visibility="public"
  11345. deprecated="not deprecated">
  11346. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11347. <param name="bufferSize" type="int"/>
  11348. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11349. <exception name="IOException" type="java.io.IOException"/>
  11350. </method>
  11351. <method name="concat"
  11352. abstract="false" native="false" synchronized="false"
  11353. static="false" final="false" visibility="public"
  11354. deprecated="not deprecated">
  11355. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11356. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  11357. <exception name="IOException" type="java.io.IOException"/>
  11358. </method>
  11359. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11360. abstract="false" native="false" synchronized="false"
  11361. static="false" final="false" visibility="public"
  11362. deprecated="not deprecated">
  11363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11364. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11365. <param name="overwrite" type="boolean"/>
  11366. <param name="bufferSize" type="int"/>
  11367. <param name="replication" type="short"/>
  11368. <param name="blockSize" type="long"/>
  11369. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11370. <exception name="IOException" type="java.io.IOException"/>
  11371. </method>
  11372. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11373. abstract="false" native="false" synchronized="false"
  11374. static="false" final="false" visibility="public"
  11375. deprecated="not deprecated">
  11376. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11377. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11378. <param name="flags" type="java.util.EnumSet"/>
  11379. <param name="bufferSize" type="int"/>
  11380. <param name="replication" type="short"/>
  11381. <param name="blockSize" type="long"/>
  11382. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11383. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  11384. <exception name="IOException" type="java.io.IOException"/>
  11385. </method>
  11386. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  11387. abstract="false" native="false" synchronized="false"
  11388. static="false" final="false" visibility="protected"
  11389. deprecated="not deprecated">
  11390. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11391. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  11392. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11393. <exception name="IOException" type="java.io.IOException"/>
  11394. </method>
  11395. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  11396. abstract="false" native="false" synchronized="false"
  11397. static="false" final="false" visibility="public"
  11398. deprecated="not deprecated">
  11399. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11400. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11401. <param name="flags" type="java.util.EnumSet"/>
  11402. <param name="bufferSize" type="int"/>
  11403. <param name="replication" type="short"/>
  11404. <param name="blockSize" type="long"/>
  11405. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11406. <exception name="IOException" type="java.io.IOException"/>
  11407. </method>
  11408. <method name="setReplication" return="boolean"
  11409. abstract="false" native="false" synchronized="false"
  11410. static="false" final="false" visibility="public"
  11411. deprecated="not deprecated">
  11412. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11413. <param name="replication" type="short"/>
  11414. <exception name="IOException" type="java.io.IOException"/>
  11415. <doc>
  11416. <![CDATA[Set replication for an existing file.
  11417. @param src file name
  11418. @param replication new replication
  11419. @throws IOException
  11420. @return true if successful;
  11421. false if file does not exist or is a directory]]>
  11422. </doc>
  11423. </method>
  11424. <method name="rename" return="boolean"
  11425. abstract="false" native="false" synchronized="false"
  11426. static="false" final="false" visibility="public"
  11427. deprecated="not deprecated">
  11428. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11429. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11430. <exception name="IOException" type="java.io.IOException"/>
  11431. <doc>
  11432. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  11433. or remote DFS.]]>
  11434. </doc>
  11435. </method>
  11436. <method name="rename"
  11437. abstract="false" native="false" synchronized="false"
  11438. static="false" final="false" visibility="protected"
  11439. deprecated="not deprecated">
  11440. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11441. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11442. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  11443. <exception name="IOException" type="java.io.IOException"/>
  11444. </method>
  11445. <method name="truncate" return="boolean"
  11446. abstract="false" native="false" synchronized="false"
  11447. static="false" final="false" visibility="public"
  11448. deprecated="not deprecated">
  11449. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11450. <param name="newLength" type="long"/>
  11451. <exception name="IOException" type="java.io.IOException"/>
  11452. </method>
  11453. <method name="delete" return="boolean"
  11454. abstract="false" native="false" synchronized="false"
  11455. static="false" final="false" visibility="public"
  11456. deprecated="not deprecated">
  11457. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11458. <param name="recursive" type="boolean"/>
  11459. <exception name="IOException" type="java.io.IOException"/>
  11460. <doc>
  11461. <![CDATA[Delete a file]]>
  11462. </doc>
  11463. </method>
  11464. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  11465. abstract="false" native="false" synchronized="false"
  11466. static="false" final="false" visibility="public"
  11467. deprecated="not deprecated">
  11468. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11469. <exception name="IOException" type="java.io.IOException"/>
  11470. <doc>
  11471. <![CDATA[List files in a directory.]]>
  11472. </doc>
  11473. </method>
  11474. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  11475. abstract="false" native="false" synchronized="false"
  11476. static="false" final="false" visibility="public"
  11477. deprecated="not deprecated">
  11478. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11479. <exception name="IOException" type="java.io.IOException"/>
  11480. </method>
  11481. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  11482. abstract="false" native="false" synchronized="false"
  11483. static="false" final="false" visibility="public"
  11484. deprecated="not deprecated">
  11485. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11486. <exception name="IOException" type="java.io.IOException"/>
  11487. <doc>
  11488. <![CDATA[List files and its block locations in a directory.]]>
  11489. </doc>
  11490. </method>
  11491. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  11492. abstract="false" native="false" synchronized="false"
  11493. static="false" final="false" visibility="public"
  11494. deprecated="not deprecated">
  11495. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11496. <exception name="IOException" type="java.io.IOException"/>
  11497. <doc>
  11498. <![CDATA[Return a remote iterator for listing in a directory]]>
  11499. </doc>
  11500. </method>
  11501. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  11502. abstract="false" native="false" synchronized="false"
  11503. static="false" final="false" visibility="public"
  11504. deprecated="not deprecated">
  11505. </method>
  11506. <method name="setWorkingDirectory"
  11507. abstract="false" native="false" synchronized="false"
  11508. static="false" final="false" visibility="public"
  11509. deprecated="not deprecated">
  11510. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  11511. <doc>
  11512. <![CDATA[Set the current working directory for the given file system. All relative
  11513. paths will be resolved relative to it.
  11514. @param newDir]]>
  11515. </doc>
  11516. </method>
  11517. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11518. abstract="false" native="false" synchronized="false"
  11519. static="false" final="false" visibility="public"
  11520. deprecated="not deprecated">
  11521. <doc>
  11522. <![CDATA[Get the current working directory for the given file system
  11523. @return the directory pathname]]>
  11524. </doc>
  11525. </method>
  11526. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11527. abstract="false" native="false" synchronized="false"
  11528. static="false" final="false" visibility="protected"
  11529. deprecated="not deprecated">
  11530. </method>
  11531. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  11532. abstract="false" native="false" synchronized="false"
  11533. static="false" final="false" visibility="public"
  11534. deprecated="not deprecated">
  11535. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11536. <exception name="IOException" type="java.io.IOException"/>
  11537. </method>
  11538. <method name="mkdirs" return="boolean"
  11539. abstract="false" native="false" synchronized="false"
  11540. static="false" final="false" visibility="public"
  11541. deprecated="not deprecated">
  11542. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11543. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11544. <exception name="IOException" type="java.io.IOException"/>
  11545. </method>
  11546. <method name="mkdirs" return="boolean"
  11547. abstract="false" native="false" synchronized="false"
  11548. static="false" final="false" visibility="public"
  11549. deprecated="not deprecated">
  11550. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11551. <exception name="IOException" type="java.io.IOException"/>
  11552. </method>
  11553. <method name="copyFromLocalFile"
  11554. abstract="false" native="false" synchronized="false"
  11555. static="false" final="false" visibility="public"
  11556. deprecated="not deprecated">
  11557. <param name="delSrc" type="boolean"/>
  11558. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11559. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11560. <exception name="IOException" type="java.io.IOException"/>
  11561. <doc>
  11562. <![CDATA[The src file is on the local disk. Add it to FS at
  11563. the given dst name.
  11564. delSrc indicates if the source should be removed]]>
  11565. </doc>
  11566. </method>
  11567. <method name="copyFromLocalFile"
  11568. abstract="false" native="false" synchronized="false"
  11569. static="false" final="false" visibility="public"
  11570. deprecated="not deprecated">
  11571. <param name="delSrc" type="boolean"/>
  11572. <param name="overwrite" type="boolean"/>
  11573. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  11574. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11575. <exception name="IOException" type="java.io.IOException"/>
  11576. <doc>
  11577. <![CDATA[The src files are on the local disk. Add it to FS at
  11578. the given dst name.
  11579. delSrc indicates if the source should be removed]]>
  11580. </doc>
  11581. </method>
  11582. <method name="copyFromLocalFile"
  11583. abstract="false" native="false" synchronized="false"
  11584. static="false" final="false" visibility="public"
  11585. deprecated="not deprecated">
  11586. <param name="delSrc" type="boolean"/>
  11587. <param name="overwrite" type="boolean"/>
  11588. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11589. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11590. <exception name="IOException" type="java.io.IOException"/>
  11591. <doc>
  11592. <![CDATA[The src file is on the local disk. Add it to FS at
  11593. the given dst name.
  11594. delSrc indicates if the source should be removed]]>
  11595. </doc>
  11596. </method>
  11597. <method name="copyToLocalFile"
  11598. abstract="false" native="false" synchronized="false"
  11599. static="false" final="false" visibility="public"
  11600. deprecated="not deprecated">
  11601. <param name="delSrc" type="boolean"/>
  11602. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11603. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11604. <exception name="IOException" type="java.io.IOException"/>
  11605. <doc>
  11606. <![CDATA[The src file is under FS, and the dst is on the local disk.
  11607. Copy it from FS control to the local dst name.
  11608. delSrc indicates if the src will be removed or not.]]>
  11609. </doc>
  11610. </method>
  11611. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  11612. abstract="false" native="false" synchronized="false"
  11613. static="false" final="false" visibility="public"
  11614. deprecated="not deprecated">
  11615. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11616. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11617. <exception name="IOException" type="java.io.IOException"/>
  11618. <doc>
  11619. <![CDATA[Returns a local File that the user can write output to. The caller
  11620. provides both the eventual FS target name and the local working
  11621. file. If the FS is local, we write directly into the target. If
  11622. the FS is remote, we write into the tmp local area.]]>
  11623. </doc>
  11624. </method>
  11625. <method name="completeLocalOutput"
  11626. abstract="false" native="false" synchronized="false"
  11627. static="false" final="false" visibility="public"
  11628. deprecated="not deprecated">
  11629. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11630. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11631. <exception name="IOException" type="java.io.IOException"/>
  11632. <doc>
  11633. <![CDATA[Called when we're all done writing to the target. A local FS will
  11634. do nothing, because we've written to exactly the right place. A remote
  11635. FS will copy the contents of tmpLocalFile to the correct target at
  11636. fsOutputFile.]]>
  11637. </doc>
  11638. </method>
  11639. <method name="getUsed" return="long"
  11640. abstract="false" native="false" synchronized="false"
  11641. static="false" final="false" visibility="public"
  11642. deprecated="not deprecated">
  11643. <exception name="IOException" type="java.io.IOException"/>
  11644. <doc>
  11645. <![CDATA[Return the total size of all files in the filesystem.]]>
  11646. </doc>
  11647. </method>
  11648. <method name="getUsed" return="long"
  11649. abstract="false" native="false" synchronized="false"
  11650. static="false" final="false" visibility="public"
  11651. deprecated="not deprecated">
  11652. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11653. <exception name="IOException" type="java.io.IOException"/>
  11654. <doc>
  11655. <![CDATA[Return the total size of all files from a specified path.]]>
  11656. </doc>
  11657. </method>
  11658. <method name="getDefaultBlockSize" return="long"
  11659. abstract="false" native="false" synchronized="false"
  11660. static="false" final="false" visibility="public"
  11661. deprecated="not deprecated">
  11662. </method>
  11663. <method name="getDefaultReplication" return="short"
  11664. abstract="false" native="false" synchronized="false"
  11665. static="false" final="false" visibility="public"
  11666. deprecated="not deprecated">
  11667. </method>
  11668. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  11669. abstract="false" native="false" synchronized="false"
  11670. static="false" final="false" visibility="public"
  11671. deprecated="not deprecated">
  11672. <exception name="IOException" type="java.io.IOException"/>
  11673. </method>
  11674. <method name="getDefaultBlockSize" return="long"
  11675. abstract="false" native="false" synchronized="false"
  11676. static="false" final="false" visibility="public"
  11677. deprecated="not deprecated">
  11678. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11679. </method>
  11680. <method name="getDefaultReplication" return="short"
  11681. abstract="false" native="false" synchronized="false"
  11682. static="false" final="false" visibility="public"
  11683. deprecated="not deprecated">
  11684. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11685. </method>
  11686. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  11687. abstract="false" native="false" synchronized="false"
  11688. static="false" final="false" visibility="public"
  11689. deprecated="not deprecated">
  11690. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11691. <exception name="IOException" type="java.io.IOException"/>
  11692. </method>
  11693. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11694. abstract="false" native="false" synchronized="false"
  11695. static="false" final="false" visibility="public"
  11696. deprecated="not deprecated">
  11697. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11698. <exception name="IOException" type="java.io.IOException"/>
  11699. <doc>
  11700. <![CDATA[Get file status.]]>
  11701. </doc>
  11702. </method>
  11703. <method name="access"
  11704. abstract="false" native="false" synchronized="false"
  11705. static="false" final="false" visibility="public"
  11706. deprecated="not deprecated">
  11707. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11708. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  11709. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11710. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11711. <exception name="IOException" type="java.io.IOException"/>
  11712. </method>
  11713. <method name="createSymlink"
  11714. abstract="false" native="false" synchronized="false"
  11715. static="false" final="false" visibility="public"
  11716. deprecated="not deprecated">
  11717. <param name="target" type="org.apache.hadoop.fs.Path"/>
  11718. <param name="link" type="org.apache.hadoop.fs.Path"/>
  11719. <param name="createParent" type="boolean"/>
  11720. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11721. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  11722. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11723. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  11724. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11725. <exception name="IOException" type="java.io.IOException"/>
  11726. </method>
  11727. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  11728. abstract="false" native="false" synchronized="false"
  11729. static="false" final="false" visibility="public"
  11730. deprecated="not deprecated">
  11731. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11732. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11733. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11734. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11735. <exception name="IOException" type="java.io.IOException"/>
  11736. </method>
  11737. <method name="supportsSymlinks" return="boolean"
  11738. abstract="false" native="false" synchronized="false"
  11739. static="false" final="false" visibility="public"
  11740. deprecated="not deprecated">
  11741. </method>
  11742. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  11743. abstract="false" native="false" synchronized="false"
  11744. static="false" final="false" visibility="public"
  11745. deprecated="not deprecated">
  11746. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11747. <exception name="IOException" type="java.io.IOException"/>
  11748. </method>
  11749. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  11750. abstract="false" native="false" synchronized="false"
  11751. static="false" final="false" visibility="protected"
  11752. deprecated="not deprecated">
  11753. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11754. <exception name="IOException" type="java.io.IOException"/>
  11755. </method>
  11756. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  11757. abstract="false" native="false" synchronized="false"
  11758. static="false" final="false" visibility="public"
  11759. deprecated="not deprecated">
  11760. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11761. <exception name="IOException" type="java.io.IOException"/>
  11762. </method>
  11763. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  11764. abstract="false" native="false" synchronized="false"
  11765. static="false" final="false" visibility="public"
  11766. deprecated="not deprecated">
  11767. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11768. <param name="length" type="long"/>
  11769. <exception name="IOException" type="java.io.IOException"/>
  11770. </method>
  11771. <method name="setVerifyChecksum"
  11772. abstract="false" native="false" synchronized="false"
  11773. static="false" final="false" visibility="public"
  11774. deprecated="not deprecated">
  11775. <param name="verifyChecksum" type="boolean"/>
  11776. </method>
  11777. <method name="setWriteChecksum"
  11778. abstract="false" native="false" synchronized="false"
  11779. static="false" final="false" visibility="public"
  11780. deprecated="not deprecated">
  11781. <param name="writeChecksum" type="boolean"/>
  11782. </method>
  11783. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11784. abstract="false" native="false" synchronized="false"
  11785. static="false" final="false" visibility="public"
  11786. deprecated="not deprecated">
  11787. </method>
  11788. <method name="close"
  11789. abstract="false" native="false" synchronized="false"
  11790. static="false" final="false" visibility="public"
  11791. deprecated="not deprecated">
  11792. <exception name="IOException" type="java.io.IOException"/>
  11793. </method>
  11794. <method name="setOwner"
  11795. abstract="false" native="false" synchronized="false"
  11796. static="false" final="false" visibility="public"
  11797. deprecated="not deprecated">
  11798. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11799. <param name="username" type="java.lang.String"/>
  11800. <param name="groupname" type="java.lang.String"/>
  11801. <exception name="IOException" type="java.io.IOException"/>
  11802. </method>
  11803. <method name="setTimes"
  11804. abstract="false" native="false" synchronized="false"
  11805. static="false" final="false" visibility="public"
  11806. deprecated="not deprecated">
  11807. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11808. <param name="mtime" type="long"/>
  11809. <param name="atime" type="long"/>
  11810. <exception name="IOException" type="java.io.IOException"/>
  11811. </method>
  11812. <method name="setPermission"
  11813. abstract="false" native="false" synchronized="false"
  11814. static="false" final="false" visibility="public"
  11815. deprecated="not deprecated">
  11816. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11817. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11818. <exception name="IOException" type="java.io.IOException"/>
  11819. </method>
  11820. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  11821. abstract="false" native="false" synchronized="false"
  11822. static="false" final="false" visibility="protected"
  11823. deprecated="not deprecated">
  11824. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11825. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11826. <param name="flag" type="java.util.EnumSet"/>
  11827. <param name="bufferSize" type="int"/>
  11828. <param name="replication" type="short"/>
  11829. <param name="blockSize" type="long"/>
  11830. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11831. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  11832. <exception name="IOException" type="java.io.IOException"/>
  11833. </method>
  11834. <method name="primitiveMkdir" return="boolean"
  11835. abstract="false" native="false" synchronized="false"
  11836. static="false" final="false" visibility="protected"
  11837. deprecated="not deprecated">
  11838. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11839. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11840. <exception name="IOException" type="java.io.IOException"/>
  11841. </method>
  11842. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  11843. abstract="false" native="false" synchronized="false"
  11844. static="false" final="false" visibility="public"
  11845. deprecated="not deprecated">
  11846. </method>
  11847. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  11848. abstract="false" native="false" synchronized="false"
  11849. static="false" final="false" visibility="public"
  11850. deprecated="not deprecated">
  11851. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11852. <param name="snapshotName" type="java.lang.String"/>
  11853. <exception name="IOException" type="java.io.IOException"/>
  11854. </method>
  11855. <method name="renameSnapshot"
  11856. abstract="false" native="false" synchronized="false"
  11857. static="false" final="false" visibility="public"
  11858. deprecated="not deprecated">
  11859. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11860. <param name="snapshotOldName" type="java.lang.String"/>
  11861. <param name="snapshotNewName" type="java.lang.String"/>
  11862. <exception name="IOException" type="java.io.IOException"/>
  11863. </method>
  11864. <method name="deleteSnapshot"
  11865. abstract="false" native="false" synchronized="false"
  11866. static="false" final="false" visibility="public"
  11867. deprecated="not deprecated">
  11868. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11869. <param name="snapshotName" type="java.lang.String"/>
  11870. <exception name="IOException" type="java.io.IOException"/>
  11871. </method>
  11872. <method name="modifyAclEntries"
  11873. abstract="false" native="false" synchronized="false"
  11874. static="false" final="false" visibility="public"
  11875. deprecated="not deprecated">
  11876. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11877. <param name="aclSpec" type="java.util.List"/>
  11878. <exception name="IOException" type="java.io.IOException"/>
  11879. </method>
  11880. <method name="removeAclEntries"
  11881. abstract="false" native="false" synchronized="false"
  11882. static="false" final="false" visibility="public"
  11883. deprecated="not deprecated">
  11884. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11885. <param name="aclSpec" type="java.util.List"/>
  11886. <exception name="IOException" type="java.io.IOException"/>
  11887. </method>
  11888. <method name="removeDefaultAcl"
  11889. abstract="false" native="false" synchronized="false"
  11890. static="false" final="false" visibility="public"
  11891. deprecated="not deprecated">
  11892. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11893. <exception name="IOException" type="java.io.IOException"/>
  11894. </method>
  11895. <method name="removeAcl"
  11896. abstract="false" native="false" synchronized="false"
  11897. static="false" final="false" visibility="public"
  11898. deprecated="not deprecated">
  11899. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11900. <exception name="IOException" type="java.io.IOException"/>
  11901. </method>
  11902. <method name="setAcl"
  11903. abstract="false" native="false" synchronized="false"
  11904. static="false" final="false" visibility="public"
  11905. deprecated="not deprecated">
  11906. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11907. <param name="aclSpec" type="java.util.List"/>
  11908. <exception name="IOException" type="java.io.IOException"/>
  11909. </method>
  11910. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  11911. abstract="false" native="false" synchronized="false"
  11912. static="false" final="false" visibility="public"
  11913. deprecated="not deprecated">
  11914. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11915. <exception name="IOException" type="java.io.IOException"/>
  11916. </method>
  11917. <method name="setXAttr"
  11918. abstract="false" native="false" synchronized="false"
  11919. static="false" final="false" visibility="public"
  11920. deprecated="not deprecated">
  11921. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11922. <param name="name" type="java.lang.String"/>
  11923. <param name="value" type="byte[]"/>
  11924. <exception name="IOException" type="java.io.IOException"/>
  11925. </method>
  11926. <method name="setXAttr"
  11927. abstract="false" native="false" synchronized="false"
  11928. static="false" final="false" visibility="public"
  11929. deprecated="not deprecated">
  11930. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11931. <param name="name" type="java.lang.String"/>
  11932. <param name="value" type="byte[]"/>
  11933. <param name="flag" type="java.util.EnumSet"/>
  11934. <exception name="IOException" type="java.io.IOException"/>
  11935. </method>
  11936. <method name="getXAttr" return="byte[]"
  11937. abstract="false" native="false" synchronized="false"
  11938. static="false" final="false" visibility="public"
  11939. deprecated="not deprecated">
  11940. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11941. <param name="name" type="java.lang.String"/>
  11942. <exception name="IOException" type="java.io.IOException"/>
  11943. </method>
  11944. <method name="getXAttrs" return="java.util.Map"
  11945. abstract="false" native="false" synchronized="false"
  11946. static="false" final="false" visibility="public"
  11947. deprecated="not deprecated">
  11948. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11949. <exception name="IOException" type="java.io.IOException"/>
  11950. </method>
  11951. <method name="getXAttrs" return="java.util.Map"
  11952. abstract="false" native="false" synchronized="false"
  11953. static="false" final="false" visibility="public"
  11954. deprecated="not deprecated">
  11955. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11956. <param name="names" type="java.util.List"/>
  11957. <exception name="IOException" type="java.io.IOException"/>
  11958. </method>
  11959. <method name="listXAttrs" return="java.util.List"
  11960. abstract="false" native="false" synchronized="false"
  11961. static="false" final="false" visibility="public"
  11962. deprecated="not deprecated">
  11963. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11964. <exception name="IOException" type="java.io.IOException"/>
  11965. </method>
  11966. <method name="removeXAttr"
  11967. abstract="false" native="false" synchronized="false"
  11968. static="false" final="false" visibility="public"
  11969. deprecated="not deprecated">
  11970. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11971. <param name="name" type="java.lang.String"/>
  11972. <exception name="IOException" type="java.io.IOException"/>
  11973. </method>
  11974. <method name="setStoragePolicy"
  11975. abstract="false" native="false" synchronized="false"
  11976. static="false" final="false" visibility="public"
  11977. deprecated="not deprecated">
  11978. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11979. <param name="policyName" type="java.lang.String"/>
  11980. <exception name="IOException" type="java.io.IOException"/>
  11981. </method>
  11982. <method name="unsetStoragePolicy"
  11983. abstract="false" native="false" synchronized="false"
  11984. static="false" final="false" visibility="public"
  11985. deprecated="not deprecated">
  11986. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11987. <exception name="IOException" type="java.io.IOException"/>
  11988. </method>
  11989. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  11990. abstract="false" native="false" synchronized="false"
  11991. static="false" final="false" visibility="public"
  11992. deprecated="not deprecated">
  11993. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11994. <exception name="IOException" type="java.io.IOException"/>
  11995. </method>
  11996. <method name="getAllStoragePolicies" return="java.util.Collection"
  11997. abstract="false" native="false" synchronized="false"
  11998. static="false" final="false" visibility="public"
  11999. deprecated="not deprecated">
  12000. <exception name="IOException" type="java.io.IOException"/>
  12001. </method>
  12002. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  12003. abstract="false" native="false" synchronized="false"
  12004. static="false" final="false" visibility="public"
  12005. deprecated="not deprecated">
  12006. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12007. </method>
  12008. <method name="getTrashRoots" return="java.util.Collection"
  12009. abstract="false" native="false" synchronized="false"
  12010. static="false" final="false" visibility="public"
  12011. deprecated="not deprecated">
  12012. <param name="allUsers" type="boolean"/>
  12013. </method>
  12014. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  12015. abstract="false" native="false" synchronized="false"
  12016. static="false" final="false" visibility="public"
  12017. deprecated="not deprecated">
  12018. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12019. </method>
  12020. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  12021. abstract="false" native="false" synchronized="false"
  12022. static="false" final="false" visibility="public"
  12023. deprecated="not deprecated">
  12024. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12025. </method>
  12026. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  12027. transient="false" volatile="false"
  12028. static="false" final="false" visibility="protected"
  12029. deprecated="not deprecated">
  12030. </field>
  12031. <field name="swapScheme" type="java.lang.String"
  12032. transient="false" volatile="false"
  12033. static="false" final="false" visibility="protected"
  12034. deprecated="not deprecated">
  12035. </field>
  12036. <doc>
  12037. <![CDATA[A <code>FilterFileSystem</code> contains
  12038. some other file system, which it uses as
  12039. its basic file system, possibly transforming
  12040. the data along the way or providing additional
  12041. functionality. The class <code>FilterFileSystem</code>
  12042. itself simply overrides all methods of
  12043. <code>FileSystem</code> with versions that
  12044. pass all requests to the contained file
  12045. system. Subclasses of <code>FilterFileSystem</code>
  12046. may further override some of these methods
  12047. and may also provide additional methods
  12048. and fields.]]>
  12049. </doc>
  12050. </class>
  12051. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  12052. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  12053. <interface name="FsConstants" abstract="true"
  12054. static="false" final="false" visibility="public"
  12055. deprecated="not deprecated">
  12056. <field name="LOCAL_FS_URI" type="java.net.URI"
  12057. transient="false" volatile="false"
  12058. static="true" final="true" visibility="public"
  12059. deprecated="not deprecated">
  12060. </field>
  12061. <field name="FTP_SCHEME" type="java.lang.String"
  12062. transient="false" volatile="false"
  12063. static="true" final="true" visibility="public"
  12064. deprecated="not deprecated">
  12065. </field>
  12066. <field name="MAX_PATH_LINKS" type="int"
  12067. transient="false" volatile="false"
  12068. static="true" final="true" visibility="public"
  12069. deprecated="not deprecated">
  12070. </field>
  12071. <field name="VIEWFS_URI" type="java.net.URI"
  12072. transient="false" volatile="false"
  12073. static="true" final="true" visibility="public"
  12074. deprecated="not deprecated">
  12075. <doc>
  12076. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  12077. </doc>
  12078. </field>
  12079. <field name="VIEWFS_SCHEME" type="java.lang.String"
  12080. transient="false" volatile="false"
  12081. static="true" final="true" visibility="public"
  12082. deprecated="not deprecated">
  12083. </field>
  12084. <doc>
  12085. <![CDATA[FileSystem related constants.]]>
  12086. </doc>
  12087. </interface>
  12088. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  12089. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  12090. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  12091. abstract="false"
  12092. static="false" final="false" visibility="public"
  12093. deprecated="not deprecated">
  12094. <implements name="org.apache.hadoop.fs.Seekable"/>
  12095. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  12096. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  12097. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  12098. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12099. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  12100. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  12101. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  12102. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  12103. <implements name="org.apache.hadoop.fs.ByteBufferPositionedReadable"/>
  12104. <constructor name="FSDataInputStream" type="java.io.InputStream"
  12105. static="false" final="false" visibility="public"
  12106. deprecated="not deprecated">
  12107. </constructor>
  12108. <method name="seek"
  12109. abstract="false" native="false" synchronized="false"
  12110. static="false" final="false" visibility="public"
  12111. deprecated="not deprecated">
  12112. <param name="desired" type="long"/>
  12113. <exception name="IOException" type="java.io.IOException"/>
  12114. <doc>
  12115. <![CDATA[Seek to the given offset.
  12116. @param desired offset to seek to]]>
  12117. </doc>
  12118. </method>
  12119. <method name="getPos" return="long"
  12120. abstract="false" native="false" synchronized="false"
  12121. static="false" final="false" visibility="public"
  12122. deprecated="not deprecated">
  12123. <exception name="IOException" type="java.io.IOException"/>
  12124. <doc>
  12125. <![CDATA[Get the current position in the input stream.
  12126. @return current position in the input stream]]>
  12127. </doc>
  12128. </method>
  12129. <method name="read" return="int"
  12130. abstract="false" native="false" synchronized="false"
  12131. static="false" final="false" visibility="public"
  12132. deprecated="not deprecated">
  12133. <param name="position" type="long"/>
  12134. <param name="buffer" type="byte[]"/>
  12135. <param name="offset" type="int"/>
  12136. <param name="length" type="int"/>
  12137. <exception name="IOException" type="java.io.IOException"/>
  12138. <doc>
  12139. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12140. @param position position in the input stream to seek
  12141. @param buffer buffer into which data is read
  12142. @param offset offset into the buffer in which data is written
  12143. @param length maximum number of bytes to read
  12144. @return total number of bytes read into the buffer, or <code>-1</code>
  12145. if there is no more data because the end of the stream has been
  12146. reached]]>
  12147. </doc>
  12148. </method>
  12149. <method name="readFully"
  12150. abstract="false" native="false" synchronized="false"
  12151. static="false" final="false" visibility="public"
  12152. deprecated="not deprecated">
  12153. <param name="position" type="long"/>
  12154. <param name="buffer" type="byte[]"/>
  12155. <param name="offset" type="int"/>
  12156. <param name="length" type="int"/>
  12157. <exception name="IOException" type="java.io.IOException"/>
  12158. <doc>
  12159. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12160. Continues to read until <code>length</code> bytes have been read.
  12161. @param position position in the input stream to seek
  12162. @param buffer buffer into which data is read
  12163. @param offset offset into the buffer in which data is written
  12164. @param length the number of bytes to read
  12165. @throws IOException IO problems
  12166. @throws EOFException If the end of stream is reached while reading.
  12167. If an exception is thrown an undetermined number
  12168. of bytes in the buffer may have been written.]]>
  12169. </doc>
  12170. </method>
  12171. <method name="readFully"
  12172. abstract="false" native="false" synchronized="false"
  12173. static="false" final="false" visibility="public"
  12174. deprecated="not deprecated">
  12175. <param name="position" type="long"/>
  12176. <param name="buffer" type="byte[]"/>
  12177. <exception name="IOException" type="java.io.IOException"/>
  12178. <doc>
  12179. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  12180. </doc>
  12181. </method>
  12182. <method name="seekToNewSource" return="boolean"
  12183. abstract="false" native="false" synchronized="false"
  12184. static="false" final="false" visibility="public"
  12185. deprecated="not deprecated">
  12186. <param name="targetPos" type="long"/>
  12187. <exception name="IOException" type="java.io.IOException"/>
  12188. <doc>
  12189. <![CDATA[Seek to the given position on an alternate copy of the data.
  12190. @param targetPos position to seek to
  12191. @return true if a new source is found, false otherwise]]>
  12192. </doc>
  12193. </method>
  12194. <method name="read" return="int"
  12195. abstract="false" native="false" synchronized="false"
  12196. static="false" final="false" visibility="public"
  12197. deprecated="not deprecated">
  12198. <param name="buf" type="java.nio.ByteBuffer"/>
  12199. <exception name="IOException" type="java.io.IOException"/>
  12200. </method>
  12201. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  12202. abstract="false" native="false" synchronized="false"
  12203. static="false" final="false" visibility="public"
  12204. deprecated="not deprecated">
  12205. <exception name="IOException" type="java.io.IOException"/>
  12206. </method>
  12207. <method name="setReadahead"
  12208. abstract="false" native="false" synchronized="false"
  12209. static="false" final="false" visibility="public"
  12210. deprecated="not deprecated">
  12211. <param name="readahead" type="java.lang.Long"/>
  12212. <exception name="IOException" type="java.io.IOException"/>
  12213. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12214. </method>
  12215. <method name="setDropBehind"
  12216. abstract="false" native="false" synchronized="false"
  12217. static="false" final="false" visibility="public"
  12218. deprecated="not deprecated">
  12219. <param name="dropBehind" type="java.lang.Boolean"/>
  12220. <exception name="IOException" type="java.io.IOException"/>
  12221. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12222. </method>
  12223. <method name="read" return="java.nio.ByteBuffer"
  12224. abstract="false" native="false" synchronized="false"
  12225. static="false" final="false" visibility="public"
  12226. deprecated="not deprecated">
  12227. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  12228. <param name="maxLength" type="int"/>
  12229. <param name="opts" type="java.util.EnumSet"/>
  12230. <exception name="IOException" type="java.io.IOException"/>
  12231. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12232. </method>
  12233. <method name="read" return="java.nio.ByteBuffer"
  12234. abstract="false" native="false" synchronized="false"
  12235. static="false" final="true" visibility="public"
  12236. deprecated="not deprecated">
  12237. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  12238. <param name="maxLength" type="int"/>
  12239. <exception name="IOException" type="java.io.IOException"/>
  12240. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12241. </method>
  12242. <method name="releaseBuffer"
  12243. abstract="false" native="false" synchronized="false"
  12244. static="false" final="false" visibility="public"
  12245. deprecated="not deprecated">
  12246. <param name="buffer" type="java.nio.ByteBuffer"/>
  12247. </method>
  12248. <method name="unbuffer"
  12249. abstract="false" native="false" synchronized="false"
  12250. static="false" final="false" visibility="public"
  12251. deprecated="not deprecated">
  12252. </method>
  12253. <method name="hasCapability" return="boolean"
  12254. abstract="false" native="false" synchronized="false"
  12255. static="false" final="false" visibility="public"
  12256. deprecated="not deprecated">
  12257. <param name="capability" type="java.lang.String"/>
  12258. </method>
  12259. <method name="toString" return="java.lang.String"
  12260. abstract="false" native="false" synchronized="false"
  12261. static="false" final="false" visibility="public"
  12262. deprecated="not deprecated">
  12263. <doc>
  12264. <![CDATA[String value. Includes the string value of the inner stream
  12265. @return the stream]]>
  12266. </doc>
  12267. </method>
  12268. <method name="read" return="int"
  12269. abstract="false" native="false" synchronized="false"
  12270. static="false" final="false" visibility="public"
  12271. deprecated="not deprecated">
  12272. <param name="position" type="long"/>
  12273. <param name="buf" type="java.nio.ByteBuffer"/>
  12274. <exception name="IOException" type="java.io.IOException"/>
  12275. </method>
  12276. <doc>
  12277. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  12278. and buffers input through a {@link java.io.BufferedInputStream}.]]>
  12279. </doc>
  12280. </class>
  12281. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  12282. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  12283. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  12284. abstract="false"
  12285. static="false" final="false" visibility="public"
  12286. deprecated="not deprecated">
  12287. <implements name="org.apache.hadoop.fs.Syncable"/>
  12288. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12289. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  12290. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  12291. static="false" final="false" visibility="public"
  12292. deprecated="not deprecated">
  12293. <exception name="IOException" type="java.io.IOException"/>
  12294. </constructor>
  12295. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  12296. static="false" final="false" visibility="public"
  12297. deprecated="not deprecated">
  12298. <exception name="IOException" type="java.io.IOException"/>
  12299. </constructor>
  12300. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  12301. static="false" final="false" visibility="public"
  12302. deprecated="not deprecated">
  12303. <exception name="IOException" type="java.io.IOException"/>
  12304. </constructor>
  12305. <method name="getPos" return="long"
  12306. abstract="false" native="false" synchronized="false"
  12307. static="false" final="false" visibility="public"
  12308. deprecated="not deprecated">
  12309. <exception name="IOException" type="java.io.IOException"/>
  12310. <doc>
  12311. <![CDATA[Get the current position in the output stream.
  12312. @return the current position in the output stream]]>
  12313. </doc>
  12314. </method>
  12315. <method name="close"
  12316. abstract="false" native="false" synchronized="false"
  12317. static="false" final="false" visibility="public"
  12318. deprecated="not deprecated">
  12319. <exception name="IOException" type="java.io.IOException"/>
  12320. <doc>
  12321. <![CDATA[Close the underlying output stream.]]>
  12322. </doc>
  12323. </method>
  12324. <method name="hasCapability" return="boolean"
  12325. abstract="false" native="false" synchronized="false"
  12326. static="false" final="false" visibility="public"
  12327. deprecated="not deprecated">
  12328. <param name="capability" type="java.lang.String"/>
  12329. </method>
  12330. <method name="sync"
  12331. abstract="false" native="false" synchronized="false"
  12332. static="false" final="false" visibility="public"
  12333. deprecated="not deprecated">
  12334. <exception name="IOException" type="java.io.IOException"/>
  12335. </method>
  12336. <method name="hflush"
  12337. abstract="false" native="false" synchronized="false"
  12338. static="false" final="false" visibility="public"
  12339. deprecated="not deprecated">
  12340. <exception name="IOException" type="java.io.IOException"/>
  12341. </method>
  12342. <method name="hsync"
  12343. abstract="false" native="false" synchronized="false"
  12344. static="false" final="false" visibility="public"
  12345. deprecated="not deprecated">
  12346. <exception name="IOException" type="java.io.IOException"/>
  12347. </method>
  12348. <method name="setDropBehind"
  12349. abstract="false" native="false" synchronized="false"
  12350. static="false" final="false" visibility="public"
  12351. deprecated="not deprecated">
  12352. <param name="dropBehind" type="java.lang.Boolean"/>
  12353. <exception name="IOException" type="java.io.IOException"/>
  12354. </method>
  12355. <doc>
  12356. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  12357. </doc>
  12358. </class>
  12359. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  12360. <!-- start class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  12361. <class name="FSDataOutputStreamBuilder" extends="java.lang.Object"
  12362. abstract="true"
  12363. static="false" final="false" visibility="public"
  12364. deprecated="not deprecated">
  12365. <constructor name="FSDataOutputStreamBuilder" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path"
  12366. static="false" final="false" visibility="protected"
  12367. deprecated="not deprecated">
  12368. <doc>
  12369. <![CDATA[Constructor.]]>
  12370. </doc>
  12371. </constructor>
  12372. <method name="getThisBuilder" return="B"
  12373. abstract="true" native="false" synchronized="false"
  12374. static="false" final="false" visibility="protected"
  12375. deprecated="not deprecated">
  12376. <doc>
  12377. <![CDATA[Return the concrete implementation of the builder instance.]]>
  12378. </doc>
  12379. </method>
  12380. <method name="getFS" return="org.apache.hadoop.fs.FileSystem"
  12381. abstract="false" native="false" synchronized="false"
  12382. static="false" final="false" visibility="protected"
  12383. deprecated="not deprecated">
  12384. </method>
  12385. <method name="getPath" return="org.apache.hadoop.fs.Path"
  12386. abstract="false" native="false" synchronized="false"
  12387. static="false" final="false" visibility="protected"
  12388. deprecated="not deprecated">
  12389. </method>
  12390. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  12391. abstract="false" native="false" synchronized="false"
  12392. static="false" final="false" visibility="protected"
  12393. deprecated="not deprecated">
  12394. </method>
  12395. <method name="permission" return="B"
  12396. abstract="false" native="false" synchronized="false"
  12397. static="false" final="false" visibility="public"
  12398. deprecated="not deprecated">
  12399. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12400. <doc>
  12401. <![CDATA[Set permission for the file.]]>
  12402. </doc>
  12403. </method>
  12404. <method name="getBufferSize" return="int"
  12405. abstract="false" native="false" synchronized="false"
  12406. static="false" final="false" visibility="protected"
  12407. deprecated="not deprecated">
  12408. </method>
  12409. <method name="bufferSize" return="B"
  12410. abstract="false" native="false" synchronized="false"
  12411. static="false" final="false" visibility="public"
  12412. deprecated="not deprecated">
  12413. <param name="bufSize" type="int"/>
  12414. <doc>
  12415. <![CDATA[Set the size of the buffer to be used.]]>
  12416. </doc>
  12417. </method>
  12418. <method name="getReplication" return="short"
  12419. abstract="false" native="false" synchronized="false"
  12420. static="false" final="false" visibility="protected"
  12421. deprecated="not deprecated">
  12422. </method>
  12423. <method name="replication" return="B"
  12424. abstract="false" native="false" synchronized="false"
  12425. static="false" final="false" visibility="public"
  12426. deprecated="not deprecated">
  12427. <param name="replica" type="short"/>
  12428. <doc>
  12429. <![CDATA[Set replication factor.]]>
  12430. </doc>
  12431. </method>
  12432. <method name="getBlockSize" return="long"
  12433. abstract="false" native="false" synchronized="false"
  12434. static="false" final="false" visibility="protected"
  12435. deprecated="not deprecated">
  12436. </method>
  12437. <method name="blockSize" return="B"
  12438. abstract="false" native="false" synchronized="false"
  12439. static="false" final="false" visibility="public"
  12440. deprecated="not deprecated">
  12441. <param name="blkSize" type="long"/>
  12442. <doc>
  12443. <![CDATA[Set block size.]]>
  12444. </doc>
  12445. </method>
  12446. <method name="isRecursive" return="boolean"
  12447. abstract="false" native="false" synchronized="false"
  12448. static="false" final="false" visibility="protected"
  12449. deprecated="not deprecated">
  12450. <doc>
  12451. <![CDATA[Return true to create the parent directories if they do not exist.]]>
  12452. </doc>
  12453. </method>
  12454. <method name="recursive" return="B"
  12455. abstract="false" native="false" synchronized="false"
  12456. static="false" final="false" visibility="public"
  12457. deprecated="not deprecated">
  12458. <doc>
  12459. <![CDATA[Create the parent directory if they do not exist.]]>
  12460. </doc>
  12461. </method>
  12462. <method name="getProgress" return="org.apache.hadoop.util.Progressable"
  12463. abstract="false" native="false" synchronized="false"
  12464. static="false" final="false" visibility="protected"
  12465. deprecated="not deprecated">
  12466. </method>
  12467. <method name="progress" return="B"
  12468. abstract="false" native="false" synchronized="false"
  12469. static="false" final="false" visibility="public"
  12470. deprecated="not deprecated">
  12471. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  12472. <doc>
  12473. <![CDATA[Set the facility of reporting progress.]]>
  12474. </doc>
  12475. </method>
  12476. <method name="getFlags" return="java.util.EnumSet"
  12477. abstract="false" native="false" synchronized="false"
  12478. static="false" final="false" visibility="protected"
  12479. deprecated="not deprecated">
  12480. </method>
  12481. <method name="create" return="B"
  12482. abstract="false" native="false" synchronized="false"
  12483. static="false" final="false" visibility="public"
  12484. deprecated="not deprecated">
  12485. <doc>
  12486. <![CDATA[Create an FSDataOutputStream at the specified path.]]>
  12487. </doc>
  12488. </method>
  12489. <method name="overwrite" return="B"
  12490. abstract="false" native="false" synchronized="false"
  12491. static="false" final="false" visibility="public"
  12492. deprecated="not deprecated">
  12493. <param name="overwrite" type="boolean"/>
  12494. <doc>
  12495. <![CDATA[Set to true to overwrite the existing file.
  12496. Set it to false, an exception will be thrown when calling {@link #build()}
  12497. if the file exists.]]>
  12498. </doc>
  12499. </method>
  12500. <method name="append" return="B"
  12501. abstract="false" native="false" synchronized="false"
  12502. static="false" final="false" visibility="public"
  12503. deprecated="not deprecated">
  12504. <doc>
  12505. <![CDATA[Append to an existing file (optional operation).]]>
  12506. </doc>
  12507. </method>
  12508. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  12509. abstract="false" native="false" synchronized="false"
  12510. static="false" final="false" visibility="protected"
  12511. deprecated="not deprecated">
  12512. </method>
  12513. <method name="checksumOpt" return="B"
  12514. abstract="false" native="false" synchronized="false"
  12515. static="false" final="false" visibility="public"
  12516. deprecated="not deprecated">
  12517. <param name="chksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  12518. <doc>
  12519. <![CDATA[Set checksum opt.]]>
  12520. </doc>
  12521. </method>
  12522. <method name="build" return="S"
  12523. abstract="true" native="false" synchronized="false"
  12524. static="false" final="false" visibility="public"
  12525. deprecated="not deprecated">
  12526. <exception name="IOException" type="java.io.IOException"/>
  12527. <doc>
  12528. <![CDATA[Create the FSDataOutputStream to write on the file system.
  12529. @throws HadoopIllegalArgumentException if the parameters are not valid.
  12530. @throws IOException on errors when file system creates or appends the file.]]>
  12531. </doc>
  12532. </method>
  12533. <doc>
  12534. <![CDATA[Builder for {@link FSDataOutputStream} and its subclasses.
  12535. It is used to create {@link FSDataOutputStream} when creating a new file or
  12536. appending an existing file on {@link FileSystem}.
  12537. By default, it does not create parent directory that do not exist.
  12538. {@link FileSystem#createNonRecursive(Path, boolean, int, short, long,
  12539. Progressable)}.
  12540. To create missing parent directory, use {@link #recursive()}.]]>
  12541. </doc>
  12542. </class>
  12543. <!-- end class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  12544. <!-- start class org.apache.hadoop.fs.FSError -->
  12545. <class name="FSError" extends="java.lang.Error"
  12546. abstract="false"
  12547. static="false" final="false" visibility="public"
  12548. deprecated="not deprecated">
  12549. <doc>
  12550. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  12551. in the native filesystem.]]>
  12552. </doc>
  12553. </class>
  12554. <!-- end class org.apache.hadoop.fs.FSError -->
  12555. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  12556. <class name="FSInputStream" extends="java.io.InputStream"
  12557. abstract="true"
  12558. static="false" final="false" visibility="public"
  12559. deprecated="not deprecated">
  12560. <implements name="org.apache.hadoop.fs.Seekable"/>
  12561. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  12562. <constructor name="FSInputStream"
  12563. static="false" final="false" visibility="public"
  12564. deprecated="not deprecated">
  12565. </constructor>
  12566. <method name="seek"
  12567. abstract="true" native="false" synchronized="false"
  12568. static="false" final="false" visibility="public"
  12569. deprecated="not deprecated">
  12570. <param name="pos" type="long"/>
  12571. <exception name="IOException" type="java.io.IOException"/>
  12572. <doc>
  12573. <![CDATA[Seek to the given offset from the start of the file.
  12574. The next read() will be from that location. Can't
  12575. seek past the end of the file.]]>
  12576. </doc>
  12577. </method>
  12578. <method name="getPos" return="long"
  12579. abstract="true" native="false" synchronized="false"
  12580. static="false" final="false" visibility="public"
  12581. deprecated="not deprecated">
  12582. <exception name="IOException" type="java.io.IOException"/>
  12583. <doc>
  12584. <![CDATA[Return the current offset from the start of the file]]>
  12585. </doc>
  12586. </method>
  12587. <method name="seekToNewSource" return="boolean"
  12588. abstract="true" native="false" synchronized="false"
  12589. static="false" final="false" visibility="public"
  12590. deprecated="not deprecated">
  12591. <param name="targetPos" type="long"/>
  12592. <exception name="IOException" type="java.io.IOException"/>
  12593. <doc>
  12594. <![CDATA[Seeks a different copy of the data. Returns true if
  12595. found a new source, false otherwise.]]>
  12596. </doc>
  12597. </method>
  12598. <method name="read" return="int"
  12599. abstract="false" native="false" synchronized="false"
  12600. static="false" final="false" visibility="public"
  12601. deprecated="not deprecated">
  12602. <param name="position" type="long"/>
  12603. <param name="buffer" type="byte[]"/>
  12604. <param name="offset" type="int"/>
  12605. <param name="length" type="int"/>
  12606. <exception name="IOException" type="java.io.IOException"/>
  12607. </method>
  12608. <method name="validatePositionedReadArgs"
  12609. abstract="false" native="false" synchronized="false"
  12610. static="false" final="false" visibility="protected"
  12611. deprecated="not deprecated">
  12612. <param name="position" type="long"/>
  12613. <param name="buffer" type="byte[]"/>
  12614. <param name="offset" type="int"/>
  12615. <param name="length" type="int"/>
  12616. <exception name="EOFException" type="java.io.EOFException"/>
  12617. <doc>
  12618. <![CDATA[Validation code, available for use in subclasses.
  12619. @param position position: if negative an EOF exception is raised
  12620. @param buffer destination buffer
  12621. @param offset offset within the buffer
  12622. @param length length of bytes to read
  12623. @throws EOFException if the position is negative
  12624. @throws IndexOutOfBoundsException if there isn't space for the amount of
  12625. data requested.
  12626. @throws IllegalArgumentException other arguments are invalid.]]>
  12627. </doc>
  12628. </method>
  12629. <method name="readFully"
  12630. abstract="false" native="false" synchronized="false"
  12631. static="false" final="false" visibility="public"
  12632. deprecated="not deprecated">
  12633. <param name="position" type="long"/>
  12634. <param name="buffer" type="byte[]"/>
  12635. <param name="offset" type="int"/>
  12636. <param name="length" type="int"/>
  12637. <exception name="IOException" type="java.io.IOException"/>
  12638. </method>
  12639. <method name="readFully"
  12640. abstract="false" native="false" synchronized="false"
  12641. static="false" final="false" visibility="public"
  12642. deprecated="not deprecated">
  12643. <param name="position" type="long"/>
  12644. <param name="buffer" type="byte[]"/>
  12645. <exception name="IOException" type="java.io.IOException"/>
  12646. </method>
  12647. <doc>
  12648. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  12649. of RAF-style seek ability.]]>
  12650. </doc>
  12651. </class>
  12652. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  12653. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  12654. <class name="FsServerDefaults" extends="java.lang.Object"
  12655. abstract="false"
  12656. static="false" final="false" visibility="public"
  12657. deprecated="not deprecated">
  12658. <implements name="org.apache.hadoop.io.Writable"/>
  12659. <constructor name="FsServerDefaults"
  12660. static="false" final="false" visibility="public"
  12661. deprecated="not deprecated">
  12662. </constructor>
  12663. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  12664. static="false" final="false" visibility="public"
  12665. deprecated="not deprecated">
  12666. </constructor>
  12667. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String"
  12668. static="false" final="false" visibility="public"
  12669. deprecated="not deprecated">
  12670. </constructor>
  12671. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String, byte"
  12672. static="false" final="false" visibility="public"
  12673. deprecated="not deprecated">
  12674. </constructor>
  12675. <method name="getBlockSize" return="long"
  12676. abstract="false" native="false" synchronized="false"
  12677. static="false" final="false" visibility="public"
  12678. deprecated="not deprecated">
  12679. </method>
  12680. <method name="getBytesPerChecksum" return="int"
  12681. abstract="false" native="false" synchronized="false"
  12682. static="false" final="false" visibility="public"
  12683. deprecated="not deprecated">
  12684. </method>
  12685. <method name="getWritePacketSize" return="int"
  12686. abstract="false" native="false" synchronized="false"
  12687. static="false" final="false" visibility="public"
  12688. deprecated="not deprecated">
  12689. </method>
  12690. <method name="getReplication" return="short"
  12691. abstract="false" native="false" synchronized="false"
  12692. static="false" final="false" visibility="public"
  12693. deprecated="not deprecated">
  12694. </method>
  12695. <method name="getFileBufferSize" return="int"
  12696. abstract="false" native="false" synchronized="false"
  12697. static="false" final="false" visibility="public"
  12698. deprecated="not deprecated">
  12699. </method>
  12700. <method name="getEncryptDataTransfer" return="boolean"
  12701. abstract="false" native="false" synchronized="false"
  12702. static="false" final="false" visibility="public"
  12703. deprecated="not deprecated">
  12704. </method>
  12705. <method name="getTrashInterval" return="long"
  12706. abstract="false" native="false" synchronized="false"
  12707. static="false" final="false" visibility="public"
  12708. deprecated="not deprecated">
  12709. </method>
  12710. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  12711. abstract="false" native="false" synchronized="false"
  12712. static="false" final="false" visibility="public"
  12713. deprecated="not deprecated">
  12714. </method>
  12715. <method name="getKeyProviderUri" return="java.lang.String"
  12716. abstract="false" native="false" synchronized="false"
  12717. static="false" final="false" visibility="public"
  12718. deprecated="not deprecated">
  12719. </method>
  12720. <method name="getDefaultStoragePolicyId" return="byte"
  12721. abstract="false" native="false" synchronized="false"
  12722. static="false" final="false" visibility="public"
  12723. deprecated="not deprecated">
  12724. </method>
  12725. <doc>
  12726. <![CDATA[Provides server default configuration values to clients.]]>
  12727. </doc>
  12728. </class>
  12729. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  12730. <!-- start class org.apache.hadoop.fs.FsStatus -->
  12731. <class name="FsStatus" extends="java.lang.Object"
  12732. abstract="false"
  12733. static="false" final="false" visibility="public"
  12734. deprecated="not deprecated">
  12735. <implements name="org.apache.hadoop.io.Writable"/>
  12736. <constructor name="FsStatus" type="long, long, long"
  12737. static="false" final="false" visibility="public"
  12738. deprecated="not deprecated">
  12739. <doc>
  12740. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  12741. </doc>
  12742. </constructor>
  12743. <method name="getCapacity" return="long"
  12744. abstract="false" native="false" synchronized="false"
  12745. static="false" final="false" visibility="public"
  12746. deprecated="not deprecated">
  12747. <doc>
  12748. <![CDATA[Return the capacity in bytes of the file system]]>
  12749. </doc>
  12750. </method>
  12751. <method name="getUsed" return="long"
  12752. abstract="false" native="false" synchronized="false"
  12753. static="false" final="false" visibility="public"
  12754. deprecated="not deprecated">
  12755. <doc>
  12756. <![CDATA[Return the number of bytes used on the file system]]>
  12757. </doc>
  12758. </method>
  12759. <method name="getRemaining" return="long"
  12760. abstract="false" native="false" synchronized="false"
  12761. static="false" final="false" visibility="public"
  12762. deprecated="not deprecated">
  12763. <doc>
  12764. <![CDATA[Return the number of remaining bytes on the file system]]>
  12765. </doc>
  12766. </method>
  12767. <method name="write"
  12768. abstract="false" native="false" synchronized="false"
  12769. static="false" final="false" visibility="public"
  12770. deprecated="not deprecated">
  12771. <param name="out" type="java.io.DataOutput"/>
  12772. <exception name="IOException" type="java.io.IOException"/>
  12773. </method>
  12774. <method name="readFields"
  12775. abstract="false" native="false" synchronized="false"
  12776. static="false" final="false" visibility="public"
  12777. deprecated="not deprecated">
  12778. <param name="in" type="java.io.DataInput"/>
  12779. <exception name="IOException" type="java.io.IOException"/>
  12780. </method>
  12781. <doc>
  12782. <![CDATA[This class is used to represent the capacity, free and used space on a
  12783. {@link FileSystem}.]]>
  12784. </doc>
  12785. </class>
  12786. <!-- end class org.apache.hadoop.fs.FsStatus -->
  12787. <!-- start class org.apache.hadoop.fs.GlobalStorageStatistics -->
  12788. <class name="GlobalStorageStatistics" extends="java.lang.Enum"
  12789. abstract="false"
  12790. static="false" final="true" visibility="public"
  12791. deprecated="not deprecated">
  12792. <method name="values" return="org.apache.hadoop.fs.GlobalStorageStatistics[]"
  12793. abstract="false" native="false" synchronized="false"
  12794. static="true" final="false" visibility="public"
  12795. deprecated="not deprecated">
  12796. </method>
  12797. <method name="valueOf" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  12798. abstract="false" native="false" synchronized="false"
  12799. static="true" final="false" visibility="public"
  12800. deprecated="not deprecated">
  12801. <param name="name" type="java.lang.String"/>
  12802. </method>
  12803. <method name="get" return="org.apache.hadoop.fs.StorageStatistics"
  12804. abstract="false" native="false" synchronized="true"
  12805. static="false" final="false" visibility="public"
  12806. deprecated="not deprecated">
  12807. <param name="name" type="java.lang.String"/>
  12808. <doc>
  12809. <![CDATA[Get the StorageStatistics object with the given name.
  12810. @param name The storage statistics object name.
  12811. @return The StorageStatistics object with the given name, or
  12812. null if there is none.]]>
  12813. </doc>
  12814. </method>
  12815. <method name="put" return="org.apache.hadoop.fs.StorageStatistics"
  12816. abstract="false" native="false" synchronized="true"
  12817. static="false" final="false" visibility="public"
  12818. deprecated="not deprecated">
  12819. <param name="name" type="java.lang.String"/>
  12820. <param name="provider" type="org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider"/>
  12821. <doc>
  12822. <![CDATA[Create or return the StorageStatistics object with the given name.
  12823. @param name The storage statistics object name.
  12824. @param provider An object which can create a new StorageStatistics
  12825. object if needed.
  12826. @return The StorageStatistics object with the given name.
  12827. @throws RuntimeException If the StorageStatisticsProvider provides a null
  12828. object or a new StorageStatistics object with the
  12829. wrong name.]]>
  12830. </doc>
  12831. </method>
  12832. <method name="reset"
  12833. abstract="false" native="false" synchronized="true"
  12834. static="false" final="false" visibility="public"
  12835. deprecated="not deprecated">
  12836. <doc>
  12837. <![CDATA[Reset all global storage statistics.]]>
  12838. </doc>
  12839. </method>
  12840. <method name="iterator" return="java.util.Iterator"
  12841. abstract="false" native="false" synchronized="true"
  12842. static="false" final="false" visibility="public"
  12843. deprecated="not deprecated">
  12844. <doc>
  12845. <![CDATA[Get an iterator that we can use to iterate throw all the global storage
  12846. statistics objects.]]>
  12847. </doc>
  12848. </method>
  12849. <doc>
  12850. <![CDATA[Stores global storage statistics objects.]]>
  12851. </doc>
  12852. </class>
  12853. <!-- end class org.apache.hadoop.fs.GlobalStorageStatistics -->
  12854. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  12855. <class name="GlobFilter" extends="java.lang.Object"
  12856. abstract="false"
  12857. static="false" final="false" visibility="public"
  12858. deprecated="not deprecated">
  12859. <implements name="org.apache.hadoop.fs.PathFilter"/>
  12860. <constructor name="GlobFilter" type="java.lang.String"
  12861. static="false" final="false" visibility="public"
  12862. deprecated="not deprecated">
  12863. <exception name="IOException" type="java.io.IOException"/>
  12864. <doc>
  12865. <![CDATA[Creates a glob filter with the specified file pattern.
  12866. @param filePattern the file pattern.
  12867. @throws IOException thrown if the file pattern is incorrect.]]>
  12868. </doc>
  12869. </constructor>
  12870. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  12871. static="false" final="false" visibility="public"
  12872. deprecated="not deprecated">
  12873. <exception name="IOException" type="java.io.IOException"/>
  12874. <doc>
  12875. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  12876. @param filePattern the file pattern.
  12877. @param filter user filter in addition to the glob pattern.
  12878. @throws IOException thrown if the file pattern is incorrect.]]>
  12879. </doc>
  12880. </constructor>
  12881. <method name="hasPattern" return="boolean"
  12882. abstract="false" native="false" synchronized="false"
  12883. static="false" final="false" visibility="public"
  12884. deprecated="not deprecated">
  12885. </method>
  12886. <method name="accept" return="boolean"
  12887. abstract="false" native="false" synchronized="false"
  12888. static="false" final="false" visibility="public"
  12889. deprecated="not deprecated">
  12890. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12891. </method>
  12892. <doc>
  12893. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  12894. </doc>
  12895. </class>
  12896. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  12897. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  12898. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  12899. abstract="false"
  12900. static="false" final="false" visibility="public"
  12901. deprecated="not deprecated">
  12902. <constructor name="InvalidPathException" type="java.lang.String"
  12903. static="false" final="false" visibility="public"
  12904. deprecated="not deprecated">
  12905. <doc>
  12906. <![CDATA[Constructs exception with the specified detail message.
  12907. @param path invalid path.]]>
  12908. </doc>
  12909. </constructor>
  12910. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  12911. static="false" final="false" visibility="public"
  12912. deprecated="not deprecated">
  12913. <doc>
  12914. <![CDATA[Constructs exception with the specified detail message.
  12915. @param path invalid path.
  12916. @param reason Reason <code>path</code> is invalid]]>
  12917. </doc>
  12918. </constructor>
  12919. <doc>
  12920. <![CDATA[Path string is invalid either because it has invalid characters or due to
  12921. other file system specific reasons.]]>
  12922. </doc>
  12923. </class>
  12924. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  12925. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  12926. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  12927. abstract="false"
  12928. static="false" final="false" visibility="public"
  12929. deprecated="not deprecated">
  12930. <constructor name="LocalFileSystem"
  12931. static="false" final="false" visibility="public"
  12932. deprecated="not deprecated">
  12933. </constructor>
  12934. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  12935. static="false" final="false" visibility="public"
  12936. deprecated="not deprecated">
  12937. </constructor>
  12938. <method name="initialize"
  12939. abstract="false" native="false" synchronized="false"
  12940. static="false" final="false" visibility="public"
  12941. deprecated="not deprecated">
  12942. <param name="name" type="java.net.URI"/>
  12943. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12944. <exception name="IOException" type="java.io.IOException"/>
  12945. </method>
  12946. <method name="getScheme" return="java.lang.String"
  12947. abstract="false" native="false" synchronized="false"
  12948. static="false" final="false" visibility="public"
  12949. deprecated="not deprecated">
  12950. <doc>
  12951. <![CDATA[Return the protocol scheme for the FileSystem.
  12952. <p/>
  12953. @return <code>file</code>]]>
  12954. </doc>
  12955. </method>
  12956. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  12957. abstract="false" native="false" synchronized="false"
  12958. static="false" final="false" visibility="public"
  12959. deprecated="not deprecated">
  12960. </method>
  12961. <method name="pathToFile" return="java.io.File"
  12962. abstract="false" native="false" synchronized="false"
  12963. static="false" final="false" visibility="public"
  12964. deprecated="not deprecated">
  12965. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12966. <doc>
  12967. <![CDATA[Convert a path to a File.]]>
  12968. </doc>
  12969. </method>
  12970. <method name="copyFromLocalFile"
  12971. abstract="false" native="false" synchronized="false"
  12972. static="false" final="false" visibility="public"
  12973. deprecated="not deprecated">
  12974. <param name="delSrc" type="boolean"/>
  12975. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12976. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12977. <exception name="IOException" type="java.io.IOException"/>
  12978. </method>
  12979. <method name="copyToLocalFile"
  12980. abstract="false" native="false" synchronized="false"
  12981. static="false" final="false" visibility="public"
  12982. deprecated="not deprecated">
  12983. <param name="delSrc" type="boolean"/>
  12984. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12985. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12986. <exception name="IOException" type="java.io.IOException"/>
  12987. </method>
  12988. <method name="reportChecksumFailure" return="boolean"
  12989. abstract="false" native="false" synchronized="false"
  12990. static="false" final="false" visibility="public"
  12991. deprecated="not deprecated">
  12992. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12993. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  12994. <param name="inPos" type="long"/>
  12995. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  12996. <param name="sumsPos" type="long"/>
  12997. <doc>
  12998. <![CDATA[Moves files to a bad file directory on the same device, so that their
  12999. storage will not be reused.]]>
  13000. </doc>
  13001. </method>
  13002. <method name="supportsSymlinks" return="boolean"
  13003. abstract="false" native="false" synchronized="false"
  13004. static="false" final="false" visibility="public"
  13005. deprecated="not deprecated">
  13006. </method>
  13007. <method name="createSymlink"
  13008. abstract="false" native="false" synchronized="false"
  13009. static="false" final="false" visibility="public"
  13010. deprecated="not deprecated">
  13011. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13012. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13013. <param name="createParent" type="boolean"/>
  13014. <exception name="IOException" type="java.io.IOException"/>
  13015. </method>
  13016. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13017. abstract="false" native="false" synchronized="false"
  13018. static="false" final="false" visibility="public"
  13019. deprecated="not deprecated">
  13020. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13021. <exception name="IOException" type="java.io.IOException"/>
  13022. </method>
  13023. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13024. abstract="false" native="false" synchronized="false"
  13025. static="false" final="false" visibility="public"
  13026. deprecated="not deprecated">
  13027. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13028. <exception name="IOException" type="java.io.IOException"/>
  13029. </method>
  13030. <doc>
  13031. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  13032. </doc>
  13033. </class>
  13034. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  13035. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  13036. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  13037. abstract="false"
  13038. static="false" final="false" visibility="public"
  13039. deprecated="not deprecated">
  13040. <constructor name="LocatedFileStatus"
  13041. static="false" final="false" visibility="public"
  13042. deprecated="not deprecated">
  13043. </constructor>
  13044. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  13045. static="false" final="false" visibility="public"
  13046. deprecated="not deprecated">
  13047. <exception name="IOException" type="java.io.IOException"/>
  13048. <doc>
  13049. <![CDATA[Constructor
  13050. @param stat a file status
  13051. @param locations a file's block locations]]>
  13052. </doc>
  13053. </constructor>
  13054. <constructor name="LocatedFileStatus" type="long, boolean, int, long, long, long, org.apache.hadoop.fs.permission.FsPermission, java.lang.String, java.lang.String, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.BlockLocation[]"
  13055. static="false" final="false" visibility="public"
  13056. deprecated="not deprecated">
  13057. <doc>
  13058. <![CDATA[Constructor
  13059. @param length a file's length
  13060. @param isdir if the path is a directory
  13061. @param block_replication the file's replication factor
  13062. @param blocksize a file's block size
  13063. @param modification_time a file's modification time
  13064. @param access_time a file's access time
  13065. @param permission a file's permission
  13066. @param owner a file's owner
  13067. @param group a file's group
  13068. @param symlink symlink if the path is a symbolic link
  13069. @param path the path's qualified name
  13070. @param locations a file's block locations]]>
  13071. </doc>
  13072. </constructor>
  13073. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  13074. abstract="false" native="false" synchronized="false"
  13075. static="false" final="false" visibility="public"
  13076. deprecated="not deprecated">
  13077. <doc>
  13078. <![CDATA[Get the file's block locations
  13079. @return the file's block locations]]>
  13080. </doc>
  13081. </method>
  13082. <method name="compareTo" return="int"
  13083. abstract="false" native="false" synchronized="false"
  13084. static="false" final="false" visibility="public"
  13085. deprecated="not deprecated">
  13086. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  13087. <doc>
  13088. <![CDATA[Compare this FileStatus to another FileStatus
  13089. @param o the FileStatus to be compared.
  13090. @return a negative integer, zero, or a positive integer as this object
  13091. is less than, equal to, or greater than the specified object.]]>
  13092. </doc>
  13093. </method>
  13094. <method name="equals" return="boolean"
  13095. abstract="false" native="false" synchronized="false"
  13096. static="false" final="false" visibility="public"
  13097. deprecated="not deprecated">
  13098. <param name="o" type="java.lang.Object"/>
  13099. <doc>
  13100. <![CDATA[Compare if this object is equal to another object
  13101. @param o the object to be compared.
  13102. @return true if two file status has the same path name; false if not.]]>
  13103. </doc>
  13104. </method>
  13105. <method name="hashCode" return="int"
  13106. abstract="false" native="false" synchronized="false"
  13107. static="false" final="false" visibility="public"
  13108. deprecated="not deprecated">
  13109. <doc>
  13110. <![CDATA[Returns a hash code value for the object, which is defined as
  13111. the hash code of the path name.
  13112. @return a hash code value for the path name.]]>
  13113. </doc>
  13114. </method>
  13115. <doc>
  13116. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  13117. </doc>
  13118. </class>
  13119. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  13120. <!-- start class org.apache.hadoop.fs.Options -->
  13121. <class name="Options" extends="java.lang.Object"
  13122. abstract="false"
  13123. static="false" final="true" visibility="public"
  13124. deprecated="not deprecated">
  13125. <constructor name="Options"
  13126. static="false" final="false" visibility="public"
  13127. deprecated="not deprecated">
  13128. </constructor>
  13129. <doc>
  13130. <![CDATA[This class contains options related to file system operations.]]>
  13131. </doc>
  13132. </class>
  13133. <!-- end class org.apache.hadoop.fs.Options -->
  13134. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  13135. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  13136. abstract="false"
  13137. static="false" final="false" visibility="public"
  13138. deprecated="not deprecated">
  13139. <constructor name="ParentNotDirectoryException"
  13140. static="false" final="false" visibility="public"
  13141. deprecated="not deprecated">
  13142. </constructor>
  13143. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  13144. static="false" final="false" visibility="public"
  13145. deprecated="not deprecated">
  13146. </constructor>
  13147. <doc>
  13148. <![CDATA[Indicates that the parent of specified Path is not a directory
  13149. as expected.]]>
  13150. </doc>
  13151. </class>
  13152. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  13153. <!-- start class org.apache.hadoop.fs.Path -->
  13154. <class name="Path" extends="java.lang.Object"
  13155. abstract="false"
  13156. static="false" final="false" visibility="public"
  13157. deprecated="not deprecated">
  13158. <implements name="java.lang.Comparable"/>
  13159. <constructor name="Path" type="java.lang.String, java.lang.String"
  13160. static="false" final="false" visibility="public"
  13161. deprecated="not deprecated">
  13162. <doc>
  13163. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13164. @param parent the parent path
  13165. @param child the child path]]>
  13166. </doc>
  13167. </constructor>
  13168. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  13169. static="false" final="false" visibility="public"
  13170. deprecated="not deprecated">
  13171. <doc>
  13172. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13173. @param parent the parent path
  13174. @param child the child path]]>
  13175. </doc>
  13176. </constructor>
  13177. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  13178. static="false" final="false" visibility="public"
  13179. deprecated="not deprecated">
  13180. <doc>
  13181. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13182. @param parent the parent path
  13183. @param child the child path]]>
  13184. </doc>
  13185. </constructor>
  13186. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  13187. static="false" final="false" visibility="public"
  13188. deprecated="not deprecated">
  13189. <doc>
  13190. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13191. @param parent the parent path
  13192. @param child the child path]]>
  13193. </doc>
  13194. </constructor>
  13195. <constructor name="Path" type="java.lang.String"
  13196. static="false" final="false" visibility="public"
  13197. deprecated="not deprecated">
  13198. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  13199. <doc>
  13200. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  13201. unescaped elements and some additional normalization.
  13202. @param pathString the path string]]>
  13203. </doc>
  13204. </constructor>
  13205. <constructor name="Path" type="java.net.URI"
  13206. static="false" final="false" visibility="public"
  13207. deprecated="not deprecated">
  13208. <doc>
  13209. <![CDATA[Construct a path from a URI
  13210. @param aUri the source URI]]>
  13211. </doc>
  13212. </constructor>
  13213. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  13214. static="false" final="false" visibility="public"
  13215. deprecated="not deprecated">
  13216. <doc>
  13217. <![CDATA[Construct a Path from components.
  13218. @param scheme the scheme
  13219. @param authority the authority
  13220. @param path the path]]>
  13221. </doc>
  13222. </constructor>
  13223. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  13224. abstract="false" native="false" synchronized="false"
  13225. static="true" final="false" visibility="public"
  13226. deprecated="not deprecated">
  13227. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13228. <doc>
  13229. <![CDATA[Return a version of the given Path without the scheme information.
  13230. @param path the source Path
  13231. @return a copy of this Path without the scheme information]]>
  13232. </doc>
  13233. </method>
  13234. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  13235. abstract="false" native="false" synchronized="false"
  13236. static="true" final="false" visibility="public"
  13237. deprecated="not deprecated">
  13238. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  13239. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  13240. <doc>
  13241. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  13242. The returned path has the scheme and authority of the first path. On
  13243. Windows, the drive specification in the second path is discarded.
  13244. @param path1 the first path
  13245. @param path2 the second path, to be appended relative to path1
  13246. @return the merged path]]>
  13247. </doc>
  13248. </method>
  13249. <method name="isWindowsAbsolutePath" return="boolean"
  13250. abstract="false" native="false" synchronized="false"
  13251. static="true" final="false" visibility="public"
  13252. deprecated="not deprecated">
  13253. <param name="pathString" type="java.lang.String"/>
  13254. <param name="slashed" type="boolean"/>
  13255. <doc>
  13256. <![CDATA[Determine whether a given path string represents an absolute path on
  13257. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  13258. @param pathString the path string to evaluate
  13259. @param slashed true if the given path is prefixed with "/"
  13260. @return true if the supplied path looks like an absolute path with a Windows
  13261. drive-specifier]]>
  13262. </doc>
  13263. </method>
  13264. <method name="toUri" return="java.net.URI"
  13265. abstract="false" native="false" synchronized="false"
  13266. static="false" final="false" visibility="public"
  13267. deprecated="not deprecated">
  13268. <doc>
  13269. <![CDATA[Convert this Path to a URI.
  13270. @return this Path as a URI]]>
  13271. </doc>
  13272. </method>
  13273. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  13274. abstract="false" native="false" synchronized="false"
  13275. static="false" final="false" visibility="public"
  13276. deprecated="not deprecated">
  13277. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13278. <exception name="IOException" type="java.io.IOException"/>
  13279. <doc>
  13280. <![CDATA[Return the FileSystem that owns this Path.
  13281. @param conf the configuration to use when resolving the FileSystem
  13282. @return the FileSystem that owns this Path
  13283. @throws java.io.IOException thrown if there's an issue resolving the
  13284. FileSystem]]>
  13285. </doc>
  13286. </method>
  13287. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  13288. abstract="false" native="false" synchronized="false"
  13289. static="false" final="false" visibility="public"
  13290. deprecated="not deprecated">
  13291. <doc>
  13292. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  13293. absolute <strong>and</strong> the scheme is null, <b>and</b> the authority
  13294. is null.
  13295. @return whether the path is absolute and the URI has no scheme nor
  13296. authority parts]]>
  13297. </doc>
  13298. </method>
  13299. <method name="isUriPathAbsolute" return="boolean"
  13300. abstract="false" native="false" synchronized="false"
  13301. static="false" final="false" visibility="public"
  13302. deprecated="not deprecated">
  13303. <doc>
  13304. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  13305. absolute.
  13306. @return whether this URI's path is absolute]]>
  13307. </doc>
  13308. </method>
  13309. <method name="isAbsolute" return="boolean"
  13310. abstract="false" native="false" synchronized="false"
  13311. static="false" final="false" visibility="public"
  13312. deprecated="not deprecated">
  13313. <doc>
  13314. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  13315. absolute. This method is a wrapper for {@link #isUriPathAbsolute()}.
  13316. @return whether this URI's path is absolute]]>
  13317. </doc>
  13318. </method>
  13319. <method name="isRoot" return="boolean"
  13320. abstract="false" native="false" synchronized="false"
  13321. static="false" final="false" visibility="public"
  13322. deprecated="not deprecated">
  13323. <doc>
  13324. <![CDATA[Returns true if and only if this path represents the root of a file system.
  13325. @return true if and only if this path represents the root of a file system]]>
  13326. </doc>
  13327. </method>
  13328. <method name="getName" return="java.lang.String"
  13329. abstract="false" native="false" synchronized="false"
  13330. static="false" final="false" visibility="public"
  13331. deprecated="not deprecated">
  13332. <doc>
  13333. <![CDATA[Returns the final component of this path.
  13334. @return the final component of this path]]>
  13335. </doc>
  13336. </method>
  13337. <method name="getParent" return="org.apache.hadoop.fs.Path"
  13338. abstract="false" native="false" synchronized="false"
  13339. static="false" final="false" visibility="public"
  13340. deprecated="not deprecated">
  13341. <doc>
  13342. <![CDATA[Returns the parent of a path or null if at root.
  13343. @return the parent of a path or null if at root]]>
  13344. </doc>
  13345. </method>
  13346. <method name="suffix" return="org.apache.hadoop.fs.Path"
  13347. abstract="false" native="false" synchronized="false"
  13348. static="false" final="false" visibility="public"
  13349. deprecated="not deprecated">
  13350. <param name="suffix" type="java.lang.String"/>
  13351. <doc>
  13352. <![CDATA[Adds a suffix to the final name in the path.
  13353. @param suffix the suffix to add
  13354. @return a new path with the suffix added]]>
  13355. </doc>
  13356. </method>
  13357. <method name="toString" return="java.lang.String"
  13358. abstract="false" native="false" synchronized="false"
  13359. static="false" final="false" visibility="public"
  13360. deprecated="not deprecated">
  13361. </method>
  13362. <method name="equals" return="boolean"
  13363. abstract="false" native="false" synchronized="false"
  13364. static="false" final="false" visibility="public"
  13365. deprecated="not deprecated">
  13366. <param name="o" type="java.lang.Object"/>
  13367. </method>
  13368. <method name="hashCode" return="int"
  13369. abstract="false" native="false" synchronized="false"
  13370. static="false" final="false" visibility="public"
  13371. deprecated="not deprecated">
  13372. </method>
  13373. <method name="compareTo" return="int"
  13374. abstract="false" native="false" synchronized="false"
  13375. static="false" final="false" visibility="public"
  13376. deprecated="not deprecated">
  13377. <param name="o" type="java.lang.Object"/>
  13378. </method>
  13379. <method name="depth" return="int"
  13380. abstract="false" native="false" synchronized="false"
  13381. static="false" final="false" visibility="public"
  13382. deprecated="not deprecated">
  13383. <doc>
  13384. <![CDATA[Returns the number of elements in this path.
  13385. @return the number of elements in this path]]>
  13386. </doc>
  13387. </method>
  13388. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  13389. abstract="false" native="false" synchronized="false"
  13390. static="false" final="false" visibility="public"
  13391. deprecated="use {@link #makeQualified(URI, Path)}">
  13392. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13393. <doc>
  13394. <![CDATA[Returns a qualified path object for the {@link FileSystem}'s working
  13395. directory.
  13396. @param fs the target FileSystem
  13397. @return a qualified path object for the FileSystem's working directory
  13398. @deprecated use {@link #makeQualified(URI, Path)}]]>
  13399. </doc>
  13400. </method>
  13401. <field name="SEPARATOR" type="java.lang.String"
  13402. transient="false" volatile="false"
  13403. static="true" final="true" visibility="public"
  13404. deprecated="not deprecated">
  13405. <doc>
  13406. <![CDATA[The directory separator, a slash.]]>
  13407. </doc>
  13408. </field>
  13409. <field name="SEPARATOR_CHAR" type="char"
  13410. transient="false" volatile="false"
  13411. static="true" final="true" visibility="public"
  13412. deprecated="not deprecated">
  13413. <doc>
  13414. <![CDATA[The directory separator, a slash, as a character.]]>
  13415. </doc>
  13416. </field>
  13417. <field name="CUR_DIR" type="java.lang.String"
  13418. transient="false" volatile="false"
  13419. static="true" final="true" visibility="public"
  13420. deprecated="not deprecated">
  13421. <doc>
  13422. <![CDATA[The current directory, ".".]]>
  13423. </doc>
  13424. </field>
  13425. <field name="WINDOWS" type="boolean"
  13426. transient="false" volatile="false"
  13427. static="true" final="true" visibility="public"
  13428. deprecated="not deprecated">
  13429. <doc>
  13430. <![CDATA[Whether the current host is a Windows machine.]]>
  13431. </doc>
  13432. </field>
  13433. <doc>
  13434. <![CDATA[Names a file or directory in a {@link FileSystem}.
  13435. Path strings use slash as the directory separator.]]>
  13436. </doc>
  13437. </class>
  13438. <!-- end class org.apache.hadoop.fs.Path -->
  13439. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  13440. <interface name="PathFilter" abstract="true"
  13441. static="false" final="false" visibility="public"
  13442. deprecated="not deprecated">
  13443. <method name="accept" return="boolean"
  13444. abstract="false" native="false" synchronized="false"
  13445. static="false" final="false" visibility="public"
  13446. deprecated="not deprecated">
  13447. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13448. <doc>
  13449. <![CDATA[Tests whether or not the specified abstract pathname should be
  13450. included in a pathname list.
  13451. @param path The abstract pathname to be tested
  13452. @return <code>true</code> if and only if <code>pathname</code>
  13453. should be included]]>
  13454. </doc>
  13455. </method>
  13456. </interface>
  13457. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  13458. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  13459. <interface name="PositionedReadable" abstract="true"
  13460. static="false" final="false" visibility="public"
  13461. deprecated="not deprecated">
  13462. <method name="read" return="int"
  13463. abstract="false" native="false" synchronized="false"
  13464. static="false" final="false" visibility="public"
  13465. deprecated="not deprecated">
  13466. <param name="position" type="long"/>
  13467. <param name="buffer" type="byte[]"/>
  13468. <param name="offset" type="int"/>
  13469. <param name="length" type="int"/>
  13470. <exception name="IOException" type="java.io.IOException"/>
  13471. <doc>
  13472. <![CDATA[Read up to the specified number of bytes, from a given
  13473. position within a file, and return the number of bytes read. This does not
  13474. change the current offset of a file, and is thread-safe.
  13475. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  13476. @param position position within file
  13477. @param buffer destination buffer
  13478. @param offset offset in the buffer
  13479. @param length number of bytes to read
  13480. @return actual number of bytes read; -1 means "none"
  13481. @throws IOException IO problems.]]>
  13482. </doc>
  13483. </method>
  13484. <method name="readFully"
  13485. abstract="false" native="false" synchronized="false"
  13486. static="false" final="false" visibility="public"
  13487. deprecated="not deprecated">
  13488. <param name="position" type="long"/>
  13489. <param name="buffer" type="byte[]"/>
  13490. <param name="offset" type="int"/>
  13491. <param name="length" type="int"/>
  13492. <exception name="IOException" type="java.io.IOException"/>
  13493. <doc>
  13494. <![CDATA[Read the specified number of bytes, from a given
  13495. position within a file. This does not
  13496. change the current offset of a file, and is thread-safe.
  13497. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  13498. @param position position within file
  13499. @param buffer destination buffer
  13500. @param offset offset in the buffer
  13501. @param length number of bytes to read
  13502. @throws IOException IO problems.
  13503. @throws EOFException the end of the data was reached before
  13504. the read operation completed]]>
  13505. </doc>
  13506. </method>
  13507. <method name="readFully"
  13508. abstract="false" native="false" synchronized="false"
  13509. static="false" final="false" visibility="public"
  13510. deprecated="not deprecated">
  13511. <param name="position" type="long"/>
  13512. <param name="buffer" type="byte[]"/>
  13513. <exception name="IOException" type="java.io.IOException"/>
  13514. <doc>
  13515. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  13516. position within a file. This does not
  13517. change the current offset of a file, and is thread-safe.
  13518. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  13519. @param position position within file
  13520. @param buffer destination buffer
  13521. @throws IOException IO problems.
  13522. @throws EOFException the end of the data was reached before
  13523. the read operation completed]]>
  13524. </doc>
  13525. </method>
  13526. <doc>
  13527. <![CDATA[Stream that permits positional reading.
  13528. Implementations are required to implement thread-safe operations; this may
  13529. be supported by concurrent access to the data, or by using a synchronization
  13530. mechanism to serialize access.
  13531. Not all implementations meet this requirement. Those that do not cannot
  13532. be used as a backing store for some applications, such as Apache HBase.
  13533. Independent of whether or not they are thread safe, some implementations
  13534. may make the intermediate state of the system, specifically the position
  13535. obtained in {@code Seekable.getPos()} visible.]]>
  13536. </doc>
  13537. </interface>
  13538. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  13539. <!-- start class org.apache.hadoop.fs.QuotaUsage -->
  13540. <class name="QuotaUsage" extends="java.lang.Object"
  13541. abstract="false"
  13542. static="false" final="false" visibility="public"
  13543. deprecated="not deprecated">
  13544. <constructor name="QuotaUsage"
  13545. static="false" final="false" visibility="protected"
  13546. deprecated="not deprecated">
  13547. </constructor>
  13548. <constructor name="QuotaUsage" type="org.apache.hadoop.fs.QuotaUsage.Builder"
  13549. static="false" final="false" visibility="protected"
  13550. deprecated="not deprecated">
  13551. <doc>
  13552. <![CDATA[Build the instance based on the builder.]]>
  13553. </doc>
  13554. </constructor>
  13555. <method name="setQuota"
  13556. abstract="false" native="false" synchronized="false"
  13557. static="false" final="false" visibility="protected"
  13558. deprecated="not deprecated">
  13559. <param name="quota" type="long"/>
  13560. </method>
  13561. <method name="setSpaceConsumed"
  13562. abstract="false" native="false" synchronized="false"
  13563. static="false" final="false" visibility="protected"
  13564. deprecated="not deprecated">
  13565. <param name="spaceConsumed" type="long"/>
  13566. </method>
  13567. <method name="setSpaceQuota"
  13568. abstract="false" native="false" synchronized="false"
  13569. static="false" final="false" visibility="protected"
  13570. deprecated="not deprecated">
  13571. <param name="spaceQuota" type="long"/>
  13572. </method>
  13573. <method name="getFileAndDirectoryCount" return="long"
  13574. abstract="false" native="false" synchronized="false"
  13575. static="false" final="false" visibility="public"
  13576. deprecated="not deprecated">
  13577. <doc>
  13578. <![CDATA[Return the directory count.]]>
  13579. </doc>
  13580. </method>
  13581. <method name="getQuota" return="long"
  13582. abstract="false" native="false" synchronized="false"
  13583. static="false" final="false" visibility="public"
  13584. deprecated="not deprecated">
  13585. <doc>
  13586. <![CDATA[Return the directory quota.]]>
  13587. </doc>
  13588. </method>
  13589. <method name="getSpaceConsumed" return="long"
  13590. abstract="false" native="false" synchronized="false"
  13591. static="false" final="false" visibility="public"
  13592. deprecated="not deprecated">
  13593. <doc>
  13594. <![CDATA[Return (disk) space consumed.]]>
  13595. </doc>
  13596. </method>
  13597. <method name="getSpaceQuota" return="long"
  13598. abstract="false" native="false" synchronized="false"
  13599. static="false" final="false" visibility="public"
  13600. deprecated="not deprecated">
  13601. <doc>
  13602. <![CDATA[Return (disk) space quota.]]>
  13603. </doc>
  13604. </method>
  13605. <method name="getTypeQuota" return="long"
  13606. abstract="false" native="false" synchronized="false"
  13607. static="false" final="false" visibility="public"
  13608. deprecated="not deprecated">
  13609. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  13610. <doc>
  13611. <![CDATA[Return storage type quota.]]>
  13612. </doc>
  13613. </method>
  13614. <method name="getTypeConsumed" return="long"
  13615. abstract="false" native="false" synchronized="false"
  13616. static="false" final="false" visibility="public"
  13617. deprecated="not deprecated">
  13618. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  13619. <doc>
  13620. <![CDATA[Return storage type consumed.]]>
  13621. </doc>
  13622. </method>
  13623. <method name="isTypeQuotaSet" return="boolean"
  13624. abstract="false" native="false" synchronized="false"
  13625. static="false" final="false" visibility="public"
  13626. deprecated="not deprecated">
  13627. <doc>
  13628. <![CDATA[Return true if any storage type quota has been set.]]>
  13629. </doc>
  13630. </method>
  13631. <method name="isTypeConsumedAvailable" return="boolean"
  13632. abstract="false" native="false" synchronized="false"
  13633. static="false" final="false" visibility="public"
  13634. deprecated="not deprecated">
  13635. <doc>
  13636. <![CDATA[Return true if any storage type consumption information is available.]]>
  13637. </doc>
  13638. </method>
  13639. <method name="equals" return="boolean"
  13640. abstract="false" native="false" synchronized="false"
  13641. static="false" final="false" visibility="public"
  13642. deprecated="not deprecated">
  13643. <param name="to" type="java.lang.Object"/>
  13644. </method>
  13645. <method name="hashCode" return="int"
  13646. abstract="false" native="false" synchronized="false"
  13647. static="false" final="false" visibility="public"
  13648. deprecated="not deprecated">
  13649. </method>
  13650. <method name="getHeader" return="java.lang.String"
  13651. abstract="false" native="false" synchronized="false"
  13652. static="true" final="false" visibility="public"
  13653. deprecated="not deprecated">
  13654. <doc>
  13655. <![CDATA[Return the header of the output.
  13656. @return the header of the output]]>
  13657. </doc>
  13658. </method>
  13659. <method name="toString" return="java.lang.String"
  13660. abstract="false" native="false" synchronized="false"
  13661. static="false" final="false" visibility="public"
  13662. deprecated="not deprecated">
  13663. </method>
  13664. <method name="toString" return="java.lang.String"
  13665. abstract="false" native="false" synchronized="false"
  13666. static="false" final="false" visibility="public"
  13667. deprecated="not deprecated">
  13668. <param name="hOption" type="boolean"/>
  13669. </method>
  13670. <method name="toString" return="java.lang.String"
  13671. abstract="false" native="false" synchronized="false"
  13672. static="false" final="false" visibility="public"
  13673. deprecated="not deprecated">
  13674. <param name="hOption" type="boolean"/>
  13675. <param name="tOption" type="boolean"/>
  13676. <param name="types" type="java.util.List"/>
  13677. <doc>
  13678. <![CDATA[Return the string representation of the object in the output format.
  13679. if hOption is false file sizes are returned in bytes
  13680. if hOption is true file sizes are returned in human readable
  13681. @param hOption a flag indicating if human readable output if to be used
  13682. @return the string representation of the object]]>
  13683. </doc>
  13684. </method>
  13685. <method name="getQuotaUsage" return="java.lang.String"
  13686. abstract="false" native="false" synchronized="false"
  13687. static="false" final="false" visibility="protected"
  13688. deprecated="not deprecated">
  13689. <param name="hOption" type="boolean"/>
  13690. </method>
  13691. <method name="getTypesQuotaUsage" return="java.lang.String"
  13692. abstract="false" native="false" synchronized="false"
  13693. static="false" final="false" visibility="protected"
  13694. deprecated="not deprecated">
  13695. <param name="hOption" type="boolean"/>
  13696. <param name="types" type="java.util.List"/>
  13697. </method>
  13698. <method name="getStorageTypeHeader" return="java.lang.String"
  13699. abstract="false" native="false" synchronized="false"
  13700. static="true" final="false" visibility="public"
  13701. deprecated="not deprecated">
  13702. <param name="storageTypes" type="java.util.List"/>
  13703. <doc>
  13704. <![CDATA[return the header of with the StorageTypes.
  13705. @param storageTypes
  13706. @return storage header string]]>
  13707. </doc>
  13708. </method>
  13709. <field name="QUOTA_STRING_FORMAT" type="java.lang.String"
  13710. transient="false" volatile="false"
  13711. static="true" final="true" visibility="protected"
  13712. deprecated="not deprecated">
  13713. <doc>
  13714. <![CDATA[Output format:
  13715. <----12----> <----15----> <----15----> <----15----> <-------18------->
  13716. QUOTA REMAINING_QUATA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME]]>
  13717. </doc>
  13718. </field>
  13719. <field name="SPACE_QUOTA_STRING_FORMAT" type="java.lang.String"
  13720. transient="false" volatile="false"
  13721. static="true" final="true" visibility="protected"
  13722. deprecated="not deprecated">
  13723. </field>
  13724. <field name="QUOTA_HEADER_FIELDS" type="java.lang.String[]"
  13725. transient="false" volatile="false"
  13726. static="true" final="true" visibility="protected"
  13727. deprecated="not deprecated">
  13728. </field>
  13729. <field name="QUOTA_HEADER" type="java.lang.String"
  13730. transient="false" volatile="false"
  13731. static="true" final="true" visibility="protected"
  13732. deprecated="not deprecated">
  13733. </field>
  13734. <doc>
  13735. <![CDATA[Store the quota usage of a directory.]]>
  13736. </doc>
  13737. </class>
  13738. <!-- end class org.apache.hadoop.fs.QuotaUsage -->
  13739. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  13740. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  13741. abstract="false"
  13742. static="false" final="false" visibility="public"
  13743. deprecated="not deprecated">
  13744. <constructor name="RawLocalFileSystem"
  13745. static="false" final="false" visibility="public"
  13746. deprecated="not deprecated">
  13747. </constructor>
  13748. <method name="useStatIfAvailable"
  13749. abstract="false" native="false" synchronized="false"
  13750. static="true" final="false" visibility="public"
  13751. deprecated="not deprecated">
  13752. </method>
  13753. <method name="pathToFile" return="java.io.File"
  13754. abstract="false" native="false" synchronized="false"
  13755. static="false" final="false" visibility="public"
  13756. deprecated="not deprecated">
  13757. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13758. <doc>
  13759. <![CDATA[Convert a path to a File.]]>
  13760. </doc>
  13761. </method>
  13762. <method name="getUri" return="java.net.URI"
  13763. abstract="false" native="false" synchronized="false"
  13764. static="false" final="false" visibility="public"
  13765. deprecated="not deprecated">
  13766. </method>
  13767. <method name="initialize"
  13768. abstract="false" native="false" synchronized="false"
  13769. static="false" final="false" visibility="public"
  13770. deprecated="not deprecated">
  13771. <param name="uri" type="java.net.URI"/>
  13772. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13773. <exception name="IOException" type="java.io.IOException"/>
  13774. </method>
  13775. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13776. abstract="false" native="false" synchronized="false"
  13777. static="false" final="false" visibility="public"
  13778. deprecated="not deprecated">
  13779. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13780. <param name="bufferSize" type="int"/>
  13781. <exception name="IOException" type="java.io.IOException"/>
  13782. </method>
  13783. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13784. abstract="false" native="false" synchronized="false"
  13785. static="false" final="false" visibility="public"
  13786. deprecated="not deprecated">
  13787. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13788. <param name="bufferSize" type="int"/>
  13789. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13790. <exception name="IOException" type="java.io.IOException"/>
  13791. </method>
  13792. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13793. abstract="false" native="false" synchronized="false"
  13794. static="false" final="false" visibility="public"
  13795. deprecated="not deprecated">
  13796. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13797. <param name="overwrite" type="boolean"/>
  13798. <param name="bufferSize" type="int"/>
  13799. <param name="replication" type="short"/>
  13800. <param name="blockSize" type="long"/>
  13801. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13802. <exception name="IOException" type="java.io.IOException"/>
  13803. </method>
  13804. <method name="createOutputStream" return="java.io.OutputStream"
  13805. abstract="false" native="false" synchronized="false"
  13806. static="false" final="false" visibility="protected"
  13807. deprecated="not deprecated">
  13808. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13809. <param name="append" type="boolean"/>
  13810. <exception name="IOException" type="java.io.IOException"/>
  13811. </method>
  13812. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  13813. abstract="false" native="false" synchronized="false"
  13814. static="false" final="false" visibility="protected"
  13815. deprecated="not deprecated">
  13816. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13817. <param name="append" type="boolean"/>
  13818. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13819. <exception name="IOException" type="java.io.IOException"/>
  13820. </method>
  13821. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  13822. abstract="false" native="false" synchronized="false"
  13823. static="false" final="false" visibility="public"
  13824. deprecated="not deprecated">
  13825. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13826. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13827. <param name="flags" type="java.util.EnumSet"/>
  13828. <param name="bufferSize" type="int"/>
  13829. <param name="replication" type="short"/>
  13830. <param name="blockSize" type="long"/>
  13831. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13832. <exception name="IOException" type="java.io.IOException"/>
  13833. </method>
  13834. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13835. abstract="false" native="false" synchronized="false"
  13836. static="false" final="false" visibility="public"
  13837. deprecated="not deprecated">
  13838. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13839. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13840. <param name="overwrite" type="boolean"/>
  13841. <param name="bufferSize" type="int"/>
  13842. <param name="replication" type="short"/>
  13843. <param name="blockSize" type="long"/>
  13844. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13845. <exception name="IOException" type="java.io.IOException"/>
  13846. </method>
  13847. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  13848. abstract="false" native="false" synchronized="false"
  13849. static="false" final="false" visibility="public"
  13850. deprecated="not deprecated">
  13851. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13852. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13853. <param name="overwrite" type="boolean"/>
  13854. <param name="bufferSize" type="int"/>
  13855. <param name="replication" type="short"/>
  13856. <param name="blockSize" type="long"/>
  13857. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13858. <exception name="IOException" type="java.io.IOException"/>
  13859. </method>
  13860. <method name="rename" return="boolean"
  13861. abstract="false" native="false" synchronized="false"
  13862. static="false" final="false" visibility="public"
  13863. deprecated="not deprecated">
  13864. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13865. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13866. <exception name="IOException" type="java.io.IOException"/>
  13867. </method>
  13868. <method name="handleEmptyDstDirectoryOnWindows" return="boolean"
  13869. abstract="false" native="false" synchronized="false"
  13870. static="false" final="true" visibility="public"
  13871. deprecated="not deprecated">
  13872. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13873. <param name="srcFile" type="java.io.File"/>
  13874. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13875. <param name="dstFile" type="java.io.File"/>
  13876. <exception name="IOException" type="java.io.IOException"/>
  13877. </method>
  13878. <method name="truncate" return="boolean"
  13879. abstract="false" native="false" synchronized="false"
  13880. static="false" final="false" visibility="public"
  13881. deprecated="not deprecated">
  13882. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13883. <param name="newLength" type="long"/>
  13884. <exception name="IOException" type="java.io.IOException"/>
  13885. </method>
  13886. <method name="delete" return="boolean"
  13887. abstract="false" native="false" synchronized="false"
  13888. static="false" final="false" visibility="public"
  13889. deprecated="not deprecated">
  13890. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13891. <param name="recursive" type="boolean"/>
  13892. <exception name="IOException" type="java.io.IOException"/>
  13893. <doc>
  13894. <![CDATA[Delete the given path to a file or directory.
  13895. @param p the path to delete
  13896. @param recursive to delete sub-directories
  13897. @return true if the file or directory and all its contents were deleted
  13898. @throws IOException if p is non-empty and recursive is false]]>
  13899. </doc>
  13900. </method>
  13901. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13902. abstract="false" native="false" synchronized="false"
  13903. static="false" final="false" visibility="public"
  13904. deprecated="not deprecated">
  13905. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13906. <exception name="IOException" type="java.io.IOException"/>
  13907. </method>
  13908. <method name="mkOneDir" return="boolean"
  13909. abstract="false" native="false" synchronized="false"
  13910. static="false" final="false" visibility="protected"
  13911. deprecated="not deprecated">
  13912. <param name="p2f" type="java.io.File"/>
  13913. <exception name="IOException" type="java.io.IOException"/>
  13914. </method>
  13915. <method name="mkOneDirWithMode" return="boolean"
  13916. abstract="false" native="false" synchronized="false"
  13917. static="false" final="false" visibility="protected"
  13918. deprecated="not deprecated">
  13919. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13920. <param name="p2f" type="java.io.File"/>
  13921. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13922. <exception name="IOException" type="java.io.IOException"/>
  13923. </method>
  13924. <method name="mkdirs" return="boolean"
  13925. abstract="false" native="false" synchronized="false"
  13926. static="false" final="false" visibility="public"
  13927. deprecated="not deprecated">
  13928. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13929. <exception name="IOException" type="java.io.IOException"/>
  13930. <doc>
  13931. <![CDATA[Creates the specified directory hierarchy. Does not
  13932. treat existence as an error.]]>
  13933. </doc>
  13934. </method>
  13935. <method name="mkdirs" return="boolean"
  13936. abstract="false" native="false" synchronized="false"
  13937. static="false" final="false" visibility="public"
  13938. deprecated="not deprecated">
  13939. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13940. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13941. <exception name="IOException" type="java.io.IOException"/>
  13942. </method>
  13943. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  13944. abstract="false" native="false" synchronized="false"
  13945. static="false" final="false" visibility="public"
  13946. deprecated="not deprecated">
  13947. </method>
  13948. <method name="setWorkingDirectory"
  13949. abstract="false" native="false" synchronized="false"
  13950. static="false" final="false" visibility="public"
  13951. deprecated="not deprecated">
  13952. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  13953. <doc>
  13954. <![CDATA[Set the working directory to the given directory.]]>
  13955. </doc>
  13956. </method>
  13957. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13958. abstract="false" native="false" synchronized="false"
  13959. static="false" final="false" visibility="public"
  13960. deprecated="not deprecated">
  13961. </method>
  13962. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13963. abstract="false" native="false" synchronized="false"
  13964. static="false" final="false" visibility="protected"
  13965. deprecated="not deprecated">
  13966. </method>
  13967. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  13968. abstract="false" native="false" synchronized="false"
  13969. static="false" final="false" visibility="public"
  13970. deprecated="not deprecated">
  13971. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13972. <exception name="IOException" type="java.io.IOException"/>
  13973. </method>
  13974. <method name="moveFromLocalFile"
  13975. abstract="false" native="false" synchronized="false"
  13976. static="false" final="false" visibility="public"
  13977. deprecated="not deprecated">
  13978. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13979. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13980. <exception name="IOException" type="java.io.IOException"/>
  13981. </method>
  13982. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  13983. abstract="false" native="false" synchronized="false"
  13984. static="false" final="false" visibility="public"
  13985. deprecated="not deprecated">
  13986. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  13987. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  13988. <exception name="IOException" type="java.io.IOException"/>
  13989. </method>
  13990. <method name="completeLocalOutput"
  13991. abstract="false" native="false" synchronized="false"
  13992. static="false" final="false" visibility="public"
  13993. deprecated="not deprecated">
  13994. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  13995. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  13996. <exception name="IOException" type="java.io.IOException"/>
  13997. </method>
  13998. <method name="close"
  13999. abstract="false" native="false" synchronized="false"
  14000. static="false" final="false" visibility="public"
  14001. deprecated="not deprecated">
  14002. <exception name="IOException" type="java.io.IOException"/>
  14003. </method>
  14004. <method name="toString" return="java.lang.String"
  14005. abstract="false" native="false" synchronized="false"
  14006. static="false" final="false" visibility="public"
  14007. deprecated="not deprecated">
  14008. </method>
  14009. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  14010. abstract="false" native="false" synchronized="false"
  14011. static="false" final="false" visibility="public"
  14012. deprecated="not deprecated">
  14013. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14014. <exception name="IOException" type="java.io.IOException"/>
  14015. </method>
  14016. <method name="setOwner"
  14017. abstract="false" native="false" synchronized="false"
  14018. static="false" final="false" visibility="public"
  14019. deprecated="not deprecated">
  14020. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14021. <param name="username" type="java.lang.String"/>
  14022. <param name="groupname" type="java.lang.String"/>
  14023. <exception name="IOException" type="java.io.IOException"/>
  14024. <doc>
  14025. <![CDATA[Use the command chown to set owner.]]>
  14026. </doc>
  14027. </method>
  14028. <method name="setPermission"
  14029. abstract="false" native="false" synchronized="false"
  14030. static="false" final="false" visibility="public"
  14031. deprecated="not deprecated">
  14032. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14033. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14034. <exception name="IOException" type="java.io.IOException"/>
  14035. <doc>
  14036. <![CDATA[Use the command chmod to set permission.]]>
  14037. </doc>
  14038. </method>
  14039. <method name="setTimes"
  14040. abstract="false" native="false" synchronized="false"
  14041. static="false" final="false" visibility="public"
  14042. deprecated="not deprecated">
  14043. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14044. <param name="mtime" type="long"/>
  14045. <param name="atime" type="long"/>
  14046. <exception name="IOException" type="java.io.IOException"/>
  14047. <doc>
  14048. <![CDATA[Sets the {@link Path}'s last modified time and last access time to
  14049. the given valid times.
  14050. @param mtime the modification time to set (only if no less than zero).
  14051. @param atime the access time to set (only if no less than zero).
  14052. @throws IOException if setting the times fails.]]>
  14053. </doc>
  14054. </method>
  14055. <method name="supportsSymlinks" return="boolean"
  14056. abstract="false" native="false" synchronized="false"
  14057. static="false" final="false" visibility="public"
  14058. deprecated="not deprecated">
  14059. </method>
  14060. <method name="createSymlink"
  14061. abstract="false" native="false" synchronized="false"
  14062. static="false" final="false" visibility="public"
  14063. deprecated="not deprecated">
  14064. <param name="target" type="org.apache.hadoop.fs.Path"/>
  14065. <param name="link" type="org.apache.hadoop.fs.Path"/>
  14066. <param name="createParent" type="boolean"/>
  14067. <exception name="IOException" type="java.io.IOException"/>
  14068. </method>
  14069. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  14070. abstract="false" native="false" synchronized="false"
  14071. static="false" final="false" visibility="public"
  14072. deprecated="not deprecated">
  14073. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14074. <exception name="IOException" type="java.io.IOException"/>
  14075. <doc>
  14076. <![CDATA[Return a FileStatus representing the given path. If the path refers
  14077. to a symlink return a FileStatus representing the link rather than
  14078. the object the link refers to.]]>
  14079. </doc>
  14080. </method>
  14081. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  14082. abstract="false" native="false" synchronized="false"
  14083. static="false" final="false" visibility="public"
  14084. deprecated="not deprecated">
  14085. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14086. <exception name="IOException" type="java.io.IOException"/>
  14087. </method>
  14088. <doc>
  14089. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  14090. </doc>
  14091. </class>
  14092. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  14093. <!-- start class org.apache.hadoop.fs.ReadOption -->
  14094. <class name="ReadOption" extends="java.lang.Enum"
  14095. abstract="false"
  14096. static="false" final="true" visibility="public"
  14097. deprecated="not deprecated">
  14098. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  14099. abstract="false" native="false" synchronized="false"
  14100. static="true" final="false" visibility="public"
  14101. deprecated="not deprecated">
  14102. </method>
  14103. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  14104. abstract="false" native="false" synchronized="false"
  14105. static="true" final="false" visibility="public"
  14106. deprecated="not deprecated">
  14107. <param name="name" type="java.lang.String"/>
  14108. </method>
  14109. <doc>
  14110. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  14111. </doc>
  14112. </class>
  14113. <!-- end class org.apache.hadoop.fs.ReadOption -->
  14114. <!-- start interface org.apache.hadoop.fs.Seekable -->
  14115. <interface name="Seekable" abstract="true"
  14116. static="false" final="false" visibility="public"
  14117. deprecated="not deprecated">
  14118. <method name="seek"
  14119. abstract="false" native="false" synchronized="false"
  14120. static="false" final="false" visibility="public"
  14121. deprecated="not deprecated">
  14122. <param name="pos" type="long"/>
  14123. <exception name="IOException" type="java.io.IOException"/>
  14124. <doc>
  14125. <![CDATA[Seek to the given offset from the start of the file.
  14126. The next read() will be from that location. Can't
  14127. seek past the end of the file.]]>
  14128. </doc>
  14129. </method>
  14130. <method name="getPos" return="long"
  14131. abstract="false" native="false" synchronized="false"
  14132. static="false" final="false" visibility="public"
  14133. deprecated="not deprecated">
  14134. <exception name="IOException" type="java.io.IOException"/>
  14135. <doc>
  14136. <![CDATA[Return the current offset from the start of the file]]>
  14137. </doc>
  14138. </method>
  14139. <doc>
  14140. <![CDATA[Stream that permits seeking.]]>
  14141. </doc>
  14142. </interface>
  14143. <!-- end interface org.apache.hadoop.fs.Seekable -->
  14144. <!-- start class org.apache.hadoop.fs.StorageStatistics -->
  14145. <class name="StorageStatistics" extends="java.lang.Object"
  14146. abstract="true"
  14147. static="false" final="false" visibility="public"
  14148. deprecated="not deprecated">
  14149. <constructor name="StorageStatistics" type="java.lang.String"
  14150. static="false" final="false" visibility="public"
  14151. deprecated="not deprecated">
  14152. </constructor>
  14153. <method name="getName" return="java.lang.String"
  14154. abstract="false" native="false" synchronized="false"
  14155. static="false" final="false" visibility="public"
  14156. deprecated="not deprecated">
  14157. <doc>
  14158. <![CDATA[Get the name of this StorageStatistics object.]]>
  14159. </doc>
  14160. </method>
  14161. <method name="getScheme" return="java.lang.String"
  14162. abstract="false" native="false" synchronized="false"
  14163. static="false" final="false" visibility="public"
  14164. deprecated="not deprecated">
  14165. <doc>
  14166. <![CDATA[@return the associated file system scheme if this is scheme specific,
  14167. else return null.]]>
  14168. </doc>
  14169. </method>
  14170. <method name="getLongStatistics" return="java.util.Iterator"
  14171. abstract="true" native="false" synchronized="false"
  14172. static="false" final="false" visibility="public"
  14173. deprecated="not deprecated">
  14174. <doc>
  14175. <![CDATA[Get an iterator over all the currently tracked long statistics.
  14176. The values returned will depend on the type of FileSystem or FileContext
  14177. object. The values do not necessarily reflect a snapshot in time.]]>
  14178. </doc>
  14179. </method>
  14180. <method name="getLong" return="java.lang.Long"
  14181. abstract="true" native="false" synchronized="false"
  14182. static="false" final="false" visibility="public"
  14183. deprecated="not deprecated">
  14184. <param name="key" type="java.lang.String"/>
  14185. <doc>
  14186. <![CDATA[Get the value of a statistic.
  14187. @return null if the statistic is not being tracked or is not a
  14188. long statistic. The value of the statistic, otherwise.]]>
  14189. </doc>
  14190. </method>
  14191. <method name="isTracked" return="boolean"
  14192. abstract="true" native="false" synchronized="false"
  14193. static="false" final="false" visibility="public"
  14194. deprecated="not deprecated">
  14195. <param name="key" type="java.lang.String"/>
  14196. <doc>
  14197. <![CDATA[Return true if a statistic is being tracked.
  14198. @return True only if the statistic is being tracked.]]>
  14199. </doc>
  14200. </method>
  14201. <method name="reset"
  14202. abstract="true" native="false" synchronized="false"
  14203. static="false" final="false" visibility="public"
  14204. deprecated="not deprecated">
  14205. <doc>
  14206. <![CDATA[Reset all the statistic data.]]>
  14207. </doc>
  14208. </method>
  14209. <doc>
  14210. <![CDATA[StorageStatistics contains statistics data for a FileSystem or FileContext
  14211. instance.]]>
  14212. </doc>
  14213. </class>
  14214. <!-- end class org.apache.hadoop.fs.StorageStatistics -->
  14215. <!-- start class org.apache.hadoop.fs.StorageType -->
  14216. <class name="StorageType" extends="java.lang.Enum"
  14217. abstract="false"
  14218. static="false" final="true" visibility="public"
  14219. deprecated="not deprecated">
  14220. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  14221. abstract="false" native="false" synchronized="false"
  14222. static="true" final="false" visibility="public"
  14223. deprecated="not deprecated">
  14224. </method>
  14225. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  14226. abstract="false" native="false" synchronized="false"
  14227. static="true" final="false" visibility="public"
  14228. deprecated="not deprecated">
  14229. <param name="name" type="java.lang.String"/>
  14230. </method>
  14231. <method name="isTransient" return="boolean"
  14232. abstract="false" native="false" synchronized="false"
  14233. static="false" final="false" visibility="public"
  14234. deprecated="not deprecated">
  14235. </method>
  14236. <method name="supportTypeQuota" return="boolean"
  14237. abstract="false" native="false" synchronized="false"
  14238. static="false" final="false" visibility="public"
  14239. deprecated="not deprecated">
  14240. </method>
  14241. <method name="isMovable" return="boolean"
  14242. abstract="false" native="false" synchronized="false"
  14243. static="false" final="false" visibility="public"
  14244. deprecated="not deprecated">
  14245. </method>
  14246. <method name="asList" return="java.util.List"
  14247. abstract="false" native="false" synchronized="false"
  14248. static="true" final="false" visibility="public"
  14249. deprecated="not deprecated">
  14250. </method>
  14251. <method name="getMovableTypes" return="java.util.List"
  14252. abstract="false" native="false" synchronized="false"
  14253. static="true" final="false" visibility="public"
  14254. deprecated="not deprecated">
  14255. </method>
  14256. <method name="getTypesSupportingQuota" return="java.util.List"
  14257. abstract="false" native="false" synchronized="false"
  14258. static="true" final="false" visibility="public"
  14259. deprecated="not deprecated">
  14260. </method>
  14261. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  14262. abstract="false" native="false" synchronized="false"
  14263. static="true" final="false" visibility="public"
  14264. deprecated="not deprecated">
  14265. <param name="i" type="int"/>
  14266. </method>
  14267. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  14268. abstract="false" native="false" synchronized="false"
  14269. static="true" final="false" visibility="public"
  14270. deprecated="not deprecated">
  14271. <param name="s" type="java.lang.String"/>
  14272. </method>
  14273. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  14274. transient="false" volatile="false"
  14275. static="true" final="true" visibility="public"
  14276. deprecated="not deprecated">
  14277. </field>
  14278. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  14279. transient="false" volatile="false"
  14280. static="true" final="true" visibility="public"
  14281. deprecated="not deprecated">
  14282. </field>
  14283. <doc>
  14284. <![CDATA[Defines the types of supported storage media. The default storage
  14285. medium is assumed to be DISK.]]>
  14286. </doc>
  14287. </class>
  14288. <!-- end class org.apache.hadoop.fs.StorageType -->
  14289. <!-- start interface org.apache.hadoop.fs.StreamCapabilities -->
  14290. <interface name="StreamCapabilities" abstract="true"
  14291. static="false" final="false" visibility="public"
  14292. deprecated="not deprecated">
  14293. <method name="hasCapability" return="boolean"
  14294. abstract="false" native="false" synchronized="false"
  14295. static="false" final="false" visibility="public"
  14296. deprecated="not deprecated">
  14297. <param name="capability" type="java.lang.String"/>
  14298. <doc>
  14299. <![CDATA[Query the stream for a specific capability.
  14300. @param capability string to query the stream support for.
  14301. @return True if the stream supports capability.]]>
  14302. </doc>
  14303. </method>
  14304. <field name="HFLUSH" type="java.lang.String"
  14305. transient="false" volatile="false"
  14306. static="true" final="true" visibility="public"
  14307. deprecated="not deprecated">
  14308. <doc>
  14309. <![CDATA[Stream hflush capability implemented by {@link Syncable#hflush()}.]]>
  14310. </doc>
  14311. </field>
  14312. <field name="HSYNC" type="java.lang.String"
  14313. transient="false" volatile="false"
  14314. static="true" final="true" visibility="public"
  14315. deprecated="not deprecated">
  14316. <doc>
  14317. <![CDATA[Stream hsync capability implemented by {@link Syncable#hsync()}.]]>
  14318. </doc>
  14319. </field>
  14320. <field name="READAHEAD" type="java.lang.String"
  14321. transient="false" volatile="false"
  14322. static="true" final="true" visibility="public"
  14323. deprecated="not deprecated">
  14324. <doc>
  14325. <![CDATA[Stream setReadahead capability implemented by
  14326. {@link CanSetReadahead#setReadahead(Long)}.]]>
  14327. </doc>
  14328. </field>
  14329. <field name="DROPBEHIND" type="java.lang.String"
  14330. transient="false" volatile="false"
  14331. static="true" final="true" visibility="public"
  14332. deprecated="not deprecated">
  14333. <doc>
  14334. <![CDATA[Stream setDropBehind capability implemented by
  14335. {@link CanSetDropBehind#setDropBehind(Boolean)}.]]>
  14336. </doc>
  14337. </field>
  14338. <field name="UNBUFFER" type="java.lang.String"
  14339. transient="false" volatile="false"
  14340. static="true" final="true" visibility="public"
  14341. deprecated="not deprecated">
  14342. <doc>
  14343. <![CDATA[Stream unbuffer capability implemented by {@link CanUnbuffer#unbuffer()}.]]>
  14344. </doc>
  14345. </field>
  14346. <field name="READBYTEBUFFER" type="java.lang.String"
  14347. transient="false" volatile="false"
  14348. static="true" final="true" visibility="public"
  14349. deprecated="not deprecated">
  14350. <doc>
  14351. <![CDATA[Stream read(ByteBuffer) capability implemented by
  14352. {@link ByteBufferReadable#read(java.nio.ByteBuffer)}.]]>
  14353. </doc>
  14354. </field>
  14355. <field name="PREADBYTEBUFFER" type="java.lang.String"
  14356. transient="false" volatile="false"
  14357. static="true" final="true" visibility="public"
  14358. deprecated="not deprecated">
  14359. <doc>
  14360. <![CDATA[Stream read(long, ByteBuffer) capability implemented by
  14361. {@link ByteBufferPositionedReadable#read(long, java.nio.ByteBuffer)}.]]>
  14362. </doc>
  14363. </field>
  14364. <doc>
  14365. <![CDATA[Interface to query streams for supported capabilities.
  14366. Capability strings must be in lower case.
  14367. Constant strings are chosen over enums in order to allow other file systems
  14368. to define their own capabilities.]]>
  14369. </doc>
  14370. </interface>
  14371. <!-- end interface org.apache.hadoop.fs.StreamCapabilities -->
  14372. <!-- start class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  14373. <class name="StreamCapabilitiesPolicy" extends="java.lang.Object"
  14374. abstract="false"
  14375. static="false" final="false" visibility="public"
  14376. deprecated="not deprecated">
  14377. <constructor name="StreamCapabilitiesPolicy"
  14378. static="false" final="false" visibility="public"
  14379. deprecated="not deprecated">
  14380. </constructor>
  14381. <method name="unbuffer"
  14382. abstract="false" native="false" synchronized="false"
  14383. static="true" final="false" visibility="public"
  14384. deprecated="not deprecated">
  14385. <param name="in" type="java.io.InputStream"/>
  14386. <doc>
  14387. <![CDATA[Implement the policy for {@link CanUnbuffer#unbuffer()}.
  14388. @param in the input stream]]>
  14389. </doc>
  14390. </method>
  14391. <field name="CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE" type="java.lang.String"
  14392. transient="false" volatile="false"
  14393. static="true" final="true" visibility="public"
  14394. deprecated="not deprecated">
  14395. </field>
  14396. <doc>
  14397. <![CDATA[Static methods to implement policies for {@link StreamCapabilities}.]]>
  14398. </doc>
  14399. </class>
  14400. <!-- end class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  14401. <!-- start interface org.apache.hadoop.fs.Syncable -->
  14402. <interface name="Syncable" abstract="true"
  14403. static="false" final="false" visibility="public"
  14404. deprecated="not deprecated">
  14405. <method name="sync"
  14406. abstract="false" native="false" synchronized="false"
  14407. static="false" final="false" visibility="public"
  14408. deprecated="As of HADOOP 0.21.0, replaced by hflush">
  14409. <exception name="IOException" type="java.io.IOException"/>
  14410. <doc>
  14411. <![CDATA[@deprecated As of HADOOP 0.21.0, replaced by hflush
  14412. @see #hflush()]]>
  14413. </doc>
  14414. </method>
  14415. <method name="hflush"
  14416. abstract="false" native="false" synchronized="false"
  14417. static="false" final="false" visibility="public"
  14418. deprecated="not deprecated">
  14419. <exception name="IOException" type="java.io.IOException"/>
  14420. <doc>
  14421. <![CDATA[Flush out the data in client's user buffer. After the return of
  14422. this call, new readers will see the data.
  14423. @throws IOException if any error occurs]]>
  14424. </doc>
  14425. </method>
  14426. <method name="hsync"
  14427. abstract="false" native="false" synchronized="false"
  14428. static="false" final="false" visibility="public"
  14429. deprecated="not deprecated">
  14430. <exception name="IOException" type="java.io.IOException"/>
  14431. <doc>
  14432. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  14433. all the way to the disk device (but the disk may have it in its cache).
  14434. @throws IOException if error occurs]]>
  14435. </doc>
  14436. </method>
  14437. <doc>
  14438. <![CDATA[This interface for flush/sync operation.]]>
  14439. </doc>
  14440. </interface>
  14441. <!-- end interface org.apache.hadoop.fs.Syncable -->
  14442. <!-- start class org.apache.hadoop.fs.Trash -->
  14443. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  14444. abstract="false"
  14445. static="false" final="false" visibility="public"
  14446. deprecated="not deprecated">
  14447. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  14448. static="false" final="false" visibility="public"
  14449. deprecated="not deprecated">
  14450. <exception name="IOException" type="java.io.IOException"/>
  14451. <doc>
  14452. <![CDATA[Construct a trash can accessor.
  14453. @param conf a Configuration]]>
  14454. </doc>
  14455. </constructor>
  14456. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  14457. static="false" final="false" visibility="public"
  14458. deprecated="not deprecated">
  14459. <exception name="IOException" type="java.io.IOException"/>
  14460. <doc>
  14461. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  14462. @param fs the FileSystem
  14463. @param conf a Configuration]]>
  14464. </doc>
  14465. </constructor>
  14466. <method name="moveToAppropriateTrash" return="boolean"
  14467. abstract="false" native="false" synchronized="false"
  14468. static="true" final="false" visibility="public"
  14469. deprecated="not deprecated">
  14470. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14471. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14472. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14473. <exception name="IOException" type="java.io.IOException"/>
  14474. <doc>
  14475. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  14476. trashbin in the actual volume of the path p being deleted.
  14477. Hence we get the file system of the fully-qualified resolved-path and
  14478. then move the path p to the trashbin in that volume,
  14479. @param fs - the filesystem of path p
  14480. @param p - the path being deleted - to be moved to trasg
  14481. @param conf - configuration
  14482. @return false if the item is already in the trash or trash is disabled
  14483. @throws IOException on error]]>
  14484. </doc>
  14485. </method>
  14486. <method name="isEnabled" return="boolean"
  14487. abstract="false" native="false" synchronized="false"
  14488. static="false" final="false" visibility="public"
  14489. deprecated="not deprecated">
  14490. <doc>
  14491. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  14492. </doc>
  14493. </method>
  14494. <method name="moveToTrash" return="boolean"
  14495. abstract="false" native="false" synchronized="false"
  14496. static="false" final="false" visibility="public"
  14497. deprecated="not deprecated">
  14498. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14499. <exception name="IOException" type="java.io.IOException"/>
  14500. <doc>
  14501. <![CDATA[Move a file or directory to the current trash directory.
  14502. @return false if the item is already in the trash or trash is disabled]]>
  14503. </doc>
  14504. </method>
  14505. <method name="checkpoint"
  14506. abstract="false" native="false" synchronized="false"
  14507. static="false" final="false" visibility="public"
  14508. deprecated="not deprecated">
  14509. <exception name="IOException" type="java.io.IOException"/>
  14510. <doc>
  14511. <![CDATA[Create a trash checkpoint.]]>
  14512. </doc>
  14513. </method>
  14514. <method name="expunge"
  14515. abstract="false" native="false" synchronized="false"
  14516. static="false" final="false" visibility="public"
  14517. deprecated="not deprecated">
  14518. <exception name="IOException" type="java.io.IOException"/>
  14519. <doc>
  14520. <![CDATA[Delete old checkpoint(s).]]>
  14521. </doc>
  14522. </method>
  14523. <method name="getEmptier" return="java.lang.Runnable"
  14524. abstract="false" native="false" synchronized="false"
  14525. static="false" final="false" visibility="public"
  14526. deprecated="not deprecated">
  14527. <exception name="IOException" type="java.io.IOException"/>
  14528. <doc>
  14529. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  14530. users, intended to be run by the superuser.]]>
  14531. </doc>
  14532. </method>
  14533. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  14534. abstract="false" native="false" synchronized="false"
  14535. static="false" final="false" visibility="public"
  14536. deprecated="not deprecated">
  14537. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14538. <exception name="IOException" type="java.io.IOException"/>
  14539. </method>
  14540. <doc>
  14541. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  14542. See the implementation of the configured TrashPolicy for more
  14543. details.]]>
  14544. </doc>
  14545. </class>
  14546. <!-- end class org.apache.hadoop.fs.Trash -->
  14547. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  14548. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  14549. abstract="true"
  14550. static="false" final="false" visibility="public"
  14551. deprecated="not deprecated">
  14552. <constructor name="TrashPolicy"
  14553. static="false" final="false" visibility="public"
  14554. deprecated="not deprecated">
  14555. </constructor>
  14556. <method name="initialize"
  14557. abstract="true" native="false" synchronized="false"
  14558. static="false" final="false" visibility="public"
  14559. deprecated="Use {@link #initialize(Configuration, FileSystem)} instead.">
  14560. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14561. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14562. <param name="home" type="org.apache.hadoop.fs.Path"/>
  14563. <doc>
  14564. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  14565. implementations.
  14566. @param conf the configuration to be used
  14567. @param fs the filesystem to be used
  14568. @param home the home directory
  14569. @deprecated Use {@link #initialize(Configuration, FileSystem)} instead.]]>
  14570. </doc>
  14571. </method>
  14572. <method name="initialize"
  14573. abstract="false" native="false" synchronized="false"
  14574. static="false" final="false" visibility="public"
  14575. deprecated="not deprecated">
  14576. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14577. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14578. <doc>
  14579. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  14580. implementations. Different from initialize(conf, fs, home), this one does
  14581. not assume trash always under /user/$USER due to HDFS encryption zone.
  14582. @param conf the configuration to be used
  14583. @param fs the filesystem to be used]]>
  14584. </doc>
  14585. </method>
  14586. <method name="isEnabled" return="boolean"
  14587. abstract="true" native="false" synchronized="false"
  14588. static="false" final="false" visibility="public"
  14589. deprecated="not deprecated">
  14590. <doc>
  14591. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem.]]>
  14592. </doc>
  14593. </method>
  14594. <method name="moveToTrash" return="boolean"
  14595. abstract="true" native="false" synchronized="false"
  14596. static="false" final="false" visibility="public"
  14597. deprecated="not deprecated">
  14598. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14599. <exception name="IOException" type="java.io.IOException"/>
  14600. <doc>
  14601. <![CDATA[Move a file or directory to the current trash directory.
  14602. @return false if the item is already in the trash or trash is disabled]]>
  14603. </doc>
  14604. </method>
  14605. <method name="createCheckpoint"
  14606. abstract="true" native="false" synchronized="false"
  14607. static="false" final="false" visibility="public"
  14608. deprecated="not deprecated">
  14609. <exception name="IOException" type="java.io.IOException"/>
  14610. <doc>
  14611. <![CDATA[Create a trash checkpoint.]]>
  14612. </doc>
  14613. </method>
  14614. <method name="deleteCheckpoint"
  14615. abstract="true" native="false" synchronized="false"
  14616. static="false" final="false" visibility="public"
  14617. deprecated="not deprecated">
  14618. <exception name="IOException" type="java.io.IOException"/>
  14619. <doc>
  14620. <![CDATA[Delete old trash checkpoint(s).]]>
  14621. </doc>
  14622. </method>
  14623. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  14624. abstract="true" native="false" synchronized="false"
  14625. static="false" final="false" visibility="public"
  14626. deprecated="not deprecated">
  14627. <doc>
  14628. <![CDATA[Get the current working directory of the Trash Policy
  14629. This API does not work with files deleted from encryption zone when HDFS
  14630. data encryption at rest feature is enabled as rename file between
  14631. encryption zones or encryption zone and non-encryption zone is not allowed.
  14632. The caller is recommend to use the new API
  14633. TrashPolicy#getCurrentTrashDir(Path path).
  14634. It returns the trash location correctly for the path specified no matter
  14635. the path is in encryption zone or not.]]>
  14636. </doc>
  14637. </method>
  14638. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  14639. abstract="false" native="false" synchronized="false"
  14640. static="false" final="false" visibility="public"
  14641. deprecated="not deprecated">
  14642. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14643. <exception name="IOException" type="java.io.IOException"/>
  14644. <doc>
  14645. <![CDATA[Get the current trash directory for path specified based on the Trash
  14646. Policy
  14647. @param path path to be deleted
  14648. @return current trash directory for the path to be deleted
  14649. @throws IOException]]>
  14650. </doc>
  14651. </method>
  14652. <method name="getEmptier" return="java.lang.Runnable"
  14653. abstract="true" native="false" synchronized="false"
  14654. static="false" final="false" visibility="public"
  14655. deprecated="not deprecated">
  14656. <exception name="IOException" type="java.io.IOException"/>
  14657. <doc>
  14658. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  14659. users, intended to be run by the superuser.]]>
  14660. </doc>
  14661. </method>
  14662. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  14663. abstract="false" native="false" synchronized="false"
  14664. static="true" final="false" visibility="public"
  14665. deprecated="Use {@link #getInstance(Configuration, FileSystem)} instead.">
  14666. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14667. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14668. <param name="home" type="org.apache.hadoop.fs.Path"/>
  14669. <doc>
  14670. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  14671. of the configuration parameter fs.trash.classname.
  14672. @param conf the configuration to be used
  14673. @param fs the file system to be used
  14674. @param home the home directory
  14675. @return an instance of TrashPolicy
  14676. @deprecated Use {@link #getInstance(Configuration, FileSystem)} instead.]]>
  14677. </doc>
  14678. </method>
  14679. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  14680. abstract="false" native="false" synchronized="false"
  14681. static="true" final="false" visibility="public"
  14682. deprecated="not deprecated">
  14683. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14684. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14685. <doc>
  14686. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  14687. of the configuration parameter fs.trash.classname.
  14688. @param conf the configuration to be used
  14689. @param fs the file system to be used
  14690. @return an instance of TrashPolicy]]>
  14691. </doc>
  14692. </method>
  14693. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  14694. transient="false" volatile="false"
  14695. static="false" final="false" visibility="protected"
  14696. deprecated="not deprecated">
  14697. </field>
  14698. <field name="trash" type="org.apache.hadoop.fs.Path"
  14699. transient="false" volatile="false"
  14700. static="false" final="false" visibility="protected"
  14701. deprecated="not deprecated">
  14702. </field>
  14703. <field name="deletionInterval" type="long"
  14704. transient="false" volatile="false"
  14705. static="false" final="false" visibility="protected"
  14706. deprecated="not deprecated">
  14707. </field>
  14708. <doc>
  14709. <![CDATA[This interface is used for implementing different Trash policies.
  14710. Provides factory method to create instances of the configured Trash policy.]]>
  14711. </doc>
  14712. </class>
  14713. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  14714. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  14715. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  14716. abstract="false"
  14717. static="false" final="false" visibility="public"
  14718. deprecated="not deprecated">
  14719. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  14720. static="false" final="false" visibility="public"
  14721. deprecated="not deprecated">
  14722. <doc>
  14723. <![CDATA[Constructs exception with the specified detail message.
  14724. @param message exception message.]]>
  14725. </doc>
  14726. </constructor>
  14727. <doc>
  14728. <![CDATA[File system for a given file system name/scheme is not supported]]>
  14729. </doc>
  14730. </class>
  14731. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  14732. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  14733. <class name="XAttrCodec" extends="java.lang.Enum"
  14734. abstract="false"
  14735. static="false" final="true" visibility="public"
  14736. deprecated="not deprecated">
  14737. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  14738. abstract="false" native="false" synchronized="false"
  14739. static="true" final="false" visibility="public"
  14740. deprecated="not deprecated">
  14741. </method>
  14742. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  14743. abstract="false" native="false" synchronized="false"
  14744. static="true" final="false" visibility="public"
  14745. deprecated="not deprecated">
  14746. <param name="name" type="java.lang.String"/>
  14747. </method>
  14748. <method name="decodeValue" return="byte[]"
  14749. abstract="false" native="false" synchronized="false"
  14750. static="true" final="false" visibility="public"
  14751. deprecated="not deprecated">
  14752. <param name="value" type="java.lang.String"/>
  14753. <exception name="IOException" type="java.io.IOException"/>
  14754. <doc>
  14755. <![CDATA[Decode string representation of a value and check whether it's
  14756. encoded. If the given string begins with 0x or 0X, it expresses
  14757. a hexadecimal number. If the given string begins with 0s or 0S,
  14758. base64 encoding is expected. If the given string is enclosed in
  14759. double quotes, the inner string is treated as text. Otherwise
  14760. the given string is treated as text.
  14761. @param value string representation of the value.
  14762. @return byte[] the value
  14763. @throws IOException]]>
  14764. </doc>
  14765. </method>
  14766. <method name="encodeValue" return="java.lang.String"
  14767. abstract="false" native="false" synchronized="false"
  14768. static="true" final="false" visibility="public"
  14769. deprecated="not deprecated">
  14770. <param name="value" type="byte[]"/>
  14771. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  14772. <exception name="IOException" type="java.io.IOException"/>
  14773. <doc>
  14774. <![CDATA[Encode byte[] value to string representation with encoding.
  14775. Values encoded as text strings are enclosed in double quotes (\"),
  14776. while strings encoded as hexadecimal and base64 are prefixed with
  14777. 0x and 0s, respectively.
  14778. @param value byte[] value
  14779. @param encoding
  14780. @return String string representation of value
  14781. @throws IOException]]>
  14782. </doc>
  14783. </method>
  14784. <doc>
  14785. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  14786. covert byte[] to some kind of string representation or convert back.
  14787. String representation is convenient for display and input. For example
  14788. display in screen as shell response and json response, input as http
  14789. or shell parameter.]]>
  14790. </doc>
  14791. </class>
  14792. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  14793. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  14794. <class name="XAttrSetFlag" extends="java.lang.Enum"
  14795. abstract="false"
  14796. static="false" final="true" visibility="public"
  14797. deprecated="not deprecated">
  14798. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  14799. abstract="false" native="false" synchronized="false"
  14800. static="true" final="false" visibility="public"
  14801. deprecated="not deprecated">
  14802. </method>
  14803. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  14804. abstract="false" native="false" synchronized="false"
  14805. static="true" final="false" visibility="public"
  14806. deprecated="not deprecated">
  14807. <param name="name" type="java.lang.String"/>
  14808. </method>
  14809. <method name="validate"
  14810. abstract="false" native="false" synchronized="false"
  14811. static="true" final="false" visibility="public"
  14812. deprecated="not deprecated">
  14813. <param name="xAttrName" type="java.lang.String"/>
  14814. <param name="xAttrExists" type="boolean"/>
  14815. <param name="flag" type="java.util.EnumSet"/>
  14816. <exception name="IOException" type="java.io.IOException"/>
  14817. </method>
  14818. </class>
  14819. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  14820. <doc>
  14821. <![CDATA[An abstract file system API.]]>
  14822. </doc>
  14823. </package>
  14824. <package name="org.apache.hadoop.fs.crypto">
  14825. </package>
  14826. <package name="org.apache.hadoop.fs.ftp">
  14827. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  14828. <class name="FTPException" extends="java.lang.RuntimeException"
  14829. abstract="false"
  14830. static="false" final="false" visibility="public"
  14831. deprecated="not deprecated">
  14832. <constructor name="FTPException" type="java.lang.String"
  14833. static="false" final="false" visibility="public"
  14834. deprecated="not deprecated">
  14835. </constructor>
  14836. <constructor name="FTPException" type="java.lang.Throwable"
  14837. static="false" final="false" visibility="public"
  14838. deprecated="not deprecated">
  14839. </constructor>
  14840. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  14841. static="false" final="false" visibility="public"
  14842. deprecated="not deprecated">
  14843. </constructor>
  14844. <doc>
  14845. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  14846. </doc>
  14847. </class>
  14848. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  14849. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  14850. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  14851. abstract="false"
  14852. static="false" final="false" visibility="public"
  14853. deprecated="not deprecated">
  14854. <constructor name="FTPFileSystem"
  14855. static="false" final="false" visibility="public"
  14856. deprecated="not deprecated">
  14857. </constructor>
  14858. <method name="getScheme" return="java.lang.String"
  14859. abstract="false" native="false" synchronized="false"
  14860. static="false" final="false" visibility="public"
  14861. deprecated="not deprecated">
  14862. <doc>
  14863. <![CDATA[Return the protocol scheme for the FileSystem.
  14864. <p/>
  14865. @return <code>ftp</code>]]>
  14866. </doc>
  14867. </method>
  14868. <method name="getDefaultPort" return="int"
  14869. abstract="false" native="false" synchronized="false"
  14870. static="false" final="false" visibility="protected"
  14871. deprecated="not deprecated">
  14872. <doc>
  14873. <![CDATA[Get the default port for this FTPFileSystem.
  14874. @return the default port]]>
  14875. </doc>
  14876. </method>
  14877. <method name="initialize"
  14878. abstract="false" native="false" synchronized="false"
  14879. static="false" final="false" visibility="public"
  14880. deprecated="not deprecated">
  14881. <param name="uri" type="java.net.URI"/>
  14882. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14883. <exception name="IOException" type="java.io.IOException"/>
  14884. </method>
  14885. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14886. abstract="false" native="false" synchronized="false"
  14887. static="false" final="false" visibility="public"
  14888. deprecated="not deprecated">
  14889. <param name="file" type="org.apache.hadoop.fs.Path"/>
  14890. <param name="bufferSize" type="int"/>
  14891. <exception name="IOException" type="java.io.IOException"/>
  14892. </method>
  14893. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14894. abstract="false" native="false" synchronized="false"
  14895. static="false" final="false" visibility="public"
  14896. deprecated="not deprecated">
  14897. <param name="file" type="org.apache.hadoop.fs.Path"/>
  14898. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14899. <param name="overwrite" type="boolean"/>
  14900. <param name="bufferSize" type="int"/>
  14901. <param name="replication" type="short"/>
  14902. <param name="blockSize" type="long"/>
  14903. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14904. <exception name="IOException" type="java.io.IOException"/>
  14905. <doc>
  14906. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  14907. this class or else the invocation will block.]]>
  14908. </doc>
  14909. </method>
  14910. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  14911. abstract="false" native="false" synchronized="false"
  14912. static="false" final="false" visibility="public"
  14913. deprecated="not deprecated">
  14914. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14915. <param name="bufferSize" type="int"/>
  14916. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14917. <exception name="IOException" type="java.io.IOException"/>
  14918. <doc>
  14919. <![CDATA[This optional operation is not yet supported.]]>
  14920. </doc>
  14921. </method>
  14922. <method name="delete" return="boolean"
  14923. abstract="false" native="false" synchronized="false"
  14924. static="false" final="false" visibility="public"
  14925. deprecated="not deprecated">
  14926. <param name="file" type="org.apache.hadoop.fs.Path"/>
  14927. <param name="recursive" type="boolean"/>
  14928. <exception name="IOException" type="java.io.IOException"/>
  14929. </method>
  14930. <method name="getUri" return="java.net.URI"
  14931. abstract="false" native="false" synchronized="false"
  14932. static="false" final="false" visibility="public"
  14933. deprecated="not deprecated">
  14934. </method>
  14935. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  14936. abstract="false" native="false" synchronized="false"
  14937. static="false" final="false" visibility="public"
  14938. deprecated="not deprecated">
  14939. <param name="file" type="org.apache.hadoop.fs.Path"/>
  14940. <exception name="IOException" type="java.io.IOException"/>
  14941. </method>
  14942. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  14943. abstract="false" native="false" synchronized="false"
  14944. static="false" final="false" visibility="public"
  14945. deprecated="not deprecated">
  14946. <param name="file" type="org.apache.hadoop.fs.Path"/>
  14947. <exception name="IOException" type="java.io.IOException"/>
  14948. </method>
  14949. <method name="mkdirs" return="boolean"
  14950. abstract="false" native="false" synchronized="false"
  14951. static="false" final="false" visibility="public"
  14952. deprecated="not deprecated">
  14953. <param name="file" type="org.apache.hadoop.fs.Path"/>
  14954. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14955. <exception name="IOException" type="java.io.IOException"/>
  14956. </method>
  14957. <method name="rename" return="boolean"
  14958. abstract="false" native="false" synchronized="false"
  14959. static="false" final="false" visibility="public"
  14960. deprecated="not deprecated">
  14961. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14962. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14963. <exception name="IOException" type="java.io.IOException"/>
  14964. </method>
  14965. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  14966. abstract="false" native="false" synchronized="false"
  14967. static="false" final="false" visibility="public"
  14968. deprecated="not deprecated">
  14969. </method>
  14970. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  14971. abstract="false" native="false" synchronized="false"
  14972. static="false" final="false" visibility="public"
  14973. deprecated="not deprecated">
  14974. </method>
  14975. <method name="setWorkingDirectory"
  14976. abstract="false" native="false" synchronized="false"
  14977. static="false" final="false" visibility="public"
  14978. deprecated="not deprecated">
  14979. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  14980. </method>
  14981. <field name="LOG" type="org.slf4j.Logger"
  14982. transient="false" volatile="false"
  14983. static="true" final="true" visibility="public"
  14984. deprecated="not deprecated">
  14985. </field>
  14986. <field name="DEFAULT_BUFFER_SIZE" type="int"
  14987. transient="false" volatile="false"
  14988. static="true" final="true" visibility="public"
  14989. deprecated="not deprecated">
  14990. </field>
  14991. <field name="DEFAULT_BLOCK_SIZE" type="int"
  14992. transient="false" volatile="false"
  14993. static="true" final="true" visibility="public"
  14994. deprecated="not deprecated">
  14995. </field>
  14996. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  14997. transient="false" volatile="false"
  14998. static="true" final="true" visibility="public"
  14999. deprecated="not deprecated">
  15000. </field>
  15001. <field name="FS_FTP_HOST" type="java.lang.String"
  15002. transient="false" volatile="false"
  15003. static="true" final="true" visibility="public"
  15004. deprecated="not deprecated">
  15005. </field>
  15006. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  15007. transient="false" volatile="false"
  15008. static="true" final="true" visibility="public"
  15009. deprecated="not deprecated">
  15010. </field>
  15011. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  15012. transient="false" volatile="false"
  15013. static="true" final="true" visibility="public"
  15014. deprecated="not deprecated">
  15015. </field>
  15016. <field name="FS_FTP_DATA_CONNECTION_MODE" type="java.lang.String"
  15017. transient="false" volatile="false"
  15018. static="true" final="true" visibility="public"
  15019. deprecated="not deprecated">
  15020. </field>
  15021. <field name="FS_FTP_TRANSFER_MODE" type="java.lang.String"
  15022. transient="false" volatile="false"
  15023. static="true" final="true" visibility="public"
  15024. deprecated="not deprecated">
  15025. </field>
  15026. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  15027. transient="false" volatile="false"
  15028. static="true" final="true" visibility="public"
  15029. deprecated="not deprecated">
  15030. </field>
  15031. <doc>
  15032. <![CDATA[<p>
  15033. A {@link FileSystem} backed by an FTP client provided by <a
  15034. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  15035. </p>]]>
  15036. </doc>
  15037. </class>
  15038. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  15039. </package>
  15040. <package name="org.apache.hadoop.fs.http">
  15041. </package>
  15042. <package name="org.apache.hadoop.fs.permission">
  15043. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  15044. <class name="AccessControlException" extends="java.io.IOException"
  15045. abstract="false"
  15046. static="false" final="false" visibility="public"
  15047. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  15048. instead.">
  15049. <constructor name="AccessControlException"
  15050. static="false" final="false" visibility="public"
  15051. deprecated="not deprecated">
  15052. <doc>
  15053. <![CDATA[Default constructor is needed for unwrapping from
  15054. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  15055. </doc>
  15056. </constructor>
  15057. <constructor name="AccessControlException" type="java.lang.String"
  15058. static="false" final="false" visibility="public"
  15059. deprecated="not deprecated">
  15060. <doc>
  15061. <![CDATA[Constructs an {@link AccessControlException}
  15062. with the specified detail message.
  15063. @param s the detail message.]]>
  15064. </doc>
  15065. </constructor>
  15066. <constructor name="AccessControlException" type="java.lang.Throwable"
  15067. static="false" final="false" visibility="public"
  15068. deprecated="not deprecated">
  15069. <doc>
  15070. <![CDATA[Constructs a new exception with the specified cause and a detail
  15071. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  15072. typically contains the class and detail message of <tt>cause</tt>).
  15073. @param cause the cause (which is saved for later retrieval by the
  15074. {@link #getCause()} method). (A <tt>null</tt> value is
  15075. permitted, and indicates that the cause is nonexistent or
  15076. unknown.)]]>
  15077. </doc>
  15078. </constructor>
  15079. <doc>
  15080. <![CDATA[An exception class for access control related issues.
  15081. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  15082. instead.]]>
  15083. </doc>
  15084. </class>
  15085. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  15086. <!-- start class org.apache.hadoop.fs.permission.AclEntry -->
  15087. <class name="AclEntry" extends="java.lang.Object"
  15088. abstract="false"
  15089. static="false" final="false" visibility="public"
  15090. deprecated="not deprecated">
  15091. <method name="getType" return="org.apache.hadoop.fs.permission.AclEntryType"
  15092. abstract="false" native="false" synchronized="false"
  15093. static="false" final="false" visibility="public"
  15094. deprecated="not deprecated">
  15095. <doc>
  15096. <![CDATA[Returns the ACL entry type.
  15097. @return AclEntryType ACL entry type]]>
  15098. </doc>
  15099. </method>
  15100. <method name="getName" return="java.lang.String"
  15101. abstract="false" native="false" synchronized="false"
  15102. static="false" final="false" visibility="public"
  15103. deprecated="not deprecated">
  15104. <doc>
  15105. <![CDATA[Returns the optional ACL entry name.
  15106. @return String ACL entry name, or null if undefined]]>
  15107. </doc>
  15108. </method>
  15109. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsAction"
  15110. abstract="false" native="false" synchronized="false"
  15111. static="false" final="false" visibility="public"
  15112. deprecated="not deprecated">
  15113. <doc>
  15114. <![CDATA[Returns the set of permissions in the ACL entry.
  15115. @return FsAction set of permissions in the ACL entry]]>
  15116. </doc>
  15117. </method>
  15118. <method name="getScope" return="org.apache.hadoop.fs.permission.AclEntryScope"
  15119. abstract="false" native="false" synchronized="false"
  15120. static="false" final="false" visibility="public"
  15121. deprecated="not deprecated">
  15122. <doc>
  15123. <![CDATA[Returns the scope of the ACL entry.
  15124. @return AclEntryScope scope of the ACL entry]]>
  15125. </doc>
  15126. </method>
  15127. <method name="equals" return="boolean"
  15128. abstract="false" native="false" synchronized="false"
  15129. static="false" final="false" visibility="public"
  15130. deprecated="not deprecated">
  15131. <param name="o" type="java.lang.Object"/>
  15132. </method>
  15133. <method name="hashCode" return="int"
  15134. abstract="false" native="false" synchronized="false"
  15135. static="false" final="false" visibility="public"
  15136. deprecated="not deprecated">
  15137. </method>
  15138. <method name="toString" return="java.lang.String"
  15139. abstract="false" native="false" synchronized="false"
  15140. static="false" final="false" visibility="public"
  15141. deprecated="not deprecated">
  15142. </method>
  15143. <method name="toStringStable" return="java.lang.String"
  15144. abstract="false" native="false" synchronized="false"
  15145. static="false" final="false" visibility="public"
  15146. deprecated="not deprecated">
  15147. <doc>
  15148. <![CDATA[Returns a string representation guaranteed to be stable across versions to
  15149. satisfy backward compatibility requirements, such as for shell command
  15150. output or serialization. The format of this string representation matches
  15151. what is expected by the {@link #parseAclSpec(String, boolean)} and
  15152. {@link #parseAclEntry(String, boolean)} methods.
  15153. @return stable, backward compatible string representation]]>
  15154. </doc>
  15155. </method>
  15156. <method name="parseAclSpec" return="java.util.List"
  15157. abstract="false" native="false" synchronized="false"
  15158. static="true" final="false" visibility="public"
  15159. deprecated="not deprecated">
  15160. <param name="aclSpec" type="java.lang.String"/>
  15161. <param name="includePermission" type="boolean"/>
  15162. <doc>
  15163. <![CDATA[Parses a string representation of an ACL spec into a list of AclEntry
  15164. objects. Example: "user::rwx,user:foo:rw-,group::r--,other::---"
  15165. The expected format of ACL entries in the string parameter is the same
  15166. format produced by the {@link #toStringStable()} method.
  15167. @param aclSpec
  15168. String representation of an ACL spec.
  15169. @param includePermission
  15170. for setAcl operations this will be true. i.e. AclSpec should
  15171. include permissions.<br>
  15172. But for removeAcl operation it will be false. i.e. AclSpec should
  15173. not contain permissions.<br>
  15174. Example: "user:foo,group:bar"
  15175. @return Returns list of {@link AclEntry} parsed]]>
  15176. </doc>
  15177. </method>
  15178. <method name="parseAclEntry" return="org.apache.hadoop.fs.permission.AclEntry"
  15179. abstract="false" native="false" synchronized="false"
  15180. static="true" final="false" visibility="public"
  15181. deprecated="not deprecated">
  15182. <param name="aclStr" type="java.lang.String"/>
  15183. <param name="includePermission" type="boolean"/>
  15184. <doc>
  15185. <![CDATA[Parses a string representation of an ACL into a AclEntry object.<br>
  15186. The expected format of ACL entries in the string parameter is the same
  15187. format produced by the {@link #toStringStable()} method.
  15188. @param aclStr
  15189. String representation of an ACL.<br>
  15190. Example: "user:foo:rw-"
  15191. @param includePermission
  15192. for setAcl operations this will be true. i.e. Acl should include
  15193. permissions.<br>
  15194. But for removeAcl operation it will be false. i.e. Acl should not
  15195. contain permissions.<br>
  15196. Example: "user:foo,group:bar,mask::"
  15197. @return Returns an {@link AclEntry} object]]>
  15198. </doc>
  15199. </method>
  15200. <method name="aclSpecToString" return="java.lang.String"
  15201. abstract="false" native="false" synchronized="false"
  15202. static="true" final="false" visibility="public"
  15203. deprecated="not deprecated">
  15204. <param name="aclSpec" type="java.util.List"/>
  15205. <doc>
  15206. <![CDATA[Convert a List of AclEntries into a string - the reverse of parseAclSpec.
  15207. @param aclSpec List of AclEntries to convert
  15208. @return String representation of aclSpec]]>
  15209. </doc>
  15210. </method>
  15211. <doc>
  15212. <![CDATA[Defines a single entry in an ACL. An ACL entry has a type (user, group,
  15213. mask, or other), an optional name (referring to a specific user or group), a
  15214. set of permissions (any combination of read, write and execute), and a scope
  15215. (access or default). AclEntry instances are immutable. Use a {@link Builder}
  15216. to create a new instance.]]>
  15217. </doc>
  15218. </class>
  15219. <!-- end class org.apache.hadoop.fs.permission.AclEntry -->
  15220. <!-- start class org.apache.hadoop.fs.permission.AclEntryScope -->
  15221. <class name="AclEntryScope" extends="java.lang.Enum"
  15222. abstract="false"
  15223. static="false" final="true" visibility="public"
  15224. deprecated="not deprecated">
  15225. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryScope[]"
  15226. abstract="false" native="false" synchronized="false"
  15227. static="true" final="false" visibility="public"
  15228. deprecated="not deprecated">
  15229. </method>
  15230. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryScope"
  15231. abstract="false" native="false" synchronized="false"
  15232. static="true" final="false" visibility="public"
  15233. deprecated="not deprecated">
  15234. <param name="name" type="java.lang.String"/>
  15235. </method>
  15236. <doc>
  15237. <![CDATA[Specifies the scope or intended usage of an ACL entry.]]>
  15238. </doc>
  15239. </class>
  15240. <!-- end class org.apache.hadoop.fs.permission.AclEntryScope -->
  15241. <!-- start class org.apache.hadoop.fs.permission.AclEntryType -->
  15242. <class name="AclEntryType" extends="java.lang.Enum"
  15243. abstract="false"
  15244. static="false" final="true" visibility="public"
  15245. deprecated="not deprecated">
  15246. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryType[]"
  15247. abstract="false" native="false" synchronized="false"
  15248. static="true" final="false" visibility="public"
  15249. deprecated="not deprecated">
  15250. </method>
  15251. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryType"
  15252. abstract="false" native="false" synchronized="false"
  15253. static="true" final="false" visibility="public"
  15254. deprecated="not deprecated">
  15255. <param name="name" type="java.lang.String"/>
  15256. </method>
  15257. <method name="toString" return="java.lang.String"
  15258. abstract="false" native="false" synchronized="false"
  15259. static="false" final="false" visibility="public"
  15260. deprecated="not deprecated">
  15261. </method>
  15262. <method name="toStringStable" return="java.lang.String"
  15263. abstract="false" native="false" synchronized="false"
  15264. static="false" final="false" visibility="public"
  15265. deprecated="not deprecated">
  15266. <doc>
  15267. <![CDATA[Returns a string representation guaranteed to be stable across versions to
  15268. satisfy backward compatibility requirements, such as for shell command
  15269. output or serialization.
  15270. @return stable, backward compatible string representation]]>
  15271. </doc>
  15272. </method>
  15273. <doc>
  15274. <![CDATA[Specifies the type of an ACL entry.]]>
  15275. </doc>
  15276. </class>
  15277. <!-- end class org.apache.hadoop.fs.permission.AclEntryType -->
  15278. <!-- start class org.apache.hadoop.fs.permission.AclStatus -->
  15279. <class name="AclStatus" extends="java.lang.Object"
  15280. abstract="false"
  15281. static="false" final="false" visibility="public"
  15282. deprecated="not deprecated">
  15283. <method name="getOwner" return="java.lang.String"
  15284. abstract="false" native="false" synchronized="false"
  15285. static="false" final="false" visibility="public"
  15286. deprecated="not deprecated">
  15287. <doc>
  15288. <![CDATA[Returns the file owner.
  15289. @return String file owner]]>
  15290. </doc>
  15291. </method>
  15292. <method name="getGroup" return="java.lang.String"
  15293. abstract="false" native="false" synchronized="false"
  15294. static="false" final="false" visibility="public"
  15295. deprecated="not deprecated">
  15296. <doc>
  15297. <![CDATA[Returns the file group.
  15298. @return String file group]]>
  15299. </doc>
  15300. </method>
  15301. <method name="isStickyBit" return="boolean"
  15302. abstract="false" native="false" synchronized="false"
  15303. static="false" final="false" visibility="public"
  15304. deprecated="not deprecated">
  15305. <doc>
  15306. <![CDATA[Returns the sticky bit.
  15307. @return boolean sticky bit]]>
  15308. </doc>
  15309. </method>
  15310. <method name="getEntries" return="java.util.List"
  15311. abstract="false" native="false" synchronized="false"
  15312. static="false" final="false" visibility="public"
  15313. deprecated="not deprecated">
  15314. <doc>
  15315. <![CDATA[Returns the list of all ACL entries, ordered by their natural ordering.
  15316. @return List<AclEntry> unmodifiable ordered list of all ACL entries]]>
  15317. </doc>
  15318. </method>
  15319. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  15320. abstract="false" native="false" synchronized="false"
  15321. static="false" final="false" visibility="public"
  15322. deprecated="not deprecated">
  15323. <doc>
  15324. <![CDATA[Returns the permission set for the path
  15325. @return {@link FsPermission} for the path]]>
  15326. </doc>
  15327. </method>
  15328. <method name="equals" return="boolean"
  15329. abstract="false" native="false" synchronized="false"
  15330. static="false" final="false" visibility="public"
  15331. deprecated="not deprecated">
  15332. <param name="o" type="java.lang.Object"/>
  15333. </method>
  15334. <method name="hashCode" return="int"
  15335. abstract="false" native="false" synchronized="false"
  15336. static="false" final="false" visibility="public"
  15337. deprecated="not deprecated">
  15338. </method>
  15339. <method name="toString" return="java.lang.String"
  15340. abstract="false" native="false" synchronized="false"
  15341. static="false" final="false" visibility="public"
  15342. deprecated="not deprecated">
  15343. </method>
  15344. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  15345. abstract="false" native="false" synchronized="false"
  15346. static="false" final="false" visibility="public"
  15347. deprecated="not deprecated">
  15348. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  15349. <doc>
  15350. <![CDATA[Get the effective permission for the AclEntry
  15351. @param entry AclEntry to get the effective action]]>
  15352. </doc>
  15353. </method>
  15354. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  15355. abstract="false" native="false" synchronized="false"
  15356. static="false" final="false" visibility="public"
  15357. deprecated="not deprecated">
  15358. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  15359. <param name="permArg" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15360. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  15361. <doc>
  15362. <![CDATA[Get the effective permission for the AclEntry. <br>
  15363. Recommended to use this API ONLY if client communicates with the old
  15364. NameNode, needs to pass the Permission for the path to get effective
  15365. permission, else use {@link AclStatus#getEffectivePermission(AclEntry)}.
  15366. @param entry AclEntry to get the effective action
  15367. @param permArg Permission for the path. However if the client is NOT
  15368. communicating with old namenode, then this argument will not have
  15369. any preference.
  15370. @return Returns the effective permission for the entry.
  15371. @throws IllegalArgumentException If the client communicating with old
  15372. namenode and permission is not passed as an argument.]]>
  15373. </doc>
  15374. </method>
  15375. <doc>
  15376. <![CDATA[An AclStatus contains the ACL information of a specific file. AclStatus
  15377. instances are immutable. Use a {@link Builder} to create a new instance.]]>
  15378. </doc>
  15379. </class>
  15380. <!-- end class org.apache.hadoop.fs.permission.AclStatus -->
  15381. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  15382. <class name="FsAction" extends="java.lang.Enum"
  15383. abstract="false"
  15384. static="false" final="true" visibility="public"
  15385. deprecated="not deprecated">
  15386. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  15387. abstract="false" native="false" synchronized="false"
  15388. static="true" final="false" visibility="public"
  15389. deprecated="not deprecated">
  15390. </method>
  15391. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  15392. abstract="false" native="false" synchronized="false"
  15393. static="true" final="false" visibility="public"
  15394. deprecated="not deprecated">
  15395. <param name="name" type="java.lang.String"/>
  15396. </method>
  15397. <method name="implies" return="boolean"
  15398. abstract="false" native="false" synchronized="false"
  15399. static="false" final="false" visibility="public"
  15400. deprecated="not deprecated">
  15401. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  15402. <doc>
  15403. <![CDATA[Return true if this action implies that action.
  15404. @param that]]>
  15405. </doc>
  15406. </method>
  15407. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  15408. abstract="false" native="false" synchronized="false"
  15409. static="false" final="false" visibility="public"
  15410. deprecated="not deprecated">
  15411. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  15412. <doc>
  15413. <![CDATA[AND operation.]]>
  15414. </doc>
  15415. </method>
  15416. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  15417. abstract="false" native="false" synchronized="false"
  15418. static="false" final="false" visibility="public"
  15419. deprecated="not deprecated">
  15420. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  15421. <doc>
  15422. <![CDATA[OR operation.]]>
  15423. </doc>
  15424. </method>
  15425. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  15426. abstract="false" native="false" synchronized="false"
  15427. static="false" final="false" visibility="public"
  15428. deprecated="not deprecated">
  15429. <doc>
  15430. <![CDATA[NOT operation.]]>
  15431. </doc>
  15432. </method>
  15433. <method name="getFsAction" return="org.apache.hadoop.fs.permission.FsAction"
  15434. abstract="false" native="false" synchronized="false"
  15435. static="true" final="false" visibility="public"
  15436. deprecated="not deprecated">
  15437. <param name="permission" type="java.lang.String"/>
  15438. <doc>
  15439. <![CDATA[Get the FsAction enum for String representation of permissions
  15440. @param permission
  15441. 3-character string representation of permission. ex: rwx
  15442. @return Returns FsAction enum if the corresponding FsAction exists for permission.
  15443. Otherwise returns null]]>
  15444. </doc>
  15445. </method>
  15446. <field name="SYMBOL" type="java.lang.String"
  15447. transient="false" volatile="false"
  15448. static="false" final="true" visibility="public"
  15449. deprecated="not deprecated">
  15450. <doc>
  15451. <![CDATA[Symbolic representation]]>
  15452. </doc>
  15453. </field>
  15454. <doc>
  15455. <![CDATA[File system actions, e.g. read, write, etc.]]>
  15456. </doc>
  15457. </class>
  15458. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  15459. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  15460. <class name="FsPermission" extends="java.lang.Object"
  15461. abstract="false"
  15462. static="false" final="false" visibility="public"
  15463. deprecated="not deprecated">
  15464. <implements name="org.apache.hadoop.io.Writable"/>
  15465. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  15466. static="false" final="false" visibility="public"
  15467. deprecated="not deprecated">
  15468. <doc>
  15469. <![CDATA[Construct by the given {@link FsAction}.
  15470. @param u user action
  15471. @param g group action
  15472. @param o other action]]>
  15473. </doc>
  15474. </constructor>
  15475. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, boolean"
  15476. static="false" final="false" visibility="public"
  15477. deprecated="not deprecated">
  15478. </constructor>
  15479. <constructor name="FsPermission" type="short"
  15480. static="false" final="false" visibility="public"
  15481. deprecated="not deprecated">
  15482. <doc>
  15483. <![CDATA[Construct by the given mode.
  15484. @param mode
  15485. @see #toShort()]]>
  15486. </doc>
  15487. </constructor>
  15488. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  15489. static="false" final="false" visibility="public"
  15490. deprecated="not deprecated">
  15491. <doc>
  15492. <![CDATA[Copy constructor
  15493. @param other other permission]]>
  15494. </doc>
  15495. </constructor>
  15496. <constructor name="FsPermission" type="java.lang.String"
  15497. static="false" final="false" visibility="public"
  15498. deprecated="not deprecated">
  15499. <doc>
  15500. <![CDATA[Construct by given mode, either in octal or symbolic format.
  15501. @param mode mode as a string, either in octal or symbolic format
  15502. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  15503. </doc>
  15504. </constructor>
  15505. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  15506. abstract="false" native="false" synchronized="false"
  15507. static="true" final="false" visibility="public"
  15508. deprecated="not deprecated">
  15509. <param name="permission" type="short"/>
  15510. <doc>
  15511. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  15512. </doc>
  15513. </method>
  15514. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  15515. abstract="false" native="false" synchronized="false"
  15516. static="false" final="false" visibility="public"
  15517. deprecated="not deprecated">
  15518. <doc>
  15519. <![CDATA[Return user {@link FsAction}.]]>
  15520. </doc>
  15521. </method>
  15522. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  15523. abstract="false" native="false" synchronized="false"
  15524. static="false" final="false" visibility="public"
  15525. deprecated="not deprecated">
  15526. <doc>
  15527. <![CDATA[Return group {@link FsAction}.]]>
  15528. </doc>
  15529. </method>
  15530. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  15531. abstract="false" native="false" synchronized="false"
  15532. static="false" final="false" visibility="public"
  15533. deprecated="not deprecated">
  15534. <doc>
  15535. <![CDATA[Return other {@link FsAction}.]]>
  15536. </doc>
  15537. </method>
  15538. <method name="fromShort"
  15539. abstract="false" native="false" synchronized="false"
  15540. static="false" final="false" visibility="public"
  15541. deprecated="not deprecated">
  15542. <param name="n" type="short"/>
  15543. </method>
  15544. <method name="write"
  15545. abstract="false" native="false" synchronized="false"
  15546. static="false" final="false" visibility="public"
  15547. deprecated="not deprecated">
  15548. <param name="out" type="java.io.DataOutput"/>
  15549. <exception name="IOException" type="java.io.IOException"/>
  15550. </method>
  15551. <method name="readFields"
  15552. abstract="false" native="false" synchronized="false"
  15553. static="false" final="false" visibility="public"
  15554. deprecated="not deprecated">
  15555. <param name="in" type="java.io.DataInput"/>
  15556. <exception name="IOException" type="java.io.IOException"/>
  15557. </method>
  15558. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  15559. abstract="false" native="false" synchronized="false"
  15560. static="true" final="false" visibility="public"
  15561. deprecated="not deprecated">
  15562. <param name="in" type="java.io.DataInput"/>
  15563. <exception name="IOException" type="java.io.IOException"/>
  15564. <doc>
  15565. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  15566. </doc>
  15567. </method>
  15568. <method name="toShort" return="short"
  15569. abstract="false" native="false" synchronized="false"
  15570. static="false" final="false" visibility="public"
  15571. deprecated="not deprecated">
  15572. <doc>
  15573. <![CDATA[Encode the object to a short.]]>
  15574. </doc>
  15575. </method>
  15576. <method name="toExtendedShort" return="short"
  15577. abstract="false" native="false" synchronized="false"
  15578. static="false" final="false" visibility="public"
  15579. deprecated="not deprecated">
  15580. <doc>
  15581. <![CDATA[Encodes the object to a short. Unlike {@link #toShort()}, this method may
  15582. return values outside the fixed range 00000 - 01777 if extended features
  15583. are encoded into this permission, such as the ACL bit.
  15584. @return short extended short representation of this permission]]>
  15585. </doc>
  15586. </method>
  15587. <method name="toOctal" return="short"
  15588. abstract="false" native="false" synchronized="false"
  15589. static="false" final="false" visibility="public"
  15590. deprecated="not deprecated">
  15591. <doc>
  15592. <![CDATA[Returns the FsPermission in an octal format.
  15593. @return short Unlike {@link #toShort()} which provides a binary
  15594. representation, this method returns the standard octal style permission.]]>
  15595. </doc>
  15596. </method>
  15597. <method name="equals" return="boolean"
  15598. abstract="false" native="false" synchronized="false"
  15599. static="false" final="false" visibility="public"
  15600. deprecated="not deprecated">
  15601. <param name="obj" type="java.lang.Object"/>
  15602. </method>
  15603. <method name="hashCode" return="int"
  15604. abstract="false" native="false" synchronized="false"
  15605. static="false" final="false" visibility="public"
  15606. deprecated="not deprecated">
  15607. </method>
  15608. <method name="toString" return="java.lang.String"
  15609. abstract="false" native="false" synchronized="false"
  15610. static="false" final="false" visibility="public"
  15611. deprecated="not deprecated">
  15612. </method>
  15613. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  15614. abstract="false" native="false" synchronized="false"
  15615. static="false" final="false" visibility="public"
  15616. deprecated="not deprecated">
  15617. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15618. <doc>
  15619. <![CDATA[Apply a umask to this permission and return a new one.
  15620. The umask is used by create, mkdir, and other Hadoop filesystem operations.
  15621. The mode argument for these operations is modified by removing the bits
  15622. which are set in the umask. Thus, the umask limits the permissions which
  15623. newly created files and directories get.
  15624. @param umask The umask to use
  15625. @return The effective permission]]>
  15626. </doc>
  15627. </method>
  15628. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  15629. abstract="false" native="false" synchronized="false"
  15630. static="true" final="false" visibility="public"
  15631. deprecated="not deprecated">
  15632. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15633. <doc>
  15634. <![CDATA[Get the user file creation mask (umask)
  15635. {@code UMASK_LABEL} config param has umask value that is either symbolic
  15636. or octal.
  15637. Symbolic umask is applied relative to file mode creation mask;
  15638. the permission op characters '+' clears the corresponding bit in the mask,
  15639. '-' sets bits in the mask.
  15640. Octal umask, the specified bits are set in the file mode creation mask.
  15641. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  15642. </doc>
  15643. </method>
  15644. <method name="getStickyBit" return="boolean"
  15645. abstract="false" native="false" synchronized="false"
  15646. static="false" final="false" visibility="public"
  15647. deprecated="not deprecated">
  15648. </method>
  15649. <method name="getAclBit" return="boolean"
  15650. abstract="false" native="false" synchronized="false"
  15651. static="false" final="false" visibility="public"
  15652. deprecated="not deprecated">
  15653. <doc>
  15654. <![CDATA[Returns true if there is also an ACL (access control list).
  15655. @return boolean true if there is also an ACL (access control list).]]>
  15656. </doc>
  15657. </method>
  15658. <method name="getEncryptedBit" return="boolean"
  15659. abstract="false" native="false" synchronized="false"
  15660. static="false" final="false" visibility="public"
  15661. deprecated="not deprecated">
  15662. <doc>
  15663. <![CDATA[Returns true if the file is encrypted or directory is in an encryption zone]]>
  15664. </doc>
  15665. </method>
  15666. <method name="setUMask"
  15667. abstract="false" native="false" synchronized="false"
  15668. static="true" final="false" visibility="public"
  15669. deprecated="not deprecated">
  15670. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15671. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15672. <doc>
  15673. <![CDATA[Set the user file creation mask (umask)]]>
  15674. </doc>
  15675. </method>
  15676. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  15677. abstract="false" native="false" synchronized="false"
  15678. static="true" final="false" visibility="public"
  15679. deprecated="not deprecated">
  15680. <doc>
  15681. <![CDATA[Get the default permission for directory and symlink.
  15682. In previous versions, this default permission was also used to
  15683. create files, so files created end up with ugo+x permission.
  15684. See HADOOP-9155 for detail.
  15685. Two new methods are added to solve this, please use
  15686. {@link FsPermission#getDirDefault()} for directory, and use
  15687. {@link FsPermission#getFileDefault()} for file.
  15688. This method is kept for compatibility.]]>
  15689. </doc>
  15690. </method>
  15691. <method name="getDirDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  15692. abstract="false" native="false" synchronized="false"
  15693. static="true" final="false" visibility="public"
  15694. deprecated="not deprecated">
  15695. <doc>
  15696. <![CDATA[Get the default permission for directory.]]>
  15697. </doc>
  15698. </method>
  15699. <method name="getFileDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  15700. abstract="false" native="false" synchronized="false"
  15701. static="true" final="false" visibility="public"
  15702. deprecated="not deprecated">
  15703. <doc>
  15704. <![CDATA[Get the default permission for file.]]>
  15705. </doc>
  15706. </method>
  15707. <method name="getCachePoolDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  15708. abstract="false" native="false" synchronized="false"
  15709. static="true" final="false" visibility="public"
  15710. deprecated="not deprecated">
  15711. <doc>
  15712. <![CDATA[Get the default permission for cache pools.]]>
  15713. </doc>
  15714. </method>
  15715. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  15716. abstract="false" native="false" synchronized="false"
  15717. static="true" final="false" visibility="public"
  15718. deprecated="not deprecated">
  15719. <param name="unixSymbolicPermission" type="java.lang.String"/>
  15720. <doc>
  15721. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  15722. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  15723. </doc>
  15724. </method>
  15725. <field name="MAX_PERMISSION_LENGTH" type="int"
  15726. transient="false" volatile="false"
  15727. static="true" final="true" visibility="public"
  15728. deprecated="not deprecated">
  15729. <doc>
  15730. <![CDATA[Maximum acceptable length of a permission string to parse]]>
  15731. </doc>
  15732. </field>
  15733. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  15734. transient="false" volatile="false"
  15735. static="true" final="true" visibility="public"
  15736. deprecated="not deprecated">
  15737. <doc>
  15738. <![CDATA[umask property label deprecated key and code in getUMask method
  15739. to accommodate it may be removed in version .23]]>
  15740. </doc>
  15741. </field>
  15742. <field name="UMASK_LABEL" type="java.lang.String"
  15743. transient="false" volatile="false"
  15744. static="true" final="true" visibility="public"
  15745. deprecated="not deprecated">
  15746. </field>
  15747. <field name="DEFAULT_UMASK" type="int"
  15748. transient="false" volatile="false"
  15749. static="true" final="true" visibility="public"
  15750. deprecated="not deprecated">
  15751. </field>
  15752. <doc>
  15753. <![CDATA[A class for file/directory permissions.]]>
  15754. </doc>
  15755. </class>
  15756. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  15757. </package>
  15758. <package name="org.apache.hadoop.fs.sftp">
  15759. </package>
  15760. <package name="org.apache.hadoop.fs.shell.find">
  15761. </package>
  15762. <package name="org.apache.hadoop.fs.viewfs">
  15763. <!-- start class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  15764. <class name="NotInMountpointException" extends="java.lang.UnsupportedOperationException"
  15765. abstract="false"
  15766. static="false" final="false" visibility="public"
  15767. deprecated="not deprecated">
  15768. <constructor name="NotInMountpointException" type="org.apache.hadoop.fs.Path, java.lang.String"
  15769. static="false" final="false" visibility="public"
  15770. deprecated="not deprecated">
  15771. </constructor>
  15772. <constructor name="NotInMountpointException" type="java.lang.String"
  15773. static="false" final="false" visibility="public"
  15774. deprecated="not deprecated">
  15775. </constructor>
  15776. <method name="getMessage" return="java.lang.String"
  15777. abstract="false" native="false" synchronized="false"
  15778. static="false" final="false" visibility="public"
  15779. deprecated="not deprecated">
  15780. </method>
  15781. <doc>
  15782. <![CDATA[NotInMountpointException extends the UnsupportedOperationException.
  15783. Exception class used in cases where the given path is not mounted
  15784. through viewfs.]]>
  15785. </doc>
  15786. </class>
  15787. <!-- end class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  15788. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  15789. <class name="ViewFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  15790. abstract="false"
  15791. static="false" final="false" visibility="public"
  15792. deprecated="not deprecated">
  15793. <constructor name="ViewFileSystem"
  15794. static="false" final="false" visibility="public"
  15795. deprecated="not deprecated">
  15796. <exception name="IOException" type="java.io.IOException"/>
  15797. <doc>
  15798. <![CDATA[This is the constructor with the signature needed by
  15799. {@link FileSystem#createFileSystem(URI, Configuration)}
  15800. After this constructor is called initialize() is called.
  15801. @throws IOException]]>
  15802. </doc>
  15803. </constructor>
  15804. <constructor name="ViewFileSystem" type="org.apache.hadoop.conf.Configuration"
  15805. static="false" final="false" visibility="public"
  15806. deprecated="not deprecated">
  15807. <exception name="IOException" type="java.io.IOException"/>
  15808. <doc>
  15809. <![CDATA[Convenience Constructor for apps to call directly
  15810. @param conf
  15811. @throws IOException]]>
  15812. </doc>
  15813. </constructor>
  15814. <method name="getScheme" return="java.lang.String"
  15815. abstract="false" native="false" synchronized="false"
  15816. static="false" final="false" visibility="public"
  15817. deprecated="not deprecated">
  15818. <doc>
  15819. <![CDATA[Return the protocol scheme for the FileSystem.
  15820. <p/>
  15821. @return <code>viewfs</code>]]>
  15822. </doc>
  15823. </method>
  15824. <method name="initialize"
  15825. abstract="false" native="false" synchronized="false"
  15826. static="false" final="false" visibility="public"
  15827. deprecated="not deprecated">
  15828. <param name="theUri" type="java.net.URI"/>
  15829. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15830. <exception name="IOException" type="java.io.IOException"/>
  15831. <doc>
  15832. <![CDATA[Called after a new FileSystem instance is constructed.
  15833. @param theUri a uri whose authority section names the host, port, etc. for
  15834. this FileSystem
  15835. @param conf the configuration]]>
  15836. </doc>
  15837. </method>
  15838. <method name="getTrashCanLocation" return="org.apache.hadoop.fs.Path"
  15839. abstract="false" native="false" synchronized="false"
  15840. static="false" final="false" visibility="public"
  15841. deprecated="not deprecated">
  15842. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15843. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15844. </method>
  15845. <method name="getUri" return="java.net.URI"
  15846. abstract="false" native="false" synchronized="false"
  15847. static="false" final="false" visibility="public"
  15848. deprecated="not deprecated">
  15849. </method>
  15850. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  15851. abstract="false" native="false" synchronized="false"
  15852. static="false" final="false" visibility="public"
  15853. deprecated="not deprecated">
  15854. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15855. <exception name="IOException" type="java.io.IOException"/>
  15856. </method>
  15857. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15858. abstract="false" native="false" synchronized="false"
  15859. static="false" final="false" visibility="public"
  15860. deprecated="not deprecated">
  15861. </method>
  15862. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15863. abstract="false" native="false" synchronized="false"
  15864. static="false" final="false" visibility="public"
  15865. deprecated="not deprecated">
  15866. </method>
  15867. <method name="setWorkingDirectory"
  15868. abstract="false" native="false" synchronized="false"
  15869. static="false" final="false" visibility="public"
  15870. deprecated="not deprecated">
  15871. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  15872. </method>
  15873. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  15874. abstract="false" native="false" synchronized="false"
  15875. static="false" final="false" visibility="public"
  15876. deprecated="not deprecated">
  15877. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15878. <param name="bufferSize" type="int"/>
  15879. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15880. <exception name="IOException" type="java.io.IOException"/>
  15881. </method>
  15882. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  15883. abstract="false" native="false" synchronized="false"
  15884. static="false" final="false" visibility="public"
  15885. deprecated="not deprecated">
  15886. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15887. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15888. <param name="flags" type="java.util.EnumSet"/>
  15889. <param name="bufferSize" type="int"/>
  15890. <param name="replication" type="short"/>
  15891. <param name="blockSize" type="long"/>
  15892. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15893. <exception name="IOException" type="java.io.IOException"/>
  15894. </method>
  15895. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  15896. abstract="false" native="false" synchronized="false"
  15897. static="false" final="false" visibility="public"
  15898. deprecated="not deprecated">
  15899. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15900. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15901. <param name="overwrite" type="boolean"/>
  15902. <param name="bufferSize" type="int"/>
  15903. <param name="replication" type="short"/>
  15904. <param name="blockSize" type="long"/>
  15905. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15906. <exception name="IOException" type="java.io.IOException"/>
  15907. </method>
  15908. <method name="delete" return="boolean"
  15909. abstract="false" native="false" synchronized="false"
  15910. static="false" final="false" visibility="public"
  15911. deprecated="not deprecated">
  15912. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15913. <param name="recursive" type="boolean"/>
  15914. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15915. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15916. <exception name="IOException" type="java.io.IOException"/>
  15917. </method>
  15918. <method name="delete" return="boolean"
  15919. abstract="false" native="false" synchronized="false"
  15920. static="false" final="false" visibility="public"
  15921. deprecated="not deprecated">
  15922. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15923. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15924. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15925. <exception name="IOException" type="java.io.IOException"/>
  15926. </method>
  15927. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  15928. abstract="false" native="false" synchronized="false"
  15929. static="false" final="false" visibility="public"
  15930. deprecated="not deprecated">
  15931. <param name="fs" type="org.apache.hadoop.fs.FileStatus"/>
  15932. <param name="start" type="long"/>
  15933. <param name="len" type="long"/>
  15934. <exception name="IOException" type="java.io.IOException"/>
  15935. </method>
  15936. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  15937. abstract="false" native="false" synchronized="false"
  15938. static="false" final="false" visibility="public"
  15939. deprecated="not deprecated">
  15940. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15941. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15942. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15943. <exception name="IOException" type="java.io.IOException"/>
  15944. </method>
  15945. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15946. abstract="false" native="false" synchronized="false"
  15947. static="false" final="false" visibility="public"
  15948. deprecated="not deprecated">
  15949. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15950. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15951. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15952. <exception name="IOException" type="java.io.IOException"/>
  15953. </method>
  15954. <method name="access"
  15955. abstract="false" native="false" synchronized="false"
  15956. static="false" final="false" visibility="public"
  15957. deprecated="not deprecated">
  15958. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15959. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  15960. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15961. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15962. <exception name="IOException" type="java.io.IOException"/>
  15963. </method>
  15964. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15965. abstract="false" native="false" synchronized="false"
  15966. static="false" final="false" visibility="public"
  15967. deprecated="not deprecated">
  15968. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15969. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15970. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15971. <exception name="IOException" type="java.io.IOException"/>
  15972. </method>
  15973. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  15974. abstract="false" native="false" synchronized="false"
  15975. static="false" final="false" visibility="public"
  15976. deprecated="not deprecated">
  15977. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15978. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  15979. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15980. <exception name="IOException" type="java.io.IOException"/>
  15981. </method>
  15982. <method name="mkdirs" return="boolean"
  15983. abstract="false" native="false" synchronized="false"
  15984. static="false" final="false" visibility="public"
  15985. deprecated="not deprecated">
  15986. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  15987. <exception name="IOException" type="java.io.IOException"/>
  15988. </method>
  15989. <method name="mkdirs" return="boolean"
  15990. abstract="false" native="false" synchronized="false"
  15991. static="false" final="false" visibility="public"
  15992. deprecated="not deprecated">
  15993. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  15994. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15995. <exception name="IOException" type="java.io.IOException"/>
  15996. </method>
  15997. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  15998. abstract="false" native="false" synchronized="false"
  15999. static="false" final="false" visibility="public"
  16000. deprecated="not deprecated">
  16001. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16002. <param name="bufferSize" type="int"/>
  16003. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16004. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16005. <exception name="IOException" type="java.io.IOException"/>
  16006. </method>
  16007. <method name="rename" return="boolean"
  16008. abstract="false" native="false" synchronized="false"
  16009. static="false" final="false" visibility="public"
  16010. deprecated="not deprecated">
  16011. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16012. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16013. <exception name="IOException" type="java.io.IOException"/>
  16014. </method>
  16015. <method name="truncate" return="boolean"
  16016. abstract="false" native="false" synchronized="false"
  16017. static="false" final="false" visibility="public"
  16018. deprecated="not deprecated">
  16019. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16020. <param name="newLength" type="long"/>
  16021. <exception name="IOException" type="java.io.IOException"/>
  16022. </method>
  16023. <method name="setOwner"
  16024. abstract="false" native="false" synchronized="false"
  16025. static="false" final="false" visibility="public"
  16026. deprecated="not deprecated">
  16027. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16028. <param name="username" type="java.lang.String"/>
  16029. <param name="groupname" type="java.lang.String"/>
  16030. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16031. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16032. <exception name="IOException" type="java.io.IOException"/>
  16033. </method>
  16034. <method name="setPermission"
  16035. abstract="false" native="false" synchronized="false"
  16036. static="false" final="false" visibility="public"
  16037. deprecated="not deprecated">
  16038. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16039. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16040. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16041. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16042. <exception name="IOException" type="java.io.IOException"/>
  16043. </method>
  16044. <method name="setReplication" return="boolean"
  16045. abstract="false" native="false" synchronized="false"
  16046. static="false" final="false" visibility="public"
  16047. deprecated="not deprecated">
  16048. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16049. <param name="replication" type="short"/>
  16050. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16051. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16052. <exception name="IOException" type="java.io.IOException"/>
  16053. </method>
  16054. <method name="setTimes"
  16055. abstract="false" native="false" synchronized="false"
  16056. static="false" final="false" visibility="public"
  16057. deprecated="not deprecated">
  16058. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16059. <param name="mtime" type="long"/>
  16060. <param name="atime" type="long"/>
  16061. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16062. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16063. <exception name="IOException" type="java.io.IOException"/>
  16064. </method>
  16065. <method name="modifyAclEntries"
  16066. abstract="false" native="false" synchronized="false"
  16067. static="false" final="false" visibility="public"
  16068. deprecated="not deprecated">
  16069. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16070. <param name="aclSpec" type="java.util.List"/>
  16071. <exception name="IOException" type="java.io.IOException"/>
  16072. </method>
  16073. <method name="removeAclEntries"
  16074. abstract="false" native="false" synchronized="false"
  16075. static="false" final="false" visibility="public"
  16076. deprecated="not deprecated">
  16077. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16078. <param name="aclSpec" type="java.util.List"/>
  16079. <exception name="IOException" type="java.io.IOException"/>
  16080. </method>
  16081. <method name="removeDefaultAcl"
  16082. abstract="false" native="false" synchronized="false"
  16083. static="false" final="false" visibility="public"
  16084. deprecated="not deprecated">
  16085. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16086. <exception name="IOException" type="java.io.IOException"/>
  16087. </method>
  16088. <method name="removeAcl"
  16089. abstract="false" native="false" synchronized="false"
  16090. static="false" final="false" visibility="public"
  16091. deprecated="not deprecated">
  16092. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16093. <exception name="IOException" type="java.io.IOException"/>
  16094. </method>
  16095. <method name="setAcl"
  16096. abstract="false" native="false" synchronized="false"
  16097. static="false" final="false" visibility="public"
  16098. deprecated="not deprecated">
  16099. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16100. <param name="aclSpec" type="java.util.List"/>
  16101. <exception name="IOException" type="java.io.IOException"/>
  16102. </method>
  16103. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  16104. abstract="false" native="false" synchronized="false"
  16105. static="false" final="false" visibility="public"
  16106. deprecated="not deprecated">
  16107. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16108. <exception name="IOException" type="java.io.IOException"/>
  16109. </method>
  16110. <method name="setXAttr"
  16111. abstract="false" native="false" synchronized="false"
  16112. static="false" final="false" visibility="public"
  16113. deprecated="not deprecated">
  16114. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16115. <param name="name" type="java.lang.String"/>
  16116. <param name="value" type="byte[]"/>
  16117. <param name="flag" type="java.util.EnumSet"/>
  16118. <exception name="IOException" type="java.io.IOException"/>
  16119. </method>
  16120. <method name="getXAttr" return="byte[]"
  16121. abstract="false" native="false" synchronized="false"
  16122. static="false" final="false" visibility="public"
  16123. deprecated="not deprecated">
  16124. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16125. <param name="name" type="java.lang.String"/>
  16126. <exception name="IOException" type="java.io.IOException"/>
  16127. </method>
  16128. <method name="getXAttrs" return="java.util.Map"
  16129. abstract="false" native="false" synchronized="false"
  16130. static="false" final="false" visibility="public"
  16131. deprecated="not deprecated">
  16132. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16133. <exception name="IOException" type="java.io.IOException"/>
  16134. </method>
  16135. <method name="getXAttrs" return="java.util.Map"
  16136. abstract="false" native="false" synchronized="false"
  16137. static="false" final="false" visibility="public"
  16138. deprecated="not deprecated">
  16139. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16140. <param name="names" type="java.util.List"/>
  16141. <exception name="IOException" type="java.io.IOException"/>
  16142. </method>
  16143. <method name="listXAttrs" return="java.util.List"
  16144. abstract="false" native="false" synchronized="false"
  16145. static="false" final="false" visibility="public"
  16146. deprecated="not deprecated">
  16147. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16148. <exception name="IOException" type="java.io.IOException"/>
  16149. </method>
  16150. <method name="removeXAttr"
  16151. abstract="false" native="false" synchronized="false"
  16152. static="false" final="false" visibility="public"
  16153. deprecated="not deprecated">
  16154. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16155. <param name="name" type="java.lang.String"/>
  16156. <exception name="IOException" type="java.io.IOException"/>
  16157. </method>
  16158. <method name="setVerifyChecksum"
  16159. abstract="false" native="false" synchronized="false"
  16160. static="false" final="false" visibility="public"
  16161. deprecated="not deprecated">
  16162. <param name="verifyChecksum" type="boolean"/>
  16163. </method>
  16164. <method name="getDefaultBlockSize" return="long"
  16165. abstract="false" native="false" synchronized="false"
  16166. static="false" final="false" visibility="public"
  16167. deprecated="not deprecated">
  16168. </method>
  16169. <method name="getDefaultReplication" return="short"
  16170. abstract="false" native="false" synchronized="false"
  16171. static="false" final="false" visibility="public"
  16172. deprecated="not deprecated">
  16173. </method>
  16174. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  16175. abstract="false" native="false" synchronized="false"
  16176. static="false" final="false" visibility="public"
  16177. deprecated="not deprecated">
  16178. <exception name="IOException" type="java.io.IOException"/>
  16179. </method>
  16180. <method name="getDefaultBlockSize" return="long"
  16181. abstract="false" native="false" synchronized="false"
  16182. static="false" final="false" visibility="public"
  16183. deprecated="not deprecated">
  16184. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16185. </method>
  16186. <method name="getDefaultReplication" return="short"
  16187. abstract="false" native="false" synchronized="false"
  16188. static="false" final="false" visibility="public"
  16189. deprecated="not deprecated">
  16190. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16191. </method>
  16192. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  16193. abstract="false" native="false" synchronized="false"
  16194. static="false" final="false" visibility="public"
  16195. deprecated="not deprecated">
  16196. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16197. <exception name="IOException" type="java.io.IOException"/>
  16198. </method>
  16199. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  16200. abstract="false" native="false" synchronized="false"
  16201. static="false" final="false" visibility="public"
  16202. deprecated="not deprecated">
  16203. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16204. <exception name="IOException" type="java.io.IOException"/>
  16205. </method>
  16206. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  16207. abstract="false" native="false" synchronized="false"
  16208. static="false" final="false" visibility="public"
  16209. deprecated="not deprecated">
  16210. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16211. <exception name="IOException" type="java.io.IOException"/>
  16212. </method>
  16213. <method name="setWriteChecksum"
  16214. abstract="false" native="false" synchronized="false"
  16215. static="false" final="false" visibility="public"
  16216. deprecated="not deprecated">
  16217. <param name="writeChecksum" type="boolean"/>
  16218. </method>
  16219. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  16220. abstract="false" native="false" synchronized="false"
  16221. static="false" final="false" visibility="public"
  16222. deprecated="not deprecated">
  16223. </method>
  16224. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint[]"
  16225. abstract="false" native="false" synchronized="false"
  16226. static="false" final="false" visibility="public"
  16227. deprecated="not deprecated">
  16228. </method>
  16229. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  16230. abstract="false" native="false" synchronized="false"
  16231. static="false" final="false" visibility="public"
  16232. deprecated="not deprecated">
  16233. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16234. <param name="snapshotName" type="java.lang.String"/>
  16235. <exception name="IOException" type="java.io.IOException"/>
  16236. </method>
  16237. <method name="renameSnapshot"
  16238. abstract="false" native="false" synchronized="false"
  16239. static="false" final="false" visibility="public"
  16240. deprecated="not deprecated">
  16241. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16242. <param name="snapshotOldName" type="java.lang.String"/>
  16243. <param name="snapshotNewName" type="java.lang.String"/>
  16244. <exception name="IOException" type="java.io.IOException"/>
  16245. </method>
  16246. <method name="deleteSnapshot"
  16247. abstract="false" native="false" synchronized="false"
  16248. static="false" final="false" visibility="public"
  16249. deprecated="not deprecated">
  16250. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16251. <param name="snapshotName" type="java.lang.String"/>
  16252. <exception name="IOException" type="java.io.IOException"/>
  16253. </method>
  16254. <doc>
  16255. <![CDATA[ViewFileSystem (extends the FileSystem interface) implements a client-side
  16256. mount table. Its spec and implementation is identical to {@link ViewFs}.]]>
  16257. </doc>
  16258. </class>
  16259. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  16260. <!-- start class org.apache.hadoop.fs.viewfs.ViewFs -->
  16261. <class name="ViewFs" extends="org.apache.hadoop.fs.AbstractFileSystem"
  16262. abstract="false"
  16263. static="false" final="false" visibility="public"
  16264. deprecated="not deprecated">
  16265. <constructor name="ViewFs" type="org.apache.hadoop.conf.Configuration"
  16266. static="false" final="false" visibility="public"
  16267. deprecated="not deprecated">
  16268. <exception name="IOException" type="java.io.IOException"/>
  16269. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  16270. </constructor>
  16271. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  16272. abstract="false" native="false" synchronized="false"
  16273. static="false" final="false" visibility="public"
  16274. deprecated="not deprecated">
  16275. <exception name="IOException" type="java.io.IOException"/>
  16276. </method>
  16277. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  16278. abstract="false" native="false" synchronized="false"
  16279. static="false" final="false" visibility="public"
  16280. deprecated="not deprecated">
  16281. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16282. <exception name="IOException" type="java.io.IOException"/>
  16283. </method>
  16284. <method name="getUriDefaultPort" return="int"
  16285. abstract="false" native="false" synchronized="false"
  16286. static="false" final="false" visibility="public"
  16287. deprecated="not deprecated">
  16288. </method>
  16289. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  16290. abstract="false" native="false" synchronized="false"
  16291. static="false" final="false" visibility="public"
  16292. deprecated="not deprecated">
  16293. </method>
  16294. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  16295. abstract="false" native="false" synchronized="false"
  16296. static="false" final="false" visibility="public"
  16297. deprecated="not deprecated">
  16298. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16299. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16300. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16301. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16302. <exception name="IOException" type="java.io.IOException"/>
  16303. </method>
  16304. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  16305. abstract="false" native="false" synchronized="false"
  16306. static="false" final="false" visibility="public"
  16307. deprecated="not deprecated">
  16308. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16309. <param name="flag" type="java.util.EnumSet"/>
  16310. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16311. <param name="bufferSize" type="int"/>
  16312. <param name="replication" type="short"/>
  16313. <param name="blockSize" type="long"/>
  16314. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16315. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  16316. <param name="createParent" type="boolean"/>
  16317. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16318. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  16319. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16320. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  16321. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  16322. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16323. <exception name="IOException" type="java.io.IOException"/>
  16324. </method>
  16325. <method name="delete" return="boolean"
  16326. abstract="false" native="false" synchronized="false"
  16327. static="false" final="false" visibility="public"
  16328. deprecated="not deprecated">
  16329. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16330. <param name="recursive" type="boolean"/>
  16331. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16332. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16333. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16334. <exception name="IOException" type="java.io.IOException"/>
  16335. </method>
  16336. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  16337. abstract="false" native="false" synchronized="false"
  16338. static="false" final="false" visibility="public"
  16339. deprecated="not deprecated">
  16340. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16341. <param name="start" type="long"/>
  16342. <param name="len" type="long"/>
  16343. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16344. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16345. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16346. <exception name="IOException" type="java.io.IOException"/>
  16347. </method>
  16348. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  16349. abstract="false" native="false" synchronized="false"
  16350. static="false" final="false" visibility="public"
  16351. deprecated="not deprecated">
  16352. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16353. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16354. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16355. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16356. <exception name="IOException" type="java.io.IOException"/>
  16357. </method>
  16358. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  16359. abstract="false" native="false" synchronized="false"
  16360. static="false" final="false" visibility="public"
  16361. deprecated="not deprecated">
  16362. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16363. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16364. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16365. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16366. <exception name="IOException" type="java.io.IOException"/>
  16367. </method>
  16368. <method name="access"
  16369. abstract="false" native="false" synchronized="false"
  16370. static="false" final="false" visibility="public"
  16371. deprecated="not deprecated">
  16372. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16373. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  16374. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16375. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16376. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16377. <exception name="IOException" type="java.io.IOException"/>
  16378. </method>
  16379. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  16380. abstract="false" native="false" synchronized="false"
  16381. static="false" final="false" visibility="public"
  16382. deprecated="not deprecated">
  16383. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16384. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16385. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16386. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  16387. <exception name="IOException" type="java.io.IOException"/>
  16388. </method>
  16389. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  16390. abstract="false" native="false" synchronized="false"
  16391. static="false" final="false" visibility="public"
  16392. deprecated="not deprecated">
  16393. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16394. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16395. <exception name="IOException" type="java.io.IOException"/>
  16396. </method>
  16397. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  16398. abstract="false" native="false" synchronized="false"
  16399. static="false" final="false" visibility="public"
  16400. deprecated="not deprecated">
  16401. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16402. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16403. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16404. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16405. <exception name="IOException" type="java.io.IOException"/>
  16406. </method>
  16407. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  16408. abstract="false" native="false" synchronized="false"
  16409. static="false" final="false" visibility="public"
  16410. deprecated="not deprecated">
  16411. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16412. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16413. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16414. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16415. <exception name="IOException" type="java.io.IOException"/>
  16416. </method>
  16417. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  16418. abstract="false" native="false" synchronized="false"
  16419. static="false" final="false" visibility="public"
  16420. deprecated="not deprecated">
  16421. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16422. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16423. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16424. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16425. <exception name="IOException" type="java.io.IOException"/>
  16426. </method>
  16427. <method name="mkdir"
  16428. abstract="false" native="false" synchronized="false"
  16429. static="false" final="false" visibility="public"
  16430. deprecated="not deprecated">
  16431. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  16432. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16433. <param name="createParent" type="boolean"/>
  16434. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16435. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  16436. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16437. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16438. <exception name="IOException" type="java.io.IOException"/>
  16439. </method>
  16440. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16441. abstract="false" native="false" synchronized="false"
  16442. static="false" final="false" visibility="public"
  16443. deprecated="not deprecated">
  16444. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16445. <param name="bufferSize" type="int"/>
  16446. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16447. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16448. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16449. <exception name="IOException" type="java.io.IOException"/>
  16450. </method>
  16451. <method name="truncate" return="boolean"
  16452. abstract="false" native="false" synchronized="false"
  16453. static="false" final="false" visibility="public"
  16454. deprecated="not deprecated">
  16455. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16456. <param name="newLength" type="long"/>
  16457. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16458. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16459. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16460. <exception name="IOException" type="java.io.IOException"/>
  16461. </method>
  16462. <method name="renameInternal"
  16463. abstract="false" native="false" synchronized="false"
  16464. static="false" final="false" visibility="public"
  16465. deprecated="not deprecated">
  16466. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16467. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16468. <param name="overwrite" type="boolean"/>
  16469. <exception name="IOException" type="java.io.IOException"/>
  16470. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16471. </method>
  16472. <method name="renameInternal"
  16473. abstract="false" native="false" synchronized="false"
  16474. static="false" final="false" visibility="public"
  16475. deprecated="not deprecated">
  16476. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16477. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16478. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16479. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  16480. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16481. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  16482. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16483. <exception name="IOException" type="java.io.IOException"/>
  16484. </method>
  16485. <method name="supportsSymlinks" return="boolean"
  16486. abstract="false" native="false" synchronized="false"
  16487. static="false" final="false" visibility="public"
  16488. deprecated="not deprecated">
  16489. </method>
  16490. <method name="createSymlink"
  16491. abstract="false" native="false" synchronized="false"
  16492. static="false" final="false" visibility="public"
  16493. deprecated="not deprecated">
  16494. <param name="target" type="org.apache.hadoop.fs.Path"/>
  16495. <param name="link" type="org.apache.hadoop.fs.Path"/>
  16496. <param name="createParent" type="boolean"/>
  16497. <exception name="IOException" type="java.io.IOException"/>
  16498. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16499. </method>
  16500. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  16501. abstract="false" native="false" synchronized="false"
  16502. static="false" final="false" visibility="public"
  16503. deprecated="not deprecated">
  16504. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16505. <exception name="IOException" type="java.io.IOException"/>
  16506. </method>
  16507. <method name="setOwner"
  16508. abstract="false" native="false" synchronized="false"
  16509. static="false" final="false" visibility="public"
  16510. deprecated="not deprecated">
  16511. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16512. <param name="username" type="java.lang.String"/>
  16513. <param name="groupname" type="java.lang.String"/>
  16514. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16515. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16516. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16517. <exception name="IOException" type="java.io.IOException"/>
  16518. </method>
  16519. <method name="setPermission"
  16520. abstract="false" native="false" synchronized="false"
  16521. static="false" final="false" visibility="public"
  16522. deprecated="not deprecated">
  16523. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16524. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16525. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16526. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16527. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16528. <exception name="IOException" type="java.io.IOException"/>
  16529. </method>
  16530. <method name="setReplication" return="boolean"
  16531. abstract="false" native="false" synchronized="false"
  16532. static="false" final="false" visibility="public"
  16533. deprecated="not deprecated">
  16534. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16535. <param name="replication" type="short"/>
  16536. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16537. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16538. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16539. <exception name="IOException" type="java.io.IOException"/>
  16540. </method>
  16541. <method name="setTimes"
  16542. abstract="false" native="false" synchronized="false"
  16543. static="false" final="false" visibility="public"
  16544. deprecated="not deprecated">
  16545. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16546. <param name="mtime" type="long"/>
  16547. <param name="atime" type="long"/>
  16548. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16549. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16550. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16551. <exception name="IOException" type="java.io.IOException"/>
  16552. </method>
  16553. <method name="setVerifyChecksum"
  16554. abstract="false" native="false" synchronized="false"
  16555. static="false" final="false" visibility="public"
  16556. deprecated="not deprecated">
  16557. <param name="verifyChecksum" type="boolean"/>
  16558. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16559. <exception name="IOException" type="java.io.IOException"/>
  16560. </method>
  16561. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFs.MountPoint[]"
  16562. abstract="false" native="false" synchronized="false"
  16563. static="false" final="false" visibility="public"
  16564. deprecated="not deprecated">
  16565. </method>
  16566. <method name="getDelegationTokens" return="java.util.List"
  16567. abstract="false" native="false" synchronized="false"
  16568. static="false" final="false" visibility="public"
  16569. deprecated="not deprecated">
  16570. <param name="renewer" type="java.lang.String"/>
  16571. <exception name="IOException" type="java.io.IOException"/>
  16572. </method>
  16573. <method name="isValidName" return="boolean"
  16574. abstract="false" native="false" synchronized="false"
  16575. static="false" final="false" visibility="public"
  16576. deprecated="not deprecated">
  16577. <param name="src" type="java.lang.String"/>
  16578. </method>
  16579. <method name="modifyAclEntries"
  16580. abstract="false" native="false" synchronized="false"
  16581. static="false" final="false" visibility="public"
  16582. deprecated="not deprecated">
  16583. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16584. <param name="aclSpec" type="java.util.List"/>
  16585. <exception name="IOException" type="java.io.IOException"/>
  16586. </method>
  16587. <method name="removeAclEntries"
  16588. abstract="false" native="false" synchronized="false"
  16589. static="false" final="false" visibility="public"
  16590. deprecated="not deprecated">
  16591. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16592. <param name="aclSpec" type="java.util.List"/>
  16593. <exception name="IOException" type="java.io.IOException"/>
  16594. </method>
  16595. <method name="removeDefaultAcl"
  16596. abstract="false" native="false" synchronized="false"
  16597. static="false" final="false" visibility="public"
  16598. deprecated="not deprecated">
  16599. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16600. <exception name="IOException" type="java.io.IOException"/>
  16601. </method>
  16602. <method name="removeAcl"
  16603. abstract="false" native="false" synchronized="false"
  16604. static="false" final="false" visibility="public"
  16605. deprecated="not deprecated">
  16606. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16607. <exception name="IOException" type="java.io.IOException"/>
  16608. </method>
  16609. <method name="setAcl"
  16610. abstract="false" native="false" synchronized="false"
  16611. static="false" final="false" visibility="public"
  16612. deprecated="not deprecated">
  16613. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16614. <param name="aclSpec" type="java.util.List"/>
  16615. <exception name="IOException" type="java.io.IOException"/>
  16616. </method>
  16617. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  16618. abstract="false" native="false" synchronized="false"
  16619. static="false" final="false" visibility="public"
  16620. deprecated="not deprecated">
  16621. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16622. <exception name="IOException" type="java.io.IOException"/>
  16623. </method>
  16624. <method name="setXAttr"
  16625. abstract="false" native="false" synchronized="false"
  16626. static="false" final="false" visibility="public"
  16627. deprecated="not deprecated">
  16628. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16629. <param name="name" type="java.lang.String"/>
  16630. <param name="value" type="byte[]"/>
  16631. <param name="flag" type="java.util.EnumSet"/>
  16632. <exception name="IOException" type="java.io.IOException"/>
  16633. </method>
  16634. <method name="getXAttr" return="byte[]"
  16635. abstract="false" native="false" synchronized="false"
  16636. static="false" final="false" visibility="public"
  16637. deprecated="not deprecated">
  16638. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16639. <param name="name" type="java.lang.String"/>
  16640. <exception name="IOException" type="java.io.IOException"/>
  16641. </method>
  16642. <method name="getXAttrs" return="java.util.Map"
  16643. abstract="false" native="false" synchronized="false"
  16644. static="false" final="false" visibility="public"
  16645. deprecated="not deprecated">
  16646. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16647. <exception name="IOException" type="java.io.IOException"/>
  16648. </method>
  16649. <method name="getXAttrs" return="java.util.Map"
  16650. abstract="false" native="false" synchronized="false"
  16651. static="false" final="false" visibility="public"
  16652. deprecated="not deprecated">
  16653. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16654. <param name="names" type="java.util.List"/>
  16655. <exception name="IOException" type="java.io.IOException"/>
  16656. </method>
  16657. <method name="listXAttrs" return="java.util.List"
  16658. abstract="false" native="false" synchronized="false"
  16659. static="false" final="false" visibility="public"
  16660. deprecated="not deprecated">
  16661. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16662. <exception name="IOException" type="java.io.IOException"/>
  16663. </method>
  16664. <method name="removeXAttr"
  16665. abstract="false" native="false" synchronized="false"
  16666. static="false" final="false" visibility="public"
  16667. deprecated="not deprecated">
  16668. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16669. <param name="name" type="java.lang.String"/>
  16670. <exception name="IOException" type="java.io.IOException"/>
  16671. </method>
  16672. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  16673. abstract="false" native="false" synchronized="false"
  16674. static="false" final="false" visibility="public"
  16675. deprecated="not deprecated">
  16676. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16677. <param name="snapshotName" type="java.lang.String"/>
  16678. <exception name="IOException" type="java.io.IOException"/>
  16679. </method>
  16680. <method name="renameSnapshot"
  16681. abstract="false" native="false" synchronized="false"
  16682. static="false" final="false" visibility="public"
  16683. deprecated="not deprecated">
  16684. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16685. <param name="snapshotOldName" type="java.lang.String"/>
  16686. <param name="snapshotNewName" type="java.lang.String"/>
  16687. <exception name="IOException" type="java.io.IOException"/>
  16688. </method>
  16689. <method name="deleteSnapshot"
  16690. abstract="false" native="false" synchronized="false"
  16691. static="false" final="false" visibility="public"
  16692. deprecated="not deprecated">
  16693. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16694. <param name="snapshotName" type="java.lang.String"/>
  16695. <exception name="IOException" type="java.io.IOException"/>
  16696. </method>
  16697. <method name="setStoragePolicy"
  16698. abstract="false" native="false" synchronized="false"
  16699. static="false" final="false" visibility="public"
  16700. deprecated="not deprecated">
  16701. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16702. <param name="policyName" type="java.lang.String"/>
  16703. <exception name="IOException" type="java.io.IOException"/>
  16704. </method>
  16705. <method name="unsetStoragePolicy"
  16706. abstract="false" native="false" synchronized="false"
  16707. static="false" final="false" visibility="public"
  16708. deprecated="not deprecated">
  16709. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16710. <exception name="IOException" type="java.io.IOException"/>
  16711. </method>
  16712. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  16713. abstract="false" native="false" synchronized="false"
  16714. static="false" final="false" visibility="public"
  16715. deprecated="not deprecated">
  16716. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16717. <exception name="IOException" type="java.io.IOException"/>
  16718. <doc>
  16719. <![CDATA[Retrieve the storage policy for a given file or directory.
  16720. @param src file or directory path.
  16721. @return storage policy for give file.
  16722. @throws IOException]]>
  16723. </doc>
  16724. </method>
  16725. <doc>
  16726. <![CDATA[ViewFs (extends the AbstractFileSystem interface) implements a client-side
  16727. mount table. The viewFs file system is implemented completely in memory on
  16728. the client side. The client-side mount table allows a client to provide a
  16729. customized view of a file system namespace that is composed from
  16730. one or more individual file systems (a localFs or Hdfs, S3fs, etc).
  16731. For example one could have a mount table that provides links such as
  16732. <ul>
  16733. <li> /user -> hdfs://nnContainingUserDir/user
  16734. <li> /project/foo -> hdfs://nnProject1/projects/foo
  16735. <li> /project/bar -> hdfs://nnProject2/projects/bar
  16736. <li> /tmp -> hdfs://nnTmp/privateTmpForUserXXX
  16737. </ul>
  16738. ViewFs is specified with the following URI: <b>viewfs:///</b>
  16739. <p>
  16740. To use viewfs one would typically set the default file system in the
  16741. config (i.e. fs.defaultFS < = viewfs:///) along with the
  16742. mount table config variables as described below.
  16743. <p>
  16744. <b> ** Config variables to specify the mount table entries ** </b>
  16745. <p>
  16746. The file system is initialized from the standard Hadoop config through
  16747. config variables.
  16748. See {@link FsConstants} for URI and Scheme constants;
  16749. See {@link Constants} for config var constants;
  16750. see {@link ConfigUtil} for convenient lib.
  16751. <p>
  16752. All the mount table config entries for view fs are prefixed by
  16753. <b>fs.viewfs.mounttable.</b>
  16754. For example the above example can be specified with the following
  16755. config variables:
  16756. <ul>
  16757. <li> fs.viewfs.mounttable.default.link./user=
  16758. hdfs://nnContainingUserDir/user
  16759. <li> fs.viewfs.mounttable.default.link./project/foo=
  16760. hdfs://nnProject1/projects/foo
  16761. <li> fs.viewfs.mounttable.default.link./project/bar=
  16762. hdfs://nnProject2/projects/bar
  16763. <li> fs.viewfs.mounttable.default.link./tmp=
  16764. hdfs://nnTmp/privateTmpForUserXXX
  16765. </ul>
  16766. The default mount table (when no authority is specified) is
  16767. from config variables prefixed by <b>fs.viewFs.mounttable.default </b>
  16768. The authority component of a URI can be used to specify a different mount
  16769. table. For example,
  16770. <ul>
  16771. <li> viewfs://sanjayMountable/
  16772. </ul>
  16773. is initialized from fs.viewFs.mounttable.sanjayMountable.* config variables.
  16774. <p>
  16775. <b> **** Merge Mounts **** </b>(NOTE: merge mounts are not implemented yet.)
  16776. <p>
  16777. One can also use "MergeMounts" to merge several directories (this is
  16778. sometimes called union-mounts or junction-mounts in the literature.
  16779. For example of the home directories are stored on say two file systems
  16780. (because they do not fit on one) then one could specify a mount
  16781. entry such as following merges two dirs:
  16782. <ul>
  16783. <li> /user -> hdfs://nnUser1/user,hdfs://nnUser2/user
  16784. </ul>
  16785. Such a mergeLink can be specified with the following config var where ","
  16786. is used as the separator for each of links to be merged:
  16787. <ul>
  16788. <li> fs.viewfs.mounttable.default.linkMerge./user=
  16789. hdfs://nnUser1/user,hdfs://nnUser1/user
  16790. </ul>
  16791. A special case of the merge mount is where mount table's root is merged
  16792. with the root (slash) of another file system:
  16793. <ul>
  16794. <li> fs.viewfs.mounttable.default.linkMergeSlash=hdfs://nn99/
  16795. </ul>
  16796. In this cases the root of the mount table is merged with the root of
  16797. <b>hdfs://nn99/ </b>]]>
  16798. </doc>
  16799. </class>
  16800. <!-- end class org.apache.hadoop.fs.viewfs.ViewFs -->
  16801. </package>
  16802. <package name="org.apache.hadoop.ha">
  16803. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  16804. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  16805. abstract="false"
  16806. static="false" final="false" visibility="public"
  16807. deprecated="not deprecated">
  16808. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  16809. static="false" final="false" visibility="public"
  16810. deprecated="not deprecated">
  16811. </constructor>
  16812. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  16813. static="false" final="false" visibility="public"
  16814. deprecated="not deprecated">
  16815. </constructor>
  16816. <doc>
  16817. <![CDATA[Indicates that the operator has specified an invalid configuration
  16818. for fencing methods.]]>
  16819. </doc>
  16820. </class>
  16821. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  16822. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  16823. <class name="FailoverFailedException" extends="java.lang.Exception"
  16824. abstract="false"
  16825. static="false" final="false" visibility="public"
  16826. deprecated="not deprecated">
  16827. <constructor name="FailoverFailedException" type="java.lang.String"
  16828. static="false" final="false" visibility="public"
  16829. deprecated="not deprecated">
  16830. </constructor>
  16831. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  16832. static="false" final="false" visibility="public"
  16833. deprecated="not deprecated">
  16834. </constructor>
  16835. <doc>
  16836. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  16837. </doc>
  16838. </class>
  16839. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  16840. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  16841. <interface name="FenceMethod" abstract="true"
  16842. static="false" final="false" visibility="public"
  16843. deprecated="not deprecated">
  16844. <method name="checkArgs"
  16845. abstract="false" native="false" synchronized="false"
  16846. static="false" final="false" visibility="public"
  16847. deprecated="not deprecated">
  16848. <param name="args" type="java.lang.String"/>
  16849. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16850. <doc>
  16851. <![CDATA[Verify that the given fencing method's arguments are valid.
  16852. @param args the arguments provided in the configuration. This may
  16853. be null if the operator did not configure any arguments.
  16854. @throws BadFencingConfigurationException if the arguments are invalid]]>
  16855. </doc>
  16856. </method>
  16857. <method name="tryFence" return="boolean"
  16858. abstract="false" native="false" synchronized="false"
  16859. static="false" final="false" visibility="public"
  16860. deprecated="not deprecated">
  16861. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  16862. <param name="args" type="java.lang.String"/>
  16863. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16864. <doc>
  16865. <![CDATA[Attempt to fence the target node.
  16866. @param target the address (host:ipcport) of the service to fence
  16867. @param args the configured arguments, which were checked at startup by
  16868. {@link #checkArgs(String)}
  16869. @return true if fencing was successful, false if unsuccessful or
  16870. indeterminate
  16871. @throws BadFencingConfigurationException if the configuration was
  16872. determined to be invalid only at runtime]]>
  16873. </doc>
  16874. </method>
  16875. <doc>
  16876. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  16877. another node from making continued progress. This might be implemented
  16878. by killing a process on the other node, by denying the other node's
  16879. access to shared storage, or by accessing a PDU to cut the other node's
  16880. power.
  16881. <p>
  16882. Since these methods are often vendor- or device-specific, operators
  16883. may implement this interface in order to achieve fencing.
  16884. <p>
  16885. Fencing is configured by the operator as an ordered list of methods to
  16886. attempt. Each method will be tried in turn, and the next in the list
  16887. will only be attempted if the previous one fails. See {@link NodeFencer}
  16888. for more information.
  16889. <p>
  16890. If an implementation also implements {@link Configurable} then its
  16891. <code>setConf</code> method will be called upon instantiation.]]>
  16892. </doc>
  16893. </interface>
  16894. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  16895. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  16896. <interface name="HAServiceProtocol" abstract="true"
  16897. static="false" final="false" visibility="public"
  16898. deprecated="not deprecated">
  16899. <method name="monitorHealth"
  16900. abstract="false" native="false" synchronized="false"
  16901. static="false" final="false" visibility="public"
  16902. deprecated="not deprecated">
  16903. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  16904. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16905. <exception name="IOException" type="java.io.IOException"/>
  16906. <doc>
  16907. <![CDATA[Monitor the health of service. This periodically called by the HA
  16908. frameworks to monitor the health of the service.
  16909. Service is expected to perform checks to ensure it is functional.
  16910. If the service is not healthy due to failure or partial failure,
  16911. it is expected to throw {@link HealthCheckFailedException}.
  16912. The definition of service not healthy is left to the service.
  16913. Note that when health check of an Active service fails,
  16914. failover to standby may be done.
  16915. @throws HealthCheckFailedException
  16916. if the health check of a service fails.
  16917. @throws AccessControlException
  16918. if access is denied.
  16919. @throws IOException
  16920. if other errors happen]]>
  16921. </doc>
  16922. </method>
  16923. <method name="transitionToActive"
  16924. abstract="false" native="false" synchronized="false"
  16925. static="false" final="false" visibility="public"
  16926. deprecated="not deprecated">
  16927. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16928. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16929. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16930. <exception name="IOException" type="java.io.IOException"/>
  16931. <doc>
  16932. <![CDATA[Request service to transition to active state. No operation, if the
  16933. service is already in active state.
  16934. @throws ServiceFailedException
  16935. if transition from standby to active fails.
  16936. @throws AccessControlException
  16937. if access is denied.
  16938. @throws IOException
  16939. if other errors happen]]>
  16940. </doc>
  16941. </method>
  16942. <method name="transitionToStandby"
  16943. abstract="false" native="false" synchronized="false"
  16944. static="false" final="false" visibility="public"
  16945. deprecated="not deprecated">
  16946. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16947. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16948. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16949. <exception name="IOException" type="java.io.IOException"/>
  16950. <doc>
  16951. <![CDATA[Request service to transition to standby state. No operation, if the
  16952. service is already in standby state.
  16953. @throws ServiceFailedException
  16954. if transition from active to standby fails.
  16955. @throws AccessControlException
  16956. if access is denied.
  16957. @throws IOException
  16958. if other errors happen]]>
  16959. </doc>
  16960. </method>
  16961. <method name="transitionToObserver"
  16962. abstract="false" native="false" synchronized="false"
  16963. static="false" final="false" visibility="public"
  16964. deprecated="not deprecated">
  16965. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  16966. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  16967. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16968. <exception name="IOException" type="java.io.IOException"/>
  16969. <doc>
  16970. <![CDATA[Request service to transition to observer state. No operation, if the
  16971. service is already in observer state.
  16972. @throws ServiceFailedException
  16973. if transition from standby to observer fails.
  16974. @throws AccessControlException
  16975. if access is denied.
  16976. @throws IOException
  16977. if other errors happen]]>
  16978. </doc>
  16979. </method>
  16980. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  16981. abstract="false" native="false" synchronized="false"
  16982. static="false" final="false" visibility="public"
  16983. deprecated="not deprecated">
  16984. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16985. <exception name="IOException" type="java.io.IOException"/>
  16986. <doc>
  16987. <![CDATA[Return the current status of the service. The status indicates
  16988. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  16989. some additional information.
  16990. @throws AccessControlException
  16991. if access is denied.
  16992. @throws IOException
  16993. if other errors happen
  16994. @see HAServiceStatus]]>
  16995. </doc>
  16996. </method>
  16997. <field name="versionID" type="long"
  16998. transient="false" volatile="false"
  16999. static="true" final="true" visibility="public"
  17000. deprecated="not deprecated">
  17001. <doc>
  17002. <![CDATA[Initial version of the protocol]]>
  17003. </doc>
  17004. </field>
  17005. <doc>
  17006. <![CDATA[Protocol interface that provides High Availability related primitives to
  17007. monitor and fail-over the service.
  17008. This interface could be used by HA frameworks to manage the service.]]>
  17009. </doc>
  17010. </interface>
  17011. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  17012. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  17013. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  17014. abstract="false"
  17015. static="false" final="false" visibility="public"
  17016. deprecated="not deprecated">
  17017. <constructor name="HAServiceProtocolHelper"
  17018. static="false" final="false" visibility="public"
  17019. deprecated="not deprecated">
  17020. </constructor>
  17021. <method name="monitorHealth"
  17022. abstract="false" native="false" synchronized="false"
  17023. static="true" final="false" visibility="public"
  17024. deprecated="not deprecated">
  17025. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  17026. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17027. <exception name="IOException" type="java.io.IOException"/>
  17028. </method>
  17029. <method name="transitionToActive"
  17030. abstract="false" native="false" synchronized="false"
  17031. static="true" final="false" visibility="public"
  17032. deprecated="not deprecated">
  17033. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  17034. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17035. <exception name="IOException" type="java.io.IOException"/>
  17036. </method>
  17037. <method name="transitionToStandby"
  17038. abstract="false" native="false" synchronized="false"
  17039. static="true" final="false" visibility="public"
  17040. deprecated="not deprecated">
  17041. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  17042. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17043. <exception name="IOException" type="java.io.IOException"/>
  17044. </method>
  17045. <method name="transitionToObserver"
  17046. abstract="false" native="false" synchronized="false"
  17047. static="true" final="false" visibility="public"
  17048. deprecated="not deprecated">
  17049. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  17050. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17051. <exception name="IOException" type="java.io.IOException"/>
  17052. </method>
  17053. <doc>
  17054. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  17055. unwraps the {@link RemoteException} to specific exceptions.]]>
  17056. </doc>
  17057. </class>
  17058. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  17059. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  17060. <class name="HAServiceTarget" extends="java.lang.Object"
  17061. abstract="true"
  17062. static="false" final="false" visibility="public"
  17063. deprecated="not deprecated">
  17064. <constructor name="HAServiceTarget"
  17065. static="false" final="false" visibility="public"
  17066. deprecated="not deprecated">
  17067. </constructor>
  17068. <method name="getAddress" return="java.net.InetSocketAddress"
  17069. abstract="true" native="false" synchronized="false"
  17070. static="false" final="false" visibility="public"
  17071. deprecated="not deprecated">
  17072. <doc>
  17073. <![CDATA[@return the IPC address of the target node.]]>
  17074. </doc>
  17075. </method>
  17076. <method name="getHealthMonitorAddress" return="java.net.InetSocketAddress"
  17077. abstract="false" native="false" synchronized="false"
  17078. static="false" final="false" visibility="public"
  17079. deprecated="not deprecated">
  17080. <doc>
  17081. <![CDATA[Returns an optional separate RPC server address for health checks at the
  17082. target node. If defined, then this address is used by the health monitor
  17083. for the {@link HAServiceProtocol#monitorHealth()} and
  17084. {@link HAServiceProtocol#getServiceStatus()} calls. This can be useful for
  17085. separating out these calls onto separate RPC handlers to protect against
  17086. resource exhaustion in the main RPC handler pool. If null (which is the
  17087. default implementation), then all RPC calls go to the address defined by
  17088. {@link #getAddress()}.
  17089. @return IPC address of the lifeline RPC server on the target node, or null
  17090. if no lifeline RPC server is used]]>
  17091. </doc>
  17092. </method>
  17093. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  17094. abstract="true" native="false" synchronized="false"
  17095. static="false" final="false" visibility="public"
  17096. deprecated="not deprecated">
  17097. <doc>
  17098. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  17099. </doc>
  17100. </method>
  17101. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  17102. abstract="true" native="false" synchronized="false"
  17103. static="false" final="false" visibility="public"
  17104. deprecated="not deprecated">
  17105. <doc>
  17106. <![CDATA[@return a Fencer implementation configured for this target node]]>
  17107. </doc>
  17108. </method>
  17109. <method name="checkFencingConfigured"
  17110. abstract="true" native="false" synchronized="false"
  17111. static="false" final="false" visibility="public"
  17112. deprecated="not deprecated">
  17113. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  17114. <doc>
  17115. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  17116. appears to be invalid. This is divorced from the above
  17117. {@link #getFencer()} method so that the configuration can be checked
  17118. during the pre-flight phase of failover.]]>
  17119. </doc>
  17120. </method>
  17121. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  17122. abstract="false" native="false" synchronized="false"
  17123. static="false" final="false" visibility="public"
  17124. deprecated="not deprecated">
  17125. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17126. <param name="timeoutMs" type="int"/>
  17127. <exception name="IOException" type="java.io.IOException"/>
  17128. <doc>
  17129. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  17130. </doc>
  17131. </method>
  17132. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  17133. abstract="false" native="false" synchronized="false"
  17134. static="false" final="false" visibility="public"
  17135. deprecated="not deprecated">
  17136. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17137. <param name="timeoutMs" type="int"/>
  17138. <exception name="IOException" type="java.io.IOException"/>
  17139. <doc>
  17140. <![CDATA[Returns a proxy to connect to the target HA service for health monitoring.
  17141. If {@link #getHealthMonitorAddress()} is implemented to return a non-null
  17142. address, then this proxy will connect to that address. Otherwise, the
  17143. returned proxy defaults to using {@link #getAddress()}, which means this
  17144. method's behavior is identical to {@link #getProxy(Configuration, int)}.
  17145. @param conf Configuration
  17146. @param timeoutMs timeout in milliseconds
  17147. @return a proxy to connect to the target HA service for health monitoring
  17148. @throws IOException if there is an error]]>
  17149. </doc>
  17150. </method>
  17151. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  17152. abstract="false" native="false" synchronized="false"
  17153. static="false" final="false" visibility="public"
  17154. deprecated="not deprecated">
  17155. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17156. <param name="timeoutMs" type="int"/>
  17157. <exception name="IOException" type="java.io.IOException"/>
  17158. <doc>
  17159. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  17160. </doc>
  17161. </method>
  17162. <method name="getFencingParameters" return="java.util.Map"
  17163. abstract="false" native="false" synchronized="false"
  17164. static="false" final="true" visibility="public"
  17165. deprecated="not deprecated">
  17166. </method>
  17167. <method name="addFencingParameters"
  17168. abstract="false" native="false" synchronized="false"
  17169. static="false" final="false" visibility="protected"
  17170. deprecated="not deprecated">
  17171. <param name="ret" type="java.util.Map"/>
  17172. <doc>
  17173. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  17174. expose to fencing implementations/scripts. Fencing methods are free
  17175. to use this map as they see fit -- notably, the shell script
  17176. implementation takes each entry, prepends 'target_', substitutes
  17177. '_' for '.', and adds it to the environment of the script.
  17178. Subclass implementations should be sure to delegate to the superclass
  17179. implementation as well as adding their own keys.
  17180. @param ret map which can be mutated to pass parameters to the fencer]]>
  17181. </doc>
  17182. </method>
  17183. <method name="isAutoFailoverEnabled" return="boolean"
  17184. abstract="false" native="false" synchronized="false"
  17185. static="false" final="false" visibility="public"
  17186. deprecated="not deprecated">
  17187. <doc>
  17188. <![CDATA[@return true if auto failover should be considered enabled]]>
  17189. </doc>
  17190. </method>
  17191. <method name="supportObserver" return="boolean"
  17192. abstract="false" native="false" synchronized="false"
  17193. static="false" final="false" visibility="public"
  17194. deprecated="not deprecated">
  17195. <doc>
  17196. <![CDATA[@return true if this target supports the Observer state, false otherwise.]]>
  17197. </doc>
  17198. </method>
  17199. <doc>
  17200. <![CDATA[Represents a target of the client side HA administration commands.]]>
  17201. </doc>
  17202. </class>
  17203. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  17204. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  17205. <class name="HealthCheckFailedException" extends="java.io.IOException"
  17206. abstract="false"
  17207. static="false" final="false" visibility="public"
  17208. deprecated="not deprecated">
  17209. <constructor name="HealthCheckFailedException" type="java.lang.String"
  17210. static="false" final="false" visibility="public"
  17211. deprecated="not deprecated">
  17212. </constructor>
  17213. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  17214. static="false" final="false" visibility="public"
  17215. deprecated="not deprecated">
  17216. </constructor>
  17217. <doc>
  17218. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  17219. </doc>
  17220. </class>
  17221. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  17222. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  17223. <class name="ServiceFailedException" extends="java.io.IOException"
  17224. abstract="false"
  17225. static="false" final="false" visibility="public"
  17226. deprecated="not deprecated">
  17227. <constructor name="ServiceFailedException" type="java.lang.String"
  17228. static="false" final="false" visibility="public"
  17229. deprecated="not deprecated">
  17230. </constructor>
  17231. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  17232. static="false" final="false" visibility="public"
  17233. deprecated="not deprecated">
  17234. </constructor>
  17235. <doc>
  17236. <![CDATA[Exception thrown to indicate that an operation performed
  17237. to modify the state of a service or application failed.]]>
  17238. </doc>
  17239. </class>
  17240. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  17241. </package>
  17242. <package name="org.apache.hadoop.ha.protocolPB">
  17243. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  17244. <interface name="HAServiceProtocolPB" abstract="true"
  17245. static="false" final="false" visibility="public"
  17246. deprecated="not deprecated">
  17247. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  17248. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  17249. </interface>
  17250. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  17251. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  17252. <interface name="ZKFCProtocolPB" abstract="true"
  17253. static="false" final="false" visibility="public"
  17254. deprecated="not deprecated">
  17255. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  17256. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  17257. </interface>
  17258. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  17259. </package>
  17260. <package name="org.apache.hadoop.http.lib">
  17261. <doc>
  17262. <![CDATA[This package provides user-selectable (via configuration) classes that add
  17263. functionality to the web UI. They are configured as a list of classes in the
  17264. configuration parameter <b>hadoop.http.filter.initializers</b>.
  17265. <ul>
  17266. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  17267. users a static configured user.
  17268. </ul>]]>
  17269. </doc>
  17270. </package>
  17271. <package name="org.apache.hadoop.io">
  17272. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  17273. <class name="AbstractMapWritable" extends="java.lang.Object"
  17274. abstract="true"
  17275. static="false" final="false" visibility="public"
  17276. deprecated="not deprecated">
  17277. <implements name="org.apache.hadoop.io.Writable"/>
  17278. <implements name="org.apache.hadoop.conf.Configurable"/>
  17279. <constructor name="AbstractMapWritable"
  17280. static="false" final="false" visibility="protected"
  17281. deprecated="not deprecated">
  17282. <doc>
  17283. <![CDATA[constructor.]]>
  17284. </doc>
  17285. </constructor>
  17286. <method name="addToMap"
  17287. abstract="false" native="false" synchronized="true"
  17288. static="false" final="false" visibility="protected"
  17289. deprecated="not deprecated">
  17290. <param name="clazz" type="java.lang.Class"/>
  17291. <doc>
  17292. <![CDATA[Add a Class to the maps if it is not already present.]]>
  17293. </doc>
  17294. </method>
  17295. <method name="getClass" return="java.lang.Class"
  17296. abstract="false" native="false" synchronized="false"
  17297. static="false" final="false" visibility="protected"
  17298. deprecated="not deprecated">
  17299. <param name="id" type="byte"/>
  17300. <doc>
  17301. <![CDATA[@return the Class class for the specified id]]>
  17302. </doc>
  17303. </method>
  17304. <method name="getId" return="byte"
  17305. abstract="false" native="false" synchronized="false"
  17306. static="false" final="false" visibility="protected"
  17307. deprecated="not deprecated">
  17308. <param name="clazz" type="java.lang.Class"/>
  17309. <doc>
  17310. <![CDATA[@return the id for the specified Class]]>
  17311. </doc>
  17312. </method>
  17313. <method name="copy"
  17314. abstract="false" native="false" synchronized="true"
  17315. static="false" final="false" visibility="protected"
  17316. deprecated="not deprecated">
  17317. <param name="other" type="org.apache.hadoop.io.Writable"/>
  17318. <doc>
  17319. <![CDATA[Used by child copy constructors.]]>
  17320. </doc>
  17321. </method>
  17322. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17323. abstract="false" native="false" synchronized="false"
  17324. static="false" final="false" visibility="public"
  17325. deprecated="not deprecated">
  17326. <doc>
  17327. <![CDATA[@return the conf]]>
  17328. </doc>
  17329. </method>
  17330. <method name="setConf"
  17331. abstract="false" native="false" synchronized="false"
  17332. static="false" final="false" visibility="public"
  17333. deprecated="not deprecated">
  17334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17335. <doc>
  17336. <![CDATA[@param conf the conf to set]]>
  17337. </doc>
  17338. </method>
  17339. <method name="write"
  17340. abstract="false" native="false" synchronized="false"
  17341. static="false" final="false" visibility="public"
  17342. deprecated="not deprecated">
  17343. <param name="out" type="java.io.DataOutput"/>
  17344. <exception name="IOException" type="java.io.IOException"/>
  17345. </method>
  17346. <method name="readFields"
  17347. abstract="false" native="false" synchronized="false"
  17348. static="false" final="false" visibility="public"
  17349. deprecated="not deprecated">
  17350. <param name="in" type="java.io.DataInput"/>
  17351. <exception name="IOException" type="java.io.IOException"/>
  17352. </method>
  17353. <doc>
  17354. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  17355. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  17356. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  17357. maps travel with the class instead of being static.
  17358. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  17359. in any specific map instance.]]>
  17360. </doc>
  17361. </class>
  17362. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  17363. <!-- start class org.apache.hadoop.io.ArrayFile -->
  17364. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  17365. abstract="false"
  17366. static="false" final="false" visibility="public"
  17367. deprecated="not deprecated">
  17368. <constructor name="ArrayFile"
  17369. static="false" final="false" visibility="protected"
  17370. deprecated="not deprecated">
  17371. </constructor>
  17372. <doc>
  17373. <![CDATA[A dense file-based mapping from integers to values.]]>
  17374. </doc>
  17375. </class>
  17376. <!-- end class org.apache.hadoop.io.ArrayFile -->
  17377. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  17378. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  17379. abstract="false"
  17380. static="false" final="false" visibility="public"
  17381. deprecated="not deprecated">
  17382. <implements name="org.apache.hadoop.io.Writable"/>
  17383. <constructor name="ArrayPrimitiveWritable"
  17384. static="false" final="false" visibility="public"
  17385. deprecated="not deprecated">
  17386. <doc>
  17387. <![CDATA[Construct an empty instance, for use during Writable read]]>
  17388. </doc>
  17389. </constructor>
  17390. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  17391. static="false" final="false" visibility="public"
  17392. deprecated="not deprecated">
  17393. <doc>
  17394. <![CDATA[Construct an instance of known type but no value yet
  17395. for use with type-specific wrapper classes]]>
  17396. </doc>
  17397. </constructor>
  17398. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  17399. static="false" final="false" visibility="public"
  17400. deprecated="not deprecated">
  17401. <doc>
  17402. <![CDATA[Wrap an existing array of primitives
  17403. @param value - array of primitives]]>
  17404. </doc>
  17405. </constructor>
  17406. <method name="get" return="java.lang.Object"
  17407. abstract="false" native="false" synchronized="false"
  17408. static="false" final="false" visibility="public"
  17409. deprecated="not deprecated">
  17410. <doc>
  17411. <![CDATA[Get the original array.
  17412. Client must cast it back to type componentType[]
  17413. (or may use type-specific wrapper classes).
  17414. @return - original array as Object]]>
  17415. </doc>
  17416. </method>
  17417. <method name="getComponentType" return="java.lang.Class"
  17418. abstract="false" native="false" synchronized="false"
  17419. static="false" final="false" visibility="public"
  17420. deprecated="not deprecated">
  17421. </method>
  17422. <method name="getDeclaredComponentType" return="java.lang.Class"
  17423. abstract="false" native="false" synchronized="false"
  17424. static="false" final="false" visibility="public"
  17425. deprecated="not deprecated">
  17426. </method>
  17427. <method name="isDeclaredComponentType" return="boolean"
  17428. abstract="false" native="false" synchronized="false"
  17429. static="false" final="false" visibility="public"
  17430. deprecated="not deprecated">
  17431. <param name="componentType" type="java.lang.Class"/>
  17432. </method>
  17433. <method name="set"
  17434. abstract="false" native="false" synchronized="false"
  17435. static="false" final="false" visibility="public"
  17436. deprecated="not deprecated">
  17437. <param name="value" type="java.lang.Object"/>
  17438. </method>
  17439. <method name="write"
  17440. abstract="false" native="false" synchronized="false"
  17441. static="false" final="false" visibility="public"
  17442. deprecated="not deprecated">
  17443. <param name="out" type="java.io.DataOutput"/>
  17444. <exception name="IOException" type="java.io.IOException"/>
  17445. </method>
  17446. <method name="readFields"
  17447. abstract="false" native="false" synchronized="false"
  17448. static="false" final="false" visibility="public"
  17449. deprecated="not deprecated">
  17450. <param name="in" type="java.io.DataInput"/>
  17451. <exception name="IOException" type="java.io.IOException"/>
  17452. </method>
  17453. <doc>
  17454. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  17455. an array of primitives (e.g., int[], long[], etc.), with optimized
  17456. wire format, and without creating new objects per element.
  17457. This is a wrapper class only; it does not make a copy of the
  17458. underlying array.]]>
  17459. </doc>
  17460. </class>
  17461. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  17462. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  17463. <class name="ArrayWritable" extends="java.lang.Object"
  17464. abstract="false"
  17465. static="false" final="false" visibility="public"
  17466. deprecated="not deprecated">
  17467. <implements name="org.apache.hadoop.io.Writable"/>
  17468. <constructor name="ArrayWritable" type="java.lang.Class"
  17469. static="false" final="false" visibility="public"
  17470. deprecated="not deprecated">
  17471. </constructor>
  17472. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  17473. static="false" final="false" visibility="public"
  17474. deprecated="not deprecated">
  17475. </constructor>
  17476. <constructor name="ArrayWritable" type="java.lang.String[]"
  17477. static="false" final="false" visibility="public"
  17478. deprecated="not deprecated">
  17479. </constructor>
  17480. <method name="getValueClass" return="java.lang.Class"
  17481. abstract="false" native="false" synchronized="false"
  17482. static="false" final="false" visibility="public"
  17483. deprecated="not deprecated">
  17484. </method>
  17485. <method name="toStrings" return="java.lang.String[]"
  17486. abstract="false" native="false" synchronized="false"
  17487. static="false" final="false" visibility="public"
  17488. deprecated="not deprecated">
  17489. </method>
  17490. <method name="toArray" return="java.lang.Object"
  17491. abstract="false" native="false" synchronized="false"
  17492. static="false" final="false" visibility="public"
  17493. deprecated="not deprecated">
  17494. </method>
  17495. <method name="set"
  17496. abstract="false" native="false" synchronized="false"
  17497. static="false" final="false" visibility="public"
  17498. deprecated="not deprecated">
  17499. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  17500. </method>
  17501. <method name="get" return="org.apache.hadoop.io.Writable[]"
  17502. abstract="false" native="false" synchronized="false"
  17503. static="false" final="false" visibility="public"
  17504. deprecated="not deprecated">
  17505. </method>
  17506. <method name="readFields"
  17507. abstract="false" native="false" synchronized="false"
  17508. static="false" final="false" visibility="public"
  17509. deprecated="not deprecated">
  17510. <param name="in" type="java.io.DataInput"/>
  17511. <exception name="IOException" type="java.io.IOException"/>
  17512. </method>
  17513. <method name="write"
  17514. abstract="false" native="false" synchronized="false"
  17515. static="false" final="false" visibility="public"
  17516. deprecated="not deprecated">
  17517. <param name="out" type="java.io.DataOutput"/>
  17518. <exception name="IOException" type="java.io.IOException"/>
  17519. </method>
  17520. <doc>
  17521. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  17522. writable must all be instances of the same class. If this writable will be
  17523. the input for a Reducer, you will need to create a subclass that sets the
  17524. value to be of the proper type.
  17525. For example:
  17526. <code>
  17527. public class IntArrayWritable extends ArrayWritable {
  17528. public IntArrayWritable() {
  17529. super(IntWritable.class);
  17530. }
  17531. }
  17532. </code>]]>
  17533. </doc>
  17534. </class>
  17535. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  17536. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  17537. <class name="BinaryComparable" extends="java.lang.Object"
  17538. abstract="true"
  17539. static="false" final="false" visibility="public"
  17540. deprecated="not deprecated">
  17541. <implements name="java.lang.Comparable"/>
  17542. <constructor name="BinaryComparable"
  17543. static="false" final="false" visibility="public"
  17544. deprecated="not deprecated">
  17545. </constructor>
  17546. <method name="getLength" return="int"
  17547. abstract="true" native="false" synchronized="false"
  17548. static="false" final="false" visibility="public"
  17549. deprecated="not deprecated">
  17550. <doc>
  17551. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  17552. </doc>
  17553. </method>
  17554. <method name="getBytes" return="byte[]"
  17555. abstract="true" native="false" synchronized="false"
  17556. static="false" final="false" visibility="public"
  17557. deprecated="not deprecated">
  17558. <doc>
  17559. <![CDATA[Return representative byte array for this instance.]]>
  17560. </doc>
  17561. </method>
  17562. <method name="compareTo" return="int"
  17563. abstract="false" native="false" synchronized="false"
  17564. static="false" final="false" visibility="public"
  17565. deprecated="not deprecated">
  17566. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  17567. <doc>
  17568. <![CDATA[Compare bytes from {#getBytes()}.
  17569. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  17570. </doc>
  17571. </method>
  17572. <method name="compareTo" return="int"
  17573. abstract="false" native="false" synchronized="false"
  17574. static="false" final="false" visibility="public"
  17575. deprecated="not deprecated">
  17576. <param name="other" type="byte[]"/>
  17577. <param name="off" type="int"/>
  17578. <param name="len" type="int"/>
  17579. <doc>
  17580. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  17581. </doc>
  17582. </method>
  17583. <method name="equals" return="boolean"
  17584. abstract="false" native="false" synchronized="false"
  17585. static="false" final="false" visibility="public"
  17586. deprecated="not deprecated">
  17587. <param name="other" type="java.lang.Object"/>
  17588. <doc>
  17589. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  17590. </doc>
  17591. </method>
  17592. <method name="hashCode" return="int"
  17593. abstract="false" native="false" synchronized="false"
  17594. static="false" final="false" visibility="public"
  17595. deprecated="not deprecated">
  17596. <doc>
  17597. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  17598. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  17599. </doc>
  17600. </method>
  17601. <doc>
  17602. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  17603. types supporting ordering/permutation by a representative set of bytes.]]>
  17604. </doc>
  17605. </class>
  17606. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  17607. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  17608. <class name="BloomMapFile" extends="java.lang.Object"
  17609. abstract="false"
  17610. static="false" final="false" visibility="public"
  17611. deprecated="not deprecated">
  17612. <constructor name="BloomMapFile"
  17613. static="false" final="false" visibility="public"
  17614. deprecated="not deprecated">
  17615. </constructor>
  17616. <method name="delete"
  17617. abstract="false" native="false" synchronized="false"
  17618. static="true" final="false" visibility="public"
  17619. deprecated="not deprecated">
  17620. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17621. <param name="name" type="java.lang.String"/>
  17622. <exception name="IOException" type="java.io.IOException"/>
  17623. </method>
  17624. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  17625. transient="false" volatile="false"
  17626. static="true" final="true" visibility="public"
  17627. deprecated="not deprecated">
  17628. </field>
  17629. <field name="HASH_COUNT" type="int"
  17630. transient="false" volatile="false"
  17631. static="true" final="true" visibility="public"
  17632. deprecated="not deprecated">
  17633. </field>
  17634. <doc>
  17635. <![CDATA[This class extends {@link MapFile} and provides very much the same
  17636. functionality. However, it uses dynamic Bloom filters to provide
  17637. quick membership test for keys, and it offers a fast version of
  17638. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  17639. case of sparsely populated MapFile-s.]]>
  17640. </doc>
  17641. </class>
  17642. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  17643. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  17644. <class name="BooleanWritable" extends="java.lang.Object"
  17645. abstract="false"
  17646. static="false" final="false" visibility="public"
  17647. deprecated="not deprecated">
  17648. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17649. <constructor name="BooleanWritable"
  17650. static="false" final="false" visibility="public"
  17651. deprecated="not deprecated">
  17652. </constructor>
  17653. <constructor name="BooleanWritable" type="boolean"
  17654. static="false" final="false" visibility="public"
  17655. deprecated="not deprecated">
  17656. </constructor>
  17657. <method name="set"
  17658. abstract="false" native="false" synchronized="false"
  17659. static="false" final="false" visibility="public"
  17660. deprecated="not deprecated">
  17661. <param name="value" type="boolean"/>
  17662. <doc>
  17663. <![CDATA[Set the value of the BooleanWritable]]>
  17664. </doc>
  17665. </method>
  17666. <method name="get" return="boolean"
  17667. abstract="false" native="false" synchronized="false"
  17668. static="false" final="false" visibility="public"
  17669. deprecated="not deprecated">
  17670. <doc>
  17671. <![CDATA[Returns the value of the BooleanWritable]]>
  17672. </doc>
  17673. </method>
  17674. <method name="readFields"
  17675. abstract="false" native="false" synchronized="false"
  17676. static="false" final="false" visibility="public"
  17677. deprecated="not deprecated">
  17678. <param name="in" type="java.io.DataInput"/>
  17679. <exception name="IOException" type="java.io.IOException"/>
  17680. </method>
  17681. <method name="write"
  17682. abstract="false" native="false" synchronized="false"
  17683. static="false" final="false" visibility="public"
  17684. deprecated="not deprecated">
  17685. <param name="out" type="java.io.DataOutput"/>
  17686. <exception name="IOException" type="java.io.IOException"/>
  17687. </method>
  17688. <method name="equals" return="boolean"
  17689. abstract="false" native="false" synchronized="false"
  17690. static="false" final="false" visibility="public"
  17691. deprecated="not deprecated">
  17692. <param name="o" type="java.lang.Object"/>
  17693. </method>
  17694. <method name="hashCode" return="int"
  17695. abstract="false" native="false" synchronized="false"
  17696. static="false" final="false" visibility="public"
  17697. deprecated="not deprecated">
  17698. </method>
  17699. <method name="compareTo" return="int"
  17700. abstract="false" native="false" synchronized="false"
  17701. static="false" final="false" visibility="public"
  17702. deprecated="not deprecated">
  17703. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  17704. </method>
  17705. <method name="toString" return="java.lang.String"
  17706. abstract="false" native="false" synchronized="false"
  17707. static="false" final="false" visibility="public"
  17708. deprecated="not deprecated">
  17709. </method>
  17710. <doc>
  17711. <![CDATA[A WritableComparable for booleans.]]>
  17712. </doc>
  17713. </class>
  17714. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  17715. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  17716. <interface name="ByteBufferPool" abstract="true"
  17717. static="false" final="false" visibility="public"
  17718. deprecated="not deprecated">
  17719. <method name="getBuffer" return="java.nio.ByteBuffer"
  17720. abstract="false" native="false" synchronized="false"
  17721. static="false" final="false" visibility="public"
  17722. deprecated="not deprecated">
  17723. <param name="direct" type="boolean"/>
  17724. <param name="length" type="int"/>
  17725. <doc>
  17726. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  17727. removing a buffer from its internal cache, or by allocating a
  17728. new buffer.
  17729. @param direct Whether the buffer should be direct.
  17730. @param length The minimum length the buffer will have.
  17731. @return A new ByteBuffer. This ByteBuffer must be direct.
  17732. Its capacity can be less than what was requested, but
  17733. must be at least 1 byte.]]>
  17734. </doc>
  17735. </method>
  17736. <method name="putBuffer"
  17737. abstract="false" native="false" synchronized="false"
  17738. static="false" final="false" visibility="public"
  17739. deprecated="not deprecated">
  17740. <param name="buffer" type="java.nio.ByteBuffer"/>
  17741. <doc>
  17742. <![CDATA[Release a buffer back to the pool.
  17743. The pool may choose to put this buffer into its cache.
  17744. @param buffer a direct bytebuffer]]>
  17745. </doc>
  17746. </method>
  17747. </interface>
  17748. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  17749. <!-- start class org.apache.hadoop.io.BytesWritable -->
  17750. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  17751. abstract="false"
  17752. static="false" final="false" visibility="public"
  17753. deprecated="not deprecated">
  17754. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17755. <constructor name="BytesWritable"
  17756. static="false" final="false" visibility="public"
  17757. deprecated="not deprecated">
  17758. <doc>
  17759. <![CDATA[Create a zero-size sequence.]]>
  17760. </doc>
  17761. </constructor>
  17762. <constructor name="BytesWritable" type="byte[]"
  17763. static="false" final="false" visibility="public"
  17764. deprecated="not deprecated">
  17765. <doc>
  17766. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  17767. @param bytes This array becomes the backing storage for the object.]]>
  17768. </doc>
  17769. </constructor>
  17770. <constructor name="BytesWritable" type="byte[], int"
  17771. static="false" final="false" visibility="public"
  17772. deprecated="not deprecated">
  17773. <doc>
  17774. <![CDATA[Create a BytesWritable using the byte array as the initial value
  17775. and length as the length. Use this constructor if the array is larger
  17776. than the value it represents.
  17777. @param bytes This array becomes the backing storage for the object.
  17778. @param length The number of bytes to use from array.]]>
  17779. </doc>
  17780. </constructor>
  17781. <method name="copyBytes" return="byte[]"
  17782. abstract="false" native="false" synchronized="false"
  17783. static="false" final="false" visibility="public"
  17784. deprecated="not deprecated">
  17785. <doc>
  17786. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  17787. See {@link #getBytes()} for faster access to the underlying array.]]>
  17788. </doc>
  17789. </method>
  17790. <method name="getBytes" return="byte[]"
  17791. abstract="false" native="false" synchronized="false"
  17792. static="false" final="false" visibility="public"
  17793. deprecated="not deprecated">
  17794. <doc>
  17795. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  17796. if you need the returned array to be precisely the length of the data.
  17797. @return The data is only valid between 0 and getLength() - 1.]]>
  17798. </doc>
  17799. </method>
  17800. <method name="get" return="byte[]"
  17801. abstract="false" native="false" synchronized="false"
  17802. static="false" final="false" visibility="public"
  17803. deprecated="Use {@link #getBytes()} instead.">
  17804. <doc>
  17805. <![CDATA[Get the data from the BytesWritable.
  17806. @deprecated Use {@link #getBytes()} instead.]]>
  17807. </doc>
  17808. </method>
  17809. <method name="getLength" return="int"
  17810. abstract="false" native="false" synchronized="false"
  17811. static="false" final="false" visibility="public"
  17812. deprecated="not deprecated">
  17813. <doc>
  17814. <![CDATA[Get the current size of the buffer.]]>
  17815. </doc>
  17816. </method>
  17817. <method name="getSize" return="int"
  17818. abstract="false" native="false" synchronized="false"
  17819. static="false" final="false" visibility="public"
  17820. deprecated="Use {@link #getLength()} instead.">
  17821. <doc>
  17822. <![CDATA[Get the current size of the buffer.
  17823. @deprecated Use {@link #getLength()} instead.]]>
  17824. </doc>
  17825. </method>
  17826. <method name="setSize"
  17827. abstract="false" native="false" synchronized="false"
  17828. static="false" final="false" visibility="public"
  17829. deprecated="not deprecated">
  17830. <param name="size" type="int"/>
  17831. <doc>
  17832. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  17833. and any new values are undefined. The capacity is changed if it is
  17834. necessary.
  17835. @param size The new number of bytes]]>
  17836. </doc>
  17837. </method>
  17838. <method name="getCapacity" return="int"
  17839. abstract="false" native="false" synchronized="false"
  17840. static="false" final="false" visibility="public"
  17841. deprecated="not deprecated">
  17842. <doc>
  17843. <![CDATA[Get the capacity, which is the maximum size that could handled without
  17844. resizing the backing storage.
  17845. @return The number of bytes]]>
  17846. </doc>
  17847. </method>
  17848. <method name="setCapacity"
  17849. abstract="false" native="false" synchronized="false"
  17850. static="false" final="false" visibility="public"
  17851. deprecated="not deprecated">
  17852. <param name="new_cap" type="int"/>
  17853. <doc>
  17854. <![CDATA[Change the capacity of the backing storage.
  17855. The data is preserved.
  17856. @param new_cap The new capacity in bytes.]]>
  17857. </doc>
  17858. </method>
  17859. <method name="set"
  17860. abstract="false" native="false" synchronized="false"
  17861. static="false" final="false" visibility="public"
  17862. deprecated="not deprecated">
  17863. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  17864. <doc>
  17865. <![CDATA[Set the BytesWritable to the contents of the given newData.
  17866. @param newData the value to set this BytesWritable to.]]>
  17867. </doc>
  17868. </method>
  17869. <method name="set"
  17870. abstract="false" native="false" synchronized="false"
  17871. static="false" final="false" visibility="public"
  17872. deprecated="not deprecated">
  17873. <param name="newData" type="byte[]"/>
  17874. <param name="offset" type="int"/>
  17875. <param name="length" type="int"/>
  17876. <doc>
  17877. <![CDATA[Set the value to a copy of the given byte range
  17878. @param newData the new values to copy in
  17879. @param offset the offset in newData to start at
  17880. @param length the number of bytes to copy]]>
  17881. </doc>
  17882. </method>
  17883. <method name="readFields"
  17884. abstract="false" native="false" synchronized="false"
  17885. static="false" final="false" visibility="public"
  17886. deprecated="not deprecated">
  17887. <param name="in" type="java.io.DataInput"/>
  17888. <exception name="IOException" type="java.io.IOException"/>
  17889. </method>
  17890. <method name="write"
  17891. abstract="false" native="false" synchronized="false"
  17892. static="false" final="false" visibility="public"
  17893. deprecated="not deprecated">
  17894. <param name="out" type="java.io.DataOutput"/>
  17895. <exception name="IOException" type="java.io.IOException"/>
  17896. </method>
  17897. <method name="hashCode" return="int"
  17898. abstract="false" native="false" synchronized="false"
  17899. static="false" final="false" visibility="public"
  17900. deprecated="not deprecated">
  17901. </method>
  17902. <method name="equals" return="boolean"
  17903. abstract="false" native="false" synchronized="false"
  17904. static="false" final="false" visibility="public"
  17905. deprecated="not deprecated">
  17906. <param name="right_obj" type="java.lang.Object"/>
  17907. <doc>
  17908. <![CDATA[Are the two byte sequences equal?]]>
  17909. </doc>
  17910. </method>
  17911. <method name="toString" return="java.lang.String"
  17912. abstract="false" native="false" synchronized="false"
  17913. static="false" final="false" visibility="public"
  17914. deprecated="not deprecated">
  17915. <doc>
  17916. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  17917. </doc>
  17918. </method>
  17919. <doc>
  17920. <![CDATA[A byte sequence that is usable as a key or value.
  17921. It is resizable and distinguishes between the size of the sequence and
  17922. the current capacity. The hash function is the front of the md5 of the
  17923. buffer. The sort order is the same as memcmp.]]>
  17924. </doc>
  17925. </class>
  17926. <!-- end class org.apache.hadoop.io.BytesWritable -->
  17927. <!-- start class org.apache.hadoop.io.ByteWritable -->
  17928. <class name="ByteWritable" extends="java.lang.Object"
  17929. abstract="false"
  17930. static="false" final="false" visibility="public"
  17931. deprecated="not deprecated">
  17932. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17933. <constructor name="ByteWritable"
  17934. static="false" final="false" visibility="public"
  17935. deprecated="not deprecated">
  17936. </constructor>
  17937. <constructor name="ByteWritable" type="byte"
  17938. static="false" final="false" visibility="public"
  17939. deprecated="not deprecated">
  17940. </constructor>
  17941. <method name="set"
  17942. abstract="false" native="false" synchronized="false"
  17943. static="false" final="false" visibility="public"
  17944. deprecated="not deprecated">
  17945. <param name="value" type="byte"/>
  17946. <doc>
  17947. <![CDATA[Set the value of this ByteWritable.]]>
  17948. </doc>
  17949. </method>
  17950. <method name="get" return="byte"
  17951. abstract="false" native="false" synchronized="false"
  17952. static="false" final="false" visibility="public"
  17953. deprecated="not deprecated">
  17954. <doc>
  17955. <![CDATA[Return the value of this ByteWritable.]]>
  17956. </doc>
  17957. </method>
  17958. <method name="readFields"
  17959. abstract="false" native="false" synchronized="false"
  17960. static="false" final="false" visibility="public"
  17961. deprecated="not deprecated">
  17962. <param name="in" type="java.io.DataInput"/>
  17963. <exception name="IOException" type="java.io.IOException"/>
  17964. </method>
  17965. <method name="write"
  17966. abstract="false" native="false" synchronized="false"
  17967. static="false" final="false" visibility="public"
  17968. deprecated="not deprecated">
  17969. <param name="out" type="java.io.DataOutput"/>
  17970. <exception name="IOException" type="java.io.IOException"/>
  17971. </method>
  17972. <method name="equals" return="boolean"
  17973. abstract="false" native="false" synchronized="false"
  17974. static="false" final="false" visibility="public"
  17975. deprecated="not deprecated">
  17976. <param name="o" type="java.lang.Object"/>
  17977. <doc>
  17978. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  17979. </doc>
  17980. </method>
  17981. <method name="hashCode" return="int"
  17982. abstract="false" native="false" synchronized="false"
  17983. static="false" final="false" visibility="public"
  17984. deprecated="not deprecated">
  17985. </method>
  17986. <method name="compareTo" return="int"
  17987. abstract="false" native="false" synchronized="false"
  17988. static="false" final="false" visibility="public"
  17989. deprecated="not deprecated">
  17990. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  17991. <doc>
  17992. <![CDATA[Compares two ByteWritables.]]>
  17993. </doc>
  17994. </method>
  17995. <method name="toString" return="java.lang.String"
  17996. abstract="false" native="false" synchronized="false"
  17997. static="false" final="false" visibility="public"
  17998. deprecated="not deprecated">
  17999. </method>
  18000. <doc>
  18001. <![CDATA[A WritableComparable for a single byte.]]>
  18002. </doc>
  18003. </class>
  18004. <!-- end class org.apache.hadoop.io.ByteWritable -->
  18005. <!-- start interface org.apache.hadoop.io.Closeable -->
  18006. <interface name="Closeable" abstract="true"
  18007. static="false" final="false" visibility="public"
  18008. deprecated="use java.io.Closeable">
  18009. <implements name="java.io.Closeable"/>
  18010. <doc>
  18011. <![CDATA[@deprecated use java.io.Closeable]]>
  18012. </doc>
  18013. </interface>
  18014. <!-- end interface org.apache.hadoop.io.Closeable -->
  18015. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  18016. <class name="CompressedWritable" extends="java.lang.Object"
  18017. abstract="true"
  18018. static="false" final="false" visibility="public"
  18019. deprecated="not deprecated">
  18020. <implements name="org.apache.hadoop.io.Writable"/>
  18021. <constructor name="CompressedWritable"
  18022. static="false" final="false" visibility="public"
  18023. deprecated="not deprecated">
  18024. </constructor>
  18025. <method name="readFields"
  18026. abstract="false" native="false" synchronized="false"
  18027. static="false" final="true" visibility="public"
  18028. deprecated="not deprecated">
  18029. <param name="in" type="java.io.DataInput"/>
  18030. <exception name="IOException" type="java.io.IOException"/>
  18031. </method>
  18032. <method name="ensureInflated"
  18033. abstract="false" native="false" synchronized="false"
  18034. static="false" final="false" visibility="protected"
  18035. deprecated="not deprecated">
  18036. <doc>
  18037. <![CDATA[Must be called by all methods which access fields to ensure that the data
  18038. has been uncompressed.]]>
  18039. </doc>
  18040. </method>
  18041. <method name="readFieldsCompressed"
  18042. abstract="true" native="false" synchronized="false"
  18043. static="false" final="false" visibility="protected"
  18044. deprecated="not deprecated">
  18045. <param name="in" type="java.io.DataInput"/>
  18046. <exception name="IOException" type="java.io.IOException"/>
  18047. <doc>
  18048. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  18049. </doc>
  18050. </method>
  18051. <method name="write"
  18052. abstract="false" native="false" synchronized="false"
  18053. static="false" final="true" visibility="public"
  18054. deprecated="not deprecated">
  18055. <param name="out" type="java.io.DataOutput"/>
  18056. <exception name="IOException" type="java.io.IOException"/>
  18057. </method>
  18058. <method name="writeCompressed"
  18059. abstract="true" native="false" synchronized="false"
  18060. static="false" final="false" visibility="protected"
  18061. deprecated="not deprecated">
  18062. <param name="out" type="java.io.DataOutput"/>
  18063. <exception name="IOException" type="java.io.IOException"/>
  18064. <doc>
  18065. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  18066. </doc>
  18067. </method>
  18068. <doc>
  18069. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  18070. inflate on field access. This is useful for large objects whose fields are
  18071. not be altered during a map or reduce operation: leaving the field data
  18072. compressed makes copying the instance from one file to another much
  18073. faster.]]>
  18074. </doc>
  18075. </class>
  18076. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  18077. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  18078. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  18079. abstract="false"
  18080. static="false" final="false" visibility="public"
  18081. deprecated="not deprecated">
  18082. <method name="constructOutputStream" return="java.io.OutputStream"
  18083. abstract="false" native="false" synchronized="false"
  18084. static="true" final="false" visibility="public"
  18085. deprecated="not deprecated">
  18086. <param name="out" type="java.io.DataOutput"/>
  18087. <doc>
  18088. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  18089. is already an OutputStream, simply returns it. Otherwise, wraps
  18090. it in an OutputStream.
  18091. @param out the DataOutput to wrap
  18092. @return an OutputStream instance that outputs to 'out']]>
  18093. </doc>
  18094. </method>
  18095. <method name="write"
  18096. abstract="false" native="false" synchronized="false"
  18097. static="false" final="false" visibility="public"
  18098. deprecated="not deprecated">
  18099. <param name="b" type="int"/>
  18100. <exception name="IOException" type="java.io.IOException"/>
  18101. </method>
  18102. <method name="write"
  18103. abstract="false" native="false" synchronized="false"
  18104. static="false" final="false" visibility="public"
  18105. deprecated="not deprecated">
  18106. <param name="b" type="byte[]"/>
  18107. <param name="off" type="int"/>
  18108. <param name="len" type="int"/>
  18109. <exception name="IOException" type="java.io.IOException"/>
  18110. </method>
  18111. <method name="write"
  18112. abstract="false" native="false" synchronized="false"
  18113. static="false" final="false" visibility="public"
  18114. deprecated="not deprecated">
  18115. <param name="b" type="byte[]"/>
  18116. <exception name="IOException" type="java.io.IOException"/>
  18117. </method>
  18118. <doc>
  18119. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  18120. </doc>
  18121. </class>
  18122. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  18123. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  18124. <class name="DefaultStringifier" extends="java.lang.Object"
  18125. abstract="false"
  18126. static="false" final="false" visibility="public"
  18127. deprecated="not deprecated">
  18128. <implements name="org.apache.hadoop.io.Stringifier"/>
  18129. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  18130. static="false" final="false" visibility="public"
  18131. deprecated="not deprecated">
  18132. </constructor>
  18133. <method name="fromString" return="T"
  18134. abstract="false" native="false" synchronized="false"
  18135. static="false" final="false" visibility="public"
  18136. deprecated="not deprecated">
  18137. <param name="str" type="java.lang.String"/>
  18138. <exception name="IOException" type="java.io.IOException"/>
  18139. </method>
  18140. <method name="toString" return="java.lang.String"
  18141. abstract="false" native="false" synchronized="false"
  18142. static="false" final="false" visibility="public"
  18143. deprecated="not deprecated">
  18144. <param name="obj" type="T"/>
  18145. <exception name="IOException" type="java.io.IOException"/>
  18146. </method>
  18147. <method name="close"
  18148. abstract="false" native="false" synchronized="false"
  18149. static="false" final="false" visibility="public"
  18150. deprecated="not deprecated">
  18151. <exception name="IOException" type="java.io.IOException"/>
  18152. </method>
  18153. <method name="store"
  18154. abstract="false" native="false" synchronized="false"
  18155. static="true" final="false" visibility="public"
  18156. deprecated="not deprecated">
  18157. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18158. <param name="item" type="K"/>
  18159. <param name="keyName" type="java.lang.String"/>
  18160. <exception name="IOException" type="java.io.IOException"/>
  18161. <doc>
  18162. <![CDATA[Stores the item in the configuration with the given keyName.
  18163. @param <K> the class of the item
  18164. @param conf the configuration to store
  18165. @param item the object to be stored
  18166. @param keyName the name of the key to use
  18167. @throws IOException : forwards Exceptions from the underlying
  18168. {@link Serialization} classes.]]>
  18169. </doc>
  18170. </method>
  18171. <method name="load" return="K"
  18172. abstract="false" native="false" synchronized="false"
  18173. static="true" final="false" visibility="public"
  18174. deprecated="not deprecated">
  18175. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18176. <param name="keyName" type="java.lang.String"/>
  18177. <param name="itemClass" type="java.lang.Class"/>
  18178. <exception name="IOException" type="java.io.IOException"/>
  18179. <doc>
  18180. <![CDATA[Restores the object from the configuration.
  18181. @param <K> the class of the item
  18182. @param conf the configuration to use
  18183. @param keyName the name of the key to use
  18184. @param itemClass the class of the item
  18185. @return restored object
  18186. @throws IOException : forwards Exceptions from the underlying
  18187. {@link Serialization} classes.]]>
  18188. </doc>
  18189. </method>
  18190. <method name="storeArray"
  18191. abstract="false" native="false" synchronized="false"
  18192. static="true" final="false" visibility="public"
  18193. deprecated="not deprecated">
  18194. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18195. <param name="items" type="K[]"/>
  18196. <param name="keyName" type="java.lang.String"/>
  18197. <exception name="IOException" type="java.io.IOException"/>
  18198. <doc>
  18199. <![CDATA[Stores the array of items in the configuration with the given keyName.
  18200. @param <K> the class of the item
  18201. @param conf the configuration to use
  18202. @param items the objects to be stored
  18203. @param keyName the name of the key to use
  18204. @throws IndexOutOfBoundsException if the items array is empty
  18205. @throws IOException : forwards Exceptions from the underlying
  18206. {@link Serialization} classes.]]>
  18207. </doc>
  18208. </method>
  18209. <method name="loadArray" return="K[]"
  18210. abstract="false" native="false" synchronized="false"
  18211. static="true" final="false" visibility="public"
  18212. deprecated="not deprecated">
  18213. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18214. <param name="keyName" type="java.lang.String"/>
  18215. <param name="itemClass" type="java.lang.Class"/>
  18216. <exception name="IOException" type="java.io.IOException"/>
  18217. <doc>
  18218. <![CDATA[Restores the array of objects from the configuration.
  18219. @param <K> the class of the item
  18220. @param conf the configuration to use
  18221. @param keyName the name of the key to use
  18222. @param itemClass the class of the item
  18223. @return restored object
  18224. @throws IOException : forwards Exceptions from the underlying
  18225. {@link Serialization} classes.]]>
  18226. </doc>
  18227. </method>
  18228. <doc>
  18229. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  18230. interface which stringifies the objects using base64 encoding of the
  18231. serialized version of the objects. The {@link Serializer} and
  18232. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  18233. <br>
  18234. DefaultStringifier offers convenience methods to store/load objects to/from
  18235. the configuration.
  18236. @param <T> the class of the objects to stringify]]>
  18237. </doc>
  18238. </class>
  18239. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  18240. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  18241. <class name="DoubleWritable" extends="java.lang.Object"
  18242. abstract="false"
  18243. static="false" final="false" visibility="public"
  18244. deprecated="not deprecated">
  18245. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18246. <constructor name="DoubleWritable"
  18247. static="false" final="false" visibility="public"
  18248. deprecated="not deprecated">
  18249. </constructor>
  18250. <constructor name="DoubleWritable" type="double"
  18251. static="false" final="false" visibility="public"
  18252. deprecated="not deprecated">
  18253. </constructor>
  18254. <method name="readFields"
  18255. abstract="false" native="false" synchronized="false"
  18256. static="false" final="false" visibility="public"
  18257. deprecated="not deprecated">
  18258. <param name="in" type="java.io.DataInput"/>
  18259. <exception name="IOException" type="java.io.IOException"/>
  18260. </method>
  18261. <method name="write"
  18262. abstract="false" native="false" synchronized="false"
  18263. static="false" final="false" visibility="public"
  18264. deprecated="not deprecated">
  18265. <param name="out" type="java.io.DataOutput"/>
  18266. <exception name="IOException" type="java.io.IOException"/>
  18267. </method>
  18268. <method name="set"
  18269. abstract="false" native="false" synchronized="false"
  18270. static="false" final="false" visibility="public"
  18271. deprecated="not deprecated">
  18272. <param name="value" type="double"/>
  18273. </method>
  18274. <method name="get" return="double"
  18275. abstract="false" native="false" synchronized="false"
  18276. static="false" final="false" visibility="public"
  18277. deprecated="not deprecated">
  18278. </method>
  18279. <method name="equals" return="boolean"
  18280. abstract="false" native="false" synchronized="false"
  18281. static="false" final="false" visibility="public"
  18282. deprecated="not deprecated">
  18283. <param name="o" type="java.lang.Object"/>
  18284. <doc>
  18285. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  18286. </doc>
  18287. </method>
  18288. <method name="hashCode" return="int"
  18289. abstract="false" native="false" synchronized="false"
  18290. static="false" final="false" visibility="public"
  18291. deprecated="not deprecated">
  18292. </method>
  18293. <method name="compareTo" return="int"
  18294. abstract="false" native="false" synchronized="false"
  18295. static="false" final="false" visibility="public"
  18296. deprecated="not deprecated">
  18297. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  18298. </method>
  18299. <method name="toString" return="java.lang.String"
  18300. abstract="false" native="false" synchronized="false"
  18301. static="false" final="false" visibility="public"
  18302. deprecated="not deprecated">
  18303. </method>
  18304. <doc>
  18305. <![CDATA[Writable for Double values.]]>
  18306. </doc>
  18307. </class>
  18308. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  18309. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  18310. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  18311. abstract="false"
  18312. static="false" final="true" visibility="public"
  18313. deprecated="not deprecated">
  18314. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  18315. <constructor name="ElasticByteBufferPool"
  18316. static="false" final="false" visibility="public"
  18317. deprecated="not deprecated">
  18318. </constructor>
  18319. <method name="getBuffer" return="java.nio.ByteBuffer"
  18320. abstract="false" native="false" synchronized="true"
  18321. static="false" final="false" visibility="public"
  18322. deprecated="not deprecated">
  18323. <param name="direct" type="boolean"/>
  18324. <param name="length" type="int"/>
  18325. </method>
  18326. <method name="putBuffer"
  18327. abstract="false" native="false" synchronized="true"
  18328. static="false" final="false" visibility="public"
  18329. deprecated="not deprecated">
  18330. <param name="buffer" type="java.nio.ByteBuffer"/>
  18331. </method>
  18332. <doc>
  18333. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  18334. It also caches ByteBuffers after they're released. It will always return
  18335. the smallest cached buffer with at least the capacity you request.
  18336. We don't try to do anything clever here like try to limit the maximum cache
  18337. size.]]>
  18338. </doc>
  18339. </class>
  18340. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  18341. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  18342. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  18343. abstract="false"
  18344. static="false" final="false" visibility="public"
  18345. deprecated="not deprecated">
  18346. <implements name="org.apache.hadoop.io.Writable"/>
  18347. <implements name="org.apache.hadoop.conf.Configurable"/>
  18348. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  18349. static="false" final="false" visibility="public"
  18350. deprecated="not deprecated">
  18351. <doc>
  18352. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  18353. its size is zero, the <tt>elementType</tt> argument must not be null. If
  18354. the argument <tt>value</tt>'s size is bigger than zero, the argument
  18355. <tt>elementType</tt> is not be used.
  18356. @param value
  18357. @param elementType]]>
  18358. </doc>
  18359. </constructor>
  18360. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  18361. static="false" final="false" visibility="public"
  18362. deprecated="not deprecated">
  18363. <doc>
  18364. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  18365. or empty.
  18366. @param value]]>
  18367. </doc>
  18368. </constructor>
  18369. <method name="iterator" return="java.util.Iterator"
  18370. abstract="false" native="false" synchronized="false"
  18371. static="false" final="false" visibility="public"
  18372. deprecated="not deprecated">
  18373. </method>
  18374. <method name="size" return="int"
  18375. abstract="false" native="false" synchronized="false"
  18376. static="false" final="false" visibility="public"
  18377. deprecated="not deprecated">
  18378. </method>
  18379. <method name="add" return="boolean"
  18380. abstract="false" native="false" synchronized="false"
  18381. static="false" final="false" visibility="public"
  18382. deprecated="not deprecated">
  18383. <param name="e" type="E"/>
  18384. </method>
  18385. <method name="set"
  18386. abstract="false" native="false" synchronized="false"
  18387. static="false" final="false" visibility="public"
  18388. deprecated="not deprecated">
  18389. <param name="value" type="java.util.EnumSet"/>
  18390. <param name="elementType" type="java.lang.Class"/>
  18391. <doc>
  18392. <![CDATA[reset the EnumSetWritable with specified
  18393. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  18394. is null or its size is zero, the <tt>elementType</tt> argument must not be
  18395. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  18396. argument <tt>elementType</tt> is not be used.
  18397. @param value
  18398. @param elementType]]>
  18399. </doc>
  18400. </method>
  18401. <method name="get" return="java.util.EnumSet"
  18402. abstract="false" native="false" synchronized="false"
  18403. static="false" final="false" visibility="public"
  18404. deprecated="not deprecated">
  18405. <doc>
  18406. <![CDATA[Return the value of this EnumSetWritable.]]>
  18407. </doc>
  18408. </method>
  18409. <method name="readFields"
  18410. abstract="false" native="false" synchronized="false"
  18411. static="false" final="false" visibility="public"
  18412. deprecated="not deprecated">
  18413. <param name="in" type="java.io.DataInput"/>
  18414. <exception name="IOException" type="java.io.IOException"/>
  18415. </method>
  18416. <method name="write"
  18417. abstract="false" native="false" synchronized="false"
  18418. static="false" final="false" visibility="public"
  18419. deprecated="not deprecated">
  18420. <param name="out" type="java.io.DataOutput"/>
  18421. <exception name="IOException" type="java.io.IOException"/>
  18422. </method>
  18423. <method name="equals" return="boolean"
  18424. abstract="false" native="false" synchronized="false"
  18425. static="false" final="false" visibility="public"
  18426. deprecated="not deprecated">
  18427. <param name="o" type="java.lang.Object"/>
  18428. <doc>
  18429. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  18430. or both are null.]]>
  18431. </doc>
  18432. </method>
  18433. <method name="getElementType" return="java.lang.Class"
  18434. abstract="false" native="false" synchronized="false"
  18435. static="false" final="false" visibility="public"
  18436. deprecated="not deprecated">
  18437. <doc>
  18438. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  18439. may return null.
  18440. @return the element class]]>
  18441. </doc>
  18442. </method>
  18443. <method name="hashCode" return="int"
  18444. abstract="false" native="false" synchronized="false"
  18445. static="false" final="false" visibility="public"
  18446. deprecated="not deprecated">
  18447. </method>
  18448. <method name="toString" return="java.lang.String"
  18449. abstract="false" native="false" synchronized="false"
  18450. static="false" final="false" visibility="public"
  18451. deprecated="not deprecated">
  18452. </method>
  18453. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18454. abstract="false" native="false" synchronized="false"
  18455. static="false" final="false" visibility="public"
  18456. deprecated="not deprecated">
  18457. </method>
  18458. <method name="setConf"
  18459. abstract="false" native="false" synchronized="false"
  18460. static="false" final="false" visibility="public"
  18461. deprecated="not deprecated">
  18462. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18463. </method>
  18464. <doc>
  18465. <![CDATA[A Writable wrapper for EnumSet.]]>
  18466. </doc>
  18467. </class>
  18468. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  18469. <!-- start class org.apache.hadoop.io.FloatWritable -->
  18470. <class name="FloatWritable" extends="java.lang.Object"
  18471. abstract="false"
  18472. static="false" final="false" visibility="public"
  18473. deprecated="not deprecated">
  18474. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18475. <constructor name="FloatWritable"
  18476. static="false" final="false" visibility="public"
  18477. deprecated="not deprecated">
  18478. </constructor>
  18479. <constructor name="FloatWritable" type="float"
  18480. static="false" final="false" visibility="public"
  18481. deprecated="not deprecated">
  18482. </constructor>
  18483. <method name="set"
  18484. abstract="false" native="false" synchronized="false"
  18485. static="false" final="false" visibility="public"
  18486. deprecated="not deprecated">
  18487. <param name="value" type="float"/>
  18488. <doc>
  18489. <![CDATA[Set the value of this FloatWritable.]]>
  18490. </doc>
  18491. </method>
  18492. <method name="get" return="float"
  18493. abstract="false" native="false" synchronized="false"
  18494. static="false" final="false" visibility="public"
  18495. deprecated="not deprecated">
  18496. <doc>
  18497. <![CDATA[Return the value of this FloatWritable.]]>
  18498. </doc>
  18499. </method>
  18500. <method name="readFields"
  18501. abstract="false" native="false" synchronized="false"
  18502. static="false" final="false" visibility="public"
  18503. deprecated="not deprecated">
  18504. <param name="in" type="java.io.DataInput"/>
  18505. <exception name="IOException" type="java.io.IOException"/>
  18506. </method>
  18507. <method name="write"
  18508. abstract="false" native="false" synchronized="false"
  18509. static="false" final="false" visibility="public"
  18510. deprecated="not deprecated">
  18511. <param name="out" type="java.io.DataOutput"/>
  18512. <exception name="IOException" type="java.io.IOException"/>
  18513. </method>
  18514. <method name="equals" return="boolean"
  18515. abstract="false" native="false" synchronized="false"
  18516. static="false" final="false" visibility="public"
  18517. deprecated="not deprecated">
  18518. <param name="o" type="java.lang.Object"/>
  18519. <doc>
  18520. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  18521. </doc>
  18522. </method>
  18523. <method name="hashCode" return="int"
  18524. abstract="false" native="false" synchronized="false"
  18525. static="false" final="false" visibility="public"
  18526. deprecated="not deprecated">
  18527. </method>
  18528. <method name="compareTo" return="int"
  18529. abstract="false" native="false" synchronized="false"
  18530. static="false" final="false" visibility="public"
  18531. deprecated="not deprecated">
  18532. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  18533. <doc>
  18534. <![CDATA[Compares two FloatWritables.]]>
  18535. </doc>
  18536. </method>
  18537. <method name="toString" return="java.lang.String"
  18538. abstract="false" native="false" synchronized="false"
  18539. static="false" final="false" visibility="public"
  18540. deprecated="not deprecated">
  18541. </method>
  18542. <doc>
  18543. <![CDATA[A WritableComparable for floats.]]>
  18544. </doc>
  18545. </class>
  18546. <!-- end class org.apache.hadoop.io.FloatWritable -->
  18547. <!-- start class org.apache.hadoop.io.GenericWritable -->
  18548. <class name="GenericWritable" extends="java.lang.Object"
  18549. abstract="true"
  18550. static="false" final="false" visibility="public"
  18551. deprecated="not deprecated">
  18552. <implements name="org.apache.hadoop.io.Writable"/>
  18553. <implements name="org.apache.hadoop.conf.Configurable"/>
  18554. <constructor name="GenericWritable"
  18555. static="false" final="false" visibility="public"
  18556. deprecated="not deprecated">
  18557. </constructor>
  18558. <method name="set"
  18559. abstract="false" native="false" synchronized="false"
  18560. static="false" final="false" visibility="public"
  18561. deprecated="not deprecated">
  18562. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  18563. <doc>
  18564. <![CDATA[Set the instance that is wrapped.
  18565. @param obj]]>
  18566. </doc>
  18567. </method>
  18568. <method name="get" return="org.apache.hadoop.io.Writable"
  18569. abstract="false" native="false" synchronized="false"
  18570. static="false" final="false" visibility="public"
  18571. deprecated="not deprecated">
  18572. <doc>
  18573. <![CDATA[Return the wrapped instance.]]>
  18574. </doc>
  18575. </method>
  18576. <method name="toString" return="java.lang.String"
  18577. abstract="false" native="false" synchronized="false"
  18578. static="false" final="false" visibility="public"
  18579. deprecated="not deprecated">
  18580. </method>
  18581. <method name="readFields"
  18582. abstract="false" native="false" synchronized="false"
  18583. static="false" final="false" visibility="public"
  18584. deprecated="not deprecated">
  18585. <param name="in" type="java.io.DataInput"/>
  18586. <exception name="IOException" type="java.io.IOException"/>
  18587. </method>
  18588. <method name="write"
  18589. abstract="false" native="false" synchronized="false"
  18590. static="false" final="false" visibility="public"
  18591. deprecated="not deprecated">
  18592. <param name="out" type="java.io.DataOutput"/>
  18593. <exception name="IOException" type="java.io.IOException"/>
  18594. </method>
  18595. <method name="getTypes" return="java.lang.Class[]"
  18596. abstract="true" native="false" synchronized="false"
  18597. static="false" final="false" visibility="protected"
  18598. deprecated="not deprecated">
  18599. <doc>
  18600. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  18601. to return a constant array of classes.]]>
  18602. </doc>
  18603. </method>
  18604. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18605. abstract="false" native="false" synchronized="false"
  18606. static="false" final="false" visibility="public"
  18607. deprecated="not deprecated">
  18608. </method>
  18609. <method name="setConf"
  18610. abstract="false" native="false" synchronized="false"
  18611. static="false" final="false" visibility="public"
  18612. deprecated="not deprecated">
  18613. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18614. </method>
  18615. <doc>
  18616. <![CDATA[A wrapper for Writable instances.
  18617. <p>
  18618. When two sequence files, which have same Key type but different Value
  18619. types, are mapped out to reduce, multiple Value types is not allowed.
  18620. In this case, this class can help you wrap instances with different types.
  18621. </p>
  18622. <p>
  18623. Compared with <code>ObjectWritable</code>, this class is much more effective,
  18624. because <code>ObjectWritable</code> will append the class declaration as a String
  18625. into the output file in every Key-Value pair.
  18626. </p>
  18627. <p>
  18628. Generic Writable implements {@link Configurable} interface, so that it will be
  18629. configured by the framework. The configuration is passed to the wrapped objects
  18630. implementing {@link Configurable} interface <i>before deserialization</i>.
  18631. </p>
  18632. how to use it: <br>
  18633. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  18634. 2. Implements the abstract method <code>getTypes()</code>, defines
  18635. the classes which will be wrapped in GenericObject in application.
  18636. Attention: this classes defined in <code>getTypes()</code> method, must
  18637. implement <code>Writable</code> interface.
  18638. <br><br>
  18639. The code looks like this:
  18640. <blockquote><pre>
  18641. public class GenericObject extends GenericWritable {
  18642. private static Class[] CLASSES = {
  18643. ClassType1.class,
  18644. ClassType2.class,
  18645. ClassType3.class,
  18646. };
  18647. protected Class[] getTypes() {
  18648. return CLASSES;
  18649. }
  18650. }
  18651. </pre></blockquote>
  18652. @since Nov 8, 2006]]>
  18653. </doc>
  18654. </class>
  18655. <!-- end class org.apache.hadoop.io.GenericWritable -->
  18656. <!-- start class org.apache.hadoop.io.IntWritable -->
  18657. <class name="IntWritable" extends="java.lang.Object"
  18658. abstract="false"
  18659. static="false" final="false" visibility="public"
  18660. deprecated="not deprecated">
  18661. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18662. <constructor name="IntWritable"
  18663. static="false" final="false" visibility="public"
  18664. deprecated="not deprecated">
  18665. </constructor>
  18666. <constructor name="IntWritable" type="int"
  18667. static="false" final="false" visibility="public"
  18668. deprecated="not deprecated">
  18669. </constructor>
  18670. <method name="set"
  18671. abstract="false" native="false" synchronized="false"
  18672. static="false" final="false" visibility="public"
  18673. deprecated="not deprecated">
  18674. <param name="value" type="int"/>
  18675. <doc>
  18676. <![CDATA[Set the value of this IntWritable.]]>
  18677. </doc>
  18678. </method>
  18679. <method name="get" return="int"
  18680. abstract="false" native="false" synchronized="false"
  18681. static="false" final="false" visibility="public"
  18682. deprecated="not deprecated">
  18683. <doc>
  18684. <![CDATA[Return the value of this IntWritable.]]>
  18685. </doc>
  18686. </method>
  18687. <method name="readFields"
  18688. abstract="false" native="false" synchronized="false"
  18689. static="false" final="false" visibility="public"
  18690. deprecated="not deprecated">
  18691. <param name="in" type="java.io.DataInput"/>
  18692. <exception name="IOException" type="java.io.IOException"/>
  18693. </method>
  18694. <method name="write"
  18695. abstract="false" native="false" synchronized="false"
  18696. static="false" final="false" visibility="public"
  18697. deprecated="not deprecated">
  18698. <param name="out" type="java.io.DataOutput"/>
  18699. <exception name="IOException" type="java.io.IOException"/>
  18700. </method>
  18701. <method name="equals" return="boolean"
  18702. abstract="false" native="false" synchronized="false"
  18703. static="false" final="false" visibility="public"
  18704. deprecated="not deprecated">
  18705. <param name="o" type="java.lang.Object"/>
  18706. <doc>
  18707. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  18708. </doc>
  18709. </method>
  18710. <method name="hashCode" return="int"
  18711. abstract="false" native="false" synchronized="false"
  18712. static="false" final="false" visibility="public"
  18713. deprecated="not deprecated">
  18714. </method>
  18715. <method name="compareTo" return="int"
  18716. abstract="false" native="false" synchronized="false"
  18717. static="false" final="false" visibility="public"
  18718. deprecated="not deprecated">
  18719. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  18720. <doc>
  18721. <![CDATA[Compares two IntWritables.]]>
  18722. </doc>
  18723. </method>
  18724. <method name="toString" return="java.lang.String"
  18725. abstract="false" native="false" synchronized="false"
  18726. static="false" final="false" visibility="public"
  18727. deprecated="not deprecated">
  18728. </method>
  18729. <doc>
  18730. <![CDATA[A WritableComparable for ints.]]>
  18731. </doc>
  18732. </class>
  18733. <!-- end class org.apache.hadoop.io.IntWritable -->
  18734. <!-- start class org.apache.hadoop.io.IOUtils -->
  18735. <class name="IOUtils" extends="java.lang.Object"
  18736. abstract="false"
  18737. static="false" final="false" visibility="public"
  18738. deprecated="not deprecated">
  18739. <constructor name="IOUtils"
  18740. static="false" final="false" visibility="public"
  18741. deprecated="not deprecated">
  18742. </constructor>
  18743. <method name="copyBytes"
  18744. abstract="false" native="false" synchronized="false"
  18745. static="true" final="false" visibility="public"
  18746. deprecated="not deprecated">
  18747. <param name="in" type="java.io.InputStream"/>
  18748. <param name="out" type="java.io.OutputStream"/>
  18749. <param name="buffSize" type="int"/>
  18750. <param name="close" type="boolean"/>
  18751. <exception name="IOException" type="java.io.IOException"/>
  18752. <doc>
  18753. <![CDATA[Copies from one stream to another.
  18754. @param in InputStrem to read from
  18755. @param out OutputStream to write to
  18756. @param buffSize the size of the buffer
  18757. @param close whether or not close the InputStream and
  18758. OutputStream at the end. The streams are closed in the finally clause.]]>
  18759. </doc>
  18760. </method>
  18761. <method name="copyBytes"
  18762. abstract="false" native="false" synchronized="false"
  18763. static="true" final="false" visibility="public"
  18764. deprecated="not deprecated">
  18765. <param name="in" type="java.io.InputStream"/>
  18766. <param name="out" type="java.io.OutputStream"/>
  18767. <param name="buffSize" type="int"/>
  18768. <exception name="IOException" type="java.io.IOException"/>
  18769. <doc>
  18770. <![CDATA[Copies from one stream to another.
  18771. @param in InputStrem to read from
  18772. @param out OutputStream to write to
  18773. @param buffSize the size of the buffer]]>
  18774. </doc>
  18775. </method>
  18776. <method name="copyBytes"
  18777. abstract="false" native="false" synchronized="false"
  18778. static="true" final="false" visibility="public"
  18779. deprecated="not deprecated">
  18780. <param name="in" type="java.io.InputStream"/>
  18781. <param name="out" type="java.io.OutputStream"/>
  18782. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18783. <exception name="IOException" type="java.io.IOException"/>
  18784. <doc>
  18785. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  18786. at the end</strong>.
  18787. @param in InputStrem to read from
  18788. @param out OutputStream to write to
  18789. @param conf the Configuration object]]>
  18790. </doc>
  18791. </method>
  18792. <method name="copyBytes"
  18793. abstract="false" native="false" synchronized="false"
  18794. static="true" final="false" visibility="public"
  18795. deprecated="not deprecated">
  18796. <param name="in" type="java.io.InputStream"/>
  18797. <param name="out" type="java.io.OutputStream"/>
  18798. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18799. <param name="close" type="boolean"/>
  18800. <exception name="IOException" type="java.io.IOException"/>
  18801. <doc>
  18802. <![CDATA[Copies from one stream to another.
  18803. @param in InputStream to read from
  18804. @param out OutputStream to write to
  18805. @param conf the Configuration object
  18806. @param close whether or not close the InputStream and
  18807. OutputStream at the end. The streams are closed in the finally clause.]]>
  18808. </doc>
  18809. </method>
  18810. <method name="copyBytes"
  18811. abstract="false" native="false" synchronized="false"
  18812. static="true" final="false" visibility="public"
  18813. deprecated="not deprecated">
  18814. <param name="in" type="java.io.InputStream"/>
  18815. <param name="out" type="java.io.OutputStream"/>
  18816. <param name="count" type="long"/>
  18817. <param name="close" type="boolean"/>
  18818. <exception name="IOException" type="java.io.IOException"/>
  18819. <doc>
  18820. <![CDATA[Copies count bytes from one stream to another.
  18821. @param in InputStream to read from
  18822. @param out OutputStream to write to
  18823. @param count number of bytes to copy
  18824. @param close whether to close the streams
  18825. @throws IOException if bytes can not be read or written]]>
  18826. </doc>
  18827. </method>
  18828. <method name="wrappedReadForCompressedData" return="int"
  18829. abstract="false" native="false" synchronized="false"
  18830. static="true" final="false" visibility="public"
  18831. deprecated="not deprecated">
  18832. <param name="is" type="java.io.InputStream"/>
  18833. <param name="buf" type="byte[]"/>
  18834. <param name="off" type="int"/>
  18835. <param name="len" type="int"/>
  18836. <exception name="IOException" type="java.io.IOException"/>
  18837. <doc>
  18838. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  18839. thrown by the underlying stream (either IO or decompression-related), and
  18840. re-throws as an IOException.
  18841. @param is - InputStream to be read from
  18842. @param buf - buffer the data is read into
  18843. @param off - offset within buf
  18844. @param len - amount of data to be read
  18845. @return number of bytes read]]>
  18846. </doc>
  18847. </method>
  18848. <method name="readFully"
  18849. abstract="false" native="false" synchronized="false"
  18850. static="true" final="false" visibility="public"
  18851. deprecated="not deprecated">
  18852. <param name="in" type="java.io.InputStream"/>
  18853. <param name="buf" type="byte[]"/>
  18854. <param name="off" type="int"/>
  18855. <param name="len" type="int"/>
  18856. <exception name="IOException" type="java.io.IOException"/>
  18857. <doc>
  18858. <![CDATA[Reads len bytes in a loop.
  18859. @param in InputStream to read from
  18860. @param buf The buffer to fill
  18861. @param off offset from the buffer
  18862. @param len the length of bytes to read
  18863. @throws IOException if it could not read requested number of bytes
  18864. for any reason (including EOF)]]>
  18865. </doc>
  18866. </method>
  18867. <method name="skipFully"
  18868. abstract="false" native="false" synchronized="false"
  18869. static="true" final="false" visibility="public"
  18870. deprecated="not deprecated">
  18871. <param name="in" type="java.io.InputStream"/>
  18872. <param name="len" type="long"/>
  18873. <exception name="IOException" type="java.io.IOException"/>
  18874. <doc>
  18875. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  18876. @param in The InputStream to skip bytes from
  18877. @param len number of bytes to skip.
  18878. @throws IOException if it could not skip requested number of bytes
  18879. for any reason (including EOF)]]>
  18880. </doc>
  18881. </method>
  18882. <method name="cleanup"
  18883. abstract="false" native="false" synchronized="false"
  18884. static="true" final="false" visibility="public"
  18885. deprecated="use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  18886. instead">
  18887. <param name="log" type="org.apache.commons.logging.Log"/>
  18888. <param name="closeables" type="java.io.Closeable[]"/>
  18889. <doc>
  18890. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  18891. null pointers. Must only be used for cleanup in exception handlers.
  18892. @param log the log to record problems to at debug level. Can be null.
  18893. @param closeables the objects to close
  18894. @deprecated use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  18895. instead]]>
  18896. </doc>
  18897. </method>
  18898. <method name="cleanupWithLogger"
  18899. abstract="false" native="false" synchronized="false"
  18900. static="true" final="false" visibility="public"
  18901. deprecated="not deprecated">
  18902. <param name="logger" type="org.slf4j.Logger"/>
  18903. <param name="closeables" type="java.io.Closeable[]"/>
  18904. <doc>
  18905. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  18906. null pointers. Must only be used for cleanup in exception handlers.
  18907. @param logger the log to record problems to at debug level. Can be null.
  18908. @param closeables the objects to close]]>
  18909. </doc>
  18910. </method>
  18911. <method name="closeStream"
  18912. abstract="false" native="false" synchronized="false"
  18913. static="true" final="false" visibility="public"
  18914. deprecated="not deprecated">
  18915. <param name="stream" type="java.io.Closeable"/>
  18916. <doc>
  18917. <![CDATA[Closes the stream ignoring {@link Throwable}.
  18918. Must only be called in cleaning up from exception handlers.
  18919. @param stream the Stream to close]]>
  18920. </doc>
  18921. </method>
  18922. <method name="closeStreams"
  18923. abstract="false" native="false" synchronized="false"
  18924. static="true" final="false" visibility="public"
  18925. deprecated="not deprecated">
  18926. <param name="streams" type="java.io.Closeable[]"/>
  18927. <doc>
  18928. <![CDATA[Closes the streams ignoring {@link Throwable}.
  18929. Must only be called in cleaning up from exception handlers.
  18930. @param streams the Streams to close]]>
  18931. </doc>
  18932. </method>
  18933. <method name="closeSocket"
  18934. abstract="false" native="false" synchronized="false"
  18935. static="true" final="false" visibility="public"
  18936. deprecated="not deprecated">
  18937. <param name="sock" type="java.net.Socket"/>
  18938. <doc>
  18939. <![CDATA[Closes the socket ignoring {@link IOException}
  18940. @param sock the Socket to close]]>
  18941. </doc>
  18942. </method>
  18943. <method name="writeFully"
  18944. abstract="false" native="false" synchronized="false"
  18945. static="true" final="false" visibility="public"
  18946. deprecated="not deprecated">
  18947. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  18948. <param name="buf" type="java.nio.ByteBuffer"/>
  18949. <exception name="IOException" type="java.io.IOException"/>
  18950. <doc>
  18951. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  18952. @param bc The WritableByteChannel to write to
  18953. @param buf The input buffer
  18954. @throws IOException On I/O error]]>
  18955. </doc>
  18956. </method>
  18957. <method name="writeFully"
  18958. abstract="false" native="false" synchronized="false"
  18959. static="true" final="false" visibility="public"
  18960. deprecated="not deprecated">
  18961. <param name="fc" type="java.nio.channels.FileChannel"/>
  18962. <param name="buf" type="java.nio.ByteBuffer"/>
  18963. <param name="offset" type="long"/>
  18964. <exception name="IOException" type="java.io.IOException"/>
  18965. <doc>
  18966. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  18967. handling short writes.
  18968. @param fc The FileChannel to write to
  18969. @param buf The input buffer
  18970. @param offset The offset in the file to start writing at
  18971. @throws IOException On I/O error]]>
  18972. </doc>
  18973. </method>
  18974. <method name="listDirectory" return="java.util.List"
  18975. abstract="false" native="false" synchronized="false"
  18976. static="true" final="false" visibility="public"
  18977. deprecated="not deprecated">
  18978. <param name="dir" type="java.io.File"/>
  18979. <param name="filter" type="java.io.FilenameFilter"/>
  18980. <exception name="IOException" type="java.io.IOException"/>
  18981. <doc>
  18982. <![CDATA[Return the complete list of files in a directory as strings.<p/>
  18983. This is better than File#listDir because it does not ignore IOExceptions.
  18984. @param dir The directory to list.
  18985. @param filter If non-null, the filter to use when listing
  18986. this directory.
  18987. @return The list of files in the directory.
  18988. @throws IOException On I/O error]]>
  18989. </doc>
  18990. </method>
  18991. <method name="fsync"
  18992. abstract="false" native="false" synchronized="false"
  18993. static="true" final="false" visibility="public"
  18994. deprecated="not deprecated">
  18995. <param name="fileToSync" type="java.io.File"/>
  18996. <exception name="IOException" type="java.io.IOException"/>
  18997. <doc>
  18998. <![CDATA[Ensure that any writes to the given file is written to the storage device
  18999. that contains it. This method opens channel on given File and closes it
  19000. once the sync is done.<br>
  19001. Borrowed from Uwe Schindler in LUCENE-5588
  19002. @param fileToSync the file to fsync]]>
  19003. </doc>
  19004. </method>
  19005. <method name="fsync"
  19006. abstract="false" native="false" synchronized="false"
  19007. static="true" final="false" visibility="public"
  19008. deprecated="not deprecated">
  19009. <param name="channel" type="java.nio.channels.FileChannel"/>
  19010. <param name="isDir" type="boolean"/>
  19011. <exception name="IOException" type="java.io.IOException"/>
  19012. <doc>
  19013. <![CDATA[Ensure that any writes to the given file is written to the storage device
  19014. that contains it. This method opens channel on given File and closes it
  19015. once the sync is done.
  19016. Borrowed from Uwe Schindler in LUCENE-5588
  19017. @param channel Channel to sync
  19018. @param isDir if true, the given file is a directory (Channel should be
  19019. opened for read and ignore IOExceptions, because not all file
  19020. systems and operating systems allow to fsync on a directory)
  19021. @throws IOException]]>
  19022. </doc>
  19023. </method>
  19024. <method name="readFullyToByteArray" return="byte[]"
  19025. abstract="false" native="false" synchronized="false"
  19026. static="true" final="false" visibility="public"
  19027. deprecated="not deprecated">
  19028. <param name="in" type="java.io.DataInput"/>
  19029. <exception name="IOException" type="java.io.IOException"/>
  19030. <doc>
  19031. <![CDATA[Reads a DataInput until EOF and returns a byte array. Make sure not to
  19032. pass in an infinite DataInput or this will never return.
  19033. @param in A DataInput
  19034. @return a byte array containing the data from the DataInput
  19035. @throws IOException on I/O error, other than EOF]]>
  19036. </doc>
  19037. </method>
  19038. <field name="LOG" type="org.slf4j.Logger"
  19039. transient="false" volatile="false"
  19040. static="true" final="true" visibility="public"
  19041. deprecated="not deprecated">
  19042. </field>
  19043. <doc>
  19044. <![CDATA[An utility class for I/O related functionality.]]>
  19045. </doc>
  19046. </class>
  19047. <!-- end class org.apache.hadoop.io.IOUtils -->
  19048. <!-- start class org.apache.hadoop.io.LongWritable -->
  19049. <class name="LongWritable" extends="java.lang.Object"
  19050. abstract="false"
  19051. static="false" final="false" visibility="public"
  19052. deprecated="not deprecated">
  19053. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19054. <constructor name="LongWritable"
  19055. static="false" final="false" visibility="public"
  19056. deprecated="not deprecated">
  19057. </constructor>
  19058. <constructor name="LongWritable" type="long"
  19059. static="false" final="false" visibility="public"
  19060. deprecated="not deprecated">
  19061. </constructor>
  19062. <method name="set"
  19063. abstract="false" native="false" synchronized="false"
  19064. static="false" final="false" visibility="public"
  19065. deprecated="not deprecated">
  19066. <param name="value" type="long"/>
  19067. <doc>
  19068. <![CDATA[Set the value of this LongWritable.]]>
  19069. </doc>
  19070. </method>
  19071. <method name="get" return="long"
  19072. abstract="false" native="false" synchronized="false"
  19073. static="false" final="false" visibility="public"
  19074. deprecated="not deprecated">
  19075. <doc>
  19076. <![CDATA[Return the value of this LongWritable.]]>
  19077. </doc>
  19078. </method>
  19079. <method name="readFields"
  19080. abstract="false" native="false" synchronized="false"
  19081. static="false" final="false" visibility="public"
  19082. deprecated="not deprecated">
  19083. <param name="in" type="java.io.DataInput"/>
  19084. <exception name="IOException" type="java.io.IOException"/>
  19085. </method>
  19086. <method name="write"
  19087. abstract="false" native="false" synchronized="false"
  19088. static="false" final="false" visibility="public"
  19089. deprecated="not deprecated">
  19090. <param name="out" type="java.io.DataOutput"/>
  19091. <exception name="IOException" type="java.io.IOException"/>
  19092. </method>
  19093. <method name="equals" return="boolean"
  19094. abstract="false" native="false" synchronized="false"
  19095. static="false" final="false" visibility="public"
  19096. deprecated="not deprecated">
  19097. <param name="o" type="java.lang.Object"/>
  19098. <doc>
  19099. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  19100. </doc>
  19101. </method>
  19102. <method name="hashCode" return="int"
  19103. abstract="false" native="false" synchronized="false"
  19104. static="false" final="false" visibility="public"
  19105. deprecated="not deprecated">
  19106. </method>
  19107. <method name="compareTo" return="int"
  19108. abstract="false" native="false" synchronized="false"
  19109. static="false" final="false" visibility="public"
  19110. deprecated="not deprecated">
  19111. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  19112. <doc>
  19113. <![CDATA[Compares two LongWritables.]]>
  19114. </doc>
  19115. </method>
  19116. <method name="toString" return="java.lang.String"
  19117. abstract="false" native="false" synchronized="false"
  19118. static="false" final="false" visibility="public"
  19119. deprecated="not deprecated">
  19120. </method>
  19121. <doc>
  19122. <![CDATA[A WritableComparable for longs.]]>
  19123. </doc>
  19124. </class>
  19125. <!-- end class org.apache.hadoop.io.LongWritable -->
  19126. <!-- start class org.apache.hadoop.io.MapFile -->
  19127. <class name="MapFile" extends="java.lang.Object"
  19128. abstract="false"
  19129. static="false" final="false" visibility="public"
  19130. deprecated="not deprecated">
  19131. <constructor name="MapFile"
  19132. static="false" final="false" visibility="protected"
  19133. deprecated="not deprecated">
  19134. </constructor>
  19135. <method name="rename"
  19136. abstract="false" native="false" synchronized="false"
  19137. static="true" final="false" visibility="public"
  19138. deprecated="not deprecated">
  19139. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19140. <param name="oldName" type="java.lang.String"/>
  19141. <param name="newName" type="java.lang.String"/>
  19142. <exception name="IOException" type="java.io.IOException"/>
  19143. <doc>
  19144. <![CDATA[Renames an existing map directory.]]>
  19145. </doc>
  19146. </method>
  19147. <method name="delete"
  19148. abstract="false" native="false" synchronized="false"
  19149. static="true" final="false" visibility="public"
  19150. deprecated="not deprecated">
  19151. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19152. <param name="name" type="java.lang.String"/>
  19153. <exception name="IOException" type="java.io.IOException"/>
  19154. <doc>
  19155. <![CDATA[Deletes the named map file.]]>
  19156. </doc>
  19157. </method>
  19158. <method name="fix" return="long"
  19159. abstract="false" native="false" synchronized="false"
  19160. static="true" final="false" visibility="public"
  19161. deprecated="not deprecated">
  19162. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19163. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  19164. <param name="keyClass" type="java.lang.Class"/>
  19165. <param name="valueClass" type="java.lang.Class"/>
  19166. <param name="dryrun" type="boolean"/>
  19167. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19168. <exception name="Exception" type="java.lang.Exception"/>
  19169. <doc>
  19170. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  19171. @param fs filesystem
  19172. @param dir directory containing the MapFile data and index
  19173. @param keyClass key class (has to be a subclass of Writable)
  19174. @param valueClass value class (has to be a subclass of Writable)
  19175. @param dryrun do not perform any changes, just report what needs to be done
  19176. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  19177. @throws Exception]]>
  19178. </doc>
  19179. </method>
  19180. <method name="main"
  19181. abstract="false" native="false" synchronized="false"
  19182. static="true" final="false" visibility="public"
  19183. deprecated="not deprecated">
  19184. <param name="args" type="java.lang.String[]"/>
  19185. <exception name="Exception" type="java.lang.Exception"/>
  19186. </method>
  19187. <field name="INDEX_FILE_NAME" type="java.lang.String"
  19188. transient="false" volatile="false"
  19189. static="true" final="true" visibility="public"
  19190. deprecated="not deprecated">
  19191. <doc>
  19192. <![CDATA[The name of the index file.]]>
  19193. </doc>
  19194. </field>
  19195. <field name="DATA_FILE_NAME" type="java.lang.String"
  19196. transient="false" volatile="false"
  19197. static="true" final="true" visibility="public"
  19198. deprecated="not deprecated">
  19199. <doc>
  19200. <![CDATA[The name of the data file.]]>
  19201. </doc>
  19202. </field>
  19203. <doc>
  19204. <![CDATA[A file-based map from keys to values.
  19205. <p>A map is a directory containing two files, the <code>data</code> file,
  19206. containing all keys and values in the map, and a smaller <code>index</code>
  19207. file, containing a fraction of the keys. The fraction is determined by
  19208. {@link Writer#getIndexInterval()}.
  19209. <p>The index file is read entirely into memory. Thus key implementations
  19210. should try to keep themselves small.
  19211. <p>Map files are created by adding entries in-order. To maintain a large
  19212. database, perform updates by copying the previous version of a database and
  19213. merging in a sorted change list, to create a new version of the database in
  19214. a new file. Sorting large change lists can be done with {@link
  19215. SequenceFile.Sorter}.]]>
  19216. </doc>
  19217. </class>
  19218. <!-- end class org.apache.hadoop.io.MapFile -->
  19219. <!-- start class org.apache.hadoop.io.MapWritable -->
  19220. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  19221. abstract="false"
  19222. static="false" final="false" visibility="public"
  19223. deprecated="not deprecated">
  19224. <implements name="java.util.Map"/>
  19225. <constructor name="MapWritable"
  19226. static="false" final="false" visibility="public"
  19227. deprecated="not deprecated">
  19228. <doc>
  19229. <![CDATA[Default constructor.]]>
  19230. </doc>
  19231. </constructor>
  19232. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  19233. static="false" final="false" visibility="public"
  19234. deprecated="not deprecated">
  19235. <doc>
  19236. <![CDATA[Copy constructor.
  19237. @param other the map to copy from]]>
  19238. </doc>
  19239. </constructor>
  19240. <method name="clear"
  19241. abstract="false" native="false" synchronized="false"
  19242. static="false" final="false" visibility="public"
  19243. deprecated="not deprecated">
  19244. </method>
  19245. <method name="containsKey" return="boolean"
  19246. abstract="false" native="false" synchronized="false"
  19247. static="false" final="false" visibility="public"
  19248. deprecated="not deprecated">
  19249. <param name="key" type="java.lang.Object"/>
  19250. </method>
  19251. <method name="containsValue" return="boolean"
  19252. abstract="false" native="false" synchronized="false"
  19253. static="false" final="false" visibility="public"
  19254. deprecated="not deprecated">
  19255. <param name="value" type="java.lang.Object"/>
  19256. </method>
  19257. <method name="entrySet" return="java.util.Set"
  19258. abstract="false" native="false" synchronized="false"
  19259. static="false" final="false" visibility="public"
  19260. deprecated="not deprecated">
  19261. </method>
  19262. <method name="equals" return="boolean"
  19263. abstract="false" native="false" synchronized="false"
  19264. static="false" final="false" visibility="public"
  19265. deprecated="not deprecated">
  19266. <param name="obj" type="java.lang.Object"/>
  19267. </method>
  19268. <method name="get" return="org.apache.hadoop.io.Writable"
  19269. abstract="false" native="false" synchronized="false"
  19270. static="false" final="false" visibility="public"
  19271. deprecated="not deprecated">
  19272. <param name="key" type="java.lang.Object"/>
  19273. </method>
  19274. <method name="hashCode" return="int"
  19275. abstract="false" native="false" synchronized="false"
  19276. static="false" final="false" visibility="public"
  19277. deprecated="not deprecated">
  19278. </method>
  19279. <method name="isEmpty" return="boolean"
  19280. abstract="false" native="false" synchronized="false"
  19281. static="false" final="false" visibility="public"
  19282. deprecated="not deprecated">
  19283. </method>
  19284. <method name="keySet" return="java.util.Set"
  19285. abstract="false" native="false" synchronized="false"
  19286. static="false" final="false" visibility="public"
  19287. deprecated="not deprecated">
  19288. </method>
  19289. <method name="put" return="org.apache.hadoop.io.Writable"
  19290. abstract="false" native="false" synchronized="false"
  19291. static="false" final="false" visibility="public"
  19292. deprecated="not deprecated">
  19293. <param name="key" type="org.apache.hadoop.io.Writable"/>
  19294. <param name="value" type="org.apache.hadoop.io.Writable"/>
  19295. </method>
  19296. <method name="putAll"
  19297. abstract="false" native="false" synchronized="false"
  19298. static="false" final="false" visibility="public"
  19299. deprecated="not deprecated">
  19300. <param name="t" type="java.util.Map"/>
  19301. </method>
  19302. <method name="remove" return="org.apache.hadoop.io.Writable"
  19303. abstract="false" native="false" synchronized="false"
  19304. static="false" final="false" visibility="public"
  19305. deprecated="not deprecated">
  19306. <param name="key" type="java.lang.Object"/>
  19307. </method>
  19308. <method name="size" return="int"
  19309. abstract="false" native="false" synchronized="false"
  19310. static="false" final="false" visibility="public"
  19311. deprecated="not deprecated">
  19312. </method>
  19313. <method name="values" return="java.util.Collection"
  19314. abstract="false" native="false" synchronized="false"
  19315. static="false" final="false" visibility="public"
  19316. deprecated="not deprecated">
  19317. </method>
  19318. <method name="write"
  19319. abstract="false" native="false" synchronized="false"
  19320. static="false" final="false" visibility="public"
  19321. deprecated="not deprecated">
  19322. <param name="out" type="java.io.DataOutput"/>
  19323. <exception name="IOException" type="java.io.IOException"/>
  19324. </method>
  19325. <method name="readFields"
  19326. abstract="false" native="false" synchronized="false"
  19327. static="false" final="false" visibility="public"
  19328. deprecated="not deprecated">
  19329. <param name="in" type="java.io.DataInput"/>
  19330. <exception name="IOException" type="java.io.IOException"/>
  19331. </method>
  19332. <method name="toString" return="java.lang.String"
  19333. abstract="false" native="false" synchronized="false"
  19334. static="false" final="false" visibility="public"
  19335. deprecated="not deprecated">
  19336. </method>
  19337. <doc>
  19338. <![CDATA[A Writable Map.]]>
  19339. </doc>
  19340. </class>
  19341. <!-- end class org.apache.hadoop.io.MapWritable -->
  19342. <!-- start class org.apache.hadoop.io.MD5Hash -->
  19343. <class name="MD5Hash" extends="java.lang.Object"
  19344. abstract="false"
  19345. static="false" final="false" visibility="public"
  19346. deprecated="not deprecated">
  19347. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19348. <constructor name="MD5Hash"
  19349. static="false" final="false" visibility="public"
  19350. deprecated="not deprecated">
  19351. <doc>
  19352. <![CDATA[Constructs an MD5Hash.]]>
  19353. </doc>
  19354. </constructor>
  19355. <constructor name="MD5Hash" type="java.lang.String"
  19356. static="false" final="false" visibility="public"
  19357. deprecated="not deprecated">
  19358. <doc>
  19359. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  19360. </doc>
  19361. </constructor>
  19362. <constructor name="MD5Hash" type="byte[]"
  19363. static="false" final="false" visibility="public"
  19364. deprecated="not deprecated">
  19365. <doc>
  19366. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  19367. </doc>
  19368. </constructor>
  19369. <method name="readFields"
  19370. abstract="false" native="false" synchronized="false"
  19371. static="false" final="false" visibility="public"
  19372. deprecated="not deprecated">
  19373. <param name="in" type="java.io.DataInput"/>
  19374. <exception name="IOException" type="java.io.IOException"/>
  19375. </method>
  19376. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  19377. abstract="false" native="false" synchronized="false"
  19378. static="true" final="false" visibility="public"
  19379. deprecated="not deprecated">
  19380. <param name="in" type="java.io.DataInput"/>
  19381. <exception name="IOException" type="java.io.IOException"/>
  19382. <doc>
  19383. <![CDATA[Constructs, reads and returns an instance.]]>
  19384. </doc>
  19385. </method>
  19386. <method name="write"
  19387. abstract="false" native="false" synchronized="false"
  19388. static="false" final="false" visibility="public"
  19389. deprecated="not deprecated">
  19390. <param name="out" type="java.io.DataOutput"/>
  19391. <exception name="IOException" type="java.io.IOException"/>
  19392. </method>
  19393. <method name="set"
  19394. abstract="false" native="false" synchronized="false"
  19395. static="false" final="false" visibility="public"
  19396. deprecated="not deprecated">
  19397. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  19398. <doc>
  19399. <![CDATA[Copy the contents of another instance into this instance.]]>
  19400. </doc>
  19401. </method>
  19402. <method name="getDigest" return="byte[]"
  19403. abstract="false" native="false" synchronized="false"
  19404. static="false" final="false" visibility="public"
  19405. deprecated="not deprecated">
  19406. <doc>
  19407. <![CDATA[Returns the digest bytes.]]>
  19408. </doc>
  19409. </method>
  19410. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19411. abstract="false" native="false" synchronized="false"
  19412. static="true" final="false" visibility="public"
  19413. deprecated="not deprecated">
  19414. <param name="data" type="byte[]"/>
  19415. <doc>
  19416. <![CDATA[Construct a hash value for a byte array.]]>
  19417. </doc>
  19418. </method>
  19419. <method name="getDigester" return="java.security.MessageDigest"
  19420. abstract="false" native="false" synchronized="false"
  19421. static="true" final="false" visibility="public"
  19422. deprecated="not deprecated">
  19423. <doc>
  19424. <![CDATA[Create a thread local MD5 digester]]>
  19425. </doc>
  19426. </method>
  19427. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19428. abstract="false" native="false" synchronized="false"
  19429. static="true" final="false" visibility="public"
  19430. deprecated="not deprecated">
  19431. <param name="in" type="java.io.InputStream"/>
  19432. <exception name="IOException" type="java.io.IOException"/>
  19433. <doc>
  19434. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  19435. </doc>
  19436. </method>
  19437. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19438. abstract="false" native="false" synchronized="false"
  19439. static="true" final="false" visibility="public"
  19440. deprecated="not deprecated">
  19441. <param name="data" type="byte[]"/>
  19442. <param name="start" type="int"/>
  19443. <param name="len" type="int"/>
  19444. <doc>
  19445. <![CDATA[Construct a hash value for a byte array.]]>
  19446. </doc>
  19447. </method>
  19448. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19449. abstract="false" native="false" synchronized="false"
  19450. static="true" final="false" visibility="public"
  19451. deprecated="not deprecated">
  19452. <param name="string" type="java.lang.String"/>
  19453. <doc>
  19454. <![CDATA[Construct a hash value for a String.]]>
  19455. </doc>
  19456. </method>
  19457. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19458. abstract="false" native="false" synchronized="false"
  19459. static="true" final="false" visibility="public"
  19460. deprecated="not deprecated">
  19461. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  19462. <doc>
  19463. <![CDATA[Construct a hash value for a String.]]>
  19464. </doc>
  19465. </method>
  19466. <method name="halfDigest" return="long"
  19467. abstract="false" native="false" synchronized="false"
  19468. static="false" final="false" visibility="public"
  19469. deprecated="not deprecated">
  19470. <doc>
  19471. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  19472. </doc>
  19473. </method>
  19474. <method name="quarterDigest" return="int"
  19475. abstract="false" native="false" synchronized="false"
  19476. static="false" final="false" visibility="public"
  19477. deprecated="not deprecated">
  19478. <doc>
  19479. <![CDATA[Return a 32-bit digest of the MD5.
  19480. @return the first 4 bytes of the md5]]>
  19481. </doc>
  19482. </method>
  19483. <method name="equals" return="boolean"
  19484. abstract="false" native="false" synchronized="false"
  19485. static="false" final="false" visibility="public"
  19486. deprecated="not deprecated">
  19487. <param name="o" type="java.lang.Object"/>
  19488. <doc>
  19489. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  19490. same values.]]>
  19491. </doc>
  19492. </method>
  19493. <method name="hashCode" return="int"
  19494. abstract="false" native="false" synchronized="false"
  19495. static="false" final="false" visibility="public"
  19496. deprecated="not deprecated">
  19497. <doc>
  19498. <![CDATA[Returns a hash code value for this object.
  19499. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  19500. </doc>
  19501. </method>
  19502. <method name="compareTo" return="int"
  19503. abstract="false" native="false" synchronized="false"
  19504. static="false" final="false" visibility="public"
  19505. deprecated="not deprecated">
  19506. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  19507. <doc>
  19508. <![CDATA[Compares this object with the specified object for order.]]>
  19509. </doc>
  19510. </method>
  19511. <method name="toString" return="java.lang.String"
  19512. abstract="false" native="false" synchronized="false"
  19513. static="false" final="false" visibility="public"
  19514. deprecated="not deprecated">
  19515. <doc>
  19516. <![CDATA[Returns a string representation of this object.]]>
  19517. </doc>
  19518. </method>
  19519. <method name="setDigest"
  19520. abstract="false" native="false" synchronized="false"
  19521. static="false" final="false" visibility="public"
  19522. deprecated="not deprecated">
  19523. <param name="hex" type="java.lang.String"/>
  19524. <doc>
  19525. <![CDATA[Sets the digest value from a hex string.]]>
  19526. </doc>
  19527. </method>
  19528. <field name="MD5_LEN" type="int"
  19529. transient="false" volatile="false"
  19530. static="true" final="true" visibility="public"
  19531. deprecated="not deprecated">
  19532. </field>
  19533. <doc>
  19534. <![CDATA[A Writable for MD5 hash values.]]>
  19535. </doc>
  19536. </class>
  19537. <!-- end class org.apache.hadoop.io.MD5Hash -->
  19538. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  19539. <class name="MultipleIOException" extends="java.io.IOException"
  19540. abstract="false"
  19541. static="false" final="false" visibility="public"
  19542. deprecated="not deprecated">
  19543. <method name="getExceptions" return="java.util.List"
  19544. abstract="false" native="false" synchronized="false"
  19545. static="false" final="false" visibility="public"
  19546. deprecated="not deprecated">
  19547. <doc>
  19548. <![CDATA[@return the underlying exceptions]]>
  19549. </doc>
  19550. </method>
  19551. <method name="createIOException" return="java.io.IOException"
  19552. abstract="false" native="false" synchronized="false"
  19553. static="true" final="false" visibility="public"
  19554. deprecated="not deprecated">
  19555. <param name="exceptions" type="java.util.List"/>
  19556. <doc>
  19557. <![CDATA[A convenient method to create an {@link IOException}.]]>
  19558. </doc>
  19559. </method>
  19560. <doc>
  19561. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  19562. </doc>
  19563. </class>
  19564. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  19565. <!-- start class org.apache.hadoop.io.NullWritable -->
  19566. <class name="NullWritable" extends="java.lang.Object"
  19567. abstract="false"
  19568. static="false" final="false" visibility="public"
  19569. deprecated="not deprecated">
  19570. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19571. <method name="get" return="org.apache.hadoop.io.NullWritable"
  19572. abstract="false" native="false" synchronized="false"
  19573. static="true" final="false" visibility="public"
  19574. deprecated="not deprecated">
  19575. <doc>
  19576. <![CDATA[Returns the single instance of this class.]]>
  19577. </doc>
  19578. </method>
  19579. <method name="toString" return="java.lang.String"
  19580. abstract="false" native="false" synchronized="false"
  19581. static="false" final="false" visibility="public"
  19582. deprecated="not deprecated">
  19583. </method>
  19584. <method name="hashCode" return="int"
  19585. abstract="false" native="false" synchronized="false"
  19586. static="false" final="false" visibility="public"
  19587. deprecated="not deprecated">
  19588. </method>
  19589. <method name="compareTo" return="int"
  19590. abstract="false" native="false" synchronized="false"
  19591. static="false" final="false" visibility="public"
  19592. deprecated="not deprecated">
  19593. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  19594. </method>
  19595. <method name="equals" return="boolean"
  19596. abstract="false" native="false" synchronized="false"
  19597. static="false" final="false" visibility="public"
  19598. deprecated="not deprecated">
  19599. <param name="other" type="java.lang.Object"/>
  19600. </method>
  19601. <method name="readFields"
  19602. abstract="false" native="false" synchronized="false"
  19603. static="false" final="false" visibility="public"
  19604. deprecated="not deprecated">
  19605. <param name="in" type="java.io.DataInput"/>
  19606. <exception name="IOException" type="java.io.IOException"/>
  19607. </method>
  19608. <method name="write"
  19609. abstract="false" native="false" synchronized="false"
  19610. static="false" final="false" visibility="public"
  19611. deprecated="not deprecated">
  19612. <param name="out" type="java.io.DataOutput"/>
  19613. <exception name="IOException" type="java.io.IOException"/>
  19614. </method>
  19615. <doc>
  19616. <![CDATA[Singleton Writable with no data.]]>
  19617. </doc>
  19618. </class>
  19619. <!-- end class org.apache.hadoop.io.NullWritable -->
  19620. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  19621. <class name="ObjectWritable" extends="java.lang.Object"
  19622. abstract="false"
  19623. static="false" final="false" visibility="public"
  19624. deprecated="not deprecated">
  19625. <implements name="org.apache.hadoop.io.Writable"/>
  19626. <implements name="org.apache.hadoop.conf.Configurable"/>
  19627. <constructor name="ObjectWritable"
  19628. static="false" final="false" visibility="public"
  19629. deprecated="not deprecated">
  19630. </constructor>
  19631. <constructor name="ObjectWritable" type="java.lang.Object"
  19632. static="false" final="false" visibility="public"
  19633. deprecated="not deprecated">
  19634. </constructor>
  19635. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  19636. static="false" final="false" visibility="public"
  19637. deprecated="not deprecated">
  19638. </constructor>
  19639. <method name="get" return="java.lang.Object"
  19640. abstract="false" native="false" synchronized="false"
  19641. static="false" final="false" visibility="public"
  19642. deprecated="not deprecated">
  19643. <doc>
  19644. <![CDATA[Return the instance, or null if none.]]>
  19645. </doc>
  19646. </method>
  19647. <method name="getDeclaredClass" return="java.lang.Class"
  19648. abstract="false" native="false" synchronized="false"
  19649. static="false" final="false" visibility="public"
  19650. deprecated="not deprecated">
  19651. <doc>
  19652. <![CDATA[Return the class this is meant to be.]]>
  19653. </doc>
  19654. </method>
  19655. <method name="set"
  19656. abstract="false" native="false" synchronized="false"
  19657. static="false" final="false" visibility="public"
  19658. deprecated="not deprecated">
  19659. <param name="instance" type="java.lang.Object"/>
  19660. <doc>
  19661. <![CDATA[Reset the instance.]]>
  19662. </doc>
  19663. </method>
  19664. <method name="toString" return="java.lang.String"
  19665. abstract="false" native="false" synchronized="false"
  19666. static="false" final="false" visibility="public"
  19667. deprecated="not deprecated">
  19668. </method>
  19669. <method name="readFields"
  19670. abstract="false" native="false" synchronized="false"
  19671. static="false" final="false" visibility="public"
  19672. deprecated="not deprecated">
  19673. <param name="in" type="java.io.DataInput"/>
  19674. <exception name="IOException" type="java.io.IOException"/>
  19675. </method>
  19676. <method name="write"
  19677. abstract="false" native="false" synchronized="false"
  19678. static="false" final="false" visibility="public"
  19679. deprecated="not deprecated">
  19680. <param name="out" type="java.io.DataOutput"/>
  19681. <exception name="IOException" type="java.io.IOException"/>
  19682. </method>
  19683. <method name="writeObject"
  19684. abstract="false" native="false" synchronized="false"
  19685. static="true" final="false" visibility="public"
  19686. deprecated="not deprecated">
  19687. <param name="out" type="java.io.DataOutput"/>
  19688. <param name="instance" type="java.lang.Object"/>
  19689. <param name="declaredClass" type="java.lang.Class"/>
  19690. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19691. <exception name="IOException" type="java.io.IOException"/>
  19692. <doc>
  19693. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  19694. the preceding.]]>
  19695. </doc>
  19696. </method>
  19697. <method name="writeObject"
  19698. abstract="false" native="false" synchronized="false"
  19699. static="true" final="false" visibility="public"
  19700. deprecated="not deprecated">
  19701. <param name="out" type="java.io.DataOutput"/>
  19702. <param name="instance" type="java.lang.Object"/>
  19703. <param name="declaredClass" type="java.lang.Class"/>
  19704. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19705. <param name="allowCompactArrays" type="boolean"/>
  19706. <exception name="IOException" type="java.io.IOException"/>
  19707. <doc>
  19708. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  19709. the preceding.
  19710. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  19711. usages. Set false for inter-cluster, File, and other persisted output
  19712. usages, to preserve the ability to interchange files with other clusters
  19713. that may not be running the same version of software. Sometime in ~2013
  19714. we can consider removing this parameter and always using the compact format.]]>
  19715. </doc>
  19716. </method>
  19717. <method name="readObject" return="java.lang.Object"
  19718. abstract="false" native="false" synchronized="false"
  19719. static="true" final="false" visibility="public"
  19720. deprecated="not deprecated">
  19721. <param name="in" type="java.io.DataInput"/>
  19722. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19723. <exception name="IOException" type="java.io.IOException"/>
  19724. <doc>
  19725. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  19726. the preceding.]]>
  19727. </doc>
  19728. </method>
  19729. <method name="readObject" return="java.lang.Object"
  19730. abstract="false" native="false" synchronized="false"
  19731. static="true" final="false" visibility="public"
  19732. deprecated="not deprecated">
  19733. <param name="in" type="java.io.DataInput"/>
  19734. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  19735. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19736. <exception name="IOException" type="java.io.IOException"/>
  19737. <doc>
  19738. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  19739. the preceding.]]>
  19740. </doc>
  19741. </method>
  19742. <method name="loadClass" return="java.lang.Class"
  19743. abstract="false" native="false" synchronized="false"
  19744. static="true" final="false" visibility="public"
  19745. deprecated="not deprecated">
  19746. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19747. <param name="className" type="java.lang.String"/>
  19748. <doc>
  19749. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  19750. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  19751. try load it directly.]]>
  19752. </doc>
  19753. </method>
  19754. <method name="setConf"
  19755. abstract="false" native="false" synchronized="false"
  19756. static="false" final="false" visibility="public"
  19757. deprecated="not deprecated">
  19758. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19759. </method>
  19760. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  19761. abstract="false" native="false" synchronized="false"
  19762. static="false" final="false" visibility="public"
  19763. deprecated="not deprecated">
  19764. </method>
  19765. <doc>
  19766. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  19767. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  19768. </doc>
  19769. </class>
  19770. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  19771. <!-- start interface org.apache.hadoop.io.RawComparator -->
  19772. <interface name="RawComparator" abstract="true"
  19773. static="false" final="false" visibility="public"
  19774. deprecated="not deprecated">
  19775. <implements name="java.util.Comparator"/>
  19776. <method name="compare" return="int"
  19777. abstract="false" native="false" synchronized="false"
  19778. static="false" final="false" visibility="public"
  19779. deprecated="not deprecated">
  19780. <param name="b1" type="byte[]"/>
  19781. <param name="s1" type="int"/>
  19782. <param name="l1" type="int"/>
  19783. <param name="b2" type="byte[]"/>
  19784. <param name="s2" type="int"/>
  19785. <param name="l2" type="int"/>
  19786. <doc>
  19787. <![CDATA[Compare two objects in binary.
  19788. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  19789. @param b1 The first byte array.
  19790. @param s1 The position index in b1. The object under comparison's starting index.
  19791. @param l1 The length of the object in b1.
  19792. @param b2 The second byte array.
  19793. @param s2 The position index in b2. The object under comparison's starting index.
  19794. @param l2 The length of the object under comparison in b2.
  19795. @return An integer result of the comparison.]]>
  19796. </doc>
  19797. </method>
  19798. <doc>
  19799. <![CDATA[<p>
  19800. A {@link Comparator} that operates directly on byte representations of
  19801. objects.
  19802. </p>
  19803. @param <T>
  19804. @see DeserializerComparator]]>
  19805. </doc>
  19806. </interface>
  19807. <!-- end interface org.apache.hadoop.io.RawComparator -->
  19808. <!-- start class org.apache.hadoop.io.SequenceFile -->
  19809. <class name="SequenceFile" extends="java.lang.Object"
  19810. abstract="false"
  19811. static="false" final="false" visibility="public"
  19812. deprecated="not deprecated">
  19813. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  19814. abstract="false" native="false" synchronized="false"
  19815. static="true" final="false" visibility="public"
  19816. deprecated="not deprecated">
  19817. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  19818. <doc>
  19819. <![CDATA[Get the compression type for the reduce outputs
  19820. @param job the job config to look in
  19821. @return the kind of compression to use]]>
  19822. </doc>
  19823. </method>
  19824. <method name="setDefaultCompressionType"
  19825. abstract="false" native="false" synchronized="false"
  19826. static="true" final="false" visibility="public"
  19827. deprecated="not deprecated">
  19828. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  19829. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19830. <doc>
  19831. <![CDATA[Set the default compression type for sequence files.
  19832. @param job the configuration to modify
  19833. @param val the new compression type (none, block, record)]]>
  19834. </doc>
  19835. </method>
  19836. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19837. abstract="false" native="false" synchronized="false"
  19838. static="true" final="false" visibility="public"
  19839. deprecated="not deprecated">
  19840. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19841. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  19842. <exception name="IOException" type="java.io.IOException"/>
  19843. <doc>
  19844. <![CDATA[Create a new Writer with the given options.
  19845. @param conf the configuration to use
  19846. @param opts the options to create the file with
  19847. @return a new Writer
  19848. @throws IOException]]>
  19849. </doc>
  19850. </method>
  19851. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19852. abstract="false" native="false" synchronized="false"
  19853. static="true" final="false" visibility="public"
  19854. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19855. instead.">
  19856. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19857. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19858. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19859. <param name="keyClass" type="java.lang.Class"/>
  19860. <param name="valClass" type="java.lang.Class"/>
  19861. <exception name="IOException" type="java.io.IOException"/>
  19862. <doc>
  19863. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19864. @param fs The configured filesystem.
  19865. @param conf The configuration.
  19866. @param name The name of the file.
  19867. @param keyClass The 'key' type.
  19868. @param valClass The 'value' type.
  19869. @return Returns the handle to the constructed SequenceFile Writer.
  19870. @throws IOException
  19871. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19872. instead.]]>
  19873. </doc>
  19874. </method>
  19875. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19876. abstract="false" native="false" synchronized="false"
  19877. static="true" final="false" visibility="public"
  19878. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19879. instead.">
  19880. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19881. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19882. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19883. <param name="keyClass" type="java.lang.Class"/>
  19884. <param name="valClass" type="java.lang.Class"/>
  19885. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19886. <exception name="IOException" type="java.io.IOException"/>
  19887. <doc>
  19888. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19889. @param fs The configured filesystem.
  19890. @param conf The configuration.
  19891. @param name The name of the file.
  19892. @param keyClass The 'key' type.
  19893. @param valClass The 'value' type.
  19894. @param compressionType The compression type.
  19895. @return Returns the handle to the constructed SequenceFile Writer.
  19896. @throws IOException
  19897. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19898. instead.]]>
  19899. </doc>
  19900. </method>
  19901. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19902. abstract="false" native="false" synchronized="false"
  19903. static="true" final="false" visibility="public"
  19904. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19905. instead.">
  19906. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19907. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19908. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19909. <param name="keyClass" type="java.lang.Class"/>
  19910. <param name="valClass" type="java.lang.Class"/>
  19911. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19912. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19913. <exception name="IOException" type="java.io.IOException"/>
  19914. <doc>
  19915. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19916. @param fs The configured filesystem.
  19917. @param conf The configuration.
  19918. @param name The name of the file.
  19919. @param keyClass The 'key' type.
  19920. @param valClass The 'value' type.
  19921. @param compressionType The compression type.
  19922. @param progress The Progressable object to track progress.
  19923. @return Returns the handle to the constructed SequenceFile Writer.
  19924. @throws IOException
  19925. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19926. instead.]]>
  19927. </doc>
  19928. </method>
  19929. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19930. abstract="false" native="false" synchronized="false"
  19931. static="true" final="false" visibility="public"
  19932. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19933. instead.">
  19934. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19935. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19936. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19937. <param name="keyClass" type="java.lang.Class"/>
  19938. <param name="valClass" type="java.lang.Class"/>
  19939. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19940. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19941. <exception name="IOException" type="java.io.IOException"/>
  19942. <doc>
  19943. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19944. @param fs The configured filesystem.
  19945. @param conf The configuration.
  19946. @param name The name of the file.
  19947. @param keyClass The 'key' type.
  19948. @param valClass The 'value' type.
  19949. @param compressionType The compression type.
  19950. @param codec The compression codec.
  19951. @return Returns the handle to the constructed SequenceFile Writer.
  19952. @throws IOException
  19953. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19954. instead.]]>
  19955. </doc>
  19956. </method>
  19957. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19958. abstract="false" native="false" synchronized="false"
  19959. static="true" final="false" visibility="public"
  19960. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19961. instead.">
  19962. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19963. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19964. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19965. <param name="keyClass" type="java.lang.Class"/>
  19966. <param name="valClass" type="java.lang.Class"/>
  19967. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19968. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19969. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19970. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  19971. <exception name="IOException" type="java.io.IOException"/>
  19972. <doc>
  19973. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19974. @param fs The configured filesystem.
  19975. @param conf The configuration.
  19976. @param name The name of the file.
  19977. @param keyClass The 'key' type.
  19978. @param valClass The 'value' type.
  19979. @param compressionType The compression type.
  19980. @param codec The compression codec.
  19981. @param progress The Progressable object to track progress.
  19982. @param metadata The metadata of the file.
  19983. @return Returns the handle to the constructed SequenceFile Writer.
  19984. @throws IOException
  19985. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  19986. instead.]]>
  19987. </doc>
  19988. </method>
  19989. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19990. abstract="false" native="false" synchronized="false"
  19991. static="true" final="false" visibility="public"
  19992. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19993. instead.">
  19994. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19995. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19996. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19997. <param name="keyClass" type="java.lang.Class"/>
  19998. <param name="valClass" type="java.lang.Class"/>
  19999. <param name="bufferSize" type="int"/>
  20000. <param name="replication" type="short"/>
  20001. <param name="blockSize" type="long"/>
  20002. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20003. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20004. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  20005. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  20006. <exception name="IOException" type="java.io.IOException"/>
  20007. <doc>
  20008. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20009. @param fs The configured filesystem.
  20010. @param conf The configuration.
  20011. @param name The name of the file.
  20012. @param keyClass The 'key' type.
  20013. @param valClass The 'value' type.
  20014. @param bufferSize buffer size for the underlaying outputstream.
  20015. @param replication replication factor for the file.
  20016. @param blockSize block size for the file.
  20017. @param compressionType The compression type.
  20018. @param codec The compression codec.
  20019. @param progress The Progressable object to track progress.
  20020. @param metadata The metadata of the file.
  20021. @return Returns the handle to the constructed SequenceFile Writer.
  20022. @throws IOException
  20023. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20024. instead.]]>
  20025. </doc>
  20026. </method>
  20027. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20028. abstract="false" native="false" synchronized="false"
  20029. static="true" final="false" visibility="public"
  20030. deprecated="not deprecated">
  20031. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20032. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20033. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20034. <param name="keyClass" type="java.lang.Class"/>
  20035. <param name="valClass" type="java.lang.Class"/>
  20036. <param name="bufferSize" type="int"/>
  20037. <param name="replication" type="short"/>
  20038. <param name="blockSize" type="long"/>
  20039. <param name="createParent" type="boolean"/>
  20040. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20041. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20042. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  20043. <exception name="IOException" type="java.io.IOException"/>
  20044. <doc>
  20045. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20046. @param fs The configured filesystem.
  20047. @param conf The configuration.
  20048. @param name The name of the file.
  20049. @param keyClass The 'key' type.
  20050. @param valClass The 'value' type.
  20051. @param bufferSize buffer size for the underlaying outputstream.
  20052. @param replication replication factor for the file.
  20053. @param blockSize block size for the file.
  20054. @param createParent create parent directory if non-existent
  20055. @param compressionType The compression type.
  20056. @param codec The compression codec.
  20057. @param metadata The metadata of the file.
  20058. @return Returns the handle to the constructed SequenceFile Writer.
  20059. @throws IOException]]>
  20060. </doc>
  20061. </method>
  20062. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20063. abstract="false" native="false" synchronized="false"
  20064. static="true" final="false" visibility="public"
  20065. deprecated="not deprecated">
  20066. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  20067. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20068. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20069. <param name="keyClass" type="java.lang.Class"/>
  20070. <param name="valClass" type="java.lang.Class"/>
  20071. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20072. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20073. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  20074. <param name="createFlag" type="java.util.EnumSet"/>
  20075. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  20076. <exception name="IOException" type="java.io.IOException"/>
  20077. <doc>
  20078. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20079. @param fc The context for the specified file.
  20080. @param conf The configuration.
  20081. @param name The name of the file.
  20082. @param keyClass The 'key' type.
  20083. @param valClass The 'value' type.
  20084. @param compressionType The compression type.
  20085. @param codec The compression codec.
  20086. @param metadata The metadata of the file.
  20087. @param createFlag gives the semantics of create: overwrite, append etc.
  20088. @param opts file creation options; see {@link CreateOpts}.
  20089. @return Returns the handle to the constructed SequenceFile Writer.
  20090. @throws IOException]]>
  20091. </doc>
  20092. </method>
  20093. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20094. abstract="false" native="false" synchronized="false"
  20095. static="true" final="false" visibility="public"
  20096. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20097. instead.">
  20098. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20099. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20100. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20101. <param name="keyClass" type="java.lang.Class"/>
  20102. <param name="valClass" type="java.lang.Class"/>
  20103. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20104. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20105. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  20106. <exception name="IOException" type="java.io.IOException"/>
  20107. <doc>
  20108. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20109. @param fs The configured filesystem.
  20110. @param conf The configuration.
  20111. @param name The name of the file.
  20112. @param keyClass The 'key' type.
  20113. @param valClass The 'value' type.
  20114. @param compressionType The compression type.
  20115. @param codec The compression codec.
  20116. @param progress The Progressable object to track progress.
  20117. @return Returns the handle to the constructed SequenceFile Writer.
  20118. @throws IOException
  20119. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20120. instead.]]>
  20121. </doc>
  20122. </method>
  20123. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20124. abstract="false" native="false" synchronized="false"
  20125. static="true" final="false" visibility="public"
  20126. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20127. instead.">
  20128. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20129. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  20130. <param name="keyClass" type="java.lang.Class"/>
  20131. <param name="valClass" type="java.lang.Class"/>
  20132. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20133. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20134. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  20135. <exception name="IOException" type="java.io.IOException"/>
  20136. <doc>
  20137. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  20138. @param conf The configuration.
  20139. @param out The stream on top which the writer is to be constructed.
  20140. @param keyClass The 'key' type.
  20141. @param valClass The 'value' type.
  20142. @param compressionType The compression type.
  20143. @param codec The compression codec.
  20144. @param metadata The metadata of the file.
  20145. @return Returns the handle to the constructed SequenceFile Writer.
  20146. @throws IOException
  20147. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20148. instead.]]>
  20149. </doc>
  20150. </method>
  20151. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20152. abstract="false" native="false" synchronized="false"
  20153. static="true" final="false" visibility="public"
  20154. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20155. instead.">
  20156. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20157. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  20158. <param name="keyClass" type="java.lang.Class"/>
  20159. <param name="valClass" type="java.lang.Class"/>
  20160. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20161. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20162. <exception name="IOException" type="java.io.IOException"/>
  20163. <doc>
  20164. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  20165. @param conf The configuration.
  20166. @param out The stream on top which the writer is to be constructed.
  20167. @param keyClass The 'key' type.
  20168. @param valClass The 'value' type.
  20169. @param compressionType The compression type.
  20170. @param codec The compression codec.
  20171. @return Returns the handle to the constructed SequenceFile Writer.
  20172. @throws IOException
  20173. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20174. instead.]]>
  20175. </doc>
  20176. </method>
  20177. <field name="SYNC_INTERVAL" type="int"
  20178. transient="false" volatile="false"
  20179. static="true" final="true" visibility="public"
  20180. deprecated="not deprecated">
  20181. <doc>
  20182. <![CDATA[The number of bytes between sync points.]]>
  20183. </doc>
  20184. </field>
  20185. <doc>
  20186. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  20187. pairs.
  20188. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  20189. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  20190. reading and sorting respectively.</p>
  20191. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  20192. {@link CompressionType} used to compress key/value pairs:
  20193. <ol>
  20194. <li>
  20195. <code>Writer</code> : Uncompressed records.
  20196. </li>
  20197. <li>
  20198. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  20199. values.
  20200. </li>
  20201. <li>
  20202. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  20203. values are collected in 'blocks'
  20204. separately and compressed. The size of
  20205. the 'block' is configurable.
  20206. </ol>
  20207. <p>The actual compression algorithm used to compress key and/or values can be
  20208. specified by using the appropriate {@link CompressionCodec}.</p>
  20209. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  20210. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  20211. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  20212. above <code>SequenceFile</code> formats.</p>
  20213. <h4 id="Formats">SequenceFile Formats</h4>
  20214. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  20215. depending on the <code>CompressionType</code> specified. All of them share a
  20216. <a href="#Header">common header</a> described below.
  20217. <h5 id="Header">SequenceFile Header</h5>
  20218. <ul>
  20219. <li>
  20220. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  20221. version number (e.g. SEQ4 or SEQ6)
  20222. </li>
  20223. <li>
  20224. keyClassName -key class
  20225. </li>
  20226. <li>
  20227. valueClassName - value class
  20228. </li>
  20229. <li>
  20230. compression - A boolean which specifies if compression is turned on for
  20231. keys/values in this file.
  20232. </li>
  20233. <li>
  20234. blockCompression - A boolean which specifies if block-compression is
  20235. turned on for keys/values in this file.
  20236. </li>
  20237. <li>
  20238. compression codec - <code>CompressionCodec</code> class which is used for
  20239. compression of keys and/or values (if compression is
  20240. enabled).
  20241. </li>
  20242. <li>
  20243. metadata - {@link Metadata} for this file.
  20244. </li>
  20245. <li>
  20246. sync - A sync marker to denote end of the header.
  20247. </li>
  20248. </ul>
  20249. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  20250. <ul>
  20251. <li>
  20252. <a href="#Header">Header</a>
  20253. </li>
  20254. <li>
  20255. Record
  20256. <ul>
  20257. <li>Record length</li>
  20258. <li>Key length</li>
  20259. <li>Key</li>
  20260. <li>Value</li>
  20261. </ul>
  20262. </li>
  20263. <li>
  20264. A sync-marker every few <code>100</code> bytes or so.
  20265. </li>
  20266. </ul>
  20267. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  20268. <ul>
  20269. <li>
  20270. <a href="#Header">Header</a>
  20271. </li>
  20272. <li>
  20273. Record
  20274. <ul>
  20275. <li>Record length</li>
  20276. <li>Key length</li>
  20277. <li>Key</li>
  20278. <li><i>Compressed</i> Value</li>
  20279. </ul>
  20280. </li>
  20281. <li>
  20282. A sync-marker every few <code>100</code> bytes or so.
  20283. </li>
  20284. </ul>
  20285. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  20286. <ul>
  20287. <li>
  20288. <a href="#Header">Header</a>
  20289. </li>
  20290. <li>
  20291. Record <i>Block</i>
  20292. <ul>
  20293. <li>Uncompressed number of records in the block</li>
  20294. <li>Compressed key-lengths block-size</li>
  20295. <li>Compressed key-lengths block</li>
  20296. <li>Compressed keys block-size</li>
  20297. <li>Compressed keys block</li>
  20298. <li>Compressed value-lengths block-size</li>
  20299. <li>Compressed value-lengths block</li>
  20300. <li>Compressed values block-size</li>
  20301. <li>Compressed values block</li>
  20302. </ul>
  20303. </li>
  20304. <li>
  20305. A sync-marker every block.
  20306. </li>
  20307. </ul>
  20308. <p>The compressed blocks of key lengths and value lengths consist of the
  20309. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  20310. format.</p>
  20311. @see CompressionCodec]]>
  20312. </doc>
  20313. </class>
  20314. <!-- end class org.apache.hadoop.io.SequenceFile -->
  20315. <!-- start class org.apache.hadoop.io.SetFile -->
  20316. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  20317. abstract="false"
  20318. static="false" final="false" visibility="public"
  20319. deprecated="not deprecated">
  20320. <constructor name="SetFile"
  20321. static="false" final="false" visibility="protected"
  20322. deprecated="not deprecated">
  20323. </constructor>
  20324. <doc>
  20325. <![CDATA[A file-based set of keys.]]>
  20326. </doc>
  20327. </class>
  20328. <!-- end class org.apache.hadoop.io.SetFile -->
  20329. <!-- start class org.apache.hadoop.io.ShortWritable -->
  20330. <class name="ShortWritable" extends="java.lang.Object"
  20331. abstract="false"
  20332. static="false" final="false" visibility="public"
  20333. deprecated="not deprecated">
  20334. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20335. <constructor name="ShortWritable"
  20336. static="false" final="false" visibility="public"
  20337. deprecated="not deprecated">
  20338. </constructor>
  20339. <constructor name="ShortWritable" type="short"
  20340. static="false" final="false" visibility="public"
  20341. deprecated="not deprecated">
  20342. </constructor>
  20343. <method name="set"
  20344. abstract="false" native="false" synchronized="false"
  20345. static="false" final="false" visibility="public"
  20346. deprecated="not deprecated">
  20347. <param name="value" type="short"/>
  20348. <doc>
  20349. <![CDATA[Set the value of this ShortWritable.]]>
  20350. </doc>
  20351. </method>
  20352. <method name="get" return="short"
  20353. abstract="false" native="false" synchronized="false"
  20354. static="false" final="false" visibility="public"
  20355. deprecated="not deprecated">
  20356. <doc>
  20357. <![CDATA[Return the value of this ShortWritable.]]>
  20358. </doc>
  20359. </method>
  20360. <method name="readFields"
  20361. abstract="false" native="false" synchronized="false"
  20362. static="false" final="false" visibility="public"
  20363. deprecated="not deprecated">
  20364. <param name="in" type="java.io.DataInput"/>
  20365. <exception name="IOException" type="java.io.IOException"/>
  20366. <doc>
  20367. <![CDATA[read the short value]]>
  20368. </doc>
  20369. </method>
  20370. <method name="write"
  20371. abstract="false" native="false" synchronized="false"
  20372. static="false" final="false" visibility="public"
  20373. deprecated="not deprecated">
  20374. <param name="out" type="java.io.DataOutput"/>
  20375. <exception name="IOException" type="java.io.IOException"/>
  20376. <doc>
  20377. <![CDATA[write short value]]>
  20378. </doc>
  20379. </method>
  20380. <method name="equals" return="boolean"
  20381. abstract="false" native="false" synchronized="false"
  20382. static="false" final="false" visibility="public"
  20383. deprecated="not deprecated">
  20384. <param name="o" type="java.lang.Object"/>
  20385. <doc>
  20386. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  20387. </doc>
  20388. </method>
  20389. <method name="hashCode" return="int"
  20390. abstract="false" native="false" synchronized="false"
  20391. static="false" final="false" visibility="public"
  20392. deprecated="not deprecated">
  20393. <doc>
  20394. <![CDATA[hash code]]>
  20395. </doc>
  20396. </method>
  20397. <method name="compareTo" return="int"
  20398. abstract="false" native="false" synchronized="false"
  20399. static="false" final="false" visibility="public"
  20400. deprecated="not deprecated">
  20401. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  20402. <doc>
  20403. <![CDATA[Compares two ShortWritable.]]>
  20404. </doc>
  20405. </method>
  20406. <method name="toString" return="java.lang.String"
  20407. abstract="false" native="false" synchronized="false"
  20408. static="false" final="false" visibility="public"
  20409. deprecated="not deprecated">
  20410. <doc>
  20411. <![CDATA[Short values in string format]]>
  20412. </doc>
  20413. </method>
  20414. <doc>
  20415. <![CDATA[A WritableComparable for shorts.]]>
  20416. </doc>
  20417. </class>
  20418. <!-- end class org.apache.hadoop.io.ShortWritable -->
  20419. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  20420. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  20421. abstract="false"
  20422. static="false" final="false" visibility="public"
  20423. deprecated="not deprecated">
  20424. <implements name="java.util.SortedMap"/>
  20425. <constructor name="SortedMapWritable"
  20426. static="false" final="false" visibility="public"
  20427. deprecated="not deprecated">
  20428. <doc>
  20429. <![CDATA[default constructor.]]>
  20430. </doc>
  20431. </constructor>
  20432. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  20433. static="false" final="false" visibility="public"
  20434. deprecated="not deprecated">
  20435. <doc>
  20436. <![CDATA[Copy constructor.
  20437. @param other the map to copy from]]>
  20438. </doc>
  20439. </constructor>
  20440. <method name="comparator" return="java.util.Comparator"
  20441. abstract="false" native="false" synchronized="false"
  20442. static="false" final="false" visibility="public"
  20443. deprecated="not deprecated">
  20444. </method>
  20445. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  20446. abstract="false" native="false" synchronized="false"
  20447. static="false" final="false" visibility="public"
  20448. deprecated="not deprecated">
  20449. </method>
  20450. <method name="headMap" return="java.util.SortedMap"
  20451. abstract="false" native="false" synchronized="false"
  20452. static="false" final="false" visibility="public"
  20453. deprecated="not deprecated">
  20454. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  20455. </method>
  20456. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  20457. abstract="false" native="false" synchronized="false"
  20458. static="false" final="false" visibility="public"
  20459. deprecated="not deprecated">
  20460. </method>
  20461. <method name="subMap" return="java.util.SortedMap"
  20462. abstract="false" native="false" synchronized="false"
  20463. static="false" final="false" visibility="public"
  20464. deprecated="not deprecated">
  20465. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  20466. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  20467. </method>
  20468. <method name="tailMap" return="java.util.SortedMap"
  20469. abstract="false" native="false" synchronized="false"
  20470. static="false" final="false" visibility="public"
  20471. deprecated="not deprecated">
  20472. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  20473. </method>
  20474. <method name="clear"
  20475. abstract="false" native="false" synchronized="false"
  20476. static="false" final="false" visibility="public"
  20477. deprecated="not deprecated">
  20478. </method>
  20479. <method name="containsKey" return="boolean"
  20480. abstract="false" native="false" synchronized="false"
  20481. static="false" final="false" visibility="public"
  20482. deprecated="not deprecated">
  20483. <param name="key" type="java.lang.Object"/>
  20484. </method>
  20485. <method name="containsValue" return="boolean"
  20486. abstract="false" native="false" synchronized="false"
  20487. static="false" final="false" visibility="public"
  20488. deprecated="not deprecated">
  20489. <param name="value" type="java.lang.Object"/>
  20490. </method>
  20491. <method name="entrySet" return="java.util.Set"
  20492. abstract="false" native="false" synchronized="false"
  20493. static="false" final="false" visibility="public"
  20494. deprecated="not deprecated">
  20495. </method>
  20496. <method name="get" return="org.apache.hadoop.io.Writable"
  20497. abstract="false" native="false" synchronized="false"
  20498. static="false" final="false" visibility="public"
  20499. deprecated="not deprecated">
  20500. <param name="key" type="java.lang.Object"/>
  20501. </method>
  20502. <method name="isEmpty" return="boolean"
  20503. abstract="false" native="false" synchronized="false"
  20504. static="false" final="false" visibility="public"
  20505. deprecated="not deprecated">
  20506. </method>
  20507. <method name="keySet" return="java.util.Set"
  20508. abstract="false" native="false" synchronized="false"
  20509. static="false" final="false" visibility="public"
  20510. deprecated="not deprecated">
  20511. </method>
  20512. <method name="put" return="org.apache.hadoop.io.Writable"
  20513. abstract="false" native="false" synchronized="false"
  20514. static="false" final="false" visibility="public"
  20515. deprecated="not deprecated">
  20516. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20517. <param name="value" type="org.apache.hadoop.io.Writable"/>
  20518. </method>
  20519. <method name="putAll"
  20520. abstract="false" native="false" synchronized="false"
  20521. static="false" final="false" visibility="public"
  20522. deprecated="not deprecated">
  20523. <param name="t" type="java.util.Map"/>
  20524. </method>
  20525. <method name="remove" return="org.apache.hadoop.io.Writable"
  20526. abstract="false" native="false" synchronized="false"
  20527. static="false" final="false" visibility="public"
  20528. deprecated="not deprecated">
  20529. <param name="key" type="java.lang.Object"/>
  20530. </method>
  20531. <method name="size" return="int"
  20532. abstract="false" native="false" synchronized="false"
  20533. static="false" final="false" visibility="public"
  20534. deprecated="not deprecated">
  20535. </method>
  20536. <method name="values" return="java.util.Collection"
  20537. abstract="false" native="false" synchronized="false"
  20538. static="false" final="false" visibility="public"
  20539. deprecated="not deprecated">
  20540. </method>
  20541. <method name="readFields"
  20542. abstract="false" native="false" synchronized="false"
  20543. static="false" final="false" visibility="public"
  20544. deprecated="not deprecated">
  20545. <param name="in" type="java.io.DataInput"/>
  20546. <exception name="IOException" type="java.io.IOException"/>
  20547. </method>
  20548. <method name="write"
  20549. abstract="false" native="false" synchronized="false"
  20550. static="false" final="false" visibility="public"
  20551. deprecated="not deprecated">
  20552. <param name="out" type="java.io.DataOutput"/>
  20553. <exception name="IOException" type="java.io.IOException"/>
  20554. </method>
  20555. <method name="equals" return="boolean"
  20556. abstract="false" native="false" synchronized="false"
  20557. static="false" final="false" visibility="public"
  20558. deprecated="not deprecated">
  20559. <param name="obj" type="java.lang.Object"/>
  20560. </method>
  20561. <method name="hashCode" return="int"
  20562. abstract="false" native="false" synchronized="false"
  20563. static="false" final="false" visibility="public"
  20564. deprecated="not deprecated">
  20565. </method>
  20566. <doc>
  20567. <![CDATA[A Writable SortedMap.]]>
  20568. </doc>
  20569. </class>
  20570. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  20571. <!-- start interface org.apache.hadoop.io.Stringifier -->
  20572. <interface name="Stringifier" abstract="true"
  20573. static="false" final="false" visibility="public"
  20574. deprecated="not deprecated">
  20575. <implements name="java.io.Closeable"/>
  20576. <method name="toString" return="java.lang.String"
  20577. abstract="false" native="false" synchronized="false"
  20578. static="false" final="false" visibility="public"
  20579. deprecated="not deprecated">
  20580. <param name="obj" type="T"/>
  20581. <exception name="IOException" type="java.io.IOException"/>
  20582. <doc>
  20583. <![CDATA[Converts the object to a string representation
  20584. @param obj the object to convert
  20585. @return the string representation of the object
  20586. @throws IOException if the object cannot be converted]]>
  20587. </doc>
  20588. </method>
  20589. <method name="fromString" return="T"
  20590. abstract="false" native="false" synchronized="false"
  20591. static="false" final="false" visibility="public"
  20592. deprecated="not deprecated">
  20593. <param name="str" type="java.lang.String"/>
  20594. <exception name="IOException" type="java.io.IOException"/>
  20595. <doc>
  20596. <![CDATA[Restores the object from its string representation.
  20597. @param str the string representation of the object
  20598. @return restored object
  20599. @throws IOException if the object cannot be restored]]>
  20600. </doc>
  20601. </method>
  20602. <method name="close"
  20603. abstract="false" native="false" synchronized="false"
  20604. static="false" final="false" visibility="public"
  20605. deprecated="not deprecated">
  20606. <exception name="IOException" type="java.io.IOException"/>
  20607. <doc>
  20608. <![CDATA[Closes this object.
  20609. @throws IOException if an I/O error occurs]]>
  20610. </doc>
  20611. </method>
  20612. <doc>
  20613. <![CDATA[Stringifier interface offers two methods to convert an object
  20614. to a string representation and restore the object given its
  20615. string representation.
  20616. @param <T> the class of the objects to stringify]]>
  20617. </doc>
  20618. </interface>
  20619. <!-- end interface org.apache.hadoop.io.Stringifier -->
  20620. <!-- start class org.apache.hadoop.io.Text -->
  20621. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  20622. abstract="false"
  20623. static="false" final="false" visibility="public"
  20624. deprecated="not deprecated">
  20625. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20626. <constructor name="Text"
  20627. static="false" final="false" visibility="public"
  20628. deprecated="not deprecated">
  20629. </constructor>
  20630. <constructor name="Text" type="java.lang.String"
  20631. static="false" final="false" visibility="public"
  20632. deprecated="not deprecated">
  20633. <doc>
  20634. <![CDATA[Construct from a string.]]>
  20635. </doc>
  20636. </constructor>
  20637. <constructor name="Text" type="org.apache.hadoop.io.Text"
  20638. static="false" final="false" visibility="public"
  20639. deprecated="not deprecated">
  20640. <doc>
  20641. <![CDATA[Construct from another text.]]>
  20642. </doc>
  20643. </constructor>
  20644. <constructor name="Text" type="byte[]"
  20645. static="false" final="false" visibility="public"
  20646. deprecated="not deprecated">
  20647. <doc>
  20648. <![CDATA[Construct from a byte array.]]>
  20649. </doc>
  20650. </constructor>
  20651. <method name="copyBytes" return="byte[]"
  20652. abstract="false" native="false" synchronized="false"
  20653. static="false" final="false" visibility="public"
  20654. deprecated="not deprecated">
  20655. <doc>
  20656. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  20657. See {@link #getBytes()} for faster access to the underlying array.]]>
  20658. </doc>
  20659. </method>
  20660. <method name="getBytes" return="byte[]"
  20661. abstract="false" native="false" synchronized="false"
  20662. static="false" final="false" visibility="public"
  20663. deprecated="not deprecated">
  20664. <doc>
  20665. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  20666. valid. Please use {@link #copyBytes()} if you
  20667. need the returned array to be precisely the length of the data.]]>
  20668. </doc>
  20669. </method>
  20670. <method name="getLength" return="int"
  20671. abstract="false" native="false" synchronized="false"
  20672. static="false" final="false" visibility="public"
  20673. deprecated="not deprecated">
  20674. <doc>
  20675. <![CDATA[Returns the number of bytes in the byte array]]>
  20676. </doc>
  20677. </method>
  20678. <method name="charAt" return="int"
  20679. abstract="false" native="false" synchronized="false"
  20680. static="false" final="false" visibility="public"
  20681. deprecated="not deprecated">
  20682. <param name="position" type="int"/>
  20683. <doc>
  20684. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  20685. for the character at <code>position</code>. Note that this
  20686. method avoids using the converter or doing String instantiation
  20687. @return the Unicode scalar value at position or -1
  20688. if the position is invalid or points to a
  20689. trailing byte]]>
  20690. </doc>
  20691. </method>
  20692. <method name="find" return="int"
  20693. abstract="false" native="false" synchronized="false"
  20694. static="false" final="false" visibility="public"
  20695. deprecated="not deprecated">
  20696. <param name="what" type="java.lang.String"/>
  20697. </method>
  20698. <method name="find" return="int"
  20699. abstract="false" native="false" synchronized="false"
  20700. static="false" final="false" visibility="public"
  20701. deprecated="not deprecated">
  20702. <param name="what" type="java.lang.String"/>
  20703. <param name="start" type="int"/>
  20704. <doc>
  20705. <![CDATA[Finds any occurence of <code>what</code> in the backing
  20706. buffer, starting as position <code>start</code>. The starting
  20707. position is measured in bytes and the return value is in
  20708. terms of byte position in the buffer. The backing buffer is
  20709. not converted to a string for this operation.
  20710. @return byte position of the first occurence of the search
  20711. string in the UTF-8 buffer or -1 if not found]]>
  20712. </doc>
  20713. </method>
  20714. <method name="set"
  20715. abstract="false" native="false" synchronized="false"
  20716. static="false" final="false" visibility="public"
  20717. deprecated="not deprecated">
  20718. <param name="string" type="java.lang.String"/>
  20719. <doc>
  20720. <![CDATA[Set to contain the contents of a string.]]>
  20721. </doc>
  20722. </method>
  20723. <method name="set"
  20724. abstract="false" native="false" synchronized="false"
  20725. static="false" final="false" visibility="public"
  20726. deprecated="not deprecated">
  20727. <param name="utf8" type="byte[]"/>
  20728. <doc>
  20729. <![CDATA[Set to a utf8 byte array]]>
  20730. </doc>
  20731. </method>
  20732. <method name="set"
  20733. abstract="false" native="false" synchronized="false"
  20734. static="false" final="false" visibility="public"
  20735. deprecated="not deprecated">
  20736. <param name="other" type="org.apache.hadoop.io.Text"/>
  20737. <doc>
  20738. <![CDATA[copy a text.]]>
  20739. </doc>
  20740. </method>
  20741. <method name="set"
  20742. abstract="false" native="false" synchronized="false"
  20743. static="false" final="false" visibility="public"
  20744. deprecated="not deprecated">
  20745. <param name="utf8" type="byte[]"/>
  20746. <param name="start" type="int"/>
  20747. <param name="len" type="int"/>
  20748. <doc>
  20749. <![CDATA[Set the Text to range of bytes
  20750. @param utf8 the data to copy from
  20751. @param start the first position of the new string
  20752. @param len the number of bytes of the new string]]>
  20753. </doc>
  20754. </method>
  20755. <method name="append"
  20756. abstract="false" native="false" synchronized="false"
  20757. static="false" final="false" visibility="public"
  20758. deprecated="not deprecated">
  20759. <param name="utf8" type="byte[]"/>
  20760. <param name="start" type="int"/>
  20761. <param name="len" type="int"/>
  20762. <doc>
  20763. <![CDATA[Append a range of bytes to the end of the given text
  20764. @param utf8 the data to copy from
  20765. @param start the first position to append from utf8
  20766. @param len the number of bytes to append]]>
  20767. </doc>
  20768. </method>
  20769. <method name="clear"
  20770. abstract="false" native="false" synchronized="false"
  20771. static="false" final="false" visibility="public"
  20772. deprecated="not deprecated">
  20773. <doc>
  20774. <![CDATA[Clear the string to empty.
  20775. <em>Note</em>: For performance reasons, this call does not clear the
  20776. underlying byte array that is retrievable via {@link #getBytes()}.
  20777. In order to free the byte-array memory, call {@link #set(byte[])}
  20778. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  20779. </doc>
  20780. </method>
  20781. <method name="toString" return="java.lang.String"
  20782. abstract="false" native="false" synchronized="false"
  20783. static="false" final="false" visibility="public"
  20784. deprecated="not deprecated">
  20785. <doc>
  20786. <![CDATA[Convert text back to string
  20787. @see java.lang.Object#toString()]]>
  20788. </doc>
  20789. </method>
  20790. <method name="readFields"
  20791. abstract="false" native="false" synchronized="false"
  20792. static="false" final="false" visibility="public"
  20793. deprecated="not deprecated">
  20794. <param name="in" type="java.io.DataInput"/>
  20795. <exception name="IOException" type="java.io.IOException"/>
  20796. <doc>
  20797. <![CDATA[deserialize]]>
  20798. </doc>
  20799. </method>
  20800. <method name="readFields"
  20801. abstract="false" native="false" synchronized="false"
  20802. static="false" final="false" visibility="public"
  20803. deprecated="not deprecated">
  20804. <param name="in" type="java.io.DataInput"/>
  20805. <param name="maxLength" type="int"/>
  20806. <exception name="IOException" type="java.io.IOException"/>
  20807. </method>
  20808. <method name="skip"
  20809. abstract="false" native="false" synchronized="false"
  20810. static="true" final="false" visibility="public"
  20811. deprecated="not deprecated">
  20812. <param name="in" type="java.io.DataInput"/>
  20813. <exception name="IOException" type="java.io.IOException"/>
  20814. <doc>
  20815. <![CDATA[Skips over one Text in the input.]]>
  20816. </doc>
  20817. </method>
  20818. <method name="readWithKnownLength"
  20819. abstract="false" native="false" synchronized="false"
  20820. static="false" final="false" visibility="public"
  20821. deprecated="not deprecated">
  20822. <param name="in" type="java.io.DataInput"/>
  20823. <param name="len" type="int"/>
  20824. <exception name="IOException" type="java.io.IOException"/>
  20825. <doc>
  20826. <![CDATA[Read a Text object whose length is already known.
  20827. This allows creating Text from a stream which uses a different serialization
  20828. format.]]>
  20829. </doc>
  20830. </method>
  20831. <method name="write"
  20832. abstract="false" native="false" synchronized="false"
  20833. static="false" final="false" visibility="public"
  20834. deprecated="not deprecated">
  20835. <param name="out" type="java.io.DataOutput"/>
  20836. <exception name="IOException" type="java.io.IOException"/>
  20837. <doc>
  20838. <![CDATA[serialize
  20839. write this object to out
  20840. length uses zero-compressed encoding
  20841. @see Writable#write(DataOutput)]]>
  20842. </doc>
  20843. </method>
  20844. <method name="write"
  20845. abstract="false" native="false" synchronized="false"
  20846. static="false" final="false" visibility="public"
  20847. deprecated="not deprecated">
  20848. <param name="out" type="java.io.DataOutput"/>
  20849. <param name="maxLength" type="int"/>
  20850. <exception name="IOException" type="java.io.IOException"/>
  20851. </method>
  20852. <method name="equals" return="boolean"
  20853. abstract="false" native="false" synchronized="false"
  20854. static="false" final="false" visibility="public"
  20855. deprecated="not deprecated">
  20856. <param name="o" type="java.lang.Object"/>
  20857. <doc>
  20858. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  20859. </doc>
  20860. </method>
  20861. <method name="hashCode" return="int"
  20862. abstract="false" native="false" synchronized="false"
  20863. static="false" final="false" visibility="public"
  20864. deprecated="not deprecated">
  20865. </method>
  20866. <method name="decode" return="java.lang.String"
  20867. abstract="false" native="false" synchronized="false"
  20868. static="true" final="false" visibility="public"
  20869. deprecated="not deprecated">
  20870. <param name="utf8" type="byte[]"/>
  20871. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20872. <doc>
  20873. <![CDATA[Converts the provided byte array to a String using the
  20874. UTF-8 encoding. If the input is malformed,
  20875. replace by a default value.]]>
  20876. </doc>
  20877. </method>
  20878. <method name="decode" return="java.lang.String"
  20879. abstract="false" native="false" synchronized="false"
  20880. static="true" final="false" visibility="public"
  20881. deprecated="not deprecated">
  20882. <param name="utf8" type="byte[]"/>
  20883. <param name="start" type="int"/>
  20884. <param name="length" type="int"/>
  20885. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20886. </method>
  20887. <method name="decode" return="java.lang.String"
  20888. abstract="false" native="false" synchronized="false"
  20889. static="true" final="false" visibility="public"
  20890. deprecated="not deprecated">
  20891. <param name="utf8" type="byte[]"/>
  20892. <param name="start" type="int"/>
  20893. <param name="length" type="int"/>
  20894. <param name="replace" type="boolean"/>
  20895. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20896. <doc>
  20897. <![CDATA[Converts the provided byte array to a String using the
  20898. UTF-8 encoding. If <code>replace</code> is true, then
  20899. malformed input is replaced with the
  20900. substitution character, which is U+FFFD. Otherwise the
  20901. method throws a MalformedInputException.]]>
  20902. </doc>
  20903. </method>
  20904. <method name="encode" return="java.nio.ByteBuffer"
  20905. abstract="false" native="false" synchronized="false"
  20906. static="true" final="false" visibility="public"
  20907. deprecated="not deprecated">
  20908. <param name="string" type="java.lang.String"/>
  20909. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20910. <doc>
  20911. <![CDATA[Converts the provided String to bytes using the
  20912. UTF-8 encoding. If the input is malformed,
  20913. invalid chars are replaced by a default value.
  20914. @return ByteBuffer: bytes stores at ByteBuffer.array()
  20915. and length is ByteBuffer.limit()]]>
  20916. </doc>
  20917. </method>
  20918. <method name="encode" return="java.nio.ByteBuffer"
  20919. abstract="false" native="false" synchronized="false"
  20920. static="true" final="false" visibility="public"
  20921. deprecated="not deprecated">
  20922. <param name="string" type="java.lang.String"/>
  20923. <param name="replace" type="boolean"/>
  20924. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  20925. <doc>
  20926. <![CDATA[Converts the provided String to bytes using the
  20927. UTF-8 encoding. If <code>replace</code> is true, then
  20928. malformed input is replaced with the
  20929. substitution character, which is U+FFFD. Otherwise the
  20930. method throws a MalformedInputException.
  20931. @return ByteBuffer: bytes stores at ByteBuffer.array()
  20932. and length is ByteBuffer.limit()]]>
  20933. </doc>
  20934. </method>
  20935. <method name="readString" return="java.lang.String"
  20936. abstract="false" native="false" synchronized="false"
  20937. static="true" final="false" visibility="public"
  20938. deprecated="not deprecated">
  20939. <param name="in" type="java.io.DataInput"/>
  20940. <exception name="IOException" type="java.io.IOException"/>
  20941. <doc>
  20942. <![CDATA[Read a UTF8 encoded string from in]]>
  20943. </doc>
  20944. </method>
  20945. <method name="readString" return="java.lang.String"
  20946. abstract="false" native="false" synchronized="false"
  20947. static="true" final="false" visibility="public"
  20948. deprecated="not deprecated">
  20949. <param name="in" type="java.io.DataInput"/>
  20950. <param name="maxLength" type="int"/>
  20951. <exception name="IOException" type="java.io.IOException"/>
  20952. <doc>
  20953. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  20954. </doc>
  20955. </method>
  20956. <method name="writeString" return="int"
  20957. abstract="false" native="false" synchronized="false"
  20958. static="true" final="false" visibility="public"
  20959. deprecated="not deprecated">
  20960. <param name="out" type="java.io.DataOutput"/>
  20961. <param name="s" type="java.lang.String"/>
  20962. <exception name="IOException" type="java.io.IOException"/>
  20963. <doc>
  20964. <![CDATA[Write a UTF8 encoded string to out]]>
  20965. </doc>
  20966. </method>
  20967. <method name="writeString" return="int"
  20968. abstract="false" native="false" synchronized="false"
  20969. static="true" final="false" visibility="public"
  20970. deprecated="not deprecated">
  20971. <param name="out" type="java.io.DataOutput"/>
  20972. <param name="s" type="java.lang.String"/>
  20973. <param name="maxLength" type="int"/>
  20974. <exception name="IOException" type="java.io.IOException"/>
  20975. <doc>
  20976. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  20977. </doc>
  20978. </method>
  20979. <method name="validateUTF8"
  20980. abstract="false" native="false" synchronized="false"
  20981. static="true" final="false" visibility="public"
  20982. deprecated="not deprecated">
  20983. <param name="utf8" type="byte[]"/>
  20984. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  20985. <doc>
  20986. <![CDATA[Check if a byte array contains valid utf-8
  20987. @param utf8 byte array
  20988. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  20989. </doc>
  20990. </method>
  20991. <method name="validateUTF8"
  20992. abstract="false" native="false" synchronized="false"
  20993. static="true" final="false" visibility="public"
  20994. deprecated="not deprecated">
  20995. <param name="utf8" type="byte[]"/>
  20996. <param name="start" type="int"/>
  20997. <param name="len" type="int"/>
  20998. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  20999. <doc>
  21000. <![CDATA[Check to see if a byte array is valid utf-8
  21001. @param utf8 the array of bytes
  21002. @param start the offset of the first byte in the array
  21003. @param len the length of the byte sequence
  21004. @throws MalformedInputException if the byte array contains invalid bytes]]>
  21005. </doc>
  21006. </method>
  21007. <method name="bytesToCodePoint" return="int"
  21008. abstract="false" native="false" synchronized="false"
  21009. static="true" final="false" visibility="public"
  21010. deprecated="not deprecated">
  21011. <param name="bytes" type="java.nio.ByteBuffer"/>
  21012. <doc>
  21013. <![CDATA[Returns the next code point at the current position in
  21014. the buffer. The buffer's position will be incremented.
  21015. Any mark set on this buffer will be changed by this method!]]>
  21016. </doc>
  21017. </method>
  21018. <method name="utf8Length" return="int"
  21019. abstract="false" native="false" synchronized="false"
  21020. static="true" final="false" visibility="public"
  21021. deprecated="not deprecated">
  21022. <param name="string" type="java.lang.String"/>
  21023. <doc>
  21024. <![CDATA[For the given string, returns the number of UTF-8 bytes
  21025. required to encode the string.
  21026. @param string text to encode
  21027. @return number of UTF-8 bytes required to encode]]>
  21028. </doc>
  21029. </method>
  21030. <field name="DEFAULT_MAX_LEN" type="int"
  21031. transient="false" volatile="false"
  21032. static="true" final="true" visibility="public"
  21033. deprecated="not deprecated">
  21034. </field>
  21035. <doc>
  21036. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  21037. to serialize, deserialize, and compare texts at byte level. The type of
  21038. length is integer and is serialized using zero-compressed format. <p>In
  21039. addition, it provides methods for string traversal without converting the
  21040. byte array to a string. <p>Also includes utilities for
  21041. serializing/deserialing a string, coding/decoding a string, checking if a
  21042. byte array contains valid UTF8 code, calculating the length of an encoded
  21043. string.]]>
  21044. </doc>
  21045. </class>
  21046. <!-- end class org.apache.hadoop.io.Text -->
  21047. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  21048. <class name="TwoDArrayWritable" extends="java.lang.Object"
  21049. abstract="false"
  21050. static="false" final="false" visibility="public"
  21051. deprecated="not deprecated">
  21052. <implements name="org.apache.hadoop.io.Writable"/>
  21053. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  21054. static="false" final="false" visibility="public"
  21055. deprecated="not deprecated">
  21056. </constructor>
  21057. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  21058. static="false" final="false" visibility="public"
  21059. deprecated="not deprecated">
  21060. </constructor>
  21061. <method name="toArray" return="java.lang.Object"
  21062. abstract="false" native="false" synchronized="false"
  21063. static="false" final="false" visibility="public"
  21064. deprecated="not deprecated">
  21065. </method>
  21066. <method name="set"
  21067. abstract="false" native="false" synchronized="false"
  21068. static="false" final="false" visibility="public"
  21069. deprecated="not deprecated">
  21070. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  21071. </method>
  21072. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  21073. abstract="false" native="false" synchronized="false"
  21074. static="false" final="false" visibility="public"
  21075. deprecated="not deprecated">
  21076. </method>
  21077. <method name="readFields"
  21078. abstract="false" native="false" synchronized="false"
  21079. static="false" final="false" visibility="public"
  21080. deprecated="not deprecated">
  21081. <param name="in" type="java.io.DataInput"/>
  21082. <exception name="IOException" type="java.io.IOException"/>
  21083. </method>
  21084. <method name="write"
  21085. abstract="false" native="false" synchronized="false"
  21086. static="false" final="false" visibility="public"
  21087. deprecated="not deprecated">
  21088. <param name="out" type="java.io.DataOutput"/>
  21089. <exception name="IOException" type="java.io.IOException"/>
  21090. </method>
  21091. <doc>
  21092. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  21093. </doc>
  21094. </class>
  21095. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  21096. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  21097. <class name="VersionedWritable" extends="java.lang.Object"
  21098. abstract="true"
  21099. static="false" final="false" visibility="public"
  21100. deprecated="not deprecated">
  21101. <implements name="org.apache.hadoop.io.Writable"/>
  21102. <constructor name="VersionedWritable"
  21103. static="false" final="false" visibility="public"
  21104. deprecated="not deprecated">
  21105. </constructor>
  21106. <method name="getVersion" return="byte"
  21107. abstract="true" native="false" synchronized="false"
  21108. static="false" final="false" visibility="public"
  21109. deprecated="not deprecated">
  21110. <doc>
  21111. <![CDATA[Return the version number of the current implementation.]]>
  21112. </doc>
  21113. </method>
  21114. <method name="write"
  21115. abstract="false" native="false" synchronized="false"
  21116. static="false" final="false" visibility="public"
  21117. deprecated="not deprecated">
  21118. <param name="out" type="java.io.DataOutput"/>
  21119. <exception name="IOException" type="java.io.IOException"/>
  21120. </method>
  21121. <method name="readFields"
  21122. abstract="false" native="false" synchronized="false"
  21123. static="false" final="false" visibility="public"
  21124. deprecated="not deprecated">
  21125. <param name="in" type="java.io.DataInput"/>
  21126. <exception name="IOException" type="java.io.IOException"/>
  21127. </method>
  21128. <doc>
  21129. <![CDATA[A base class for Writables that provides version checking.
  21130. <p>This is useful when a class may evolve, so that instances written by the
  21131. old version of the class may still be processed by the new version. To
  21132. handle this situation, {@link #readFields(DataInput)}
  21133. implementations should catch {@link VersionMismatchException}.]]>
  21134. </doc>
  21135. </class>
  21136. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  21137. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  21138. <class name="VersionMismatchException" extends="java.io.IOException"
  21139. abstract="false"
  21140. static="false" final="false" visibility="public"
  21141. deprecated="not deprecated">
  21142. <constructor name="VersionMismatchException" type="byte, byte"
  21143. static="false" final="false" visibility="public"
  21144. deprecated="not deprecated">
  21145. </constructor>
  21146. <method name="toString" return="java.lang.String"
  21147. abstract="false" native="false" synchronized="false"
  21148. static="false" final="false" visibility="public"
  21149. deprecated="not deprecated">
  21150. <doc>
  21151. <![CDATA[Returns a string representation of this object.]]>
  21152. </doc>
  21153. </method>
  21154. <doc>
  21155. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  21156. version of an object being read does not match the current implementation
  21157. version as returned by {@link VersionedWritable#getVersion()}.]]>
  21158. </doc>
  21159. </class>
  21160. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  21161. <!-- start class org.apache.hadoop.io.VIntWritable -->
  21162. <class name="VIntWritable" extends="java.lang.Object"
  21163. abstract="false"
  21164. static="false" final="false" visibility="public"
  21165. deprecated="not deprecated">
  21166. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21167. <constructor name="VIntWritable"
  21168. static="false" final="false" visibility="public"
  21169. deprecated="not deprecated">
  21170. </constructor>
  21171. <constructor name="VIntWritable" type="int"
  21172. static="false" final="false" visibility="public"
  21173. deprecated="not deprecated">
  21174. </constructor>
  21175. <method name="set"
  21176. abstract="false" native="false" synchronized="false"
  21177. static="false" final="false" visibility="public"
  21178. deprecated="not deprecated">
  21179. <param name="value" type="int"/>
  21180. <doc>
  21181. <![CDATA[Set the value of this VIntWritable.]]>
  21182. </doc>
  21183. </method>
  21184. <method name="get" return="int"
  21185. abstract="false" native="false" synchronized="false"
  21186. static="false" final="false" visibility="public"
  21187. deprecated="not deprecated">
  21188. <doc>
  21189. <![CDATA[Return the value of this VIntWritable.]]>
  21190. </doc>
  21191. </method>
  21192. <method name="readFields"
  21193. abstract="false" native="false" synchronized="false"
  21194. static="false" final="false" visibility="public"
  21195. deprecated="not deprecated">
  21196. <param name="in" type="java.io.DataInput"/>
  21197. <exception name="IOException" type="java.io.IOException"/>
  21198. </method>
  21199. <method name="write"
  21200. abstract="false" native="false" synchronized="false"
  21201. static="false" final="false" visibility="public"
  21202. deprecated="not deprecated">
  21203. <param name="out" type="java.io.DataOutput"/>
  21204. <exception name="IOException" type="java.io.IOException"/>
  21205. </method>
  21206. <method name="equals" return="boolean"
  21207. abstract="false" native="false" synchronized="false"
  21208. static="false" final="false" visibility="public"
  21209. deprecated="not deprecated">
  21210. <param name="o" type="java.lang.Object"/>
  21211. <doc>
  21212. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  21213. </doc>
  21214. </method>
  21215. <method name="hashCode" return="int"
  21216. abstract="false" native="false" synchronized="false"
  21217. static="false" final="false" visibility="public"
  21218. deprecated="not deprecated">
  21219. </method>
  21220. <method name="compareTo" return="int"
  21221. abstract="false" native="false" synchronized="false"
  21222. static="false" final="false" visibility="public"
  21223. deprecated="not deprecated">
  21224. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  21225. <doc>
  21226. <![CDATA[Compares two VIntWritables.]]>
  21227. </doc>
  21228. </method>
  21229. <method name="toString" return="java.lang.String"
  21230. abstract="false" native="false" synchronized="false"
  21231. static="false" final="false" visibility="public"
  21232. deprecated="not deprecated">
  21233. </method>
  21234. <doc>
  21235. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  21236. Such values take between one and five bytes. Smaller values take fewer bytes.
  21237. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  21238. </doc>
  21239. </class>
  21240. <!-- end class org.apache.hadoop.io.VIntWritable -->
  21241. <!-- start class org.apache.hadoop.io.VLongWritable -->
  21242. <class name="VLongWritable" extends="java.lang.Object"
  21243. abstract="false"
  21244. static="false" final="false" visibility="public"
  21245. deprecated="not deprecated">
  21246. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21247. <constructor name="VLongWritable"
  21248. static="false" final="false" visibility="public"
  21249. deprecated="not deprecated">
  21250. </constructor>
  21251. <constructor name="VLongWritable" type="long"
  21252. static="false" final="false" visibility="public"
  21253. deprecated="not deprecated">
  21254. </constructor>
  21255. <method name="set"
  21256. abstract="false" native="false" synchronized="false"
  21257. static="false" final="false" visibility="public"
  21258. deprecated="not deprecated">
  21259. <param name="value" type="long"/>
  21260. <doc>
  21261. <![CDATA[Set the value of this LongWritable.]]>
  21262. </doc>
  21263. </method>
  21264. <method name="get" return="long"
  21265. abstract="false" native="false" synchronized="false"
  21266. static="false" final="false" visibility="public"
  21267. deprecated="not deprecated">
  21268. <doc>
  21269. <![CDATA[Return the value of this LongWritable.]]>
  21270. </doc>
  21271. </method>
  21272. <method name="readFields"
  21273. abstract="false" native="false" synchronized="false"
  21274. static="false" final="false" visibility="public"
  21275. deprecated="not deprecated">
  21276. <param name="in" type="java.io.DataInput"/>
  21277. <exception name="IOException" type="java.io.IOException"/>
  21278. </method>
  21279. <method name="write"
  21280. abstract="false" native="false" synchronized="false"
  21281. static="false" final="false" visibility="public"
  21282. deprecated="not deprecated">
  21283. <param name="out" type="java.io.DataOutput"/>
  21284. <exception name="IOException" type="java.io.IOException"/>
  21285. </method>
  21286. <method name="equals" return="boolean"
  21287. abstract="false" native="false" synchronized="false"
  21288. static="false" final="false" visibility="public"
  21289. deprecated="not deprecated">
  21290. <param name="o" type="java.lang.Object"/>
  21291. <doc>
  21292. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  21293. </doc>
  21294. </method>
  21295. <method name="hashCode" return="int"
  21296. abstract="false" native="false" synchronized="false"
  21297. static="false" final="false" visibility="public"
  21298. deprecated="not deprecated">
  21299. </method>
  21300. <method name="compareTo" return="int"
  21301. abstract="false" native="false" synchronized="false"
  21302. static="false" final="false" visibility="public"
  21303. deprecated="not deprecated">
  21304. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  21305. <doc>
  21306. <![CDATA[Compares two VLongWritables.]]>
  21307. </doc>
  21308. </method>
  21309. <method name="toString" return="java.lang.String"
  21310. abstract="false" native="false" synchronized="false"
  21311. static="false" final="false" visibility="public"
  21312. deprecated="not deprecated">
  21313. </method>
  21314. <doc>
  21315. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  21316. between one and five bytes. Smaller values take fewer bytes.
  21317. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  21318. </doc>
  21319. </class>
  21320. <!-- end class org.apache.hadoop.io.VLongWritable -->
  21321. <!-- start interface org.apache.hadoop.io.Writable -->
  21322. <interface name="Writable" abstract="true"
  21323. static="false" final="false" visibility="public"
  21324. deprecated="not deprecated">
  21325. <method name="write"
  21326. abstract="false" native="false" synchronized="false"
  21327. static="false" final="false" visibility="public"
  21328. deprecated="not deprecated">
  21329. <param name="out" type="java.io.DataOutput"/>
  21330. <exception name="IOException" type="java.io.IOException"/>
  21331. <doc>
  21332. <![CDATA[Serialize the fields of this object to <code>out</code>.
  21333. @param out <code>DataOuput</code> to serialize this object into.
  21334. @throws IOException]]>
  21335. </doc>
  21336. </method>
  21337. <method name="readFields"
  21338. abstract="false" native="false" synchronized="false"
  21339. static="false" final="false" visibility="public"
  21340. deprecated="not deprecated">
  21341. <param name="in" type="java.io.DataInput"/>
  21342. <exception name="IOException" type="java.io.IOException"/>
  21343. <doc>
  21344. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  21345. <p>For efficiency, implementations should attempt to re-use storage in the
  21346. existing object where possible.</p>
  21347. @param in <code>DataInput</code> to deseriablize this object from.
  21348. @throws IOException]]>
  21349. </doc>
  21350. </method>
  21351. <doc>
  21352. <![CDATA[A serializable object which implements a simple, efficient, serialization
  21353. protocol, based on {@link DataInput} and {@link DataOutput}.
  21354. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  21355. framework implements this interface.</p>
  21356. <p>Implementations typically implement a static <code>read(DataInput)</code>
  21357. method which constructs a new instance, calls {@link #readFields(DataInput)}
  21358. and returns the instance.</p>
  21359. <p>Example:</p>
  21360. <p><blockquote><pre>
  21361. public class MyWritable implements Writable {
  21362. // Some data
  21363. private int counter;
  21364. private long timestamp;
  21365. public void write(DataOutput out) throws IOException {
  21366. out.writeInt(counter);
  21367. out.writeLong(timestamp);
  21368. }
  21369. public void readFields(DataInput in) throws IOException {
  21370. counter = in.readInt();
  21371. timestamp = in.readLong();
  21372. }
  21373. public static MyWritable read(DataInput in) throws IOException {
  21374. MyWritable w = new MyWritable();
  21375. w.readFields(in);
  21376. return w;
  21377. }
  21378. }
  21379. </pre></blockquote></p>]]>
  21380. </doc>
  21381. </interface>
  21382. <!-- end interface org.apache.hadoop.io.Writable -->
  21383. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  21384. <interface name="WritableComparable" abstract="true"
  21385. static="false" final="false" visibility="public"
  21386. deprecated="not deprecated">
  21387. <implements name="org.apache.hadoop.io.Writable"/>
  21388. <implements name="java.lang.Comparable"/>
  21389. <doc>
  21390. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  21391. <p><code>WritableComparable</code>s can be compared to each other, typically
  21392. via <code>Comparator</code>s. Any type which is to be used as a
  21393. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  21394. interface.</p>
  21395. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  21396. keys. It's important that your implementation of hashCode() returns the same
  21397. result across different instances of the JVM. Note also that the default
  21398. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  21399. satisfy this property.</p>
  21400. <p>Example:</p>
  21401. <p><blockquote><pre>
  21402. public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
  21403. // Some data
  21404. private int counter;
  21405. private long timestamp;
  21406. public void write(DataOutput out) throws IOException {
  21407. out.writeInt(counter);
  21408. out.writeLong(timestamp);
  21409. }
  21410. public void readFields(DataInput in) throws IOException {
  21411. counter = in.readInt();
  21412. timestamp = in.readLong();
  21413. }
  21414. public int compareTo(MyWritableComparable o) {
  21415. int thisValue = this.value;
  21416. int thatValue = o.value;
  21417. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  21418. }
  21419. public int hashCode() {
  21420. final int prime = 31;
  21421. int result = 1;
  21422. result = prime * result + counter;
  21423. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  21424. return result
  21425. }
  21426. }
  21427. </pre></blockquote></p>]]>
  21428. </doc>
  21429. </interface>
  21430. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  21431. <!-- start class org.apache.hadoop.io.WritableComparator -->
  21432. <class name="WritableComparator" extends="java.lang.Object"
  21433. abstract="false"
  21434. static="false" final="false" visibility="public"
  21435. deprecated="not deprecated">
  21436. <implements name="org.apache.hadoop.io.RawComparator"/>
  21437. <implements name="org.apache.hadoop.conf.Configurable"/>
  21438. <constructor name="WritableComparator"
  21439. static="false" final="false" visibility="protected"
  21440. deprecated="not deprecated">
  21441. </constructor>
  21442. <constructor name="WritableComparator" type="java.lang.Class"
  21443. static="false" final="false" visibility="protected"
  21444. deprecated="not deprecated">
  21445. <doc>
  21446. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  21447. </doc>
  21448. </constructor>
  21449. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  21450. static="false" final="false" visibility="protected"
  21451. deprecated="not deprecated">
  21452. </constructor>
  21453. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  21454. static="false" final="false" visibility="protected"
  21455. deprecated="not deprecated">
  21456. </constructor>
  21457. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  21458. abstract="false" native="false" synchronized="false"
  21459. static="true" final="false" visibility="public"
  21460. deprecated="not deprecated">
  21461. <param name="c" type="java.lang.Class"/>
  21462. <doc>
  21463. <![CDATA[For backwards compatibility.]]>
  21464. </doc>
  21465. </method>
  21466. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  21467. abstract="false" native="false" synchronized="false"
  21468. static="true" final="false" visibility="public"
  21469. deprecated="not deprecated">
  21470. <param name="c" type="java.lang.Class"/>
  21471. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21472. <doc>
  21473. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  21474. </doc>
  21475. </method>
  21476. <method name="setConf"
  21477. abstract="false" native="false" synchronized="false"
  21478. static="false" final="false" visibility="public"
  21479. deprecated="not deprecated">
  21480. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21481. </method>
  21482. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21483. abstract="false" native="false" synchronized="false"
  21484. static="false" final="false" visibility="public"
  21485. deprecated="not deprecated">
  21486. </method>
  21487. <method name="define"
  21488. abstract="false" native="false" synchronized="false"
  21489. static="true" final="false" visibility="public"
  21490. deprecated="not deprecated">
  21491. <param name="c" type="java.lang.Class"/>
  21492. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  21493. <doc>
  21494. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  21495. implementation. Comparators registered with this method must be
  21496. thread-safe.]]>
  21497. </doc>
  21498. </method>
  21499. <method name="getKeyClass" return="java.lang.Class"
  21500. abstract="false" native="false" synchronized="false"
  21501. static="false" final="false" visibility="public"
  21502. deprecated="not deprecated">
  21503. <doc>
  21504. <![CDATA[Returns the WritableComparable implementation class.]]>
  21505. </doc>
  21506. </method>
  21507. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  21508. abstract="false" native="false" synchronized="false"
  21509. static="false" final="false" visibility="public"
  21510. deprecated="not deprecated">
  21511. <doc>
  21512. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  21513. </doc>
  21514. </method>
  21515. <method name="compare" return="int"
  21516. abstract="false" native="false" synchronized="false"
  21517. static="false" final="false" visibility="public"
  21518. deprecated="not deprecated">
  21519. <param name="b1" type="byte[]"/>
  21520. <param name="s1" type="int"/>
  21521. <param name="l1" type="int"/>
  21522. <param name="b2" type="byte[]"/>
  21523. <param name="s2" type="int"/>
  21524. <param name="l2" type="int"/>
  21525. <doc>
  21526. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  21527. <p>The default implementation reads the data into two {@link
  21528. WritableComparable}s (using {@link
  21529. Writable#readFields(DataInput)}, then calls {@link
  21530. #compare(WritableComparable,WritableComparable)}.]]>
  21531. </doc>
  21532. </method>
  21533. <method name="compare" return="int"
  21534. abstract="false" native="false" synchronized="false"
  21535. static="false" final="false" visibility="public"
  21536. deprecated="not deprecated">
  21537. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  21538. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  21539. <doc>
  21540. <![CDATA[Compare two WritableComparables.
  21541. <p> The default implementation uses the natural ordering, calling {@link
  21542. Comparable#compareTo(Object)}.]]>
  21543. </doc>
  21544. </method>
  21545. <method name="compare" return="int"
  21546. abstract="false" native="false" synchronized="false"
  21547. static="false" final="false" visibility="public"
  21548. deprecated="not deprecated">
  21549. <param name="a" type="java.lang.Object"/>
  21550. <param name="b" type="java.lang.Object"/>
  21551. </method>
  21552. <method name="compareBytes" return="int"
  21553. abstract="false" native="false" synchronized="false"
  21554. static="true" final="false" visibility="public"
  21555. deprecated="not deprecated">
  21556. <param name="b1" type="byte[]"/>
  21557. <param name="s1" type="int"/>
  21558. <param name="l1" type="int"/>
  21559. <param name="b2" type="byte[]"/>
  21560. <param name="s2" type="int"/>
  21561. <param name="l2" type="int"/>
  21562. <doc>
  21563. <![CDATA[Lexicographic order of binary data.]]>
  21564. </doc>
  21565. </method>
  21566. <method name="hashBytes" return="int"
  21567. abstract="false" native="false" synchronized="false"
  21568. static="true" final="false" visibility="public"
  21569. deprecated="not deprecated">
  21570. <param name="bytes" type="byte[]"/>
  21571. <param name="offset" type="int"/>
  21572. <param name="length" type="int"/>
  21573. <doc>
  21574. <![CDATA[Compute hash for binary data.]]>
  21575. </doc>
  21576. </method>
  21577. <method name="hashBytes" return="int"
  21578. abstract="false" native="false" synchronized="false"
  21579. static="true" final="false" visibility="public"
  21580. deprecated="not deprecated">
  21581. <param name="bytes" type="byte[]"/>
  21582. <param name="length" type="int"/>
  21583. <doc>
  21584. <![CDATA[Compute hash for binary data.]]>
  21585. </doc>
  21586. </method>
  21587. <method name="readUnsignedShort" return="int"
  21588. abstract="false" native="false" synchronized="false"
  21589. static="true" final="false" visibility="public"
  21590. deprecated="not deprecated">
  21591. <param name="bytes" type="byte[]"/>
  21592. <param name="start" type="int"/>
  21593. <doc>
  21594. <![CDATA[Parse an unsigned short from a byte array.]]>
  21595. </doc>
  21596. </method>
  21597. <method name="readInt" return="int"
  21598. abstract="false" native="false" synchronized="false"
  21599. static="true" final="false" visibility="public"
  21600. deprecated="not deprecated">
  21601. <param name="bytes" type="byte[]"/>
  21602. <param name="start" type="int"/>
  21603. <doc>
  21604. <![CDATA[Parse an integer from a byte array.]]>
  21605. </doc>
  21606. </method>
  21607. <method name="readFloat" return="float"
  21608. abstract="false" native="false" synchronized="false"
  21609. static="true" final="false" visibility="public"
  21610. deprecated="not deprecated">
  21611. <param name="bytes" type="byte[]"/>
  21612. <param name="start" type="int"/>
  21613. <doc>
  21614. <![CDATA[Parse a float from a byte array.]]>
  21615. </doc>
  21616. </method>
  21617. <method name="readLong" return="long"
  21618. abstract="false" native="false" synchronized="false"
  21619. static="true" final="false" visibility="public"
  21620. deprecated="not deprecated">
  21621. <param name="bytes" type="byte[]"/>
  21622. <param name="start" type="int"/>
  21623. <doc>
  21624. <![CDATA[Parse a long from a byte array.]]>
  21625. </doc>
  21626. </method>
  21627. <method name="readDouble" return="double"
  21628. abstract="false" native="false" synchronized="false"
  21629. static="true" final="false" visibility="public"
  21630. deprecated="not deprecated">
  21631. <param name="bytes" type="byte[]"/>
  21632. <param name="start" type="int"/>
  21633. <doc>
  21634. <![CDATA[Parse a double from a byte array.]]>
  21635. </doc>
  21636. </method>
  21637. <method name="readVLong" return="long"
  21638. abstract="false" native="false" synchronized="false"
  21639. static="true" final="false" visibility="public"
  21640. deprecated="not deprecated">
  21641. <param name="bytes" type="byte[]"/>
  21642. <param name="start" type="int"/>
  21643. <exception name="IOException" type="java.io.IOException"/>
  21644. <doc>
  21645. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  21646. @param bytes byte array with decode long
  21647. @param start starting index
  21648. @throws java.io.IOException
  21649. @return deserialized long]]>
  21650. </doc>
  21651. </method>
  21652. <method name="readVInt" return="int"
  21653. abstract="false" native="false" synchronized="false"
  21654. static="true" final="false" visibility="public"
  21655. deprecated="not deprecated">
  21656. <param name="bytes" type="byte[]"/>
  21657. <param name="start" type="int"/>
  21658. <exception name="IOException" type="java.io.IOException"/>
  21659. <doc>
  21660. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  21661. @param bytes byte array with the encoded integer
  21662. @param start start index
  21663. @throws java.io.IOException
  21664. @return deserialized integer]]>
  21665. </doc>
  21666. </method>
  21667. <doc>
  21668. <![CDATA[A Comparator for {@link WritableComparable}s.
  21669. <p>This base implemenation uses the natural ordering. To define alternate
  21670. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  21671. <p>One may optimize compare-intensive operations by overriding
  21672. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  21673. provided to assist in optimized implementations of this method.]]>
  21674. </doc>
  21675. </class>
  21676. <!-- end class org.apache.hadoop.io.WritableComparator -->
  21677. <!-- start class org.apache.hadoop.io.WritableFactories -->
  21678. <class name="WritableFactories" extends="java.lang.Object"
  21679. abstract="false"
  21680. static="false" final="false" visibility="public"
  21681. deprecated="not deprecated">
  21682. <method name="setFactory"
  21683. abstract="false" native="false" synchronized="false"
  21684. static="true" final="false" visibility="public"
  21685. deprecated="not deprecated">
  21686. <param name="c" type="java.lang.Class"/>
  21687. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  21688. <doc>
  21689. <![CDATA[Define a factory for a class.]]>
  21690. </doc>
  21691. </method>
  21692. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  21693. abstract="false" native="false" synchronized="false"
  21694. static="true" final="false" visibility="public"
  21695. deprecated="not deprecated">
  21696. <param name="c" type="java.lang.Class"/>
  21697. <doc>
  21698. <![CDATA[Define a factory for a class.]]>
  21699. </doc>
  21700. </method>
  21701. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21702. abstract="false" native="false" synchronized="false"
  21703. static="true" final="false" visibility="public"
  21704. deprecated="not deprecated">
  21705. <param name="c" type="java.lang.Class"/>
  21706. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21707. <doc>
  21708. <![CDATA[Create a new instance of a class with a defined factory.]]>
  21709. </doc>
  21710. </method>
  21711. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21712. abstract="false" native="false" synchronized="false"
  21713. static="true" final="false" visibility="public"
  21714. deprecated="not deprecated">
  21715. <param name="c" type="java.lang.Class"/>
  21716. <doc>
  21717. <![CDATA[Create a new instance of a class with a defined factory.]]>
  21718. </doc>
  21719. </method>
  21720. <doc>
  21721. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  21722. ObjectWritable} to be able to construct instances of non-public classes.]]>
  21723. </doc>
  21724. </class>
  21725. <!-- end class org.apache.hadoop.io.WritableFactories -->
  21726. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  21727. <interface name="WritableFactory" abstract="true"
  21728. static="false" final="false" visibility="public"
  21729. deprecated="not deprecated">
  21730. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21731. abstract="false" native="false" synchronized="false"
  21732. static="false" final="false" visibility="public"
  21733. deprecated="not deprecated">
  21734. <doc>
  21735. <![CDATA[Return a new instance.]]>
  21736. </doc>
  21737. </method>
  21738. <doc>
  21739. <![CDATA[A factory for a class of Writable.
  21740. @see WritableFactories]]>
  21741. </doc>
  21742. </interface>
  21743. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  21744. <!-- start class org.apache.hadoop.io.WritableUtils -->
  21745. <class name="WritableUtils" extends="java.lang.Object"
  21746. abstract="false"
  21747. static="false" final="true" visibility="public"
  21748. deprecated="not deprecated">
  21749. <constructor name="WritableUtils"
  21750. static="false" final="false" visibility="public"
  21751. deprecated="not deprecated">
  21752. </constructor>
  21753. <method name="readCompressedByteArray" return="byte[]"
  21754. abstract="false" native="false" synchronized="false"
  21755. static="true" final="false" visibility="public"
  21756. deprecated="not deprecated">
  21757. <param name="in" type="java.io.DataInput"/>
  21758. <exception name="IOException" type="java.io.IOException"/>
  21759. </method>
  21760. <method name="skipCompressedByteArray"
  21761. abstract="false" native="false" synchronized="false"
  21762. static="true" final="false" visibility="public"
  21763. deprecated="not deprecated">
  21764. <param name="in" type="java.io.DataInput"/>
  21765. <exception name="IOException" type="java.io.IOException"/>
  21766. </method>
  21767. <method name="writeCompressedByteArray" return="int"
  21768. abstract="false" native="false" synchronized="false"
  21769. static="true" final="false" visibility="public"
  21770. deprecated="not deprecated">
  21771. <param name="out" type="java.io.DataOutput"/>
  21772. <param name="bytes" type="byte[]"/>
  21773. <exception name="IOException" type="java.io.IOException"/>
  21774. </method>
  21775. <method name="readCompressedString" return="java.lang.String"
  21776. abstract="false" native="false" synchronized="false"
  21777. static="true" final="false" visibility="public"
  21778. deprecated="not deprecated">
  21779. <param name="in" type="java.io.DataInput"/>
  21780. <exception name="IOException" type="java.io.IOException"/>
  21781. </method>
  21782. <method name="writeCompressedString" return="int"
  21783. abstract="false" native="false" synchronized="false"
  21784. static="true" final="false" visibility="public"
  21785. deprecated="not deprecated">
  21786. <param name="out" type="java.io.DataOutput"/>
  21787. <param name="s" type="java.lang.String"/>
  21788. <exception name="IOException" type="java.io.IOException"/>
  21789. </method>
  21790. <method name="writeString"
  21791. abstract="false" native="false" synchronized="false"
  21792. static="true" final="false" visibility="public"
  21793. deprecated="not deprecated">
  21794. <param name="out" type="java.io.DataOutput"/>
  21795. <param name="s" type="java.lang.String"/>
  21796. <exception name="IOException" type="java.io.IOException"/>
  21797. </method>
  21798. <method name="readString" return="java.lang.String"
  21799. abstract="false" native="false" synchronized="false"
  21800. static="true" final="false" visibility="public"
  21801. deprecated="not deprecated">
  21802. <param name="in" type="java.io.DataInput"/>
  21803. <exception name="IOException" type="java.io.IOException"/>
  21804. </method>
  21805. <method name="writeStringArray"
  21806. abstract="false" native="false" synchronized="false"
  21807. static="true" final="false" visibility="public"
  21808. deprecated="not deprecated">
  21809. <param name="out" type="java.io.DataOutput"/>
  21810. <param name="s" type="java.lang.String[]"/>
  21811. <exception name="IOException" type="java.io.IOException"/>
  21812. </method>
  21813. <method name="writeCompressedStringArray"
  21814. abstract="false" native="false" synchronized="false"
  21815. static="true" final="false" visibility="public"
  21816. deprecated="not deprecated">
  21817. <param name="out" type="java.io.DataOutput"/>
  21818. <param name="s" type="java.lang.String[]"/>
  21819. <exception name="IOException" type="java.io.IOException"/>
  21820. </method>
  21821. <method name="readStringArray" return="java.lang.String[]"
  21822. abstract="false" native="false" synchronized="false"
  21823. static="true" final="false" visibility="public"
  21824. deprecated="not deprecated">
  21825. <param name="in" type="java.io.DataInput"/>
  21826. <exception name="IOException" type="java.io.IOException"/>
  21827. </method>
  21828. <method name="readCompressedStringArray" return="java.lang.String[]"
  21829. abstract="false" native="false" synchronized="false"
  21830. static="true" final="false" visibility="public"
  21831. deprecated="not deprecated">
  21832. <param name="in" type="java.io.DataInput"/>
  21833. <exception name="IOException" type="java.io.IOException"/>
  21834. </method>
  21835. <method name="displayByteArray"
  21836. abstract="false" native="false" synchronized="false"
  21837. static="true" final="false" visibility="public"
  21838. deprecated="not deprecated">
  21839. <param name="record" type="byte[]"/>
  21840. </method>
  21841. <method name="clone" return="T"
  21842. abstract="false" native="false" synchronized="false"
  21843. static="true" final="false" visibility="public"
  21844. deprecated="not deprecated">
  21845. <param name="orig" type="T"/>
  21846. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21847. <doc>
  21848. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  21849. @param orig The object to copy
  21850. @return The copied object]]>
  21851. </doc>
  21852. </method>
  21853. <method name="cloneInto"
  21854. abstract="false" native="false" synchronized="false"
  21855. static="true" final="false" visibility="public"
  21856. deprecated="use ReflectionUtils.cloneInto instead.">
  21857. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  21858. <param name="src" type="org.apache.hadoop.io.Writable"/>
  21859. <exception name="IOException" type="java.io.IOException"/>
  21860. <doc>
  21861. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  21862. @param dst the object to copy from
  21863. @param src the object to copy into, which is destroyed
  21864. @throws IOException
  21865. @deprecated use ReflectionUtils.cloneInto instead.]]>
  21866. </doc>
  21867. </method>
  21868. <method name="writeVInt"
  21869. abstract="false" native="false" synchronized="false"
  21870. static="true" final="false" visibility="public"
  21871. deprecated="not deprecated">
  21872. <param name="stream" type="java.io.DataOutput"/>
  21873. <param name="i" type="int"/>
  21874. <exception name="IOException" type="java.io.IOException"/>
  21875. <doc>
  21876. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  21877. For -112 <= i <= 127, only one byte is used with the actual value.
  21878. For other values of i, the first byte value indicates whether the
  21879. integer is positive or negative, and the number of bytes that follow.
  21880. If the first byte value v is between -113 and -116, the following integer
  21881. is positive, with number of bytes that follow are -(v+112).
  21882. If the first byte value v is between -121 and -124, the following integer
  21883. is negative, with number of bytes that follow are -(v+120). Bytes are
  21884. stored in the high-non-zero-byte-first order.
  21885. @param stream Binary output stream
  21886. @param i Integer to be serialized
  21887. @throws java.io.IOException]]>
  21888. </doc>
  21889. </method>
  21890. <method name="writeVLong"
  21891. abstract="false" native="false" synchronized="false"
  21892. static="true" final="false" visibility="public"
  21893. deprecated="not deprecated">
  21894. <param name="stream" type="java.io.DataOutput"/>
  21895. <param name="i" type="long"/>
  21896. <exception name="IOException" type="java.io.IOException"/>
  21897. <doc>
  21898. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  21899. For -112 <= i <= 127, only one byte is used with the actual value.
  21900. For other values of i, the first byte value indicates whether the
  21901. long is positive or negative, and the number of bytes that follow.
  21902. If the first byte value v is between -113 and -120, the following long
  21903. is positive, with number of bytes that follow are -(v+112).
  21904. If the first byte value v is between -121 and -128, the following long
  21905. is negative, with number of bytes that follow are -(v+120). Bytes are
  21906. stored in the high-non-zero-byte-first order.
  21907. @param stream Binary output stream
  21908. @param i Long to be serialized
  21909. @throws java.io.IOException]]>
  21910. </doc>
  21911. </method>
  21912. <method name="readVLong" return="long"
  21913. abstract="false" native="false" synchronized="false"
  21914. static="true" final="false" visibility="public"
  21915. deprecated="not deprecated">
  21916. <param name="stream" type="java.io.DataInput"/>
  21917. <exception name="IOException" type="java.io.IOException"/>
  21918. <doc>
  21919. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  21920. @param stream Binary input stream
  21921. @throws java.io.IOException
  21922. @return deserialized long from stream.]]>
  21923. </doc>
  21924. </method>
  21925. <method name="readVInt" return="int"
  21926. abstract="false" native="false" synchronized="false"
  21927. static="true" final="false" visibility="public"
  21928. deprecated="not deprecated">
  21929. <param name="stream" type="java.io.DataInput"/>
  21930. <exception name="IOException" type="java.io.IOException"/>
  21931. <doc>
  21932. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  21933. @param stream Binary input stream
  21934. @throws java.io.IOException
  21935. @return deserialized integer from stream.]]>
  21936. </doc>
  21937. </method>
  21938. <method name="readVIntInRange" return="int"
  21939. abstract="false" native="false" synchronized="false"
  21940. static="true" final="false" visibility="public"
  21941. deprecated="not deprecated">
  21942. <param name="stream" type="java.io.DataInput"/>
  21943. <param name="lower" type="int"/>
  21944. <param name="upper" type="int"/>
  21945. <exception name="IOException" type="java.io.IOException"/>
  21946. <doc>
  21947. <![CDATA[Reads an integer from the input stream and returns it.
  21948. This function validates that the integer is between [lower, upper],
  21949. inclusive.
  21950. @param stream Binary input stream
  21951. @throws java.io.IOException
  21952. @return deserialized integer from stream]]>
  21953. </doc>
  21954. </method>
  21955. <method name="isNegativeVInt" return="boolean"
  21956. abstract="false" native="false" synchronized="false"
  21957. static="true" final="false" visibility="public"
  21958. deprecated="not deprecated">
  21959. <param name="value" type="byte"/>
  21960. <doc>
  21961. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  21962. @param value the first byte
  21963. @return is the value negative]]>
  21964. </doc>
  21965. </method>
  21966. <method name="decodeVIntSize" return="int"
  21967. abstract="false" native="false" synchronized="false"
  21968. static="true" final="false" visibility="public"
  21969. deprecated="not deprecated">
  21970. <param name="value" type="byte"/>
  21971. <doc>
  21972. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  21973. @param value the first byte of the vint/vlong
  21974. @return the total number of bytes (1 to 9)]]>
  21975. </doc>
  21976. </method>
  21977. <method name="getVIntSize" return="int"
  21978. abstract="false" native="false" synchronized="false"
  21979. static="true" final="false" visibility="public"
  21980. deprecated="not deprecated">
  21981. <param name="i" type="long"/>
  21982. <doc>
  21983. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  21984. @return the encoded length]]>
  21985. </doc>
  21986. </method>
  21987. <method name="readEnum" return="T"
  21988. abstract="false" native="false" synchronized="false"
  21989. static="true" final="false" visibility="public"
  21990. deprecated="not deprecated">
  21991. <param name="in" type="java.io.DataInput"/>
  21992. <param name="enumType" type="java.lang.Class"/>
  21993. <exception name="IOException" type="java.io.IOException"/>
  21994. <doc>
  21995. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  21996. using String values.
  21997. @param <T> Enum type
  21998. @param in DataInput to read from
  21999. @param enumType Class type of Enum
  22000. @return Enum represented by String read from DataInput
  22001. @throws IOException]]>
  22002. </doc>
  22003. </method>
  22004. <method name="writeEnum"
  22005. abstract="false" native="false" synchronized="false"
  22006. static="true" final="false" visibility="public"
  22007. deprecated="not deprecated">
  22008. <param name="out" type="java.io.DataOutput"/>
  22009. <param name="enumVal" type="java.lang.Enum"/>
  22010. <exception name="IOException" type="java.io.IOException"/>
  22011. <doc>
  22012. <![CDATA[writes String value of enum to DataOutput.
  22013. @param out Dataoutput stream
  22014. @param enumVal enum value
  22015. @throws IOException]]>
  22016. </doc>
  22017. </method>
  22018. <method name="skipFully"
  22019. abstract="false" native="false" synchronized="false"
  22020. static="true" final="false" visibility="public"
  22021. deprecated="not deprecated">
  22022. <param name="in" type="java.io.DataInput"/>
  22023. <param name="len" type="int"/>
  22024. <exception name="IOException" type="java.io.IOException"/>
  22025. <doc>
  22026. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  22027. @param in input stream
  22028. @param len number of bytes to skip
  22029. @throws IOException when skipped less number of bytes]]>
  22030. </doc>
  22031. </method>
  22032. <method name="toByteArray" return="byte[]"
  22033. abstract="false" native="false" synchronized="false"
  22034. static="true" final="false" visibility="public"
  22035. deprecated="not deprecated">
  22036. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  22037. <doc>
  22038. <![CDATA[Convert writables to a byte array]]>
  22039. </doc>
  22040. </method>
  22041. <method name="readStringSafely" return="java.lang.String"
  22042. abstract="false" native="false" synchronized="false"
  22043. static="true" final="false" visibility="public"
  22044. deprecated="not deprecated">
  22045. <param name="in" type="java.io.DataInput"/>
  22046. <param name="maxLength" type="int"/>
  22047. <exception name="IOException" type="java.io.IOException"/>
  22048. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  22049. <doc>
  22050. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  22051. followed by the given number of bytes.
  22052. @param in the stream to read from
  22053. @param maxLength the largest acceptable length of the encoded string
  22054. @return the bytes as a string
  22055. @throws IOException if reading from the DataInput fails
  22056. @throws IllegalArgumentException if the encoded byte size for string
  22057. is negative or larger than maxSize. Only the vint is read.]]>
  22058. </doc>
  22059. </method>
  22060. </class>
  22061. <!-- end class org.apache.hadoop.io.WritableUtils -->
  22062. <doc>
  22063. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  22064. to databases, and to files.]]>
  22065. </doc>
  22066. </package>
  22067. <package name="org.apache.hadoop.io.compress">
  22068. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  22069. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  22070. abstract="false"
  22071. static="false" final="false" visibility="public"
  22072. deprecated="not deprecated">
  22073. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  22074. static="false" final="false" visibility="public"
  22075. deprecated="not deprecated">
  22076. <doc>
  22077. <![CDATA[Create a {@link BlockCompressorStream}.
  22078. @param out stream
  22079. @param compressor compressor to be used
  22080. @param bufferSize size of buffer
  22081. @param compressionOverhead maximum 'overhead' of the compression
  22082. algorithm with given bufferSize]]>
  22083. </doc>
  22084. </constructor>
  22085. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  22086. static="false" final="false" visibility="public"
  22087. deprecated="not deprecated">
  22088. <doc>
  22089. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  22090. compressor.
  22091. Use default of 512 as bufferSize and compressionOverhead of
  22092. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  22093. @param out stream
  22094. @param compressor compressor to be used]]>
  22095. </doc>
  22096. </constructor>
  22097. <method name="write"
  22098. abstract="false" native="false" synchronized="false"
  22099. static="false" final="false" visibility="public"
  22100. deprecated="not deprecated">
  22101. <param name="b" type="byte[]"/>
  22102. <param name="off" type="int"/>
  22103. <param name="len" type="int"/>
  22104. <exception name="IOException" type="java.io.IOException"/>
  22105. <doc>
  22106. <![CDATA[Write the data provided to the compression codec, compressing no more
  22107. than the buffer size less the compression overhead as specified during
  22108. construction for each block.
  22109. Each block contains the uncompressed length for the block, followed by
  22110. one or more length-prefixed blocks of compressed data.]]>
  22111. </doc>
  22112. </method>
  22113. <method name="finish"
  22114. abstract="false" native="false" synchronized="false"
  22115. static="false" final="false" visibility="public"
  22116. deprecated="not deprecated">
  22117. <exception name="IOException" type="java.io.IOException"/>
  22118. </method>
  22119. <method name="compress"
  22120. abstract="false" native="false" synchronized="false"
  22121. static="false" final="false" visibility="protected"
  22122. deprecated="not deprecated">
  22123. <exception name="IOException" type="java.io.IOException"/>
  22124. </method>
  22125. <doc>
  22126. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  22127. with 'block-based' based compression algorithms, as opposed to
  22128. 'stream-based' compression algorithms.
  22129. It should be noted that this wrapper does not guarantee that blocks will
  22130. be sized for the compressor. If the
  22131. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  22132. effect meaningful compression, it is responsible for it.]]>
  22133. </doc>
  22134. </class>
  22135. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  22136. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  22137. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  22138. abstract="false"
  22139. static="false" final="false" visibility="public"
  22140. deprecated="not deprecated">
  22141. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  22142. static="false" final="false" visibility="public"
  22143. deprecated="not deprecated">
  22144. <exception name="IOException" type="java.io.IOException"/>
  22145. <doc>
  22146. <![CDATA[Create a {@link BlockDecompressorStream}.
  22147. @param in input stream
  22148. @param decompressor decompressor to use
  22149. @param bufferSize size of buffer
  22150. @throws IOException]]>
  22151. </doc>
  22152. </constructor>
  22153. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  22154. static="false" final="false" visibility="public"
  22155. deprecated="not deprecated">
  22156. <exception name="IOException" type="java.io.IOException"/>
  22157. <doc>
  22158. <![CDATA[Create a {@link BlockDecompressorStream}.
  22159. @param in input stream
  22160. @param decompressor decompressor to use
  22161. @throws IOException]]>
  22162. </doc>
  22163. </constructor>
  22164. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  22165. static="false" final="false" visibility="protected"
  22166. deprecated="not deprecated">
  22167. <exception name="IOException" type="java.io.IOException"/>
  22168. </constructor>
  22169. <method name="decompress" return="int"
  22170. abstract="false" native="false" synchronized="false"
  22171. static="false" final="false" visibility="protected"
  22172. deprecated="not deprecated">
  22173. <param name="b" type="byte[]"/>
  22174. <param name="off" type="int"/>
  22175. <param name="len" type="int"/>
  22176. <exception name="IOException" type="java.io.IOException"/>
  22177. </method>
  22178. <method name="getCompressedData" return="int"
  22179. abstract="false" native="false" synchronized="false"
  22180. static="false" final="false" visibility="protected"
  22181. deprecated="not deprecated">
  22182. <exception name="IOException" type="java.io.IOException"/>
  22183. </method>
  22184. <method name="resetState"
  22185. abstract="false" native="false" synchronized="false"
  22186. static="false" final="false" visibility="public"
  22187. deprecated="not deprecated">
  22188. <exception name="IOException" type="java.io.IOException"/>
  22189. </method>
  22190. <doc>
  22191. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  22192. with 'block-based' based compression algorithms, as opposed to
  22193. 'stream-based' compression algorithms.]]>
  22194. </doc>
  22195. </class>
  22196. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  22197. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  22198. <class name="BZip2Codec" extends="java.lang.Object"
  22199. abstract="false"
  22200. static="false" final="false" visibility="public"
  22201. deprecated="not deprecated">
  22202. <implements name="org.apache.hadoop.conf.Configurable"/>
  22203. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  22204. <constructor name="BZip2Codec"
  22205. static="false" final="false" visibility="public"
  22206. deprecated="not deprecated">
  22207. <doc>
  22208. <![CDATA[Creates a new instance of BZip2Codec.]]>
  22209. </doc>
  22210. </constructor>
  22211. <method name="setConf"
  22212. abstract="false" native="false" synchronized="false"
  22213. static="false" final="false" visibility="public"
  22214. deprecated="not deprecated">
  22215. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22216. <doc>
  22217. <![CDATA[Set the configuration to be used by this object.
  22218. @param conf the configuration object.]]>
  22219. </doc>
  22220. </method>
  22221. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22222. abstract="false" native="false" synchronized="false"
  22223. static="false" final="false" visibility="public"
  22224. deprecated="not deprecated">
  22225. <doc>
  22226. <![CDATA[Return the configuration used by this object.
  22227. @return the configuration object used by this objec.]]>
  22228. </doc>
  22229. </method>
  22230. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22231. abstract="false" native="false" synchronized="false"
  22232. static="false" final="false" visibility="public"
  22233. deprecated="not deprecated">
  22234. <param name="out" type="java.io.OutputStream"/>
  22235. <exception name="IOException" type="java.io.IOException"/>
  22236. <doc>
  22237. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22238. {@link OutputStream}.
  22239. @param out the location for the final output stream
  22240. @return a stream the user can write uncompressed data to, to have it
  22241. compressed
  22242. @throws IOException]]>
  22243. </doc>
  22244. </method>
  22245. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22246. abstract="false" native="false" synchronized="false"
  22247. static="false" final="false" visibility="public"
  22248. deprecated="not deprecated">
  22249. <param name="out" type="java.io.OutputStream"/>
  22250. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22251. <exception name="IOException" type="java.io.IOException"/>
  22252. <doc>
  22253. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22254. {@link OutputStream} with the given {@link Compressor}.
  22255. @param out the location for the final output stream
  22256. @param compressor compressor to use
  22257. @return a stream the user can write uncompressed data to, to have it
  22258. compressed
  22259. @throws IOException]]>
  22260. </doc>
  22261. </method>
  22262. <method name="getCompressorType" return="java.lang.Class"
  22263. abstract="false" native="false" synchronized="false"
  22264. static="false" final="false" visibility="public"
  22265. deprecated="not deprecated">
  22266. <doc>
  22267. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  22268. @return the type of compressor needed by this codec.]]>
  22269. </doc>
  22270. </method>
  22271. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22272. abstract="false" native="false" synchronized="false"
  22273. static="false" final="false" visibility="public"
  22274. deprecated="not deprecated">
  22275. <doc>
  22276. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  22277. @return a new compressor for use by this codec]]>
  22278. </doc>
  22279. </method>
  22280. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22281. abstract="false" native="false" synchronized="false"
  22282. static="false" final="false" visibility="public"
  22283. deprecated="not deprecated">
  22284. <param name="in" type="java.io.InputStream"/>
  22285. <exception name="IOException" type="java.io.IOException"/>
  22286. <doc>
  22287. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22288. input stream and return a stream for uncompressed data.
  22289. @param in the stream to read compressed bytes from
  22290. @return a stream to read uncompressed bytes from
  22291. @throws IOException]]>
  22292. </doc>
  22293. </method>
  22294. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22295. abstract="false" native="false" synchronized="false"
  22296. static="false" final="false" visibility="public"
  22297. deprecated="not deprecated">
  22298. <param name="in" type="java.io.InputStream"/>
  22299. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22300. <exception name="IOException" type="java.io.IOException"/>
  22301. <doc>
  22302. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22303. {@link InputStream} with the given {@link Decompressor}, and return a
  22304. stream for uncompressed data.
  22305. @param in the stream to read compressed bytes from
  22306. @param decompressor decompressor to use
  22307. @return a stream to read uncompressed bytes from
  22308. @throws IOException]]>
  22309. </doc>
  22310. </method>
  22311. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  22312. abstract="false" native="false" synchronized="false"
  22313. static="false" final="false" visibility="public"
  22314. deprecated="not deprecated">
  22315. <param name="seekableIn" type="java.io.InputStream"/>
  22316. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22317. <param name="start" type="long"/>
  22318. <param name="end" type="long"/>
  22319. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  22320. <exception name="IOException" type="java.io.IOException"/>
  22321. <doc>
  22322. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  22323. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  22324. @param seekableIn The InputStream
  22325. @param start The start offset into the compressed stream
  22326. @param end The end offset into the compressed stream
  22327. @param readMode Controls whether progress is reported continuously or
  22328. only at block boundaries.
  22329. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  22330. </doc>
  22331. </method>
  22332. <method name="getDecompressorType" return="java.lang.Class"
  22333. abstract="false" native="false" synchronized="false"
  22334. static="false" final="false" visibility="public"
  22335. deprecated="not deprecated">
  22336. <doc>
  22337. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  22338. @return the type of decompressor needed by this codec.]]>
  22339. </doc>
  22340. </method>
  22341. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22342. abstract="false" native="false" synchronized="false"
  22343. static="false" final="false" visibility="public"
  22344. deprecated="not deprecated">
  22345. <doc>
  22346. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  22347. @return a new decompressor for use by this codec]]>
  22348. </doc>
  22349. </method>
  22350. <method name="getDefaultExtension" return="java.lang.String"
  22351. abstract="false" native="false" synchronized="false"
  22352. static="false" final="false" visibility="public"
  22353. deprecated="not deprecated">
  22354. <doc>
  22355. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  22356. @return A String telling the default bzip2 file extension]]>
  22357. </doc>
  22358. </method>
  22359. <doc>
  22360. <![CDATA[This class provides output and input streams for bzip2 compression
  22361. and decompression. It uses the native bzip2 library on the system
  22362. if possible, else it uses a pure-Java implementation of the bzip2
  22363. algorithm. The configuration parameter
  22364. io.compression.codec.bzip2.library can be used to control this
  22365. behavior.
  22366. In the pure-Java mode, the Compressor and Decompressor interfaces
  22367. are not implemented. Therefore, in that mode, those methods of
  22368. CompressionCodec which have a Compressor or Decompressor type
  22369. argument, throw UnsupportedOperationException.
  22370. Currently, support for splittability is available only in the
  22371. pure-Java mode; therefore, if a SplitCompressionInputStream is
  22372. requested, the pure-Java implementation is used, regardless of the
  22373. setting of the configuration parameter mentioned above.]]>
  22374. </doc>
  22375. </class>
  22376. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  22377. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  22378. <class name="CodecPool" extends="java.lang.Object"
  22379. abstract="false"
  22380. static="false" final="false" visibility="public"
  22381. deprecated="not deprecated">
  22382. <constructor name="CodecPool"
  22383. static="false" final="false" visibility="public"
  22384. deprecated="not deprecated">
  22385. </constructor>
  22386. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22387. abstract="false" native="false" synchronized="false"
  22388. static="true" final="false" visibility="public"
  22389. deprecated="not deprecated">
  22390. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22391. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22392. <doc>
  22393. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  22394. pool or a new one.
  22395. @param codec the <code>CompressionCodec</code> for which to get the
  22396. <code>Compressor</code>
  22397. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  22398. @return <code>Compressor</code> for the given
  22399. <code>CompressionCodec</code> from the pool or a new one]]>
  22400. </doc>
  22401. </method>
  22402. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22403. abstract="false" native="false" synchronized="false"
  22404. static="true" final="false" visibility="public"
  22405. deprecated="not deprecated">
  22406. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22407. </method>
  22408. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22409. abstract="false" native="false" synchronized="false"
  22410. static="true" final="false" visibility="public"
  22411. deprecated="not deprecated">
  22412. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22413. <doc>
  22414. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  22415. pool or a new one.
  22416. @param codec the <code>CompressionCodec</code> for which to get the
  22417. <code>Decompressor</code>
  22418. @return <code>Decompressor</code> for the given
  22419. <code>CompressionCodec</code> the pool or a new one]]>
  22420. </doc>
  22421. </method>
  22422. <method name="returnCompressor"
  22423. abstract="false" native="false" synchronized="false"
  22424. static="true" final="false" visibility="public"
  22425. deprecated="not deprecated">
  22426. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22427. <doc>
  22428. <![CDATA[Return the {@link Compressor} to the pool.
  22429. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  22430. </doc>
  22431. </method>
  22432. <method name="returnDecompressor"
  22433. abstract="false" native="false" synchronized="false"
  22434. static="true" final="false" visibility="public"
  22435. deprecated="not deprecated">
  22436. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22437. <doc>
  22438. <![CDATA[Return the {@link Decompressor} to the pool.
  22439. @param decompressor the <code>Decompressor</code> to be returned to the
  22440. pool]]>
  22441. </doc>
  22442. </method>
  22443. <method name="getLeasedCompressorsCount" return="int"
  22444. abstract="false" native="false" synchronized="false"
  22445. static="true" final="false" visibility="public"
  22446. deprecated="not deprecated">
  22447. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22448. <doc>
  22449. <![CDATA[Return the number of leased {@link Compressor}s for this
  22450. {@link CompressionCodec}]]>
  22451. </doc>
  22452. </method>
  22453. <method name="getLeasedDecompressorsCount" return="int"
  22454. abstract="false" native="false" synchronized="false"
  22455. static="true" final="false" visibility="public"
  22456. deprecated="not deprecated">
  22457. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22458. <doc>
  22459. <![CDATA[Return the number of leased {@link Decompressor}s for this
  22460. {@link CompressionCodec}]]>
  22461. </doc>
  22462. </method>
  22463. <doc>
  22464. <![CDATA[A global compressor/decompressor pool used to save and reuse
  22465. (possibly native) compression/decompression codecs.]]>
  22466. </doc>
  22467. </class>
  22468. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  22469. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  22470. <interface name="CompressionCodec" abstract="true"
  22471. static="false" final="false" visibility="public"
  22472. deprecated="not deprecated">
  22473. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22474. abstract="false" native="false" synchronized="false"
  22475. static="false" final="false" visibility="public"
  22476. deprecated="not deprecated">
  22477. <param name="out" type="java.io.OutputStream"/>
  22478. <exception name="IOException" type="java.io.IOException"/>
  22479. <doc>
  22480. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22481. {@link OutputStream}.
  22482. @param out the location for the final output stream
  22483. @return a stream the user can write uncompressed data to have it compressed
  22484. @throws IOException]]>
  22485. </doc>
  22486. </method>
  22487. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22488. abstract="false" native="false" synchronized="false"
  22489. static="false" final="false" visibility="public"
  22490. deprecated="not deprecated">
  22491. <param name="out" type="java.io.OutputStream"/>
  22492. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22493. <exception name="IOException" type="java.io.IOException"/>
  22494. <doc>
  22495. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22496. {@link OutputStream} with the given {@link Compressor}.
  22497. @param out the location for the final output stream
  22498. @param compressor compressor to use
  22499. @return a stream the user can write uncompressed data to have it compressed
  22500. @throws IOException]]>
  22501. </doc>
  22502. </method>
  22503. <method name="getCompressorType" return="java.lang.Class"
  22504. abstract="false" native="false" synchronized="false"
  22505. static="false" final="false" visibility="public"
  22506. deprecated="not deprecated">
  22507. <doc>
  22508. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  22509. @return the type of compressor needed by this codec.]]>
  22510. </doc>
  22511. </method>
  22512. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22513. abstract="false" native="false" synchronized="false"
  22514. static="false" final="false" visibility="public"
  22515. deprecated="not deprecated">
  22516. <doc>
  22517. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  22518. @return a new compressor for use by this codec]]>
  22519. </doc>
  22520. </method>
  22521. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22522. abstract="false" native="false" synchronized="false"
  22523. static="false" final="false" visibility="public"
  22524. deprecated="not deprecated">
  22525. <param name="in" type="java.io.InputStream"/>
  22526. <exception name="IOException" type="java.io.IOException"/>
  22527. <doc>
  22528. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22529. input stream.
  22530. @param in the stream to read compressed bytes from
  22531. @return a stream to read uncompressed bytes from
  22532. @throws IOException]]>
  22533. </doc>
  22534. </method>
  22535. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22536. abstract="false" native="false" synchronized="false"
  22537. static="false" final="false" visibility="public"
  22538. deprecated="not deprecated">
  22539. <param name="in" type="java.io.InputStream"/>
  22540. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22541. <exception name="IOException" type="java.io.IOException"/>
  22542. <doc>
  22543. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22544. {@link InputStream} with the given {@link Decompressor}.
  22545. @param in the stream to read compressed bytes from
  22546. @param decompressor decompressor to use
  22547. @return a stream to read uncompressed bytes from
  22548. @throws IOException]]>
  22549. </doc>
  22550. </method>
  22551. <method name="getDecompressorType" return="java.lang.Class"
  22552. abstract="false" native="false" synchronized="false"
  22553. static="false" final="false" visibility="public"
  22554. deprecated="not deprecated">
  22555. <doc>
  22556. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  22557. @return the type of decompressor needed by this codec.]]>
  22558. </doc>
  22559. </method>
  22560. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22561. abstract="false" native="false" synchronized="false"
  22562. static="false" final="false" visibility="public"
  22563. deprecated="not deprecated">
  22564. <doc>
  22565. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  22566. @return a new decompressor for use by this codec]]>
  22567. </doc>
  22568. </method>
  22569. <method name="getDefaultExtension" return="java.lang.String"
  22570. abstract="false" native="false" synchronized="false"
  22571. static="false" final="false" visibility="public"
  22572. deprecated="not deprecated">
  22573. <doc>
  22574. <![CDATA[Get the default filename extension for this kind of compression.
  22575. @return the extension including the '.']]>
  22576. </doc>
  22577. </method>
  22578. <doc>
  22579. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  22580. </doc>
  22581. </interface>
  22582. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  22583. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  22584. <class name="CompressionCodecFactory" extends="java.lang.Object"
  22585. abstract="false"
  22586. static="false" final="false" visibility="public"
  22587. deprecated="not deprecated">
  22588. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  22589. static="false" final="false" visibility="public"
  22590. deprecated="not deprecated">
  22591. <doc>
  22592. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  22593. and register them. Defaults to gzip and deflate.]]>
  22594. </doc>
  22595. </constructor>
  22596. <method name="toString" return="java.lang.String"
  22597. abstract="false" native="false" synchronized="false"
  22598. static="false" final="false" visibility="public"
  22599. deprecated="not deprecated">
  22600. <doc>
  22601. <![CDATA[Print the extension map out as a string.]]>
  22602. </doc>
  22603. </method>
  22604. <method name="getCodecClasses" return="java.util.List"
  22605. abstract="false" native="false" synchronized="false"
  22606. static="true" final="false" visibility="public"
  22607. deprecated="not deprecated">
  22608. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22609. <doc>
  22610. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  22611. listed in the configuration. Codecs specified in configuration come
  22612. later in the returned list, and are considered to override those
  22613. from the ServiceLoader.
  22614. @param conf the configuration to look in
  22615. @return a list of the {@link CompressionCodec} classes]]>
  22616. </doc>
  22617. </method>
  22618. <method name="setCodecClasses"
  22619. abstract="false" native="false" synchronized="false"
  22620. static="true" final="false" visibility="public"
  22621. deprecated="not deprecated">
  22622. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22623. <param name="classes" type="java.util.List"/>
  22624. <doc>
  22625. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  22626. classes specified using this method, {@link CompressionCodec} classes on
  22627. the classpath are discovered using a Java ServiceLoader.
  22628. @param conf the configuration to modify
  22629. @param classes the list of classes to set]]>
  22630. </doc>
  22631. </method>
  22632. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  22633. abstract="false" native="false" synchronized="false"
  22634. static="false" final="false" visibility="public"
  22635. deprecated="not deprecated">
  22636. <param name="file" type="org.apache.hadoop.fs.Path"/>
  22637. <doc>
  22638. <![CDATA[Find the relevant compression codec for the given file based on its
  22639. filename suffix.
  22640. @param file the filename to check
  22641. @return the codec object]]>
  22642. </doc>
  22643. </method>
  22644. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  22645. abstract="false" native="false" synchronized="false"
  22646. static="false" final="false" visibility="public"
  22647. deprecated="not deprecated">
  22648. <param name="classname" type="java.lang.String"/>
  22649. <doc>
  22650. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  22651. @param classname the canonical class name of the codec
  22652. @return the codec object]]>
  22653. </doc>
  22654. </method>
  22655. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  22656. abstract="false" native="false" synchronized="false"
  22657. static="false" final="false" visibility="public"
  22658. deprecated="not deprecated">
  22659. <param name="codecName" type="java.lang.String"/>
  22660. <doc>
  22661. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  22662. or by codec alias.
  22663. <p/>
  22664. Codec aliases are case insensitive.
  22665. <p/>
  22666. The code alias is the short class name (without the package name).
  22667. If the short class name ends with 'Codec', then there are two aliases for
  22668. the codec, the complete short class name and the short class name without
  22669. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  22670. alias are 'gzip' and 'gzipcodec'.
  22671. @param codecName the canonical class name of the codec
  22672. @return the codec object]]>
  22673. </doc>
  22674. </method>
  22675. <method name="getCodecClassByName" return="java.lang.Class"
  22676. abstract="false" native="false" synchronized="false"
  22677. static="false" final="false" visibility="public"
  22678. deprecated="not deprecated">
  22679. <param name="codecName" type="java.lang.String"/>
  22680. <doc>
  22681. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  22682. or by codec alias and returns its implemetation class.
  22683. <p/>
  22684. Codec aliases are case insensitive.
  22685. <p/>
  22686. The code alias is the short class name (without the package name).
  22687. If the short class name ends with 'Codec', then there are two aliases for
  22688. the codec, the complete short class name and the short class name without
  22689. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  22690. alias are 'gzip' and 'gzipcodec'.
  22691. @param codecName the canonical class name of the codec
  22692. @return the codec class]]>
  22693. </doc>
  22694. </method>
  22695. <method name="removeSuffix" return="java.lang.String"
  22696. abstract="false" native="false" synchronized="false"
  22697. static="true" final="false" visibility="public"
  22698. deprecated="not deprecated">
  22699. <param name="filename" type="java.lang.String"/>
  22700. <param name="suffix" type="java.lang.String"/>
  22701. <doc>
  22702. <![CDATA[Removes a suffix from a filename, if it has it.
  22703. @param filename the filename to strip
  22704. @param suffix the suffix to remove
  22705. @return the shortened filename]]>
  22706. </doc>
  22707. </method>
  22708. <method name="main"
  22709. abstract="false" native="false" synchronized="false"
  22710. static="true" final="false" visibility="public"
  22711. deprecated="not deprecated">
  22712. <param name="args" type="java.lang.String[]"/>
  22713. <exception name="Exception" type="java.lang.Exception"/>
  22714. <doc>
  22715. <![CDATA[A little test program.
  22716. @param args]]>
  22717. </doc>
  22718. </method>
  22719. <field name="LOG" type="org.slf4j.Logger"
  22720. transient="false" volatile="false"
  22721. static="true" final="true" visibility="public"
  22722. deprecated="not deprecated">
  22723. </field>
  22724. <doc>
  22725. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  22726. </doc>
  22727. </class>
  22728. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  22729. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  22730. <class name="CompressionInputStream" extends="java.io.InputStream"
  22731. abstract="true"
  22732. static="false" final="false" visibility="public"
  22733. deprecated="not deprecated">
  22734. <implements name="org.apache.hadoop.fs.Seekable"/>
  22735. <constructor name="CompressionInputStream" type="java.io.InputStream"
  22736. static="false" final="false" visibility="protected"
  22737. deprecated="not deprecated">
  22738. <exception name="IOException" type="java.io.IOException"/>
  22739. <doc>
  22740. <![CDATA[Create a compression input stream that reads
  22741. the decompressed bytes from the given stream.
  22742. @param in The input stream to be compressed.
  22743. @throws IOException]]>
  22744. </doc>
  22745. </constructor>
  22746. <method name="close"
  22747. abstract="false" native="false" synchronized="false"
  22748. static="false" final="false" visibility="public"
  22749. deprecated="not deprecated">
  22750. <exception name="IOException" type="java.io.IOException"/>
  22751. </method>
  22752. <method name="read" return="int"
  22753. abstract="true" native="false" synchronized="false"
  22754. static="false" final="false" visibility="public"
  22755. deprecated="not deprecated">
  22756. <param name="b" type="byte[]"/>
  22757. <param name="off" type="int"/>
  22758. <param name="len" type="int"/>
  22759. <exception name="IOException" type="java.io.IOException"/>
  22760. <doc>
  22761. <![CDATA[Read bytes from the stream.
  22762. Made abstract to prevent leakage to underlying stream.]]>
  22763. </doc>
  22764. </method>
  22765. <method name="resetState"
  22766. abstract="true" native="false" synchronized="false"
  22767. static="false" final="false" visibility="public"
  22768. deprecated="not deprecated">
  22769. <exception name="IOException" type="java.io.IOException"/>
  22770. <doc>
  22771. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  22772. as the underlying stream may have been repositioned.]]>
  22773. </doc>
  22774. </method>
  22775. <method name="getPos" return="long"
  22776. abstract="false" native="false" synchronized="false"
  22777. static="false" final="false" visibility="public"
  22778. deprecated="not deprecated">
  22779. <exception name="IOException" type="java.io.IOException"/>
  22780. <doc>
  22781. <![CDATA[This method returns the current position in the stream.
  22782. @return Current position in stream as a long]]>
  22783. </doc>
  22784. </method>
  22785. <method name="seek"
  22786. abstract="false" native="false" synchronized="false"
  22787. static="false" final="false" visibility="public"
  22788. deprecated="not deprecated">
  22789. <param name="pos" type="long"/>
  22790. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22791. <doc>
  22792. <![CDATA[This method is current not supported.
  22793. @throws UnsupportedOperationException]]>
  22794. </doc>
  22795. </method>
  22796. <method name="seekToNewSource" return="boolean"
  22797. abstract="false" native="false" synchronized="false"
  22798. static="false" final="false" visibility="public"
  22799. deprecated="not deprecated">
  22800. <param name="targetPos" type="long"/>
  22801. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22802. <doc>
  22803. <![CDATA[This method is current not supported.
  22804. @throws UnsupportedOperationException]]>
  22805. </doc>
  22806. </method>
  22807. <field name="in" type="java.io.InputStream"
  22808. transient="false" volatile="false"
  22809. static="false" final="true" visibility="protected"
  22810. deprecated="not deprecated">
  22811. <doc>
  22812. <![CDATA[The input stream to be compressed.]]>
  22813. </doc>
  22814. </field>
  22815. <field name="maxAvailableData" type="long"
  22816. transient="false" volatile="false"
  22817. static="false" final="false" visibility="protected"
  22818. deprecated="not deprecated">
  22819. </field>
  22820. <doc>
  22821. <![CDATA[A compression input stream.
  22822. <p>Implementations are assumed to be buffered. This permits clients to
  22823. reposition the underlying input stream then call {@link #resetState()},
  22824. without having to also synchronize client buffers.]]>
  22825. </doc>
  22826. </class>
  22827. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  22828. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  22829. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  22830. abstract="true"
  22831. static="false" final="false" visibility="public"
  22832. deprecated="not deprecated">
  22833. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  22834. static="false" final="false" visibility="protected"
  22835. deprecated="not deprecated">
  22836. <doc>
  22837. <![CDATA[Create a compression output stream that writes
  22838. the compressed bytes to the given stream.
  22839. @param out]]>
  22840. </doc>
  22841. </constructor>
  22842. <method name="close"
  22843. abstract="false" native="false" synchronized="false"
  22844. static="false" final="false" visibility="public"
  22845. deprecated="not deprecated">
  22846. <exception name="IOException" type="java.io.IOException"/>
  22847. </method>
  22848. <method name="flush"
  22849. abstract="false" native="false" synchronized="false"
  22850. static="false" final="false" visibility="public"
  22851. deprecated="not deprecated">
  22852. <exception name="IOException" type="java.io.IOException"/>
  22853. </method>
  22854. <method name="write"
  22855. abstract="true" native="false" synchronized="false"
  22856. static="false" final="false" visibility="public"
  22857. deprecated="not deprecated">
  22858. <param name="b" type="byte[]"/>
  22859. <param name="off" type="int"/>
  22860. <param name="len" type="int"/>
  22861. <exception name="IOException" type="java.io.IOException"/>
  22862. <doc>
  22863. <![CDATA[Write compressed bytes to the stream.
  22864. Made abstract to prevent leakage to underlying stream.]]>
  22865. </doc>
  22866. </method>
  22867. <method name="finish"
  22868. abstract="true" native="false" synchronized="false"
  22869. static="false" final="false" visibility="public"
  22870. deprecated="not deprecated">
  22871. <exception name="IOException" type="java.io.IOException"/>
  22872. <doc>
  22873. <![CDATA[Finishes writing compressed data to the output stream
  22874. without closing the underlying stream.]]>
  22875. </doc>
  22876. </method>
  22877. <method name="resetState"
  22878. abstract="true" native="false" synchronized="false"
  22879. static="false" final="false" visibility="public"
  22880. deprecated="not deprecated">
  22881. <exception name="IOException" type="java.io.IOException"/>
  22882. <doc>
  22883. <![CDATA[Reset the compression to the initial state.
  22884. Does not reset the underlying stream.]]>
  22885. </doc>
  22886. </method>
  22887. <field name="out" type="java.io.OutputStream"
  22888. transient="false" volatile="false"
  22889. static="false" final="true" visibility="protected"
  22890. deprecated="not deprecated">
  22891. <doc>
  22892. <![CDATA[The output stream to be compressed.]]>
  22893. </doc>
  22894. </field>
  22895. <doc>
  22896. <![CDATA[A compression output stream.]]>
  22897. </doc>
  22898. </class>
  22899. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  22900. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  22901. <interface name="Compressor" abstract="true"
  22902. static="false" final="false" visibility="public"
  22903. deprecated="not deprecated">
  22904. <method name="setInput"
  22905. abstract="false" native="false" synchronized="false"
  22906. static="false" final="false" visibility="public"
  22907. deprecated="not deprecated">
  22908. <param name="b" type="byte[]"/>
  22909. <param name="off" type="int"/>
  22910. <param name="len" type="int"/>
  22911. <doc>
  22912. <![CDATA[Sets input data for compression.
  22913. This should be called whenever #needsInput() returns
  22914. <code>true</code> indicating that more input data is required.
  22915. @param b Input data
  22916. @param off Start offset
  22917. @param len Length]]>
  22918. </doc>
  22919. </method>
  22920. <method name="needsInput" return="boolean"
  22921. abstract="false" native="false" synchronized="false"
  22922. static="false" final="false" visibility="public"
  22923. deprecated="not deprecated">
  22924. <doc>
  22925. <![CDATA[Returns true if the input data buffer is empty and
  22926. #setInput() should be called to provide more input.
  22927. @return <code>true</code> if the input data buffer is empty and
  22928. #setInput() should be called in order to provide more input.]]>
  22929. </doc>
  22930. </method>
  22931. <method name="setDictionary"
  22932. abstract="false" native="false" synchronized="false"
  22933. static="false" final="false" visibility="public"
  22934. deprecated="not deprecated">
  22935. <param name="b" type="byte[]"/>
  22936. <param name="off" type="int"/>
  22937. <param name="len" type="int"/>
  22938. <doc>
  22939. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  22940. is used when the history buffer can be predetermined.
  22941. @param b Dictionary data bytes
  22942. @param off Start offset
  22943. @param len Length]]>
  22944. </doc>
  22945. </method>
  22946. <method name="getBytesRead" return="long"
  22947. abstract="false" native="false" synchronized="false"
  22948. static="false" final="false" visibility="public"
  22949. deprecated="not deprecated">
  22950. <doc>
  22951. <![CDATA[Return number of uncompressed bytes input so far.]]>
  22952. </doc>
  22953. </method>
  22954. <method name="getBytesWritten" return="long"
  22955. abstract="false" native="false" synchronized="false"
  22956. static="false" final="false" visibility="public"
  22957. deprecated="not deprecated">
  22958. <doc>
  22959. <![CDATA[Return number of compressed bytes output so far.]]>
  22960. </doc>
  22961. </method>
  22962. <method name="finish"
  22963. abstract="false" native="false" synchronized="false"
  22964. static="false" final="false" visibility="public"
  22965. deprecated="not deprecated">
  22966. <doc>
  22967. <![CDATA[When called, indicates that compression should end
  22968. with the current contents of the input buffer.]]>
  22969. </doc>
  22970. </method>
  22971. <method name="finished" return="boolean"
  22972. abstract="false" native="false" synchronized="false"
  22973. static="false" final="false" visibility="public"
  22974. deprecated="not deprecated">
  22975. <doc>
  22976. <![CDATA[Returns true if the end of the compressed
  22977. data output stream has been reached.
  22978. @return <code>true</code> if the end of the compressed
  22979. data output stream has been reached.]]>
  22980. </doc>
  22981. </method>
  22982. <method name="compress" return="int"
  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="off" type="int"/>
  22988. <param name="len" type="int"/>
  22989. <exception name="IOException" type="java.io.IOException"/>
  22990. <doc>
  22991. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  22992. of bytes of compressed data. A return value of 0 indicates that
  22993. needsInput() should be called in order to determine if more input
  22994. data is required.
  22995. @param b Buffer for the compressed data
  22996. @param off Start offset of the data
  22997. @param len Size of the buffer
  22998. @return The actual number of bytes of compressed data.]]>
  22999. </doc>
  23000. </method>
  23001. <method name="reset"
  23002. abstract="false" native="false" synchronized="false"
  23003. static="false" final="false" visibility="public"
  23004. deprecated="not deprecated">
  23005. <doc>
  23006. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  23007. </doc>
  23008. </method>
  23009. <method name="end"
  23010. abstract="false" native="false" synchronized="false"
  23011. static="false" final="false" visibility="public"
  23012. deprecated="not deprecated">
  23013. <doc>
  23014. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  23015. </doc>
  23016. </method>
  23017. <method name="reinit"
  23018. abstract="false" native="false" synchronized="false"
  23019. static="false" final="false" visibility="public"
  23020. deprecated="not deprecated">
  23021. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23022. <doc>
  23023. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  23024. the given Configuration
  23025. @param conf Configuration from which new setting are fetched]]>
  23026. </doc>
  23027. </method>
  23028. <doc>
  23029. <![CDATA[Specification of a stream-based 'compressor' which can be
  23030. plugged into a {@link CompressionOutputStream} to compress data.
  23031. This is modelled after {@link java.util.zip.Deflater}]]>
  23032. </doc>
  23033. </interface>
  23034. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  23035. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  23036. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  23037. abstract="false"
  23038. static="false" final="false" visibility="public"
  23039. deprecated="not deprecated">
  23040. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  23041. static="false" final="false" visibility="public"
  23042. deprecated="not deprecated">
  23043. </constructor>
  23044. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  23045. static="false" final="false" visibility="public"
  23046. deprecated="not deprecated">
  23047. </constructor>
  23048. <constructor name="CompressorStream" type="java.io.OutputStream"
  23049. static="false" final="false" visibility="protected"
  23050. deprecated="not deprecated">
  23051. <doc>
  23052. <![CDATA[Allow derived classes to directly set the underlying stream.
  23053. @param out Underlying output stream.]]>
  23054. </doc>
  23055. </constructor>
  23056. <method name="write"
  23057. abstract="false" native="false" synchronized="false"
  23058. static="false" final="false" visibility="public"
  23059. deprecated="not deprecated">
  23060. <param name="b" type="byte[]"/>
  23061. <param name="off" type="int"/>
  23062. <param name="len" type="int"/>
  23063. <exception name="IOException" type="java.io.IOException"/>
  23064. </method>
  23065. <method name="compress"
  23066. abstract="false" native="false" synchronized="false"
  23067. static="false" final="false" visibility="protected"
  23068. deprecated="not deprecated">
  23069. <exception name="IOException" type="java.io.IOException"/>
  23070. </method>
  23071. <method name="finish"
  23072. abstract="false" native="false" synchronized="false"
  23073. static="false" final="false" visibility="public"
  23074. deprecated="not deprecated">
  23075. <exception name="IOException" type="java.io.IOException"/>
  23076. </method>
  23077. <method name="resetState"
  23078. abstract="false" native="false" synchronized="false"
  23079. static="false" final="false" visibility="public"
  23080. deprecated="not deprecated">
  23081. <exception name="IOException" type="java.io.IOException"/>
  23082. </method>
  23083. <method name="close"
  23084. abstract="false" native="false" synchronized="false"
  23085. static="false" final="false" visibility="public"
  23086. deprecated="not deprecated">
  23087. <exception name="IOException" type="java.io.IOException"/>
  23088. </method>
  23089. <method name="write"
  23090. abstract="false" native="false" synchronized="false"
  23091. static="false" final="false" visibility="public"
  23092. deprecated="not deprecated">
  23093. <param name="b" type="int"/>
  23094. <exception name="IOException" type="java.io.IOException"/>
  23095. </method>
  23096. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  23097. transient="false" volatile="false"
  23098. static="false" final="false" visibility="protected"
  23099. deprecated="not deprecated">
  23100. </field>
  23101. <field name="buffer" type="byte[]"
  23102. transient="false" volatile="false"
  23103. static="false" final="false" visibility="protected"
  23104. deprecated="not deprecated">
  23105. </field>
  23106. <field name="closed" type="boolean"
  23107. transient="false" volatile="false"
  23108. static="false" final="false" visibility="protected"
  23109. deprecated="not deprecated">
  23110. </field>
  23111. </class>
  23112. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  23113. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  23114. <interface name="Decompressor" abstract="true"
  23115. static="false" final="false" visibility="public"
  23116. deprecated="not deprecated">
  23117. <method name="setInput"
  23118. abstract="false" native="false" synchronized="false"
  23119. static="false" final="false" visibility="public"
  23120. deprecated="not deprecated">
  23121. <param name="b" type="byte[]"/>
  23122. <param name="off" type="int"/>
  23123. <param name="len" type="int"/>
  23124. <doc>
  23125. <![CDATA[Sets input data for decompression.
  23126. This should be called if and only if {@link #needsInput()} returns
  23127. <code>true</code> indicating that more input data is required.
  23128. (Both native and non-native versions of various Decompressors require
  23129. that the data passed in via <code>b[]</code> remain unmodified until
  23130. the caller is explicitly notified--via {@link #needsInput()}--that the
  23131. buffer may be safely modified. With this requirement, an extra
  23132. buffer-copy can be avoided.)
  23133. @param b Input data
  23134. @param off Start offset
  23135. @param len Length]]>
  23136. </doc>
  23137. </method>
  23138. <method name="needsInput" return="boolean"
  23139. abstract="false" native="false" synchronized="false"
  23140. static="false" final="false" visibility="public"
  23141. deprecated="not deprecated">
  23142. <doc>
  23143. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  23144. {@link #setInput(byte[], int, int)} should be called to
  23145. provide more input.
  23146. @return <code>true</code> if the input data buffer is empty and
  23147. {@link #setInput(byte[], int, int)} should be called in
  23148. order to provide more input.]]>
  23149. </doc>
  23150. </method>
  23151. <method name="setDictionary"
  23152. abstract="false" native="false" synchronized="false"
  23153. static="false" final="false" visibility="public"
  23154. deprecated="not deprecated">
  23155. <param name="b" type="byte[]"/>
  23156. <param name="off" type="int"/>
  23157. <param name="len" type="int"/>
  23158. <doc>
  23159. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  23160. is used when the history buffer can be predetermined.
  23161. @param b Dictionary data bytes
  23162. @param off Start offset
  23163. @param len Length]]>
  23164. </doc>
  23165. </method>
  23166. <method name="needsDictionary" return="boolean"
  23167. abstract="false" native="false" synchronized="false"
  23168. static="false" final="false" visibility="public"
  23169. deprecated="not deprecated">
  23170. <doc>
  23171. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  23172. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  23173. </doc>
  23174. </method>
  23175. <method name="finished" return="boolean"
  23176. abstract="false" native="false" synchronized="false"
  23177. static="false" final="false" visibility="public"
  23178. deprecated="not deprecated">
  23179. <doc>
  23180. <![CDATA[Returns <code>true</code> if the end of the decompressed
  23181. data output stream has been reached. Indicates a concatenated data stream
  23182. when finished() returns <code>true</code> and {@link #getRemaining()}
  23183. returns a positive value. finished() will be reset with the
  23184. {@link #reset()} method.
  23185. @return <code>true</code> if the end of the decompressed
  23186. data output stream has been reached.]]>
  23187. </doc>
  23188. </method>
  23189. <method name="decompress" return="int"
  23190. abstract="false" native="false" synchronized="false"
  23191. static="false" final="false" visibility="public"
  23192. deprecated="not deprecated">
  23193. <param name="b" type="byte[]"/>
  23194. <param name="off" type="int"/>
  23195. <param name="len" type="int"/>
  23196. <exception name="IOException" type="java.io.IOException"/>
  23197. <doc>
  23198. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  23199. of bytes of uncompressed data. A return value of 0 indicates that
  23200. {@link #needsInput()} should be called in order to determine if more
  23201. input data is required.
  23202. @param b Buffer for the compressed data
  23203. @param off Start offset of the data
  23204. @param len Size of the buffer
  23205. @return The actual number of bytes of uncompressed data.
  23206. @throws IOException]]>
  23207. </doc>
  23208. </method>
  23209. <method name="getRemaining" return="int"
  23210. abstract="false" native="false" synchronized="false"
  23211. static="false" final="false" visibility="public"
  23212. deprecated="not deprecated">
  23213. <doc>
  23214. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  23215. Indicates a concatenated data stream if {@link #finished()} returns
  23216. <code>true</code> and getRemaining() returns a positive value. If
  23217. {@link #finished()} returns <code>true</code> and getRemaining() returns
  23218. a zero value, indicates that the end of data stream has been reached and
  23219. is not a concatenated data stream.
  23220. @return The number of bytes remaining in the compressed data buffer.]]>
  23221. </doc>
  23222. </method>
  23223. <method name="reset"
  23224. abstract="false" native="false" synchronized="false"
  23225. static="false" final="false" visibility="public"
  23226. deprecated="not deprecated">
  23227. <doc>
  23228. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  23229. input data can be processed. If {@link #finished()}} returns
  23230. <code>true</code> and {@link #getRemaining()} returns a positive value,
  23231. reset() is called before processing of the next data stream in the
  23232. concatenated data stream. {@link #finished()} will be reset and will
  23233. return <code>false</code> when reset() is called.]]>
  23234. </doc>
  23235. </method>
  23236. <method name="end"
  23237. abstract="false" native="false" synchronized="false"
  23238. static="false" final="false" visibility="public"
  23239. deprecated="not deprecated">
  23240. <doc>
  23241. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  23242. </doc>
  23243. </method>
  23244. <doc>
  23245. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  23246. plugged into a {@link CompressionInputStream} to compress data.
  23247. This is modelled after {@link java.util.zip.Inflater}]]>
  23248. </doc>
  23249. </interface>
  23250. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  23251. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  23252. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  23253. abstract="false"
  23254. static="false" final="false" visibility="public"
  23255. deprecated="not deprecated">
  23256. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  23257. static="false" final="false" visibility="public"
  23258. deprecated="not deprecated">
  23259. <exception name="IOException" type="java.io.IOException"/>
  23260. </constructor>
  23261. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  23262. static="false" final="false" visibility="public"
  23263. deprecated="not deprecated">
  23264. <exception name="IOException" type="java.io.IOException"/>
  23265. </constructor>
  23266. <constructor name="DecompressorStream" type="java.io.InputStream"
  23267. static="false" final="false" visibility="protected"
  23268. deprecated="not deprecated">
  23269. <exception name="IOException" type="java.io.IOException"/>
  23270. <doc>
  23271. <![CDATA[Allow derived classes to directly set the underlying stream.
  23272. @param in Underlying input stream.
  23273. @throws IOException]]>
  23274. </doc>
  23275. </constructor>
  23276. <method name="read" return="int"
  23277. abstract="false" native="false" synchronized="false"
  23278. static="false" final="false" visibility="public"
  23279. deprecated="not deprecated">
  23280. <exception name="IOException" type="java.io.IOException"/>
  23281. </method>
  23282. <method name="read" return="int"
  23283. abstract="false" native="false" synchronized="false"
  23284. static="false" final="false" visibility="public"
  23285. deprecated="not deprecated">
  23286. <param name="b" type="byte[]"/>
  23287. <param name="off" type="int"/>
  23288. <param name="len" type="int"/>
  23289. <exception name="IOException" type="java.io.IOException"/>
  23290. </method>
  23291. <method name="decompress" return="int"
  23292. abstract="false" native="false" synchronized="false"
  23293. static="false" final="false" visibility="protected"
  23294. deprecated="not deprecated">
  23295. <param name="b" type="byte[]"/>
  23296. <param name="off" type="int"/>
  23297. <param name="len" type="int"/>
  23298. <exception name="IOException" type="java.io.IOException"/>
  23299. </method>
  23300. <method name="getCompressedData" return="int"
  23301. abstract="false" native="false" synchronized="false"
  23302. static="false" final="false" visibility="protected"
  23303. deprecated="not deprecated">
  23304. <exception name="IOException" type="java.io.IOException"/>
  23305. </method>
  23306. <method name="checkStream"
  23307. abstract="false" native="false" synchronized="false"
  23308. static="false" final="false" visibility="protected"
  23309. deprecated="not deprecated">
  23310. <exception name="IOException" type="java.io.IOException"/>
  23311. </method>
  23312. <method name="resetState"
  23313. abstract="false" native="false" synchronized="false"
  23314. static="false" final="false" visibility="public"
  23315. deprecated="not deprecated">
  23316. <exception name="IOException" type="java.io.IOException"/>
  23317. </method>
  23318. <method name="skip" return="long"
  23319. abstract="false" native="false" synchronized="false"
  23320. static="false" final="false" visibility="public"
  23321. deprecated="not deprecated">
  23322. <param name="n" type="long"/>
  23323. <exception name="IOException" type="java.io.IOException"/>
  23324. </method>
  23325. <method name="available" return="int"
  23326. abstract="false" native="false" synchronized="false"
  23327. static="false" final="false" visibility="public"
  23328. deprecated="not deprecated">
  23329. <exception name="IOException" type="java.io.IOException"/>
  23330. </method>
  23331. <method name="close"
  23332. abstract="false" native="false" synchronized="false"
  23333. static="false" final="false" visibility="public"
  23334. deprecated="not deprecated">
  23335. <exception name="IOException" type="java.io.IOException"/>
  23336. </method>
  23337. <method name="markSupported" return="boolean"
  23338. abstract="false" native="false" synchronized="false"
  23339. static="false" final="false" visibility="public"
  23340. deprecated="not deprecated">
  23341. </method>
  23342. <method name="mark"
  23343. abstract="false" native="false" synchronized="true"
  23344. static="false" final="false" visibility="public"
  23345. deprecated="not deprecated">
  23346. <param name="readlimit" type="int"/>
  23347. </method>
  23348. <method name="reset"
  23349. abstract="false" native="false" synchronized="true"
  23350. static="false" final="false" visibility="public"
  23351. deprecated="not deprecated">
  23352. <exception name="IOException" type="java.io.IOException"/>
  23353. </method>
  23354. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  23355. transient="false" volatile="false"
  23356. static="false" final="false" visibility="protected"
  23357. deprecated="not deprecated">
  23358. </field>
  23359. <field name="buffer" type="byte[]"
  23360. transient="false" volatile="false"
  23361. static="false" final="false" visibility="protected"
  23362. deprecated="not deprecated">
  23363. </field>
  23364. <field name="eof" type="boolean"
  23365. transient="false" volatile="false"
  23366. static="false" final="false" visibility="protected"
  23367. deprecated="not deprecated">
  23368. </field>
  23369. <field name="closed" type="boolean"
  23370. transient="false" volatile="false"
  23371. static="false" final="false" visibility="protected"
  23372. deprecated="not deprecated">
  23373. </field>
  23374. </class>
  23375. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  23376. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  23377. <class name="DefaultCodec" extends="java.lang.Object"
  23378. abstract="false"
  23379. static="false" final="false" visibility="public"
  23380. deprecated="not deprecated">
  23381. <implements name="org.apache.hadoop.conf.Configurable"/>
  23382. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23383. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  23384. <constructor name="DefaultCodec"
  23385. static="false" final="false" visibility="public"
  23386. deprecated="not deprecated">
  23387. </constructor>
  23388. <method name="setConf"
  23389. abstract="false" native="false" synchronized="false"
  23390. static="false" final="false" visibility="public"
  23391. deprecated="not deprecated">
  23392. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23393. </method>
  23394. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  23395. abstract="false" native="false" synchronized="false"
  23396. static="false" final="false" visibility="public"
  23397. deprecated="not deprecated">
  23398. </method>
  23399. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23400. abstract="false" native="false" synchronized="false"
  23401. static="false" final="false" visibility="public"
  23402. deprecated="not deprecated">
  23403. <param name="out" type="java.io.OutputStream"/>
  23404. <exception name="IOException" type="java.io.IOException"/>
  23405. </method>
  23406. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23407. abstract="false" native="false" synchronized="false"
  23408. static="false" final="false" visibility="public"
  23409. deprecated="not deprecated">
  23410. <param name="out" type="java.io.OutputStream"/>
  23411. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  23412. <exception name="IOException" type="java.io.IOException"/>
  23413. </method>
  23414. <method name="getCompressorType" return="java.lang.Class"
  23415. abstract="false" native="false" synchronized="false"
  23416. static="false" final="false" visibility="public"
  23417. deprecated="not deprecated">
  23418. </method>
  23419. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  23420. abstract="false" native="false" synchronized="false"
  23421. static="false" final="false" visibility="public"
  23422. deprecated="not deprecated">
  23423. </method>
  23424. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23425. abstract="false" native="false" synchronized="false"
  23426. static="false" final="false" visibility="public"
  23427. deprecated="not deprecated">
  23428. <param name="in" type="java.io.InputStream"/>
  23429. <exception name="IOException" type="java.io.IOException"/>
  23430. </method>
  23431. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23432. abstract="false" native="false" synchronized="false"
  23433. static="false" final="false" visibility="public"
  23434. deprecated="not deprecated">
  23435. <param name="in" type="java.io.InputStream"/>
  23436. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23437. <exception name="IOException" type="java.io.IOException"/>
  23438. </method>
  23439. <method name="getDecompressorType" return="java.lang.Class"
  23440. abstract="false" native="false" synchronized="false"
  23441. static="false" final="false" visibility="public"
  23442. deprecated="not deprecated">
  23443. </method>
  23444. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  23445. abstract="false" native="false" synchronized="false"
  23446. static="false" final="false" visibility="public"
  23447. deprecated="not deprecated">
  23448. </method>
  23449. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23450. abstract="false" native="false" synchronized="false"
  23451. static="false" final="false" visibility="public"
  23452. deprecated="not deprecated">
  23453. <doc>
  23454. <![CDATA[{@inheritDoc}]]>
  23455. </doc>
  23456. </method>
  23457. <method name="getDefaultExtension" return="java.lang.String"
  23458. abstract="false" native="false" synchronized="false"
  23459. static="false" final="false" visibility="public"
  23460. deprecated="not deprecated">
  23461. </method>
  23462. </class>
  23463. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  23464. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  23465. <interface name="DirectDecompressionCodec" abstract="true"
  23466. static="false" final="false" visibility="public"
  23467. deprecated="not deprecated">
  23468. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23469. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23470. abstract="false" native="false" synchronized="false"
  23471. static="false" final="false" visibility="public"
  23472. deprecated="not deprecated">
  23473. <doc>
  23474. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  23475. @return a new direct decompressor for use by this codec]]>
  23476. </doc>
  23477. </method>
  23478. <doc>
  23479. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  23480. </doc>
  23481. </interface>
  23482. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  23483. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  23484. <interface name="DirectDecompressor" abstract="true"
  23485. static="false" final="false" visibility="public"
  23486. deprecated="not deprecated">
  23487. <method name="decompress"
  23488. abstract="false" native="false" synchronized="false"
  23489. static="false" final="false" visibility="public"
  23490. deprecated="not deprecated">
  23491. <param name="src" type="java.nio.ByteBuffer"/>
  23492. <param name="dst" type="java.nio.ByteBuffer"/>
  23493. <exception name="IOException" type="java.io.IOException"/>
  23494. </method>
  23495. <doc>
  23496. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  23497. </doc>
  23498. </interface>
  23499. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  23500. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  23501. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  23502. abstract="false"
  23503. static="false" final="false" visibility="public"
  23504. deprecated="not deprecated">
  23505. <constructor name="GzipCodec"
  23506. static="false" final="false" visibility="public"
  23507. deprecated="not deprecated">
  23508. </constructor>
  23509. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23510. abstract="false" native="false" synchronized="false"
  23511. static="false" final="false" visibility="public"
  23512. deprecated="not deprecated">
  23513. <param name="out" type="java.io.OutputStream"/>
  23514. <exception name="IOException" type="java.io.IOException"/>
  23515. </method>
  23516. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23517. abstract="false" native="false" synchronized="false"
  23518. static="false" final="false" visibility="public"
  23519. deprecated="not deprecated">
  23520. <param name="out" type="java.io.OutputStream"/>
  23521. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  23522. <exception name="IOException" type="java.io.IOException"/>
  23523. </method>
  23524. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  23525. abstract="false" native="false" synchronized="false"
  23526. static="false" final="false" visibility="public"
  23527. deprecated="not deprecated">
  23528. </method>
  23529. <method name="getCompressorType" return="java.lang.Class"
  23530. abstract="false" native="false" synchronized="false"
  23531. static="false" final="false" visibility="public"
  23532. deprecated="not deprecated">
  23533. </method>
  23534. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23535. abstract="false" native="false" synchronized="false"
  23536. static="false" final="false" visibility="public"
  23537. deprecated="not deprecated">
  23538. <param name="in" type="java.io.InputStream"/>
  23539. <exception name="IOException" type="java.io.IOException"/>
  23540. </method>
  23541. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23542. abstract="false" native="false" synchronized="false"
  23543. static="false" final="false" visibility="public"
  23544. deprecated="not deprecated">
  23545. <param name="in" type="java.io.InputStream"/>
  23546. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23547. <exception name="IOException" type="java.io.IOException"/>
  23548. </method>
  23549. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  23550. abstract="false" native="false" synchronized="false"
  23551. static="false" final="false" visibility="public"
  23552. deprecated="not deprecated">
  23553. </method>
  23554. <method name="getDecompressorType" return="java.lang.Class"
  23555. abstract="false" native="false" synchronized="false"
  23556. static="false" final="false" visibility="public"
  23557. deprecated="not deprecated">
  23558. </method>
  23559. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23560. abstract="false" native="false" synchronized="false"
  23561. static="false" final="false" visibility="public"
  23562. deprecated="not deprecated">
  23563. </method>
  23564. <method name="getDefaultExtension" return="java.lang.String"
  23565. abstract="false" native="false" synchronized="false"
  23566. static="false" final="false" visibility="public"
  23567. deprecated="not deprecated">
  23568. </method>
  23569. <doc>
  23570. <![CDATA[This class creates gzip compressors/decompressors.]]>
  23571. </doc>
  23572. </class>
  23573. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  23574. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  23575. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  23576. abstract="true"
  23577. static="false" final="false" visibility="public"
  23578. deprecated="not deprecated">
  23579. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  23580. static="false" final="false" visibility="public"
  23581. deprecated="not deprecated">
  23582. <exception name="IOException" type="java.io.IOException"/>
  23583. </constructor>
  23584. <method name="setStart"
  23585. abstract="false" native="false" synchronized="false"
  23586. static="false" final="false" visibility="protected"
  23587. deprecated="not deprecated">
  23588. <param name="start" type="long"/>
  23589. </method>
  23590. <method name="setEnd"
  23591. abstract="false" native="false" synchronized="false"
  23592. static="false" final="false" visibility="protected"
  23593. deprecated="not deprecated">
  23594. <param name="end" type="long"/>
  23595. </method>
  23596. <method name="getAdjustedStart" return="long"
  23597. abstract="false" native="false" synchronized="false"
  23598. static="false" final="false" visibility="public"
  23599. deprecated="not deprecated">
  23600. <doc>
  23601. <![CDATA[After calling createInputStream, the values of start or end
  23602. might change. So this method can be used to get the new value of start.
  23603. @return The changed value of start]]>
  23604. </doc>
  23605. </method>
  23606. <method name="getAdjustedEnd" return="long"
  23607. abstract="false" native="false" synchronized="false"
  23608. static="false" final="false" visibility="public"
  23609. deprecated="not deprecated">
  23610. <doc>
  23611. <![CDATA[After calling createInputStream, the values of start or end
  23612. might change. So this method can be used to get the new value of end.
  23613. @return The changed value of end]]>
  23614. </doc>
  23615. </method>
  23616. <doc>
  23617. <![CDATA[An InputStream covering a range of compressed data. The start and end
  23618. offsets requested by a client may be modified by the codec to fit block
  23619. boundaries or other algorithm-dependent requirements.]]>
  23620. </doc>
  23621. </class>
  23622. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  23623. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  23624. <interface name="SplittableCompressionCodec" abstract="true"
  23625. static="false" final="false" visibility="public"
  23626. deprecated="not deprecated">
  23627. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23628. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  23629. abstract="false" native="false" synchronized="false"
  23630. static="false" final="false" visibility="public"
  23631. deprecated="not deprecated">
  23632. <param name="seekableIn" type="java.io.InputStream"/>
  23633. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23634. <param name="start" type="long"/>
  23635. <param name="end" type="long"/>
  23636. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  23637. <exception name="IOException" type="java.io.IOException"/>
  23638. <doc>
  23639. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  23640. the codecs wants the ability to work with the underlying stream positions.
  23641. @param seekableIn The seekable input stream (seeks in compressed data)
  23642. @param start The start offset into the compressed stream. May be changed
  23643. by the underlying codec.
  23644. @param end The end offset into the compressed stream. May be changed by
  23645. the underlying codec.
  23646. @param readMode Controls whether stream position is reported continuously
  23647. from the compressed stream only only at block boundaries.
  23648. @return a stream to read uncompressed bytes from]]>
  23649. </doc>
  23650. </method>
  23651. <doc>
  23652. <![CDATA[This interface is meant to be implemented by those compression codecs
  23653. which are capable to compress / de-compress a stream starting at any
  23654. arbitrary position.
  23655. Especially the process of de-compressing a stream starting at some arbitrary
  23656. position is challenging. Most of the codecs are only able to successfully
  23657. de-compress a stream, if they start from the very beginning till the end.
  23658. One of the reasons is the stored state at the beginning of the stream which
  23659. is crucial for de-compression.
  23660. Yet there are few codecs which do not save the whole state at the beginning
  23661. of the stream and hence can be used to de-compress stream starting at any
  23662. arbitrary points. This interface is meant to be used by such codecs. Such
  23663. codecs are highly valuable, especially in the context of Hadoop, because
  23664. an input compressed file can be split and hence can be worked on by multiple
  23665. machines in parallel.]]>
  23666. </doc>
  23667. </interface>
  23668. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  23669. </package>
  23670. <package name="org.apache.hadoop.io.file.tfile">
  23671. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  23672. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  23673. abstract="false"
  23674. static="false" final="false" visibility="public"
  23675. deprecated="not deprecated">
  23676. <doc>
  23677. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  23678. </doc>
  23679. </class>
  23680. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  23681. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  23682. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  23683. abstract="false"
  23684. static="false" final="false" visibility="public"
  23685. deprecated="not deprecated">
  23686. <doc>
  23687. <![CDATA[Exception - No such Meta Block with the given name.]]>
  23688. </doc>
  23689. </class>
  23690. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  23691. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  23692. <interface name="RawComparable" abstract="true"
  23693. static="false" final="false" visibility="public"
  23694. deprecated="not deprecated">
  23695. <method name="buffer" return="byte[]"
  23696. abstract="false" native="false" synchronized="false"
  23697. static="false" final="false" visibility="public"
  23698. deprecated="not deprecated">
  23699. <doc>
  23700. <![CDATA[Get the underlying byte array.
  23701. @return The underlying byte array.]]>
  23702. </doc>
  23703. </method>
  23704. <method name="offset" return="int"
  23705. abstract="false" native="false" synchronized="false"
  23706. static="false" final="false" visibility="public"
  23707. deprecated="not deprecated">
  23708. <doc>
  23709. <![CDATA[Get the offset of the first byte in the byte array.
  23710. @return The offset of the first byte in the byte array.]]>
  23711. </doc>
  23712. </method>
  23713. <method name="size" return="int"
  23714. abstract="false" native="false" synchronized="false"
  23715. static="false" final="false" visibility="public"
  23716. deprecated="not deprecated">
  23717. <doc>
  23718. <![CDATA[Get the size of the byte range in the byte array.
  23719. @return The size of the byte range in the byte array.]]>
  23720. </doc>
  23721. </method>
  23722. <doc>
  23723. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  23724. This is useful in places where we need a single object reference to specify a
  23725. range of bytes in a byte array, such as {@link Comparable} or
  23726. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  23727. The actual comparison among RawComparable's requires an external
  23728. RawComparator and it is applications' responsibility to ensure two
  23729. RawComparable are supposed to be semantically comparable with the same
  23730. RawComparator.]]>
  23731. </doc>
  23732. </interface>
  23733. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  23734. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  23735. <class name="TFile" extends="java.lang.Object"
  23736. abstract="false"
  23737. static="false" final="false" visibility="public"
  23738. deprecated="not deprecated">
  23739. <method name="makeComparator" return="java.util.Comparator"
  23740. abstract="false" native="false" synchronized="false"
  23741. static="true" final="false" visibility="public"
  23742. deprecated="not deprecated">
  23743. <param name="name" type="java.lang.String"/>
  23744. <doc>
  23745. <![CDATA[Make a raw comparator from a string name.
  23746. @param name
  23747. Comparator name
  23748. @return A RawComparable comparator.]]>
  23749. </doc>
  23750. </method>
  23751. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  23752. abstract="false" native="false" synchronized="false"
  23753. static="true" final="false" visibility="public"
  23754. deprecated="not deprecated">
  23755. <doc>
  23756. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  23757. TFile.Writer.
  23758. @return Array of strings, each represents a supported compression
  23759. algorithm. Currently, the following compression algorithms are
  23760. supported.
  23761. <ul>
  23762. <li>"none" - No compression.
  23763. <li>"lzo" - LZO compression.
  23764. <li>"gz" - GZIP compression.
  23765. </ul>]]>
  23766. </doc>
  23767. </method>
  23768. <method name="main"
  23769. abstract="false" native="false" synchronized="false"
  23770. static="true" final="false" visibility="public"
  23771. deprecated="not deprecated">
  23772. <param name="args" type="java.lang.String[]"/>
  23773. <doc>
  23774. <![CDATA[Dumping the TFile information.
  23775. @param args
  23776. A list of TFile paths.]]>
  23777. </doc>
  23778. </method>
  23779. <field name="COMPRESSION_GZ" type="java.lang.String"
  23780. transient="false" volatile="false"
  23781. static="true" final="true" visibility="public"
  23782. deprecated="not deprecated">
  23783. <doc>
  23784. <![CDATA[compression: gzip]]>
  23785. </doc>
  23786. </field>
  23787. <field name="COMPRESSION_LZO" type="java.lang.String"
  23788. transient="false" volatile="false"
  23789. static="true" final="true" visibility="public"
  23790. deprecated="not deprecated">
  23791. <doc>
  23792. <![CDATA[compression: lzo]]>
  23793. </doc>
  23794. </field>
  23795. <field name="COMPRESSION_NONE" type="java.lang.String"
  23796. transient="false" volatile="false"
  23797. static="true" final="true" visibility="public"
  23798. deprecated="not deprecated">
  23799. <doc>
  23800. <![CDATA[compression: none]]>
  23801. </doc>
  23802. </field>
  23803. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  23804. transient="false" volatile="false"
  23805. static="true" final="true" visibility="public"
  23806. deprecated="not deprecated">
  23807. <doc>
  23808. <![CDATA[comparator: memcmp]]>
  23809. </doc>
  23810. </field>
  23811. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  23812. transient="false" volatile="false"
  23813. static="true" final="true" visibility="public"
  23814. deprecated="not deprecated">
  23815. <doc>
  23816. <![CDATA[comparator prefix: java class]]>
  23817. </doc>
  23818. </field>
  23819. <doc>
  23820. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  23821. bytes. Keys are restricted to 64KB, value length is not restricted
  23822. (practically limited to the available disk storage). TFile further provides
  23823. the following features:
  23824. <ul>
  23825. <li>Block Compression.
  23826. <li>Named meta data blocks.
  23827. <li>Sorted or unsorted keys.
  23828. <li>Seek by key or by file offset.
  23829. </ul>
  23830. The memory footprint of a TFile includes the following:
  23831. <ul>
  23832. <li>Some constant overhead of reading or writing a compressed block.
  23833. <ul>
  23834. <li>Each compressed block requires one compression/decompression codec for
  23835. I/O.
  23836. <li>Temporary space to buffer the key.
  23837. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  23838. chunk encoded, so that we buffer at most one chunk of user data. By default,
  23839. the chunk buffer is 1MB. Reading chunked value does not require additional
  23840. memory.
  23841. </ul>
  23842. <li>TFile index, which is proportional to the total number of Data Blocks.
  23843. The total amount of memory needed to hold the index can be estimated as
  23844. (56+AvgKeySize)*NumBlocks.
  23845. <li>MetaBlock index, which is proportional to the total number of Meta
  23846. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  23847. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  23848. </ul>
  23849. <p>
  23850. The behavior of TFile can be customized by the following variables through
  23851. Configuration:
  23852. <ul>
  23853. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  23854. to 1MB. Values of the length less than the chunk size is guaranteed to have
  23855. known value length in read time (See
  23856. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  23857. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  23858. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  23859. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  23860. FSDataInputStream. Integer (in bytes). Default to 256KB.
  23861. </ul>
  23862. <p>
  23863. Suggestions on performance optimization.
  23864. <ul>
  23865. <li>Minimum block size. We recommend a setting of minimum block size between
  23866. 256KB to 1MB for general usage. Larger block size is preferred if files are
  23867. primarily for sequential access. However, it would lead to inefficient random
  23868. access (because there are more data to decompress). Smaller blocks are good
  23869. for random access, but require more memory to hold the block index, and may
  23870. be slower to create (because we must flush the compressor stream at the
  23871. conclusion of each data block, which leads to an FS I/O flush). Further, due
  23872. to the internal caching in Compression codec, the smallest possible block
  23873. size would be around 20KB-30KB.
  23874. <li>The current implementation does not offer true multi-threading for
  23875. reading. The implementation uses FSDataInputStream seek()+read(), which is
  23876. shown to be much faster than positioned-read call in single thread mode.
  23877. However, it also means that if multiple threads attempt to access the same
  23878. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  23879. sequentially even if they access different DFS blocks.
  23880. <li>Compression codec. Use "none" if the data is not very compressable (by
  23881. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  23882. as the starting point for experimenting. "gz" overs slightly better
  23883. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  23884. decompress, comparing to "lzo".
  23885. <li>File system buffering, if the underlying FSDataInputStream and
  23886. FSDataOutputStream is already adequately buffered; or if applications
  23887. reads/writes keys and values in large buffers, we can reduce the sizes of
  23888. input/output buffering in TFile layer by setting the configuration parameters
  23889. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  23890. </ul>
  23891. Some design rationale behind TFile can be found at <a
  23892. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  23893. </doc>
  23894. </class>
  23895. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  23896. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  23897. <class name="Utils" extends="java.lang.Object"
  23898. abstract="false"
  23899. static="false" final="true" visibility="public"
  23900. deprecated="not deprecated">
  23901. <method name="writeVInt"
  23902. abstract="false" native="false" synchronized="false"
  23903. static="true" final="false" visibility="public"
  23904. deprecated="not deprecated">
  23905. <param name="out" type="java.io.DataOutput"/>
  23906. <param name="n" type="int"/>
  23907. <exception name="IOException" type="java.io.IOException"/>
  23908. <doc>
  23909. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  23910. <code>Utils#writeVLong(out, n)</code>.
  23911. @param out
  23912. output stream
  23913. @param n
  23914. The integer to be encoded
  23915. @throws IOException
  23916. @see Utils#writeVLong(DataOutput, long)]]>
  23917. </doc>
  23918. </method>
  23919. <method name="writeVLong"
  23920. abstract="false" native="false" synchronized="false"
  23921. static="true" final="false" visibility="public"
  23922. deprecated="not deprecated">
  23923. <param name="out" type="java.io.DataOutput"/>
  23924. <param name="n" type="long"/>
  23925. <exception name="IOException" type="java.io.IOException"/>
  23926. <doc>
  23927. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  23928. <ul>
  23929. <li>if n in [-32, 127): encode in one byte with the actual value.
  23930. Otherwise,
  23931. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  23932. byte[1]=n&0xff. Otherwise,
  23933. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  23934. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  23935. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  23936. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  23937. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  23938. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  23939. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  23940. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  23941. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  23942. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  23943. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  23944. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  23945. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  23946. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  23947. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  23948. byte[7]=n&0xff;
  23949. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  23950. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  23951. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  23952. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  23953. </ul>
  23954. @param out
  23955. output stream
  23956. @param n
  23957. the integer number
  23958. @throws IOException]]>
  23959. </doc>
  23960. </method>
  23961. <method name="readVInt" return="int"
  23962. abstract="false" native="false" synchronized="false"
  23963. static="true" final="false" visibility="public"
  23964. deprecated="not deprecated">
  23965. <param name="in" type="java.io.DataInput"/>
  23966. <exception name="IOException" type="java.io.IOException"/>
  23967. <doc>
  23968. <![CDATA[Decoding the variable-length integer. Synonymous to
  23969. <code>(int)Utils#readVLong(in)</code>.
  23970. @param in
  23971. input stream
  23972. @return the decoded integer
  23973. @throws IOException
  23974. @see Utils#readVLong(DataInput)]]>
  23975. </doc>
  23976. </method>
  23977. <method name="readVLong" return="long"
  23978. abstract="false" native="false" synchronized="false"
  23979. static="true" final="false" visibility="public"
  23980. deprecated="not deprecated">
  23981. <param name="in" type="java.io.DataInput"/>
  23982. <exception name="IOException" type="java.io.IOException"/>
  23983. <doc>
  23984. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  23985. is FB, and the following bytes are NB[*].
  23986. <ul>
  23987. <li>if (FB >= -32), return (long)FB;
  23988. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  23989. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  23990. NB[1]&0xff;
  23991. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  23992. (NB[1]&0xff)<<8 + NB[2]&0xff;
  23993. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  23994. big-endian integer.
  23995. @param in
  23996. input stream
  23997. @return the decoded long integer.
  23998. @throws IOException]]>
  23999. </doc>
  24000. </method>
  24001. <method name="writeString"
  24002. abstract="false" native="false" synchronized="false"
  24003. static="true" final="false" visibility="public"
  24004. deprecated="not deprecated">
  24005. <param name="out" type="java.io.DataOutput"/>
  24006. <param name="s" type="java.lang.String"/>
  24007. <exception name="IOException" type="java.io.IOException"/>
  24008. <doc>
  24009. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  24010. @param out
  24011. @param s
  24012. @throws IOException]]>
  24013. </doc>
  24014. </method>
  24015. <method name="readString" return="java.lang.String"
  24016. abstract="false" native="false" synchronized="false"
  24017. static="true" final="false" visibility="public"
  24018. deprecated="not deprecated">
  24019. <param name="in" type="java.io.DataInput"/>
  24020. <exception name="IOException" type="java.io.IOException"/>
  24021. <doc>
  24022. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  24023. @param in
  24024. The input stream.
  24025. @return The string
  24026. @throws IOException]]>
  24027. </doc>
  24028. </method>
  24029. <method name="lowerBound" return="int"
  24030. abstract="false" native="false" synchronized="false"
  24031. static="true" final="false" visibility="public"
  24032. deprecated="not deprecated">
  24033. <param name="list" type="java.util.List"/>
  24034. <param name="key" type="T"/>
  24035. <param name="cmp" type="java.util.Comparator"/>
  24036. <doc>
  24037. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  24038. that compares greater than or equal to key.
  24039. @param <T>
  24040. Type of the input key.
  24041. @param list
  24042. The list
  24043. @param key
  24044. The input key.
  24045. @param cmp
  24046. Comparator for the key.
  24047. @return The index to the desired element if it exists; or list.size()
  24048. otherwise.]]>
  24049. </doc>
  24050. </method>
  24051. <method name="upperBound" return="int"
  24052. abstract="false" native="false" synchronized="false"
  24053. static="true" final="false" visibility="public"
  24054. deprecated="not deprecated">
  24055. <param name="list" type="java.util.List"/>
  24056. <param name="key" type="T"/>
  24057. <param name="cmp" type="java.util.Comparator"/>
  24058. <doc>
  24059. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  24060. that compares greater than the input key.
  24061. @param <T>
  24062. Type of the input key.
  24063. @param list
  24064. The list
  24065. @param key
  24066. The input key.
  24067. @param cmp
  24068. Comparator for the key.
  24069. @return The index to the desired element if it exists; or list.size()
  24070. otherwise.]]>
  24071. </doc>
  24072. </method>
  24073. <method name="lowerBound" return="int"
  24074. abstract="false" native="false" synchronized="false"
  24075. static="true" final="false" visibility="public"
  24076. deprecated="not deprecated">
  24077. <param name="list" type="java.util.List"/>
  24078. <param name="key" type="T"/>
  24079. <doc>
  24080. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  24081. that compares greater than or equal to key.
  24082. @param <T>
  24083. Type of the input key.
  24084. @param list
  24085. The list
  24086. @param key
  24087. The input key.
  24088. @return The index to the desired element if it exists; or list.size()
  24089. otherwise.]]>
  24090. </doc>
  24091. </method>
  24092. <method name="upperBound" return="int"
  24093. abstract="false" native="false" synchronized="false"
  24094. static="true" final="false" visibility="public"
  24095. deprecated="not deprecated">
  24096. <param name="list" type="java.util.List"/>
  24097. <param name="key" type="T"/>
  24098. <doc>
  24099. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  24100. that compares greater than the input key.
  24101. @param <T>
  24102. Type of the input key.
  24103. @param list
  24104. The list
  24105. @param key
  24106. The input key.
  24107. @return The index to the desired element if it exists; or list.size()
  24108. otherwise.]]>
  24109. </doc>
  24110. </method>
  24111. <doc>
  24112. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  24113. </doc>
  24114. </class>
  24115. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  24116. </package>
  24117. <package name="org.apache.hadoop.io.serializer">
  24118. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  24119. <class name="JavaSerialization" extends="java.lang.Object"
  24120. abstract="false"
  24121. static="false" final="false" visibility="public"
  24122. deprecated="not deprecated">
  24123. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  24124. <constructor name="JavaSerialization"
  24125. static="false" final="false" visibility="public"
  24126. deprecated="not deprecated">
  24127. </constructor>
  24128. <doc>
  24129. <![CDATA[<p>
  24130. An experimental {@link Serialization} for Java {@link Serializable} classes.
  24131. </p>
  24132. @see JavaSerializationComparator]]>
  24133. </doc>
  24134. </class>
  24135. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  24136. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  24137. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  24138. abstract="false"
  24139. static="false" final="false" visibility="public"
  24140. deprecated="not deprecated">
  24141. <constructor name="JavaSerializationComparator"
  24142. static="false" final="false" visibility="public"
  24143. deprecated="not deprecated">
  24144. <exception name="IOException" type="java.io.IOException"/>
  24145. </constructor>
  24146. <doc>
  24147. <![CDATA[<p>
  24148. A {@link RawComparator} that uses a {@link JavaSerialization}
  24149. {@link Deserializer} to deserialize objects that are then compared via
  24150. their {@link Comparable} interfaces.
  24151. </p>
  24152. @param <T>
  24153. @see JavaSerialization]]>
  24154. </doc>
  24155. </class>
  24156. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  24157. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  24158. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  24159. abstract="false"
  24160. static="false" final="false" visibility="public"
  24161. deprecated="not deprecated">
  24162. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  24163. <constructor name="WritableSerialization"
  24164. static="false" final="false" visibility="public"
  24165. deprecated="not deprecated">
  24166. </constructor>
  24167. <doc>
  24168. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  24169. {@link Writable#write(java.io.DataOutput)} and
  24170. {@link Writable#readFields(java.io.DataInput)}.]]>
  24171. </doc>
  24172. </class>
  24173. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  24174. <doc>
  24175. <![CDATA[<p>
  24176. This package provides a mechanism for using different serialization frameworks
  24177. in Hadoop. The property "io.serializations" defines a list of
  24178. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  24179. {@link org.apache.hadoop.io.serializer.Serializer}s and
  24180. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  24181. </p>
  24182. <p>
  24183. To add a new serialization framework write an implementation of
  24184. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  24185. "io.serializations" property.
  24186. </p>]]>
  24187. </doc>
  24188. </package>
  24189. <package name="org.apache.hadoop.io.serializer.avro">
  24190. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  24191. <interface name="AvroReflectSerializable" abstract="true"
  24192. static="false" final="false" visibility="public"
  24193. deprecated="not deprecated">
  24194. <doc>
  24195. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  24196. this interface can be serialized/deserialized using
  24197. {@link AvroReflectSerialization}.]]>
  24198. </doc>
  24199. </interface>
  24200. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  24201. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  24202. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  24203. abstract="false"
  24204. static="false" final="false" visibility="public"
  24205. deprecated="not deprecated">
  24206. <constructor name="AvroReflectSerialization"
  24207. static="false" final="false" visibility="public"
  24208. deprecated="not deprecated">
  24209. </constructor>
  24210. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  24211. transient="false" volatile="false"
  24212. static="true" final="true" visibility="public"
  24213. deprecated="not deprecated">
  24214. <doc>
  24215. <![CDATA[Key to configure packages that contain classes to be serialized and
  24216. deserialized using this class. Multiple packages can be specified using
  24217. comma-separated list.]]>
  24218. </doc>
  24219. </field>
  24220. <doc>
  24221. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  24222. serialization, it must either be in the package list configured via
  24223. <code>avro.reflect.pkgs</code> or implement
  24224. {@link AvroReflectSerializable} interface.]]>
  24225. </doc>
  24226. </class>
  24227. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  24228. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  24229. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  24230. abstract="true"
  24231. static="false" final="false" visibility="public"
  24232. deprecated="not deprecated">
  24233. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  24234. <constructor name="AvroSerialization"
  24235. static="false" final="false" visibility="public"
  24236. deprecated="not deprecated">
  24237. </constructor>
  24238. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  24239. transient="false" volatile="false"
  24240. static="true" final="true" visibility="public"
  24241. deprecated="not deprecated">
  24242. </field>
  24243. <doc>
  24244. <![CDATA[Base class for providing serialization to Avro types.]]>
  24245. </doc>
  24246. </class>
  24247. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  24248. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  24249. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  24250. abstract="false"
  24251. static="false" final="false" visibility="public"
  24252. deprecated="not deprecated">
  24253. <constructor name="AvroSpecificSerialization"
  24254. static="false" final="false" visibility="public"
  24255. deprecated="not deprecated">
  24256. </constructor>
  24257. <doc>
  24258. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  24259. for classes generated by Avro's 'specific' compiler.]]>
  24260. </doc>
  24261. </class>
  24262. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  24263. <doc>
  24264. <![CDATA[<p>
  24265. This package provides Avro serialization in Hadoop. This can be used to
  24266. serialize/deserialize Avro types in Hadoop.
  24267. </p>
  24268. <p>
  24269. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  24270. serialization of classes generated by Avro's 'specific' compiler.
  24271. </p>
  24272. <p>
  24273. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  24274. other classes.
  24275. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  24276. any class which is either in the package list configured via
  24277. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  24278. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  24279. interface.
  24280. </p>]]>
  24281. </doc>
  24282. </package>
  24283. <package name="org.apache.hadoop.ipc.protocolPB">
  24284. </package>
  24285. <package name="org.apache.hadoop.log">
  24286. </package>
  24287. <package name="org.apache.hadoop.log.metrics">
  24288. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  24289. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  24290. abstract="false"
  24291. static="false" final="false" visibility="public"
  24292. deprecated="not deprecated">
  24293. <constructor name="EventCounter"
  24294. static="false" final="false" visibility="public"
  24295. deprecated="not deprecated">
  24296. </constructor>
  24297. <method name="append"
  24298. abstract="false" native="false" synchronized="false"
  24299. static="false" final="false" visibility="public"
  24300. deprecated="not deprecated">
  24301. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  24302. </method>
  24303. <method name="close"
  24304. abstract="false" native="false" synchronized="false"
  24305. static="false" final="false" visibility="public"
  24306. deprecated="not deprecated">
  24307. </method>
  24308. <method name="requiresLayout" return="boolean"
  24309. abstract="false" native="false" synchronized="false"
  24310. static="false" final="false" visibility="public"
  24311. deprecated="not deprecated">
  24312. </method>
  24313. <doc>
  24314. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  24315. fatal, error and warn. The class name is used in log4j.properties]]>
  24316. </doc>
  24317. </class>
  24318. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  24319. </package>
  24320. <package name="org.apache.hadoop.metrics">
  24321. <doc>
  24322. <![CDATA[This package defines an API for reporting performance metric information.
  24323. <p/>
  24324. The API is abstract so that it can be implemented on top of
  24325. a variety of metrics client libraries. The choice of
  24326. client library is a configuration option, and different
  24327. modules within the same application can use
  24328. different metrics implementation libraries.
  24329. <p/>
  24330. Sub-packages:
  24331. <dl>
  24332. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  24333. <dd>The abstract Server Provider Interface package. Those wishing to
  24334. integrate the metrics API with a particular metrics client library should
  24335. extend this package.</dd>
  24336. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  24337. <dd>An implementation package which writes the metric data to
  24338. a file, or sends it to the standard output stream.</dd>
  24339. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  24340. <dd>An implementation package which sends metric data to
  24341. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  24342. </dl>
  24343. <h3>Introduction to the Metrics API</h3>
  24344. Here is a simple example of how to use this package to report a single
  24345. metric value:
  24346. <pre>
  24347. private ContextFactory contextFactory = ContextFactory.getFactory();
  24348. void reportMyMetric(float myMetric) {
  24349. MetricsContext myContext = contextFactory.getContext("myContext");
  24350. MetricsRecord myRecord = myContext.getRecord("myRecord");
  24351. myRecord.setMetric("myMetric", myMetric);
  24352. myRecord.update();
  24353. }
  24354. </pre>
  24355. In this example there are three names:
  24356. <dl>
  24357. <dt><i>myContext</i></dt>
  24358. <dd>The context name will typically identify either the application, or else a
  24359. module within an application or library.</dd>
  24360. <dt><i>myRecord</i></dt>
  24361. <dd>The record name generally identifies some entity for which a set of
  24362. metrics are to be reported. For example, you could have a record named
  24363. "cacheStats" for reporting a number of statistics relating to the usage of
  24364. some cache in your application.</dd>
  24365. <dt><i>myMetric</i></dt>
  24366. <dd>This identifies a particular metric. For example, you might have metrics
  24367. named "cache_hits" and "cache_misses".
  24368. </dd>
  24369. </dl>
  24370. <h3>Tags</h3>
  24371. In some cases it is useful to have multiple records with the same name. For
  24372. example, suppose that you want to report statistics about each disk on a computer.
  24373. In this case, the record name would be something like "diskStats", but you also
  24374. need to identify the disk which is done by adding a <i>tag</i> to the record.
  24375. The code could look something like this:
  24376. <pre>
  24377. private MetricsRecord diskStats =
  24378. contextFactory.getContext("myContext").getRecord("diskStats");
  24379. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  24380. diskStats.setTag("diskName", diskName);
  24381. diskStats.setMetric("diskBusy", diskBusy);
  24382. diskStats.setMetric("diskUsed", diskUsed);
  24383. diskStats.update();
  24384. }
  24385. </pre>
  24386. <h3>Buffering and Callbacks</h3>
  24387. Data is not sent immediately to the metrics system when
  24388. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  24389. internal table, and the contents of the table are sent periodically.
  24390. This can be important for two reasons:
  24391. <ol>
  24392. <li>It means that a programmer is free to put calls to this API in an
  24393. inner loop, since updates can be very frequent without slowing down
  24394. the application significantly.</li>
  24395. <li>Some implementations can gain efficiency by combining many metrics
  24396. into a single UDP message.</li>
  24397. </ol>
  24398. The API provides a timer-based callback via the
  24399. <code>registerUpdater()</code> method. The benefit of this
  24400. versus using <code>java.util.Timer</code> is that the callbacks will be done
  24401. immediately before sending the data, making the data as current as possible.
  24402. <h3>Configuration</h3>
  24403. It is possible to programmatically examine and modify configuration data
  24404. before creating a context, like this:
  24405. <pre>
  24406. ContextFactory factory = ContextFactory.getFactory();
  24407. ... examine and/or modify factory attributes ...
  24408. MetricsContext context = factory.getContext("myContext");
  24409. </pre>
  24410. The factory attributes can be examined and modified using the following
  24411. <code>ContextFactory</code>methods:
  24412. <ul>
  24413. <li><code>Object getAttribute(String attributeName)</code></li>
  24414. <li><code>String[] getAttributeNames()</code></li>
  24415. <li><code>void setAttribute(String name, Object value)</code></li>
  24416. <li><code>void removeAttribute(attributeName)</code></li>
  24417. </ul>
  24418. <p/>
  24419. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  24420. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  24421. on the class path.
  24422. <p/>
  24423. A factory attribute named:
  24424. <pre>
  24425. <i>contextName</i>.class
  24426. </pre>
  24427. should have as its value the fully qualified name of the class to be
  24428. instantiated by a call of the <code>CodeFactory</code> method
  24429. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  24430. specified, the default is to instantiate
  24431. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  24432. <p/>
  24433. Other factory attributes are specific to a particular implementation of this
  24434. API and are documented elsewhere. For example, configuration attributes for
  24435. the file and Ganglia implementations can be found in the javadoc for
  24436. their respective packages.]]>
  24437. </doc>
  24438. </package>
  24439. <package name="org.apache.hadoop.metrics.ganglia">
  24440. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24441. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24442. abstract="false"
  24443. static="false" final="false" visibility="public"
  24444. deprecated="Use {@link org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30}
  24445. instead.">
  24446. <constructor name="GangliaContext"
  24447. static="false" final="false" visibility="public"
  24448. deprecated="not deprecated">
  24449. <doc>
  24450. <![CDATA[Creates a new instance of GangliaContext]]>
  24451. </doc>
  24452. </constructor>
  24453. <method name="close"
  24454. abstract="false" native="false" synchronized="false"
  24455. static="false" final="false" visibility="public"
  24456. deprecated="not deprecated">
  24457. <doc>
  24458. <![CDATA[method to close the datagram socket]]>
  24459. </doc>
  24460. </method>
  24461. <method name="emitMetric"
  24462. abstract="false" native="false" synchronized="false"
  24463. static="false" final="false" visibility="protected"
  24464. deprecated="not deprecated">
  24465. <param name="name" type="java.lang.String"/>
  24466. <param name="type" type="java.lang.String"/>
  24467. <param name="value" type="java.lang.String"/>
  24468. <exception name="IOException" type="java.io.IOException"/>
  24469. </method>
  24470. <method name="getUnits" return="java.lang.String"
  24471. abstract="false" native="false" synchronized="false"
  24472. static="false" final="false" visibility="protected"
  24473. deprecated="not deprecated">
  24474. <param name="metricName" type="java.lang.String"/>
  24475. </method>
  24476. <method name="getSlope" return="int"
  24477. abstract="false" native="false" synchronized="false"
  24478. static="false" final="false" visibility="protected"
  24479. deprecated="not deprecated">
  24480. <param name="metricName" type="java.lang.String"/>
  24481. </method>
  24482. <method name="getTmax" return="int"
  24483. abstract="false" native="false" synchronized="false"
  24484. static="false" final="false" visibility="protected"
  24485. deprecated="not deprecated">
  24486. <param name="metricName" type="java.lang.String"/>
  24487. </method>
  24488. <method name="getDmax" return="int"
  24489. abstract="false" native="false" synchronized="false"
  24490. static="false" final="false" visibility="protected"
  24491. deprecated="not deprecated">
  24492. <param name="metricName" type="java.lang.String"/>
  24493. </method>
  24494. <method name="xdr_string"
  24495. abstract="false" native="false" synchronized="false"
  24496. static="false" final="false" visibility="protected"
  24497. deprecated="not deprecated">
  24498. <param name="s" type="java.lang.String"/>
  24499. <doc>
  24500. <![CDATA[Puts a string into the buffer by first writing the size of the string
  24501. as an int, followed by the bytes of the string, padded if necessary to
  24502. a multiple of 4.]]>
  24503. </doc>
  24504. </method>
  24505. <method name="xdr_int"
  24506. abstract="false" native="false" synchronized="false"
  24507. static="false" final="false" visibility="protected"
  24508. deprecated="not deprecated">
  24509. <param name="i" type="int"/>
  24510. <doc>
  24511. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  24512. </doc>
  24513. </method>
  24514. <field name="buffer" type="byte[]"
  24515. transient="false" volatile="false"
  24516. static="false" final="false" visibility="protected"
  24517. deprecated="not deprecated">
  24518. </field>
  24519. <field name="offset" type="int"
  24520. transient="false" volatile="false"
  24521. static="false" final="false" visibility="protected"
  24522. deprecated="not deprecated">
  24523. </field>
  24524. <field name="metricsServers" type="java.util.List"
  24525. transient="false" volatile="false"
  24526. static="false" final="false" visibility="protected"
  24527. deprecated="not deprecated">
  24528. </field>
  24529. <field name="datagramSocket" type="java.net.DatagramSocket"
  24530. transient="false" volatile="false"
  24531. static="false" final="false" visibility="protected"
  24532. deprecated="not deprecated">
  24533. </field>
  24534. <doc>
  24535. <![CDATA[Context for sending metrics to Ganglia.
  24536. @deprecated Use {@link org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30}
  24537. instead.]]>
  24538. </doc>
  24539. </class>
  24540. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24541. <doc>
  24542. <![CDATA[<!--
  24543. * Licensed to the Apache Software Foundation (ASF) under one
  24544. * or more contributor license agreements. See the NOTICE file
  24545. * distributed with this work for additional information
  24546. * regarding copyright ownership. The ASF licenses this file
  24547. * to you under the Apache License, Version 2.0 (the
  24548. * "License"); you may not use this file except in compliance
  24549. * with the License. You may obtain a copy of the License at
  24550. *
  24551. * http://www.apache.org/licenses/LICENSE-2.0
  24552. *
  24553. * Unless required by applicable law or agreed to in writing, software
  24554. * distributed under the License is distributed on an "AS IS" BASIS,
  24555. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  24556. * See the License for the specific language governing permissions and
  24557. * limitations under the License.
  24558. -->
  24559. Implementation of the metrics package that sends metric data to
  24560. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  24561. Programmers should not normally need to use this package directly. Instead
  24562. they should use org.hadoop.metrics.
  24563. <p/>
  24564. These are the implementation specific factory attributes
  24565. (See ContextFactory.getFactory()):
  24566. <dl>
  24567. <dt><i>contextName</i>.servers</dt>
  24568. <dd>Space and/or comma separated sequence of servers to which UDP
  24569. messages should be sent.</dd>
  24570. <dt><i>contextName</i>.period</dt>
  24571. <dd>The period in seconds on which the metric data is sent to the
  24572. server(s).</dd>
  24573. <dt><i>contextName</i>.multicast</dt>
  24574. <dd>Enable multicast for Ganglia</dd>
  24575. <dt><i>contextName</i>.multicast.ttl</dt>
  24576. <dd>TTL for multicast packets</dd>
  24577. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  24578. <dd>The units for the specified metric in the specified record.</dd>
  24579. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  24580. <dd>The slope for the specified metric in the specified record.</dd>
  24581. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  24582. <dd>The tmax for the specified metric in the specified record.</dd>
  24583. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  24584. <dd>The dmax for the specified metric in the specified record.</dd>
  24585. </dl>]]>
  24586. </doc>
  24587. </package>
  24588. <package name="org.apache.hadoop.metrics.spi">
  24589. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  24590. <class name="AbstractMetricsContext" extends="java.lang.Object"
  24591. abstract="true"
  24592. static="false" final="false" visibility="public"
  24593. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  24594. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  24595. <constructor name="AbstractMetricsContext"
  24596. static="false" final="false" visibility="protected"
  24597. deprecated="not deprecated">
  24598. <doc>
  24599. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  24600. </doc>
  24601. </constructor>
  24602. <method name="init"
  24603. abstract="false" native="false" synchronized="false"
  24604. static="false" final="false" visibility="public"
  24605. deprecated="not deprecated">
  24606. <param name="contextName" type="java.lang.String"/>
  24607. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24608. <doc>
  24609. <![CDATA[Initializes the context.]]>
  24610. </doc>
  24611. </method>
  24612. <method name="getAttribute" return="java.lang.String"
  24613. abstract="false" native="false" synchronized="false"
  24614. static="false" final="false" visibility="protected"
  24615. deprecated="not deprecated">
  24616. <param name="attributeName" type="java.lang.String"/>
  24617. <doc>
  24618. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  24619. </doc>
  24620. </method>
  24621. <method name="getAttributeTable" return="java.util.Map"
  24622. abstract="false" native="false" synchronized="false"
  24623. static="false" final="false" visibility="protected"
  24624. deprecated="not deprecated">
  24625. <param name="tableName" type="java.lang.String"/>
  24626. <doc>
  24627. <![CDATA[Returns an attribute-value map derived from the factory attributes
  24628. by finding all factory attributes that begin with
  24629. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  24630. those attributes with the contextName and tableName stripped off.]]>
  24631. </doc>
  24632. </method>
  24633. <method name="getContextName" return="java.lang.String"
  24634. abstract="false" native="false" synchronized="false"
  24635. static="false" final="false" visibility="public"
  24636. deprecated="not deprecated">
  24637. <doc>
  24638. <![CDATA[Returns the context name.]]>
  24639. </doc>
  24640. </method>
  24641. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  24642. abstract="false" native="false" synchronized="false"
  24643. static="false" final="false" visibility="public"
  24644. deprecated="not deprecated">
  24645. <doc>
  24646. <![CDATA[Returns the factory by which this context was created.]]>
  24647. </doc>
  24648. </method>
  24649. <method name="startMonitoring"
  24650. abstract="false" native="false" synchronized="true"
  24651. static="false" final="false" visibility="public"
  24652. deprecated="not deprecated">
  24653. <exception name="IOException" type="java.io.IOException"/>
  24654. <doc>
  24655. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  24656. </doc>
  24657. </method>
  24658. <method name="stopMonitoring"
  24659. abstract="false" native="false" synchronized="true"
  24660. static="false" final="false" visibility="public"
  24661. deprecated="not deprecated">
  24662. <doc>
  24663. <![CDATA[Stops monitoring. This does not free buffered data.
  24664. @see #close()]]>
  24665. </doc>
  24666. </method>
  24667. <method name="isMonitoring" return="boolean"
  24668. abstract="false" native="false" synchronized="false"
  24669. static="false" final="false" visibility="public"
  24670. deprecated="not deprecated">
  24671. <doc>
  24672. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24673. </doc>
  24674. </method>
  24675. <method name="close"
  24676. abstract="false" native="false" synchronized="true"
  24677. static="false" final="false" visibility="public"
  24678. deprecated="not deprecated">
  24679. <doc>
  24680. <![CDATA[Stops monitoring and frees buffered data, returning this
  24681. object to its initial state.]]>
  24682. </doc>
  24683. </method>
  24684. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24685. abstract="false" native="false" synchronized="true"
  24686. static="false" final="true" visibility="public"
  24687. deprecated="not deprecated">
  24688. <param name="recordName" type="java.lang.String"/>
  24689. <doc>
  24690. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  24691. Throws an exception if the metrics implementation is configured with a fixed
  24692. set of record names and <code>recordName</code> is not in that set.
  24693. @param recordName the name of the record
  24694. @throws MetricsException if recordName conflicts with configuration data]]>
  24695. </doc>
  24696. </method>
  24697. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24698. abstract="false" native="false" synchronized="false"
  24699. static="false" final="false" visibility="protected"
  24700. deprecated="not deprecated">
  24701. <param name="recordName" type="java.lang.String"/>
  24702. <doc>
  24703. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  24704. @param recordName the name of the record
  24705. @return newly created instance of MetricsRecordImpl or subclass]]>
  24706. </doc>
  24707. </method>
  24708. <method name="registerUpdater"
  24709. abstract="false" native="false" synchronized="true"
  24710. static="false" final="false" visibility="public"
  24711. deprecated="not deprecated">
  24712. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24713. <doc>
  24714. <![CDATA[Registers a callback to be called at time intervals determined by
  24715. the configuration.
  24716. @param updater object to be run periodically; it should update
  24717. some metrics records]]>
  24718. </doc>
  24719. </method>
  24720. <method name="unregisterUpdater"
  24721. abstract="false" native="false" synchronized="true"
  24722. static="false" final="false" visibility="public"
  24723. deprecated="not deprecated">
  24724. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24725. <doc>
  24726. <![CDATA[Removes a callback, if it exists.
  24727. @param updater object to be removed from the callback list]]>
  24728. </doc>
  24729. </method>
  24730. <method name="getAllRecords" return="java.util.Map"
  24731. abstract="false" native="false" synchronized="true"
  24732. static="false" final="false" visibility="public"
  24733. deprecated="not deprecated">
  24734. <doc>
  24735. <![CDATA[Retrieves all the records managed by this MetricsContext.
  24736. Useful for monitoring systems that are polling-based.
  24737. @return A non-null collection of all monitoring records.]]>
  24738. </doc>
  24739. </method>
  24740. <method name="emitRecord"
  24741. abstract="true" native="false" synchronized="false"
  24742. static="false" final="false" visibility="protected"
  24743. deprecated="not deprecated">
  24744. <param name="contextName" type="java.lang.String"/>
  24745. <param name="recordName" type="java.lang.String"/>
  24746. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24747. <exception name="IOException" type="java.io.IOException"/>
  24748. <doc>
  24749. <![CDATA[Sends a record to the metrics system.]]>
  24750. </doc>
  24751. </method>
  24752. <method name="flush"
  24753. abstract="false" native="false" synchronized="false"
  24754. static="false" final="false" visibility="protected"
  24755. deprecated="not deprecated">
  24756. <exception name="IOException" type="java.io.IOException"/>
  24757. <doc>
  24758. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  24759. Subclasses may override it in order to perform some kind of flush.]]>
  24760. </doc>
  24761. </method>
  24762. <method name="update"
  24763. abstract="false" native="false" synchronized="false"
  24764. static="false" final="false" visibility="protected"
  24765. deprecated="not deprecated">
  24766. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24767. <doc>
  24768. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  24769. the internal table of metric data.]]>
  24770. </doc>
  24771. </method>
  24772. <method name="remove"
  24773. abstract="false" native="false" synchronized="false"
  24774. static="false" final="false" visibility="protected"
  24775. deprecated="not deprecated">
  24776. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24777. <doc>
  24778. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  24779. the internal table of metric data. A row matches if it has the same
  24780. tag names and values as record, but it may also have additional
  24781. tags.]]>
  24782. </doc>
  24783. </method>
  24784. <method name="getPeriod" return="int"
  24785. abstract="false" native="false" synchronized="false"
  24786. static="false" final="false" visibility="public"
  24787. deprecated="not deprecated">
  24788. <doc>
  24789. <![CDATA[Returns the timer period.]]>
  24790. </doc>
  24791. </method>
  24792. <method name="setPeriod"
  24793. abstract="false" native="false" synchronized="false"
  24794. static="false" final="false" visibility="protected"
  24795. deprecated="not deprecated">
  24796. <param name="period" type="int"/>
  24797. <doc>
  24798. <![CDATA[Sets the timer period]]>
  24799. </doc>
  24800. </method>
  24801. <method name="parseAndSetPeriod"
  24802. abstract="false" native="false" synchronized="false"
  24803. static="false" final="false" visibility="protected"
  24804. deprecated="not deprecated">
  24805. <param name="attributeName" type="java.lang.String"/>
  24806. <doc>
  24807. <![CDATA[If a period is set in the attribute passed in, override
  24808. the default with it.]]>
  24809. </doc>
  24810. </method>
  24811. <doc>
  24812. <![CDATA[The main class of the Service Provider Interface. This class should be
  24813. extended in order to integrate the Metrics API with a specific metrics
  24814. client library. <p/>
  24815. This class implements the internal table of metric data, and the timer
  24816. on which data is to be sent to the metrics system. Subclasses must
  24817. override the abstract <code>emitRecord</code> method in order to transmit
  24818. the data. <p/>
  24819. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  24820. </doc>
  24821. </class>
  24822. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  24823. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  24824. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24825. abstract="false"
  24826. static="false" final="false" visibility="public"
  24827. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  24828. <constructor name="CompositeContext"
  24829. static="false" final="false" visibility="public"
  24830. deprecated="not deprecated">
  24831. </constructor>
  24832. <doc>
  24833. <![CDATA[@deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  24834. </doc>
  24835. </class>
  24836. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  24837. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  24838. <class name="MetricsRecordImpl" extends="java.lang.Object"
  24839. abstract="false"
  24840. static="false" final="false" visibility="public"
  24841. deprecated="Use {@link org.apache.hadoop.metrics2.impl.MetricsRecordImpl}
  24842. instead.">
  24843. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  24844. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24845. static="false" final="false" visibility="protected"
  24846. deprecated="not deprecated">
  24847. <doc>
  24848. <![CDATA[Creates a new instance of FileRecord]]>
  24849. </doc>
  24850. </constructor>
  24851. <method name="getRecordName" return="java.lang.String"
  24852. abstract="false" native="false" synchronized="false"
  24853. static="false" final="false" visibility="public"
  24854. deprecated="not deprecated">
  24855. <doc>
  24856. <![CDATA[Returns the record name.
  24857. @return the record name]]>
  24858. </doc>
  24859. </method>
  24860. <method name="setTag"
  24861. abstract="false" native="false" synchronized="false"
  24862. static="false" final="false" visibility="public"
  24863. deprecated="not deprecated">
  24864. <param name="tagName" type="java.lang.String"/>
  24865. <param name="tagValue" type="java.lang.String"/>
  24866. <doc>
  24867. <![CDATA[Sets the named tag to the specified value.
  24868. @param tagName name of the tag
  24869. @param tagValue new value of the tag
  24870. @throws MetricsException if the tagName conflicts with the configuration]]>
  24871. </doc>
  24872. </method>
  24873. <method name="setTag"
  24874. abstract="false" native="false" synchronized="false"
  24875. static="false" final="false" visibility="public"
  24876. deprecated="not deprecated">
  24877. <param name="tagName" type="java.lang.String"/>
  24878. <param name="tagValue" type="int"/>
  24879. <doc>
  24880. <![CDATA[Sets the named tag to the specified value.
  24881. @param tagName name of the tag
  24882. @param tagValue new value of the tag
  24883. @throws MetricsException if the tagName conflicts with the configuration]]>
  24884. </doc>
  24885. </method>
  24886. <method name="setTag"
  24887. abstract="false" native="false" synchronized="false"
  24888. static="false" final="false" visibility="public"
  24889. deprecated="not deprecated">
  24890. <param name="tagName" type="java.lang.String"/>
  24891. <param name="tagValue" type="long"/>
  24892. <doc>
  24893. <![CDATA[Sets the named tag to the specified value.
  24894. @param tagName name of the tag
  24895. @param tagValue new value of the tag
  24896. @throws MetricsException if the tagName conflicts with the configuration]]>
  24897. </doc>
  24898. </method>
  24899. <method name="setTag"
  24900. abstract="false" native="false" synchronized="false"
  24901. static="false" final="false" visibility="public"
  24902. deprecated="not deprecated">
  24903. <param name="tagName" type="java.lang.String"/>
  24904. <param name="tagValue" type="short"/>
  24905. <doc>
  24906. <![CDATA[Sets the named tag to the specified value.
  24907. @param tagName name of the tag
  24908. @param tagValue new value of the tag
  24909. @throws MetricsException if the tagName conflicts with the configuration]]>
  24910. </doc>
  24911. </method>
  24912. <method name="setTag"
  24913. abstract="false" native="false" synchronized="false"
  24914. static="false" final="false" visibility="public"
  24915. deprecated="not deprecated">
  24916. <param name="tagName" type="java.lang.String"/>
  24917. <param name="tagValue" type="byte"/>
  24918. <doc>
  24919. <![CDATA[Sets the named tag to the specified value.
  24920. @param tagName name of the tag
  24921. @param tagValue new value of the tag
  24922. @throws MetricsException if the tagName conflicts with the configuration]]>
  24923. </doc>
  24924. </method>
  24925. <method name="removeTag"
  24926. abstract="false" native="false" synchronized="false"
  24927. static="false" final="false" visibility="public"
  24928. deprecated="not deprecated">
  24929. <param name="tagName" type="java.lang.String"/>
  24930. <doc>
  24931. <![CDATA[Removes any tag of the specified name.]]>
  24932. </doc>
  24933. </method>
  24934. <method name="setMetric"
  24935. abstract="false" native="false" synchronized="false"
  24936. static="false" final="false" visibility="public"
  24937. deprecated="not deprecated">
  24938. <param name="metricName" type="java.lang.String"/>
  24939. <param name="metricValue" type="int"/>
  24940. <doc>
  24941. <![CDATA[Sets the named metric to the specified value.
  24942. @param metricName name of the metric
  24943. @param metricValue new value of the metric
  24944. @throws MetricsException if the metricName or the type of the metricValue
  24945. conflicts with the configuration]]>
  24946. </doc>
  24947. </method>
  24948. <method name="setMetric"
  24949. abstract="false" native="false" synchronized="false"
  24950. static="false" final="false" visibility="public"
  24951. deprecated="not deprecated">
  24952. <param name="metricName" type="java.lang.String"/>
  24953. <param name="metricValue" type="long"/>
  24954. <doc>
  24955. <![CDATA[Sets the named metric to the specified value.
  24956. @param metricName name of the metric
  24957. @param metricValue new value of the metric
  24958. @throws MetricsException if the metricName or the type of the metricValue
  24959. conflicts with the configuration]]>
  24960. </doc>
  24961. </method>
  24962. <method name="setMetric"
  24963. abstract="false" native="false" synchronized="false"
  24964. static="false" final="false" visibility="public"
  24965. deprecated="not deprecated">
  24966. <param name="metricName" type="java.lang.String"/>
  24967. <param name="metricValue" type="short"/>
  24968. <doc>
  24969. <![CDATA[Sets the named metric to the specified value.
  24970. @param metricName name of the metric
  24971. @param metricValue new value of the metric
  24972. @throws MetricsException if the metricName or the type of the metricValue
  24973. conflicts with the configuration]]>
  24974. </doc>
  24975. </method>
  24976. <method name="setMetric"
  24977. abstract="false" native="false" synchronized="false"
  24978. static="false" final="false" visibility="public"
  24979. deprecated="not deprecated">
  24980. <param name="metricName" type="java.lang.String"/>
  24981. <param name="metricValue" type="byte"/>
  24982. <doc>
  24983. <![CDATA[Sets the named metric to the specified value.
  24984. @param metricName name of the metric
  24985. @param metricValue new value of the metric
  24986. @throws MetricsException if the metricName or the type of the metricValue
  24987. conflicts with the configuration]]>
  24988. </doc>
  24989. </method>
  24990. <method name="setMetric"
  24991. abstract="false" native="false" synchronized="false"
  24992. static="false" final="false" visibility="public"
  24993. deprecated="not deprecated">
  24994. <param name="metricName" type="java.lang.String"/>
  24995. <param name="metricValue" type="float"/>
  24996. <doc>
  24997. <![CDATA[Sets the named metric to the specified value.
  24998. @param metricName name of the metric
  24999. @param metricValue new value of the metric
  25000. @throws MetricsException if the metricName or the type of the metricValue
  25001. conflicts with the configuration]]>
  25002. </doc>
  25003. </method>
  25004. <method name="incrMetric"
  25005. abstract="false" native="false" synchronized="false"
  25006. static="false" final="false" visibility="public"
  25007. deprecated="not deprecated">
  25008. <param name="metricName" type="java.lang.String"/>
  25009. <param name="metricValue" type="int"/>
  25010. <doc>
  25011. <![CDATA[Increments the named metric by the specified value.
  25012. @param metricName name of the metric
  25013. @param metricValue incremental value
  25014. @throws MetricsException if the metricName or the type of the metricValue
  25015. conflicts with the configuration]]>
  25016. </doc>
  25017. </method>
  25018. <method name="incrMetric"
  25019. abstract="false" native="false" synchronized="false"
  25020. static="false" final="false" visibility="public"
  25021. deprecated="not deprecated">
  25022. <param name="metricName" type="java.lang.String"/>
  25023. <param name="metricValue" type="long"/>
  25024. <doc>
  25025. <![CDATA[Increments the named metric by the specified value.
  25026. @param metricName name of the metric
  25027. @param metricValue incremental value
  25028. @throws MetricsException if the metricName or the type of the metricValue
  25029. conflicts with the configuration]]>
  25030. </doc>
  25031. </method>
  25032. <method name="incrMetric"
  25033. abstract="false" native="false" synchronized="false"
  25034. static="false" final="false" visibility="public"
  25035. deprecated="not deprecated">
  25036. <param name="metricName" type="java.lang.String"/>
  25037. <param name="metricValue" type="short"/>
  25038. <doc>
  25039. <![CDATA[Increments the named metric by the specified value.
  25040. @param metricName name of the metric
  25041. @param metricValue incremental value
  25042. @throws MetricsException if the metricName or the type of the metricValue
  25043. conflicts with the configuration]]>
  25044. </doc>
  25045. </method>
  25046. <method name="incrMetric"
  25047. abstract="false" native="false" synchronized="false"
  25048. static="false" final="false" visibility="public"
  25049. deprecated="not deprecated">
  25050. <param name="metricName" type="java.lang.String"/>
  25051. <param name="metricValue" type="byte"/>
  25052. <doc>
  25053. <![CDATA[Increments the named metric by the specified value.
  25054. @param metricName name of the metric
  25055. @param metricValue incremental value
  25056. @throws MetricsException if the metricName or the type of the metricValue
  25057. conflicts with the configuration]]>
  25058. </doc>
  25059. </method>
  25060. <method name="incrMetric"
  25061. abstract="false" native="false" synchronized="false"
  25062. static="false" final="false" visibility="public"
  25063. deprecated="not deprecated">
  25064. <param name="metricName" type="java.lang.String"/>
  25065. <param name="metricValue" type="float"/>
  25066. <doc>
  25067. <![CDATA[Increments the named metric by the specified value.
  25068. @param metricName name of the metric
  25069. @param metricValue incremental value
  25070. @throws MetricsException if the metricName or the type of the metricValue
  25071. conflicts with the configuration]]>
  25072. </doc>
  25073. </method>
  25074. <method name="update"
  25075. abstract="false" native="false" synchronized="false"
  25076. static="false" final="false" visibility="public"
  25077. deprecated="not deprecated">
  25078. <doc>
  25079. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  25080. If the tag values match an existing row, that row is updated;
  25081. otherwise, a new row is added.]]>
  25082. </doc>
  25083. </method>
  25084. <method name="remove"
  25085. abstract="false" native="false" synchronized="false"
  25086. static="false" final="false" visibility="public"
  25087. deprecated="not deprecated">
  25088. <doc>
  25089. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  25090. that equal the tags that have been set on this record.]]>
  25091. </doc>
  25092. </method>
  25093. <doc>
  25094. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  25095. from which it was created, and delegates back to it on <code>update</code>
  25096. and <code>remove()</code>.
  25097. @deprecated Use {@link org.apache.hadoop.metrics2.impl.MetricsRecordImpl}
  25098. instead.]]>
  25099. </doc>
  25100. </class>
  25101. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25102. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  25103. <class name="MetricValue" extends="java.lang.Object"
  25104. abstract="false"
  25105. static="false" final="false" visibility="public"
  25106. deprecated="not deprecated">
  25107. <constructor name="MetricValue" type="java.lang.Number, boolean"
  25108. static="false" final="false" visibility="public"
  25109. deprecated="not deprecated">
  25110. <doc>
  25111. <![CDATA[Creates a new instance of MetricValue]]>
  25112. </doc>
  25113. </constructor>
  25114. <method name="isIncrement" return="boolean"
  25115. abstract="false" native="false" synchronized="false"
  25116. static="false" final="false" visibility="public"
  25117. deprecated="not deprecated">
  25118. </method>
  25119. <method name="isAbsolute" return="boolean"
  25120. abstract="false" native="false" synchronized="false"
  25121. static="false" final="false" visibility="public"
  25122. deprecated="not deprecated">
  25123. </method>
  25124. <method name="getNumber" return="java.lang.Number"
  25125. abstract="false" native="false" synchronized="false"
  25126. static="false" final="false" visibility="public"
  25127. deprecated="not deprecated">
  25128. </method>
  25129. <field name="ABSOLUTE" type="boolean"
  25130. transient="false" volatile="false"
  25131. static="true" final="true" visibility="public"
  25132. deprecated="not deprecated">
  25133. </field>
  25134. <field name="INCREMENT" type="boolean"
  25135. transient="false" volatile="false"
  25136. static="true" final="true" visibility="public"
  25137. deprecated="not deprecated">
  25138. </field>
  25139. <doc>
  25140. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  25141. </doc>
  25142. </class>
  25143. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  25144. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25145. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25146. abstract="false"
  25147. static="false" final="false" visibility="public"
  25148. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  25149. <constructor name="NoEmitMetricsContext"
  25150. static="false" final="false" visibility="public"
  25151. deprecated="not deprecated">
  25152. <doc>
  25153. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25154. </doc>
  25155. </constructor>
  25156. <doc>
  25157. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  25158. does save it for retrieval with getAllRecords().
  25159. This is useful if you want to support {@link MetricsServlet}, but
  25160. not emit metrics in any other way.
  25161. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  25162. </doc>
  25163. </class>
  25164. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25165. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  25166. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25167. abstract="false"
  25168. static="false" final="false" visibility="public"
  25169. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  25170. <constructor name="NullContext"
  25171. static="false" final="false" visibility="public"
  25172. deprecated="not deprecated">
  25173. <doc>
  25174. <![CDATA[Creates a new instance of NullContext]]>
  25175. </doc>
  25176. </constructor>
  25177. <doc>
  25178. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  25179. default context, so that no performance data is emitted if no configuration
  25180. data is found.
  25181. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  25182. </doc>
  25183. </class>
  25184. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  25185. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25186. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25187. abstract="false"
  25188. static="false" final="false" visibility="public"
  25189. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  25190. <constructor name="NullContextWithUpdateThread"
  25191. static="false" final="false" visibility="public"
  25192. deprecated="not deprecated">
  25193. <doc>
  25194. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25195. </doc>
  25196. </constructor>
  25197. <doc>
  25198. <![CDATA[A null context which has a thread calling
  25199. periodically when monitoring is started. This keeps the data sampled
  25200. correctly.
  25201. In all other respects, this is like the NULL context: No data is emitted.
  25202. This is suitable for Monitoring systems like JMX which reads the metrics
  25203. when someone reads the data from JMX.
  25204. The default impl of start and stop monitoring:
  25205. is the AbstractMetricsContext is good enough.
  25206. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  25207. </doc>
  25208. </class>
  25209. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25210. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  25211. <class name="OutputRecord" extends="java.lang.Object"
  25212. abstract="false"
  25213. static="false" final="false" visibility="public"
  25214. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  25215. <method name="getTagNames" return="java.util.Set"
  25216. abstract="false" native="false" synchronized="false"
  25217. static="false" final="false" visibility="public"
  25218. deprecated="not deprecated">
  25219. <doc>
  25220. <![CDATA[Returns the set of tag names]]>
  25221. </doc>
  25222. </method>
  25223. <method name="getTag" return="java.lang.Object"
  25224. abstract="false" native="false" synchronized="false"
  25225. static="false" final="false" visibility="public"
  25226. deprecated="not deprecated">
  25227. <param name="name" type="java.lang.String"/>
  25228. <doc>
  25229. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  25230. @return the tag value, or null if there is no such tag]]>
  25231. </doc>
  25232. </method>
  25233. <method name="getMetricNames" return="java.util.Set"
  25234. abstract="false" native="false" synchronized="false"
  25235. static="false" final="false" visibility="public"
  25236. deprecated="not deprecated">
  25237. <doc>
  25238. <![CDATA[Returns the set of metric names.]]>
  25239. </doc>
  25240. </method>
  25241. <method name="getMetric" return="java.lang.Number"
  25242. abstract="false" native="false" synchronized="false"
  25243. static="false" final="false" visibility="public"
  25244. deprecated="not deprecated">
  25245. <param name="name" type="java.lang.String"/>
  25246. <doc>
  25247. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  25248. </doc>
  25249. </method>
  25250. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  25251. abstract="false" native="false" synchronized="false"
  25252. static="false" final="false" visibility="public"
  25253. deprecated="not deprecated">
  25254. <doc>
  25255. <![CDATA[Returns a copy of this record's tags.]]>
  25256. </doc>
  25257. </method>
  25258. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  25259. abstract="false" native="false" synchronized="false"
  25260. static="false" final="false" visibility="public"
  25261. deprecated="not deprecated">
  25262. <doc>
  25263. <![CDATA[Returns a copy of this record's metrics.]]>
  25264. </doc>
  25265. </method>
  25266. <doc>
  25267. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  25268. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  25269. </doc>
  25270. </class>
  25271. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  25272. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  25273. <class name="Util" extends="java.lang.Object"
  25274. abstract="false"
  25275. static="false" final="false" visibility="public"
  25276. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  25277. <method name="parse" return="java.util.List"
  25278. abstract="false" native="false" synchronized="false"
  25279. static="true" final="false" visibility="public"
  25280. deprecated="not deprecated">
  25281. <param name="specs" type="java.lang.String"/>
  25282. <param name="defaultPort" type="int"/>
  25283. <doc>
  25284. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  25285. of the form <i>hostname</i> or <i>hostname:port</i>. If
  25286. the specs string is null, defaults to localhost:defaultPort.
  25287. @return a list of InetSocketAddress objects.]]>
  25288. </doc>
  25289. </method>
  25290. <doc>
  25291. <![CDATA[Static utility methods
  25292. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  25293. </doc>
  25294. </class>
  25295. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  25296. <doc>
  25297. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  25298. an interface allowing a variety of metrics reporting implementations to be
  25299. plugged in to the Metrics API. Examples of such implementations can be found
  25300. in the packages <code>org.apache.hadoop.metrics.file</code> and
  25301. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  25302. Plugging in an implementation involves writing a concrete subclass of
  25303. <code>AbstractMetricsContext</code>. The subclass should get its
  25304. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  25305. method.]]>
  25306. </doc>
  25307. </package>
  25308. <package name="org.apache.hadoop.metrics2">
  25309. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  25310. <class name="AbstractMetric" extends="java.lang.Object"
  25311. abstract="true"
  25312. static="false" final="false" visibility="public"
  25313. deprecated="not deprecated">
  25314. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  25315. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  25316. static="false" final="false" visibility="protected"
  25317. deprecated="not deprecated">
  25318. <doc>
  25319. <![CDATA[Construct the metric
  25320. @param info about the metric]]>
  25321. </doc>
  25322. </constructor>
  25323. <method name="name" return="java.lang.String"
  25324. abstract="false" native="false" synchronized="false"
  25325. static="false" final="false" visibility="public"
  25326. deprecated="not deprecated">
  25327. </method>
  25328. <method name="description" return="java.lang.String"
  25329. abstract="false" native="false" synchronized="false"
  25330. static="false" final="false" visibility="public"
  25331. deprecated="not deprecated">
  25332. </method>
  25333. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25334. abstract="false" native="false" synchronized="false"
  25335. static="false" final="false" visibility="protected"
  25336. deprecated="not deprecated">
  25337. </method>
  25338. <method name="value" return="java.lang.Number"
  25339. abstract="true" native="false" synchronized="false"
  25340. static="false" final="false" visibility="public"
  25341. deprecated="not deprecated">
  25342. <doc>
  25343. <![CDATA[Get the value of the metric
  25344. @return the value of the metric]]>
  25345. </doc>
  25346. </method>
  25347. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  25348. abstract="true" native="false" synchronized="false"
  25349. static="false" final="false" visibility="public"
  25350. deprecated="not deprecated">
  25351. <doc>
  25352. <![CDATA[Get the type of the metric
  25353. @return the type of the metric]]>
  25354. </doc>
  25355. </method>
  25356. <method name="visit"
  25357. abstract="true" native="false" synchronized="false"
  25358. static="false" final="false" visibility="public"
  25359. deprecated="not deprecated">
  25360. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  25361. <doc>
  25362. <![CDATA[Accept a visitor interface
  25363. @param visitor of the metric]]>
  25364. </doc>
  25365. </method>
  25366. <method name="equals" return="boolean"
  25367. abstract="false" native="false" synchronized="false"
  25368. static="false" final="false" visibility="public"
  25369. deprecated="not deprecated">
  25370. <param name="obj" type="java.lang.Object"/>
  25371. </method>
  25372. <method name="hashCode" return="int"
  25373. abstract="false" native="false" synchronized="false"
  25374. static="false" final="false" visibility="public"
  25375. deprecated="not deprecated">
  25376. </method>
  25377. <method name="toString" return="java.lang.String"
  25378. abstract="false" native="false" synchronized="false"
  25379. static="false" final="false" visibility="public"
  25380. deprecated="not deprecated">
  25381. </method>
  25382. <doc>
  25383. <![CDATA[The immutable metric]]>
  25384. </doc>
  25385. </class>
  25386. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  25387. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  25388. <interface name="MetricsCollector" abstract="true"
  25389. static="false" final="false" visibility="public"
  25390. deprecated="not deprecated">
  25391. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25392. abstract="false" native="false" synchronized="false"
  25393. static="false" final="false" visibility="public"
  25394. deprecated="not deprecated">
  25395. <param name="name" type="java.lang.String"/>
  25396. <doc>
  25397. <![CDATA[Add a metrics record
  25398. @param name of the record
  25399. @return a metrics record builder for the record]]>
  25400. </doc>
  25401. </method>
  25402. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25403. abstract="false" native="false" synchronized="false"
  25404. static="false" final="false" visibility="public"
  25405. deprecated="not deprecated">
  25406. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25407. <doc>
  25408. <![CDATA[Add a metrics record
  25409. @param info of the record
  25410. @return a metrics record builder for the record]]>
  25411. </doc>
  25412. </method>
  25413. <doc>
  25414. <![CDATA[The metrics collector interface]]>
  25415. </doc>
  25416. </interface>
  25417. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  25418. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  25419. <class name="MetricsException" extends="java.lang.RuntimeException"
  25420. abstract="false"
  25421. static="false" final="false" visibility="public"
  25422. deprecated="not deprecated">
  25423. <constructor name="MetricsException" type="java.lang.String"
  25424. static="false" final="false" visibility="public"
  25425. deprecated="not deprecated">
  25426. <doc>
  25427. <![CDATA[Construct the exception with a message
  25428. @param message for the exception]]>
  25429. </doc>
  25430. </constructor>
  25431. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  25432. static="false" final="false" visibility="public"
  25433. deprecated="not deprecated">
  25434. <doc>
  25435. <![CDATA[Construct the exception with a message and a cause
  25436. @param message for the exception
  25437. @param cause of the exception]]>
  25438. </doc>
  25439. </constructor>
  25440. <constructor name="MetricsException" type="java.lang.Throwable"
  25441. static="false" final="false" visibility="public"
  25442. deprecated="not deprecated">
  25443. <doc>
  25444. <![CDATA[Construct the exception with a cause
  25445. @param cause of the exception]]>
  25446. </doc>
  25447. </constructor>
  25448. <doc>
  25449. <![CDATA[A general metrics exception wrapper]]>
  25450. </doc>
  25451. </class>
  25452. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  25453. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  25454. <class name="MetricsFilter" extends="java.lang.Object"
  25455. abstract="true"
  25456. static="false" final="false" visibility="public"
  25457. deprecated="not deprecated">
  25458. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  25459. <constructor name="MetricsFilter"
  25460. static="false" final="false" visibility="public"
  25461. deprecated="not deprecated">
  25462. </constructor>
  25463. <method name="accepts" return="boolean"
  25464. abstract="true" native="false" synchronized="false"
  25465. static="false" final="false" visibility="public"
  25466. deprecated="not deprecated">
  25467. <param name="name" type="java.lang.String"/>
  25468. <doc>
  25469. <![CDATA[Whether to accept the name
  25470. @param name to filter on
  25471. @return true to accept; false otherwise.]]>
  25472. </doc>
  25473. </method>
  25474. <method name="accepts" return="boolean"
  25475. abstract="true" native="false" synchronized="false"
  25476. static="false" final="false" visibility="public"
  25477. deprecated="not deprecated">
  25478. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25479. <doc>
  25480. <![CDATA[Whether to accept the tag
  25481. @param tag to filter on
  25482. @return true to accept; false otherwise]]>
  25483. </doc>
  25484. </method>
  25485. <method name="accepts" return="boolean"
  25486. abstract="true" native="false" synchronized="false"
  25487. static="false" final="false" visibility="public"
  25488. deprecated="not deprecated">
  25489. <param name="tags" type="java.lang.Iterable"/>
  25490. <doc>
  25491. <![CDATA[Whether to accept the tags
  25492. @param tags to filter on
  25493. @return true to accept; false otherwise]]>
  25494. </doc>
  25495. </method>
  25496. <method name="accepts" return="boolean"
  25497. abstract="false" native="false" synchronized="false"
  25498. static="false" final="false" visibility="public"
  25499. deprecated="not deprecated">
  25500. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25501. <doc>
  25502. <![CDATA[Whether to accept the record
  25503. @param record to filter on
  25504. @return true to accept; false otherwise.]]>
  25505. </doc>
  25506. </method>
  25507. <doc>
  25508. <![CDATA[The metrics filter interface]]>
  25509. </doc>
  25510. </class>
  25511. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  25512. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  25513. <interface name="MetricsInfo" abstract="true"
  25514. static="false" final="false" visibility="public"
  25515. deprecated="not deprecated">
  25516. <method name="name" return="java.lang.String"
  25517. abstract="false" native="false" synchronized="false"
  25518. static="false" final="false" visibility="public"
  25519. deprecated="not deprecated">
  25520. <doc>
  25521. <![CDATA[@return the name of the metric/tag]]>
  25522. </doc>
  25523. </method>
  25524. <method name="description" return="java.lang.String"
  25525. abstract="false" native="false" synchronized="false"
  25526. static="false" final="false" visibility="public"
  25527. deprecated="not deprecated">
  25528. <doc>
  25529. <![CDATA[@return the description of the metric/tag]]>
  25530. </doc>
  25531. </method>
  25532. <doc>
  25533. <![CDATA[Interface to provide immutable meta info for metrics]]>
  25534. </doc>
  25535. </interface>
  25536. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  25537. <!-- start class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  25538. <class name="MetricsJsonBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25539. abstract="false"
  25540. static="false" final="false" visibility="public"
  25541. deprecated="not deprecated">
  25542. <constructor name="MetricsJsonBuilder" type="org.apache.hadoop.metrics2.MetricsCollector"
  25543. static="false" final="false" visibility="public"
  25544. deprecated="not deprecated">
  25545. <doc>
  25546. <![CDATA[Build an instance.
  25547. @param parent parent collector. Unused in this instance; only used for
  25548. the {@link #parent()} method]]>
  25549. </doc>
  25550. </constructor>
  25551. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25552. abstract="false" native="false" synchronized="false"
  25553. static="false" final="false" visibility="public"
  25554. deprecated="not deprecated">
  25555. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25556. <param name="value" type="java.lang.String"/>
  25557. </method>
  25558. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25559. abstract="false" native="false" synchronized="false"
  25560. static="false" final="false" visibility="public"
  25561. deprecated="not deprecated">
  25562. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25563. </method>
  25564. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25565. abstract="false" native="false" synchronized="false"
  25566. static="false" final="false" visibility="public"
  25567. deprecated="not deprecated">
  25568. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  25569. </method>
  25570. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25571. abstract="false" native="false" synchronized="false"
  25572. static="false" final="false" visibility="public"
  25573. deprecated="not deprecated">
  25574. <param name="value" type="java.lang.String"/>
  25575. </method>
  25576. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25577. abstract="false" native="false" synchronized="false"
  25578. static="false" final="false" visibility="public"
  25579. deprecated="not deprecated">
  25580. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25581. <param name="value" type="int"/>
  25582. </method>
  25583. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25584. abstract="false" native="false" synchronized="false"
  25585. static="false" final="false" visibility="public"
  25586. deprecated="not deprecated">
  25587. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25588. <param name="value" type="long"/>
  25589. </method>
  25590. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25591. abstract="false" native="false" synchronized="false"
  25592. static="false" final="false" visibility="public"
  25593. deprecated="not deprecated">
  25594. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25595. <param name="value" type="int"/>
  25596. </method>
  25597. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25598. abstract="false" native="false" synchronized="false"
  25599. static="false" final="false" visibility="public"
  25600. deprecated="not deprecated">
  25601. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25602. <param name="value" type="long"/>
  25603. </method>
  25604. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25605. abstract="false" native="false" synchronized="false"
  25606. static="false" final="false" visibility="public"
  25607. deprecated="not deprecated">
  25608. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25609. <param name="value" type="float"/>
  25610. </method>
  25611. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25612. abstract="false" native="false" synchronized="false"
  25613. static="false" final="false" visibility="public"
  25614. deprecated="not deprecated">
  25615. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25616. <param name="value" type="double"/>
  25617. </method>
  25618. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  25619. abstract="false" native="false" synchronized="false"
  25620. static="false" final="false" visibility="public"
  25621. deprecated="not deprecated">
  25622. </method>
  25623. <method name="toString" return="java.lang.String"
  25624. abstract="false" native="false" synchronized="false"
  25625. static="false" final="false" visibility="public"
  25626. deprecated="not deprecated">
  25627. </method>
  25628. <field name="LOG" type="org.slf4j.Logger"
  25629. transient="false" volatile="false"
  25630. static="true" final="true" visibility="public"
  25631. deprecated="not deprecated">
  25632. </field>
  25633. <doc>
  25634. <![CDATA[Build a JSON dump of the metrics.
  25635. The {@link #toString()} operator dumps out all values collected.]]>
  25636. </doc>
  25637. </class>
  25638. <!-- end class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  25639. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25640. <interface name="MetricsPlugin" abstract="true"
  25641. static="false" final="false" visibility="public"
  25642. deprecated="not deprecated">
  25643. <method name="init"
  25644. abstract="false" native="false" synchronized="false"
  25645. static="false" final="false" visibility="public"
  25646. deprecated="not deprecated">
  25647. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25648. <doc>
  25649. <![CDATA[Initialize the plugin
  25650. @param conf the configuration object for the plugin]]>
  25651. </doc>
  25652. </method>
  25653. <doc>
  25654. <![CDATA[The plugin interface for the metrics framework]]>
  25655. </doc>
  25656. </interface>
  25657. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25658. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  25659. <interface name="MetricsRecord" abstract="true"
  25660. static="false" final="false" visibility="public"
  25661. deprecated="not deprecated">
  25662. <method name="timestamp" return="long"
  25663. abstract="false" native="false" synchronized="false"
  25664. static="false" final="false" visibility="public"
  25665. deprecated="not deprecated">
  25666. <doc>
  25667. <![CDATA[Get the timestamp of the metrics
  25668. @return the timestamp]]>
  25669. </doc>
  25670. </method>
  25671. <method name="name" return="java.lang.String"
  25672. abstract="false" native="false" synchronized="false"
  25673. static="false" final="false" visibility="public"
  25674. deprecated="not deprecated">
  25675. <doc>
  25676. <![CDATA[@return the record name]]>
  25677. </doc>
  25678. </method>
  25679. <method name="description" return="java.lang.String"
  25680. abstract="false" native="false" synchronized="false"
  25681. static="false" final="false" visibility="public"
  25682. deprecated="not deprecated">
  25683. <doc>
  25684. <![CDATA[@return the description of the record]]>
  25685. </doc>
  25686. </method>
  25687. <method name="context" return="java.lang.String"
  25688. abstract="false" native="false" synchronized="false"
  25689. static="false" final="false" visibility="public"
  25690. deprecated="not deprecated">
  25691. <doc>
  25692. <![CDATA[@return the context name of the record]]>
  25693. </doc>
  25694. </method>
  25695. <method name="tags" return="java.util.Collection"
  25696. abstract="false" native="false" synchronized="false"
  25697. static="false" final="false" visibility="public"
  25698. deprecated="not deprecated">
  25699. <doc>
  25700. <![CDATA[Get the tags of the record
  25701. Note: returning a collection instead of iterable as we
  25702. need to use tags as keys (hence Collection#hashCode etc.) in maps
  25703. @return an unmodifiable collection of tags]]>
  25704. </doc>
  25705. </method>
  25706. <method name="metrics" return="java.lang.Iterable"
  25707. abstract="false" native="false" synchronized="false"
  25708. static="false" final="false" visibility="public"
  25709. deprecated="not deprecated">
  25710. <doc>
  25711. <![CDATA[Get the metrics of the record
  25712. @return an immutable iterable interface for metrics]]>
  25713. </doc>
  25714. </method>
  25715. <doc>
  25716. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  25717. </doc>
  25718. </interface>
  25719. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  25720. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25721. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  25722. abstract="true"
  25723. static="false" final="false" visibility="public"
  25724. deprecated="not deprecated">
  25725. <constructor name="MetricsRecordBuilder"
  25726. static="false" final="false" visibility="public"
  25727. deprecated="not deprecated">
  25728. </constructor>
  25729. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25730. abstract="true" native="false" synchronized="false"
  25731. static="false" final="false" visibility="public"
  25732. deprecated="not deprecated">
  25733. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25734. <param name="value" type="java.lang.String"/>
  25735. <doc>
  25736. <![CDATA[Add a metrics tag
  25737. @param info metadata of the tag
  25738. @param value of the tag
  25739. @return self]]>
  25740. </doc>
  25741. </method>
  25742. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25743. abstract="true" native="false" synchronized="false"
  25744. static="false" final="false" visibility="public"
  25745. deprecated="not deprecated">
  25746. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25747. <doc>
  25748. <![CDATA[Add an immutable metrics tag object
  25749. @param tag a pre-made tag object (potentially save an object construction)
  25750. @return self]]>
  25751. </doc>
  25752. </method>
  25753. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25754. abstract="true" native="false" synchronized="false"
  25755. static="false" final="false" visibility="public"
  25756. deprecated="not deprecated">
  25757. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  25758. <doc>
  25759. <![CDATA[Add a pre-made immutable metric object
  25760. @param metric the pre-made metric to save an object construction
  25761. @return self]]>
  25762. </doc>
  25763. </method>
  25764. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25765. abstract="true" native="false" synchronized="false"
  25766. static="false" final="false" visibility="public"
  25767. deprecated="not deprecated">
  25768. <param name="value" type="java.lang.String"/>
  25769. <doc>
  25770. <![CDATA[Set the context tag
  25771. @param value of the context
  25772. @return self]]>
  25773. </doc>
  25774. </method>
  25775. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25776. abstract="true" native="false" synchronized="false"
  25777. static="false" final="false" visibility="public"
  25778. deprecated="not deprecated">
  25779. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25780. <param name="value" type="int"/>
  25781. <doc>
  25782. <![CDATA[Add an integer metric
  25783. @param info metadata of the metric
  25784. @param value of the metric
  25785. @return self]]>
  25786. </doc>
  25787. </method>
  25788. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25789. abstract="true" native="false" synchronized="false"
  25790. static="false" final="false" visibility="public"
  25791. deprecated="not deprecated">
  25792. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25793. <param name="value" type="long"/>
  25794. <doc>
  25795. <![CDATA[Add an long metric
  25796. @param info metadata of the metric
  25797. @param value of the metric
  25798. @return self]]>
  25799. </doc>
  25800. </method>
  25801. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25802. abstract="true" native="false" synchronized="false"
  25803. static="false" final="false" visibility="public"
  25804. deprecated="not deprecated">
  25805. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25806. <param name="value" type="int"/>
  25807. <doc>
  25808. <![CDATA[Add a integer gauge metric
  25809. @param info metadata of the metric
  25810. @param value of the metric
  25811. @return self]]>
  25812. </doc>
  25813. </method>
  25814. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25815. abstract="true" native="false" synchronized="false"
  25816. static="false" final="false" visibility="public"
  25817. deprecated="not deprecated">
  25818. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25819. <param name="value" type="long"/>
  25820. <doc>
  25821. <![CDATA[Add a long gauge metric
  25822. @param info metadata of the metric
  25823. @param value of the metric
  25824. @return self]]>
  25825. </doc>
  25826. </method>
  25827. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25828. abstract="true" native="false" synchronized="false"
  25829. static="false" final="false" visibility="public"
  25830. deprecated="not deprecated">
  25831. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25832. <param name="value" type="float"/>
  25833. <doc>
  25834. <![CDATA[Add a float gauge metric
  25835. @param info metadata of the metric
  25836. @param value of the metric
  25837. @return self]]>
  25838. </doc>
  25839. </method>
  25840. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25841. abstract="true" native="false" synchronized="false"
  25842. static="false" final="false" visibility="public"
  25843. deprecated="not deprecated">
  25844. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25845. <param name="value" type="double"/>
  25846. <doc>
  25847. <![CDATA[Add a double gauge metric
  25848. @param info metadata of the metric
  25849. @param value of the metric
  25850. @return self]]>
  25851. </doc>
  25852. </method>
  25853. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  25854. abstract="true" native="false" synchronized="false"
  25855. static="false" final="false" visibility="public"
  25856. deprecated="not deprecated">
  25857. <doc>
  25858. <![CDATA[@return the parent metrics collector object]]>
  25859. </doc>
  25860. </method>
  25861. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  25862. abstract="false" native="false" synchronized="false"
  25863. static="false" final="false" visibility="public"
  25864. deprecated="not deprecated">
  25865. <doc>
  25866. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  25867. @return the parent metrics collector object]]>
  25868. </doc>
  25869. </method>
  25870. <doc>
  25871. <![CDATA[The metrics record builder interface]]>
  25872. </doc>
  25873. </class>
  25874. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25875. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  25876. <interface name="MetricsSink" abstract="true"
  25877. static="false" final="false" visibility="public"
  25878. deprecated="not deprecated">
  25879. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  25880. <method name="putMetrics"
  25881. abstract="false" native="false" synchronized="false"
  25882. static="false" final="false" visibility="public"
  25883. deprecated="not deprecated">
  25884. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25885. <doc>
  25886. <![CDATA[Put a metrics record in the sink
  25887. @param record the record to put]]>
  25888. </doc>
  25889. </method>
  25890. <method name="flush"
  25891. abstract="false" native="false" synchronized="false"
  25892. static="false" final="false" visibility="public"
  25893. deprecated="not deprecated">
  25894. <doc>
  25895. <![CDATA[Flush any buffered metrics]]>
  25896. </doc>
  25897. </method>
  25898. <doc>
  25899. <![CDATA[The metrics sink interface. <p>
  25900. Implementations of this interface consume the {@link MetricsRecord} generated
  25901. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  25902. periodically pushes the {@link MetricsRecord} to the sink using
  25903. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  25904. implements {@link Closeable}, then the MetricsSystem will close the sink when
  25905. it is stopped.]]>
  25906. </doc>
  25907. </interface>
  25908. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  25909. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  25910. <interface name="MetricsSource" abstract="true"
  25911. static="false" final="false" visibility="public"
  25912. deprecated="not deprecated">
  25913. <method name="getMetrics"
  25914. abstract="false" native="false" synchronized="false"
  25915. static="false" final="false" visibility="public"
  25916. deprecated="not deprecated">
  25917. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  25918. <param name="all" type="boolean"/>
  25919. <doc>
  25920. <![CDATA[Get metrics from the source
  25921. @param collector to contain the resulting metrics snapshot
  25922. @param all if true, return all metrics even if unchanged.]]>
  25923. </doc>
  25924. </method>
  25925. <doc>
  25926. <![CDATA[The metrics source interface]]>
  25927. </doc>
  25928. </interface>
  25929. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  25930. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  25931. <class name="MetricsSystem" extends="java.lang.Object"
  25932. abstract="true"
  25933. static="false" final="false" visibility="public"
  25934. deprecated="not deprecated">
  25935. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  25936. <constructor name="MetricsSystem"
  25937. static="false" final="false" visibility="public"
  25938. deprecated="not deprecated">
  25939. </constructor>
  25940. <method name="unregisterSource"
  25941. abstract="true" native="false" synchronized="false"
  25942. static="false" final="false" visibility="public"
  25943. deprecated="not deprecated">
  25944. <param name="name" type="java.lang.String"/>
  25945. <doc>
  25946. <![CDATA[Unregister a metrics source
  25947. @param name of the source. This is the name you use to call register()]]>
  25948. </doc>
  25949. </method>
  25950. <method name="register" return="T"
  25951. abstract="false" native="false" synchronized="false"
  25952. static="false" final="false" visibility="public"
  25953. deprecated="not deprecated">
  25954. <param name="source" type="T"/>
  25955. <doc>
  25956. <![CDATA[Register a metrics source (deriving name and description from the object)
  25957. @param <T> the actual type of the source object
  25958. @param source object to register
  25959. @return the source object
  25960. @exception MetricsException]]>
  25961. </doc>
  25962. </method>
  25963. <method name="register" return="T"
  25964. abstract="true" native="false" synchronized="false"
  25965. static="false" final="false" visibility="public"
  25966. deprecated="not deprecated">
  25967. <param name="name" type="java.lang.String"/>
  25968. <param name="desc" type="java.lang.String"/>
  25969. <param name="source" type="T"/>
  25970. <doc>
  25971. <![CDATA[Register a metrics source
  25972. @param <T> the actual type of the source object
  25973. @param source object to register
  25974. @param name of the source. Must be unique or null (then extracted from
  25975. the annotations of the source object.)
  25976. @param desc the description of the source (or null. See above.)
  25977. @return the source object
  25978. @exception MetricsException]]>
  25979. </doc>
  25980. </method>
  25981. <method name="register"
  25982. abstract="true" native="false" synchronized="false"
  25983. static="false" final="false" visibility="public"
  25984. deprecated="not deprecated">
  25985. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25986. <doc>
  25987. <![CDATA[Register a callback interface for JMX events
  25988. @param callback the callback object implementing the MBean interface.]]>
  25989. </doc>
  25990. </method>
  25991. <method name="publishMetricsNow"
  25992. abstract="true" native="false" synchronized="false"
  25993. static="false" final="false" visibility="public"
  25994. deprecated="not deprecated">
  25995. <doc>
  25996. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  25997. This is a "soft" request: the expectation is that a best effort will be
  25998. done to synchronously snapshot the metrics from all the sources and put
  25999. them in all the sinks (including flushing the sinks) before returning to
  26000. the caller. If this can't be accomplished in reasonable time it's OK to
  26001. return to the caller before everything is done.]]>
  26002. </doc>
  26003. </method>
  26004. <method name="shutdown" return="boolean"
  26005. abstract="true" native="false" synchronized="false"
  26006. static="false" final="false" visibility="public"
  26007. deprecated="not deprecated">
  26008. <doc>
  26009. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  26010. The MetricsSystemMXBean will be unregistered.
  26011. @return true if shutdown completed]]>
  26012. </doc>
  26013. </method>
  26014. <doc>
  26015. <![CDATA[The metrics system interface]]>
  26016. </doc>
  26017. </class>
  26018. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  26019. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  26020. <interface name="MetricsSystemMXBean" abstract="true"
  26021. static="false" final="false" visibility="public"
  26022. deprecated="not deprecated">
  26023. <method name="start"
  26024. abstract="false" native="false" synchronized="false"
  26025. static="false" final="false" visibility="public"
  26026. deprecated="not deprecated">
  26027. <doc>
  26028. <![CDATA[Start the metrics system
  26029. @throws MetricsException]]>
  26030. </doc>
  26031. </method>
  26032. <method name="stop"
  26033. abstract="false" native="false" synchronized="false"
  26034. static="false" final="false" visibility="public"
  26035. deprecated="not deprecated">
  26036. <doc>
  26037. <![CDATA[Stop the metrics system
  26038. @throws MetricsException]]>
  26039. </doc>
  26040. </method>
  26041. <method name="startMetricsMBeans"
  26042. abstract="false" native="false" synchronized="false"
  26043. static="false" final="false" visibility="public"
  26044. deprecated="not deprecated">
  26045. <doc>
  26046. <![CDATA[Start metrics MBeans
  26047. @throws MetricsException]]>
  26048. </doc>
  26049. </method>
  26050. <method name="stopMetricsMBeans"
  26051. abstract="false" native="false" synchronized="false"
  26052. static="false" final="false" visibility="public"
  26053. deprecated="not deprecated">
  26054. <doc>
  26055. <![CDATA[Stop metrics MBeans.
  26056. Note, it doesn't stop the metrics system control MBean,
  26057. i.e this interface.
  26058. @throws MetricsException]]>
  26059. </doc>
  26060. </method>
  26061. <method name="currentConfig" return="java.lang.String"
  26062. abstract="false" native="false" synchronized="false"
  26063. static="false" final="false" visibility="public"
  26064. deprecated="not deprecated">
  26065. <doc>
  26066. <![CDATA[@return the current config
  26067. Avoided getConfig, as it'll turn into a "Config" attribute,
  26068. which doesn't support multiple line values in jconsole.
  26069. @throws MetricsException]]>
  26070. </doc>
  26071. </method>
  26072. <doc>
  26073. <![CDATA[The JMX interface to the metrics system]]>
  26074. </doc>
  26075. </interface>
  26076. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  26077. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  26078. <class name="MetricsTag" extends="java.lang.Object"
  26079. abstract="false"
  26080. static="false" final="false" visibility="public"
  26081. deprecated="not deprecated">
  26082. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  26083. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  26084. static="false" final="false" visibility="public"
  26085. deprecated="not deprecated">
  26086. <doc>
  26087. <![CDATA[Construct the tag with name, description and value
  26088. @param info of the tag
  26089. @param value of the tag]]>
  26090. </doc>
  26091. </constructor>
  26092. <method name="name" return="java.lang.String"
  26093. abstract="false" native="false" synchronized="false"
  26094. static="false" final="false" visibility="public"
  26095. deprecated="not deprecated">
  26096. </method>
  26097. <method name="description" return="java.lang.String"
  26098. abstract="false" native="false" synchronized="false"
  26099. static="false" final="false" visibility="public"
  26100. deprecated="not deprecated">
  26101. </method>
  26102. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  26103. abstract="false" native="false" synchronized="false"
  26104. static="false" final="false" visibility="public"
  26105. deprecated="not deprecated">
  26106. <doc>
  26107. <![CDATA[@return the info object of the tag]]>
  26108. </doc>
  26109. </method>
  26110. <method name="value" return="java.lang.String"
  26111. abstract="false" native="false" synchronized="false"
  26112. static="false" final="false" visibility="public"
  26113. deprecated="not deprecated">
  26114. <doc>
  26115. <![CDATA[Get the value of the tag
  26116. @return the value]]>
  26117. </doc>
  26118. </method>
  26119. <method name="equals" return="boolean"
  26120. abstract="false" native="false" synchronized="false"
  26121. static="false" final="false" visibility="public"
  26122. deprecated="not deprecated">
  26123. <param name="obj" type="java.lang.Object"/>
  26124. </method>
  26125. <method name="hashCode" return="int"
  26126. abstract="false" native="false" synchronized="false"
  26127. static="false" final="false" visibility="public"
  26128. deprecated="not deprecated">
  26129. </method>
  26130. <method name="toString" return="java.lang.String"
  26131. abstract="false" native="false" synchronized="false"
  26132. static="false" final="false" visibility="public"
  26133. deprecated="not deprecated">
  26134. </method>
  26135. <doc>
  26136. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  26137. </doc>
  26138. </class>
  26139. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  26140. <!-- start class org.apache.hadoop.metrics2.MetricStringBuilder -->
  26141. <class name="MetricStringBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26142. abstract="false"
  26143. static="false" final="false" visibility="public"
  26144. deprecated="not deprecated">
  26145. <constructor name="MetricStringBuilder" type="org.apache.hadoop.metrics2.MetricsCollector, java.lang.String, java.lang.String, java.lang.String"
  26146. static="false" final="false" visibility="public"
  26147. deprecated="not deprecated">
  26148. <doc>
  26149. <![CDATA[Build an instance.
  26150. @param parent parent collector. Unused in this instance; only used for
  26151. the {@link #parent()} method
  26152. @param prefix string before each entry
  26153. @param separator separator between name and value
  26154. @param suffix suffix after each entry]]>
  26155. </doc>
  26156. </constructor>
  26157. <method name="add" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  26158. abstract="false" native="false" synchronized="false"
  26159. static="false" final="false" visibility="public"
  26160. deprecated="not deprecated">
  26161. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26162. <param name="value" type="java.lang.Object"/>
  26163. </method>
  26164. <method name="tuple" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  26165. abstract="false" native="false" synchronized="false"
  26166. static="false" final="false" visibility="public"
  26167. deprecated="not deprecated">
  26168. <param name="key" type="java.lang.String"/>
  26169. <param name="value" type="java.lang.String"/>
  26170. <doc>
  26171. <![CDATA[Add any key,val pair to the string, between the prefix and suffix,
  26172. separated by the separator.
  26173. @param key key
  26174. @param value value
  26175. @return this instance]]>
  26176. </doc>
  26177. </method>
  26178. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26179. abstract="false" native="false" synchronized="false"
  26180. static="false" final="false" visibility="public"
  26181. deprecated="not deprecated">
  26182. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26183. <param name="value" type="java.lang.String"/>
  26184. </method>
  26185. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26186. abstract="false" native="false" synchronized="false"
  26187. static="false" final="false" visibility="public"
  26188. deprecated="not deprecated">
  26189. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26190. </method>
  26191. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26192. abstract="false" native="false" synchronized="false"
  26193. static="false" final="false" visibility="public"
  26194. deprecated="not deprecated">
  26195. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  26196. </method>
  26197. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26198. abstract="false" native="false" synchronized="false"
  26199. static="false" final="false" visibility="public"
  26200. deprecated="not deprecated">
  26201. <param name="value" type="java.lang.String"/>
  26202. </method>
  26203. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26204. abstract="false" native="false" synchronized="false"
  26205. static="false" final="false" visibility="public"
  26206. deprecated="not deprecated">
  26207. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26208. <param name="value" type="int"/>
  26209. </method>
  26210. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26211. abstract="false" native="false" synchronized="false"
  26212. static="false" final="false" visibility="public"
  26213. deprecated="not deprecated">
  26214. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26215. <param name="value" type="long"/>
  26216. </method>
  26217. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26218. abstract="false" native="false" synchronized="false"
  26219. static="false" final="false" visibility="public"
  26220. deprecated="not deprecated">
  26221. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26222. <param name="value" type="int"/>
  26223. </method>
  26224. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26225. abstract="false" native="false" synchronized="false"
  26226. static="false" final="false" visibility="public"
  26227. deprecated="not deprecated">
  26228. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26229. <param name="value" type="long"/>
  26230. </method>
  26231. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26232. abstract="false" native="false" synchronized="false"
  26233. static="false" final="false" visibility="public"
  26234. deprecated="not deprecated">
  26235. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26236. <param name="value" type="float"/>
  26237. </method>
  26238. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26239. abstract="false" native="false" synchronized="false"
  26240. static="false" final="false" visibility="public"
  26241. deprecated="not deprecated">
  26242. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26243. <param name="value" type="double"/>
  26244. </method>
  26245. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  26246. abstract="false" native="false" synchronized="false"
  26247. static="false" final="false" visibility="public"
  26248. deprecated="not deprecated">
  26249. </method>
  26250. <method name="toString" return="java.lang.String"
  26251. abstract="false" native="false" synchronized="false"
  26252. static="false" final="false" visibility="public"
  26253. deprecated="not deprecated">
  26254. </method>
  26255. <doc>
  26256. <![CDATA[Build a string dump of the metrics.
  26257. The {@link #toString()} operator dumps out all values collected.
  26258. Every entry is formatted as
  26259. {@code prefix + name + separator + value + suffix}]]>
  26260. </doc>
  26261. </class>
  26262. <!-- end class org.apache.hadoop.metrics2.MetricStringBuilder -->
  26263. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  26264. <interface name="MetricsVisitor" abstract="true"
  26265. static="false" final="false" visibility="public"
  26266. deprecated="not deprecated">
  26267. <method name="gauge"
  26268. abstract="false" native="false" synchronized="false"
  26269. static="false" final="false" visibility="public"
  26270. deprecated="not deprecated">
  26271. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26272. <param name="value" type="int"/>
  26273. <doc>
  26274. <![CDATA[Callback for integer value gauges
  26275. @param info the metric info
  26276. @param value of the metric]]>
  26277. </doc>
  26278. </method>
  26279. <method name="gauge"
  26280. abstract="false" native="false" synchronized="false"
  26281. static="false" final="false" visibility="public"
  26282. deprecated="not deprecated">
  26283. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26284. <param name="value" type="long"/>
  26285. <doc>
  26286. <![CDATA[Callback for long value gauges
  26287. @param info the metric info
  26288. @param value of the metric]]>
  26289. </doc>
  26290. </method>
  26291. <method name="gauge"
  26292. abstract="false" native="false" synchronized="false"
  26293. static="false" final="false" visibility="public"
  26294. deprecated="not deprecated">
  26295. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26296. <param name="value" type="float"/>
  26297. <doc>
  26298. <![CDATA[Callback for float value gauges
  26299. @param info the metric info
  26300. @param value of the metric]]>
  26301. </doc>
  26302. </method>
  26303. <method name="gauge"
  26304. abstract="false" native="false" synchronized="false"
  26305. static="false" final="false" visibility="public"
  26306. deprecated="not deprecated">
  26307. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26308. <param name="value" type="double"/>
  26309. <doc>
  26310. <![CDATA[Callback for double value gauges
  26311. @param info the metric info
  26312. @param value of the metric]]>
  26313. </doc>
  26314. </method>
  26315. <method name="counter"
  26316. abstract="false" native="false" synchronized="false"
  26317. static="false" final="false" visibility="public"
  26318. deprecated="not deprecated">
  26319. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26320. <param name="value" type="int"/>
  26321. <doc>
  26322. <![CDATA[Callback for integer value counters
  26323. @param info the metric info
  26324. @param value of the metric]]>
  26325. </doc>
  26326. </method>
  26327. <method name="counter"
  26328. abstract="false" native="false" synchronized="false"
  26329. static="false" final="false" visibility="public"
  26330. deprecated="not deprecated">
  26331. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26332. <param name="value" type="long"/>
  26333. <doc>
  26334. <![CDATA[Callback for long value counters
  26335. @param info the metric info
  26336. @param value of the metric]]>
  26337. </doc>
  26338. </method>
  26339. <doc>
  26340. <![CDATA[A visitor interface for metrics]]>
  26341. </doc>
  26342. </interface>
  26343. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  26344. </package>
  26345. <package name="org.apache.hadoop.metrics2.annotation">
  26346. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  26347. <class name="Metric" abstract="true"
  26348. static="false" final="false" visibility="public"
  26349. deprecated="not deprecated">
  26350. <implements name="java.lang.annotation.Annotation"/>
  26351. <doc>
  26352. <![CDATA[Annotation interface for a single metric]]>
  26353. </doc>
  26354. </class>
  26355. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  26356. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  26357. <class name="Metrics" abstract="true"
  26358. static="false" final="false" visibility="public"
  26359. deprecated="not deprecated">
  26360. <implements name="java.lang.annotation.Annotation"/>
  26361. <doc>
  26362. <![CDATA[Annotation interface for a group of metrics]]>
  26363. </doc>
  26364. </class>
  26365. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  26366. </package>
  26367. <package name="org.apache.hadoop.metrics2.filter">
  26368. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  26369. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  26370. abstract="false"
  26371. static="false" final="false" visibility="public"
  26372. deprecated="not deprecated">
  26373. <constructor name="GlobFilter"
  26374. static="false" final="false" visibility="public"
  26375. deprecated="not deprecated">
  26376. </constructor>
  26377. <method name="compile" return="java.util.regex.Pattern"
  26378. abstract="false" native="false" synchronized="false"
  26379. static="false" final="false" visibility="protected"
  26380. deprecated="not deprecated">
  26381. <param name="s" type="java.lang.String"/>
  26382. </method>
  26383. <doc>
  26384. <![CDATA[A glob pattern filter for metrics.
  26385. The class name is used in metrics config files]]>
  26386. </doc>
  26387. </class>
  26388. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  26389. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  26390. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  26391. abstract="false"
  26392. static="false" final="false" visibility="public"
  26393. deprecated="not deprecated">
  26394. <constructor name="RegexFilter"
  26395. static="false" final="false" visibility="public"
  26396. deprecated="not deprecated">
  26397. </constructor>
  26398. <method name="compile" return="java.util.regex.Pattern"
  26399. abstract="false" native="false" synchronized="false"
  26400. static="false" final="false" visibility="protected"
  26401. deprecated="not deprecated">
  26402. <param name="s" type="java.lang.String"/>
  26403. </method>
  26404. <doc>
  26405. <![CDATA[A regex pattern filter for metrics]]>
  26406. </doc>
  26407. </class>
  26408. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  26409. </package>
  26410. <package name="org.apache.hadoop.metrics2.lib">
  26411. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26412. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  26413. abstract="false"
  26414. static="false" final="true" visibility="public"
  26415. deprecated="not deprecated">
  26416. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  26417. abstract="false" native="false" synchronized="false"
  26418. static="true" final="false" visibility="public"
  26419. deprecated="not deprecated">
  26420. </method>
  26421. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  26422. abstract="false" native="false" synchronized="false"
  26423. static="true" final="false" visibility="public"
  26424. deprecated="not deprecated">
  26425. <param name="name" type="java.lang.String"/>
  26426. </method>
  26427. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  26428. abstract="false" native="false" synchronized="false"
  26429. static="true" final="false" visibility="public"
  26430. deprecated="not deprecated">
  26431. <param name="prefix" type="java.lang.String"/>
  26432. <doc>
  26433. <![CDATA[Convenience method to initialize the metrics system
  26434. @param prefix for the metrics system configuration
  26435. @return the metrics system instance]]>
  26436. </doc>
  26437. </method>
  26438. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  26439. abstract="false" native="false" synchronized="false"
  26440. static="true" final="false" visibility="public"
  26441. deprecated="not deprecated">
  26442. <doc>
  26443. <![CDATA[@return the metrics system object]]>
  26444. </doc>
  26445. </method>
  26446. <method name="shutdown"
  26447. abstract="false" native="false" synchronized="false"
  26448. static="true" final="false" visibility="public"
  26449. deprecated="not deprecated">
  26450. <doc>
  26451. <![CDATA[Shutdown the metrics system]]>
  26452. </doc>
  26453. </method>
  26454. <doc>
  26455. <![CDATA[The default metrics system singleton]]>
  26456. </doc>
  26457. </class>
  26458. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26459. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  26460. <class name="Interns" extends="java.lang.Object"
  26461. abstract="false"
  26462. static="false" final="false" visibility="public"
  26463. deprecated="not deprecated">
  26464. <constructor name="Interns"
  26465. static="false" final="false" visibility="public"
  26466. deprecated="not deprecated">
  26467. </constructor>
  26468. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  26469. abstract="false" native="false" synchronized="false"
  26470. static="true" final="false" visibility="public"
  26471. deprecated="not deprecated">
  26472. <param name="name" type="java.lang.String"/>
  26473. <param name="description" type="java.lang.String"/>
  26474. <doc>
  26475. <![CDATA[Get a metric info object.
  26476. @param name Name of metric info object
  26477. @param description Description of metric info object
  26478. @return an interned metric info object]]>
  26479. </doc>
  26480. </method>
  26481. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  26482. abstract="false" native="false" synchronized="false"
  26483. static="true" final="false" visibility="public"
  26484. deprecated="not deprecated">
  26485. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26486. <param name="value" type="java.lang.String"/>
  26487. <doc>
  26488. <![CDATA[Get a metrics tag.
  26489. @param info of the tag
  26490. @param value of the tag
  26491. @return an interned metrics tag]]>
  26492. </doc>
  26493. </method>
  26494. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  26495. abstract="false" native="false" synchronized="false"
  26496. static="true" final="false" visibility="public"
  26497. deprecated="not deprecated">
  26498. <param name="name" type="java.lang.String"/>
  26499. <param name="description" type="java.lang.String"/>
  26500. <param name="value" type="java.lang.String"/>
  26501. <doc>
  26502. <![CDATA[Get a metrics tag.
  26503. @param name of the tag
  26504. @param description of the tag
  26505. @param value of the tag
  26506. @return an interned metrics tag]]>
  26507. </doc>
  26508. </method>
  26509. <doc>
  26510. <![CDATA[Helpers to create interned metrics info.]]>
  26511. </doc>
  26512. </class>
  26513. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  26514. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  26515. <class name="MetricsRegistry" extends="java.lang.Object"
  26516. abstract="false"
  26517. static="false" final="false" visibility="public"
  26518. deprecated="not deprecated">
  26519. <constructor name="MetricsRegistry" type="java.lang.String"
  26520. static="false" final="false" visibility="public"
  26521. deprecated="not deprecated">
  26522. <doc>
  26523. <![CDATA[Construct the registry with a record name
  26524. @param name of the record of the metrics]]>
  26525. </doc>
  26526. </constructor>
  26527. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  26528. static="false" final="false" visibility="public"
  26529. deprecated="not deprecated">
  26530. <doc>
  26531. <![CDATA[Construct the registry with a metadata object
  26532. @param info the info object for the metrics record/group]]>
  26533. </doc>
  26534. </constructor>
  26535. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  26536. abstract="false" native="false" synchronized="false"
  26537. static="false" final="false" visibility="public"
  26538. deprecated="not deprecated">
  26539. <doc>
  26540. <![CDATA[@return the info object of the metrics registry]]>
  26541. </doc>
  26542. </method>
  26543. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  26544. abstract="false" native="false" synchronized="true"
  26545. static="false" final="false" visibility="public"
  26546. deprecated="not deprecated">
  26547. <param name="name" type="java.lang.String"/>
  26548. <doc>
  26549. <![CDATA[Get a metric by name
  26550. @param name of the metric
  26551. @return the metric object]]>
  26552. </doc>
  26553. </method>
  26554. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  26555. abstract="false" native="false" synchronized="true"
  26556. static="false" final="false" visibility="public"
  26557. deprecated="not deprecated">
  26558. <param name="name" type="java.lang.String"/>
  26559. <doc>
  26560. <![CDATA[Get a tag by name
  26561. @param name of the tag
  26562. @return the tag object]]>
  26563. </doc>
  26564. </method>
  26565. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  26566. abstract="false" native="false" synchronized="false"
  26567. static="false" final="false" visibility="public"
  26568. deprecated="not deprecated">
  26569. <param name="name" type="java.lang.String"/>
  26570. <param name="desc" type="java.lang.String"/>
  26571. <param name="iVal" type="int"/>
  26572. <doc>
  26573. <![CDATA[Create a mutable integer counter
  26574. @param name of the metric
  26575. @param desc metric description
  26576. @param iVal initial value
  26577. @return a new counter object]]>
  26578. </doc>
  26579. </method>
  26580. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  26581. abstract="false" native="false" synchronized="true"
  26582. static="false" final="false" visibility="public"
  26583. deprecated="not deprecated">
  26584. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26585. <param name="iVal" type="int"/>
  26586. <doc>
  26587. <![CDATA[Create a mutable integer counter
  26588. @param info metadata of the metric
  26589. @param iVal initial value
  26590. @return a new counter object]]>
  26591. </doc>
  26592. </method>
  26593. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  26594. abstract="false" native="false" synchronized="false"
  26595. static="false" final="false" visibility="public"
  26596. deprecated="not deprecated">
  26597. <param name="name" type="java.lang.String"/>
  26598. <param name="desc" type="java.lang.String"/>
  26599. <param name="iVal" type="long"/>
  26600. <doc>
  26601. <![CDATA[Create a mutable long integer counter
  26602. @param name of the metric
  26603. @param desc metric description
  26604. @param iVal initial value
  26605. @return a new counter object]]>
  26606. </doc>
  26607. </method>
  26608. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  26609. abstract="false" native="false" synchronized="true"
  26610. static="false" final="false" visibility="public"
  26611. deprecated="not deprecated">
  26612. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26613. <param name="iVal" type="long"/>
  26614. <doc>
  26615. <![CDATA[Create a mutable long integer counter
  26616. @param info metadata of the metric
  26617. @param iVal initial value
  26618. @return a new counter object]]>
  26619. </doc>
  26620. </method>
  26621. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  26622. abstract="false" native="false" synchronized="false"
  26623. static="false" final="false" visibility="public"
  26624. deprecated="not deprecated">
  26625. <param name="name" type="java.lang.String"/>
  26626. <param name="desc" type="java.lang.String"/>
  26627. <param name="iVal" type="int"/>
  26628. <doc>
  26629. <![CDATA[Create a mutable integer gauge
  26630. @param name of the metric
  26631. @param desc metric description
  26632. @param iVal initial value
  26633. @return a new gauge object]]>
  26634. </doc>
  26635. </method>
  26636. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  26637. abstract="false" native="false" synchronized="true"
  26638. static="false" final="false" visibility="public"
  26639. deprecated="not deprecated">
  26640. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26641. <param name="iVal" type="int"/>
  26642. <doc>
  26643. <![CDATA[Create a mutable integer gauge
  26644. @param info metadata of the metric
  26645. @param iVal initial value
  26646. @return a new gauge object]]>
  26647. </doc>
  26648. </method>
  26649. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  26650. abstract="false" native="false" synchronized="false"
  26651. static="false" final="false" visibility="public"
  26652. deprecated="not deprecated">
  26653. <param name="name" type="java.lang.String"/>
  26654. <param name="desc" type="java.lang.String"/>
  26655. <param name="iVal" type="long"/>
  26656. <doc>
  26657. <![CDATA[Create a mutable long integer gauge
  26658. @param name of the metric
  26659. @param desc metric description
  26660. @param iVal initial value
  26661. @return a new gauge object]]>
  26662. </doc>
  26663. </method>
  26664. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  26665. abstract="false" native="false" synchronized="true"
  26666. static="false" final="false" visibility="public"
  26667. deprecated="not deprecated">
  26668. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26669. <param name="iVal" type="long"/>
  26670. <doc>
  26671. <![CDATA[Create a mutable long integer gauge
  26672. @param info metadata of the metric
  26673. @param iVal initial value
  26674. @return a new gauge object]]>
  26675. </doc>
  26676. </method>
  26677. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  26678. abstract="false" native="false" synchronized="false"
  26679. static="false" final="false" visibility="public"
  26680. deprecated="not deprecated">
  26681. <param name="name" type="java.lang.String"/>
  26682. <param name="desc" type="java.lang.String"/>
  26683. <param name="iVal" type="float"/>
  26684. <doc>
  26685. <![CDATA[Create a mutable float gauge
  26686. @param name of the metric
  26687. @param desc metric description
  26688. @param iVal initial value
  26689. @return a new gauge object]]>
  26690. </doc>
  26691. </method>
  26692. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  26693. abstract="false" native="false" synchronized="true"
  26694. static="false" final="false" visibility="public"
  26695. deprecated="not deprecated">
  26696. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26697. <param name="iVal" type="float"/>
  26698. <doc>
  26699. <![CDATA[Create a mutable float gauge
  26700. @param info metadata of the metric
  26701. @param iVal initial value
  26702. @return a new gauge object]]>
  26703. </doc>
  26704. </method>
  26705. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  26706. abstract="false" native="false" synchronized="true"
  26707. static="false" final="false" visibility="public"
  26708. deprecated="not deprecated">
  26709. <param name="name" type="java.lang.String"/>
  26710. <param name="desc" type="java.lang.String"/>
  26711. <param name="sampleName" type="java.lang.String"/>
  26712. <param name="valueName" type="java.lang.String"/>
  26713. <param name="interval" type="int"/>
  26714. <doc>
  26715. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  26716. @param name of the metric
  26717. @param desc metric description
  26718. @param sampleName of the metric (e.g., "Ops")
  26719. @param valueName of the metric (e.g., "Time" or "Latency")
  26720. @param interval rollover interval of estimator in seconds
  26721. @return a new quantile estimator object
  26722. @throws MetricsException if interval is not a positive integer]]>
  26723. </doc>
  26724. </method>
  26725. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  26726. abstract="false" native="false" synchronized="true"
  26727. static="false" final="false" visibility="public"
  26728. deprecated="not deprecated">
  26729. <param name="name" type="java.lang.String"/>
  26730. <param name="desc" type="java.lang.String"/>
  26731. <param name="sampleName" type="java.lang.String"/>
  26732. <param name="valueName" type="java.lang.String"/>
  26733. <param name="extended" type="boolean"/>
  26734. <doc>
  26735. <![CDATA[Create a mutable metric with stats
  26736. @param name of the metric
  26737. @param desc metric description
  26738. @param sampleName of the metric (e.g., "Ops")
  26739. @param valueName of the metric (e.g., "Time" or "Latency")
  26740. @param extended produce extended stat (stdev, min/max etc.) if true.
  26741. @return a new mutable stat metric object]]>
  26742. </doc>
  26743. </method>
  26744. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  26745. abstract="false" native="false" synchronized="false"
  26746. static="false" final="false" visibility="public"
  26747. deprecated="not deprecated">
  26748. <param name="name" type="java.lang.String"/>
  26749. <param name="desc" type="java.lang.String"/>
  26750. <param name="sampleName" type="java.lang.String"/>
  26751. <param name="valueName" type="java.lang.String"/>
  26752. <doc>
  26753. <![CDATA[Create a mutable metric with stats
  26754. @param name of the metric
  26755. @param desc metric description
  26756. @param sampleName of the metric (e.g., "Ops")
  26757. @param valueName of the metric (e.g., "Time" or "Latency")
  26758. @return a new mutable metric object]]>
  26759. </doc>
  26760. </method>
  26761. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  26762. abstract="false" native="false" synchronized="false"
  26763. static="false" final="false" visibility="public"
  26764. deprecated="not deprecated">
  26765. <param name="name" type="java.lang.String"/>
  26766. <doc>
  26767. <![CDATA[Create a mutable rate metric
  26768. @param name of the metric
  26769. @return a new mutable metric object]]>
  26770. </doc>
  26771. </method>
  26772. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  26773. abstract="false" native="false" synchronized="false"
  26774. static="false" final="false" visibility="public"
  26775. deprecated="not deprecated">
  26776. <param name="name" type="java.lang.String"/>
  26777. <param name="description" type="java.lang.String"/>
  26778. <doc>
  26779. <![CDATA[Create a mutable rate metric
  26780. @param name of the metric
  26781. @param description of the metric
  26782. @return a new mutable rate metric object]]>
  26783. </doc>
  26784. </method>
  26785. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  26786. abstract="false" native="false" synchronized="false"
  26787. static="false" final="false" visibility="public"
  26788. deprecated="not deprecated">
  26789. <param name="name" type="java.lang.String"/>
  26790. <param name="desc" type="java.lang.String"/>
  26791. <param name="extended" type="boolean"/>
  26792. <doc>
  26793. <![CDATA[Create a mutable rate metric (for throughput measurement)
  26794. @param name of the metric
  26795. @param desc description
  26796. @param extended produce extended stat (stdev/min/max etc.) if true
  26797. @return a new mutable rate metric object]]>
  26798. </doc>
  26799. </method>
  26800. <method name="newRatesWithAggregation" return="org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation"
  26801. abstract="false" native="false" synchronized="true"
  26802. static="false" final="false" visibility="public"
  26803. deprecated="not deprecated">
  26804. <param name="name" type="java.lang.String"/>
  26805. </method>
  26806. <method name="newMutableRollingAverages" return="org.apache.hadoop.metrics2.lib.MutableRollingAverages"
  26807. abstract="false" native="false" synchronized="true"
  26808. static="false" final="false" visibility="public"
  26809. deprecated="not deprecated">
  26810. <param name="name" type="java.lang.String"/>
  26811. <param name="valueName" type="java.lang.String"/>
  26812. </method>
  26813. <method name="add"
  26814. abstract="false" native="false" synchronized="true"
  26815. static="false" final="false" visibility="public"
  26816. deprecated="not deprecated">
  26817. <param name="name" type="java.lang.String"/>
  26818. <param name="value" type="long"/>
  26819. <doc>
  26820. <![CDATA[Add sample to a stat metric by name.
  26821. @param name of the metric
  26822. @param value of the snapshot to add]]>
  26823. </doc>
  26824. </method>
  26825. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26826. abstract="false" native="false" synchronized="false"
  26827. static="false" final="false" visibility="public"
  26828. deprecated="not deprecated">
  26829. <param name="name" type="java.lang.String"/>
  26830. <doc>
  26831. <![CDATA[Set the metrics context tag
  26832. @param name of the context
  26833. @return the registry itself as a convenience]]>
  26834. </doc>
  26835. </method>
  26836. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26837. abstract="false" native="false" synchronized="false"
  26838. static="false" final="false" visibility="public"
  26839. deprecated="not deprecated">
  26840. <param name="name" type="java.lang.String"/>
  26841. <param name="description" type="java.lang.String"/>
  26842. <param name="value" type="java.lang.String"/>
  26843. <doc>
  26844. <![CDATA[Add a tag to the metrics
  26845. @param name of the tag
  26846. @param description of the tag
  26847. @param value of the tag
  26848. @return the registry (for keep adding tags)]]>
  26849. </doc>
  26850. </method>
  26851. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26852. abstract="false" native="false" synchronized="false"
  26853. static="false" final="false" visibility="public"
  26854. deprecated="not deprecated">
  26855. <param name="name" type="java.lang.String"/>
  26856. <param name="description" type="java.lang.String"/>
  26857. <param name="value" type="java.lang.String"/>
  26858. <param name="override" type="boolean"/>
  26859. <doc>
  26860. <![CDATA[Add a tag to the metrics
  26861. @param name of the tag
  26862. @param description of the tag
  26863. @param value of the tag
  26864. @param override existing tag if true
  26865. @return the registry (for keep adding tags)]]>
  26866. </doc>
  26867. </method>
  26868. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26869. abstract="false" native="false" synchronized="true"
  26870. static="false" final="false" visibility="public"
  26871. deprecated="not deprecated">
  26872. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26873. <param name="value" type="java.lang.String"/>
  26874. <param name="override" type="boolean"/>
  26875. <doc>
  26876. <![CDATA[Add a tag to the metrics
  26877. @param info metadata of the tag
  26878. @param value of the tag
  26879. @param override existing tag if true
  26880. @return the registry (for keep adding tags etc.)]]>
  26881. </doc>
  26882. </method>
  26883. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26884. abstract="false" native="false" synchronized="false"
  26885. static="false" final="false" visibility="public"
  26886. deprecated="not deprecated">
  26887. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26888. <param name="value" type="java.lang.String"/>
  26889. </method>
  26890. <method name="snapshot"
  26891. abstract="false" native="false" synchronized="true"
  26892. static="false" final="false" visibility="public"
  26893. deprecated="not deprecated">
  26894. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26895. <param name="all" type="boolean"/>
  26896. <doc>
  26897. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  26898. @param builder to contain the metrics snapshot
  26899. @param all get all the metrics even if the values are not changed.]]>
  26900. </doc>
  26901. </method>
  26902. <method name="toString" return="java.lang.String"
  26903. abstract="false" native="false" synchronized="false"
  26904. static="false" final="false" visibility="public"
  26905. deprecated="not deprecated">
  26906. </method>
  26907. <doc>
  26908. <![CDATA[An optional metrics registry class for creating and maintaining a
  26909. collection of MetricsMutables, making writing metrics source easier.]]>
  26910. </doc>
  26911. </class>
  26912. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  26913. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  26914. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  26915. abstract="true"
  26916. static="false" final="false" visibility="public"
  26917. deprecated="not deprecated">
  26918. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  26919. static="false" final="false" visibility="protected"
  26920. deprecated="not deprecated">
  26921. </constructor>
  26922. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  26923. abstract="false" native="false" synchronized="false"
  26924. static="false" final="false" visibility="protected"
  26925. deprecated="not deprecated">
  26926. </method>
  26927. <method name="incr"
  26928. abstract="true" native="false" synchronized="false"
  26929. static="false" final="false" visibility="public"
  26930. deprecated="not deprecated">
  26931. <doc>
  26932. <![CDATA[Increment the metric value by 1.]]>
  26933. </doc>
  26934. </method>
  26935. <doc>
  26936. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  26937. </doc>
  26938. </class>
  26939. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  26940. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  26941. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  26942. abstract="false"
  26943. static="false" final="false" visibility="public"
  26944. deprecated="not deprecated">
  26945. <method name="incr"
  26946. abstract="false" native="false" synchronized="false"
  26947. static="false" final="false" visibility="public"
  26948. deprecated="not deprecated">
  26949. </method>
  26950. <method name="incr"
  26951. abstract="false" native="false" synchronized="true"
  26952. static="false" final="false" visibility="public"
  26953. deprecated="not deprecated">
  26954. <param name="delta" type="int"/>
  26955. <doc>
  26956. <![CDATA[Increment the value by a delta
  26957. @param delta of the increment]]>
  26958. </doc>
  26959. </method>
  26960. <method name="value" return="int"
  26961. abstract="false" native="false" synchronized="false"
  26962. static="false" final="false" visibility="public"
  26963. deprecated="not deprecated">
  26964. </method>
  26965. <method name="snapshot"
  26966. abstract="false" native="false" synchronized="false"
  26967. static="false" final="false" visibility="public"
  26968. deprecated="not deprecated">
  26969. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26970. <param name="all" type="boolean"/>
  26971. </method>
  26972. <doc>
  26973. <![CDATA[A mutable int counter for implementing metrics sources]]>
  26974. </doc>
  26975. </class>
  26976. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  26977. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  26978. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  26979. abstract="false"
  26980. static="false" final="false" visibility="public"
  26981. deprecated="not deprecated">
  26982. <constructor name="MutableCounterLong" type="org.apache.hadoop.metrics2.MetricsInfo, long"
  26983. static="false" final="false" visibility="public"
  26984. deprecated="not deprecated">
  26985. </constructor>
  26986. <method name="incr"
  26987. abstract="false" native="false" synchronized="false"
  26988. static="false" final="false" visibility="public"
  26989. deprecated="not deprecated">
  26990. </method>
  26991. <method name="incr"
  26992. abstract="false" native="false" synchronized="false"
  26993. static="false" final="false" visibility="public"
  26994. deprecated="not deprecated">
  26995. <param name="delta" type="long"/>
  26996. <doc>
  26997. <![CDATA[Increment the value by a delta
  26998. @param delta of the increment]]>
  26999. </doc>
  27000. </method>
  27001. <method name="value" return="long"
  27002. abstract="false" native="false" synchronized="false"
  27003. static="false" final="false" visibility="public"
  27004. deprecated="not deprecated">
  27005. </method>
  27006. <method name="snapshot"
  27007. abstract="false" native="false" synchronized="false"
  27008. static="false" final="false" visibility="public"
  27009. deprecated="not deprecated">
  27010. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27011. <param name="all" type="boolean"/>
  27012. </method>
  27013. <doc>
  27014. <![CDATA[A mutable long counter]]>
  27015. </doc>
  27016. </class>
  27017. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  27018. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  27019. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27020. abstract="true"
  27021. static="false" final="false" visibility="public"
  27022. deprecated="not deprecated">
  27023. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  27024. static="false" final="false" visibility="protected"
  27025. deprecated="not deprecated">
  27026. </constructor>
  27027. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  27028. abstract="false" native="false" synchronized="false"
  27029. static="false" final="false" visibility="protected"
  27030. deprecated="not deprecated">
  27031. </method>
  27032. <method name="incr"
  27033. abstract="true" native="false" synchronized="false"
  27034. static="false" final="false" visibility="public"
  27035. deprecated="not deprecated">
  27036. <doc>
  27037. <![CDATA[Increment the value of the metric by 1]]>
  27038. </doc>
  27039. </method>
  27040. <method name="decr"
  27041. abstract="true" native="false" synchronized="false"
  27042. static="false" final="false" visibility="public"
  27043. deprecated="not deprecated">
  27044. <doc>
  27045. <![CDATA[Decrement the value of the metric by 1]]>
  27046. </doc>
  27047. </method>
  27048. <doc>
  27049. <![CDATA[The mutable gauge metric interface]]>
  27050. </doc>
  27051. </class>
  27052. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  27053. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  27054. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  27055. abstract="false"
  27056. static="false" final="false" visibility="public"
  27057. deprecated="not deprecated">
  27058. <method name="value" return="int"
  27059. abstract="false" native="false" synchronized="false"
  27060. static="false" final="false" visibility="public"
  27061. deprecated="not deprecated">
  27062. </method>
  27063. <method name="incr"
  27064. abstract="false" native="false" synchronized="false"
  27065. static="false" final="false" visibility="public"
  27066. deprecated="not deprecated">
  27067. </method>
  27068. <method name="incr"
  27069. abstract="false" native="false" synchronized="false"
  27070. static="false" final="false" visibility="public"
  27071. deprecated="not deprecated">
  27072. <param name="delta" type="int"/>
  27073. <doc>
  27074. <![CDATA[Increment by delta
  27075. @param delta of the increment]]>
  27076. </doc>
  27077. </method>
  27078. <method name="decr"
  27079. abstract="false" native="false" synchronized="false"
  27080. static="false" final="false" visibility="public"
  27081. deprecated="not deprecated">
  27082. </method>
  27083. <method name="decr"
  27084. abstract="false" native="false" synchronized="false"
  27085. static="false" final="false" visibility="public"
  27086. deprecated="not deprecated">
  27087. <param name="delta" type="int"/>
  27088. <doc>
  27089. <![CDATA[decrement by delta
  27090. @param delta of the decrement]]>
  27091. </doc>
  27092. </method>
  27093. <method name="set"
  27094. abstract="false" native="false" synchronized="false"
  27095. static="false" final="false" visibility="public"
  27096. deprecated="not deprecated">
  27097. <param name="value" type="int"/>
  27098. <doc>
  27099. <![CDATA[Set the value of the metric
  27100. @param value to set]]>
  27101. </doc>
  27102. </method>
  27103. <method name="snapshot"
  27104. abstract="false" native="false" synchronized="false"
  27105. static="false" final="false" visibility="public"
  27106. deprecated="not deprecated">
  27107. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27108. <param name="all" type="boolean"/>
  27109. </method>
  27110. <doc>
  27111. <![CDATA[A mutable int gauge]]>
  27112. </doc>
  27113. </class>
  27114. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  27115. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  27116. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  27117. abstract="false"
  27118. static="false" final="false" visibility="public"
  27119. deprecated="not deprecated">
  27120. <method name="value" return="long"
  27121. abstract="false" native="false" synchronized="false"
  27122. static="false" final="false" visibility="public"
  27123. deprecated="not deprecated">
  27124. </method>
  27125. <method name="incr"
  27126. abstract="false" native="false" synchronized="false"
  27127. static="false" final="false" visibility="public"
  27128. deprecated="not deprecated">
  27129. </method>
  27130. <method name="incr"
  27131. abstract="false" native="false" synchronized="false"
  27132. static="false" final="false" visibility="public"
  27133. deprecated="not deprecated">
  27134. <param name="delta" type="long"/>
  27135. <doc>
  27136. <![CDATA[Increment by delta
  27137. @param delta of the increment]]>
  27138. </doc>
  27139. </method>
  27140. <method name="decr"
  27141. abstract="false" native="false" synchronized="false"
  27142. static="false" final="false" visibility="public"
  27143. deprecated="not deprecated">
  27144. </method>
  27145. <method name="decr"
  27146. abstract="false" native="false" synchronized="false"
  27147. static="false" final="false" visibility="public"
  27148. deprecated="not deprecated">
  27149. <param name="delta" type="long"/>
  27150. <doc>
  27151. <![CDATA[decrement by delta
  27152. @param delta of the decrement]]>
  27153. </doc>
  27154. </method>
  27155. <method name="set"
  27156. abstract="false" native="false" synchronized="false"
  27157. static="false" final="false" visibility="public"
  27158. deprecated="not deprecated">
  27159. <param name="value" type="long"/>
  27160. <doc>
  27161. <![CDATA[Set the value of the metric
  27162. @param value to set]]>
  27163. </doc>
  27164. </method>
  27165. <method name="snapshot"
  27166. abstract="false" native="false" synchronized="false"
  27167. static="false" final="false" visibility="public"
  27168. deprecated="not deprecated">
  27169. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27170. <param name="all" type="boolean"/>
  27171. </method>
  27172. <doc>
  27173. <![CDATA[A mutable long gauge]]>
  27174. </doc>
  27175. </class>
  27176. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  27177. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  27178. <class name="MutableMetric" extends="java.lang.Object"
  27179. abstract="true"
  27180. static="false" final="false" visibility="public"
  27181. deprecated="not deprecated">
  27182. <constructor name="MutableMetric"
  27183. static="false" final="false" visibility="public"
  27184. deprecated="not deprecated">
  27185. </constructor>
  27186. <method name="snapshot"
  27187. abstract="true" native="false" synchronized="false"
  27188. static="false" final="false" visibility="public"
  27189. deprecated="not deprecated">
  27190. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27191. <param name="all" type="boolean"/>
  27192. <doc>
  27193. <![CDATA[Get a snapshot of the metric
  27194. @param builder the metrics record builder
  27195. @param all if true, snapshot unchanged metrics as well]]>
  27196. </doc>
  27197. </method>
  27198. <method name="snapshot"
  27199. abstract="false" native="false" synchronized="false"
  27200. static="false" final="false" visibility="public"
  27201. deprecated="not deprecated">
  27202. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27203. <doc>
  27204. <![CDATA[Get a snapshot of metric if changed
  27205. @param builder the metrics record builder]]>
  27206. </doc>
  27207. </method>
  27208. <method name="setChanged"
  27209. abstract="false" native="false" synchronized="false"
  27210. static="false" final="false" visibility="protected"
  27211. deprecated="not deprecated">
  27212. <doc>
  27213. <![CDATA[Set the changed flag in mutable operations]]>
  27214. </doc>
  27215. </method>
  27216. <method name="clearChanged"
  27217. abstract="false" native="false" synchronized="false"
  27218. static="false" final="false" visibility="protected"
  27219. deprecated="not deprecated">
  27220. <doc>
  27221. <![CDATA[Clear the changed flag in the snapshot operations]]>
  27222. </doc>
  27223. </method>
  27224. <method name="changed" return="boolean"
  27225. abstract="false" native="false" synchronized="false"
  27226. static="false" final="false" visibility="public"
  27227. deprecated="not deprecated">
  27228. <doc>
  27229. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  27230. </doc>
  27231. </method>
  27232. <doc>
  27233. <![CDATA[The mutable metric interface]]>
  27234. </doc>
  27235. </class>
  27236. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  27237. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  27238. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27239. abstract="false"
  27240. static="false" final="false" visibility="public"
  27241. deprecated="not deprecated">
  27242. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  27243. static="false" final="false" visibility="public"
  27244. deprecated="not deprecated">
  27245. <doc>
  27246. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  27247. over on the specified time interval.
  27248. @param name
  27249. of the metric
  27250. @param description
  27251. long-form textual description of the metric
  27252. @param sampleName
  27253. type of items in the stream (e.g., "Ops")
  27254. @param valueName
  27255. type of the values
  27256. @param interval
  27257. rollover interval (in seconds) of the estimator]]>
  27258. </doc>
  27259. </constructor>
  27260. <method name="snapshot"
  27261. abstract="false" native="false" synchronized="true"
  27262. static="false" final="false" visibility="public"
  27263. deprecated="not deprecated">
  27264. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27265. <param name="all" type="boolean"/>
  27266. </method>
  27267. <method name="add"
  27268. abstract="false" native="false" synchronized="true"
  27269. static="false" final="false" visibility="public"
  27270. deprecated="not deprecated">
  27271. <param name="value" type="long"/>
  27272. </method>
  27273. <method name="getInterval" return="int"
  27274. abstract="false" native="false" synchronized="false"
  27275. static="false" final="false" visibility="public"
  27276. deprecated="not deprecated">
  27277. </method>
  27278. <method name="stop"
  27279. abstract="false" native="false" synchronized="false"
  27280. static="false" final="false" visibility="public"
  27281. deprecated="not deprecated">
  27282. </method>
  27283. <method name="getEstimator" return="org.apache.hadoop.metrics2.util.QuantileEstimator"
  27284. abstract="false" native="false" synchronized="true"
  27285. static="false" final="false" visibility="public"
  27286. deprecated="not deprecated">
  27287. <doc>
  27288. <![CDATA[Get the quantile estimator.
  27289. @return the quantile estimator]]>
  27290. </doc>
  27291. </method>
  27292. <method name="setEstimator"
  27293. abstract="false" native="false" synchronized="true"
  27294. static="false" final="false" visibility="public"
  27295. deprecated="not deprecated">
  27296. <param name="quantileEstimator" type="org.apache.hadoop.metrics2.util.QuantileEstimator"/>
  27297. </method>
  27298. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  27299. transient="false" volatile="false"
  27300. static="true" final="true" visibility="public"
  27301. deprecated="not deprecated">
  27302. </field>
  27303. <field name="previousSnapshot" type="java.util.Map"
  27304. transient="false" volatile="false"
  27305. static="false" final="false" visibility="protected"
  27306. deprecated="not deprecated">
  27307. </field>
  27308. <doc>
  27309. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  27310. quantiles with provably low error bounds. This is particularly useful for
  27311. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  27312. </doc>
  27313. </class>
  27314. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  27315. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  27316. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  27317. abstract="false"
  27318. static="false" final="false" visibility="public"
  27319. deprecated="not deprecated">
  27320. <doc>
  27321. <![CDATA[A convenient mutable metric for throughput measurement]]>
  27322. </doc>
  27323. </class>
  27324. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  27325. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  27326. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27327. abstract="false"
  27328. static="false" final="false" visibility="public"
  27329. deprecated="not deprecated">
  27330. <method name="init"
  27331. abstract="false" native="false" synchronized="false"
  27332. static="false" final="false" visibility="public"
  27333. deprecated="not deprecated">
  27334. <param name="protocol" type="java.lang.Class"/>
  27335. <doc>
  27336. <![CDATA[Initialize the registry with all the methods in a protocol
  27337. so they all show up in the first snapshot.
  27338. Convenient for JMX implementations.
  27339. @param protocol the protocol class]]>
  27340. </doc>
  27341. </method>
  27342. <method name="add"
  27343. abstract="false" native="false" synchronized="false"
  27344. static="false" final="false" visibility="public"
  27345. deprecated="not deprecated">
  27346. <param name="name" type="java.lang.String"/>
  27347. <param name="elapsed" type="long"/>
  27348. <doc>
  27349. <![CDATA[Add a rate sample for a rate metric
  27350. @param name of the rate metric
  27351. @param elapsed time]]>
  27352. </doc>
  27353. </method>
  27354. <method name="snapshot"
  27355. abstract="false" native="false" synchronized="false"
  27356. static="false" final="false" visibility="public"
  27357. deprecated="not deprecated">
  27358. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27359. <param name="all" type="boolean"/>
  27360. </method>
  27361. <doc>
  27362. <![CDATA[Helper class to manage a group of mutable rate metrics
  27363. This class synchronizes all accesses to the metrics it
  27364. contains, so it should not be used in situations where
  27365. there is high contention on the metrics.
  27366. {@link MutableRatesWithAggregation} is preferable in that
  27367. situation.]]>
  27368. </doc>
  27369. </class>
  27370. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  27371. <!-- start class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  27372. <class name="MutableRatesWithAggregation" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27373. abstract="false"
  27374. static="false" final="false" visibility="public"
  27375. deprecated="not deprecated">
  27376. <constructor name="MutableRatesWithAggregation"
  27377. static="false" final="false" visibility="public"
  27378. deprecated="not deprecated">
  27379. </constructor>
  27380. <method name="init"
  27381. abstract="false" native="false" synchronized="false"
  27382. static="false" final="false" visibility="public"
  27383. deprecated="not deprecated">
  27384. <param name="protocol" type="java.lang.Class"/>
  27385. <doc>
  27386. <![CDATA[Initialize the registry with all the methods in a protocol
  27387. so they all show up in the first snapshot.
  27388. Convenient for JMX implementations.
  27389. @param protocol the protocol class]]>
  27390. </doc>
  27391. </method>
  27392. <method name="add"
  27393. abstract="false" native="false" synchronized="false"
  27394. static="false" final="false" visibility="public"
  27395. deprecated="not deprecated">
  27396. <param name="name" type="java.lang.String"/>
  27397. <param name="elapsed" type="long"/>
  27398. <doc>
  27399. <![CDATA[Add a rate sample for a rate metric.
  27400. @param name of the rate metric
  27401. @param elapsed time]]>
  27402. </doc>
  27403. </method>
  27404. <method name="snapshot"
  27405. abstract="false" native="false" synchronized="true"
  27406. static="false" final="false" visibility="public"
  27407. deprecated="not deprecated">
  27408. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27409. <param name="all" type="boolean"/>
  27410. </method>
  27411. <doc>
  27412. <![CDATA[Helper class to manage a group of mutable rate metrics.
  27413. Each thread will maintain a local rate count, and upon snapshot,
  27414. these values will be aggregated into a global rate. This class
  27415. should only be used for long running threads, as any metrics
  27416. produced between the last snapshot and the death of a thread
  27417. will be lost. This allows for significantly higher concurrency
  27418. than {@link MutableRates}. See HADOOP-24420.]]>
  27419. </doc>
  27420. </class>
  27421. <!-- end class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  27422. <!-- start class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  27423. <class name="MutableRollingAverages" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27424. abstract="false"
  27425. static="false" final="false" visibility="public"
  27426. deprecated="not deprecated">
  27427. <implements name="java.io.Closeable"/>
  27428. <constructor name="MutableRollingAverages" type="java.lang.String"
  27429. static="false" final="false" visibility="public"
  27430. deprecated="not deprecated">
  27431. <doc>
  27432. <![CDATA[Constructor for {@link MutableRollingAverages}.
  27433. @param metricValueName]]>
  27434. </doc>
  27435. </constructor>
  27436. <method name="snapshot"
  27437. abstract="false" native="false" synchronized="false"
  27438. static="false" final="false" visibility="public"
  27439. deprecated="not deprecated">
  27440. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27441. <param name="all" type="boolean"/>
  27442. </method>
  27443. <method name="collectThreadLocalStates"
  27444. abstract="false" native="false" synchronized="false"
  27445. static="false" final="false" visibility="public"
  27446. deprecated="not deprecated">
  27447. <doc>
  27448. <![CDATA[Collects states maintained in {@link ThreadLocal}, if any.]]>
  27449. </doc>
  27450. </method>
  27451. <method name="add"
  27452. abstract="false" native="false" synchronized="false"
  27453. static="false" final="false" visibility="public"
  27454. deprecated="not deprecated">
  27455. <param name="name" type="java.lang.String"/>
  27456. <param name="value" type="long"/>
  27457. <doc>
  27458. <![CDATA[@param name
  27459. name of metric
  27460. @param value
  27461. value of metric]]>
  27462. </doc>
  27463. </method>
  27464. <method name="close"
  27465. abstract="false" native="false" synchronized="false"
  27466. static="false" final="false" visibility="public"
  27467. deprecated="not deprecated">
  27468. <exception name="IOException" type="java.io.IOException"/>
  27469. </method>
  27470. <method name="getStats" return="java.util.Map"
  27471. abstract="false" native="false" synchronized="true"
  27472. static="false" final="false" visibility="public"
  27473. deprecated="not deprecated">
  27474. <param name="minSamples" type="long"/>
  27475. <doc>
  27476. <![CDATA[Retrieve a map of metric name -> (aggregate).
  27477. Filter out entries that don't have at least minSamples.
  27478. @return a map of peer DataNode Id to the average latency to that
  27479. node seen over the measurement period.]]>
  27480. </doc>
  27481. </method>
  27482. <doc>
  27483. <![CDATA[<p>
  27484. This class maintains a group of rolling average metrics. It implements the
  27485. algorithm of rolling average, i.e. a number of sliding windows are kept to
  27486. roll over and evict old subsets of samples. Each window has a subset of
  27487. samples in a stream, where sub-sum and sub-total are collected. All sub-sums
  27488. and sub-totals in all windows will be aggregated to final-sum and final-total
  27489. used to compute final average, which is called rolling average.
  27490. </p>]]>
  27491. </doc>
  27492. </class>
  27493. <!-- end class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  27494. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  27495. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27496. abstract="false"
  27497. static="false" final="false" visibility="public"
  27498. deprecated="not deprecated">
  27499. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  27500. static="false" final="false" visibility="public"
  27501. deprecated="not deprecated">
  27502. <doc>
  27503. <![CDATA[Construct a sample statistics metric
  27504. @param name of the metric
  27505. @param description of the metric
  27506. @param sampleName of the metric (e.g. "Ops")
  27507. @param valueName of the metric (e.g. "Time", "Latency")
  27508. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  27509. </doc>
  27510. </constructor>
  27511. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  27512. static="false" final="false" visibility="public"
  27513. deprecated="not deprecated">
  27514. <doc>
  27515. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  27516. @param name of the metric
  27517. @param description of the metric
  27518. @param sampleName of the metric (e.g. "Ops")
  27519. @param valueName of the metric (e.g. "Time", "Latency")]]>
  27520. </doc>
  27521. </constructor>
  27522. <method name="setExtended"
  27523. abstract="false" native="false" synchronized="true"
  27524. static="false" final="false" visibility="public"
  27525. deprecated="not deprecated">
  27526. <param name="extended" type="boolean"/>
  27527. <doc>
  27528. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  27529. @param extended enable/disable displaying extended stats]]>
  27530. </doc>
  27531. </method>
  27532. <method name="add"
  27533. abstract="false" native="false" synchronized="true"
  27534. static="false" final="false" visibility="public"
  27535. deprecated="not deprecated">
  27536. <param name="numSamples" type="long"/>
  27537. <param name="sum" type="long"/>
  27538. <doc>
  27539. <![CDATA[Add a number of samples and their sum to the running stat
  27540. Note that although use of this method will preserve accurate mean values,
  27541. large values for numSamples may result in inaccurate variance values due
  27542. to the use of a single step of the Welford method for variance calculation.
  27543. @param numSamples number of samples
  27544. @param sum of the samples]]>
  27545. </doc>
  27546. </method>
  27547. <method name="add"
  27548. abstract="false" native="false" synchronized="true"
  27549. static="false" final="false" visibility="public"
  27550. deprecated="not deprecated">
  27551. <param name="value" type="long"/>
  27552. <doc>
  27553. <![CDATA[Add a snapshot to the metric
  27554. @param value of the metric]]>
  27555. </doc>
  27556. </method>
  27557. <method name="snapshot"
  27558. abstract="false" native="false" synchronized="true"
  27559. static="false" final="false" visibility="public"
  27560. deprecated="not deprecated">
  27561. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27562. <param name="all" type="boolean"/>
  27563. </method>
  27564. <method name="lastStat" return="org.apache.hadoop.metrics2.util.SampleStat"
  27565. abstract="false" native="false" synchronized="false"
  27566. static="false" final="false" visibility="public"
  27567. deprecated="not deprecated">
  27568. <doc>
  27569. <![CDATA[Return a SampleStat object that supports
  27570. calls like StdDev and Mean.
  27571. @return SampleStat]]>
  27572. </doc>
  27573. </method>
  27574. <method name="resetMinMax"
  27575. abstract="false" native="false" synchronized="false"
  27576. static="false" final="false" visibility="public"
  27577. deprecated="not deprecated">
  27578. <doc>
  27579. <![CDATA[Reset the all time min max of the metric]]>
  27580. </doc>
  27581. </method>
  27582. <method name="toString" return="java.lang.String"
  27583. abstract="false" native="false" synchronized="false"
  27584. static="false" final="false" visibility="public"
  27585. deprecated="not deprecated">
  27586. </method>
  27587. <doc>
  27588. <![CDATA[A mutable metric with stats.
  27589. Useful for keeping throughput/latency stats.]]>
  27590. </doc>
  27591. </class>
  27592. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  27593. </package>
  27594. <package name="org.apache.hadoop.metrics2.sink">
  27595. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  27596. <class name="FileSink" extends="java.lang.Object"
  27597. abstract="false"
  27598. static="false" final="false" visibility="public"
  27599. deprecated="not deprecated">
  27600. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27601. <implements name="java.io.Closeable"/>
  27602. <constructor name="FileSink"
  27603. static="false" final="false" visibility="public"
  27604. deprecated="not deprecated">
  27605. </constructor>
  27606. <method name="init"
  27607. abstract="false" native="false" synchronized="false"
  27608. static="false" final="false" visibility="public"
  27609. deprecated="not deprecated">
  27610. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27611. </method>
  27612. <method name="putMetrics"
  27613. abstract="false" native="false" synchronized="false"
  27614. static="false" final="false" visibility="public"
  27615. deprecated="not deprecated">
  27616. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27617. </method>
  27618. <method name="flush"
  27619. abstract="false" native="false" synchronized="false"
  27620. static="false" final="false" visibility="public"
  27621. deprecated="not deprecated">
  27622. </method>
  27623. <method name="close"
  27624. abstract="false" native="false" synchronized="false"
  27625. static="false" final="false" visibility="public"
  27626. deprecated="not deprecated">
  27627. <exception name="IOException" type="java.io.IOException"/>
  27628. </method>
  27629. <doc>
  27630. <![CDATA[A metrics sink that writes to a file]]>
  27631. </doc>
  27632. </class>
  27633. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  27634. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  27635. <class name="GraphiteSink" extends="java.lang.Object"
  27636. abstract="false"
  27637. static="false" final="false" visibility="public"
  27638. deprecated="not deprecated">
  27639. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27640. <implements name="java.io.Closeable"/>
  27641. <constructor name="GraphiteSink"
  27642. static="false" final="false" visibility="public"
  27643. deprecated="not deprecated">
  27644. </constructor>
  27645. <method name="init"
  27646. abstract="false" native="false" synchronized="false"
  27647. static="false" final="false" visibility="public"
  27648. deprecated="not deprecated">
  27649. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27650. </method>
  27651. <method name="putMetrics"
  27652. abstract="false" native="false" synchronized="false"
  27653. static="false" final="false" visibility="public"
  27654. deprecated="not deprecated">
  27655. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27656. </method>
  27657. <method name="flush"
  27658. abstract="false" native="false" synchronized="false"
  27659. static="false" final="false" visibility="public"
  27660. deprecated="not deprecated">
  27661. </method>
  27662. <method name="close"
  27663. abstract="false" native="false" synchronized="false"
  27664. static="false" final="false" visibility="public"
  27665. deprecated="not deprecated">
  27666. <exception name="IOException" type="java.io.IOException"/>
  27667. </method>
  27668. <doc>
  27669. <![CDATA[A metrics sink that writes to a Graphite server]]>
  27670. </doc>
  27671. </class>
  27672. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  27673. <!-- start class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  27674. <class name="RollingFileSystemSink" extends="java.lang.Object"
  27675. abstract="false"
  27676. static="false" final="false" visibility="public"
  27677. deprecated="not deprecated">
  27678. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27679. <implements name="java.io.Closeable"/>
  27680. <constructor name="RollingFileSystemSink"
  27681. static="false" final="false" visibility="public"
  27682. deprecated="not deprecated">
  27683. <doc>
  27684. <![CDATA[Create an empty instance. Required for reflection.]]>
  27685. </doc>
  27686. </constructor>
  27687. <constructor name="RollingFileSystemSink" type="long, long"
  27688. static="false" final="false" visibility="protected"
  27689. deprecated="not deprecated">
  27690. <doc>
  27691. <![CDATA[Create an instance for testing.
  27692. @param flushIntervalMillis the roll interval in millis
  27693. @param flushOffsetIntervalMillis the roll offset interval in millis]]>
  27694. </doc>
  27695. </constructor>
  27696. <method name="init"
  27697. abstract="false" native="false" synchronized="false"
  27698. static="false" final="false" visibility="public"
  27699. deprecated="not deprecated">
  27700. <param name="metrics2Properties" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27701. </method>
  27702. <method name="getRollInterval" return="long"
  27703. abstract="false" native="false" synchronized="false"
  27704. static="false" final="false" visibility="protected"
  27705. deprecated="not deprecated">
  27706. <doc>
  27707. <![CDATA[Extract the roll interval from the configuration and return it in
  27708. milliseconds.
  27709. @return the roll interval in millis]]>
  27710. </doc>
  27711. </method>
  27712. <method name="updateFlushTime"
  27713. abstract="false" native="false" synchronized="false"
  27714. static="false" final="false" visibility="protected"
  27715. deprecated="not deprecated">
  27716. <param name="now" type="java.util.Date"/>
  27717. <doc>
  27718. <![CDATA[Update the {@link #nextFlush} variable to the next flush time. Add
  27719. an integer number of flush intervals, preserving the initial random offset.
  27720. @param now the current time]]>
  27721. </doc>
  27722. </method>
  27723. <method name="setInitialFlushTime"
  27724. abstract="false" native="false" synchronized="false"
  27725. static="false" final="false" visibility="protected"
  27726. deprecated="not deprecated">
  27727. <param name="now" type="java.util.Date"/>
  27728. <doc>
  27729. <![CDATA[Set the {@link #nextFlush} variable to the initial flush time. The initial
  27730. flush will be an integer number of flush intervals past the beginning of
  27731. the current hour and will have a random offset added, up to
  27732. {@link #rollOffsetIntervalMillis}. The initial flush will be a time in
  27733. past that can be used from which to calculate future flush times.
  27734. @param now the current time]]>
  27735. </doc>
  27736. </method>
  27737. <method name="putMetrics"
  27738. abstract="false" native="false" synchronized="false"
  27739. static="false" final="false" visibility="public"
  27740. deprecated="not deprecated">
  27741. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27742. </method>
  27743. <method name="flush"
  27744. abstract="false" native="false" synchronized="false"
  27745. static="false" final="false" visibility="public"
  27746. deprecated="not deprecated">
  27747. </method>
  27748. <method name="close"
  27749. abstract="false" native="false" synchronized="false"
  27750. static="false" final="false" visibility="public"
  27751. deprecated="not deprecated">
  27752. </method>
  27753. <field name="source" type="java.lang.String"
  27754. transient="false" volatile="false"
  27755. static="false" final="false" visibility="protected"
  27756. deprecated="not deprecated">
  27757. </field>
  27758. <field name="ignoreError" type="boolean"
  27759. transient="false" volatile="false"
  27760. static="false" final="false" visibility="protected"
  27761. deprecated="not deprecated">
  27762. </field>
  27763. <field name="allowAppend" type="boolean"
  27764. transient="false" volatile="false"
  27765. static="false" final="false" visibility="protected"
  27766. deprecated="not deprecated">
  27767. </field>
  27768. <field name="basePath" type="org.apache.hadoop.fs.Path"
  27769. transient="false" volatile="false"
  27770. static="false" final="false" visibility="protected"
  27771. deprecated="not deprecated">
  27772. </field>
  27773. <field name="rollIntervalMillis" type="long"
  27774. transient="false" volatile="false"
  27775. static="false" final="false" visibility="protected"
  27776. deprecated="not deprecated">
  27777. </field>
  27778. <field name="rollOffsetIntervalMillis" type="long"
  27779. transient="false" volatile="false"
  27780. static="false" final="false" visibility="protected"
  27781. deprecated="not deprecated">
  27782. </field>
  27783. <field name="nextFlush" type="java.util.Calendar"
  27784. transient="false" volatile="false"
  27785. static="false" final="false" visibility="protected"
  27786. deprecated="not deprecated">
  27787. </field>
  27788. <field name="forceFlush" type="boolean"
  27789. transient="false" volatile="false"
  27790. static="true" final="false" visibility="protected"
  27791. deprecated="not deprecated">
  27792. </field>
  27793. <field name="hasFlushed" type="boolean"
  27794. transient="false" volatile="true"
  27795. static="true" final="false" visibility="protected"
  27796. deprecated="not deprecated">
  27797. </field>
  27798. <field name="suppliedConf" type="org.apache.hadoop.conf.Configuration"
  27799. transient="false" volatile="false"
  27800. static="true" final="false" visibility="protected"
  27801. deprecated="not deprecated">
  27802. </field>
  27803. <field name="suppliedFilesystem" type="org.apache.hadoop.fs.FileSystem"
  27804. transient="false" volatile="false"
  27805. static="true" final="false" visibility="protected"
  27806. deprecated="not deprecated">
  27807. </field>
  27808. <doc>
  27809. <![CDATA[<p>This class is a metrics sink that uses
  27810. {@link org.apache.hadoop.fs.FileSystem} to write the metrics logs. Every
  27811. roll interval a new directory will be created under the path specified by the
  27812. <code>basepath</code> property. All metrics will be logged to a file in the
  27813. current interval's directory in a file named &lt;hostname&gt;.log, where
  27814. &lt;hostname&gt; is the name of the host on which the metrics logging
  27815. process is running. The base path is set by the
  27816. <code>&lt;prefix&gt;.sink.&lt;instance&gt;.basepath</code> property. The
  27817. time zone used to create the current interval's directory name is GMT. If
  27818. the <code>basepath</code> property isn't specified, it will default to
  27819. &quot;/tmp&quot;, which is the temp directory on whatever default file
  27820. system is configured for the cluster.</p>
  27821. <p>The <code>&lt;prefix&gt;.sink.&lt;instance&gt;.ignore-error</code>
  27822. property controls whether an exception is thrown when an error is encountered
  27823. writing a log file. The default value is <code>true</code>. When set to
  27824. <code>false</code>, file errors are quietly swallowed.</p>
  27825. <p>The <code>roll-interval</code> property sets the amount of time before
  27826. rolling the directory. The default value is 1 hour. The roll interval may
  27827. not be less than 1 minute. The property's value should be given as
  27828. <i>number unit</i>, where <i>number</i> is an integer value, and
  27829. <i>unit</i> is a valid unit. Valid units are <i>minute</i>, <i>hour</i>,
  27830. and <i>day</i>. The units are case insensitive and may be abbreviated or
  27831. plural. If no units are specified, hours are assumed. For example,
  27832. &quot;2&quot;, &quot;2h&quot;, &quot;2 hour&quot;, and
  27833. &quot;2 hours&quot; are all valid ways to specify two hours.</p>
  27834. <p>The <code>roll-offset-interval-millis</code> property sets the upper
  27835. bound on a random time interval (in milliseconds) that is used to delay
  27836. before the initial roll. All subsequent rolls will happen an integer
  27837. number of roll intervals after the initial roll, hence retaining the original
  27838. offset. The purpose of this property is to insert some variance in the roll
  27839. times so that large clusters using this sink on every node don't cause a
  27840. performance impact on HDFS by rolling simultaneously. The default value is
  27841. 30000 (30s). When writing to HDFS, as a rule of thumb, the roll offset in
  27842. millis should be no less than the number of sink instances times 5.
  27843. <p>The primary use of this class is for logging to HDFS. As it uses
  27844. {@link org.apache.hadoop.fs.FileSystem} to access the target file system,
  27845. however, it can be used to write to the local file system, Amazon S3, or any
  27846. other supported file system. The base path for the sink will determine the
  27847. file system used. An unqualified path will write to the default file system
  27848. set by the configuration.</p>
  27849. <p>Not all file systems support the ability to append to files. In file
  27850. systems without the ability to append to files, only one writer can write to
  27851. a file at a time. To allow for concurrent writes from multiple daemons on a
  27852. single host, the <code>source</code> property is used to set unique headers
  27853. for the log files. The property should be set to the name of
  27854. the source daemon, e.g. <i>namenode</i>. The value of the
  27855. <code>source</code> property should typically be the same as the property's
  27856. prefix. If this property is not set, the source is taken to be
  27857. <i>unknown</i>.</p>
  27858. <p>Instead of appending to an existing file, by default the sink
  27859. will create a new file with a suffix of &quot;.&lt;n&gt;&quet;, where
  27860. <i>n</i> is the next lowest integer that isn't already used in a file name,
  27861. similar to the Hadoop daemon logs. NOTE: the file with the <b>highest</b>
  27862. sequence number is the <b>newest</b> file, unlike the Hadoop daemon logs.</p>
  27863. <p>For file systems that allow append, the sink supports appending to the
  27864. existing file instead. If the <code>allow-append</code> property is set to
  27865. true, the sink will instead append to the existing file on file systems that
  27866. support appends. By default, the <code>allow-append</code> property is
  27867. false.</p>
  27868. <p>Note that when writing to HDFS with <code>allow-append</code> set to true,
  27869. there is a minimum acceptable number of data nodes. If the number of data
  27870. nodes drops below that minimum, the append will succeed, but reading the
  27871. data will fail with an IOException in the DataStreamer class. The minimum
  27872. number of data nodes required for a successful append is generally 2 or
  27873. 3.</p>
  27874. <p>Note also that when writing to HDFS, the file size information is not
  27875. updated until the file is closed (at the end of the interval) even though
  27876. the data is being written successfully. This is a known HDFS limitation that
  27877. exists because of the performance cost of updating the metadata. See
  27878. <a href="https://issues.apache.org/jira/browse/HDFS-5478">HDFS-5478</a>.</p>
  27879. <p>When using this sink in a secure (Kerberos) environment, two additional
  27880. properties must be set: <code>keytab-key</code> and
  27881. <code>principal-key</code>. <code>keytab-key</code> should contain the key by
  27882. which the keytab file can be found in the configuration, for example,
  27883. <code>yarn.nodemanager.keytab</code>. <code>principal-key</code> should
  27884. contain the key by which the principal can be found in the configuration,
  27885. for example, <code>yarn.nodemanager.principal</code>.]]>
  27886. </doc>
  27887. </class>
  27888. <!-- end class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  27889. <!-- start class org.apache.hadoop.metrics2.sink.StatsDSink -->
  27890. <class name="StatsDSink" extends="java.lang.Object"
  27891. abstract="false"
  27892. static="false" final="false" visibility="public"
  27893. deprecated="not deprecated">
  27894. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27895. <implements name="java.io.Closeable"/>
  27896. <constructor name="StatsDSink"
  27897. static="false" final="false" visibility="public"
  27898. deprecated="not deprecated">
  27899. </constructor>
  27900. <method name="init"
  27901. abstract="false" native="false" synchronized="false"
  27902. static="false" final="false" visibility="public"
  27903. deprecated="not deprecated">
  27904. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27905. </method>
  27906. <method name="putMetrics"
  27907. abstract="false" native="false" synchronized="false"
  27908. static="false" final="false" visibility="public"
  27909. deprecated="not deprecated">
  27910. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27911. </method>
  27912. <method name="writeMetric"
  27913. abstract="false" native="false" synchronized="false"
  27914. static="false" final="false" visibility="public"
  27915. deprecated="not deprecated">
  27916. <param name="line" type="java.lang.String"/>
  27917. </method>
  27918. <method name="flush"
  27919. abstract="false" native="false" synchronized="false"
  27920. static="false" final="false" visibility="public"
  27921. deprecated="not deprecated">
  27922. </method>
  27923. <method name="close"
  27924. abstract="false" native="false" synchronized="false"
  27925. static="false" final="false" visibility="public"
  27926. deprecated="not deprecated">
  27927. <exception name="IOException" type="java.io.IOException"/>
  27928. </method>
  27929. <doc>
  27930. <![CDATA[A metrics sink that writes metrics to a StatsD daemon.
  27931. This sink will produce metrics of the form
  27932. '[hostname].servicename.context.name.metricname:value|type'
  27933. where hostname is optional. This is useful when sending to
  27934. a daemon that is running on the localhost and will add the
  27935. hostname to the metric (such as the
  27936. <a href="https://collectd.org/">CollectD</a> StatsD plugin).
  27937. <br/>
  27938. To configure this plugin, you will need to add the following
  27939. entries to your hadoop-metrics2.properties file:
  27940. <br/>
  27941. <pre>
  27942. *.sink.statsd.class=org.apache.hadoop.metrics2.sink.StatsDSink
  27943. [prefix].sink.statsd.server.host=
  27944. [prefix].sink.statsd.server.port=
  27945. [prefix].sink.statsd.skip.hostname=true|false (optional)
  27946. [prefix].sink.statsd.service.name=NameNode (name you want for service)
  27947. </pre>]]>
  27948. </doc>
  27949. </class>
  27950. <!-- end class org.apache.hadoop.metrics2.sink.StatsDSink -->
  27951. </package>
  27952. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  27953. </package>
  27954. <package name="org.apache.hadoop.metrics2.source">
  27955. </package>
  27956. <package name="org.apache.hadoop.metrics2.util">
  27957. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  27958. <class name="MBeans" extends="java.lang.Object"
  27959. abstract="false"
  27960. static="false" final="false" visibility="public"
  27961. deprecated="not deprecated">
  27962. <constructor name="MBeans"
  27963. static="false" final="false" visibility="public"
  27964. deprecated="not deprecated">
  27965. </constructor>
  27966. <method name="register" return="javax.management.ObjectName"
  27967. abstract="false" native="false" synchronized="false"
  27968. static="true" final="false" visibility="public"
  27969. deprecated="not deprecated">
  27970. <param name="serviceName" type="java.lang.String"/>
  27971. <param name="nameName" type="java.lang.String"/>
  27972. <param name="theMbean" type="java.lang.Object"/>
  27973. <doc>
  27974. <![CDATA[Register the MBean using our standard MBeanName format
  27975. "hadoop:service=<serviceName>,name=<nameName>"
  27976. Where the <serviceName> and <nameName> are the supplied parameters
  27977. @param serviceName
  27978. @param nameName
  27979. @param theMbean - the MBean to register
  27980. @return the named used to register the MBean]]>
  27981. </doc>
  27982. </method>
  27983. <method name="getMbeanNameService" return="java.lang.String"
  27984. abstract="false" native="false" synchronized="false"
  27985. static="true" final="false" visibility="public"
  27986. deprecated="not deprecated">
  27987. <param name="objectName" type="javax.management.ObjectName"/>
  27988. </method>
  27989. <method name="getMbeanNameName" return="java.lang.String"
  27990. abstract="false" native="false" synchronized="false"
  27991. static="true" final="false" visibility="public"
  27992. deprecated="not deprecated">
  27993. <param name="objectName" type="javax.management.ObjectName"/>
  27994. </method>
  27995. <method name="unregister"
  27996. abstract="false" native="false" synchronized="false"
  27997. static="true" final="false" visibility="public"
  27998. deprecated="not deprecated">
  27999. <param name="mbeanName" type="javax.management.ObjectName"/>
  28000. </method>
  28001. <doc>
  28002. <![CDATA[This util class provides a method to register an MBean using
  28003. our standard naming convention as described in the doc
  28004. for {link {@link #register(String, String, Object)}]]>
  28005. </doc>
  28006. </class>
  28007. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  28008. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  28009. <class name="MetricsCache" extends="java.lang.Object"
  28010. abstract="false"
  28011. static="false" final="false" visibility="public"
  28012. deprecated="not deprecated">
  28013. <constructor name="MetricsCache"
  28014. static="false" final="false" visibility="public"
  28015. deprecated="not deprecated">
  28016. </constructor>
  28017. <constructor name="MetricsCache" type="int"
  28018. static="false" final="false" visibility="public"
  28019. deprecated="not deprecated">
  28020. <doc>
  28021. <![CDATA[Construct a metrics cache
  28022. @param maxRecsPerName limit of the number records per record name]]>
  28023. </doc>
  28024. </constructor>
  28025. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  28026. abstract="false" native="false" synchronized="false"
  28027. static="false" final="false" visibility="public"
  28028. deprecated="not deprecated">
  28029. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28030. <param name="includingTags" type="boolean"/>
  28031. <doc>
  28032. <![CDATA[Update the cache and return the current cached record
  28033. @param mr the update record
  28034. @param includingTags cache tag values (for later lookup by name) if true
  28035. @return the updated cache record]]>
  28036. </doc>
  28037. </method>
  28038. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  28039. abstract="false" native="false" synchronized="false"
  28040. static="false" final="false" visibility="public"
  28041. deprecated="not deprecated">
  28042. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28043. <doc>
  28044. <![CDATA[Update the cache and return the current cache record
  28045. @param mr the update record
  28046. @return the updated cache record]]>
  28047. </doc>
  28048. </method>
  28049. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  28050. abstract="false" native="false" synchronized="false"
  28051. static="false" final="false" visibility="public"
  28052. deprecated="not deprecated">
  28053. <param name="name" type="java.lang.String"/>
  28054. <param name="tags" type="java.util.Collection"/>
  28055. <doc>
  28056. <![CDATA[Get the cached record
  28057. @param name of the record
  28058. @param tags of the record
  28059. @return the cached record or null]]>
  28060. </doc>
  28061. </method>
  28062. <doc>
  28063. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  28064. </doc>
  28065. </class>
  28066. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  28067. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  28068. <class name="Servers" extends="java.lang.Object"
  28069. abstract="false"
  28070. static="false" final="false" visibility="public"
  28071. deprecated="not deprecated">
  28072. <method name="parse" return="java.util.List"
  28073. abstract="false" native="false" synchronized="false"
  28074. static="true" final="false" visibility="public"
  28075. deprecated="not deprecated">
  28076. <param name="specs" type="java.lang.String"/>
  28077. <param name="defaultPort" type="int"/>
  28078. <doc>
  28079. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  28080. of the form <i>hostname</i> or <i>hostname:port</i>. If
  28081. the specs string is null, defaults to localhost:defaultPort.
  28082. @param specs server specs (see description)
  28083. @param defaultPort the default port if not specified
  28084. @return a list of InetSocketAddress objects.]]>
  28085. </doc>
  28086. </method>
  28087. <doc>
  28088. <![CDATA[Helpers to handle server addresses]]>
  28089. </doc>
  28090. </class>
  28091. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  28092. </package>
  28093. <package name="org.apache.hadoop.net">
  28094. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  28095. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  28096. abstract="true"
  28097. static="false" final="false" visibility="public"
  28098. deprecated="not deprecated">
  28099. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  28100. <implements name="org.apache.hadoop.conf.Configurable"/>
  28101. <constructor name="AbstractDNSToSwitchMapping"
  28102. static="false" final="false" visibility="protected"
  28103. deprecated="not deprecated">
  28104. <doc>
  28105. <![CDATA[Create an unconfigured instance]]>
  28106. </doc>
  28107. </constructor>
  28108. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  28109. static="false" final="false" visibility="protected"
  28110. deprecated="not deprecated">
  28111. <doc>
  28112. <![CDATA[Create an instance, caching the configuration file.
  28113. This constructor does not call {@link #setConf(Configuration)}; if
  28114. a subclass extracts information in that method, it must call it explicitly.
  28115. @param conf the configuration]]>
  28116. </doc>
  28117. </constructor>
  28118. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28119. abstract="false" native="false" synchronized="false"
  28120. static="false" final="false" visibility="public"
  28121. deprecated="not deprecated">
  28122. </method>
  28123. <method name="setConf"
  28124. abstract="false" native="false" synchronized="false"
  28125. static="false" final="false" visibility="public"
  28126. deprecated="not deprecated">
  28127. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28128. </method>
  28129. <method name="isSingleSwitch" return="boolean"
  28130. abstract="false" native="false" synchronized="false"
  28131. static="false" final="false" visibility="public"
  28132. deprecated="not deprecated">
  28133. <doc>
  28134. <![CDATA[Predicate that indicates that the switch mapping is known to be
  28135. single-switch. The base class returns false: it assumes all mappings are
  28136. multi-rack. Subclasses may override this with methods that are more aware
  28137. of their topologies.
  28138. <p/>
  28139. This method is used when parts of Hadoop need know whether to apply
  28140. single rack vs multi-rack policies, such as during block placement.
  28141. Such algorithms behave differently if they are on multi-switch systems.
  28142. </p>
  28143. @return true if the mapping thinks that it is on a single switch]]>
  28144. </doc>
  28145. </method>
  28146. <method name="getSwitchMap" return="java.util.Map"
  28147. abstract="false" native="false" synchronized="false"
  28148. static="false" final="false" visibility="public"
  28149. deprecated="not deprecated">
  28150. <doc>
  28151. <![CDATA[Get a copy of the map (for diagnostics)
  28152. @return a clone of the map or null for none known]]>
  28153. </doc>
  28154. </method>
  28155. <method name="dumpTopology" return="java.lang.String"
  28156. abstract="false" native="false" synchronized="false"
  28157. static="false" final="false" visibility="public"
  28158. deprecated="not deprecated">
  28159. <doc>
  28160. <![CDATA[Generate a string listing the switch mapping implementation,
  28161. the mapping for every known node and the number of nodes and
  28162. unique switches known about -each entry to a separate line.
  28163. @return a string that can be presented to the ops team or used in
  28164. debug messages.]]>
  28165. </doc>
  28166. </method>
  28167. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  28168. abstract="false" native="false" synchronized="false"
  28169. static="false" final="false" visibility="protected"
  28170. deprecated="not deprecated">
  28171. </method>
  28172. <method name="isMappingSingleSwitch" return="boolean"
  28173. abstract="false" native="false" synchronized="false"
  28174. static="true" final="false" visibility="public"
  28175. deprecated="not deprecated">
  28176. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  28177. <doc>
  28178. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  28179. switch.
  28180. <p/>
  28181. This predicate simply assumes that all mappings not derived from
  28182. this class are multi-switch.
  28183. @param mapping the mapping to query
  28184. @return true if the base class says it is single switch, or the mapping
  28185. is not derived from this class.]]>
  28186. </doc>
  28187. </method>
  28188. <doc>
  28189. <![CDATA[This is a base class for DNS to Switch mappings. <p/> It is not mandatory to
  28190. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  28191. recommended, as it makes it easy for the Hadoop developers to add new methods
  28192. to this base class that are automatically picked up by all implementations.
  28193. <p/>
  28194. This class does not extend the <code>Configured</code>
  28195. base class, and should not be changed to do so, as it causes problems
  28196. for subclasses. The constructor of the <code>Configured</code> calls
  28197. the {@link #setConf(Configuration)} method, which will call into the
  28198. subclasses before they have been fully constructed.]]>
  28199. </doc>
  28200. </class>
  28201. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  28202. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  28203. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  28204. abstract="false"
  28205. static="false" final="false" visibility="public"
  28206. deprecated="not deprecated">
  28207. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28208. static="false" final="false" visibility="public"
  28209. deprecated="not deprecated">
  28210. <doc>
  28211. <![CDATA[cache a raw DNS mapping
  28212. @param rawMapping the raw mapping to cache]]>
  28213. </doc>
  28214. </constructor>
  28215. <method name="resolve" return="java.util.List"
  28216. abstract="false" native="false" synchronized="false"
  28217. static="false" final="false" visibility="public"
  28218. deprecated="not deprecated">
  28219. <param name="names" type="java.util.List"/>
  28220. </method>
  28221. <method name="getSwitchMap" return="java.util.Map"
  28222. abstract="false" native="false" synchronized="false"
  28223. static="false" final="false" visibility="public"
  28224. deprecated="not deprecated">
  28225. <doc>
  28226. <![CDATA[Get the (host x switch) map.
  28227. @return a copy of the cached map of hosts to rack]]>
  28228. </doc>
  28229. </method>
  28230. <method name="toString" return="java.lang.String"
  28231. abstract="false" native="false" synchronized="false"
  28232. static="false" final="false" visibility="public"
  28233. deprecated="not deprecated">
  28234. </method>
  28235. <method name="isSingleSwitch" return="boolean"
  28236. abstract="false" native="false" synchronized="false"
  28237. static="false" final="false" visibility="public"
  28238. deprecated="not deprecated">
  28239. <doc>
  28240. <![CDATA[Delegate the switch topology query to the raw mapping, via
  28241. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  28242. @return true iff the raw mapper is considered single-switch.]]>
  28243. </doc>
  28244. </method>
  28245. <method name="reloadCachedMappings"
  28246. abstract="false" native="false" synchronized="false"
  28247. static="false" final="false" visibility="public"
  28248. deprecated="not deprecated">
  28249. </method>
  28250. <method name="reloadCachedMappings"
  28251. abstract="false" native="false" synchronized="false"
  28252. static="false" final="false" visibility="public"
  28253. deprecated="not deprecated">
  28254. <param name="names" type="java.util.List"/>
  28255. </method>
  28256. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28257. transient="false" volatile="false"
  28258. static="false" final="true" visibility="protected"
  28259. deprecated="not deprecated">
  28260. <doc>
  28261. <![CDATA[The uncached mapping]]>
  28262. </doc>
  28263. </field>
  28264. <doc>
  28265. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  28266. raw DNSToSwitchMapping and stores the resolved network location in
  28267. a cache. The following calls to a resolved network location
  28268. will get its location from the cache.]]>
  28269. </doc>
  28270. </class>
  28271. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  28272. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  28273. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  28274. abstract="false"
  28275. static="false" final="false" visibility="public"
  28276. deprecated="not deprecated">
  28277. <constructor name="ConnectTimeoutException" type="java.lang.String"
  28278. static="false" final="false" visibility="public"
  28279. deprecated="not deprecated">
  28280. </constructor>
  28281. <doc>
  28282. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  28283. if it times out while connecting to the remote host.]]>
  28284. </doc>
  28285. </class>
  28286. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  28287. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28288. <interface name="DNSToSwitchMapping" abstract="true"
  28289. static="false" final="false" visibility="public"
  28290. deprecated="not deprecated">
  28291. <method name="resolve" return="java.util.List"
  28292. abstract="false" native="false" synchronized="false"
  28293. static="false" final="false" visibility="public"
  28294. deprecated="not deprecated">
  28295. <param name="names" type="java.util.List"/>
  28296. <doc>
  28297. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  28298. switch information (network paths). One-to-one correspondence must be
  28299. maintained between the elements in the lists.
  28300. Consider an element in the argument list - x.y.com. The switch information
  28301. that is returned must be a network path of the form /foo/rack,
  28302. where / is the root, and 'foo' is the switch where 'rack' is connected.
  28303. Note the hostname/ip-address is not part of the returned path.
  28304. The network topology of the cluster would determine the number of
  28305. components in the network path.
  28306. <p/>
  28307. If a name cannot be resolved to a rack, the implementation
  28308. should return {@link NetworkTopology#DEFAULT_RACK}. This
  28309. is what the bundled implementations do, though it is not a formal requirement
  28310. @param names the list of hosts to resolve (can be empty)
  28311. @return list of resolved network paths.
  28312. If <i>names</i> is empty, the returned list is also empty]]>
  28313. </doc>
  28314. </method>
  28315. <method name="reloadCachedMappings"
  28316. abstract="false" native="false" synchronized="false"
  28317. static="false" final="false" visibility="public"
  28318. deprecated="not deprecated">
  28319. <doc>
  28320. <![CDATA[Reload all of the cached mappings.
  28321. If there is a cache, this method will clear it, so that future accesses
  28322. will get a chance to see the new data.]]>
  28323. </doc>
  28324. </method>
  28325. <method name="reloadCachedMappings"
  28326. abstract="false" native="false" synchronized="false"
  28327. static="false" final="false" visibility="public"
  28328. deprecated="not deprecated">
  28329. <param name="names" type="java.util.List"/>
  28330. <doc>
  28331. <![CDATA[Reload cached mappings on specific nodes.
  28332. If there is a cache on these nodes, this method will clear it, so that
  28333. future accesses will see updated data.]]>
  28334. </doc>
  28335. </method>
  28336. <doc>
  28337. <![CDATA[An interface that must be implemented to allow pluggable
  28338. DNS-name/IP-address to RackID resolvers.]]>
  28339. </doc>
  28340. </interface>
  28341. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28342. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  28343. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  28344. abstract="false"
  28345. static="false" final="false" visibility="public"
  28346. deprecated="not deprecated">
  28347. <constructor name="ScriptBasedMapping"
  28348. static="false" final="false" visibility="public"
  28349. deprecated="not deprecated">
  28350. <doc>
  28351. <![CDATA[Create an instance with the default configuration.
  28352. </p>
  28353. Calling {@link #setConf(Configuration)} will trigger a
  28354. re-evaluation of the configuration settings and so be used to
  28355. set up the mapping script.]]>
  28356. </doc>
  28357. </constructor>
  28358. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28359. static="false" final="false" visibility="public"
  28360. deprecated="not deprecated">
  28361. <doc>
  28362. <![CDATA[Create an instance from the given raw mapping
  28363. @param rawMap raw DNSTOSwithMapping]]>
  28364. </doc>
  28365. </constructor>
  28366. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  28367. static="false" final="false" visibility="public"
  28368. deprecated="not deprecated">
  28369. <doc>
  28370. <![CDATA[Create an instance from the given configuration
  28371. @param conf configuration]]>
  28372. </doc>
  28373. </constructor>
  28374. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28375. abstract="false" native="false" synchronized="false"
  28376. static="false" final="false" visibility="public"
  28377. deprecated="not deprecated">
  28378. </method>
  28379. <method name="toString" return="java.lang.String"
  28380. abstract="false" native="false" synchronized="false"
  28381. static="false" final="false" visibility="public"
  28382. deprecated="not deprecated">
  28383. </method>
  28384. <method name="setConf"
  28385. abstract="false" native="false" synchronized="false"
  28386. static="false" final="false" visibility="public"
  28387. deprecated="not deprecated">
  28388. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28389. <doc>
  28390. <![CDATA[{@inheritDoc}
  28391. <p/>
  28392. This will get called in the superclass constructor, so a check is needed
  28393. to ensure that the raw mapping is defined before trying to relaying a null
  28394. configuration.
  28395. @param conf]]>
  28396. </doc>
  28397. </method>
  28398. <field name="NO_SCRIPT" type="java.lang.String"
  28399. transient="false" volatile="false"
  28400. static="true" final="true" visibility="public"
  28401. deprecated="not deprecated">
  28402. <doc>
  28403. <![CDATA[Text used in the {@link #toString()} method if there is no string
  28404. {@value}]]>
  28405. </doc>
  28406. </field>
  28407. <doc>
  28408. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  28409. script configured via the
  28410. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  28411. <p/>
  28412. It contains a static class <code>RawScriptBasedMapping</code> that performs
  28413. the work: reading the configuration parameters, executing any defined
  28414. script, handling errors and such like. The outer
  28415. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  28416. queries.
  28417. <p/>
  28418. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  28419. true if and only if a script is defined.]]>
  28420. </doc>
  28421. </class>
  28422. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  28423. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  28424. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  28425. abstract="false"
  28426. static="false" final="false" visibility="public"
  28427. deprecated="not deprecated">
  28428. <implements name="org.apache.hadoop.conf.Configurable"/>
  28429. <constructor name="SocksSocketFactory"
  28430. static="false" final="false" visibility="public"
  28431. deprecated="not deprecated">
  28432. <doc>
  28433. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  28434. </doc>
  28435. </constructor>
  28436. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  28437. static="false" final="false" visibility="public"
  28438. deprecated="not deprecated">
  28439. <doc>
  28440. <![CDATA[Constructor with a supplied Proxy
  28441. @param proxy the proxy to use to create sockets]]>
  28442. </doc>
  28443. </constructor>
  28444. <method name="createSocket" return="java.net.Socket"
  28445. abstract="false" native="false" synchronized="false"
  28446. static="false" final="false" visibility="public"
  28447. deprecated="not deprecated">
  28448. <exception name="IOException" type="java.io.IOException"/>
  28449. </method>
  28450. <method name="createSocket" return="java.net.Socket"
  28451. abstract="false" native="false" synchronized="false"
  28452. static="false" final="false" visibility="public"
  28453. deprecated="not deprecated">
  28454. <param name="addr" type="java.net.InetAddress"/>
  28455. <param name="port" type="int"/>
  28456. <exception name="IOException" type="java.io.IOException"/>
  28457. </method>
  28458. <method name="createSocket" return="java.net.Socket"
  28459. abstract="false" native="false" synchronized="false"
  28460. static="false" final="false" visibility="public"
  28461. deprecated="not deprecated">
  28462. <param name="addr" type="java.net.InetAddress"/>
  28463. <param name="port" type="int"/>
  28464. <param name="localHostAddr" type="java.net.InetAddress"/>
  28465. <param name="localPort" type="int"/>
  28466. <exception name="IOException" type="java.io.IOException"/>
  28467. </method>
  28468. <method name="createSocket" return="java.net.Socket"
  28469. abstract="false" native="false" synchronized="false"
  28470. static="false" final="false" visibility="public"
  28471. deprecated="not deprecated">
  28472. <param name="host" type="java.lang.String"/>
  28473. <param name="port" type="int"/>
  28474. <exception name="IOException" type="java.io.IOException"/>
  28475. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28476. </method>
  28477. <method name="createSocket" return="java.net.Socket"
  28478. abstract="false" native="false" synchronized="false"
  28479. static="false" final="false" visibility="public"
  28480. deprecated="not deprecated">
  28481. <param name="host" type="java.lang.String"/>
  28482. <param name="port" type="int"/>
  28483. <param name="localHostAddr" type="java.net.InetAddress"/>
  28484. <param name="localPort" type="int"/>
  28485. <exception name="IOException" type="java.io.IOException"/>
  28486. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28487. </method>
  28488. <method name="hashCode" return="int"
  28489. abstract="false" native="false" synchronized="false"
  28490. static="false" final="false" visibility="public"
  28491. deprecated="not deprecated">
  28492. </method>
  28493. <method name="equals" return="boolean"
  28494. abstract="false" native="false" synchronized="false"
  28495. static="false" final="false" visibility="public"
  28496. deprecated="not deprecated">
  28497. <param name="obj" type="java.lang.Object"/>
  28498. </method>
  28499. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28500. abstract="false" native="false" synchronized="false"
  28501. static="false" final="false" visibility="public"
  28502. deprecated="not deprecated">
  28503. </method>
  28504. <method name="setConf"
  28505. abstract="false" native="false" synchronized="false"
  28506. static="false" final="false" visibility="public"
  28507. deprecated="not deprecated">
  28508. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28509. </method>
  28510. <doc>
  28511. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  28512. </doc>
  28513. </class>
  28514. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  28515. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  28516. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  28517. abstract="false"
  28518. static="false" final="false" visibility="public"
  28519. deprecated="not deprecated">
  28520. <constructor name="StandardSocketFactory"
  28521. static="false" final="false" visibility="public"
  28522. deprecated="not deprecated">
  28523. <doc>
  28524. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  28525. </doc>
  28526. </constructor>
  28527. <method name="createSocket" return="java.net.Socket"
  28528. abstract="false" native="false" synchronized="false"
  28529. static="false" final="false" visibility="public"
  28530. deprecated="not deprecated">
  28531. <exception name="IOException" type="java.io.IOException"/>
  28532. </method>
  28533. <method name="createSocket" return="java.net.Socket"
  28534. abstract="false" native="false" synchronized="false"
  28535. static="false" final="false" visibility="public"
  28536. deprecated="not deprecated">
  28537. <param name="addr" type="java.net.InetAddress"/>
  28538. <param name="port" type="int"/>
  28539. <exception name="IOException" type="java.io.IOException"/>
  28540. </method>
  28541. <method name="createSocket" return="java.net.Socket"
  28542. abstract="false" native="false" synchronized="false"
  28543. static="false" final="false" visibility="public"
  28544. deprecated="not deprecated">
  28545. <param name="addr" type="java.net.InetAddress"/>
  28546. <param name="port" type="int"/>
  28547. <param name="localHostAddr" type="java.net.InetAddress"/>
  28548. <param name="localPort" type="int"/>
  28549. <exception name="IOException" type="java.io.IOException"/>
  28550. </method>
  28551. <method name="createSocket" return="java.net.Socket"
  28552. abstract="false" native="false" synchronized="false"
  28553. static="false" final="false" visibility="public"
  28554. deprecated="not deprecated">
  28555. <param name="host" type="java.lang.String"/>
  28556. <param name="port" type="int"/>
  28557. <exception name="IOException" type="java.io.IOException"/>
  28558. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28559. </method>
  28560. <method name="createSocket" return="java.net.Socket"
  28561. abstract="false" native="false" synchronized="false"
  28562. static="false" final="false" visibility="public"
  28563. deprecated="not deprecated">
  28564. <param name="host" type="java.lang.String"/>
  28565. <param name="port" type="int"/>
  28566. <param name="localHostAddr" type="java.net.InetAddress"/>
  28567. <param name="localPort" type="int"/>
  28568. <exception name="IOException" type="java.io.IOException"/>
  28569. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28570. </method>
  28571. <method name="equals" return="boolean"
  28572. abstract="false" native="false" synchronized="false"
  28573. static="false" final="false" visibility="public"
  28574. deprecated="not deprecated">
  28575. <param name="obj" type="java.lang.Object"/>
  28576. </method>
  28577. <method name="hashCode" return="int"
  28578. abstract="false" native="false" synchronized="false"
  28579. static="false" final="false" visibility="public"
  28580. deprecated="not deprecated">
  28581. </method>
  28582. <doc>
  28583. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  28584. </doc>
  28585. </class>
  28586. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  28587. <!-- start class org.apache.hadoop.net.TableMapping -->
  28588. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  28589. abstract="false"
  28590. static="false" final="false" visibility="public"
  28591. deprecated="not deprecated">
  28592. <constructor name="TableMapping"
  28593. static="false" final="false" visibility="public"
  28594. deprecated="not deprecated">
  28595. </constructor>
  28596. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28597. abstract="false" native="false" synchronized="false"
  28598. static="false" final="false" visibility="public"
  28599. deprecated="not deprecated">
  28600. </method>
  28601. <method name="setConf"
  28602. abstract="false" native="false" synchronized="false"
  28603. static="false" final="false" visibility="public"
  28604. deprecated="not deprecated">
  28605. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28606. </method>
  28607. <method name="reloadCachedMappings"
  28608. abstract="false" native="false" synchronized="false"
  28609. static="false" final="false" visibility="public"
  28610. deprecated="not deprecated">
  28611. </method>
  28612. <doc>
  28613. <![CDATA[<p>
  28614. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  28615. file. The columns are separated by whitespace. The first column is a DNS or
  28616. IP address and the second column specifies the rack where the address maps.
  28617. </p>
  28618. <p>
  28619. This class uses the configuration parameter {@code
  28620. net.topology.table.file.name} to locate the mapping file.
  28621. </p>
  28622. <p>
  28623. Calls to {@link #resolve(List)} will look up the address as defined in the
  28624. mapping file. If no entry corresponding to the address is found, the value
  28625. {@code /default-rack} is returned.
  28626. </p>]]>
  28627. </doc>
  28628. </class>
  28629. <!-- end class org.apache.hadoop.net.TableMapping -->
  28630. <doc>
  28631. <![CDATA[Network-related classes.]]>
  28632. </doc>
  28633. </package>
  28634. <package name="org.apache.hadoop.net.unix">
  28635. </package>
  28636. <package name="org.apache.hadoop.record">
  28637. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  28638. <class name="BinaryRecordInput" extends="java.lang.Object"
  28639. abstract="false"
  28640. static="false" final="false" visibility="public"
  28641. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28642. <implements name="org.apache.hadoop.record.RecordInput"/>
  28643. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  28644. static="false" final="false" visibility="public"
  28645. deprecated="not deprecated">
  28646. <doc>
  28647. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  28648. </doc>
  28649. </constructor>
  28650. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  28651. static="false" final="false" visibility="public"
  28652. deprecated="not deprecated">
  28653. <doc>
  28654. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  28655. </doc>
  28656. </constructor>
  28657. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  28658. abstract="false" native="false" synchronized="false"
  28659. static="true" final="false" visibility="public"
  28660. deprecated="not deprecated">
  28661. <param name="inp" type="java.io.DataInput"/>
  28662. <doc>
  28663. <![CDATA[Get a thread-local record input for the supplied DataInput.
  28664. @param inp data input stream
  28665. @return binary record input corresponding to the supplied DataInput.]]>
  28666. </doc>
  28667. </method>
  28668. <method name="readByte" return="byte"
  28669. abstract="false" native="false" synchronized="false"
  28670. static="false" final="false" visibility="public"
  28671. deprecated="not deprecated">
  28672. <param name="tag" type="java.lang.String"/>
  28673. <exception name="IOException" type="java.io.IOException"/>
  28674. </method>
  28675. <method name="readBool" return="boolean"
  28676. abstract="false" native="false" synchronized="false"
  28677. static="false" final="false" visibility="public"
  28678. deprecated="not deprecated">
  28679. <param name="tag" type="java.lang.String"/>
  28680. <exception name="IOException" type="java.io.IOException"/>
  28681. </method>
  28682. <method name="readInt" return="int"
  28683. abstract="false" native="false" synchronized="false"
  28684. static="false" final="false" visibility="public"
  28685. deprecated="not deprecated">
  28686. <param name="tag" type="java.lang.String"/>
  28687. <exception name="IOException" type="java.io.IOException"/>
  28688. </method>
  28689. <method name="readLong" return="long"
  28690. abstract="false" native="false" synchronized="false"
  28691. static="false" final="false" visibility="public"
  28692. deprecated="not deprecated">
  28693. <param name="tag" type="java.lang.String"/>
  28694. <exception name="IOException" type="java.io.IOException"/>
  28695. </method>
  28696. <method name="readFloat" return="float"
  28697. abstract="false" native="false" synchronized="false"
  28698. static="false" final="false" visibility="public"
  28699. deprecated="not deprecated">
  28700. <param name="tag" type="java.lang.String"/>
  28701. <exception name="IOException" type="java.io.IOException"/>
  28702. </method>
  28703. <method name="readDouble" return="double"
  28704. abstract="false" native="false" synchronized="false"
  28705. static="false" final="false" visibility="public"
  28706. deprecated="not deprecated">
  28707. <param name="tag" type="java.lang.String"/>
  28708. <exception name="IOException" type="java.io.IOException"/>
  28709. </method>
  28710. <method name="readString" return="java.lang.String"
  28711. abstract="false" native="false" synchronized="false"
  28712. static="false" final="false" visibility="public"
  28713. deprecated="not deprecated">
  28714. <param name="tag" type="java.lang.String"/>
  28715. <exception name="IOException" type="java.io.IOException"/>
  28716. </method>
  28717. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  28718. abstract="false" native="false" synchronized="false"
  28719. static="false" final="false" visibility="public"
  28720. deprecated="not deprecated">
  28721. <param name="tag" type="java.lang.String"/>
  28722. <exception name="IOException" type="java.io.IOException"/>
  28723. </method>
  28724. <method name="startRecord"
  28725. abstract="false" native="false" synchronized="false"
  28726. static="false" final="false" visibility="public"
  28727. deprecated="not deprecated">
  28728. <param name="tag" type="java.lang.String"/>
  28729. <exception name="IOException" type="java.io.IOException"/>
  28730. </method>
  28731. <method name="endRecord"
  28732. abstract="false" native="false" synchronized="false"
  28733. static="false" final="false" visibility="public"
  28734. deprecated="not deprecated">
  28735. <param name="tag" type="java.lang.String"/>
  28736. <exception name="IOException" type="java.io.IOException"/>
  28737. </method>
  28738. <method name="startVector" return="org.apache.hadoop.record.Index"
  28739. abstract="false" native="false" synchronized="false"
  28740. static="false" final="false" visibility="public"
  28741. deprecated="not deprecated">
  28742. <param name="tag" type="java.lang.String"/>
  28743. <exception name="IOException" type="java.io.IOException"/>
  28744. </method>
  28745. <method name="endVector"
  28746. abstract="false" native="false" synchronized="false"
  28747. static="false" final="false" visibility="public"
  28748. deprecated="not deprecated">
  28749. <param name="tag" type="java.lang.String"/>
  28750. <exception name="IOException" type="java.io.IOException"/>
  28751. </method>
  28752. <method name="startMap" return="org.apache.hadoop.record.Index"
  28753. abstract="false" native="false" synchronized="false"
  28754. static="false" final="false" visibility="public"
  28755. deprecated="not deprecated">
  28756. <param name="tag" type="java.lang.String"/>
  28757. <exception name="IOException" type="java.io.IOException"/>
  28758. </method>
  28759. <method name="endMap"
  28760. abstract="false" native="false" synchronized="false"
  28761. static="false" final="false" visibility="public"
  28762. deprecated="not deprecated">
  28763. <param name="tag" type="java.lang.String"/>
  28764. <exception name="IOException" type="java.io.IOException"/>
  28765. </method>
  28766. <doc>
  28767. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28768. </doc>
  28769. </class>
  28770. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  28771. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  28772. <class name="BinaryRecordOutput" extends="java.lang.Object"
  28773. abstract="false"
  28774. static="false" final="false" visibility="public"
  28775. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28776. <implements name="org.apache.hadoop.record.RecordOutput"/>
  28777. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  28778. static="false" final="false" visibility="public"
  28779. deprecated="not deprecated">
  28780. <doc>
  28781. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  28782. </doc>
  28783. </constructor>
  28784. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  28785. static="false" final="false" visibility="public"
  28786. deprecated="not deprecated">
  28787. <doc>
  28788. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  28789. </doc>
  28790. </constructor>
  28791. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  28792. abstract="false" native="false" synchronized="false"
  28793. static="true" final="false" visibility="public"
  28794. deprecated="not deprecated">
  28795. <param name="out" type="java.io.DataOutput"/>
  28796. <doc>
  28797. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  28798. @param out data output stream
  28799. @return binary record output corresponding to the supplied DataOutput.]]>
  28800. </doc>
  28801. </method>
  28802. <method name="writeByte"
  28803. abstract="false" native="false" synchronized="false"
  28804. static="false" final="false" visibility="public"
  28805. deprecated="not deprecated">
  28806. <param name="b" type="byte"/>
  28807. <param name="tag" type="java.lang.String"/>
  28808. <exception name="IOException" type="java.io.IOException"/>
  28809. </method>
  28810. <method name="writeBool"
  28811. abstract="false" native="false" synchronized="false"
  28812. static="false" final="false" visibility="public"
  28813. deprecated="not deprecated">
  28814. <param name="b" type="boolean"/>
  28815. <param name="tag" type="java.lang.String"/>
  28816. <exception name="IOException" type="java.io.IOException"/>
  28817. </method>
  28818. <method name="writeInt"
  28819. abstract="false" native="false" synchronized="false"
  28820. static="false" final="false" visibility="public"
  28821. deprecated="not deprecated">
  28822. <param name="i" type="int"/>
  28823. <param name="tag" type="java.lang.String"/>
  28824. <exception name="IOException" type="java.io.IOException"/>
  28825. </method>
  28826. <method name="writeLong"
  28827. abstract="false" native="false" synchronized="false"
  28828. static="false" final="false" visibility="public"
  28829. deprecated="not deprecated">
  28830. <param name="l" type="long"/>
  28831. <param name="tag" type="java.lang.String"/>
  28832. <exception name="IOException" type="java.io.IOException"/>
  28833. </method>
  28834. <method name="writeFloat"
  28835. abstract="false" native="false" synchronized="false"
  28836. static="false" final="false" visibility="public"
  28837. deprecated="not deprecated">
  28838. <param name="f" type="float"/>
  28839. <param name="tag" type="java.lang.String"/>
  28840. <exception name="IOException" type="java.io.IOException"/>
  28841. </method>
  28842. <method name="writeDouble"
  28843. abstract="false" native="false" synchronized="false"
  28844. static="false" final="false" visibility="public"
  28845. deprecated="not deprecated">
  28846. <param name="d" type="double"/>
  28847. <param name="tag" type="java.lang.String"/>
  28848. <exception name="IOException" type="java.io.IOException"/>
  28849. </method>
  28850. <method name="writeString"
  28851. abstract="false" native="false" synchronized="false"
  28852. static="false" final="false" visibility="public"
  28853. deprecated="not deprecated">
  28854. <param name="s" type="java.lang.String"/>
  28855. <param name="tag" type="java.lang.String"/>
  28856. <exception name="IOException" type="java.io.IOException"/>
  28857. </method>
  28858. <method name="writeBuffer"
  28859. abstract="false" native="false" synchronized="false"
  28860. static="false" final="false" visibility="public"
  28861. deprecated="not deprecated">
  28862. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  28863. <param name="tag" type="java.lang.String"/>
  28864. <exception name="IOException" type="java.io.IOException"/>
  28865. </method>
  28866. <method name="startRecord"
  28867. abstract="false" native="false" synchronized="false"
  28868. static="false" final="false" visibility="public"
  28869. deprecated="not deprecated">
  28870. <param name="r" type="org.apache.hadoop.record.Record"/>
  28871. <param name="tag" type="java.lang.String"/>
  28872. <exception name="IOException" type="java.io.IOException"/>
  28873. </method>
  28874. <method name="endRecord"
  28875. abstract="false" native="false" synchronized="false"
  28876. static="false" final="false" visibility="public"
  28877. deprecated="not deprecated">
  28878. <param name="r" type="org.apache.hadoop.record.Record"/>
  28879. <param name="tag" type="java.lang.String"/>
  28880. <exception name="IOException" type="java.io.IOException"/>
  28881. </method>
  28882. <method name="startVector"
  28883. abstract="false" native="false" synchronized="false"
  28884. static="false" final="false" visibility="public"
  28885. deprecated="not deprecated">
  28886. <param name="v" type="java.util.ArrayList"/>
  28887. <param name="tag" type="java.lang.String"/>
  28888. <exception name="IOException" type="java.io.IOException"/>
  28889. </method>
  28890. <method name="endVector"
  28891. abstract="false" native="false" synchronized="false"
  28892. static="false" final="false" visibility="public"
  28893. deprecated="not deprecated">
  28894. <param name="v" type="java.util.ArrayList"/>
  28895. <param name="tag" type="java.lang.String"/>
  28896. <exception name="IOException" type="java.io.IOException"/>
  28897. </method>
  28898. <method name="startMap"
  28899. abstract="false" native="false" synchronized="false"
  28900. static="false" final="false" visibility="public"
  28901. deprecated="not deprecated">
  28902. <param name="v" type="java.util.TreeMap"/>
  28903. <param name="tag" type="java.lang.String"/>
  28904. <exception name="IOException" type="java.io.IOException"/>
  28905. </method>
  28906. <method name="endMap"
  28907. abstract="false" native="false" synchronized="false"
  28908. static="false" final="false" visibility="public"
  28909. deprecated="not deprecated">
  28910. <param name="v" type="java.util.TreeMap"/>
  28911. <param name="tag" type="java.lang.String"/>
  28912. <exception name="IOException" type="java.io.IOException"/>
  28913. </method>
  28914. <doc>
  28915. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28916. </doc>
  28917. </class>
  28918. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  28919. <!-- start class org.apache.hadoop.record.Buffer -->
  28920. <class name="Buffer" extends="java.lang.Object"
  28921. abstract="false"
  28922. static="false" final="false" visibility="public"
  28923. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  28924. <implements name="java.lang.Comparable"/>
  28925. <implements name="java.lang.Cloneable"/>
  28926. <constructor name="Buffer"
  28927. static="false" final="false" visibility="public"
  28928. deprecated="not deprecated">
  28929. <doc>
  28930. <![CDATA[Create a zero-count sequence.]]>
  28931. </doc>
  28932. </constructor>
  28933. <constructor name="Buffer" type="byte[]"
  28934. static="false" final="false" visibility="public"
  28935. deprecated="not deprecated">
  28936. <doc>
  28937. <![CDATA[Create a Buffer using the byte array as the initial value.
  28938. @param bytes This array becomes the backing storage for the object.]]>
  28939. </doc>
  28940. </constructor>
  28941. <constructor name="Buffer" type="byte[], int, int"
  28942. static="false" final="false" visibility="public"
  28943. deprecated="not deprecated">
  28944. <doc>
  28945. <![CDATA[Create a Buffer using the byte range as the initial value.
  28946. @param bytes Copy of this array becomes the backing storage for the object.
  28947. @param offset offset into byte array
  28948. @param length length of data]]>
  28949. </doc>
  28950. </constructor>
  28951. <method name="set"
  28952. abstract="false" native="false" synchronized="false"
  28953. static="false" final="false" visibility="public"
  28954. deprecated="not deprecated">
  28955. <param name="bytes" type="byte[]"/>
  28956. <doc>
  28957. <![CDATA[Use the specified bytes array as underlying sequence.
  28958. @param bytes byte sequence]]>
  28959. </doc>
  28960. </method>
  28961. <method name="copy"
  28962. abstract="false" native="false" synchronized="false"
  28963. static="false" final="true" visibility="public"
  28964. deprecated="not deprecated">
  28965. <param name="bytes" type="byte[]"/>
  28966. <param name="offset" type="int"/>
  28967. <param name="length" type="int"/>
  28968. <doc>
  28969. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  28970. @param bytes byte array to be assigned
  28971. @param offset offset into byte array
  28972. @param length length of data]]>
  28973. </doc>
  28974. </method>
  28975. <method name="get" return="byte[]"
  28976. abstract="false" native="false" synchronized="false"
  28977. static="false" final="false" visibility="public"
  28978. deprecated="not deprecated">
  28979. <doc>
  28980. <![CDATA[Get the data from the Buffer.
  28981. @return The data is only valid between 0 and getCount() - 1.]]>
  28982. </doc>
  28983. </method>
  28984. <method name="getCount" return="int"
  28985. abstract="false" native="false" synchronized="false"
  28986. static="false" final="false" visibility="public"
  28987. deprecated="not deprecated">
  28988. <doc>
  28989. <![CDATA[Get the current count of the buffer.]]>
  28990. </doc>
  28991. </method>
  28992. <method name="getCapacity" return="int"
  28993. abstract="false" native="false" synchronized="false"
  28994. static="false" final="false" visibility="public"
  28995. deprecated="not deprecated">
  28996. <doc>
  28997. <![CDATA[Get the capacity, which is the maximum count that could handled without
  28998. resizing the backing storage.
  28999. @return The number of bytes]]>
  29000. </doc>
  29001. </method>
  29002. <method name="setCapacity"
  29003. abstract="false" native="false" synchronized="false"
  29004. static="false" final="false" visibility="public"
  29005. deprecated="not deprecated">
  29006. <param name="newCapacity" type="int"/>
  29007. <doc>
  29008. <![CDATA[Change the capacity of the backing storage.
  29009. The data is preserved if newCapacity {@literal >=} getCount().
  29010. @param newCapacity The new capacity in bytes.]]>
  29011. </doc>
  29012. </method>
  29013. <method name="reset"
  29014. abstract="false" native="false" synchronized="false"
  29015. static="false" final="false" visibility="public"
  29016. deprecated="not deprecated">
  29017. <doc>
  29018. <![CDATA[Reset the buffer to 0 size]]>
  29019. </doc>
  29020. </method>
  29021. <method name="truncate"
  29022. abstract="false" native="false" synchronized="false"
  29023. static="false" final="false" visibility="public"
  29024. deprecated="not deprecated">
  29025. <doc>
  29026. <![CDATA[Change the capacity of the backing store to be the same as the current
  29027. count of buffer.]]>
  29028. </doc>
  29029. </method>
  29030. <method name="append"
  29031. abstract="false" native="false" synchronized="false"
  29032. static="false" final="false" visibility="public"
  29033. deprecated="not deprecated">
  29034. <param name="bytes" type="byte[]"/>
  29035. <param name="offset" type="int"/>
  29036. <param name="length" type="int"/>
  29037. <doc>
  29038. <![CDATA[Append specified bytes to the buffer.
  29039. @param bytes byte array to be appended
  29040. @param offset offset into byte array
  29041. @param length length of data]]>
  29042. </doc>
  29043. </method>
  29044. <method name="append"
  29045. abstract="false" native="false" synchronized="false"
  29046. static="false" final="false" visibility="public"
  29047. deprecated="not deprecated">
  29048. <param name="bytes" type="byte[]"/>
  29049. <doc>
  29050. <![CDATA[Append specified bytes to the buffer
  29051. @param bytes byte array to be appended]]>
  29052. </doc>
  29053. </method>
  29054. <method name="hashCode" return="int"
  29055. abstract="false" native="false" synchronized="false"
  29056. static="false" final="false" visibility="public"
  29057. deprecated="not deprecated">
  29058. </method>
  29059. <method name="compareTo" return="int"
  29060. abstract="false" native="false" synchronized="false"
  29061. static="false" final="false" visibility="public"
  29062. deprecated="not deprecated">
  29063. <param name="other" type="java.lang.Object"/>
  29064. <doc>
  29065. <![CDATA[Define the sort order of the Buffer.
  29066. @param other The other buffer
  29067. @return Positive if this is bigger than other, 0 if they are equal, and
  29068. negative if this is smaller than other.]]>
  29069. </doc>
  29070. </method>
  29071. <method name="equals" return="boolean"
  29072. abstract="false" native="false" synchronized="false"
  29073. static="false" final="false" visibility="public"
  29074. deprecated="not deprecated">
  29075. <param name="other" type="java.lang.Object"/>
  29076. </method>
  29077. <method name="toString" return="java.lang.String"
  29078. abstract="false" native="false" synchronized="false"
  29079. static="false" final="false" visibility="public"
  29080. deprecated="not deprecated">
  29081. </method>
  29082. <method name="toString" return="java.lang.String"
  29083. abstract="false" native="false" synchronized="false"
  29084. static="false" final="false" visibility="public"
  29085. deprecated="not deprecated">
  29086. <param name="charsetName" type="java.lang.String"/>
  29087. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  29088. <doc>
  29089. <![CDATA[Convert the byte buffer to a string an specific character encoding
  29090. @param charsetName Valid Java Character Set Name]]>
  29091. </doc>
  29092. </method>
  29093. <method name="clone" return="java.lang.Object"
  29094. abstract="false" native="false" synchronized="false"
  29095. static="false" final="false" visibility="public"
  29096. deprecated="not deprecated">
  29097. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  29098. </method>
  29099. <doc>
  29100. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  29101. It is resizable and distinguishes between the count of the sequence and
  29102. the current capacity.
  29103. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  29104. </doc>
  29105. </class>
  29106. <!-- end class org.apache.hadoop.record.Buffer -->
  29107. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  29108. <class name="CsvRecordInput" extends="java.lang.Object"
  29109. abstract="false"
  29110. static="false" final="false" visibility="public"
  29111. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29112. <implements name="org.apache.hadoop.record.RecordInput"/>
  29113. <constructor name="CsvRecordInput" type="java.io.InputStream"
  29114. static="false" final="false" visibility="public"
  29115. deprecated="not deprecated">
  29116. <doc>
  29117. <![CDATA[Creates a new instance of CsvRecordInput]]>
  29118. </doc>
  29119. </constructor>
  29120. <method name="readByte" return="byte"
  29121. abstract="false" native="false" synchronized="false"
  29122. static="false" final="false" visibility="public"
  29123. deprecated="not deprecated">
  29124. <param name="tag" type="java.lang.String"/>
  29125. <exception name="IOException" type="java.io.IOException"/>
  29126. </method>
  29127. <method name="readBool" return="boolean"
  29128. abstract="false" native="false" synchronized="false"
  29129. static="false" final="false" visibility="public"
  29130. deprecated="not deprecated">
  29131. <param name="tag" type="java.lang.String"/>
  29132. <exception name="IOException" type="java.io.IOException"/>
  29133. </method>
  29134. <method name="readInt" return="int"
  29135. abstract="false" native="false" synchronized="false"
  29136. static="false" final="false" visibility="public"
  29137. deprecated="not deprecated">
  29138. <param name="tag" type="java.lang.String"/>
  29139. <exception name="IOException" type="java.io.IOException"/>
  29140. </method>
  29141. <method name="readLong" return="long"
  29142. abstract="false" native="false" synchronized="false"
  29143. static="false" final="false" visibility="public"
  29144. deprecated="not deprecated">
  29145. <param name="tag" type="java.lang.String"/>
  29146. <exception name="IOException" type="java.io.IOException"/>
  29147. </method>
  29148. <method name="readFloat" return="float"
  29149. abstract="false" native="false" synchronized="false"
  29150. static="false" final="false" visibility="public"
  29151. deprecated="not deprecated">
  29152. <param name="tag" type="java.lang.String"/>
  29153. <exception name="IOException" type="java.io.IOException"/>
  29154. </method>
  29155. <method name="readDouble" return="double"
  29156. abstract="false" native="false" synchronized="false"
  29157. static="false" final="false" visibility="public"
  29158. deprecated="not deprecated">
  29159. <param name="tag" type="java.lang.String"/>
  29160. <exception name="IOException" type="java.io.IOException"/>
  29161. </method>
  29162. <method name="readString" return="java.lang.String"
  29163. abstract="false" native="false" synchronized="false"
  29164. static="false" final="false" visibility="public"
  29165. deprecated="not deprecated">
  29166. <param name="tag" type="java.lang.String"/>
  29167. <exception name="IOException" type="java.io.IOException"/>
  29168. </method>
  29169. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  29170. abstract="false" native="false" synchronized="false"
  29171. static="false" final="false" visibility="public"
  29172. deprecated="not deprecated">
  29173. <param name="tag" type="java.lang.String"/>
  29174. <exception name="IOException" type="java.io.IOException"/>
  29175. </method>
  29176. <method name="startRecord"
  29177. abstract="false" native="false" synchronized="false"
  29178. static="false" final="false" visibility="public"
  29179. deprecated="not deprecated">
  29180. <param name="tag" type="java.lang.String"/>
  29181. <exception name="IOException" type="java.io.IOException"/>
  29182. </method>
  29183. <method name="endRecord"
  29184. abstract="false" native="false" synchronized="false"
  29185. static="false" final="false" visibility="public"
  29186. deprecated="not deprecated">
  29187. <param name="tag" type="java.lang.String"/>
  29188. <exception name="IOException" type="java.io.IOException"/>
  29189. </method>
  29190. <method name="startVector" return="org.apache.hadoop.record.Index"
  29191. abstract="false" native="false" synchronized="false"
  29192. static="false" final="false" visibility="public"
  29193. deprecated="not deprecated">
  29194. <param name="tag" type="java.lang.String"/>
  29195. <exception name="IOException" type="java.io.IOException"/>
  29196. </method>
  29197. <method name="endVector"
  29198. abstract="false" native="false" synchronized="false"
  29199. static="false" final="false" visibility="public"
  29200. deprecated="not deprecated">
  29201. <param name="tag" type="java.lang.String"/>
  29202. <exception name="IOException" type="java.io.IOException"/>
  29203. </method>
  29204. <method name="startMap" return="org.apache.hadoop.record.Index"
  29205. abstract="false" native="false" synchronized="false"
  29206. static="false" final="false" visibility="public"
  29207. deprecated="not deprecated">
  29208. <param name="tag" type="java.lang.String"/>
  29209. <exception name="IOException" type="java.io.IOException"/>
  29210. </method>
  29211. <method name="endMap"
  29212. abstract="false" native="false" synchronized="false"
  29213. static="false" final="false" visibility="public"
  29214. deprecated="not deprecated">
  29215. <param name="tag" type="java.lang.String"/>
  29216. <exception name="IOException" type="java.io.IOException"/>
  29217. </method>
  29218. <doc>
  29219. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29220. </doc>
  29221. </class>
  29222. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  29223. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  29224. <class name="CsvRecordOutput" extends="java.lang.Object"
  29225. abstract="false"
  29226. static="false" final="false" visibility="public"
  29227. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29228. <implements name="org.apache.hadoop.record.RecordOutput"/>
  29229. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  29230. static="false" final="false" visibility="public"
  29231. deprecated="not deprecated">
  29232. <doc>
  29233. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  29234. </doc>
  29235. </constructor>
  29236. <method name="writeByte"
  29237. abstract="false" native="false" synchronized="false"
  29238. static="false" final="false" visibility="public"
  29239. deprecated="not deprecated">
  29240. <param name="b" type="byte"/>
  29241. <param name="tag" type="java.lang.String"/>
  29242. <exception name="IOException" type="java.io.IOException"/>
  29243. </method>
  29244. <method name="writeBool"
  29245. abstract="false" native="false" synchronized="false"
  29246. static="false" final="false" visibility="public"
  29247. deprecated="not deprecated">
  29248. <param name="b" type="boolean"/>
  29249. <param name="tag" type="java.lang.String"/>
  29250. <exception name="IOException" type="java.io.IOException"/>
  29251. </method>
  29252. <method name="writeInt"
  29253. abstract="false" native="false" synchronized="false"
  29254. static="false" final="false" visibility="public"
  29255. deprecated="not deprecated">
  29256. <param name="i" type="int"/>
  29257. <param name="tag" type="java.lang.String"/>
  29258. <exception name="IOException" type="java.io.IOException"/>
  29259. </method>
  29260. <method name="writeLong"
  29261. abstract="false" native="false" synchronized="false"
  29262. static="false" final="false" visibility="public"
  29263. deprecated="not deprecated">
  29264. <param name="l" type="long"/>
  29265. <param name="tag" type="java.lang.String"/>
  29266. <exception name="IOException" type="java.io.IOException"/>
  29267. </method>
  29268. <method name="writeFloat"
  29269. abstract="false" native="false" synchronized="false"
  29270. static="false" final="false" visibility="public"
  29271. deprecated="not deprecated">
  29272. <param name="f" type="float"/>
  29273. <param name="tag" type="java.lang.String"/>
  29274. <exception name="IOException" type="java.io.IOException"/>
  29275. </method>
  29276. <method name="writeDouble"
  29277. abstract="false" native="false" synchronized="false"
  29278. static="false" final="false" visibility="public"
  29279. deprecated="not deprecated">
  29280. <param name="d" type="double"/>
  29281. <param name="tag" type="java.lang.String"/>
  29282. <exception name="IOException" type="java.io.IOException"/>
  29283. </method>
  29284. <method name="writeString"
  29285. abstract="false" native="false" synchronized="false"
  29286. static="false" final="false" visibility="public"
  29287. deprecated="not deprecated">
  29288. <param name="s" type="java.lang.String"/>
  29289. <param name="tag" type="java.lang.String"/>
  29290. <exception name="IOException" type="java.io.IOException"/>
  29291. </method>
  29292. <method name="writeBuffer"
  29293. abstract="false" native="false" synchronized="false"
  29294. static="false" final="false" visibility="public"
  29295. deprecated="not deprecated">
  29296. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  29297. <param name="tag" type="java.lang.String"/>
  29298. <exception name="IOException" type="java.io.IOException"/>
  29299. </method>
  29300. <method name="startRecord"
  29301. abstract="false" native="false" synchronized="false"
  29302. static="false" final="false" visibility="public"
  29303. deprecated="not deprecated">
  29304. <param name="r" type="org.apache.hadoop.record.Record"/>
  29305. <param name="tag" type="java.lang.String"/>
  29306. <exception name="IOException" type="java.io.IOException"/>
  29307. </method>
  29308. <method name="endRecord"
  29309. abstract="false" native="false" synchronized="false"
  29310. static="false" final="false" visibility="public"
  29311. deprecated="not deprecated">
  29312. <param name="r" type="org.apache.hadoop.record.Record"/>
  29313. <param name="tag" type="java.lang.String"/>
  29314. <exception name="IOException" type="java.io.IOException"/>
  29315. </method>
  29316. <method name="startVector"
  29317. abstract="false" native="false" synchronized="false"
  29318. static="false" final="false" visibility="public"
  29319. deprecated="not deprecated">
  29320. <param name="v" type="java.util.ArrayList"/>
  29321. <param name="tag" type="java.lang.String"/>
  29322. <exception name="IOException" type="java.io.IOException"/>
  29323. </method>
  29324. <method name="endVector"
  29325. abstract="false" native="false" synchronized="false"
  29326. static="false" final="false" visibility="public"
  29327. deprecated="not deprecated">
  29328. <param name="v" type="java.util.ArrayList"/>
  29329. <param name="tag" type="java.lang.String"/>
  29330. <exception name="IOException" type="java.io.IOException"/>
  29331. </method>
  29332. <method name="startMap"
  29333. abstract="false" native="false" synchronized="false"
  29334. static="false" final="false" visibility="public"
  29335. deprecated="not deprecated">
  29336. <param name="v" type="java.util.TreeMap"/>
  29337. <param name="tag" type="java.lang.String"/>
  29338. <exception name="IOException" type="java.io.IOException"/>
  29339. </method>
  29340. <method name="endMap"
  29341. abstract="false" native="false" synchronized="false"
  29342. static="false" final="false" visibility="public"
  29343. deprecated="not deprecated">
  29344. <param name="v" type="java.util.TreeMap"/>
  29345. <param name="tag" type="java.lang.String"/>
  29346. <exception name="IOException" type="java.io.IOException"/>
  29347. </method>
  29348. <doc>
  29349. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29350. </doc>
  29351. </class>
  29352. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  29353. <!-- start interface org.apache.hadoop.record.Index -->
  29354. <interface name="Index" abstract="true"
  29355. static="false" final="false" visibility="public"
  29356. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29357. <method name="done" return="boolean"
  29358. abstract="false" native="false" synchronized="false"
  29359. static="false" final="false" visibility="public"
  29360. deprecated="not deprecated">
  29361. </method>
  29362. <method name="incr"
  29363. abstract="false" native="false" synchronized="false"
  29364. static="false" final="false" visibility="public"
  29365. deprecated="not deprecated">
  29366. </method>
  29367. <doc>
  29368. <![CDATA[Interface that acts as an iterator for deserializing maps.
  29369. The deserializer returns an instance that the record uses to
  29370. read vectors and maps. An example of usage is as follows:
  29371. <code>
  29372. Index idx = startVector(...);
  29373. while (!idx.done()) {
  29374. .... // read element of a vector
  29375. idx.incr();
  29376. }
  29377. </code>
  29378. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29379. </doc>
  29380. </interface>
  29381. <!-- end interface org.apache.hadoop.record.Index -->
  29382. <!-- start class org.apache.hadoop.record.Record -->
  29383. <class name="Record" extends="java.lang.Object"
  29384. abstract="true"
  29385. static="false" final="false" visibility="public"
  29386. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29387. <implements name="org.apache.hadoop.io.WritableComparable"/>
  29388. <implements name="java.lang.Cloneable"/>
  29389. <constructor name="Record"
  29390. static="false" final="false" visibility="public"
  29391. deprecated="not deprecated">
  29392. </constructor>
  29393. <method name="serialize"
  29394. abstract="true" native="false" synchronized="false"
  29395. static="false" final="false" visibility="public"
  29396. deprecated="not deprecated">
  29397. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  29398. <param name="tag" type="java.lang.String"/>
  29399. <exception name="IOException" type="java.io.IOException"/>
  29400. <doc>
  29401. <![CDATA[Serialize a record with tag (ususally field name)
  29402. @param rout Record output destination
  29403. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  29404. </doc>
  29405. </method>
  29406. <method name="deserialize"
  29407. abstract="true" native="false" synchronized="false"
  29408. static="false" final="false" visibility="public"
  29409. deprecated="not deprecated">
  29410. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  29411. <param name="tag" type="java.lang.String"/>
  29412. <exception name="IOException" type="java.io.IOException"/>
  29413. <doc>
  29414. <![CDATA[Deserialize a record with a tag (usually field name)
  29415. @param rin Record input source
  29416. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  29417. </doc>
  29418. </method>
  29419. <method name="compareTo" return="int"
  29420. abstract="true" native="false" synchronized="false"
  29421. static="false" final="false" visibility="public"
  29422. deprecated="not deprecated">
  29423. <param name="peer" type="java.lang.Object"/>
  29424. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  29425. </method>
  29426. <method name="serialize"
  29427. abstract="false" native="false" synchronized="false"
  29428. static="false" final="false" visibility="public"
  29429. deprecated="not deprecated">
  29430. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  29431. <exception name="IOException" type="java.io.IOException"/>
  29432. <doc>
  29433. <![CDATA[Serialize a record without a tag
  29434. @param rout Record output destination]]>
  29435. </doc>
  29436. </method>
  29437. <method name="deserialize"
  29438. abstract="false" native="false" synchronized="false"
  29439. static="false" final="false" visibility="public"
  29440. deprecated="not deprecated">
  29441. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  29442. <exception name="IOException" type="java.io.IOException"/>
  29443. <doc>
  29444. <![CDATA[Deserialize a record without a tag
  29445. @param rin Record input source]]>
  29446. </doc>
  29447. </method>
  29448. <method name="write"
  29449. abstract="false" native="false" synchronized="false"
  29450. static="false" final="false" visibility="public"
  29451. deprecated="not deprecated">
  29452. <param name="out" type="java.io.DataOutput"/>
  29453. <exception name="IOException" type="java.io.IOException"/>
  29454. </method>
  29455. <method name="readFields"
  29456. abstract="false" native="false" synchronized="false"
  29457. static="false" final="false" visibility="public"
  29458. deprecated="not deprecated">
  29459. <param name="din" type="java.io.DataInput"/>
  29460. <exception name="IOException" type="java.io.IOException"/>
  29461. </method>
  29462. <method name="toString" return="java.lang.String"
  29463. abstract="false" native="false" synchronized="false"
  29464. static="false" final="false" visibility="public"
  29465. deprecated="not deprecated">
  29466. </method>
  29467. <doc>
  29468. <![CDATA[Abstract class that is extended by generated classes.
  29469. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29470. </doc>
  29471. </class>
  29472. <!-- end class org.apache.hadoop.record.Record -->
  29473. <!-- start class org.apache.hadoop.record.RecordComparator -->
  29474. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  29475. abstract="true"
  29476. static="false" final="false" visibility="public"
  29477. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29478. <constructor name="RecordComparator" type="java.lang.Class"
  29479. static="false" final="false" visibility="protected"
  29480. deprecated="not deprecated">
  29481. <doc>
  29482. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  29483. </doc>
  29484. </constructor>
  29485. <method name="compare" return="int"
  29486. abstract="true" native="false" synchronized="false"
  29487. static="false" final="false" visibility="public"
  29488. deprecated="not deprecated">
  29489. <param name="b1" type="byte[]"/>
  29490. <param name="s1" type="int"/>
  29491. <param name="l1" type="int"/>
  29492. <param name="b2" type="byte[]"/>
  29493. <param name="s2" type="int"/>
  29494. <param name="l2" type="int"/>
  29495. </method>
  29496. <method name="define"
  29497. abstract="false" native="false" synchronized="true"
  29498. static="true" final="false" visibility="public"
  29499. deprecated="not deprecated">
  29500. <param name="c" type="java.lang.Class"/>
  29501. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  29502. <doc>
  29503. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  29504. @param c record classs for which a raw comparator is provided
  29505. @param comparator Raw comparator instance for class c]]>
  29506. </doc>
  29507. </method>
  29508. <doc>
  29509. <![CDATA[A raw record comparator base class
  29510. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29511. </doc>
  29512. </class>
  29513. <!-- end class org.apache.hadoop.record.RecordComparator -->
  29514. <!-- start interface org.apache.hadoop.record.RecordInput -->
  29515. <interface name="RecordInput" abstract="true"
  29516. static="false" final="false" visibility="public"
  29517. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29518. <method name="readByte" return="byte"
  29519. abstract="false" native="false" synchronized="false"
  29520. static="false" final="false" visibility="public"
  29521. deprecated="not deprecated">
  29522. <param name="tag" type="java.lang.String"/>
  29523. <exception name="IOException" type="java.io.IOException"/>
  29524. <doc>
  29525. <![CDATA[Read a byte from serialized record.
  29526. @param tag Used by tagged serialization formats (such as XML)
  29527. @return value read from serialized record.]]>
  29528. </doc>
  29529. </method>
  29530. <method name="readBool" return="boolean"
  29531. abstract="false" native="false" synchronized="false"
  29532. static="false" final="false" visibility="public"
  29533. deprecated="not deprecated">
  29534. <param name="tag" type="java.lang.String"/>
  29535. <exception name="IOException" type="java.io.IOException"/>
  29536. <doc>
  29537. <![CDATA[Read a boolean from serialized record.
  29538. @param tag Used by tagged serialization formats (such as XML)
  29539. @return value read from serialized record.]]>
  29540. </doc>
  29541. </method>
  29542. <method name="readInt" return="int"
  29543. abstract="false" native="false" synchronized="false"
  29544. static="false" final="false" visibility="public"
  29545. deprecated="not deprecated">
  29546. <param name="tag" type="java.lang.String"/>
  29547. <exception name="IOException" type="java.io.IOException"/>
  29548. <doc>
  29549. <![CDATA[Read an integer from serialized record.
  29550. @param tag Used by tagged serialization formats (such as XML)
  29551. @return value read from serialized record.]]>
  29552. </doc>
  29553. </method>
  29554. <method name="readLong" return="long"
  29555. abstract="false" native="false" synchronized="false"
  29556. static="false" final="false" visibility="public"
  29557. deprecated="not deprecated">
  29558. <param name="tag" type="java.lang.String"/>
  29559. <exception name="IOException" type="java.io.IOException"/>
  29560. <doc>
  29561. <![CDATA[Read a long integer from serialized record.
  29562. @param tag Used by tagged serialization formats (such as XML)
  29563. @return value read from serialized record.]]>
  29564. </doc>
  29565. </method>
  29566. <method name="readFloat" return="float"
  29567. abstract="false" native="false" synchronized="false"
  29568. static="false" final="false" visibility="public"
  29569. deprecated="not deprecated">
  29570. <param name="tag" type="java.lang.String"/>
  29571. <exception name="IOException" type="java.io.IOException"/>
  29572. <doc>
  29573. <![CDATA[Read a single-precision float from serialized record.
  29574. @param tag Used by tagged serialization formats (such as XML)
  29575. @return value read from serialized record.]]>
  29576. </doc>
  29577. </method>
  29578. <method name="readDouble" return="double"
  29579. abstract="false" native="false" synchronized="false"
  29580. static="false" final="false" visibility="public"
  29581. deprecated="not deprecated">
  29582. <param name="tag" type="java.lang.String"/>
  29583. <exception name="IOException" type="java.io.IOException"/>
  29584. <doc>
  29585. <![CDATA[Read a double-precision number from serialized record.
  29586. @param tag Used by tagged serialization formats (such as XML)
  29587. @return value read from serialized record.]]>
  29588. </doc>
  29589. </method>
  29590. <method name="readString" return="java.lang.String"
  29591. abstract="false" native="false" synchronized="false"
  29592. static="false" final="false" visibility="public"
  29593. deprecated="not deprecated">
  29594. <param name="tag" type="java.lang.String"/>
  29595. <exception name="IOException" type="java.io.IOException"/>
  29596. <doc>
  29597. <![CDATA[Read a UTF-8 encoded string from serialized record.
  29598. @param tag Used by tagged serialization formats (such as XML)
  29599. @return value read from serialized record.]]>
  29600. </doc>
  29601. </method>
  29602. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  29603. abstract="false" native="false" synchronized="false"
  29604. static="false" final="false" visibility="public"
  29605. deprecated="not deprecated">
  29606. <param name="tag" type="java.lang.String"/>
  29607. <exception name="IOException" type="java.io.IOException"/>
  29608. <doc>
  29609. <![CDATA[Read byte array from serialized record.
  29610. @param tag Used by tagged serialization formats (such as XML)
  29611. @return value read from serialized record.]]>
  29612. </doc>
  29613. </method>
  29614. <method name="startRecord"
  29615. abstract="false" native="false" synchronized="false"
  29616. static="false" final="false" visibility="public"
  29617. deprecated="not deprecated">
  29618. <param name="tag" type="java.lang.String"/>
  29619. <exception name="IOException" type="java.io.IOException"/>
  29620. <doc>
  29621. <![CDATA[Check the mark for start of the serialized record.
  29622. @param tag Used by tagged serialization formats (such as XML)]]>
  29623. </doc>
  29624. </method>
  29625. <method name="endRecord"
  29626. abstract="false" native="false" synchronized="false"
  29627. static="false" final="false" visibility="public"
  29628. deprecated="not deprecated">
  29629. <param name="tag" type="java.lang.String"/>
  29630. <exception name="IOException" type="java.io.IOException"/>
  29631. <doc>
  29632. <![CDATA[Check the mark for end of the serialized record.
  29633. @param tag Used by tagged serialization formats (such as XML)]]>
  29634. </doc>
  29635. </method>
  29636. <method name="startVector" return="org.apache.hadoop.record.Index"
  29637. abstract="false" native="false" synchronized="false"
  29638. static="false" final="false" visibility="public"
  29639. deprecated="not deprecated">
  29640. <param name="tag" type="java.lang.String"/>
  29641. <exception name="IOException" type="java.io.IOException"/>
  29642. <doc>
  29643. <![CDATA[Check the mark for start of the serialized vector.
  29644. @param tag Used by tagged serialization formats (such as XML)
  29645. @return Index that is used to count the number of elements.]]>
  29646. </doc>
  29647. </method>
  29648. <method name="endVector"
  29649. abstract="false" native="false" synchronized="false"
  29650. static="false" final="false" visibility="public"
  29651. deprecated="not deprecated">
  29652. <param name="tag" type="java.lang.String"/>
  29653. <exception name="IOException" type="java.io.IOException"/>
  29654. <doc>
  29655. <![CDATA[Check the mark for end of the serialized vector.
  29656. @param tag Used by tagged serialization formats (such as XML)]]>
  29657. </doc>
  29658. </method>
  29659. <method name="startMap" return="org.apache.hadoop.record.Index"
  29660. abstract="false" native="false" synchronized="false"
  29661. static="false" final="false" visibility="public"
  29662. deprecated="not deprecated">
  29663. <param name="tag" type="java.lang.String"/>
  29664. <exception name="IOException" type="java.io.IOException"/>
  29665. <doc>
  29666. <![CDATA[Check the mark for start of the serialized map.
  29667. @param tag Used by tagged serialization formats (such as XML)
  29668. @return Index that is used to count the number of map entries.]]>
  29669. </doc>
  29670. </method>
  29671. <method name="endMap"
  29672. abstract="false" native="false" synchronized="false"
  29673. static="false" final="false" visibility="public"
  29674. deprecated="not deprecated">
  29675. <param name="tag" type="java.lang.String"/>
  29676. <exception name="IOException" type="java.io.IOException"/>
  29677. <doc>
  29678. <![CDATA[Check the mark for end of the serialized map.
  29679. @param tag Used by tagged serialization formats (such as XML)]]>
  29680. </doc>
  29681. </method>
  29682. <doc>
  29683. <![CDATA[Interface that all the Deserializers have to implement.
  29684. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29685. </doc>
  29686. </interface>
  29687. <!-- end interface org.apache.hadoop.record.RecordInput -->
  29688. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  29689. <interface name="RecordOutput" abstract="true"
  29690. static="false" final="false" visibility="public"
  29691. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29692. <method name="writeByte"
  29693. abstract="false" native="false" synchronized="false"
  29694. static="false" final="false" visibility="public"
  29695. deprecated="not deprecated">
  29696. <param name="b" type="byte"/>
  29697. <param name="tag" type="java.lang.String"/>
  29698. <exception name="IOException" type="java.io.IOException"/>
  29699. <doc>
  29700. <![CDATA[Write a byte to serialized record.
  29701. @param b Byte to be serialized
  29702. @param tag Used by tagged serialization formats (such as XML)
  29703. @throws IOException Indicates error in serialization]]>
  29704. </doc>
  29705. </method>
  29706. <method name="writeBool"
  29707. abstract="false" native="false" synchronized="false"
  29708. static="false" final="false" visibility="public"
  29709. deprecated="not deprecated">
  29710. <param name="b" type="boolean"/>
  29711. <param name="tag" type="java.lang.String"/>
  29712. <exception name="IOException" type="java.io.IOException"/>
  29713. <doc>
  29714. <![CDATA[Write a boolean to serialized record.
  29715. @param b Boolean to be serialized
  29716. @param tag Used by tagged serialization formats (such as XML)
  29717. @throws IOException Indicates error in serialization]]>
  29718. </doc>
  29719. </method>
  29720. <method name="writeInt"
  29721. abstract="false" native="false" synchronized="false"
  29722. static="false" final="false" visibility="public"
  29723. deprecated="not deprecated">
  29724. <param name="i" type="int"/>
  29725. <param name="tag" type="java.lang.String"/>
  29726. <exception name="IOException" type="java.io.IOException"/>
  29727. <doc>
  29728. <![CDATA[Write an integer to serialized record.
  29729. @param i Integer to be serialized
  29730. @param tag Used by tagged serialization formats (such as XML)
  29731. @throws IOException Indicates error in serialization]]>
  29732. </doc>
  29733. </method>
  29734. <method name="writeLong"
  29735. abstract="false" native="false" synchronized="false"
  29736. static="false" final="false" visibility="public"
  29737. deprecated="not deprecated">
  29738. <param name="l" type="long"/>
  29739. <param name="tag" type="java.lang.String"/>
  29740. <exception name="IOException" type="java.io.IOException"/>
  29741. <doc>
  29742. <![CDATA[Write a long integer to serialized record.
  29743. @param l Long to be serialized
  29744. @param tag Used by tagged serialization formats (such as XML)
  29745. @throws IOException Indicates error in serialization]]>
  29746. </doc>
  29747. </method>
  29748. <method name="writeFloat"
  29749. abstract="false" native="false" synchronized="false"
  29750. static="false" final="false" visibility="public"
  29751. deprecated="not deprecated">
  29752. <param name="f" type="float"/>
  29753. <param name="tag" type="java.lang.String"/>
  29754. <exception name="IOException" type="java.io.IOException"/>
  29755. <doc>
  29756. <![CDATA[Write a single-precision float to serialized record.
  29757. @param f Float to be serialized
  29758. @param tag Used by tagged serialization formats (such as XML)
  29759. @throws IOException Indicates error in serialization]]>
  29760. </doc>
  29761. </method>
  29762. <method name="writeDouble"
  29763. abstract="false" native="false" synchronized="false"
  29764. static="false" final="false" visibility="public"
  29765. deprecated="not deprecated">
  29766. <param name="d" type="double"/>
  29767. <param name="tag" type="java.lang.String"/>
  29768. <exception name="IOException" type="java.io.IOException"/>
  29769. <doc>
  29770. <![CDATA[Write a double precision floating point number to serialized record.
  29771. @param d Double to be serialized
  29772. @param tag Used by tagged serialization formats (such as XML)
  29773. @throws IOException Indicates error in serialization]]>
  29774. </doc>
  29775. </method>
  29776. <method name="writeString"
  29777. abstract="false" native="false" synchronized="false"
  29778. static="false" final="false" visibility="public"
  29779. deprecated="not deprecated">
  29780. <param name="s" type="java.lang.String"/>
  29781. <param name="tag" type="java.lang.String"/>
  29782. <exception name="IOException" type="java.io.IOException"/>
  29783. <doc>
  29784. <![CDATA[Write a unicode string to serialized record.
  29785. @param s String to be serialized
  29786. @param tag Used by tagged serialization formats (such as XML)
  29787. @throws IOException Indicates error in serialization]]>
  29788. </doc>
  29789. </method>
  29790. <method name="writeBuffer"
  29791. abstract="false" native="false" synchronized="false"
  29792. static="false" final="false" visibility="public"
  29793. deprecated="not deprecated">
  29794. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  29795. <param name="tag" type="java.lang.String"/>
  29796. <exception name="IOException" type="java.io.IOException"/>
  29797. <doc>
  29798. <![CDATA[Write a buffer to serialized record.
  29799. @param buf Buffer to be serialized
  29800. @param tag Used by tagged serialization formats (such as XML)
  29801. @throws IOException Indicates error in serialization]]>
  29802. </doc>
  29803. </method>
  29804. <method name="startRecord"
  29805. abstract="false" native="false" synchronized="false"
  29806. static="false" final="false" visibility="public"
  29807. deprecated="not deprecated">
  29808. <param name="r" type="org.apache.hadoop.record.Record"/>
  29809. <param name="tag" type="java.lang.String"/>
  29810. <exception name="IOException" type="java.io.IOException"/>
  29811. <doc>
  29812. <![CDATA[Mark the start of a record to be serialized.
  29813. @param r Record to be serialized
  29814. @param tag Used by tagged serialization formats (such as XML)
  29815. @throws IOException Indicates error in serialization]]>
  29816. </doc>
  29817. </method>
  29818. <method name="endRecord"
  29819. abstract="false" native="false" synchronized="false"
  29820. static="false" final="false" visibility="public"
  29821. deprecated="not deprecated">
  29822. <param name="r" type="org.apache.hadoop.record.Record"/>
  29823. <param name="tag" type="java.lang.String"/>
  29824. <exception name="IOException" type="java.io.IOException"/>
  29825. <doc>
  29826. <![CDATA[Mark the end of a serialized record.
  29827. @param r Record to be serialized
  29828. @param tag Used by tagged serialization formats (such as XML)
  29829. @throws IOException Indicates error in serialization]]>
  29830. </doc>
  29831. </method>
  29832. <method name="startVector"
  29833. abstract="false" native="false" synchronized="false"
  29834. static="false" final="false" visibility="public"
  29835. deprecated="not deprecated">
  29836. <param name="v" type="java.util.ArrayList"/>
  29837. <param name="tag" type="java.lang.String"/>
  29838. <exception name="IOException" type="java.io.IOException"/>
  29839. <doc>
  29840. <![CDATA[Mark the start of a vector to be serialized.
  29841. @param v Vector to be serialized
  29842. @param tag Used by tagged serialization formats (such as XML)
  29843. @throws IOException Indicates error in serialization]]>
  29844. </doc>
  29845. </method>
  29846. <method name="endVector"
  29847. abstract="false" native="false" synchronized="false"
  29848. static="false" final="false" visibility="public"
  29849. deprecated="not deprecated">
  29850. <param name="v" type="java.util.ArrayList"/>
  29851. <param name="tag" type="java.lang.String"/>
  29852. <exception name="IOException" type="java.io.IOException"/>
  29853. <doc>
  29854. <![CDATA[Mark the end of a serialized vector.
  29855. @param v Vector to be serialized
  29856. @param tag Used by tagged serialization formats (such as XML)
  29857. @throws IOException Indicates error in serialization]]>
  29858. </doc>
  29859. </method>
  29860. <method name="startMap"
  29861. abstract="false" native="false" synchronized="false"
  29862. static="false" final="false" visibility="public"
  29863. deprecated="not deprecated">
  29864. <param name="m" type="java.util.TreeMap"/>
  29865. <param name="tag" type="java.lang.String"/>
  29866. <exception name="IOException" type="java.io.IOException"/>
  29867. <doc>
  29868. <![CDATA[Mark the start of a map to be serialized.
  29869. @param m Map to be serialized
  29870. @param tag Used by tagged serialization formats (such as XML)
  29871. @throws IOException Indicates error in serialization]]>
  29872. </doc>
  29873. </method>
  29874. <method name="endMap"
  29875. abstract="false" native="false" synchronized="false"
  29876. static="false" final="false" visibility="public"
  29877. deprecated="not deprecated">
  29878. <param name="m" type="java.util.TreeMap"/>
  29879. <param name="tag" type="java.lang.String"/>
  29880. <exception name="IOException" type="java.io.IOException"/>
  29881. <doc>
  29882. <![CDATA[Mark the end of a serialized map.
  29883. @param m Map to be serialized
  29884. @param tag Used by tagged serialization formats (such as XML)
  29885. @throws IOException Indicates error in serialization]]>
  29886. </doc>
  29887. </method>
  29888. <doc>
  29889. <![CDATA[Interface that all the serializers have to implement.
  29890. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29891. </doc>
  29892. </interface>
  29893. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  29894. <!-- start class org.apache.hadoop.record.Utils -->
  29895. <class name="Utils" extends="java.lang.Object"
  29896. abstract="false"
  29897. static="false" final="false" visibility="public"
  29898. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  29899. <method name="readFloat" return="float"
  29900. abstract="false" native="false" synchronized="false"
  29901. static="true" final="false" visibility="public"
  29902. deprecated="not deprecated">
  29903. <param name="bytes" type="byte[]"/>
  29904. <param name="start" type="int"/>
  29905. <doc>
  29906. <![CDATA[Parse a float from a byte array.]]>
  29907. </doc>
  29908. </method>
  29909. <method name="readDouble" return="double"
  29910. abstract="false" native="false" synchronized="false"
  29911. static="true" final="false" visibility="public"
  29912. deprecated="not deprecated">
  29913. <param name="bytes" type="byte[]"/>
  29914. <param name="start" type="int"/>
  29915. <doc>
  29916. <![CDATA[Parse a double from a byte array.]]>
  29917. </doc>
  29918. </method>
  29919. <method name="readVLong" return="long"
  29920. abstract="false" native="false" synchronized="false"
  29921. static="true" final="false" visibility="public"
  29922. deprecated="not deprecated">
  29923. <param name="bytes" type="byte[]"/>
  29924. <param name="start" type="int"/>
  29925. <exception name="IOException" type="java.io.IOException"/>
  29926. <doc>
  29927. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  29928. @param bytes byte array with decode long
  29929. @param start starting index
  29930. @throws java.io.IOException
  29931. @return deserialized long]]>
  29932. </doc>
  29933. </method>
  29934. <method name="readVInt" return="int"
  29935. abstract="false" native="false" synchronized="false"
  29936. static="true" final="false" visibility="public"
  29937. deprecated="not deprecated">
  29938. <param name="bytes" type="byte[]"/>
  29939. <param name="start" type="int"/>
  29940. <exception name="IOException" type="java.io.IOException"/>
  29941. <doc>
  29942. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  29943. @param bytes byte array with the encoded integer
  29944. @param start start index
  29945. @throws java.io.IOException
  29946. @return deserialized integer]]>
  29947. </doc>
  29948. </method>
  29949. <method name="readVLong" return="long"
  29950. abstract="false" native="false" synchronized="false"
  29951. static="true" final="false" visibility="public"
  29952. deprecated="not deprecated">
  29953. <param name="in" type="java.io.DataInput"/>
  29954. <exception name="IOException" type="java.io.IOException"/>
  29955. <doc>
  29956. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  29957. @param in input stream
  29958. @throws java.io.IOException
  29959. @return deserialized long]]>
  29960. </doc>
  29961. </method>
  29962. <method name="readVInt" return="int"
  29963. abstract="false" native="false" synchronized="false"
  29964. static="true" final="false" visibility="public"
  29965. deprecated="not deprecated">
  29966. <param name="in" type="java.io.DataInput"/>
  29967. <exception name="IOException" type="java.io.IOException"/>
  29968. <doc>
  29969. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  29970. @param in input stream
  29971. @throws java.io.IOException
  29972. @return deserialized integer]]>
  29973. </doc>
  29974. </method>
  29975. <method name="getVIntSize" return="int"
  29976. abstract="false" native="false" synchronized="false"
  29977. static="true" final="false" visibility="public"
  29978. deprecated="not deprecated">
  29979. <param name="i" type="long"/>
  29980. <doc>
  29981. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  29982. @return the encoded length]]>
  29983. </doc>
  29984. </method>
  29985. <method name="writeVLong"
  29986. abstract="false" native="false" synchronized="false"
  29987. static="true" final="false" visibility="public"
  29988. deprecated="not deprecated">
  29989. <param name="stream" type="java.io.DataOutput"/>
  29990. <param name="i" type="long"/>
  29991. <exception name="IOException" type="java.io.IOException"/>
  29992. <doc>
  29993. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  29994. For {@literal -112 <= i <= 127}, only one byte is used with the actual
  29995. value. For other values of i, the first byte value indicates whether the
  29996. long is positive or negative, and the number of bytes that follow.
  29997. If the first byte value v is between -113 and -120, the following long
  29998. is positive, with number of bytes that follow are -(v+112).
  29999. If the first byte value v is between -121 and -128, the following long
  30000. is negative, with number of bytes that follow are -(v+120). Bytes are
  30001. stored in the high-non-zero-byte-first order.
  30002. @param stream Binary output stream
  30003. @param i Long to be serialized
  30004. @throws java.io.IOException]]>
  30005. </doc>
  30006. </method>
  30007. <method name="writeVInt"
  30008. abstract="false" native="false" synchronized="false"
  30009. static="true" final="false" visibility="public"
  30010. deprecated="not deprecated">
  30011. <param name="stream" type="java.io.DataOutput"/>
  30012. <param name="i" type="int"/>
  30013. <exception name="IOException" type="java.io.IOException"/>
  30014. <doc>
  30015. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  30016. @param stream Binary output stream
  30017. @param i int to be serialized
  30018. @throws java.io.IOException]]>
  30019. </doc>
  30020. </method>
  30021. <method name="compareBytes" return="int"
  30022. abstract="false" native="false" synchronized="false"
  30023. static="true" final="false" visibility="public"
  30024. deprecated="not deprecated">
  30025. <param name="b1" type="byte[]"/>
  30026. <param name="s1" type="int"/>
  30027. <param name="l1" type="int"/>
  30028. <param name="b2" type="byte[]"/>
  30029. <param name="s2" type="int"/>
  30030. <param name="l2" type="int"/>
  30031. <doc>
  30032. <![CDATA[Lexicographic order of binary data.]]>
  30033. </doc>
  30034. </method>
  30035. <field name="hexchars" type="char[]"
  30036. transient="false" volatile="false"
  30037. static="true" final="true" visibility="public"
  30038. deprecated="not deprecated">
  30039. </field>
  30040. <doc>
  30041. <![CDATA[Various utility functions for Hadoop record I/O runtime.
  30042. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  30043. </doc>
  30044. </class>
  30045. <!-- end class org.apache.hadoop.record.Utils -->
  30046. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  30047. <class name="XmlRecordInput" extends="java.lang.Object"
  30048. abstract="false"
  30049. static="false" final="false" visibility="public"
  30050. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30051. <implements name="org.apache.hadoop.record.RecordInput"/>
  30052. <constructor name="XmlRecordInput" type="java.io.InputStream"
  30053. static="false" final="false" visibility="public"
  30054. deprecated="not deprecated">
  30055. <doc>
  30056. <![CDATA[Creates a new instance of XmlRecordInput]]>
  30057. </doc>
  30058. </constructor>
  30059. <method name="readByte" return="byte"
  30060. abstract="false" native="false" synchronized="false"
  30061. static="false" final="false" visibility="public"
  30062. deprecated="not deprecated">
  30063. <param name="tag" type="java.lang.String"/>
  30064. <exception name="IOException" type="java.io.IOException"/>
  30065. </method>
  30066. <method name="readBool" return="boolean"
  30067. abstract="false" native="false" synchronized="false"
  30068. static="false" final="false" visibility="public"
  30069. deprecated="not deprecated">
  30070. <param name="tag" type="java.lang.String"/>
  30071. <exception name="IOException" type="java.io.IOException"/>
  30072. </method>
  30073. <method name="readInt" return="int"
  30074. abstract="false" native="false" synchronized="false"
  30075. static="false" final="false" visibility="public"
  30076. deprecated="not deprecated">
  30077. <param name="tag" type="java.lang.String"/>
  30078. <exception name="IOException" type="java.io.IOException"/>
  30079. </method>
  30080. <method name="readLong" return="long"
  30081. abstract="false" native="false" synchronized="false"
  30082. static="false" final="false" visibility="public"
  30083. deprecated="not deprecated">
  30084. <param name="tag" type="java.lang.String"/>
  30085. <exception name="IOException" type="java.io.IOException"/>
  30086. </method>
  30087. <method name="readFloat" return="float"
  30088. abstract="false" native="false" synchronized="false"
  30089. static="false" final="false" visibility="public"
  30090. deprecated="not deprecated">
  30091. <param name="tag" type="java.lang.String"/>
  30092. <exception name="IOException" type="java.io.IOException"/>
  30093. </method>
  30094. <method name="readDouble" return="double"
  30095. abstract="false" native="false" synchronized="false"
  30096. static="false" final="false" visibility="public"
  30097. deprecated="not deprecated">
  30098. <param name="tag" type="java.lang.String"/>
  30099. <exception name="IOException" type="java.io.IOException"/>
  30100. </method>
  30101. <method name="readString" return="java.lang.String"
  30102. abstract="false" native="false" synchronized="false"
  30103. static="false" final="false" visibility="public"
  30104. deprecated="not deprecated">
  30105. <param name="tag" type="java.lang.String"/>
  30106. <exception name="IOException" type="java.io.IOException"/>
  30107. </method>
  30108. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30109. abstract="false" native="false" synchronized="false"
  30110. static="false" final="false" visibility="public"
  30111. deprecated="not deprecated">
  30112. <param name="tag" type="java.lang.String"/>
  30113. <exception name="IOException" type="java.io.IOException"/>
  30114. </method>
  30115. <method name="startRecord"
  30116. abstract="false" native="false" synchronized="false"
  30117. static="false" final="false" visibility="public"
  30118. deprecated="not deprecated">
  30119. <param name="tag" type="java.lang.String"/>
  30120. <exception name="IOException" type="java.io.IOException"/>
  30121. </method>
  30122. <method name="endRecord"
  30123. abstract="false" native="false" synchronized="false"
  30124. static="false" final="false" visibility="public"
  30125. deprecated="not deprecated">
  30126. <param name="tag" type="java.lang.String"/>
  30127. <exception name="IOException" type="java.io.IOException"/>
  30128. </method>
  30129. <method name="startVector" return="org.apache.hadoop.record.Index"
  30130. abstract="false" native="false" synchronized="false"
  30131. static="false" final="false" visibility="public"
  30132. deprecated="not deprecated">
  30133. <param name="tag" type="java.lang.String"/>
  30134. <exception name="IOException" type="java.io.IOException"/>
  30135. </method>
  30136. <method name="endVector"
  30137. abstract="false" native="false" synchronized="false"
  30138. static="false" final="false" visibility="public"
  30139. deprecated="not deprecated">
  30140. <param name="tag" type="java.lang.String"/>
  30141. <exception name="IOException" type="java.io.IOException"/>
  30142. </method>
  30143. <method name="startMap" return="org.apache.hadoop.record.Index"
  30144. abstract="false" native="false" synchronized="false"
  30145. static="false" final="false" visibility="public"
  30146. deprecated="not deprecated">
  30147. <param name="tag" type="java.lang.String"/>
  30148. <exception name="IOException" type="java.io.IOException"/>
  30149. </method>
  30150. <method name="endMap"
  30151. abstract="false" native="false" synchronized="false"
  30152. static="false" final="false" visibility="public"
  30153. deprecated="not deprecated">
  30154. <param name="tag" type="java.lang.String"/>
  30155. <exception name="IOException" type="java.io.IOException"/>
  30156. </method>
  30157. <doc>
  30158. <![CDATA[XML Deserializer.
  30159. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30160. </doc>
  30161. </class>
  30162. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  30163. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  30164. <class name="XmlRecordOutput" extends="java.lang.Object"
  30165. abstract="false"
  30166. static="false" final="false" visibility="public"
  30167. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30168. <implements name="org.apache.hadoop.record.RecordOutput"/>
  30169. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  30170. static="false" final="false" visibility="public"
  30171. deprecated="not deprecated">
  30172. <doc>
  30173. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  30174. </doc>
  30175. </constructor>
  30176. <method name="writeByte"
  30177. abstract="false" native="false" synchronized="false"
  30178. static="false" final="false" visibility="public"
  30179. deprecated="not deprecated">
  30180. <param name="b" type="byte"/>
  30181. <param name="tag" type="java.lang.String"/>
  30182. <exception name="IOException" type="java.io.IOException"/>
  30183. </method>
  30184. <method name="writeBool"
  30185. abstract="false" native="false" synchronized="false"
  30186. static="false" final="false" visibility="public"
  30187. deprecated="not deprecated">
  30188. <param name="b" type="boolean"/>
  30189. <param name="tag" type="java.lang.String"/>
  30190. <exception name="IOException" type="java.io.IOException"/>
  30191. </method>
  30192. <method name="writeInt"
  30193. abstract="false" native="false" synchronized="false"
  30194. static="false" final="false" visibility="public"
  30195. deprecated="not deprecated">
  30196. <param name="i" type="int"/>
  30197. <param name="tag" type="java.lang.String"/>
  30198. <exception name="IOException" type="java.io.IOException"/>
  30199. </method>
  30200. <method name="writeLong"
  30201. abstract="false" native="false" synchronized="false"
  30202. static="false" final="false" visibility="public"
  30203. deprecated="not deprecated">
  30204. <param name="l" type="long"/>
  30205. <param name="tag" type="java.lang.String"/>
  30206. <exception name="IOException" type="java.io.IOException"/>
  30207. </method>
  30208. <method name="writeFloat"
  30209. abstract="false" native="false" synchronized="false"
  30210. static="false" final="false" visibility="public"
  30211. deprecated="not deprecated">
  30212. <param name="f" type="float"/>
  30213. <param name="tag" type="java.lang.String"/>
  30214. <exception name="IOException" type="java.io.IOException"/>
  30215. </method>
  30216. <method name="writeDouble"
  30217. abstract="false" native="false" synchronized="false"
  30218. static="false" final="false" visibility="public"
  30219. deprecated="not deprecated">
  30220. <param name="d" type="double"/>
  30221. <param name="tag" type="java.lang.String"/>
  30222. <exception name="IOException" type="java.io.IOException"/>
  30223. </method>
  30224. <method name="writeString"
  30225. abstract="false" native="false" synchronized="false"
  30226. static="false" final="false" visibility="public"
  30227. deprecated="not deprecated">
  30228. <param name="s" type="java.lang.String"/>
  30229. <param name="tag" type="java.lang.String"/>
  30230. <exception name="IOException" type="java.io.IOException"/>
  30231. </method>
  30232. <method name="writeBuffer"
  30233. abstract="false" native="false" synchronized="false"
  30234. static="false" final="false" visibility="public"
  30235. deprecated="not deprecated">
  30236. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30237. <param name="tag" type="java.lang.String"/>
  30238. <exception name="IOException" type="java.io.IOException"/>
  30239. </method>
  30240. <method name="startRecord"
  30241. abstract="false" native="false" synchronized="false"
  30242. static="false" final="false" visibility="public"
  30243. deprecated="not deprecated">
  30244. <param name="r" type="org.apache.hadoop.record.Record"/>
  30245. <param name="tag" type="java.lang.String"/>
  30246. <exception name="IOException" type="java.io.IOException"/>
  30247. </method>
  30248. <method name="endRecord"
  30249. abstract="false" native="false" synchronized="false"
  30250. static="false" final="false" visibility="public"
  30251. deprecated="not deprecated">
  30252. <param name="r" type="org.apache.hadoop.record.Record"/>
  30253. <param name="tag" type="java.lang.String"/>
  30254. <exception name="IOException" type="java.io.IOException"/>
  30255. </method>
  30256. <method name="startVector"
  30257. abstract="false" native="false" synchronized="false"
  30258. static="false" final="false" visibility="public"
  30259. deprecated="not deprecated">
  30260. <param name="v" type="java.util.ArrayList"/>
  30261. <param name="tag" type="java.lang.String"/>
  30262. <exception name="IOException" type="java.io.IOException"/>
  30263. </method>
  30264. <method name="endVector"
  30265. abstract="false" native="false" synchronized="false"
  30266. static="false" final="false" visibility="public"
  30267. deprecated="not deprecated">
  30268. <param name="v" type="java.util.ArrayList"/>
  30269. <param name="tag" type="java.lang.String"/>
  30270. <exception name="IOException" type="java.io.IOException"/>
  30271. </method>
  30272. <method name="startMap"
  30273. abstract="false" native="false" synchronized="false"
  30274. static="false" final="false" visibility="public"
  30275. deprecated="not deprecated">
  30276. <param name="v" type="java.util.TreeMap"/>
  30277. <param name="tag" type="java.lang.String"/>
  30278. <exception name="IOException" type="java.io.IOException"/>
  30279. </method>
  30280. <method name="endMap"
  30281. abstract="false" native="false" synchronized="false"
  30282. static="false" final="false" visibility="public"
  30283. deprecated="not deprecated">
  30284. <param name="v" type="java.util.TreeMap"/>
  30285. <param name="tag" type="java.lang.String"/>
  30286. <exception name="IOException" type="java.io.IOException"/>
  30287. </method>
  30288. <doc>
  30289. <![CDATA[XML Serializer.
  30290. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30291. </doc>
  30292. </class>
  30293. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  30294. <doc>
  30295. <![CDATA[<p>
  30296. (DEPRECATED) Hadoop record I/O contains classes and a record description language
  30297. translator for simplifying serialization and deserialization of records in a
  30298. language-neutral manner.
  30299. </p>
  30300. <p>
  30301. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  30302. </p>
  30303. <h2>Introduction</h2>
  30304. Software systems of any significant complexity require mechanisms for data
  30305. interchange with the outside world. These interchanges typically involve the
  30306. marshaling and unmarshaling of logical units of data to and from data streams
  30307. (files, network connections, memory buffers etc.). Applications usually have
  30308. some code for serializing and deserializing the data types that they manipulate
  30309. embedded in them. The work of serialization has several features that make
  30310. automatic code generation for it worthwhile. Given a particular output encoding
  30311. (binary, XML, etc.), serialization of primitive types and simple compositions
  30312. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  30313. written serialization code can be susceptible to bugs especially when records
  30314. have a large number of fields or a record definition changes between software
  30315. versions. Lastly, it can be very useful for applications written in different
  30316. programming languages to be able to share and interchange data. This can be
  30317. made a lot easier by describing the data records manipulated by these
  30318. applications in a language agnostic manner and using the descriptions to derive
  30319. implementations of serialization in multiple target languages.
  30320. This document describes Hadoop Record I/O, a mechanism that is aimed
  30321. at
  30322. <ul>
  30323. <li> enabling the specification of simple serializable data types (records)
  30324. <li> enabling the generation of code in multiple target languages for
  30325. marshaling and unmarshaling such types
  30326. <li> providing target language specific support that will enable application
  30327. programmers to incorporate generated code into their applications
  30328. </ul>
  30329. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  30330. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  30331. the specification of most record types, they differ widely in what else they
  30332. focus on. The focus in Hadoop Record I/O is on data marshaling and
  30333. multi-lingual support. We take a translator-based approach to serialization.
  30334. Hadoop users have to describe their data in a simple data description
  30335. language. The Hadoop DDL translator rcc generates code that users
  30336. can invoke in order to read/write their data from/to simple stream
  30337. abstractions. Next we list explicitly some of the goals and non-goals of
  30338. Hadoop Record I/O.
  30339. <h3>Goals</h3>
  30340. <ul>
  30341. <li> Support for commonly used primitive types. Hadoop should include as
  30342. primitives commonly used builtin types from programming languages we intend to
  30343. support.
  30344. <li> Support for common data compositions (including recursive compositions).
  30345. Hadoop should support widely used composite types such as structs and
  30346. vectors.
  30347. <li> Code generation in multiple target languages. Hadoop should be capable of
  30348. generating serialization code in multiple target languages and should be
  30349. easily extensible to new target languages. The initial target languages are
  30350. C++ and Java.
  30351. <li> Support for generated target languages. Hadooop should include support
  30352. in the form of headers, libraries, packages for supported target languages
  30353. that enable easy inclusion and use of generated code in applications.
  30354. <li> Support for multiple output encodings. Candidates include
  30355. packed binary, comma-separated text, XML etc.
  30356. <li> Support for specifying record types in a backwards/forwards compatible
  30357. manner. This will probably be in the form of support for optional fields in
  30358. records. This version of the document does not include a description of the
  30359. planned mechanism, we intend to include it in the next iteration.
  30360. </ul>
  30361. <h3>Non-Goals</h3>
  30362. <ul>
  30363. <li> Serializing existing arbitrary C++ classes.
  30364. <li> Serializing complex data structures such as trees, linked lists etc.
  30365. <li> Built-in indexing schemes, compression, or check-sums.
  30366. <li> Dynamic construction of objects from an XML schema.
  30367. </ul>
  30368. The remainder of this document describes the features of Hadoop record I/O
  30369. in more detail. Section 2 describes the data types supported by the system.
  30370. Section 3 lays out the DDL syntax with some examples of simple records.
  30371. Section 4 describes the process of code generation with rcc. Section 5
  30372. describes target language mappings and support for Hadoop types. We include a
  30373. fairly complete description of C++ mappings with intent to include Java and
  30374. others in upcoming iterations of this document. The last section talks about
  30375. supported output encodings.
  30376. <h2>Data Types and Streams</h2>
  30377. This section describes the primitive and composite types supported by Hadoop.
  30378. We aim to support a set of types that can be used to simply and efficiently
  30379. express a wide range of record types in different programming languages.
  30380. <h3>Primitive Types</h3>
  30381. For the most part, the primitive types of Hadoop map directly to primitive
  30382. types in high level programming languages. Special cases are the
  30383. ustring (a Unicode string) and buffer types, which we believe
  30384. find wide use and which are usually implemented in library code and not
  30385. available as language built-ins. Hadoop also supplies these via library code
  30386. when a target language built-in is not present and there is no widely
  30387. adopted "standard" implementation. The complete list of primitive types is:
  30388. <ul>
  30389. <li> byte: An 8-bit unsigned integer.
  30390. <li> boolean: A boolean value.
  30391. <li> int: A 32-bit signed integer.
  30392. <li> long: A 64-bit signed integer.
  30393. <li> float: A single precision floating point number as described by
  30394. IEEE-754.
  30395. <li> double: A double precision floating point number as described by
  30396. IEEE-754.
  30397. <li> ustring: A string consisting of Unicode characters.
  30398. <li> buffer: An arbitrary sequence of bytes.
  30399. </ul>
  30400. <h3>Composite Types</h3>
  30401. Hadoop supports a small set of composite types that enable the description
  30402. of simple aggregate types and containers. A composite type is serialized
  30403. by sequentially serializing it constituent elements. The supported
  30404. composite types are:
  30405. <ul>
  30406. <li> record: An aggregate type like a C-struct. This is a list of
  30407. typed fields that are together considered a single unit of data. A record
  30408. is serialized by sequentially serializing its constituent fields. In addition
  30409. to serialization a record has comparison operations (equality and less-than)
  30410. implemented for it, these are defined as memberwise comparisons.
  30411. <li>vector: A sequence of entries of the same data type, primitive
  30412. or composite.
  30413. <li> map: An associative container mapping instances of a key type to
  30414. instances of a value type. The key and value types may themselves be primitive
  30415. or composite types.
  30416. </ul>
  30417. <h3>Streams</h3>
  30418. Hadoop generates code for serializing and deserializing record types to
  30419. abstract streams. For each target language Hadoop defines very simple input
  30420. and output stream interfaces. Application writers can usually develop
  30421. concrete implementations of these by putting a one method wrapper around
  30422. an existing stream implementation.
  30423. <h2>DDL Syntax and Examples</h2>
  30424. We now describe the syntax of the Hadoop data description language. This is
  30425. followed by a few examples of DDL usage.
  30426. <h3>Hadoop DDL Syntax</h3>
  30427. <pre><code>
  30428. recfile = *include module *record
  30429. include = "include" path
  30430. path = (relative-path / absolute-path)
  30431. module = "module" module-name
  30432. module-name = name *("." name)
  30433. record := "class" name "{" 1*(field) "}"
  30434. field := type name ";"
  30435. name := ALPHA (ALPHA / DIGIT / "_" )*
  30436. type := (ptype / ctype)
  30437. ptype := ("byte" / "boolean" / "int" |
  30438. "long" / "float" / "double"
  30439. "ustring" / "buffer")
  30440. ctype := (("vector" "<" type ">") /
  30441. ("map" "<" type "," type ">" ) ) / name)
  30442. </code></pre>
  30443. A DDL file describes one or more record types. It begins with zero or
  30444. more include declarations, a single mandatory module declaration
  30445. followed by zero or more class declarations. The semantics of each of
  30446. these declarations are described below:
  30447. <ul>
  30448. <li>include: An include declaration specifies a DDL file to be
  30449. referenced when generating code for types in the current DDL file. Record types
  30450. in the current compilation unit may refer to types in all included files.
  30451. File inclusion is recursive. An include does not trigger code
  30452. generation for the referenced file.
  30453. <li> module: Every Hadoop DDL file must have a single module
  30454. declaration that follows the list of includes and precedes all record
  30455. declarations. A module declaration identifies a scope within which
  30456. the names of all types in the current file are visible. Module names are
  30457. mapped to C++ namespaces, Java packages etc. in generated code.
  30458. <li> class: Records types are specified through class
  30459. declarations. A class declaration is like a Java class declaration.
  30460. It specifies a named record type and a list of fields that constitute records
  30461. of the type. Usage is illustrated in the following examples.
  30462. </ul>
  30463. <h3>Examples</h3>
  30464. <ul>
  30465. <li>A simple DDL file links.jr with just one record declaration.
  30466. <pre><code>
  30467. module links {
  30468. class Link {
  30469. ustring URL;
  30470. boolean isRelative;
  30471. ustring anchorText;
  30472. };
  30473. }
  30474. </code></pre>
  30475. <li> A DDL file outlinks.jr which includes another
  30476. <pre><code>
  30477. include "links.jr"
  30478. module outlinks {
  30479. class OutLinks {
  30480. ustring baseURL;
  30481. vector<links.Link> outLinks;
  30482. };
  30483. }
  30484. </code></pre>
  30485. </ul>
  30486. <h2>Code Generation</h2>
  30487. The Hadoop translator is written in Java. Invocation is done by executing a
  30488. wrapper shell script named named rcc. It takes a list of
  30489. record description files as a mandatory argument and an
  30490. optional language argument (the default is Java) --language or
  30491. -l. Thus a typical invocation would look like:
  30492. <pre><code>
  30493. $ rcc -l C++ <filename> ...
  30494. </code></pre>
  30495. <h2>Target Language Mappings and Support</h2>
  30496. For all target languages, the unit of code generation is a record type.
  30497. For each record type, Hadoop generates code for serialization and
  30498. deserialization, record comparison and access to record members.
  30499. <h3>C++</h3>
  30500. Support for including Hadoop generated C++ code in applications comes in the
  30501. form of a header file recordio.hh which needs to be included in source
  30502. that uses Hadoop types and a library librecordio.a which applications need
  30503. to be linked with. The header declares the Hadoop C++ namespace which defines
  30504. appropriate types for the various primitives, the basic interfaces for
  30505. records and streams and enumerates the supported serialization encodings.
  30506. Declarations of these interfaces and a description of their semantics follow:
  30507. <pre><code>
  30508. namespace hadoop {
  30509. enum RecFormat { kBinary, kXML, kCSV };
  30510. class InStream {
  30511. public:
  30512. virtual ssize_t read(void *buf, size_t n) = 0;
  30513. };
  30514. class OutStream {
  30515. public:
  30516. virtual ssize_t write(const void *buf, size_t n) = 0;
  30517. };
  30518. class IOError : public runtime_error {
  30519. public:
  30520. explicit IOError(const std::string& msg);
  30521. };
  30522. class IArchive;
  30523. class OArchive;
  30524. class RecordReader {
  30525. public:
  30526. RecordReader(InStream& in, RecFormat fmt);
  30527. virtual ~RecordReader(void);
  30528. virtual void read(Record& rec);
  30529. };
  30530. class RecordWriter {
  30531. public:
  30532. RecordWriter(OutStream& out, RecFormat fmt);
  30533. virtual ~RecordWriter(void);
  30534. virtual void write(Record& rec);
  30535. };
  30536. class Record {
  30537. public:
  30538. virtual std::string type(void) const = 0;
  30539. virtual std::string signature(void) const = 0;
  30540. protected:
  30541. virtual bool validate(void) const = 0;
  30542. virtual void
  30543. serialize(OArchive& oa, const std::string& tag) const = 0;
  30544. virtual void
  30545. deserialize(IArchive& ia, const std::string& tag) = 0;
  30546. };
  30547. }
  30548. </code></pre>
  30549. <ul>
  30550. <li> RecFormat: An enumeration of the serialization encodings supported
  30551. by this implementation of Hadoop.
  30552. <li> InStream: A simple abstraction for an input stream. This has a
  30553. single public read method that reads n bytes from the stream into
  30554. the buffer buf. Has the same semantics as a blocking read system
  30555. call. Returns the number of bytes read or -1 if an error occurs.
  30556. <li> OutStream: A simple abstraction for an output stream. This has a
  30557. single write method that writes n bytes to the stream from the
  30558. buffer buf. Has the same semantics as a blocking write system
  30559. call. Returns the number of bytes written or -1 if an error occurs.
  30560. <li> RecordReader: A RecordReader reads records one at a time from
  30561. an underlying stream in a specified record format. The reader is instantiated
  30562. with a stream and a serialization format. It has a read method that
  30563. takes an instance of a record and deserializes the record from the stream.
  30564. <li> RecordWriter: A RecordWriter writes records one at a
  30565. time to an underlying stream in a specified record format. The writer is
  30566. instantiated with a stream and a serialization format. It has a
  30567. write method that takes an instance of a record and serializes the
  30568. record to the stream.
  30569. <li> Record: The base class for all generated record types. This has two
  30570. public methods type and signature that return the typename and the
  30571. type signature of the record.
  30572. </ul>
  30573. Two files are generated for each record file (note: not for each record). If a
  30574. record file is named "name.jr", the generated files are
  30575. "name.jr.cc" and "name.jr.hh" containing serialization
  30576. implementations and record type declarations respectively.
  30577. For each record in the DDL file, the generated header file will contain a
  30578. class definition corresponding to the record type, method definitions for the
  30579. generated type will be present in the '.cc' file. The generated class will
  30580. inherit from the abstract class hadoop::Record. The DDL files
  30581. module declaration determines the namespace the record belongs to.
  30582. Each '.' delimited token in the module declaration results in the
  30583. creation of a namespace. For instance, the declaration module docs.links
  30584. results in the creation of a docs namespace and a nested
  30585. docs::links namespace. In the preceding examples, the Link class
  30586. is placed in the links namespace. The header file corresponding to
  30587. the links.jr file will contain:
  30588. <pre><code>
  30589. namespace links {
  30590. class Link : public hadoop::Record {
  30591. // ....
  30592. };
  30593. };
  30594. </code></pre>
  30595. Each field within the record will cause the generation of a private member
  30596. declaration of the appropriate type in the class declaration, and one or more
  30597. acccessor methods. The generated class will implement the serialize and
  30598. deserialize methods defined in hadoop::Record+. It will also
  30599. implement the inspection methods type and signature from
  30600. hadoop::Record. A default constructor and virtual destructor will also
  30601. be generated. Serialization code will read/write records into streams that
  30602. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  30603. For each member of a record an accessor method is generated that returns
  30604. either the member or a reference to the member. For members that are returned
  30605. by value, a setter method is also generated. This is true for primitive
  30606. data members of the types byte, int, long, boolean, float and
  30607. double. For example, for a int field called MyField the folowing
  30608. code is generated.
  30609. <pre><code>
  30610. ...
  30611. private:
  30612. int32_t mMyField;
  30613. ...
  30614. public:
  30615. int32_t getMyField(void) const {
  30616. return mMyField;
  30617. };
  30618. void setMyField(int32_t m) {
  30619. mMyField = m;
  30620. };
  30621. ...
  30622. </code></pre>
  30623. For a ustring or buffer or composite field. The generated code
  30624. only contains accessors that return a reference to the field. A const
  30625. and a non-const accessor are generated. For example:
  30626. <pre><code>
  30627. ...
  30628. private:
  30629. std::string mMyBuf;
  30630. ...
  30631. public:
  30632. std::string& getMyBuf() {
  30633. return mMyBuf;
  30634. };
  30635. const std::string& getMyBuf() const {
  30636. return mMyBuf;
  30637. };
  30638. ...
  30639. </code></pre>
  30640. <h4>Examples</h4>
  30641. Suppose the inclrec.jr file contains:
  30642. <pre><code>
  30643. module inclrec {
  30644. class RI {
  30645. int I32;
  30646. double D;
  30647. ustring S;
  30648. };
  30649. }
  30650. </code></pre>
  30651. and the testrec.jr file contains:
  30652. <pre><code>
  30653. include "inclrec.jr"
  30654. module testrec {
  30655. class R {
  30656. vector<float> VF;
  30657. RI Rec;
  30658. buffer Buf;
  30659. };
  30660. }
  30661. </code></pre>
  30662. Then the invocation of rcc such as:
  30663. <pre><code>
  30664. $ rcc -l c++ inclrec.jr testrec.jr
  30665. </code></pre>
  30666. will result in generation of four files:
  30667. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  30668. The inclrec.jr.hh will contain:
  30669. <pre><code>
  30670. #ifndef _INCLREC_JR_HH_
  30671. #define _INCLREC_JR_HH_
  30672. #include "recordio.hh"
  30673. namespace inclrec {
  30674. class RI : public hadoop::Record {
  30675. private:
  30676. int32_t I32;
  30677. double D;
  30678. std::string S;
  30679. public:
  30680. RI(void);
  30681. virtual ~RI(void);
  30682. virtual bool operator==(const RI& peer) const;
  30683. virtual bool operator<(const RI& peer) const;
  30684. virtual int32_t getI32(void) const { return I32; }
  30685. virtual void setI32(int32_t v) { I32 = v; }
  30686. virtual double getD(void) const { return D; }
  30687. virtual void setD(double v) { D = v; }
  30688. virtual std::string& getS(void) const { return S; }
  30689. virtual const std::string& getS(void) const { return S; }
  30690. virtual std::string type(void) const;
  30691. virtual std::string signature(void) const;
  30692. protected:
  30693. virtual void serialize(hadoop::OArchive& a) const;
  30694. virtual void deserialize(hadoop::IArchive& a);
  30695. };
  30696. } // end namespace inclrec
  30697. #endif /* _INCLREC_JR_HH_ */
  30698. </code></pre>
  30699. The testrec.jr.hh file will contain:
  30700. <pre><code>
  30701. #ifndef _TESTREC_JR_HH_
  30702. #define _TESTREC_JR_HH_
  30703. #include "inclrec.jr.hh"
  30704. namespace testrec {
  30705. class R : public hadoop::Record {
  30706. private:
  30707. std::vector<float> VF;
  30708. inclrec::RI Rec;
  30709. std::string Buf;
  30710. public:
  30711. R(void);
  30712. virtual ~R(void);
  30713. virtual bool operator==(const R& peer) const;
  30714. virtual bool operator<(const R& peer) const;
  30715. virtual std::vector<float>& getVF(void) const;
  30716. virtual const std::vector<float>& getVF(void) const;
  30717. virtual std::string& getBuf(void) const ;
  30718. virtual const std::string& getBuf(void) const;
  30719. virtual inclrec::RI& getRec(void) const;
  30720. virtual const inclrec::RI& getRec(void) const;
  30721. virtual bool serialize(hadoop::OutArchive& a) const;
  30722. virtual bool deserialize(hadoop::InArchive& a);
  30723. virtual std::string type(void) const;
  30724. virtual std::string signature(void) const;
  30725. };
  30726. }; // end namespace testrec
  30727. #endif /* _TESTREC_JR_HH_ */
  30728. </code></pre>
  30729. <h3>Java</h3>
  30730. Code generation for Java is similar to that for C++. A Java class is generated
  30731. for each record type with private members corresponding to the fields. Getters
  30732. and setters for fields are also generated. Some differences arise in the
  30733. way comparison is expressed and in the mapping of modules to packages and
  30734. classes to files. For equality testing, an equals method is generated
  30735. for each record type. As per Java requirements a hashCode method is also
  30736. generated. For comparison a compareTo method is generated for each
  30737. record type. This has the semantics as defined by the Java Comparable
  30738. interface, that is, the method returns a negative integer, zero, or a positive
  30739. integer as the invoked object is less than, equal to, or greater than the
  30740. comparison parameter.
  30741. A .java file is generated per record type as opposed to per DDL
  30742. file as in C++. The module declaration translates to a Java
  30743. package declaration. The module name maps to an identical Java package
  30744. name. In addition to this mapping, the DDL compiler creates the appropriate
  30745. directory hierarchy for the package and places the generated .java
  30746. files in the correct directories.
  30747. <h2>Mapping Summary</h2>
  30748. <pre><code>
  30749. DDL Type C++ Type Java Type
  30750. boolean bool boolean
  30751. byte int8_t byte
  30752. int int32_t int
  30753. long int64_t long
  30754. float float float
  30755. double double double
  30756. ustring std::string java.lang.String
  30757. buffer std::string org.apache.hadoop.record.Buffer
  30758. class type class type class type
  30759. vector<type> std::vector<type> java.util.ArrayList<type>
  30760. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  30761. </code></pre>
  30762. <h2>Data encodings</h2>
  30763. This section describes the format of the data encodings supported by Hadoop.
  30764. Currently, three data encodings are supported, namely binary, CSV and XML.
  30765. <h3>Binary Serialization Format</h3>
  30766. The binary data encoding format is fairly dense. Serialization of composite
  30767. types is simply defined as a concatenation of serializations of the constituent
  30768. elements (lengths are included in vectors and maps).
  30769. Composite types are serialized as follows:
  30770. <ul>
  30771. <li> class: Sequence of serialized members.
  30772. <li> vector: The number of elements serialized as an int. Followed by a
  30773. sequence of serialized elements.
  30774. <li> map: The number of key value pairs serialized as an int. Followed
  30775. by a sequence of serialized (key,value) pairs.
  30776. </ul>
  30777. Serialization of primitives is more interesting, with a zero compression
  30778. optimization for integral types and normalization to UTF-8 for strings.
  30779. Primitive types are serialized as follows:
  30780. <ul>
  30781. <li> byte: Represented by 1 byte, as is.
  30782. <li> boolean: Represented by 1-byte (0 or 1)
  30783. <li> int/long: Integers and longs are serialized zero compressed.
  30784. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  30785. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  30786. the number of trailing bytes, N, as the negative number (-120-N). For example,
  30787. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  30788. This doesn't help much for 4-byte integers but does a reasonably good job with
  30789. longs without bit twiddling.
  30790. <li> float/double: Serialized in IEEE 754 single and double precision
  30791. format in network byte order. This is the format used by Java.
  30792. <li> ustring: Serialized as 4-byte zero compressed length followed by
  30793. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  30794. language representation.
  30795. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  30796. raw bytes in the buffer.
  30797. </ul>
  30798. <h3>CSV Serialization Format</h3>
  30799. The CSV serialization format has a lot more structure than the "standard"
  30800. Excel CSV format, but we believe the additional structure is useful because
  30801. <ul>
  30802. <li> it makes parsing a lot easier without detracting too much from legibility
  30803. <li> the delimiters around composites make it obvious when one is reading a
  30804. sequence of Hadoop records
  30805. </ul>
  30806. Serialization formats for the various types are detailed in the grammar that
  30807. follows. The notable feature of the formats is the use of delimiters for
  30808. indicating the certain field types.
  30809. <ul>
  30810. <li> A string field begins with a single quote (').
  30811. <li> A buffer field begins with a sharp (#).
  30812. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  30813. ends with '}'.
  30814. </ul>
  30815. The CSV format can be described by the following grammar:
  30816. <pre><code>
  30817. record = primitive / struct / vector / map
  30818. primitive = boolean / int / long / float / double / ustring / buffer
  30819. boolean = "T" / "F"
  30820. int = ["-"] 1*DIGIT
  30821. long = ";" ["-"] 1*DIGIT
  30822. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  30823. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  30824. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  30825. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  30826. struct = "s{" record *("," record) "}"
  30827. vector = "v{" [record *("," record)] "}"
  30828. map = "m{" [*(record "," record)] "}"
  30829. </code></pre>
  30830. <h3>XML Serialization Format</h3>
  30831. The XML serialization format is the same used by Apache XML-RPC
  30832. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  30833. XML-RPC format and adds some additional data types. All record I/O types are
  30834. not directly expressible in this format, and access to a DDL is required in
  30835. order to convert these to valid types. All types primitive or composite are
  30836. represented by &lt;value&gt; elements. The particular XML-RPC type is
  30837. indicated by a nested element in the &lt;value&gt; element. The encoding for
  30838. records is always UTF-8. Primitive types are serialized as follows:
  30839. <ul>
  30840. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  30841. integers represented in US-ASCII
  30842. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  30843. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  30844. signed integers represented in US-ASCII.
  30845. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  30846. represented in US-ASCII.
  30847. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  30848. floating point numbers represented in US-ASCII.
  30849. <li> double: XML tag &lt;double&gt;. Values: Double precision
  30850. floating point numbers represented in US-ASCII.
  30851. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  30852. represented as UTF-8. XML does not permit all Unicode characters in literal
  30853. data. In particular, NULLs and control chars are not allowed. Additionally,
  30854. XML processors are required to replace carriage returns with line feeds and to
  30855. replace CRLF sequences with line feeds. Programming languages that we work
  30856. with do not impose these restrictions on string types. To work around these
  30857. restrictions, disallowed characters and CRs are percent escaped in strings.
  30858. The '%' character is also percent escaped.
  30859. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  30860. data. Represented as hexBinary, each byte is replaced by its 2-byte
  30861. hexadecimal representation.
  30862. </ul>
  30863. Composite types are serialized as follows:
  30864. <ul>
  30865. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  30866. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  30867. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  30868. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  30869. by a &lt;value&gt; element.
  30870. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  30871. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  30872. &lt;value&gt; elements each of which represents an element of the vector.
  30873. <li> map: XML tag &lt;array&gt;. Same as vector.
  30874. </ul>
  30875. For example:
  30876. <pre><code>
  30877. class {
  30878. int MY_INT; // value 5
  30879. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  30880. buffer MY_BUF; // value '\00\n\tabc%'
  30881. }
  30882. </code></pre>
  30883. is serialized as
  30884. <pre><code class="XML">
  30885. &lt;value&gt;
  30886. &lt;struct&gt;
  30887. &lt;member&gt;
  30888. &lt;name&gt;MY_INT&lt;/name&gt;
  30889. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  30890. &lt;/member&gt;
  30891. &lt;member&gt;
  30892. &lt;name&gt;MY_VEC&lt;/name&gt;
  30893. &lt;value&gt;
  30894. &lt;array&gt;
  30895. &lt;data&gt;
  30896. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  30897. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  30898. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  30899. &lt;/data&gt;
  30900. &lt;/array&gt;
  30901. &lt;/value&gt;
  30902. &lt;/member&gt;
  30903. &lt;member&gt;
  30904. &lt;name&gt;MY_BUF&lt;/name&gt;
  30905. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  30906. &lt;/member&gt;
  30907. &lt;/struct&gt;
  30908. &lt;/value&gt;
  30909. </code></pre>]]>
  30910. </doc>
  30911. </package>
  30912. <package name="org.apache.hadoop.record.compiler">
  30913. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  30914. <class name="CodeBuffer" extends="java.lang.Object"
  30915. abstract="false"
  30916. static="false" final="false" visibility="public"
  30917. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30918. <method name="toString" return="java.lang.String"
  30919. abstract="false" native="false" synchronized="false"
  30920. static="false" final="false" visibility="public"
  30921. deprecated="not deprecated">
  30922. </method>
  30923. <doc>
  30924. <![CDATA[A wrapper around StringBuffer that automatically does indentation
  30925. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30926. </doc>
  30927. </class>
  30928. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  30929. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  30930. <class name="Consts" extends="java.lang.Object"
  30931. abstract="false"
  30932. static="false" final="false" visibility="public"
  30933. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30934. <field name="RIO_PREFIX" type="java.lang.String"
  30935. transient="false" volatile="false"
  30936. static="true" final="true" visibility="public"
  30937. deprecated="not deprecated">
  30938. </field>
  30939. <field name="RTI_VAR" type="java.lang.String"
  30940. transient="false" volatile="false"
  30941. static="true" final="true" visibility="public"
  30942. deprecated="not deprecated">
  30943. </field>
  30944. <field name="RTI_FILTER" type="java.lang.String"
  30945. transient="false" volatile="false"
  30946. static="true" final="true" visibility="public"
  30947. deprecated="not deprecated">
  30948. </field>
  30949. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  30950. transient="false" volatile="false"
  30951. static="true" final="true" visibility="public"
  30952. deprecated="not deprecated">
  30953. </field>
  30954. <field name="RECORD_OUTPUT" type="java.lang.String"
  30955. transient="false" volatile="false"
  30956. static="true" final="true" visibility="public"
  30957. deprecated="not deprecated">
  30958. </field>
  30959. <field name="RECORD_INPUT" type="java.lang.String"
  30960. transient="false" volatile="false"
  30961. static="true" final="true" visibility="public"
  30962. deprecated="not deprecated">
  30963. </field>
  30964. <field name="TAG" type="java.lang.String"
  30965. transient="false" volatile="false"
  30966. static="true" final="true" visibility="public"
  30967. deprecated="not deprecated">
  30968. </field>
  30969. <doc>
  30970. <![CDATA[const definitions for Record I/O compiler
  30971. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30972. </doc>
  30973. </class>
  30974. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  30975. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  30976. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  30977. abstract="false"
  30978. static="false" final="false" visibility="public"
  30979. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30980. <constructor name="JBoolean"
  30981. static="false" final="false" visibility="public"
  30982. deprecated="not deprecated">
  30983. <doc>
  30984. <![CDATA[Creates a new instance of JBoolean]]>
  30985. </doc>
  30986. </constructor>
  30987. <doc>
  30988. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30989. </doc>
  30990. </class>
  30991. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  30992. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  30993. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  30994. abstract="false"
  30995. static="false" final="false" visibility="public"
  30996. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30997. <constructor name="JBuffer"
  30998. static="false" final="false" visibility="public"
  30999. deprecated="not deprecated">
  31000. <doc>
  31001. <![CDATA[Creates a new instance of JBuffer]]>
  31002. </doc>
  31003. </constructor>
  31004. <doc>
  31005. <![CDATA[Code generator for "buffer" type.
  31006. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31007. </doc>
  31008. </class>
  31009. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  31010. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  31011. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  31012. abstract="false"
  31013. static="false" final="false" visibility="public"
  31014. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31015. <constructor name="JByte"
  31016. static="false" final="false" visibility="public"
  31017. deprecated="not deprecated">
  31018. </constructor>
  31019. <doc>
  31020. <![CDATA[Code generator for "byte" type.
  31021. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31022. </doc>
  31023. </class>
  31024. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  31025. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  31026. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  31027. abstract="false"
  31028. static="false" final="false" visibility="public"
  31029. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31030. <constructor name="JDouble"
  31031. static="false" final="false" visibility="public"
  31032. deprecated="not deprecated">
  31033. <doc>
  31034. <![CDATA[Creates a new instance of JDouble]]>
  31035. </doc>
  31036. </constructor>
  31037. <doc>
  31038. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31039. </doc>
  31040. </class>
  31041. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  31042. <!-- start class org.apache.hadoop.record.compiler.JField -->
  31043. <class name="JField" extends="java.lang.Object"
  31044. abstract="false"
  31045. static="false" final="false" visibility="public"
  31046. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31047. <constructor name="JField" type="java.lang.String, T"
  31048. static="false" final="false" visibility="public"
  31049. deprecated="not deprecated">
  31050. <doc>
  31051. <![CDATA[Creates a new instance of JField]]>
  31052. </doc>
  31053. </constructor>
  31054. <doc>
  31055. <![CDATA[A thin wrappper around record field.
  31056. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31057. </doc>
  31058. </class>
  31059. <!-- end class org.apache.hadoop.record.compiler.JField -->
  31060. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  31061. <class name="JFile" extends="java.lang.Object"
  31062. abstract="false"
  31063. static="false" final="false" visibility="public"
  31064. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31065. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  31066. static="false" final="false" visibility="public"
  31067. deprecated="not deprecated">
  31068. <doc>
  31069. <![CDATA[Creates a new instance of JFile
  31070. @param name possibly full pathname to the file
  31071. @param inclFiles included files (as JFile)
  31072. @param recList List of records defined within this file]]>
  31073. </doc>
  31074. </constructor>
  31075. <method name="genCode" return="int"
  31076. abstract="false" native="false" synchronized="false"
  31077. static="false" final="false" visibility="public"
  31078. deprecated="not deprecated">
  31079. <param name="language" type="java.lang.String"/>
  31080. <param name="destDir" type="java.lang.String"/>
  31081. <param name="options" type="java.util.ArrayList"/>
  31082. <exception name="IOException" type="java.io.IOException"/>
  31083. <doc>
  31084. <![CDATA[Generate record code in given language. Language should be all
  31085. lowercase.]]>
  31086. </doc>
  31087. </method>
  31088. <doc>
  31089. <![CDATA[Container for the Hadoop Record DDL.
  31090. The main components of the file are filename, list of included files,
  31091. and records defined in that file.
  31092. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31093. </doc>
  31094. </class>
  31095. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  31096. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  31097. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  31098. abstract="false"
  31099. static="false" final="false" visibility="public"
  31100. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31101. <constructor name="JFloat"
  31102. static="false" final="false" visibility="public"
  31103. deprecated="not deprecated">
  31104. <doc>
  31105. <![CDATA[Creates a new instance of JFloat]]>
  31106. </doc>
  31107. </constructor>
  31108. <doc>
  31109. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31110. </doc>
  31111. </class>
  31112. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  31113. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  31114. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  31115. abstract="false"
  31116. static="false" final="false" visibility="public"
  31117. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31118. <constructor name="JInt"
  31119. static="false" final="false" visibility="public"
  31120. deprecated="not deprecated">
  31121. <doc>
  31122. <![CDATA[Creates a new instance of JInt]]>
  31123. </doc>
  31124. </constructor>
  31125. <doc>
  31126. <![CDATA[Code generator for "int" type
  31127. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31128. </doc>
  31129. </class>
  31130. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  31131. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  31132. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  31133. abstract="false"
  31134. static="false" final="false" visibility="public"
  31135. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31136. <constructor name="JLong"
  31137. static="false" final="false" visibility="public"
  31138. deprecated="not deprecated">
  31139. <doc>
  31140. <![CDATA[Creates a new instance of JLong]]>
  31141. </doc>
  31142. </constructor>
  31143. <doc>
  31144. <![CDATA[Code generator for "long" type
  31145. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31146. </doc>
  31147. </class>
  31148. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  31149. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  31150. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  31151. abstract="false"
  31152. static="false" final="false" visibility="public"
  31153. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31154. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  31155. static="false" final="false" visibility="public"
  31156. deprecated="not deprecated">
  31157. <doc>
  31158. <![CDATA[Creates a new instance of JMap]]>
  31159. </doc>
  31160. </constructor>
  31161. <doc>
  31162. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31163. </doc>
  31164. </class>
  31165. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  31166. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  31167. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  31168. abstract="false"
  31169. static="false" final="false" visibility="public"
  31170. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31171. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  31172. static="false" final="false" visibility="public"
  31173. deprecated="not deprecated">
  31174. <doc>
  31175. <![CDATA[Creates a new instance of JRecord]]>
  31176. </doc>
  31177. </constructor>
  31178. <doc>
  31179. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31180. </doc>
  31181. </class>
  31182. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  31183. <!-- start class org.apache.hadoop.record.compiler.JString -->
  31184. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  31185. abstract="false"
  31186. static="false" final="false" visibility="public"
  31187. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31188. <constructor name="JString"
  31189. static="false" final="false" visibility="public"
  31190. deprecated="not deprecated">
  31191. <doc>
  31192. <![CDATA[Creates a new instance of JString]]>
  31193. </doc>
  31194. </constructor>
  31195. <doc>
  31196. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31197. </doc>
  31198. </class>
  31199. <!-- end class org.apache.hadoop.record.compiler.JString -->
  31200. <!-- start class org.apache.hadoop.record.compiler.JType -->
  31201. <class name="JType" extends="java.lang.Object"
  31202. abstract="true"
  31203. static="false" final="false" visibility="public"
  31204. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31205. <constructor name="JType"
  31206. static="false" final="false" visibility="public"
  31207. deprecated="not deprecated">
  31208. </constructor>
  31209. <doc>
  31210. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.
  31211. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31212. </doc>
  31213. </class>
  31214. <!-- end class org.apache.hadoop.record.compiler.JType -->
  31215. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  31216. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  31217. abstract="false"
  31218. static="false" final="false" visibility="public"
  31219. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31220. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  31221. static="false" final="false" visibility="public"
  31222. deprecated="not deprecated">
  31223. <doc>
  31224. <![CDATA[Creates a new instance of JVector]]>
  31225. </doc>
  31226. </constructor>
  31227. <doc>
  31228. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31229. </doc>
  31230. </class>
  31231. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  31232. <doc>
  31233. <![CDATA[<p>
  31234. (DEPRECATED) This package contains classes needed for code generation
  31235. from the hadoop record compiler. CppGenerator and JavaGenerator
  31236. are the main entry points from the parser. There are classes
  31237. corrsponding to every primitive type and compound type
  31238. included in Hadoop record I/O syntax.
  31239. </p>
  31240. <p>
  31241. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  31242. </p>]]>
  31243. </doc>
  31244. </package>
  31245. <package name="org.apache.hadoop.record.compiler.ant">
  31246. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  31247. <class name="RccTask" extends="org.apache.tools.ant.Task"
  31248. abstract="false"
  31249. static="false" final="false" visibility="public"
  31250. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31251. <constructor name="RccTask"
  31252. static="false" final="false" visibility="public"
  31253. deprecated="not deprecated">
  31254. <doc>
  31255. <![CDATA[Creates a new instance of RccTask]]>
  31256. </doc>
  31257. </constructor>
  31258. <method name="setLanguage"
  31259. abstract="false" native="false" synchronized="false"
  31260. static="false" final="false" visibility="public"
  31261. deprecated="not deprecated">
  31262. <param name="language" type="java.lang.String"/>
  31263. <doc>
  31264. <![CDATA[Sets the output language option
  31265. @param language "java"/"c++"]]>
  31266. </doc>
  31267. </method>
  31268. <method name="setFile"
  31269. abstract="false" native="false" synchronized="false"
  31270. static="false" final="false" visibility="public"
  31271. deprecated="not deprecated">
  31272. <param name="file" type="java.io.File"/>
  31273. <doc>
  31274. <![CDATA[Sets the record definition file attribute
  31275. @param file record definition file]]>
  31276. </doc>
  31277. </method>
  31278. <method name="setFailonerror"
  31279. abstract="false" native="false" synchronized="false"
  31280. static="false" final="false" visibility="public"
  31281. deprecated="not deprecated">
  31282. <param name="flag" type="boolean"/>
  31283. <doc>
  31284. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  31285. @param flag true will throw build exception in case of failure (default)]]>
  31286. </doc>
  31287. </method>
  31288. <method name="setDestdir"
  31289. abstract="false" native="false" synchronized="false"
  31290. static="false" final="false" visibility="public"
  31291. deprecated="not deprecated">
  31292. <param name="dir" type="java.io.File"/>
  31293. <doc>
  31294. <![CDATA[Sets directory where output files will be generated
  31295. @param dir output directory]]>
  31296. </doc>
  31297. </method>
  31298. <method name="addFileset"
  31299. abstract="false" native="false" synchronized="false"
  31300. static="false" final="false" visibility="public"
  31301. deprecated="not deprecated">
  31302. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  31303. <doc>
  31304. <![CDATA[Adds a fileset that can consist of one or more files
  31305. @param set Set of record definition files]]>
  31306. </doc>
  31307. </method>
  31308. <method name="execute"
  31309. abstract="false" native="false" synchronized="false"
  31310. static="false" final="false" visibility="public"
  31311. deprecated="not deprecated">
  31312. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  31313. <doc>
  31314. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  31315. </doc>
  31316. </method>
  31317. <doc>
  31318. <![CDATA[Hadoop record compiler ant Task
  31319. <p> This task takes the given record definition files and compiles them into
  31320. java or c++
  31321. files. It is then up to the user to compile the generated files.
  31322. <p> The task requires the <code>file</code> or the nested fileset element to be
  31323. specified. Optional attributes are <code>language</code> (set the output
  31324. language, default is "java"),
  31325. <code>destdir</code> (name of the destination directory for generated java/c++
  31326. code, default is ".") and <code>failonerror</code> (specifies error handling
  31327. behavior. default is true).
  31328. <p><h4>Usage</h4>
  31329. <pre>
  31330. &lt;recordcc
  31331. destdir="${basedir}/gensrc"
  31332. language="java"&gt;
  31333. &lt;fileset include="**\/*.jr" /&gt;
  31334. &lt;/recordcc&gt;
  31335. </pre>
  31336. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31337. </doc>
  31338. </class>
  31339. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  31340. </package>
  31341. <package name="org.apache.hadoop.record.compiler.generated">
  31342. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  31343. <class name="ParseException" extends="java.lang.Exception"
  31344. abstract="false"
  31345. static="false" final="false" visibility="public"
  31346. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31347. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  31348. static="false" final="false" visibility="public"
  31349. deprecated="not deprecated">
  31350. <doc>
  31351. <![CDATA[This constructor is used by the method "generateParseException"
  31352. in the generated parser. Calling this constructor generates
  31353. a new object of this type with the fields "currentToken",
  31354. "expectedTokenSequences", and "tokenImage" set. The boolean
  31355. flag "specialConstructor" is also set to true to indicate that
  31356. this constructor was used to create this object.
  31357. This constructor calls its super class with the empty string
  31358. to force the "toString" method of parent class "Throwable" to
  31359. print the error message in the form:
  31360. ParseException: <result of getMessage>]]>
  31361. </doc>
  31362. </constructor>
  31363. <constructor name="ParseException"
  31364. static="false" final="false" visibility="public"
  31365. deprecated="not deprecated">
  31366. <doc>
  31367. <![CDATA[The following constructors are for use by you for whatever
  31368. purpose you can think of. Constructing the exception in this
  31369. manner makes the exception behave in the normal way - i.e., as
  31370. documented in the class "Throwable". The fields "errorToken",
  31371. "expectedTokenSequences", and "tokenImage" do not contain
  31372. relevant information. The JavaCC generated code does not use
  31373. these constructors.]]>
  31374. </doc>
  31375. </constructor>
  31376. <constructor name="ParseException" type="java.lang.String"
  31377. static="false" final="false" visibility="public"
  31378. deprecated="not deprecated">
  31379. </constructor>
  31380. <method name="getMessage" return="java.lang.String"
  31381. abstract="false" native="false" synchronized="false"
  31382. static="false" final="false" visibility="public"
  31383. deprecated="not deprecated">
  31384. <doc>
  31385. <![CDATA[This method has the standard behavior when this object has been
  31386. created using the standard constructors. Otherwise, it uses
  31387. "currentToken" and "expectedTokenSequences" to generate a parse
  31388. error message and returns it. If this object has been created
  31389. due to a parse error, and you do not catch it (it gets thrown
  31390. from the parser), then this method is called during the printing
  31391. of the final stack trace, and hence the correct error message
  31392. gets displayed.]]>
  31393. </doc>
  31394. </method>
  31395. <method name="add_escapes" return="java.lang.String"
  31396. abstract="false" native="false" synchronized="false"
  31397. static="false" final="false" visibility="protected"
  31398. deprecated="not deprecated">
  31399. <param name="str" type="java.lang.String"/>
  31400. <doc>
  31401. <![CDATA[Used to convert raw characters to their escaped version
  31402. when these raw version cannot be used as part of an ASCII
  31403. string literal.]]>
  31404. </doc>
  31405. </method>
  31406. <field name="specialConstructor" type="boolean"
  31407. transient="false" volatile="false"
  31408. static="false" final="false" visibility="protected"
  31409. deprecated="not deprecated">
  31410. <doc>
  31411. <![CDATA[This variable determines which constructor was used to create
  31412. this object and thereby affects the semantics of the
  31413. "getMessage" method (see below).]]>
  31414. </doc>
  31415. </field>
  31416. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  31417. transient="false" volatile="false"
  31418. static="false" final="false" visibility="public"
  31419. deprecated="not deprecated">
  31420. <doc>
  31421. <![CDATA[This is the last token that has been consumed successfully. If
  31422. this object has been created due to a parse error, the token
  31423. followng this token will (therefore) be the first error token.]]>
  31424. </doc>
  31425. </field>
  31426. <field name="expectedTokenSequences" type="int[][]"
  31427. transient="false" volatile="false"
  31428. static="false" final="false" visibility="public"
  31429. deprecated="not deprecated">
  31430. <doc>
  31431. <![CDATA[Each entry in this array is an array of integers. Each array
  31432. of integers represents a sequence of tokens (by their ordinal
  31433. values) that is expected at this point of the parse.]]>
  31434. </doc>
  31435. </field>
  31436. <field name="tokenImage" type="java.lang.String[]"
  31437. transient="false" volatile="false"
  31438. static="false" final="false" visibility="public"
  31439. deprecated="not deprecated">
  31440. <doc>
  31441. <![CDATA[This is a reference to the "tokenImage" array of the generated
  31442. parser within which the parse error occurred. This array is
  31443. defined in the generated ...Constants interface.]]>
  31444. </doc>
  31445. </field>
  31446. <field name="eol" type="java.lang.String"
  31447. transient="false" volatile="false"
  31448. static="false" final="false" visibility="protected"
  31449. deprecated="not deprecated">
  31450. <doc>
  31451. <![CDATA[The end of line string for this machine.]]>
  31452. </doc>
  31453. </field>
  31454. <doc>
  31455. <![CDATA[This exception is thrown when parse errors are encountered.
  31456. You can explicitly create objects of this exception type by
  31457. calling the method generateParseException in the generated
  31458. parser.
  31459. You can modify this class to customize your error reporting
  31460. mechanisms so long as you retain the public fields.
  31461. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31462. </doc>
  31463. </class>
  31464. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  31465. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  31466. <class name="Rcc" extends="java.lang.Object"
  31467. abstract="false"
  31468. static="false" final="false" visibility="public"
  31469. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31470. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  31471. <constructor name="Rcc" type="java.io.InputStream"
  31472. static="false" final="false" visibility="public"
  31473. deprecated="not deprecated">
  31474. </constructor>
  31475. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  31476. static="false" final="false" visibility="public"
  31477. deprecated="not deprecated">
  31478. </constructor>
  31479. <constructor name="Rcc" type="java.io.Reader"
  31480. static="false" final="false" visibility="public"
  31481. deprecated="not deprecated">
  31482. </constructor>
  31483. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  31484. static="false" final="false" visibility="public"
  31485. deprecated="not deprecated">
  31486. </constructor>
  31487. <method name="main"
  31488. abstract="false" native="false" synchronized="false"
  31489. static="true" final="false" visibility="public"
  31490. deprecated="not deprecated">
  31491. <param name="args" type="java.lang.String[]"/>
  31492. </method>
  31493. <method name="usage"
  31494. abstract="false" native="false" synchronized="false"
  31495. static="true" final="false" visibility="public"
  31496. deprecated="not deprecated">
  31497. </method>
  31498. <method name="driver" return="int"
  31499. abstract="false" native="false" synchronized="false"
  31500. static="true" final="false" visibility="public"
  31501. deprecated="not deprecated">
  31502. <param name="args" type="java.lang.String[]"/>
  31503. </method>
  31504. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  31505. abstract="false" native="false" synchronized="false"
  31506. static="false" final="true" visibility="public"
  31507. deprecated="not deprecated">
  31508. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31509. </method>
  31510. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  31511. abstract="false" native="false" synchronized="false"
  31512. static="false" final="true" visibility="public"
  31513. deprecated="not deprecated">
  31514. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31515. </method>
  31516. <method name="Module" return="java.util.ArrayList"
  31517. abstract="false" native="false" synchronized="false"
  31518. static="false" final="true" visibility="public"
  31519. deprecated="not deprecated">
  31520. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31521. </method>
  31522. <method name="ModuleName" return="java.lang.String"
  31523. abstract="false" native="false" synchronized="false"
  31524. static="false" final="true" visibility="public"
  31525. deprecated="not deprecated">
  31526. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31527. </method>
  31528. <method name="RecordList" return="java.util.ArrayList"
  31529. abstract="false" native="false" synchronized="false"
  31530. static="false" final="true" visibility="public"
  31531. deprecated="not deprecated">
  31532. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31533. </method>
  31534. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  31535. abstract="false" native="false" synchronized="false"
  31536. static="false" final="true" visibility="public"
  31537. deprecated="not deprecated">
  31538. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31539. </method>
  31540. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  31541. abstract="false" native="false" synchronized="false"
  31542. static="false" final="true" visibility="public"
  31543. deprecated="not deprecated">
  31544. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31545. </method>
  31546. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  31547. abstract="false" native="false" synchronized="false"
  31548. static="false" final="true" visibility="public"
  31549. deprecated="not deprecated">
  31550. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31551. </method>
  31552. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  31553. abstract="false" native="false" synchronized="false"
  31554. static="false" final="true" visibility="public"
  31555. deprecated="not deprecated">
  31556. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31557. </method>
  31558. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  31559. abstract="false" native="false" synchronized="false"
  31560. static="false" final="true" visibility="public"
  31561. deprecated="not deprecated">
  31562. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31563. </method>
  31564. <method name="ReInit"
  31565. abstract="false" native="false" synchronized="false"
  31566. static="false" final="false" visibility="public"
  31567. deprecated="not deprecated">
  31568. <param name="stream" type="java.io.InputStream"/>
  31569. </method>
  31570. <method name="ReInit"
  31571. abstract="false" native="false" synchronized="false"
  31572. static="false" final="false" visibility="public"
  31573. deprecated="not deprecated">
  31574. <param name="stream" type="java.io.InputStream"/>
  31575. <param name="encoding" type="java.lang.String"/>
  31576. </method>
  31577. <method name="ReInit"
  31578. abstract="false" native="false" synchronized="false"
  31579. static="false" final="false" visibility="public"
  31580. deprecated="not deprecated">
  31581. <param name="stream" type="java.io.Reader"/>
  31582. </method>
  31583. <method name="ReInit"
  31584. abstract="false" native="false" synchronized="false"
  31585. static="false" final="false" visibility="public"
  31586. deprecated="not deprecated">
  31587. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  31588. </method>
  31589. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31590. abstract="false" native="false" synchronized="false"
  31591. static="false" final="true" visibility="public"
  31592. deprecated="not deprecated">
  31593. </method>
  31594. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31595. abstract="false" native="false" synchronized="false"
  31596. static="false" final="true" visibility="public"
  31597. deprecated="not deprecated">
  31598. <param name="index" type="int"/>
  31599. </method>
  31600. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  31601. abstract="false" native="false" synchronized="false"
  31602. static="false" final="false" visibility="public"
  31603. deprecated="not deprecated">
  31604. </method>
  31605. <method name="enable_tracing"
  31606. abstract="false" native="false" synchronized="false"
  31607. static="false" final="true" visibility="public"
  31608. deprecated="not deprecated">
  31609. </method>
  31610. <method name="disable_tracing"
  31611. abstract="false" native="false" synchronized="false"
  31612. static="false" final="true" visibility="public"
  31613. deprecated="not deprecated">
  31614. </method>
  31615. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  31616. transient="false" volatile="false"
  31617. static="false" final="false" visibility="public"
  31618. deprecated="not deprecated">
  31619. </field>
  31620. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  31621. transient="false" volatile="false"
  31622. static="false" final="false" visibility="public"
  31623. deprecated="not deprecated">
  31624. </field>
  31625. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  31626. transient="false" volatile="false"
  31627. static="false" final="false" visibility="public"
  31628. deprecated="not deprecated">
  31629. </field>
  31630. <doc>
  31631. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31632. </doc>
  31633. </class>
  31634. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  31635. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  31636. <interface name="RccConstants" abstract="true"
  31637. static="false" final="false" visibility="public"
  31638. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31639. <field name="EOF" type="int"
  31640. transient="false" volatile="false"
  31641. static="true" final="true" visibility="public"
  31642. deprecated="not deprecated">
  31643. </field>
  31644. <field name="MODULE_TKN" type="int"
  31645. transient="false" volatile="false"
  31646. static="true" final="true" visibility="public"
  31647. deprecated="not deprecated">
  31648. </field>
  31649. <field name="RECORD_TKN" type="int"
  31650. transient="false" volatile="false"
  31651. static="true" final="true" visibility="public"
  31652. deprecated="not deprecated">
  31653. </field>
  31654. <field name="INCLUDE_TKN" type="int"
  31655. transient="false" volatile="false"
  31656. static="true" final="true" visibility="public"
  31657. deprecated="not deprecated">
  31658. </field>
  31659. <field name="BYTE_TKN" type="int"
  31660. transient="false" volatile="false"
  31661. static="true" final="true" visibility="public"
  31662. deprecated="not deprecated">
  31663. </field>
  31664. <field name="BOOLEAN_TKN" type="int"
  31665. transient="false" volatile="false"
  31666. static="true" final="true" visibility="public"
  31667. deprecated="not deprecated">
  31668. </field>
  31669. <field name="INT_TKN" type="int"
  31670. transient="false" volatile="false"
  31671. static="true" final="true" visibility="public"
  31672. deprecated="not deprecated">
  31673. </field>
  31674. <field name="LONG_TKN" type="int"
  31675. transient="false" volatile="false"
  31676. static="true" final="true" visibility="public"
  31677. deprecated="not deprecated">
  31678. </field>
  31679. <field name="FLOAT_TKN" type="int"
  31680. transient="false" volatile="false"
  31681. static="true" final="true" visibility="public"
  31682. deprecated="not deprecated">
  31683. </field>
  31684. <field name="DOUBLE_TKN" type="int"
  31685. transient="false" volatile="false"
  31686. static="true" final="true" visibility="public"
  31687. deprecated="not deprecated">
  31688. </field>
  31689. <field name="USTRING_TKN" type="int"
  31690. transient="false" volatile="false"
  31691. static="true" final="true" visibility="public"
  31692. deprecated="not deprecated">
  31693. </field>
  31694. <field name="BUFFER_TKN" type="int"
  31695. transient="false" volatile="false"
  31696. static="true" final="true" visibility="public"
  31697. deprecated="not deprecated">
  31698. </field>
  31699. <field name="VECTOR_TKN" type="int"
  31700. transient="false" volatile="false"
  31701. static="true" final="true" visibility="public"
  31702. deprecated="not deprecated">
  31703. </field>
  31704. <field name="MAP_TKN" type="int"
  31705. transient="false" volatile="false"
  31706. static="true" final="true" visibility="public"
  31707. deprecated="not deprecated">
  31708. </field>
  31709. <field name="LBRACE_TKN" type="int"
  31710. transient="false" volatile="false"
  31711. static="true" final="true" visibility="public"
  31712. deprecated="not deprecated">
  31713. </field>
  31714. <field name="RBRACE_TKN" type="int"
  31715. transient="false" volatile="false"
  31716. static="true" final="true" visibility="public"
  31717. deprecated="not deprecated">
  31718. </field>
  31719. <field name="LT_TKN" type="int"
  31720. transient="false" volatile="false"
  31721. static="true" final="true" visibility="public"
  31722. deprecated="not deprecated">
  31723. </field>
  31724. <field name="GT_TKN" type="int"
  31725. transient="false" volatile="false"
  31726. static="true" final="true" visibility="public"
  31727. deprecated="not deprecated">
  31728. </field>
  31729. <field name="SEMICOLON_TKN" type="int"
  31730. transient="false" volatile="false"
  31731. static="true" final="true" visibility="public"
  31732. deprecated="not deprecated">
  31733. </field>
  31734. <field name="COMMA_TKN" type="int"
  31735. transient="false" volatile="false"
  31736. static="true" final="true" visibility="public"
  31737. deprecated="not deprecated">
  31738. </field>
  31739. <field name="DOT_TKN" type="int"
  31740. transient="false" volatile="false"
  31741. static="true" final="true" visibility="public"
  31742. deprecated="not deprecated">
  31743. </field>
  31744. <field name="CSTRING_TKN" type="int"
  31745. transient="false" volatile="false"
  31746. static="true" final="true" visibility="public"
  31747. deprecated="not deprecated">
  31748. </field>
  31749. <field name="IDENT_TKN" type="int"
  31750. transient="false" volatile="false"
  31751. static="true" final="true" visibility="public"
  31752. deprecated="not deprecated">
  31753. </field>
  31754. <field name="DEFAULT" type="int"
  31755. transient="false" volatile="false"
  31756. static="true" final="true" visibility="public"
  31757. deprecated="not deprecated">
  31758. </field>
  31759. <field name="WithinOneLineComment" type="int"
  31760. transient="false" volatile="false"
  31761. static="true" final="true" visibility="public"
  31762. deprecated="not deprecated">
  31763. </field>
  31764. <field name="WithinMultiLineComment" type="int"
  31765. transient="false" volatile="false"
  31766. static="true" final="true" visibility="public"
  31767. deprecated="not deprecated">
  31768. </field>
  31769. <field name="tokenImage" type="java.lang.String[]"
  31770. transient="false" volatile="false"
  31771. static="true" final="true" visibility="public"
  31772. deprecated="not deprecated">
  31773. </field>
  31774. <doc>
  31775. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31776. </doc>
  31777. </interface>
  31778. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  31779. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  31780. <class name="RccTokenManager" extends="java.lang.Object"
  31781. abstract="false"
  31782. static="false" final="false" visibility="public"
  31783. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31784. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  31785. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  31786. static="false" final="false" visibility="public"
  31787. deprecated="not deprecated">
  31788. </constructor>
  31789. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  31790. static="false" final="false" visibility="public"
  31791. deprecated="not deprecated">
  31792. </constructor>
  31793. <method name="setDebugStream"
  31794. abstract="false" native="false" synchronized="false"
  31795. static="false" final="false" visibility="public"
  31796. deprecated="not deprecated">
  31797. <param name="ds" type="java.io.PrintStream"/>
  31798. </method>
  31799. <method name="ReInit"
  31800. abstract="false" native="false" synchronized="false"
  31801. static="false" final="false" visibility="public"
  31802. deprecated="not deprecated">
  31803. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  31804. </method>
  31805. <method name="ReInit"
  31806. abstract="false" native="false" synchronized="false"
  31807. static="false" final="false" visibility="public"
  31808. deprecated="not deprecated">
  31809. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  31810. <param name="lexState" type="int"/>
  31811. </method>
  31812. <method name="SwitchTo"
  31813. abstract="false" native="false" synchronized="false"
  31814. static="false" final="false" visibility="public"
  31815. deprecated="not deprecated">
  31816. <param name="lexState" type="int"/>
  31817. </method>
  31818. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31819. abstract="false" native="false" synchronized="false"
  31820. static="false" final="false" visibility="protected"
  31821. deprecated="not deprecated">
  31822. </method>
  31823. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31824. abstract="false" native="false" synchronized="false"
  31825. static="false" final="false" visibility="public"
  31826. deprecated="not deprecated">
  31827. </method>
  31828. <field name="debugStream" type="java.io.PrintStream"
  31829. transient="false" volatile="false"
  31830. static="false" final="false" visibility="public"
  31831. deprecated="not deprecated">
  31832. </field>
  31833. <field name="jjstrLiteralImages" type="java.lang.String[]"
  31834. transient="false" volatile="false"
  31835. static="true" final="true" visibility="public"
  31836. deprecated="not deprecated">
  31837. </field>
  31838. <field name="lexStateNames" type="java.lang.String[]"
  31839. transient="false" volatile="false"
  31840. static="true" final="true" visibility="public"
  31841. deprecated="not deprecated">
  31842. </field>
  31843. <field name="jjnewLexState" type="int[]"
  31844. transient="false" volatile="false"
  31845. static="true" final="true" visibility="public"
  31846. deprecated="not deprecated">
  31847. </field>
  31848. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  31849. transient="false" volatile="false"
  31850. static="false" final="false" visibility="protected"
  31851. deprecated="not deprecated">
  31852. </field>
  31853. <field name="curChar" type="char"
  31854. transient="false" volatile="false"
  31855. static="false" final="false" visibility="protected"
  31856. deprecated="not deprecated">
  31857. </field>
  31858. <doc>
  31859. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31860. </doc>
  31861. </class>
  31862. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  31863. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  31864. <class name="SimpleCharStream" extends="java.lang.Object"
  31865. abstract="false"
  31866. static="false" final="false" visibility="public"
  31867. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31868. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  31869. static="false" final="false" visibility="public"
  31870. deprecated="not deprecated">
  31871. </constructor>
  31872. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  31873. static="false" final="false" visibility="public"
  31874. deprecated="not deprecated">
  31875. </constructor>
  31876. <constructor name="SimpleCharStream" type="java.io.Reader"
  31877. static="false" final="false" visibility="public"
  31878. deprecated="not deprecated">
  31879. </constructor>
  31880. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  31881. static="false" final="false" visibility="public"
  31882. deprecated="not deprecated">
  31883. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31884. </constructor>
  31885. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  31886. static="false" final="false" visibility="public"
  31887. deprecated="not deprecated">
  31888. </constructor>
  31889. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  31890. static="false" final="false" visibility="public"
  31891. deprecated="not deprecated">
  31892. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31893. </constructor>
  31894. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  31895. static="false" final="false" visibility="public"
  31896. deprecated="not deprecated">
  31897. </constructor>
  31898. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  31899. static="false" final="false" visibility="public"
  31900. deprecated="not deprecated">
  31901. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31902. </constructor>
  31903. <constructor name="SimpleCharStream" type="java.io.InputStream"
  31904. static="false" final="false" visibility="public"
  31905. deprecated="not deprecated">
  31906. </constructor>
  31907. <method name="setTabSize"
  31908. abstract="false" native="false" synchronized="false"
  31909. static="false" final="false" visibility="protected"
  31910. deprecated="not deprecated">
  31911. <param name="i" type="int"/>
  31912. </method>
  31913. <method name="getTabSize" return="int"
  31914. abstract="false" native="false" synchronized="false"
  31915. static="false" final="false" visibility="protected"
  31916. deprecated="not deprecated">
  31917. <param name="i" type="int"/>
  31918. </method>
  31919. <method name="ExpandBuff"
  31920. abstract="false" native="false" synchronized="false"
  31921. static="false" final="false" visibility="protected"
  31922. deprecated="not deprecated">
  31923. <param name="wrapAround" type="boolean"/>
  31924. </method>
  31925. <method name="FillBuff"
  31926. abstract="false" native="false" synchronized="false"
  31927. static="false" final="false" visibility="protected"
  31928. deprecated="not deprecated">
  31929. <exception name="IOException" type="java.io.IOException"/>
  31930. </method>
  31931. <method name="BeginToken" return="char"
  31932. abstract="false" native="false" synchronized="false"
  31933. static="false" final="false" visibility="public"
  31934. deprecated="not deprecated">
  31935. <exception name="IOException" type="java.io.IOException"/>
  31936. </method>
  31937. <method name="UpdateLineColumn"
  31938. abstract="false" native="false" synchronized="false"
  31939. static="false" final="false" visibility="protected"
  31940. deprecated="not deprecated">
  31941. <param name="c" type="char"/>
  31942. </method>
  31943. <method name="readChar" return="char"
  31944. abstract="false" native="false" synchronized="false"
  31945. static="false" final="false" visibility="public"
  31946. deprecated="not deprecated">
  31947. <exception name="IOException" type="java.io.IOException"/>
  31948. </method>
  31949. <method name="getEndColumn" return="int"
  31950. abstract="false" native="false" synchronized="false"
  31951. static="false" final="false" visibility="public"
  31952. deprecated="not deprecated">
  31953. </method>
  31954. <method name="getEndLine" return="int"
  31955. abstract="false" native="false" synchronized="false"
  31956. static="false" final="false" visibility="public"
  31957. deprecated="not deprecated">
  31958. </method>
  31959. <method name="getBeginColumn" return="int"
  31960. abstract="false" native="false" synchronized="false"
  31961. static="false" final="false" visibility="public"
  31962. deprecated="not deprecated">
  31963. </method>
  31964. <method name="getBeginLine" return="int"
  31965. abstract="false" native="false" synchronized="false"
  31966. static="false" final="false" visibility="public"
  31967. deprecated="not deprecated">
  31968. </method>
  31969. <method name="backup"
  31970. abstract="false" native="false" synchronized="false"
  31971. static="false" final="false" visibility="public"
  31972. deprecated="not deprecated">
  31973. <param name="amount" type="int"/>
  31974. </method>
  31975. <method name="ReInit"
  31976. abstract="false" native="false" synchronized="false"
  31977. static="false" final="false" visibility="public"
  31978. deprecated="not deprecated">
  31979. <param name="dstream" type="java.io.Reader"/>
  31980. <param name="startline" type="int"/>
  31981. <param name="startcolumn" type="int"/>
  31982. <param name="buffersize" type="int"/>
  31983. </method>
  31984. <method name="ReInit"
  31985. abstract="false" native="false" synchronized="false"
  31986. static="false" final="false" visibility="public"
  31987. deprecated="not deprecated">
  31988. <param name="dstream" type="java.io.Reader"/>
  31989. <param name="startline" type="int"/>
  31990. <param name="startcolumn" type="int"/>
  31991. </method>
  31992. <method name="ReInit"
  31993. abstract="false" native="false" synchronized="false"
  31994. static="false" final="false" visibility="public"
  31995. deprecated="not deprecated">
  31996. <param name="dstream" type="java.io.Reader"/>
  31997. </method>
  31998. <method name="ReInit"
  31999. abstract="false" native="false" synchronized="false"
  32000. static="false" final="false" visibility="public"
  32001. deprecated="not deprecated">
  32002. <param name="dstream" type="java.io.InputStream"/>
  32003. <param name="encoding" type="java.lang.String"/>
  32004. <param name="startline" type="int"/>
  32005. <param name="startcolumn" type="int"/>
  32006. <param name="buffersize" type="int"/>
  32007. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32008. </method>
  32009. <method name="ReInit"
  32010. abstract="false" native="false" synchronized="false"
  32011. static="false" final="false" visibility="public"
  32012. deprecated="not deprecated">
  32013. <param name="dstream" type="java.io.InputStream"/>
  32014. <param name="startline" type="int"/>
  32015. <param name="startcolumn" type="int"/>
  32016. <param name="buffersize" type="int"/>
  32017. </method>
  32018. <method name="ReInit"
  32019. abstract="false" native="false" synchronized="false"
  32020. static="false" final="false" visibility="public"
  32021. deprecated="not deprecated">
  32022. <param name="dstream" type="java.io.InputStream"/>
  32023. <param name="encoding" type="java.lang.String"/>
  32024. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32025. </method>
  32026. <method name="ReInit"
  32027. abstract="false" native="false" synchronized="false"
  32028. static="false" final="false" visibility="public"
  32029. deprecated="not deprecated">
  32030. <param name="dstream" type="java.io.InputStream"/>
  32031. </method>
  32032. <method name="ReInit"
  32033. abstract="false" native="false" synchronized="false"
  32034. static="false" final="false" visibility="public"
  32035. deprecated="not deprecated">
  32036. <param name="dstream" type="java.io.InputStream"/>
  32037. <param name="encoding" type="java.lang.String"/>
  32038. <param name="startline" type="int"/>
  32039. <param name="startcolumn" type="int"/>
  32040. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32041. </method>
  32042. <method name="ReInit"
  32043. abstract="false" native="false" synchronized="false"
  32044. static="false" final="false" visibility="public"
  32045. deprecated="not deprecated">
  32046. <param name="dstream" type="java.io.InputStream"/>
  32047. <param name="startline" type="int"/>
  32048. <param name="startcolumn" type="int"/>
  32049. </method>
  32050. <method name="GetImage" return="java.lang.String"
  32051. abstract="false" native="false" synchronized="false"
  32052. static="false" final="false" visibility="public"
  32053. deprecated="not deprecated">
  32054. </method>
  32055. <method name="GetSuffix" return="char[]"
  32056. abstract="false" native="false" synchronized="false"
  32057. static="false" final="false" visibility="public"
  32058. deprecated="not deprecated">
  32059. <param name="len" type="int"/>
  32060. </method>
  32061. <method name="Done"
  32062. abstract="false" native="false" synchronized="false"
  32063. static="false" final="false" visibility="public"
  32064. deprecated="not deprecated">
  32065. </method>
  32066. <method name="adjustBeginLineColumn"
  32067. abstract="false" native="false" synchronized="false"
  32068. static="false" final="false" visibility="public"
  32069. deprecated="not deprecated">
  32070. <param name="newLine" type="int"/>
  32071. <param name="newCol" type="int"/>
  32072. <doc>
  32073. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  32074. </doc>
  32075. </method>
  32076. <field name="staticFlag" type="boolean"
  32077. transient="false" volatile="false"
  32078. static="true" final="true" visibility="public"
  32079. deprecated="not deprecated">
  32080. </field>
  32081. <field name="bufpos" type="int"
  32082. transient="false" volatile="false"
  32083. static="false" final="false" visibility="public"
  32084. deprecated="not deprecated">
  32085. </field>
  32086. <field name="bufline" type="int[]"
  32087. transient="false" volatile="false"
  32088. static="false" final="false" visibility="protected"
  32089. deprecated="not deprecated">
  32090. </field>
  32091. <field name="bufcolumn" type="int[]"
  32092. transient="false" volatile="false"
  32093. static="false" final="false" visibility="protected"
  32094. deprecated="not deprecated">
  32095. </field>
  32096. <field name="column" type="int"
  32097. transient="false" volatile="false"
  32098. static="false" final="false" visibility="protected"
  32099. deprecated="not deprecated">
  32100. </field>
  32101. <field name="line" type="int"
  32102. transient="false" volatile="false"
  32103. static="false" final="false" visibility="protected"
  32104. deprecated="not deprecated">
  32105. </field>
  32106. <field name="prevCharIsCR" type="boolean"
  32107. transient="false" volatile="false"
  32108. static="false" final="false" visibility="protected"
  32109. deprecated="not deprecated">
  32110. </field>
  32111. <field name="prevCharIsLF" type="boolean"
  32112. transient="false" volatile="false"
  32113. static="false" final="false" visibility="protected"
  32114. deprecated="not deprecated">
  32115. </field>
  32116. <field name="inputStream" type="java.io.Reader"
  32117. transient="false" volatile="false"
  32118. static="false" final="false" visibility="protected"
  32119. deprecated="not deprecated">
  32120. </field>
  32121. <field name="buffer" type="char[]"
  32122. transient="false" volatile="false"
  32123. static="false" final="false" visibility="protected"
  32124. deprecated="not deprecated">
  32125. </field>
  32126. <field name="maxNextCharInd" type="int"
  32127. transient="false" volatile="false"
  32128. static="false" final="false" visibility="protected"
  32129. deprecated="not deprecated">
  32130. </field>
  32131. <field name="inBuf" type="int"
  32132. transient="false" volatile="false"
  32133. static="false" final="false" visibility="protected"
  32134. deprecated="not deprecated">
  32135. </field>
  32136. <field name="tabSize" type="int"
  32137. transient="false" volatile="false"
  32138. static="false" final="false" visibility="protected"
  32139. deprecated="not deprecated">
  32140. </field>
  32141. <doc>
  32142. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  32143. contain only ASCII characters (without unicode processing).
  32144. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32145. </doc>
  32146. </class>
  32147. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  32148. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  32149. <class name="Token" extends="java.lang.Object"
  32150. abstract="false"
  32151. static="false" final="false" visibility="public"
  32152. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32153. <constructor name="Token"
  32154. static="false" final="false" visibility="public"
  32155. deprecated="not deprecated">
  32156. </constructor>
  32157. <method name="toString" return="java.lang.String"
  32158. abstract="false" native="false" synchronized="false"
  32159. static="false" final="false" visibility="public"
  32160. deprecated="not deprecated">
  32161. <doc>
  32162. <![CDATA[Returns the image.]]>
  32163. </doc>
  32164. </method>
  32165. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32166. abstract="false" native="false" synchronized="false"
  32167. static="true" final="true" visibility="public"
  32168. deprecated="not deprecated">
  32169. <param name="ofKind" type="int"/>
  32170. <doc>
  32171. <![CDATA[Returns a new Token object, by default. However, if you want, you
  32172. can create and return subclass objects based on the value of ofKind.
  32173. Simply add the cases to the switch for all those special cases.
  32174. For example, if you have a subclass of Token called IDToken that
  32175. you want to create if ofKind is ID, simlpy add something like :
  32176. case MyParserConstants.ID : return new IDToken();
  32177. to the following switch statement. Then you can cast matchedToken
  32178. variable to the appropriate type and use it in your lexical actions.]]>
  32179. </doc>
  32180. </method>
  32181. <field name="kind" type="int"
  32182. transient="false" volatile="false"
  32183. static="false" final="false" visibility="public"
  32184. deprecated="not deprecated">
  32185. <doc>
  32186. <![CDATA[An integer that describes the kind of this token. This numbering
  32187. system is determined by JavaCCParser, and a table of these numbers is
  32188. stored in the file ...Constants.java.]]>
  32189. </doc>
  32190. </field>
  32191. <field name="beginLine" type="int"
  32192. transient="false" volatile="false"
  32193. static="false" final="false" visibility="public"
  32194. deprecated="not deprecated">
  32195. <doc>
  32196. <![CDATA[beginLine and beginColumn describe the position of the first character
  32197. of this token; endLine and endColumn describe the position of the
  32198. last character of this token.]]>
  32199. </doc>
  32200. </field>
  32201. <field name="beginColumn" type="int"
  32202. transient="false" volatile="false"
  32203. static="false" final="false" visibility="public"
  32204. deprecated="not deprecated">
  32205. <doc>
  32206. <![CDATA[beginLine and beginColumn describe the position of the first character
  32207. of this token; endLine and endColumn describe the position of the
  32208. last character of this token.]]>
  32209. </doc>
  32210. </field>
  32211. <field name="endLine" type="int"
  32212. transient="false" volatile="false"
  32213. static="false" final="false" visibility="public"
  32214. deprecated="not deprecated">
  32215. <doc>
  32216. <![CDATA[beginLine and beginColumn describe the position of the first character
  32217. of this token; endLine and endColumn describe the position of the
  32218. last character of this token.]]>
  32219. </doc>
  32220. </field>
  32221. <field name="endColumn" type="int"
  32222. transient="false" volatile="false"
  32223. static="false" final="false" visibility="public"
  32224. deprecated="not deprecated">
  32225. <doc>
  32226. <![CDATA[beginLine and beginColumn describe the position of the first character
  32227. of this token; endLine and endColumn describe the position of the
  32228. last character of this token.]]>
  32229. </doc>
  32230. </field>
  32231. <field name="image" type="java.lang.String"
  32232. transient="false" volatile="false"
  32233. static="false" final="false" visibility="public"
  32234. deprecated="not deprecated">
  32235. <doc>
  32236. <![CDATA[The string image of the token.]]>
  32237. </doc>
  32238. </field>
  32239. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  32240. transient="false" volatile="false"
  32241. static="false" final="false" visibility="public"
  32242. deprecated="not deprecated">
  32243. <doc>
  32244. <![CDATA[A reference to the next regular (non-special) token from the input
  32245. stream. If this is the last token from the input stream, or if the
  32246. token manager has not read tokens beyond this one, this field is
  32247. set to null. This is true only if this token is also a regular
  32248. token. Otherwise, see below for a description of the contents of
  32249. this field.]]>
  32250. </doc>
  32251. </field>
  32252. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  32253. transient="false" volatile="false"
  32254. static="false" final="false" visibility="public"
  32255. deprecated="not deprecated">
  32256. <doc>
  32257. <![CDATA[This field is used to access special tokens that occur prior to this
  32258. token, but after the immediately preceding regular (non-special) token.
  32259. If there are no such special tokens, this field is set to null.
  32260. When there are more than one such special token, this field refers
  32261. to the last of these special tokens, which in turn refers to the next
  32262. previous special token through its specialToken field, and so on
  32263. until the first special token (whose specialToken field is null).
  32264. The next fields of special tokens refer to other special tokens that
  32265. immediately follow it (without an intervening regular token). If there
  32266. is no such token, this field is null.]]>
  32267. </doc>
  32268. </field>
  32269. <doc>
  32270. <![CDATA[Describes the input token stream.
  32271. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32272. </doc>
  32273. </class>
  32274. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  32275. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32276. <class name="TokenMgrError" extends="java.lang.Error"
  32277. abstract="false"
  32278. static="false" final="false" visibility="public"
  32279. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32280. <constructor name="TokenMgrError"
  32281. static="false" final="false" visibility="public"
  32282. deprecated="not deprecated">
  32283. </constructor>
  32284. <constructor name="TokenMgrError" type="java.lang.String, int"
  32285. static="false" final="false" visibility="public"
  32286. deprecated="not deprecated">
  32287. </constructor>
  32288. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  32289. static="false" final="false" visibility="public"
  32290. deprecated="not deprecated">
  32291. </constructor>
  32292. <method name="addEscapes" return="java.lang.String"
  32293. abstract="false" native="false" synchronized="false"
  32294. static="true" final="true" visibility="protected"
  32295. deprecated="not deprecated">
  32296. <param name="str" type="java.lang.String"/>
  32297. <doc>
  32298. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  32299. equivalents in the given string]]>
  32300. </doc>
  32301. </method>
  32302. <method name="LexicalError" return="java.lang.String"
  32303. abstract="false" native="false" synchronized="false"
  32304. static="true" final="false" visibility="protected"
  32305. deprecated="not deprecated">
  32306. <param name="EOFSeen" type="boolean"/>
  32307. <param name="lexState" type="int"/>
  32308. <param name="errorLine" type="int"/>
  32309. <param name="errorColumn" type="int"/>
  32310. <param name="errorAfter" type="java.lang.String"/>
  32311. <param name="curChar" type="char"/>
  32312. <doc>
  32313. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  32314. token manager to indicate a lexical error.
  32315. Parameters :
  32316. EOFSeen : indicates if EOF caused the lexicl error
  32317. curLexState : lexical state in which this error occured
  32318. errorLine : line number when the error occured
  32319. errorColumn : column number when the error occured
  32320. errorAfter : prefix that was seen before this error occured
  32321. curchar : the offending character
  32322. Note: You can customize the lexical error message by modifying this method.]]>
  32323. </doc>
  32324. </method>
  32325. <method name="getMessage" return="java.lang.String"
  32326. abstract="false" native="false" synchronized="false"
  32327. static="false" final="false" visibility="public"
  32328. deprecated="not deprecated">
  32329. <doc>
  32330. <![CDATA[You can also modify the body of this method to customize your error messages.
  32331. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  32332. of end-users concern, so you can return something like :
  32333. "Internal Error : Please file a bug report .... "
  32334. from this method for such cases in the release version of your parser.]]>
  32335. </doc>
  32336. </method>
  32337. <doc>
  32338. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32339. </doc>
  32340. </class>
  32341. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32342. <doc>
  32343. <![CDATA[<p>
  32344. (DEPRECATED) This package contains code generated by JavaCC from the
  32345. Hadoop record syntax file rcc.jj. For details about the
  32346. record file syntax please @see org.apache.hadoop.record.
  32347. </p>
  32348. <p>
  32349. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  32350. </p>]]>
  32351. </doc>
  32352. </package>
  32353. <package name="org.apache.hadoop.record.meta">
  32354. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32355. <class name="FieldTypeInfo" extends="java.lang.Object"
  32356. abstract="false"
  32357. static="false" final="false" visibility="public"
  32358. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32359. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32360. abstract="false" native="false" synchronized="false"
  32361. static="false" final="false" visibility="public"
  32362. deprecated="not deprecated">
  32363. <doc>
  32364. <![CDATA[get the field's TypeID object]]>
  32365. </doc>
  32366. </method>
  32367. <method name="getFieldID" return="java.lang.String"
  32368. abstract="false" native="false" synchronized="false"
  32369. static="false" final="false" visibility="public"
  32370. deprecated="not deprecated">
  32371. <doc>
  32372. <![CDATA[get the field's id (name)]]>
  32373. </doc>
  32374. </method>
  32375. <method name="equals" return="boolean"
  32376. abstract="false" native="false" synchronized="false"
  32377. static="false" final="false" visibility="public"
  32378. deprecated="not deprecated">
  32379. <param name="o" type="java.lang.Object"/>
  32380. <doc>
  32381. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  32382. </doc>
  32383. </method>
  32384. <method name="hashCode" return="int"
  32385. abstract="false" native="false" synchronized="false"
  32386. static="false" final="false" visibility="public"
  32387. deprecated="not deprecated">
  32388. <doc>
  32389. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32390. be used as a hashmap key]]>
  32391. </doc>
  32392. </method>
  32393. <method name="equals" return="boolean"
  32394. abstract="false" native="false" synchronized="false"
  32395. static="false" final="false" visibility="public"
  32396. deprecated="not deprecated">
  32397. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  32398. </method>
  32399. <doc>
  32400. <![CDATA[Represents a type information for a field, which is made up of its
  32401. ID (name) and its type (a TypeID object).
  32402. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32403. </doc>
  32404. </class>
  32405. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32406. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  32407. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32408. abstract="false"
  32409. static="false" final="false" visibility="public"
  32410. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32411. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  32412. static="false" final="false" visibility="public"
  32413. deprecated="not deprecated">
  32414. </constructor>
  32415. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32416. abstract="false" native="false" synchronized="false"
  32417. static="false" final="false" visibility="public"
  32418. deprecated="not deprecated">
  32419. <doc>
  32420. <![CDATA[get the TypeID of the map's key element]]>
  32421. </doc>
  32422. </method>
  32423. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32424. abstract="false" native="false" synchronized="false"
  32425. static="false" final="false" visibility="public"
  32426. deprecated="not deprecated">
  32427. <doc>
  32428. <![CDATA[get the TypeID of the map's value element]]>
  32429. </doc>
  32430. </method>
  32431. <method name="equals" return="boolean"
  32432. abstract="false" native="false" synchronized="false"
  32433. static="false" final="false" visibility="public"
  32434. deprecated="not deprecated">
  32435. <param name="o" type="java.lang.Object"/>
  32436. <doc>
  32437. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  32438. same type]]>
  32439. </doc>
  32440. </method>
  32441. <method name="hashCode" return="int"
  32442. abstract="false" native="false" synchronized="false"
  32443. static="false" final="false" visibility="public"
  32444. deprecated="not deprecated">
  32445. <doc>
  32446. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32447. be used as a hashmap key]]>
  32448. </doc>
  32449. </method>
  32450. <doc>
  32451. <![CDATA[Represents typeID for a Map
  32452. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32453. </doc>
  32454. </class>
  32455. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  32456. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  32457. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  32458. abstract="false"
  32459. static="false" final="false" visibility="public"
  32460. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32461. <constructor name="RecordTypeInfo"
  32462. static="false" final="false" visibility="public"
  32463. deprecated="not deprecated">
  32464. <doc>
  32465. <![CDATA[Create an empty RecordTypeInfo object.]]>
  32466. </doc>
  32467. </constructor>
  32468. <constructor name="RecordTypeInfo" type="java.lang.String"
  32469. static="false" final="false" visibility="public"
  32470. deprecated="not deprecated">
  32471. <doc>
  32472. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  32473. @param name Name of the record]]>
  32474. </doc>
  32475. </constructor>
  32476. <method name="getName" return="java.lang.String"
  32477. abstract="false" native="false" synchronized="false"
  32478. static="false" final="false" visibility="public"
  32479. deprecated="not deprecated">
  32480. <doc>
  32481. <![CDATA[return the name of the record]]>
  32482. </doc>
  32483. </method>
  32484. <method name="setName"
  32485. abstract="false" native="false" synchronized="false"
  32486. static="false" final="false" visibility="public"
  32487. deprecated="not deprecated">
  32488. <param name="name" type="java.lang.String"/>
  32489. <doc>
  32490. <![CDATA[set the name of the record]]>
  32491. </doc>
  32492. </method>
  32493. <method name="addField"
  32494. abstract="false" native="false" synchronized="false"
  32495. static="false" final="false" visibility="public"
  32496. deprecated="not deprecated">
  32497. <param name="fieldName" type="java.lang.String"/>
  32498. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  32499. <doc>
  32500. <![CDATA[Add a field.
  32501. @param fieldName Name of the field
  32502. @param tid Type ID of the field]]>
  32503. </doc>
  32504. </method>
  32505. <method name="getFieldTypeInfos" return="java.util.Collection"
  32506. abstract="false" native="false" synchronized="false"
  32507. static="false" final="false" visibility="public"
  32508. deprecated="not deprecated">
  32509. <doc>
  32510. <![CDATA[Return a collection of field type infos]]>
  32511. </doc>
  32512. </method>
  32513. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  32514. abstract="false" native="false" synchronized="false"
  32515. static="false" final="false" visibility="public"
  32516. deprecated="not deprecated">
  32517. <param name="name" type="java.lang.String"/>
  32518. <doc>
  32519. <![CDATA[Return the type info of a nested record. We only consider nesting
  32520. to one level.
  32521. @param name Name of the nested record]]>
  32522. </doc>
  32523. </method>
  32524. <method name="serialize"
  32525. abstract="false" native="false" synchronized="false"
  32526. static="false" final="false" visibility="public"
  32527. deprecated="not deprecated">
  32528. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32529. <param name="tag" type="java.lang.String"/>
  32530. <exception name="IOException" type="java.io.IOException"/>
  32531. <doc>
  32532. <![CDATA[Serialize the type information for a record]]>
  32533. </doc>
  32534. </method>
  32535. <method name="deserialize"
  32536. abstract="false" native="false" synchronized="false"
  32537. static="false" final="false" visibility="public"
  32538. deprecated="not deprecated">
  32539. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32540. <param name="tag" type="java.lang.String"/>
  32541. <exception name="IOException" type="java.io.IOException"/>
  32542. <doc>
  32543. <![CDATA[Deserialize the type information for a record]]>
  32544. </doc>
  32545. </method>
  32546. <method name="compareTo" return="int"
  32547. abstract="false" native="false" synchronized="false"
  32548. static="false" final="false" visibility="public"
  32549. deprecated="not deprecated">
  32550. <param name="peer_" type="java.lang.Object"/>
  32551. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  32552. <doc>
  32553. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  32554. for anything besides de/serializing.
  32555. So we always throw an exception.
  32556. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  32557. </doc>
  32558. </method>
  32559. <doc>
  32560. <![CDATA[A record's Type Information object which can read/write itself.
  32561. Type information for a record comprises metadata about the record,
  32562. as well as a collection of type information for each field in the record.
  32563. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32564. </doc>
  32565. </class>
  32566. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  32567. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  32568. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32569. abstract="false"
  32570. static="false" final="false" visibility="public"
  32571. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32572. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  32573. static="false" final="false" visibility="public"
  32574. deprecated="not deprecated">
  32575. <doc>
  32576. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  32577. </doc>
  32578. </constructor>
  32579. <method name="getFieldTypeInfos" return="java.util.Collection"
  32580. abstract="false" native="false" synchronized="false"
  32581. static="false" final="false" visibility="public"
  32582. deprecated="not deprecated">
  32583. </method>
  32584. <method name="equals" return="boolean"
  32585. abstract="false" native="false" synchronized="false"
  32586. static="false" final="false" visibility="public"
  32587. deprecated="not deprecated">
  32588. <param name="o" type="java.lang.Object"/>
  32589. </method>
  32590. <method name="hashCode" return="int"
  32591. abstract="false" native="false" synchronized="false"
  32592. static="false" final="false" visibility="public"
  32593. deprecated="not deprecated">
  32594. </method>
  32595. <doc>
  32596. <![CDATA[Represents typeID for a struct
  32597. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32598. </doc>
  32599. </class>
  32600. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  32601. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  32602. <class name="TypeID" extends="java.lang.Object"
  32603. abstract="false"
  32604. static="false" final="false" visibility="public"
  32605. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32606. <method name="getTypeVal" return="byte"
  32607. abstract="false" native="false" synchronized="false"
  32608. static="false" final="false" visibility="public"
  32609. deprecated="not deprecated">
  32610. <doc>
  32611. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  32612. </doc>
  32613. </method>
  32614. <method name="equals" return="boolean"
  32615. abstract="false" native="false" synchronized="false"
  32616. static="false" final="false" visibility="public"
  32617. deprecated="not deprecated">
  32618. <param name="o" type="java.lang.Object"/>
  32619. <doc>
  32620. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  32621. </doc>
  32622. </method>
  32623. <method name="hashCode" return="int"
  32624. abstract="false" native="false" synchronized="false"
  32625. static="false" final="false" visibility="public"
  32626. deprecated="not deprecated">
  32627. <doc>
  32628. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32629. be used as a hashmap key]]>
  32630. </doc>
  32631. </method>
  32632. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32633. transient="false" volatile="false"
  32634. static="true" final="true" visibility="public"
  32635. deprecated="not deprecated">
  32636. <doc>
  32637. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  32638. </doc>
  32639. </field>
  32640. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32641. transient="false" volatile="false"
  32642. static="true" final="true" visibility="public"
  32643. deprecated="not deprecated">
  32644. </field>
  32645. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32646. transient="false" volatile="false"
  32647. static="true" final="true" visibility="public"
  32648. deprecated="not deprecated">
  32649. </field>
  32650. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32651. transient="false" volatile="false"
  32652. static="true" final="true" visibility="public"
  32653. deprecated="not deprecated">
  32654. </field>
  32655. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32656. transient="false" volatile="false"
  32657. static="true" final="true" visibility="public"
  32658. deprecated="not deprecated">
  32659. </field>
  32660. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32661. transient="false" volatile="false"
  32662. static="true" final="true" visibility="public"
  32663. deprecated="not deprecated">
  32664. </field>
  32665. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32666. transient="false" volatile="false"
  32667. static="true" final="true" visibility="public"
  32668. deprecated="not deprecated">
  32669. </field>
  32670. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32671. transient="false" volatile="false"
  32672. static="true" final="true" visibility="public"
  32673. deprecated="not deprecated">
  32674. </field>
  32675. <field name="typeVal" type="byte"
  32676. transient="false" volatile="false"
  32677. static="false" final="false" visibility="protected"
  32678. deprecated="not deprecated">
  32679. </field>
  32680. <doc>
  32681. <![CDATA[Represents typeID for basic types.
  32682. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32683. </doc>
  32684. </class>
  32685. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  32686. <!-- start class org.apache.hadoop.record.meta.Utils -->
  32687. <class name="Utils" extends="java.lang.Object"
  32688. abstract="false"
  32689. static="false" final="false" visibility="public"
  32690. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32691. <method name="skip"
  32692. abstract="false" native="false" synchronized="false"
  32693. static="true" final="false" visibility="public"
  32694. deprecated="not deprecated">
  32695. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32696. <param name="tag" type="java.lang.String"/>
  32697. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  32698. <exception name="IOException" type="java.io.IOException"/>
  32699. <doc>
  32700. <![CDATA[read/skip bytes from stream based on a type]]>
  32701. </doc>
  32702. </method>
  32703. <doc>
  32704. <![CDATA[Various utility functions for Hadooop record I/O platform.
  32705. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32706. </doc>
  32707. </class>
  32708. <!-- end class org.apache.hadoop.record.meta.Utils -->
  32709. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  32710. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32711. abstract="false"
  32712. static="false" final="false" visibility="public"
  32713. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32714. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32715. static="false" final="false" visibility="public"
  32716. deprecated="not deprecated">
  32717. </constructor>
  32718. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32719. abstract="false" native="false" synchronized="false"
  32720. static="false" final="false" visibility="public"
  32721. deprecated="not deprecated">
  32722. </method>
  32723. <method name="equals" return="boolean"
  32724. abstract="false" native="false" synchronized="false"
  32725. static="false" final="false" visibility="public"
  32726. deprecated="not deprecated">
  32727. <param name="o" type="java.lang.Object"/>
  32728. <doc>
  32729. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  32730. same type]]>
  32731. </doc>
  32732. </method>
  32733. <method name="hashCode" return="int"
  32734. abstract="false" native="false" synchronized="false"
  32735. static="false" final="false" visibility="public"
  32736. deprecated="not deprecated">
  32737. <doc>
  32738. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32739. be used as a hashmap key]]>
  32740. </doc>
  32741. </method>
  32742. <doc>
  32743. <![CDATA[Represents typeID for vector.
  32744. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32745. </doc>
  32746. </class>
  32747. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  32748. </package>
  32749. <package name="org.apache.hadoop.security">
  32750. <!-- start class org.apache.hadoop.security.AccessControlException -->
  32751. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  32752. abstract="false"
  32753. static="false" final="false" visibility="public"
  32754. deprecated="not deprecated">
  32755. <constructor name="AccessControlException"
  32756. static="false" final="false" visibility="public"
  32757. deprecated="not deprecated">
  32758. <doc>
  32759. <![CDATA[Default constructor is needed for unwrapping from
  32760. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  32761. </doc>
  32762. </constructor>
  32763. <constructor name="AccessControlException" type="java.lang.String"
  32764. static="false" final="false" visibility="public"
  32765. deprecated="not deprecated">
  32766. <doc>
  32767. <![CDATA[Constructs an {@link AccessControlException}
  32768. with the specified detail message.
  32769. @param s the detail message.]]>
  32770. </doc>
  32771. </constructor>
  32772. <constructor name="AccessControlException" type="java.lang.Throwable"
  32773. static="false" final="false" visibility="public"
  32774. deprecated="not deprecated">
  32775. <doc>
  32776. <![CDATA[Constructs a new exception with the specified cause and a detail
  32777. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  32778. typically contains the class and detail message of <tt>cause</tt>).
  32779. @param cause the cause (which is saved for later retrieval by the
  32780. {@link #getCause()} method). (A <tt>null</tt> value is
  32781. permitted, and indicates that the cause is nonexistent or
  32782. unknown.)]]>
  32783. </doc>
  32784. </constructor>
  32785. <doc>
  32786. <![CDATA[An exception class for access control related issues.]]>
  32787. </doc>
  32788. </class>
  32789. <!-- end class org.apache.hadoop.security.AccessControlException -->
  32790. <!-- start class org.apache.hadoop.security.Credentials -->
  32791. <class name="Credentials" extends="java.lang.Object"
  32792. abstract="false"
  32793. static="false" final="false" visibility="public"
  32794. deprecated="not deprecated">
  32795. <implements name="org.apache.hadoop.io.Writable"/>
  32796. <constructor name="Credentials"
  32797. static="false" final="false" visibility="public"
  32798. deprecated="not deprecated">
  32799. <doc>
  32800. <![CDATA[Create an empty credentials instance]]>
  32801. </doc>
  32802. </constructor>
  32803. <constructor name="Credentials" type="org.apache.hadoop.security.Credentials"
  32804. static="false" final="false" visibility="public"
  32805. deprecated="not deprecated">
  32806. <doc>
  32807. <![CDATA[Create a copy of the given credentials
  32808. @param credentials to copy]]>
  32809. </doc>
  32810. </constructor>
  32811. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  32812. abstract="false" native="false" synchronized="false"
  32813. static="false" final="false" visibility="public"
  32814. deprecated="not deprecated">
  32815. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32816. <doc>
  32817. <![CDATA[Returns the Token object for the alias
  32818. @param alias the alias for the Token
  32819. @return token for this alias]]>
  32820. </doc>
  32821. </method>
  32822. <method name="addToken"
  32823. abstract="false" native="false" synchronized="false"
  32824. static="false" final="false" visibility="public"
  32825. deprecated="not deprecated">
  32826. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32827. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  32828. <doc>
  32829. <![CDATA[Add a token in the storage (in memory)
  32830. @param alias the alias for the key
  32831. @param t the token object]]>
  32832. </doc>
  32833. </method>
  32834. <method name="getAllTokens" return="java.util.Collection"
  32835. abstract="false" native="false" synchronized="false"
  32836. static="false" final="false" visibility="public"
  32837. deprecated="not deprecated">
  32838. <doc>
  32839. <![CDATA[Return all the tokens in the in-memory map]]>
  32840. </doc>
  32841. </method>
  32842. <method name="numberOfTokens" return="int"
  32843. abstract="false" native="false" synchronized="false"
  32844. static="false" final="false" visibility="public"
  32845. deprecated="not deprecated">
  32846. <doc>
  32847. <![CDATA[@return number of Tokens in the in-memory map]]>
  32848. </doc>
  32849. </method>
  32850. <method name="getSecretKey" return="byte[]"
  32851. abstract="false" native="false" synchronized="false"
  32852. static="false" final="false" visibility="public"
  32853. deprecated="not deprecated">
  32854. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32855. <doc>
  32856. <![CDATA[Returns the key bytes for the alias
  32857. @param alias the alias for the key
  32858. @return key for this alias]]>
  32859. </doc>
  32860. </method>
  32861. <method name="numberOfSecretKeys" return="int"
  32862. abstract="false" native="false" synchronized="false"
  32863. static="false" final="false" visibility="public"
  32864. deprecated="not deprecated">
  32865. <doc>
  32866. <![CDATA[@return number of keys in the in-memory map]]>
  32867. </doc>
  32868. </method>
  32869. <method name="addSecretKey"
  32870. abstract="false" native="false" synchronized="false"
  32871. static="false" final="false" visibility="public"
  32872. deprecated="not deprecated">
  32873. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32874. <param name="key" type="byte[]"/>
  32875. <doc>
  32876. <![CDATA[Set the key for an alias
  32877. @param alias the alias for the key
  32878. @param key the key bytes]]>
  32879. </doc>
  32880. </method>
  32881. <method name="removeSecretKey"
  32882. abstract="false" native="false" synchronized="false"
  32883. static="false" final="false" visibility="public"
  32884. deprecated="not deprecated">
  32885. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32886. <doc>
  32887. <![CDATA[Remove the key for a given alias.
  32888. @param alias the alias for the key]]>
  32889. </doc>
  32890. </method>
  32891. <method name="getAllSecretKeys" return="java.util.List"
  32892. abstract="false" native="false" synchronized="false"
  32893. static="false" final="false" visibility="public"
  32894. deprecated="not deprecated">
  32895. <doc>
  32896. <![CDATA[Return all the secret key entries in the in-memory map]]>
  32897. </doc>
  32898. </method>
  32899. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  32900. abstract="false" native="false" synchronized="false"
  32901. static="true" final="false" visibility="public"
  32902. deprecated="not deprecated">
  32903. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  32904. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32905. <exception name="IOException" type="java.io.IOException"/>
  32906. <doc>
  32907. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  32908. therein in the passed UGI
  32909. @param filename
  32910. @param conf
  32911. @throws IOException]]>
  32912. </doc>
  32913. </method>
  32914. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  32915. abstract="false" native="false" synchronized="false"
  32916. static="true" final="false" visibility="public"
  32917. deprecated="not deprecated">
  32918. <param name="filename" type="java.io.File"/>
  32919. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32920. <exception name="IOException" type="java.io.IOException"/>
  32921. <doc>
  32922. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  32923. therein in the passed UGI
  32924. @param filename
  32925. @param conf
  32926. @throws IOException]]>
  32927. </doc>
  32928. </method>
  32929. <method name="readTokenStorageStream"
  32930. abstract="false" native="false" synchronized="false"
  32931. static="false" final="false" visibility="public"
  32932. deprecated="not deprecated">
  32933. <param name="in" type="java.io.DataInputStream"/>
  32934. <exception name="IOException" type="java.io.IOException"/>
  32935. <doc>
  32936. <![CDATA[Convenience method for reading a token storage file directly from a
  32937. datainputstream]]>
  32938. </doc>
  32939. </method>
  32940. <method name="writeTokenStorageToStream"
  32941. abstract="false" native="false" synchronized="false"
  32942. static="false" final="false" visibility="public"
  32943. deprecated="not deprecated">
  32944. <param name="os" type="java.io.DataOutputStream"/>
  32945. <exception name="IOException" type="java.io.IOException"/>
  32946. </method>
  32947. <method name="writeTokenStorageFile"
  32948. abstract="false" native="false" synchronized="false"
  32949. static="false" final="false" visibility="public"
  32950. deprecated="not deprecated">
  32951. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  32952. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32953. <exception name="IOException" type="java.io.IOException"/>
  32954. </method>
  32955. <method name="write"
  32956. abstract="false" native="false" synchronized="false"
  32957. static="false" final="false" visibility="public"
  32958. deprecated="not deprecated">
  32959. <param name="out" type="java.io.DataOutput"/>
  32960. <exception name="IOException" type="java.io.IOException"/>
  32961. <doc>
  32962. <![CDATA[Stores all the keys to DataOutput
  32963. @param out
  32964. @throws IOException]]>
  32965. </doc>
  32966. </method>
  32967. <method name="readFields"
  32968. abstract="false" native="false" synchronized="false"
  32969. static="false" final="false" visibility="public"
  32970. deprecated="not deprecated">
  32971. <param name="in" type="java.io.DataInput"/>
  32972. <exception name="IOException" type="java.io.IOException"/>
  32973. <doc>
  32974. <![CDATA[Loads all the keys
  32975. @param in
  32976. @throws IOException]]>
  32977. </doc>
  32978. </method>
  32979. <method name="addAll"
  32980. abstract="false" native="false" synchronized="false"
  32981. static="false" final="false" visibility="public"
  32982. deprecated="not deprecated">
  32983. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  32984. <doc>
  32985. <![CDATA[Copy all of the credentials from one credential object into another.
  32986. Existing secrets and tokens are overwritten.
  32987. @param other the credentials to copy]]>
  32988. </doc>
  32989. </method>
  32990. <method name="mergeAll"
  32991. abstract="false" native="false" synchronized="false"
  32992. static="false" final="false" visibility="public"
  32993. deprecated="not deprecated">
  32994. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  32995. <doc>
  32996. <![CDATA[Copy all of the credentials from one credential object into another.
  32997. Existing secrets and tokens are not overwritten.
  32998. @param other the credentials to copy]]>
  32999. </doc>
  33000. </method>
  33001. <doc>
  33002. <![CDATA[A class that provides the facilities of reading and writing
  33003. secret keys and Tokens.]]>
  33004. </doc>
  33005. </class>
  33006. <!-- end class org.apache.hadoop.security.Credentials -->
  33007. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  33008. <interface name="GroupMappingServiceProvider" abstract="true"
  33009. static="false" final="false" visibility="public"
  33010. deprecated="not deprecated">
  33011. <method name="getGroups" return="java.util.List"
  33012. abstract="false" native="false" synchronized="false"
  33013. static="false" final="false" visibility="public"
  33014. deprecated="not deprecated">
  33015. <param name="user" type="java.lang.String"/>
  33016. <exception name="IOException" type="java.io.IOException"/>
  33017. <doc>
  33018. <![CDATA[Get all various group memberships of a given user.
  33019. Returns EMPTY list in case of non-existing user
  33020. @param user User's name
  33021. @return group memberships of user
  33022. @throws IOException]]>
  33023. </doc>
  33024. </method>
  33025. <method name="cacheGroupsRefresh"
  33026. abstract="false" native="false" synchronized="false"
  33027. static="false" final="false" visibility="public"
  33028. deprecated="not deprecated">
  33029. <exception name="IOException" type="java.io.IOException"/>
  33030. <doc>
  33031. <![CDATA[Refresh the cache of groups and user mapping
  33032. @throws IOException]]>
  33033. </doc>
  33034. </method>
  33035. <method name="cacheGroupsAdd"
  33036. abstract="false" native="false" synchronized="false"
  33037. static="false" final="false" visibility="public"
  33038. deprecated="not deprecated">
  33039. <param name="groups" type="java.util.List"/>
  33040. <exception name="IOException" type="java.io.IOException"/>
  33041. <doc>
  33042. <![CDATA[Caches the group user information
  33043. @param groups list of groups to add to cache
  33044. @throws IOException]]>
  33045. </doc>
  33046. </method>
  33047. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  33048. transient="false" volatile="false"
  33049. static="true" final="true" visibility="public"
  33050. deprecated="not deprecated">
  33051. </field>
  33052. <doc>
  33053. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  33054. used by {@link Groups}.]]>
  33055. </doc>
  33056. </interface>
  33057. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  33058. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  33059. <interface name="IdMappingServiceProvider" abstract="true"
  33060. static="false" final="false" visibility="public"
  33061. deprecated="not deprecated">
  33062. <method name="getUid" return="int"
  33063. abstract="false" native="false" synchronized="false"
  33064. static="false" final="false" visibility="public"
  33065. deprecated="not deprecated">
  33066. <param name="user" type="java.lang.String"/>
  33067. <exception name="IOException" type="java.io.IOException"/>
  33068. </method>
  33069. <method name="getGid" return="int"
  33070. abstract="false" native="false" synchronized="false"
  33071. static="false" final="false" visibility="public"
  33072. deprecated="not deprecated">
  33073. <param name="group" type="java.lang.String"/>
  33074. <exception name="IOException" type="java.io.IOException"/>
  33075. </method>
  33076. <method name="getUserName" return="java.lang.String"
  33077. abstract="false" native="false" synchronized="false"
  33078. static="false" final="false" visibility="public"
  33079. deprecated="not deprecated">
  33080. <param name="uid" type="int"/>
  33081. <param name="unknown" type="java.lang.String"/>
  33082. </method>
  33083. <method name="getGroupName" return="java.lang.String"
  33084. abstract="false" native="false" synchronized="false"
  33085. static="false" final="false" visibility="public"
  33086. deprecated="not deprecated">
  33087. <param name="gid" type="int"/>
  33088. <param name="unknown" type="java.lang.String"/>
  33089. </method>
  33090. <method name="getUidAllowingUnknown" return="int"
  33091. abstract="false" native="false" synchronized="false"
  33092. static="false" final="false" visibility="public"
  33093. deprecated="not deprecated">
  33094. <param name="user" type="java.lang.String"/>
  33095. </method>
  33096. <method name="getGidAllowingUnknown" return="int"
  33097. abstract="false" native="false" synchronized="false"
  33098. static="false" final="false" visibility="public"
  33099. deprecated="not deprecated">
  33100. <param name="group" type="java.lang.String"/>
  33101. </method>
  33102. <doc>
  33103. <![CDATA[An interface for the implementation of <userId, userName> mapping
  33104. and <groupId, groupName> mapping]]>
  33105. </doc>
  33106. </interface>
  33107. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  33108. <!-- start class org.apache.hadoop.security.KerberosAuthException -->
  33109. <class name="KerberosAuthException" extends="java.io.IOException"
  33110. abstract="false"
  33111. static="false" final="false" visibility="public"
  33112. deprecated="not deprecated">
  33113. <constructor name="KerberosAuthException" type="java.lang.String"
  33114. static="false" final="false" visibility="public"
  33115. deprecated="not deprecated">
  33116. </constructor>
  33117. <constructor name="KerberosAuthException" type="java.lang.Throwable"
  33118. static="false" final="false" visibility="public"
  33119. deprecated="not deprecated">
  33120. </constructor>
  33121. <constructor name="KerberosAuthException" type="java.lang.String, java.lang.Throwable"
  33122. static="false" final="false" visibility="public"
  33123. deprecated="not deprecated">
  33124. </constructor>
  33125. <method name="setUser"
  33126. abstract="false" native="false" synchronized="false"
  33127. static="false" final="false" visibility="public"
  33128. deprecated="not deprecated">
  33129. <param name="u" type="java.lang.String"/>
  33130. </method>
  33131. <method name="setPrincipal"
  33132. abstract="false" native="false" synchronized="false"
  33133. static="false" final="false" visibility="public"
  33134. deprecated="not deprecated">
  33135. <param name="p" type="java.lang.String"/>
  33136. </method>
  33137. <method name="setKeytabFile"
  33138. abstract="false" native="false" synchronized="false"
  33139. static="false" final="false" visibility="public"
  33140. deprecated="not deprecated">
  33141. <param name="k" type="java.lang.String"/>
  33142. </method>
  33143. <method name="setTicketCacheFile"
  33144. abstract="false" native="false" synchronized="false"
  33145. static="false" final="false" visibility="public"
  33146. deprecated="not deprecated">
  33147. <param name="t" type="java.lang.String"/>
  33148. </method>
  33149. <method name="getInitialMessage" return="java.lang.String"
  33150. abstract="false" native="false" synchronized="false"
  33151. static="false" final="false" visibility="public"
  33152. deprecated="not deprecated">
  33153. <doc>
  33154. <![CDATA[@return The initial message, or null if not set.]]>
  33155. </doc>
  33156. </method>
  33157. <method name="getKeytabFile" return="java.lang.String"
  33158. abstract="false" native="false" synchronized="false"
  33159. static="false" final="false" visibility="public"
  33160. deprecated="not deprecated">
  33161. <doc>
  33162. <![CDATA[@return The keytab file path, or null if not set.]]>
  33163. </doc>
  33164. </method>
  33165. <method name="getPrincipal" return="java.lang.String"
  33166. abstract="false" native="false" synchronized="false"
  33167. static="false" final="false" visibility="public"
  33168. deprecated="not deprecated">
  33169. <doc>
  33170. <![CDATA[@return The principal, or null if not set.]]>
  33171. </doc>
  33172. </method>
  33173. <method name="getTicketCacheFile" return="java.lang.String"
  33174. abstract="false" native="false" synchronized="false"
  33175. static="false" final="false" visibility="public"
  33176. deprecated="not deprecated">
  33177. <doc>
  33178. <![CDATA[@return The ticket cache file path, or null if not set.]]>
  33179. </doc>
  33180. </method>
  33181. <method name="getUser" return="java.lang.String"
  33182. abstract="false" native="false" synchronized="false"
  33183. static="false" final="false" visibility="public"
  33184. deprecated="not deprecated">
  33185. <doc>
  33186. <![CDATA[@return The user, or null if not set.]]>
  33187. </doc>
  33188. </method>
  33189. <method name="getMessage" return="java.lang.String"
  33190. abstract="false" native="false" synchronized="false"
  33191. static="false" final="false" visibility="public"
  33192. deprecated="not deprecated">
  33193. </method>
  33194. <doc>
  33195. <![CDATA[Thrown when {@link UserGroupInformation} failed with an unrecoverable error,
  33196. such as failure in kerberos login/logout, invalid subject etc.
  33197. Caller should not retry when catching this exception.]]>
  33198. </doc>
  33199. </class>
  33200. <!-- end class org.apache.hadoop.security.KerberosAuthException -->
  33201. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  33202. <class name="SecurityUtil" extends="java.lang.Object"
  33203. abstract="false"
  33204. static="false" final="true" visibility="public"
  33205. deprecated="not deprecated">
  33206. <method name="setConfiguration"
  33207. abstract="false" native="false" synchronized="false"
  33208. static="true" final="false" visibility="public"
  33209. deprecated="not deprecated">
  33210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33211. </method>
  33212. <method name="isOriginalTGT" return="boolean"
  33213. abstract="false" native="false" synchronized="false"
  33214. static="true" final="false" visibility="protected"
  33215. deprecated="not deprecated">
  33216. <param name="ticket" type="javax.security.auth.kerberos.KerberosTicket"/>
  33217. <doc>
  33218. <![CDATA[Check whether the server principal is the TGS's principal
  33219. @param ticket the original TGT (the ticket that is obtained when a
  33220. kinit is done)
  33221. @return true or false]]>
  33222. </doc>
  33223. </method>
  33224. <method name="getServerPrincipal" return="java.lang.String"
  33225. abstract="false" native="false" synchronized="false"
  33226. static="true" final="false" visibility="public"
  33227. deprecated="not deprecated">
  33228. <param name="principalConfig" type="java.lang.String"/>
  33229. <param name="hostname" type="java.lang.String"/>
  33230. <exception name="IOException" type="java.io.IOException"/>
  33231. <doc>
  33232. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  33233. names. It replaces hostname pattern with hostname, which should be
  33234. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  33235. dynamically looked-up fqdn of the current host instead.
  33236. @param principalConfig
  33237. the Kerberos principal name conf value to convert
  33238. @param hostname
  33239. the fully-qualified domain name used for substitution
  33240. @return converted Kerberos principal name
  33241. @throws IOException if the client address cannot be determined]]>
  33242. </doc>
  33243. </method>
  33244. <method name="getServerPrincipal" return="java.lang.String"
  33245. abstract="false" native="false" synchronized="false"
  33246. static="true" final="false" visibility="public"
  33247. deprecated="not deprecated">
  33248. <param name="principalConfig" type="java.lang.String"/>
  33249. <param name="addr" type="java.net.InetAddress"/>
  33250. <exception name="IOException" type="java.io.IOException"/>
  33251. <doc>
  33252. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  33253. This method is similar to {@link #getServerPrincipal(String, String)},
  33254. except 1) the reverse DNS lookup from addr to hostname is done only when
  33255. necessary, 2) param addr can't be null (no default behavior of using local
  33256. hostname when addr is null).
  33257. @param principalConfig
  33258. Kerberos principal name pattern to convert
  33259. @param addr
  33260. InetAddress of the host used for substitution
  33261. @return converted Kerberos principal name
  33262. @throws IOException if the client address cannot be determined]]>
  33263. </doc>
  33264. </method>
  33265. <method name="login"
  33266. abstract="false" native="false" synchronized="false"
  33267. static="true" final="false" visibility="public"
  33268. deprecated="not deprecated">
  33269. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33270. <param name="keytabFileKey" type="java.lang.String"/>
  33271. <param name="userNameKey" type="java.lang.String"/>
  33272. <exception name="IOException" type="java.io.IOException"/>
  33273. <doc>
  33274. <![CDATA[Login as a principal specified in config. Substitute $host in
  33275. user's Kerberos principal name with a dynamically looked-up fully-qualified
  33276. domain name of the current host.
  33277. @param conf
  33278. conf to use
  33279. @param keytabFileKey
  33280. the key to look for keytab file in conf
  33281. @param userNameKey
  33282. the key to look for user's Kerberos principal name in conf
  33283. @throws IOException if login fails]]>
  33284. </doc>
  33285. </method>
  33286. <method name="login"
  33287. abstract="false" native="false" synchronized="false"
  33288. static="true" final="false" visibility="public"
  33289. deprecated="not deprecated">
  33290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33291. <param name="keytabFileKey" type="java.lang.String"/>
  33292. <param name="userNameKey" type="java.lang.String"/>
  33293. <param name="hostname" type="java.lang.String"/>
  33294. <exception name="IOException" type="java.io.IOException"/>
  33295. <doc>
  33296. <![CDATA[Login as a principal specified in config. Substitute $host in user's Kerberos principal
  33297. name with hostname. If non-secure mode - return. If no keytab available -
  33298. bail out with an exception
  33299. @param conf
  33300. conf to use
  33301. @param keytabFileKey
  33302. the key to look for keytab file in conf
  33303. @param userNameKey
  33304. the key to look for user's Kerberos principal name in conf
  33305. @param hostname
  33306. hostname to use for substitution
  33307. @throws IOException if the config doesn't specify a keytab]]>
  33308. </doc>
  33309. </method>
  33310. <method name="buildDTServiceName" return="java.lang.String"
  33311. abstract="false" native="false" synchronized="false"
  33312. static="true" final="false" visibility="public"
  33313. deprecated="not deprecated">
  33314. <param name="uri" type="java.net.URI"/>
  33315. <param name="defPort" type="int"/>
  33316. <doc>
  33317. <![CDATA[create the service name for a Delegation token
  33318. @param uri of the service
  33319. @param defPort is used if the uri lacks a port
  33320. @return the token service, or null if no authority
  33321. @see #buildTokenService(InetSocketAddress)]]>
  33322. </doc>
  33323. </method>
  33324. <method name="getHostFromPrincipal" return="java.lang.String"
  33325. abstract="false" native="false" synchronized="false"
  33326. static="true" final="false" visibility="public"
  33327. deprecated="not deprecated">
  33328. <param name="principalName" type="java.lang.String"/>
  33329. <doc>
  33330. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  33331. @param principalName principal name of format as described above
  33332. @return host name if the the string conforms to the above format, else null]]>
  33333. </doc>
  33334. </method>
  33335. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  33336. abstract="false" native="false" synchronized="false"
  33337. static="true" final="false" visibility="public"
  33338. deprecated="not deprecated">
  33339. <param name="protocol" type="java.lang.Class"/>
  33340. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33341. <doc>
  33342. <![CDATA[Look up the KerberosInfo for a given protocol. It searches all known
  33343. SecurityInfo providers.
  33344. @param protocol the protocol class to get the information for
  33345. @param conf configuration object
  33346. @return the KerberosInfo or null if it has no KerberosInfo defined]]>
  33347. </doc>
  33348. </method>
  33349. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  33350. abstract="false" native="false" synchronized="false"
  33351. static="true" final="false" visibility="public"
  33352. deprecated="not deprecated">
  33353. <param name="protocol" type="java.lang.Class"/>
  33354. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33355. <doc>
  33356. <![CDATA[Look up the TokenInfo for a given protocol. It searches all known
  33357. SecurityInfo providers.
  33358. @param protocol The protocol class to get the information for.
  33359. @param conf Configuration object
  33360. @return the TokenInfo or null if it has no KerberosInfo defined]]>
  33361. </doc>
  33362. </method>
  33363. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  33364. abstract="false" native="false" synchronized="false"
  33365. static="true" final="false" visibility="public"
  33366. deprecated="not deprecated">
  33367. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33368. <doc>
  33369. <![CDATA[Decode the given token's service field into an InetAddress
  33370. @param token from which to obtain the service
  33371. @return InetAddress for the service]]>
  33372. </doc>
  33373. </method>
  33374. <method name="setTokenService"
  33375. abstract="false" native="false" synchronized="false"
  33376. static="true" final="false" visibility="public"
  33377. deprecated="not deprecated">
  33378. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33379. <param name="addr" type="java.net.InetSocketAddress"/>
  33380. <doc>
  33381. <![CDATA[Set the given token's service to the format expected by the RPC client
  33382. @param token a delegation token
  33383. @param addr the socket for the rpc connection]]>
  33384. </doc>
  33385. </method>
  33386. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  33387. abstract="false" native="false" synchronized="false"
  33388. static="true" final="false" visibility="public"
  33389. deprecated="not deprecated">
  33390. <param name="addr" type="java.net.InetSocketAddress"/>
  33391. <doc>
  33392. <![CDATA[Construct the service key for a token
  33393. @param addr InetSocketAddress of remote connection with a token
  33394. @return "ip:port" or "host:port" depending on the value of
  33395. hadoop.security.token.service.use_ip]]>
  33396. </doc>
  33397. </method>
  33398. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  33399. abstract="false" native="false" synchronized="false"
  33400. static="true" final="false" visibility="public"
  33401. deprecated="not deprecated">
  33402. <param name="uri" type="java.net.URI"/>
  33403. <doc>
  33404. <![CDATA[Construct the service key for a token
  33405. @param uri of remote connection with a token
  33406. @return "ip:port" or "host:port" depending on the value of
  33407. hadoop.security.token.service.use_ip]]>
  33408. </doc>
  33409. </method>
  33410. <method name="doAsLoginUserOrFatal" return="T"
  33411. abstract="false" native="false" synchronized="false"
  33412. static="true" final="false" visibility="public"
  33413. deprecated="not deprecated">
  33414. <param name="action" type="java.security.PrivilegedAction"/>
  33415. <doc>
  33416. <![CDATA[Perform the given action as the daemon's login user. If the login
  33417. user cannot be determined, this will log a FATAL error and exit
  33418. the whole JVM.]]>
  33419. </doc>
  33420. </method>
  33421. <method name="doAsLoginUser" return="T"
  33422. abstract="false" native="false" synchronized="false"
  33423. static="true" final="false" visibility="public"
  33424. deprecated="not deprecated">
  33425. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  33426. <exception name="IOException" type="java.io.IOException"/>
  33427. <doc>
  33428. <![CDATA[Perform the given action as the daemon's login user. If an
  33429. InterruptedException is thrown, it is converted to an IOException.
  33430. @param action the action to perform
  33431. @return the result of the action
  33432. @throws IOException in the event of error]]>
  33433. </doc>
  33434. </method>
  33435. <method name="doAsCurrentUser" return="T"
  33436. abstract="false" native="false" synchronized="false"
  33437. static="true" final="false" visibility="public"
  33438. deprecated="not deprecated">
  33439. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  33440. <exception name="IOException" type="java.io.IOException"/>
  33441. <doc>
  33442. <![CDATA[Perform the given action as the daemon's current user. If an
  33443. InterruptedException is thrown, it is converted to an IOException.
  33444. @param action the action to perform
  33445. @return the result of the action
  33446. @throws IOException in the event of error]]>
  33447. </doc>
  33448. </method>
  33449. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33450. abstract="false" native="false" synchronized="false"
  33451. static="true" final="false" visibility="public"
  33452. deprecated="not deprecated">
  33453. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33454. </method>
  33455. <method name="setAuthenticationMethod"
  33456. abstract="false" native="false" synchronized="false"
  33457. static="true" final="false" visibility="public"
  33458. deprecated="not deprecated">
  33459. <param name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  33460. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33461. </method>
  33462. <method name="isPrivilegedPort" return="boolean"
  33463. abstract="false" native="false" synchronized="false"
  33464. static="true" final="false" visibility="public"
  33465. deprecated="not deprecated">
  33466. <param name="port" type="int"/>
  33467. </method>
  33468. <field name="LOG" type="org.slf4j.Logger"
  33469. transient="false" volatile="false"
  33470. static="true" final="true" visibility="public"
  33471. deprecated="not deprecated">
  33472. </field>
  33473. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  33474. transient="false" volatile="false"
  33475. static="true" final="true" visibility="public"
  33476. deprecated="not deprecated">
  33477. </field>
  33478. <field name="FAILED_TO_GET_UGI_MSG_HEADER" type="java.lang.String"
  33479. transient="false" volatile="false"
  33480. static="true" final="true" visibility="public"
  33481. deprecated="not deprecated">
  33482. </field>
  33483. <doc>
  33484. <![CDATA[Security Utils.]]>
  33485. </doc>
  33486. </class>
  33487. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  33488. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  33489. <class name="UserGroupInformation" extends="java.lang.Object"
  33490. abstract="false"
  33491. static="false" final="false" visibility="public"
  33492. deprecated="not deprecated">
  33493. <method name="setShouldRenewImmediatelyForTests"
  33494. abstract="false" native="false" synchronized="false"
  33495. static="true" final="false" visibility="public"
  33496. deprecated="not deprecated">
  33497. <param name="immediate" type="boolean"/>
  33498. <doc>
  33499. <![CDATA[For the purposes of unit tests, we want to test login
  33500. from keytab and don't want to wait until the renew
  33501. window (controlled by TICKET_RENEW_WINDOW).
  33502. @param immediate true if we should login without waiting for ticket window]]>
  33503. </doc>
  33504. </method>
  33505. <method name="reattachMetrics"
  33506. abstract="false" native="false" synchronized="false"
  33507. static="true" final="false" visibility="public"
  33508. deprecated="not deprecated">
  33509. <doc>
  33510. <![CDATA[Reattach the class's metrics to a new metric system.]]>
  33511. </doc>
  33512. </method>
  33513. <method name="isInitialized" return="boolean"
  33514. abstract="false" native="false" synchronized="false"
  33515. static="true" final="false" visibility="public"
  33516. deprecated="not deprecated">
  33517. </method>
  33518. <method name="setConfiguration"
  33519. abstract="false" native="false" synchronized="false"
  33520. static="true" final="false" visibility="public"
  33521. deprecated="not deprecated">
  33522. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33523. <doc>
  33524. <![CDATA[Set the static configuration for UGI.
  33525. In particular, set the security authentication mechanism and the
  33526. group look up service.
  33527. @param conf the configuration to use]]>
  33528. </doc>
  33529. </method>
  33530. <method name="isSecurityEnabled" return="boolean"
  33531. abstract="false" native="false" synchronized="false"
  33532. static="true" final="false" visibility="public"
  33533. deprecated="not deprecated">
  33534. <doc>
  33535. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  33536. user identities or is relying on simple authentication
  33537. @return true if UGI is working in a secure environment]]>
  33538. </doc>
  33539. </method>
  33540. <method name="hasKerberosCredentials" return="boolean"
  33541. abstract="false" native="false" synchronized="false"
  33542. static="false" final="false" visibility="public"
  33543. deprecated="not deprecated">
  33544. <doc>
  33545. <![CDATA[checks if logged in using kerberos
  33546. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  33547. </doc>
  33548. </method>
  33549. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  33550. abstract="false" native="false" synchronized="true"
  33551. static="true" final="false" visibility="public"
  33552. deprecated="not deprecated">
  33553. <exception name="IOException" type="java.io.IOException"/>
  33554. <doc>
  33555. <![CDATA[Return the current user, including any doAs in the current stack.
  33556. @return the current user
  33557. @throws IOException if login fails]]>
  33558. </doc>
  33559. </method>
  33560. <method name="getBestUGI" return="org.apache.hadoop.security.UserGroupInformation"
  33561. abstract="false" native="false" synchronized="false"
  33562. static="true" final="false" visibility="public"
  33563. deprecated="not deprecated">
  33564. <param name="ticketCachePath" type="java.lang.String"/>
  33565. <param name="user" type="java.lang.String"/>
  33566. <exception name="IOException" type="java.io.IOException"/>
  33567. <doc>
  33568. <![CDATA[Find the most appropriate UserGroupInformation to use
  33569. @param ticketCachePath The Kerberos ticket cache path, or NULL
  33570. if none is specfied
  33571. @param user The user name, or NULL if none is specified.
  33572. @return The most appropriate UserGroupInformation]]>
  33573. </doc>
  33574. </method>
  33575. <method name="getUGIFromTicketCache" return="org.apache.hadoop.security.UserGroupInformation"
  33576. abstract="false" native="false" synchronized="false"
  33577. static="true" final="false" visibility="public"
  33578. deprecated="not deprecated">
  33579. <param name="ticketCache" type="java.lang.String"/>
  33580. <param name="user" type="java.lang.String"/>
  33581. <exception name="IOException" type="java.io.IOException"/>
  33582. <doc>
  33583. <![CDATA[Create a UserGroupInformation from a Kerberos ticket cache.
  33584. @param user The principal name to load from the ticket
  33585. cache
  33586. @param ticketCache the path to the ticket cache file
  33587. @throws IOException if the kerberos login fails]]>
  33588. </doc>
  33589. </method>
  33590. <method name="getUGIFromSubject" return="org.apache.hadoop.security.UserGroupInformation"
  33591. abstract="false" native="false" synchronized="false"
  33592. static="true" final="false" visibility="public"
  33593. deprecated="not deprecated">
  33594. <param name="subject" type="javax.security.auth.Subject"/>
  33595. <exception name="IOException" type="java.io.IOException"/>
  33596. <doc>
  33597. <![CDATA[Create a UserGroupInformation from a Subject with Kerberos principal.
  33598. @param subject The KerberosPrincipal to use in UGI
  33599. @throws IOException
  33600. @throws KerberosAuthException if the kerberos login fails]]>
  33601. </doc>
  33602. </method>
  33603. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  33604. abstract="false" native="false" synchronized="true"
  33605. static="true" final="false" visibility="public"
  33606. deprecated="not deprecated">
  33607. <exception name="IOException" type="java.io.IOException"/>
  33608. <doc>
  33609. <![CDATA[Get the currently logged in user.
  33610. @return the logged in user
  33611. @throws IOException if login fails]]>
  33612. </doc>
  33613. </method>
  33614. <method name="trimLoginMethod" return="java.lang.String"
  33615. abstract="false" native="false" synchronized="false"
  33616. static="true" final="false" visibility="public"
  33617. deprecated="not deprecated">
  33618. <param name="userName" type="java.lang.String"/>
  33619. <doc>
  33620. <![CDATA[remove the login method that is followed by a space from the username
  33621. e.g. "jack (auth:SIMPLE)" -> "jack"
  33622. @param userName
  33623. @return userName without login method]]>
  33624. </doc>
  33625. </method>
  33626. <method name="loginUserFromSubject"
  33627. abstract="false" native="false" synchronized="true"
  33628. static="true" final="false" visibility="public"
  33629. deprecated="not deprecated">
  33630. <param name="subject" type="javax.security.auth.Subject"/>
  33631. <exception name="IOException" type="java.io.IOException"/>
  33632. <doc>
  33633. <![CDATA[Log in a user using the given subject
  33634. @param subject the subject to use when logging in a user, or null to
  33635. create a new subject.
  33636. @throws IOException if login fails]]>
  33637. </doc>
  33638. </method>
  33639. <method name="isFromKeytab" return="boolean"
  33640. abstract="false" native="false" synchronized="false"
  33641. static="false" final="false" visibility="public"
  33642. deprecated="not deprecated">
  33643. <doc>
  33644. <![CDATA[Is this user logged in from a keytab file?
  33645. @return true if the credentials are from a keytab file.]]>
  33646. </doc>
  33647. </method>
  33648. <method name="loginUserFromKeytab"
  33649. abstract="false" native="false" synchronized="true"
  33650. static="true" final="false" visibility="public"
  33651. deprecated="not deprecated">
  33652. <param name="user" type="java.lang.String"/>
  33653. <param name="path" type="java.lang.String"/>
  33654. <exception name="IOException" type="java.io.IOException"/>
  33655. <doc>
  33656. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  33657. file and logs them in. They become the currently logged-in user.
  33658. @param user the principal name to load from the keytab
  33659. @param path the path to the keytab file
  33660. @throws IOException
  33661. @throws KerberosAuthException if it's a kerberos login exception.]]>
  33662. </doc>
  33663. </method>
  33664. <method name="logoutUserFromKeytab"
  33665. abstract="false" native="false" synchronized="false"
  33666. static="false" final="false" visibility="public"
  33667. deprecated="not deprecated">
  33668. <exception name="IOException" type="java.io.IOException"/>
  33669. <doc>
  33670. <![CDATA[Log the current user out who previously logged in using keytab.
  33671. This method assumes that the user logged in by calling
  33672. {@link #loginUserFromKeytab(String, String)}.
  33673. @throws IOException
  33674. @throws KerberosAuthException if a failure occurred in logout,
  33675. or if the user did not log in by invoking loginUserFromKeyTab() before.]]>
  33676. </doc>
  33677. </method>
  33678. <method name="checkTGTAndReloginFromKeytab"
  33679. abstract="false" native="false" synchronized="true"
  33680. static="false" final="false" visibility="public"
  33681. deprecated="not deprecated">
  33682. <exception name="IOException" type="java.io.IOException"/>
  33683. <doc>
  33684. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  33685. @throws IOException
  33686. @throws KerberosAuthException if it's a kerberos login exception.]]>
  33687. </doc>
  33688. </method>
  33689. <method name="reloginFromKeytab"
  33690. abstract="false" native="false" synchronized="true"
  33691. static="false" final="false" visibility="public"
  33692. deprecated="not deprecated">
  33693. <exception name="IOException" type="java.io.IOException"/>
  33694. <doc>
  33695. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  33696. file and logs them in. They become the currently logged-in user. This
  33697. method assumes that {@link #loginUserFromKeytab(String, String)} had
  33698. happened already.
  33699. The Subject field of this UserGroupInformation object is updated to have
  33700. the new credentials.
  33701. @throws IOException
  33702. @throws KerberosAuthException on a failure]]>
  33703. </doc>
  33704. </method>
  33705. <method name="reloginFromTicketCache"
  33706. abstract="false" native="false" synchronized="true"
  33707. static="false" final="false" visibility="public"
  33708. deprecated="not deprecated">
  33709. <exception name="IOException" type="java.io.IOException"/>
  33710. <doc>
  33711. <![CDATA[Re-Login a user in from the ticket cache. This
  33712. method assumes that login had happened already.
  33713. The Subject field of this UserGroupInformation object is updated to have
  33714. the new credentials.
  33715. @throws IOException
  33716. @throws KerberosAuthException on a failure]]>
  33717. </doc>
  33718. </method>
  33719. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  33720. abstract="false" native="false" synchronized="true"
  33721. static="true" final="false" visibility="public"
  33722. deprecated="not deprecated">
  33723. <param name="user" type="java.lang.String"/>
  33724. <param name="path" type="java.lang.String"/>
  33725. <exception name="IOException" type="java.io.IOException"/>
  33726. <doc>
  33727. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  33728. file and login them in. This new user does not affect the currently
  33729. logged-in user.
  33730. @param user the principal name to load from the keytab
  33731. @param path the path to the keytab file
  33732. @throws IOException if the keytab file can't be read]]>
  33733. </doc>
  33734. </method>
  33735. <method name="isLoginKeytabBased" return="boolean"
  33736. abstract="false" native="false" synchronized="true"
  33737. static="true" final="false" visibility="public"
  33738. deprecated="not deprecated">
  33739. <exception name="IOException" type="java.io.IOException"/>
  33740. <doc>
  33741. <![CDATA[Did the login happen via keytab
  33742. @return true or false]]>
  33743. </doc>
  33744. </method>
  33745. <method name="isLoginTicketBased" return="boolean"
  33746. abstract="false" native="false" synchronized="false"
  33747. static="true" final="false" visibility="public"
  33748. deprecated="not deprecated">
  33749. <exception name="IOException" type="java.io.IOException"/>
  33750. <doc>
  33751. <![CDATA[Did the login happen via ticket cache
  33752. @return true or false]]>
  33753. </doc>
  33754. </method>
  33755. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  33756. abstract="false" native="false" synchronized="false"
  33757. static="true" final="false" visibility="public"
  33758. deprecated="not deprecated">
  33759. <param name="user" type="java.lang.String"/>
  33760. <doc>
  33761. <![CDATA[Create a user from a login name. It is intended to be used for remote
  33762. users in RPC, since it won't have any credentials.
  33763. @param user the full user principal name, must not be empty or null
  33764. @return the UserGroupInformation for the remote user.]]>
  33765. </doc>
  33766. </method>
  33767. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  33768. abstract="false" native="false" synchronized="false"
  33769. static="true" final="false" visibility="public"
  33770. deprecated="not deprecated">
  33771. <param name="user" type="java.lang.String"/>
  33772. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  33773. <doc>
  33774. <![CDATA[Create a user from a login name. It is intended to be used for remote
  33775. users in RPC, since it won't have any credentials.
  33776. @param user the full user principal name, must not be empty or null
  33777. @return the UserGroupInformation for the remote user.]]>
  33778. </doc>
  33779. </method>
  33780. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  33781. abstract="false" native="false" synchronized="false"
  33782. static="true" final="false" visibility="public"
  33783. deprecated="not deprecated">
  33784. <param name="user" type="java.lang.String"/>
  33785. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  33786. <doc>
  33787. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  33788. real user.
  33789. @param user
  33790. @param realUser
  33791. @return proxyUser ugi]]>
  33792. </doc>
  33793. </method>
  33794. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  33795. abstract="false" native="false" synchronized="false"
  33796. static="false" final="false" visibility="public"
  33797. deprecated="not deprecated">
  33798. <doc>
  33799. <![CDATA[get RealUser (vs. EffectiveUser)
  33800. @return realUser running over proxy user]]>
  33801. </doc>
  33802. </method>
  33803. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  33804. abstract="false" native="false" synchronized="false"
  33805. static="true" final="false" visibility="public"
  33806. deprecated="not deprecated">
  33807. <param name="user" type="java.lang.String"/>
  33808. <param name="userGroups" type="java.lang.String[]"/>
  33809. <doc>
  33810. <![CDATA[Create a UGI for testing HDFS and MapReduce
  33811. @param user the full user principal name
  33812. @param userGroups the names of the groups that the user belongs to
  33813. @return a fake user for running unit tests]]>
  33814. </doc>
  33815. </method>
  33816. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  33817. abstract="false" native="false" synchronized="false"
  33818. static="true" final="false" visibility="public"
  33819. deprecated="not deprecated">
  33820. <param name="user" type="java.lang.String"/>
  33821. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  33822. <param name="userGroups" type="java.lang.String[]"/>
  33823. <doc>
  33824. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  33825. @param user
  33826. the full user principal name for effective user
  33827. @param realUser
  33828. UGI of the real user
  33829. @param userGroups
  33830. the names of the groups that the user belongs to
  33831. @return a fake user for running unit tests]]>
  33832. </doc>
  33833. </method>
  33834. <method name="getShortUserName" return="java.lang.String"
  33835. abstract="false" native="false" synchronized="false"
  33836. static="false" final="false" visibility="public"
  33837. deprecated="not deprecated">
  33838. <doc>
  33839. <![CDATA[Get the user's login name.
  33840. @return the user's name up to the first '/' or '@'.]]>
  33841. </doc>
  33842. </method>
  33843. <method name="getPrimaryGroupName" return="java.lang.String"
  33844. abstract="false" native="false" synchronized="false"
  33845. static="false" final="false" visibility="public"
  33846. deprecated="not deprecated">
  33847. <exception name="IOException" type="java.io.IOException"/>
  33848. </method>
  33849. <method name="getUserName" return="java.lang.String"
  33850. abstract="false" native="false" synchronized="false"
  33851. static="false" final="false" visibility="public"
  33852. deprecated="not deprecated">
  33853. <doc>
  33854. <![CDATA[Get the user's full principal name.
  33855. @return the user's full principal name.]]>
  33856. </doc>
  33857. </method>
  33858. <method name="addTokenIdentifier" return="boolean"
  33859. abstract="false" native="false" synchronized="true"
  33860. static="false" final="false" visibility="public"
  33861. deprecated="not deprecated">
  33862. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  33863. <doc>
  33864. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  33865. authenticated by the RPC layer as belonging to the user represented by this
  33866. UGI.
  33867. @param tokenId
  33868. tokenIdentifier to be added
  33869. @return true on successful add of new tokenIdentifier]]>
  33870. </doc>
  33871. </method>
  33872. <method name="getTokenIdentifiers" return="java.util.Set"
  33873. abstract="false" native="false" synchronized="true"
  33874. static="false" final="false" visibility="public"
  33875. deprecated="not deprecated">
  33876. <doc>
  33877. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  33878. @return the set of TokenIdentifiers belonging to this UGI]]>
  33879. </doc>
  33880. </method>
  33881. <method name="addToken" return="boolean"
  33882. abstract="false" native="false" synchronized="false"
  33883. static="false" final="false" visibility="public"
  33884. deprecated="not deprecated">
  33885. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33886. <doc>
  33887. <![CDATA[Add a token to this UGI
  33888. @param token Token to be added
  33889. @return true on successful add of new token]]>
  33890. </doc>
  33891. </method>
  33892. <method name="addToken" return="boolean"
  33893. abstract="false" native="false" synchronized="false"
  33894. static="false" final="false" visibility="public"
  33895. deprecated="not deprecated">
  33896. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33897. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33898. <doc>
  33899. <![CDATA[Add a named token to this UGI
  33900. @param alias Name of the token
  33901. @param token Token to be added
  33902. @return true on successful add of new token]]>
  33903. </doc>
  33904. </method>
  33905. <method name="getTokens" return="java.util.Collection"
  33906. abstract="false" native="false" synchronized="false"
  33907. static="false" final="false" visibility="public"
  33908. deprecated="not deprecated">
  33909. <doc>
  33910. <![CDATA[Obtain the collection of tokens associated with this user.
  33911. @return an unmodifiable collection of tokens associated with user]]>
  33912. </doc>
  33913. </method>
  33914. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  33915. abstract="false" native="false" synchronized="false"
  33916. static="false" final="false" visibility="public"
  33917. deprecated="not deprecated">
  33918. <doc>
  33919. <![CDATA[Obtain the tokens in credentials form associated with this user.
  33920. @return Credentials of tokens associated with this user]]>
  33921. </doc>
  33922. </method>
  33923. <method name="addCredentials"
  33924. abstract="false" native="false" synchronized="false"
  33925. static="false" final="false" visibility="public"
  33926. deprecated="not deprecated">
  33927. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  33928. <doc>
  33929. <![CDATA[Add the given Credentials to this user.
  33930. @param credentials of tokens and secrets]]>
  33931. </doc>
  33932. </method>
  33933. <method name="getGroupNames" return="java.lang.String[]"
  33934. abstract="false" native="false" synchronized="false"
  33935. static="false" final="false" visibility="public"
  33936. deprecated="not deprecated">
  33937. <doc>
  33938. <![CDATA[Get the group names for this user. {@link #getGroups()} is less
  33939. expensive alternative when checking for a contained element.
  33940. @return the list of users with the primary group first. If the command
  33941. fails, it returns an empty list.]]>
  33942. </doc>
  33943. </method>
  33944. <method name="getGroups" return="java.util.List"
  33945. abstract="false" native="false" synchronized="false"
  33946. static="false" final="false" visibility="public"
  33947. deprecated="not deprecated">
  33948. <doc>
  33949. <![CDATA[Get the group names for this user.
  33950. @return the list of users with the primary group first. If the command
  33951. fails, it returns an empty list.]]>
  33952. </doc>
  33953. </method>
  33954. <method name="toString" return="java.lang.String"
  33955. abstract="false" native="false" synchronized="false"
  33956. static="false" final="false" visibility="public"
  33957. deprecated="not deprecated">
  33958. <doc>
  33959. <![CDATA[Return the username.]]>
  33960. </doc>
  33961. </method>
  33962. <method name="setAuthenticationMethod"
  33963. abstract="false" native="false" synchronized="true"
  33964. static="false" final="false" visibility="public"
  33965. deprecated="not deprecated">
  33966. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  33967. <doc>
  33968. <![CDATA[Sets the authentication method in the subject
  33969. @param authMethod]]>
  33970. </doc>
  33971. </method>
  33972. <method name="setAuthenticationMethod"
  33973. abstract="false" native="false" synchronized="false"
  33974. static="false" final="false" visibility="public"
  33975. deprecated="not deprecated">
  33976. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  33977. <doc>
  33978. <![CDATA[Sets the authentication method in the subject
  33979. @param authMethod]]>
  33980. </doc>
  33981. </method>
  33982. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33983. abstract="false" native="false" synchronized="true"
  33984. static="false" final="false" visibility="public"
  33985. deprecated="not deprecated">
  33986. <doc>
  33987. <![CDATA[Get the authentication method from the subject
  33988. @return AuthenticationMethod in the subject, null if not present.]]>
  33989. </doc>
  33990. </method>
  33991. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33992. abstract="false" native="false" synchronized="true"
  33993. static="false" final="false" visibility="public"
  33994. deprecated="not deprecated">
  33995. <doc>
  33996. <![CDATA[Get the authentication method from the real user's subject. If there
  33997. is no real user, return the given user's authentication method.
  33998. @return AuthenticationMethod in the subject, null if not present.]]>
  33999. </doc>
  34000. </method>
  34001. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34002. abstract="false" native="false" synchronized="false"
  34003. static="true" final="false" visibility="public"
  34004. deprecated="not deprecated">
  34005. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  34006. <doc>
  34007. <![CDATA[Returns the authentication method of a ugi. If the authentication method is
  34008. PROXY, returns the authentication method of the real user.
  34009. @param ugi
  34010. @return AuthenticationMethod]]>
  34011. </doc>
  34012. </method>
  34013. <method name="equals" return="boolean"
  34014. abstract="false" native="false" synchronized="false"
  34015. static="false" final="false" visibility="public"
  34016. deprecated="not deprecated">
  34017. <param name="o" type="java.lang.Object"/>
  34018. <doc>
  34019. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  34020. </doc>
  34021. </method>
  34022. <method name="hashCode" return="int"
  34023. abstract="false" native="false" synchronized="false"
  34024. static="false" final="false" visibility="public"
  34025. deprecated="not deprecated">
  34026. <doc>
  34027. <![CDATA[Return the hash of the subject.]]>
  34028. </doc>
  34029. </method>
  34030. <method name="getSubject" return="javax.security.auth.Subject"
  34031. abstract="false" native="false" synchronized="false"
  34032. static="false" final="false" visibility="protected"
  34033. deprecated="not deprecated">
  34034. <doc>
  34035. <![CDATA[Get the underlying subject from this ugi.
  34036. @return the subject that represents this user.]]>
  34037. </doc>
  34038. </method>
  34039. <method name="doAs" return="T"
  34040. abstract="false" native="false" synchronized="false"
  34041. static="false" final="false" visibility="public"
  34042. deprecated="not deprecated">
  34043. <param name="action" type="java.security.PrivilegedAction"/>
  34044. <doc>
  34045. <![CDATA[Run the given action as the user.
  34046. @param <T> the return type of the run method
  34047. @param action the method to execute
  34048. @return the value from the run method]]>
  34049. </doc>
  34050. </method>
  34051. <method name="doAs" return="T"
  34052. abstract="false" native="false" synchronized="false"
  34053. static="false" final="false" visibility="public"
  34054. deprecated="not deprecated">
  34055. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  34056. <exception name="IOException" type="java.io.IOException"/>
  34057. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34058. <doc>
  34059. <![CDATA[Run the given action as the user, potentially throwing an exception.
  34060. @param <T> the return type of the run method
  34061. @param action the method to execute
  34062. @return the value from the run method
  34063. @throws IOException if the action throws an IOException
  34064. @throws Error if the action throws an Error
  34065. @throws RuntimeException if the action throws a RuntimeException
  34066. @throws InterruptedException if the action throws an InterruptedException
  34067. @throws UndeclaredThrowableException if the action throws something else]]>
  34068. </doc>
  34069. </method>
  34070. <method name="logAllUserInfo"
  34071. abstract="false" native="false" synchronized="false"
  34072. static="true" final="false" visibility="public"
  34073. deprecated="not deprecated">
  34074. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  34075. <exception name="IOException" type="java.io.IOException"/>
  34076. <doc>
  34077. <![CDATA[Log all (current, real, login) UGI and token info into UGI debug log.
  34078. @param ugi - UGI
  34079. @throws IOException]]>
  34080. </doc>
  34081. </method>
  34082. <method name="main"
  34083. abstract="false" native="false" synchronized="false"
  34084. static="true" final="false" visibility="public"
  34085. deprecated="not deprecated">
  34086. <param name="args" type="java.lang.String[]"/>
  34087. <exception name="Exception" type="java.lang.Exception"/>
  34088. <doc>
  34089. <![CDATA[A test method to print out the current user's UGI.
  34090. @param args if there are two arguments, read the user from the keytab
  34091. and print it out.
  34092. @throws Exception]]>
  34093. </doc>
  34094. </method>
  34095. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  34096. transient="false" volatile="false"
  34097. static="true" final="true" visibility="public"
  34098. deprecated="not deprecated">
  34099. <doc>
  34100. <![CDATA[Environment variable pointing to the token cache file]]>
  34101. </doc>
  34102. </field>
  34103. <doc>
  34104. <![CDATA[User and group information for Hadoop.
  34105. This class wraps around a JAAS Subject and provides methods to determine the
  34106. user's username and groups. It supports both the Windows, Unix and Kerberos
  34107. login modules.]]>
  34108. </doc>
  34109. </class>
  34110. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  34111. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  34112. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  34113. abstract="false"
  34114. static="true" final="true" visibility="public"
  34115. deprecated="not deprecated">
  34116. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  34117. abstract="false" native="false" synchronized="false"
  34118. static="true" final="false" visibility="public"
  34119. deprecated="not deprecated">
  34120. </method>
  34121. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34122. abstract="false" native="false" synchronized="false"
  34123. static="true" final="false" visibility="public"
  34124. deprecated="not deprecated">
  34125. <param name="name" type="java.lang.String"/>
  34126. </method>
  34127. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34128. abstract="false" native="false" synchronized="false"
  34129. static="false" final="false" visibility="public"
  34130. deprecated="not deprecated">
  34131. </method>
  34132. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34133. abstract="false" native="false" synchronized="false"
  34134. static="true" final="false" visibility="public"
  34135. deprecated="not deprecated">
  34136. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  34137. </method>
  34138. <doc>
  34139. <![CDATA[existing types of authentications' methods]]>
  34140. </doc>
  34141. </class>
  34142. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  34143. </package>
  34144. <package name="org.apache.hadoop.security.alias">
  34145. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  34146. <class name="CredentialProvider" extends="java.lang.Object"
  34147. abstract="true"
  34148. static="false" final="false" visibility="public"
  34149. deprecated="not deprecated">
  34150. <constructor name="CredentialProvider"
  34151. static="false" final="false" visibility="public"
  34152. deprecated="not deprecated">
  34153. </constructor>
  34154. <method name="isTransient" return="boolean"
  34155. abstract="false" native="false" synchronized="false"
  34156. static="false" final="false" visibility="public"
  34157. deprecated="not deprecated">
  34158. <doc>
  34159. <![CDATA[Indicates whether this provider represents a store
  34160. that is intended for transient use - such as the UserProvider
  34161. is. These providers are generally used to provide job access to
  34162. passwords rather than for long term storage.
  34163. @return true if transient, false otherwise]]>
  34164. </doc>
  34165. </method>
  34166. <method name="flush"
  34167. abstract="true" native="false" synchronized="false"
  34168. static="false" final="false" visibility="public"
  34169. deprecated="not deprecated">
  34170. <exception name="IOException" type="java.io.IOException"/>
  34171. <doc>
  34172. <![CDATA[Ensures that any changes to the credentials are written to persistent
  34173. store.
  34174. @throws IOException]]>
  34175. </doc>
  34176. </method>
  34177. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  34178. abstract="true" native="false" synchronized="false"
  34179. static="false" final="false" visibility="public"
  34180. deprecated="not deprecated">
  34181. <param name="alias" type="java.lang.String"/>
  34182. <exception name="IOException" type="java.io.IOException"/>
  34183. <doc>
  34184. <![CDATA[Get the credential entry for a specific alias.
  34185. @param alias the name of a specific credential
  34186. @return the credentialEntry
  34187. @throws IOException]]>
  34188. </doc>
  34189. </method>
  34190. <method name="getAliases" return="java.util.List"
  34191. abstract="true" native="false" synchronized="false"
  34192. static="false" final="false" visibility="public"
  34193. deprecated="not deprecated">
  34194. <exception name="IOException" type="java.io.IOException"/>
  34195. <doc>
  34196. <![CDATA[Get the aliases for all credentials.
  34197. @return the list of alias names
  34198. @throws IOException]]>
  34199. </doc>
  34200. </method>
  34201. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  34202. abstract="true" native="false" synchronized="false"
  34203. static="false" final="false" visibility="public"
  34204. deprecated="not deprecated">
  34205. <param name="name" type="java.lang.String"/>
  34206. <param name="credential" type="char[]"/>
  34207. <exception name="IOException" type="java.io.IOException"/>
  34208. <doc>
  34209. <![CDATA[Create a new credential. The given alias must not already exist.
  34210. @param name the alias of the credential
  34211. @param credential the credential value for the alias.
  34212. @throws IOException]]>
  34213. </doc>
  34214. </method>
  34215. <method name="deleteCredentialEntry"
  34216. abstract="true" native="false" synchronized="false"
  34217. static="false" final="false" visibility="public"
  34218. deprecated="not deprecated">
  34219. <param name="name" type="java.lang.String"/>
  34220. <exception name="IOException" type="java.io.IOException"/>
  34221. <doc>
  34222. <![CDATA[Delete the given credential.
  34223. @param name the alias of the credential to delete
  34224. @throws IOException]]>
  34225. </doc>
  34226. </method>
  34227. <method name="needsPassword" return="boolean"
  34228. abstract="false" native="false" synchronized="false"
  34229. static="false" final="false" visibility="public"
  34230. deprecated="not deprecated">
  34231. <exception name="IOException" type="java.io.IOException"/>
  34232. <doc>
  34233. <![CDATA[Does this provider require a password? This means that a password is
  34234. required for normal operation, and it has not been found through normal
  34235. means. If true, the password should be provided by the caller using
  34236. setPassword().
  34237. @return Whether or not the provider requires a password
  34238. @throws IOException]]>
  34239. </doc>
  34240. </method>
  34241. <method name="noPasswordWarning" return="java.lang.String"
  34242. abstract="false" native="false" synchronized="false"
  34243. static="false" final="false" visibility="public"
  34244. deprecated="not deprecated">
  34245. <doc>
  34246. <![CDATA[If a password for the provider is needed, but is not provided, this will
  34247. return a warning and instructions for supplying said password to the
  34248. provider.
  34249. @return A warning and instructions for supplying the password]]>
  34250. </doc>
  34251. </method>
  34252. <method name="noPasswordError" return="java.lang.String"
  34253. abstract="false" native="false" synchronized="false"
  34254. static="false" final="false" visibility="public"
  34255. deprecated="not deprecated">
  34256. <doc>
  34257. <![CDATA[If a password for the provider is needed, but is not provided, this will
  34258. return an error message and instructions for supplying said password to
  34259. the provider.
  34260. @return An error message and instructions for supplying the password]]>
  34261. </doc>
  34262. </method>
  34263. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  34264. transient="false" volatile="false"
  34265. static="true" final="true" visibility="public"
  34266. deprecated="not deprecated">
  34267. </field>
  34268. <doc>
  34269. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  34270. abstraction to separate credential storage from users of them. It
  34271. is intended to support getting or storing passwords in a variety of ways,
  34272. including third party bindings.]]>
  34273. </doc>
  34274. </class>
  34275. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  34276. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  34277. <class name="CredentialProviderFactory" extends="java.lang.Object"
  34278. abstract="true"
  34279. static="false" final="false" visibility="public"
  34280. deprecated="not deprecated">
  34281. <constructor name="CredentialProviderFactory"
  34282. static="false" final="false" visibility="public"
  34283. deprecated="not deprecated">
  34284. </constructor>
  34285. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  34286. abstract="true" native="false" synchronized="false"
  34287. static="false" final="false" visibility="public"
  34288. deprecated="not deprecated">
  34289. <param name="providerName" type="java.net.URI"/>
  34290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34291. <exception name="IOException" type="java.io.IOException"/>
  34292. </method>
  34293. <method name="getProviders" return="java.util.List"
  34294. abstract="false" native="false" synchronized="false"
  34295. static="true" final="false" visibility="public"
  34296. deprecated="not deprecated">
  34297. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34298. <exception name="IOException" type="java.io.IOException"/>
  34299. </method>
  34300. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  34301. transient="false" volatile="false"
  34302. static="true" final="true" visibility="public"
  34303. deprecated="not deprecated">
  34304. </field>
  34305. <doc>
  34306. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  34307. Configuration. It uses a service loader interface to find the available
  34308. CredentialProviders and create them based on the list of URIs.]]>
  34309. </doc>
  34310. </class>
  34311. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  34312. </package>
  34313. <package name="org.apache.hadoop.security.authorize">
  34314. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  34315. <class name="AccessControlList" extends="java.lang.Object"
  34316. abstract="false"
  34317. static="false" final="false" visibility="public"
  34318. deprecated="not deprecated">
  34319. <implements name="org.apache.hadoop.io.Writable"/>
  34320. <constructor name="AccessControlList"
  34321. static="false" final="false" visibility="public"
  34322. deprecated="not deprecated">
  34323. <doc>
  34324. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  34325. </doc>
  34326. </constructor>
  34327. <constructor name="AccessControlList" type="java.lang.String"
  34328. static="false" final="false" visibility="public"
  34329. deprecated="not deprecated">
  34330. <doc>
  34331. <![CDATA[Construct a new ACL from a String representation of the same.
  34332. The String is a a comma separated list of users and groups.
  34333. The user list comes first and is separated by a space followed
  34334. by the group list. For e.g. "user1,user2 group1,group2"
  34335. @param aclString String representation of the ACL]]>
  34336. </doc>
  34337. </constructor>
  34338. <constructor name="AccessControlList" type="java.lang.String, java.lang.String"
  34339. static="false" final="false" visibility="public"
  34340. deprecated="not deprecated">
  34341. <doc>
  34342. <![CDATA[Construct a new ACL from String representation of users and groups
  34343. The arguments are comma separated lists
  34344. @param users comma separated list of users
  34345. @param groups comma separated list of groups]]>
  34346. </doc>
  34347. </constructor>
  34348. <method name="isAllAllowed" return="boolean"
  34349. abstract="false" native="false" synchronized="false"
  34350. static="false" final="false" visibility="public"
  34351. deprecated="not deprecated">
  34352. </method>
  34353. <method name="addUser"
  34354. abstract="false" native="false" synchronized="false"
  34355. static="false" final="false" visibility="public"
  34356. deprecated="not deprecated">
  34357. <param name="user" type="java.lang.String"/>
  34358. <doc>
  34359. <![CDATA[Add user to the names of users allowed for this service.
  34360. @param user
  34361. The user name]]>
  34362. </doc>
  34363. </method>
  34364. <method name="addGroup"
  34365. abstract="false" native="false" synchronized="false"
  34366. static="false" final="false" visibility="public"
  34367. deprecated="not deprecated">
  34368. <param name="group" type="java.lang.String"/>
  34369. <doc>
  34370. <![CDATA[Add group to the names of groups allowed for this service.
  34371. @param group
  34372. The group name]]>
  34373. </doc>
  34374. </method>
  34375. <method name="removeUser"
  34376. abstract="false" native="false" synchronized="false"
  34377. static="false" final="false" visibility="public"
  34378. deprecated="not deprecated">
  34379. <param name="user" type="java.lang.String"/>
  34380. <doc>
  34381. <![CDATA[Remove user from the names of users allowed for this service.
  34382. @param user
  34383. The user name]]>
  34384. </doc>
  34385. </method>
  34386. <method name="removeGroup"
  34387. abstract="false" native="false" synchronized="false"
  34388. static="false" final="false" visibility="public"
  34389. deprecated="not deprecated">
  34390. <param name="group" type="java.lang.String"/>
  34391. <doc>
  34392. <![CDATA[Remove group from the names of groups allowed for this service.
  34393. @param group
  34394. The group name]]>
  34395. </doc>
  34396. </method>
  34397. <method name="getUsers" return="java.util.Collection"
  34398. abstract="false" native="false" synchronized="false"
  34399. static="false" final="false" visibility="public"
  34400. deprecated="not deprecated">
  34401. <doc>
  34402. <![CDATA[Get the names of users allowed for this service.
  34403. @return the set of user names. the set must not be modified.]]>
  34404. </doc>
  34405. </method>
  34406. <method name="getGroups" return="java.util.Collection"
  34407. abstract="false" native="false" synchronized="false"
  34408. static="false" final="false" visibility="public"
  34409. deprecated="not deprecated">
  34410. <doc>
  34411. <![CDATA[Get the names of user groups allowed for this service.
  34412. @return the set of group names. the set must not be modified.]]>
  34413. </doc>
  34414. </method>
  34415. <method name="isUserInList" return="boolean"
  34416. abstract="false" native="false" synchronized="false"
  34417. static="false" final="true" visibility="public"
  34418. deprecated="not deprecated">
  34419. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  34420. <doc>
  34421. <![CDATA[Checks if a user represented by the provided {@link UserGroupInformation}
  34422. is a member of the Access Control List
  34423. @param ugi UserGroupInformation to check if contained in the ACL
  34424. @return true if ugi is member of the list]]>
  34425. </doc>
  34426. </method>
  34427. <method name="isUserAllowed" return="boolean"
  34428. abstract="false" native="false" synchronized="false"
  34429. static="false" final="false" visibility="public"
  34430. deprecated="not deprecated">
  34431. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  34432. </method>
  34433. <method name="toString" return="java.lang.String"
  34434. abstract="false" native="false" synchronized="false"
  34435. static="false" final="false" visibility="public"
  34436. deprecated="not deprecated">
  34437. <doc>
  34438. <![CDATA[Returns descriptive way of users and groups that are part of this ACL.
  34439. Use {@link #getAclString()} to get the exact String that can be given to
  34440. the constructor of AccessControlList to create a new instance.]]>
  34441. </doc>
  34442. </method>
  34443. <method name="getAclString" return="java.lang.String"
  34444. abstract="false" native="false" synchronized="false"
  34445. static="false" final="false" visibility="public"
  34446. deprecated="not deprecated">
  34447. <doc>
  34448. <![CDATA[Returns the access control list as a String that can be used for building a
  34449. new instance by sending it to the constructor of {@link AccessControlList}.]]>
  34450. </doc>
  34451. </method>
  34452. <method name="write"
  34453. abstract="false" native="false" synchronized="false"
  34454. static="false" final="false" visibility="public"
  34455. deprecated="not deprecated">
  34456. <param name="out" type="java.io.DataOutput"/>
  34457. <exception name="IOException" type="java.io.IOException"/>
  34458. <doc>
  34459. <![CDATA[Serializes the AccessControlList object]]>
  34460. </doc>
  34461. </method>
  34462. <method name="readFields"
  34463. abstract="false" native="false" synchronized="false"
  34464. static="false" final="false" visibility="public"
  34465. deprecated="not deprecated">
  34466. <param name="in" type="java.io.DataInput"/>
  34467. <exception name="IOException" type="java.io.IOException"/>
  34468. <doc>
  34469. <![CDATA[Deserializes the AccessControlList object]]>
  34470. </doc>
  34471. </method>
  34472. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  34473. transient="false" volatile="false"
  34474. static="true" final="true" visibility="public"
  34475. deprecated="not deprecated">
  34476. </field>
  34477. <doc>
  34478. <![CDATA[Class representing a configured access control list.]]>
  34479. </doc>
  34480. </class>
  34481. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  34482. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  34483. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  34484. abstract="false"
  34485. static="false" final="false" visibility="public"
  34486. deprecated="not deprecated">
  34487. <constructor name="AuthorizationException"
  34488. static="false" final="false" visibility="public"
  34489. deprecated="not deprecated">
  34490. </constructor>
  34491. <constructor name="AuthorizationException" type="java.lang.String"
  34492. static="false" final="false" visibility="public"
  34493. deprecated="not deprecated">
  34494. </constructor>
  34495. <constructor name="AuthorizationException" type="java.lang.Throwable"
  34496. static="false" final="false" visibility="public"
  34497. deprecated="not deprecated">
  34498. <doc>
  34499. <![CDATA[Constructs a new exception with the specified cause and a detail
  34500. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  34501. typically contains the class and detail message of <tt>cause</tt>).
  34502. @param cause the cause (which is saved for later retrieval by the
  34503. {@link #getCause()} method). (A <tt>null</tt> value is
  34504. permitted, and indicates that the cause is nonexistent or
  34505. unknown.)]]>
  34506. </doc>
  34507. </constructor>
  34508. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  34509. abstract="false" native="false" synchronized="false"
  34510. static="false" final="false" visibility="public"
  34511. deprecated="not deprecated">
  34512. </method>
  34513. <method name="printStackTrace"
  34514. abstract="false" native="false" synchronized="false"
  34515. static="false" final="false" visibility="public"
  34516. deprecated="not deprecated">
  34517. </method>
  34518. <method name="printStackTrace"
  34519. abstract="false" native="false" synchronized="false"
  34520. static="false" final="false" visibility="public"
  34521. deprecated="not deprecated">
  34522. <param name="s" type="java.io.PrintStream"/>
  34523. </method>
  34524. <method name="printStackTrace"
  34525. abstract="false" native="false" synchronized="false"
  34526. static="false" final="false" visibility="public"
  34527. deprecated="not deprecated">
  34528. <param name="s" type="java.io.PrintWriter"/>
  34529. </method>
  34530. <doc>
  34531. <![CDATA[An exception class for authorization-related issues.
  34532. This class <em>does not</em> provide the stack trace for security purposes.]]>
  34533. </doc>
  34534. </class>
  34535. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  34536. <!-- start class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  34537. <class name="DefaultImpersonationProvider" extends="java.lang.Object"
  34538. abstract="false"
  34539. static="false" final="false" visibility="public"
  34540. deprecated="not deprecated">
  34541. <implements name="org.apache.hadoop.security.authorize.ImpersonationProvider"/>
  34542. <constructor name="DefaultImpersonationProvider"
  34543. static="false" final="false" visibility="public"
  34544. deprecated="not deprecated">
  34545. </constructor>
  34546. <method name="getTestProvider" return="org.apache.hadoop.security.authorize.DefaultImpersonationProvider"
  34547. abstract="false" native="false" synchronized="true"
  34548. static="true" final="false" visibility="public"
  34549. deprecated="not deprecated">
  34550. </method>
  34551. <method name="setConf"
  34552. abstract="false" native="false" synchronized="false"
  34553. static="false" final="false" visibility="public"
  34554. deprecated="not deprecated">
  34555. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34556. </method>
  34557. <method name="init"
  34558. abstract="false" native="false" synchronized="false"
  34559. static="false" final="false" visibility="public"
  34560. deprecated="not deprecated">
  34561. <param name="configurationPrefix" type="java.lang.String"/>
  34562. </method>
  34563. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  34564. abstract="false" native="false" synchronized="false"
  34565. static="false" final="false" visibility="public"
  34566. deprecated="not deprecated">
  34567. </method>
  34568. <method name="authorize"
  34569. abstract="false" native="false" synchronized="false"
  34570. static="false" final="false" visibility="public"
  34571. deprecated="not deprecated">
  34572. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  34573. <param name="remoteAddress" type="java.lang.String"/>
  34574. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  34575. </method>
  34576. <method name="getProxySuperuserUserConfKey" return="java.lang.String"
  34577. abstract="false" native="false" synchronized="false"
  34578. static="false" final="false" visibility="public"
  34579. deprecated="not deprecated">
  34580. <param name="userName" type="java.lang.String"/>
  34581. <doc>
  34582. <![CDATA[Returns configuration key for effective usergroups allowed for a superuser
  34583. @param userName name of the superuser
  34584. @return configuration key for superuser usergroups]]>
  34585. </doc>
  34586. </method>
  34587. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  34588. abstract="false" native="false" synchronized="false"
  34589. static="false" final="false" visibility="public"
  34590. deprecated="not deprecated">
  34591. <param name="userName" type="java.lang.String"/>
  34592. <doc>
  34593. <![CDATA[Returns configuration key for effective groups allowed for a superuser
  34594. @param userName name of the superuser
  34595. @return configuration key for superuser groups]]>
  34596. </doc>
  34597. </method>
  34598. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  34599. abstract="false" native="false" synchronized="false"
  34600. static="false" final="false" visibility="public"
  34601. deprecated="not deprecated">
  34602. <param name="userName" type="java.lang.String"/>
  34603. <doc>
  34604. <![CDATA[Return configuration key for superuser ip addresses
  34605. @param userName name of the superuser
  34606. @return configuration key for superuser ip-addresses]]>
  34607. </doc>
  34608. </method>
  34609. <method name="getProxyGroups" return="java.util.Map"
  34610. abstract="false" native="false" synchronized="false"
  34611. static="false" final="false" visibility="public"
  34612. deprecated="not deprecated">
  34613. </method>
  34614. <method name="getProxyHosts" return="java.util.Map"
  34615. abstract="false" native="false" synchronized="false"
  34616. static="false" final="false" visibility="public"
  34617. deprecated="not deprecated">
  34618. </method>
  34619. </class>
  34620. <!-- end class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  34621. <!-- start interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  34622. <interface name="ImpersonationProvider" abstract="true"
  34623. static="false" final="false" visibility="public"
  34624. deprecated="not deprecated">
  34625. <implements name="org.apache.hadoop.conf.Configurable"/>
  34626. <method name="init"
  34627. abstract="false" native="false" synchronized="false"
  34628. static="false" final="false" visibility="public"
  34629. deprecated="not deprecated">
  34630. <param name="configurationPrefix" type="java.lang.String"/>
  34631. <doc>
  34632. <![CDATA[Specifies the configuration prefix for the proxy user properties and
  34633. initializes the provider.
  34634. @param configurationPrefix the configuration prefix for the proxy user
  34635. properties]]>
  34636. </doc>
  34637. </method>
  34638. <method name="authorize"
  34639. abstract="false" native="false" synchronized="false"
  34640. static="false" final="false" visibility="public"
  34641. deprecated="not deprecated">
  34642. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  34643. <param name="remoteAddress" type="java.lang.String"/>
  34644. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  34645. <doc>
  34646. <![CDATA[Authorize the superuser which is doing doAs
  34647. @param user ugi of the effective or proxy user which contains a real user
  34648. @param remoteAddress the ip address of client
  34649. @throws AuthorizationException]]>
  34650. </doc>
  34651. </method>
  34652. </interface>
  34653. <!-- end interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  34654. </package>
  34655. <package name="org.apache.hadoop.security.http">
  34656. <!-- start class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  34657. <class name="RestCsrfPreventionFilter" extends="java.lang.Object"
  34658. abstract="false"
  34659. static="false" final="false" visibility="public"
  34660. deprecated="not deprecated">
  34661. <implements name="javax.servlet.Filter"/>
  34662. <constructor name="RestCsrfPreventionFilter"
  34663. static="false" final="false" visibility="public"
  34664. deprecated="not deprecated">
  34665. </constructor>
  34666. <method name="init"
  34667. abstract="false" native="false" synchronized="false"
  34668. static="false" final="false" visibility="public"
  34669. deprecated="not deprecated">
  34670. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  34671. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34672. </method>
  34673. <method name="isBrowser" return="boolean"
  34674. abstract="false" native="false" synchronized="false"
  34675. static="false" final="false" visibility="protected"
  34676. deprecated="not deprecated">
  34677. <param name="userAgent" type="java.lang.String"/>
  34678. <doc>
  34679. <![CDATA[This method interrogates the User-Agent String and returns whether it
  34680. refers to a browser. If its not a browser, then the requirement for the
  34681. CSRF header will not be enforced; if it is a browser, the requirement will
  34682. be enforced.
  34683. <p>
  34684. A User-Agent String is considered to be a browser if it matches
  34685. any of the regex patterns from browser-useragent-regex; the default
  34686. behavior is to consider everything a browser that matches the following:
  34687. "^Mozilla.*,^Opera.*". Subclasses can optionally override
  34688. this method to use different behavior.
  34689. @param userAgent The User-Agent String, or null if there isn't one
  34690. @return true if the User-Agent String refers to a browser, false if not]]>
  34691. </doc>
  34692. </method>
  34693. <method name="handleHttpInteraction"
  34694. abstract="false" native="false" synchronized="false"
  34695. static="false" final="false" visibility="public"
  34696. deprecated="not deprecated">
  34697. <param name="httpInteraction" type="org.apache.hadoop.security.http.RestCsrfPreventionFilter.HttpInteraction"/>
  34698. <exception name="IOException" type="java.io.IOException"/>
  34699. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34700. <doc>
  34701. <![CDATA[Handles an {@link HttpInteraction} by applying the filtering logic.
  34702. @param httpInteraction caller's HTTP interaction
  34703. @throws IOException if there is an I/O error
  34704. @throws ServletException if the implementation relies on the servlet API
  34705. and a servlet API call has failed]]>
  34706. </doc>
  34707. </method>
  34708. <method name="doFilter"
  34709. abstract="false" native="false" synchronized="false"
  34710. static="false" final="false" visibility="public"
  34711. deprecated="not deprecated">
  34712. <param name="request" type="javax.servlet.ServletRequest"/>
  34713. <param name="response" type="javax.servlet.ServletResponse"/>
  34714. <param name="chain" type="javax.servlet.FilterChain"/>
  34715. <exception name="IOException" type="java.io.IOException"/>
  34716. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34717. </method>
  34718. <method name="destroy"
  34719. abstract="false" native="false" synchronized="false"
  34720. static="false" final="false" visibility="public"
  34721. deprecated="not deprecated">
  34722. </method>
  34723. <method name="getFilterParams" return="java.util.Map"
  34724. abstract="false" native="false" synchronized="false"
  34725. static="true" final="false" visibility="public"
  34726. deprecated="not deprecated">
  34727. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34728. <param name="confPrefix" type="java.lang.String"/>
  34729. <doc>
  34730. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  34731. initialization. The mapping includes all properties that start with the
  34732. specified configuration prefix. Property names in the mapping are trimmed
  34733. to remove the configuration prefix.
  34734. @param conf configuration to read
  34735. @param confPrefix configuration prefix
  34736. @return mapping of configuration properties to be used for filter
  34737. initialization]]>
  34738. </doc>
  34739. </method>
  34740. <field name="HEADER_USER_AGENT" type="java.lang.String"
  34741. transient="false" volatile="false"
  34742. static="true" final="true" visibility="public"
  34743. deprecated="not deprecated">
  34744. </field>
  34745. <field name="BROWSER_USER_AGENT_PARAM" type="java.lang.String"
  34746. transient="false" volatile="false"
  34747. static="true" final="true" visibility="public"
  34748. deprecated="not deprecated">
  34749. </field>
  34750. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  34751. transient="false" volatile="false"
  34752. static="true" final="true" visibility="public"
  34753. deprecated="not deprecated">
  34754. </field>
  34755. <field name="CUSTOM_METHODS_TO_IGNORE_PARAM" type="java.lang.String"
  34756. transient="false" volatile="false"
  34757. static="true" final="true" visibility="public"
  34758. deprecated="not deprecated">
  34759. </field>
  34760. <field name="HEADER_DEFAULT" type="java.lang.String"
  34761. transient="false" volatile="false"
  34762. static="true" final="true" visibility="public"
  34763. deprecated="not deprecated">
  34764. </field>
  34765. <doc>
  34766. <![CDATA[This filter provides protection against cross site request forgery (CSRF)
  34767. attacks for REST APIs. Enabling this filter on an endpoint results in the
  34768. requirement of all client to send a particular (configurable) HTTP header
  34769. with every request. In the absense of this header the filter will reject the
  34770. attempt as a bad request.]]>
  34771. </doc>
  34772. </class>
  34773. <!-- end class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  34774. <!-- start class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  34775. <class name="XFrameOptionsFilter" extends="java.lang.Object"
  34776. abstract="false"
  34777. static="false" final="false" visibility="public"
  34778. deprecated="not deprecated">
  34779. <implements name="javax.servlet.Filter"/>
  34780. <constructor name="XFrameOptionsFilter"
  34781. static="false" final="false" visibility="public"
  34782. deprecated="not deprecated">
  34783. </constructor>
  34784. <method name="destroy"
  34785. abstract="false" native="false" synchronized="false"
  34786. static="false" final="false" visibility="public"
  34787. deprecated="not deprecated">
  34788. </method>
  34789. <method name="doFilter"
  34790. abstract="false" native="false" synchronized="false"
  34791. static="false" final="false" visibility="public"
  34792. deprecated="not deprecated">
  34793. <param name="req" type="javax.servlet.ServletRequest"/>
  34794. <param name="res" type="javax.servlet.ServletResponse"/>
  34795. <param name="chain" type="javax.servlet.FilterChain"/>
  34796. <exception name="IOException" type="java.io.IOException"/>
  34797. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34798. </method>
  34799. <method name="init"
  34800. abstract="false" native="false" synchronized="false"
  34801. static="false" final="false" visibility="public"
  34802. deprecated="not deprecated">
  34803. <param name="config" type="javax.servlet.FilterConfig"/>
  34804. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34805. </method>
  34806. <method name="getFilterParams" return="java.util.Map"
  34807. abstract="false" native="false" synchronized="false"
  34808. static="true" final="false" visibility="public"
  34809. deprecated="not deprecated">
  34810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34811. <param name="confPrefix" type="java.lang.String"/>
  34812. <doc>
  34813. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  34814. initialization. The mapping includes all properties that start with the
  34815. specified configuration prefix. Property names in the mapping are trimmed
  34816. to remove the configuration prefix.
  34817. @param conf configuration to read
  34818. @param confPrefix configuration prefix
  34819. @return mapping of configuration properties to be used for filter
  34820. initialization]]>
  34821. </doc>
  34822. </method>
  34823. <field name="X_FRAME_OPTIONS" type="java.lang.String"
  34824. transient="false" volatile="false"
  34825. static="true" final="true" visibility="public"
  34826. deprecated="not deprecated">
  34827. </field>
  34828. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  34829. transient="false" volatile="false"
  34830. static="true" final="true" visibility="public"
  34831. deprecated="not deprecated">
  34832. </field>
  34833. <doc>
  34834. <![CDATA[This filter protects webapps from clickjacking attacks that
  34835. are possible through use of Frames to embed the resources in another
  34836. application and intercept clicks to accomplish nefarious things.]]>
  34837. </doc>
  34838. </class>
  34839. <!-- end class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  34840. </package>
  34841. <package name="org.apache.hadoop.security.protocolPB">
  34842. </package>
  34843. <package name="org.apache.hadoop.security.ssl">
  34844. </package>
  34845. <package name="org.apache.hadoop.security.token">
  34846. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  34847. <class name="SecretManager" extends="java.lang.Object"
  34848. abstract="true"
  34849. static="false" final="false" visibility="public"
  34850. deprecated="not deprecated">
  34851. <constructor name="SecretManager"
  34852. static="false" final="false" visibility="public"
  34853. deprecated="not deprecated">
  34854. </constructor>
  34855. <method name="createPassword" return="byte[]"
  34856. abstract="true" native="false" synchronized="false"
  34857. static="false" final="false" visibility="protected"
  34858. deprecated="not deprecated">
  34859. <param name="identifier" type="T"/>
  34860. <doc>
  34861. <![CDATA[Create the password for the given identifier.
  34862. identifier may be modified inside this method.
  34863. @param identifier the identifier to use
  34864. @return the new password]]>
  34865. </doc>
  34866. </method>
  34867. <method name="retrievePassword" return="byte[]"
  34868. abstract="true" native="false" synchronized="false"
  34869. static="false" final="false" visibility="public"
  34870. deprecated="not deprecated">
  34871. <param name="identifier" type="T"/>
  34872. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34873. <doc>
  34874. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  34875. or registry to make sure the token hasn't expired or been revoked. Returns
  34876. the relevant password.
  34877. @param identifier the identifier to validate
  34878. @return the password to use
  34879. @throws InvalidToken the token was invalid]]>
  34880. </doc>
  34881. </method>
  34882. <method name="retriableRetrievePassword" return="byte[]"
  34883. abstract="false" native="false" synchronized="false"
  34884. static="false" final="false" visibility="public"
  34885. deprecated="not deprecated">
  34886. <param name="identifier" type="T"/>
  34887. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34888. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  34889. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  34890. <exception name="IOException" type="java.io.IOException"/>
  34891. <doc>
  34892. <![CDATA[The same functionality with {@link #retrievePassword}, except that this
  34893. method can throw a {@link RetriableException} or a {@link StandbyException}
  34894. to indicate that client can retry/failover the same operation because of
  34895. temporary issue on the server side.
  34896. @param identifier the identifier to validate
  34897. @return the password to use
  34898. @throws InvalidToken the token was invalid
  34899. @throws StandbyException the server is in standby state, the client can
  34900. try other servers
  34901. @throws RetriableException the token was invalid, and the server thinks
  34902. this may be a temporary issue and suggests the client to retry
  34903. @throws IOException to allow future exceptions to be added without breaking
  34904. compatibility]]>
  34905. </doc>
  34906. </method>
  34907. <method name="createIdentifier" return="T"
  34908. abstract="true" native="false" synchronized="false"
  34909. static="false" final="false" visibility="public"
  34910. deprecated="not deprecated">
  34911. <doc>
  34912. <![CDATA[Create an empty token identifier.
  34913. @return the newly created empty token identifier]]>
  34914. </doc>
  34915. </method>
  34916. <method name="checkAvailableForRead"
  34917. abstract="false" native="false" synchronized="false"
  34918. static="false" final="false" visibility="public"
  34919. deprecated="not deprecated">
  34920. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  34921. <doc>
  34922. <![CDATA[No-op if the secret manager is available for reading tokens, throw a
  34923. StandbyException otherwise.
  34924. @throws StandbyException if the secret manager is not available to read
  34925. tokens]]>
  34926. </doc>
  34927. </method>
  34928. <method name="generateSecret" return="javax.crypto.SecretKey"
  34929. abstract="false" native="false" synchronized="false"
  34930. static="false" final="false" visibility="protected"
  34931. deprecated="not deprecated">
  34932. <doc>
  34933. <![CDATA[Generate a new random secret key.
  34934. @return the new key]]>
  34935. </doc>
  34936. </method>
  34937. <method name="createPassword" return="byte[]"
  34938. abstract="false" native="false" synchronized="false"
  34939. static="true" final="false" visibility="public"
  34940. deprecated="not deprecated">
  34941. <param name="identifier" type="byte[]"/>
  34942. <param name="key" type="javax.crypto.SecretKey"/>
  34943. <doc>
  34944. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  34945. output as password
  34946. @param identifier the bytes of the identifier
  34947. @param key the secret key
  34948. @return the bytes of the generated password]]>
  34949. </doc>
  34950. </method>
  34951. <method name="createSecretKey" return="javax.crypto.SecretKey"
  34952. abstract="false" native="false" synchronized="false"
  34953. static="true" final="false" visibility="protected"
  34954. deprecated="not deprecated">
  34955. <param name="key" type="byte[]"/>
  34956. <doc>
  34957. <![CDATA[Convert the byte[] to a secret key
  34958. @param key the byte[] to create a secret key from
  34959. @return the secret key]]>
  34960. </doc>
  34961. </method>
  34962. <doc>
  34963. <![CDATA[The server-side secret manager for each token type.
  34964. @param <T> The type of the token identifier]]>
  34965. </doc>
  34966. </class>
  34967. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  34968. <!-- start class org.apache.hadoop.security.token.Token -->
  34969. <class name="Token" extends="java.lang.Object"
  34970. abstract="false"
  34971. static="false" final="false" visibility="public"
  34972. deprecated="not deprecated">
  34973. <implements name="org.apache.hadoop.io.Writable"/>
  34974. <constructor name="Token" type="T, org.apache.hadoop.security.token.SecretManager"
  34975. static="false" final="false" visibility="public"
  34976. deprecated="not deprecated">
  34977. <doc>
  34978. <![CDATA[Construct a token given a token identifier and a secret manager for the
  34979. type of the token identifier.
  34980. @param id the token identifier
  34981. @param mgr the secret manager]]>
  34982. </doc>
  34983. </constructor>
  34984. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  34985. static="false" final="false" visibility="public"
  34986. deprecated="not deprecated">
  34987. <doc>
  34988. <![CDATA[Construct a token from the components.
  34989. @param identifier the token identifier
  34990. @param password the token's password
  34991. @param kind the kind of token
  34992. @param service the service for this token]]>
  34993. </doc>
  34994. </constructor>
  34995. <constructor name="Token"
  34996. static="false" final="false" visibility="public"
  34997. deprecated="not deprecated">
  34998. <doc>
  34999. <![CDATA[Default constructor]]>
  35000. </doc>
  35001. </constructor>
  35002. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  35003. static="false" final="false" visibility="public"
  35004. deprecated="not deprecated">
  35005. <doc>
  35006. <![CDATA[Clone a token.
  35007. @param other the token to clone]]>
  35008. </doc>
  35009. </constructor>
  35010. <method name="getIdentifier" return="byte[]"
  35011. abstract="false" native="false" synchronized="false"
  35012. static="false" final="false" visibility="public"
  35013. deprecated="not deprecated">
  35014. <doc>
  35015. <![CDATA[Get the token identifier's byte representation
  35016. @return the token identifier's byte representation]]>
  35017. </doc>
  35018. </method>
  35019. <method name="decodeIdentifier" return="T"
  35020. abstract="false" native="false" synchronized="false"
  35021. static="false" final="false" visibility="public"
  35022. deprecated="not deprecated">
  35023. <exception name="IOException" type="java.io.IOException"/>
  35024. <doc>
  35025. <![CDATA[Get the token identifier object, or null if it could not be constructed
  35026. (because the class could not be loaded, for example).
  35027. @return the token identifier, or null
  35028. @throws IOException]]>
  35029. </doc>
  35030. </method>
  35031. <method name="getPassword" return="byte[]"
  35032. abstract="false" native="false" synchronized="false"
  35033. static="false" final="false" visibility="public"
  35034. deprecated="not deprecated">
  35035. <doc>
  35036. <![CDATA[Get the token password/secret
  35037. @return the token password/secret]]>
  35038. </doc>
  35039. </method>
  35040. <method name="getKind" return="org.apache.hadoop.io.Text"
  35041. abstract="false" native="false" synchronized="true"
  35042. static="false" final="false" visibility="public"
  35043. deprecated="not deprecated">
  35044. <doc>
  35045. <![CDATA[Get the token kind
  35046. @return the kind of the token]]>
  35047. </doc>
  35048. </method>
  35049. <method name="getService" return="org.apache.hadoop.io.Text"
  35050. abstract="false" native="false" synchronized="false"
  35051. static="false" final="false" visibility="public"
  35052. deprecated="not deprecated">
  35053. <doc>
  35054. <![CDATA[Get the service on which the token is supposed to be used
  35055. @return the service name]]>
  35056. </doc>
  35057. </method>
  35058. <method name="setService"
  35059. abstract="false" native="false" synchronized="false"
  35060. static="false" final="false" visibility="public"
  35061. deprecated="not deprecated">
  35062. <param name="newService" type="org.apache.hadoop.io.Text"/>
  35063. <doc>
  35064. <![CDATA[Set the service on which the token is supposed to be used
  35065. @param newService the service name]]>
  35066. </doc>
  35067. </method>
  35068. <method name="setID"
  35069. abstract="false" native="false" synchronized="false"
  35070. static="false" final="false" visibility="public"
  35071. deprecated="not deprecated">
  35072. <param name="bytes" type="byte[]"/>
  35073. </method>
  35074. <method name="setPassword"
  35075. abstract="false" native="false" synchronized="false"
  35076. static="false" final="false" visibility="public"
  35077. deprecated="not deprecated">
  35078. <param name="newPassword" type="byte[]"/>
  35079. </method>
  35080. <method name="isPrivate" return="boolean"
  35081. abstract="false" native="false" synchronized="false"
  35082. static="false" final="false" visibility="public"
  35083. deprecated="not deprecated">
  35084. <doc>
  35085. <![CDATA[Whether this is a private token.
  35086. @return false always for non-private tokens]]>
  35087. </doc>
  35088. </method>
  35089. <method name="isPrivateCloneOf" return="boolean"
  35090. abstract="false" native="false" synchronized="false"
  35091. static="false" final="false" visibility="public"
  35092. deprecated="not deprecated">
  35093. <param name="thePublicService" type="org.apache.hadoop.io.Text"/>
  35094. <doc>
  35095. <![CDATA[Whether this is a private clone of a public token.
  35096. @param thePublicService the public service name
  35097. @return false always for non-private tokens]]>
  35098. </doc>
  35099. </method>
  35100. <method name="privateClone" return="org.apache.hadoop.security.token.Token"
  35101. abstract="false" native="false" synchronized="false"
  35102. static="false" final="false" visibility="public"
  35103. deprecated="not deprecated">
  35104. <param name="newService" type="org.apache.hadoop.io.Text"/>
  35105. <doc>
  35106. <![CDATA[Create a private clone of a public token.
  35107. @param newService the new service name
  35108. @return a private token]]>
  35109. </doc>
  35110. </method>
  35111. <method name="readFields"
  35112. abstract="false" native="false" synchronized="false"
  35113. static="false" final="false" visibility="public"
  35114. deprecated="not deprecated">
  35115. <param name="in" type="java.io.DataInput"/>
  35116. <exception name="IOException" type="java.io.IOException"/>
  35117. </method>
  35118. <method name="write"
  35119. abstract="false" native="false" synchronized="false"
  35120. static="false" final="false" visibility="public"
  35121. deprecated="not deprecated">
  35122. <param name="out" type="java.io.DataOutput"/>
  35123. <exception name="IOException" type="java.io.IOException"/>
  35124. </method>
  35125. <method name="encodeToUrlString" return="java.lang.String"
  35126. abstract="false" native="false" synchronized="false"
  35127. static="false" final="false" visibility="public"
  35128. deprecated="not deprecated">
  35129. <exception name="IOException" type="java.io.IOException"/>
  35130. <doc>
  35131. <![CDATA[Encode this token as a url safe string
  35132. @return the encoded string
  35133. @throws IOException]]>
  35134. </doc>
  35135. </method>
  35136. <method name="decodeFromUrlString"
  35137. abstract="false" native="false" synchronized="false"
  35138. static="false" final="false" visibility="public"
  35139. deprecated="not deprecated">
  35140. <param name="newValue" type="java.lang.String"/>
  35141. <exception name="IOException" type="java.io.IOException"/>
  35142. <doc>
  35143. <![CDATA[Decode the given url safe string into this token.
  35144. @param newValue the encoded string
  35145. @throws IOException]]>
  35146. </doc>
  35147. </method>
  35148. <method name="equals" return="boolean"
  35149. abstract="false" native="false" synchronized="false"
  35150. static="false" final="false" visibility="public"
  35151. deprecated="not deprecated">
  35152. <param name="right" type="java.lang.Object"/>
  35153. </method>
  35154. <method name="hashCode" return="int"
  35155. abstract="false" native="false" synchronized="false"
  35156. static="false" final="false" visibility="public"
  35157. deprecated="not deprecated">
  35158. </method>
  35159. <method name="toString" return="java.lang.String"
  35160. abstract="false" native="false" synchronized="false"
  35161. static="false" final="false" visibility="public"
  35162. deprecated="not deprecated">
  35163. </method>
  35164. <method name="buildCacheKey" return="java.lang.String"
  35165. abstract="false" native="false" synchronized="false"
  35166. static="false" final="false" visibility="public"
  35167. deprecated="not deprecated">
  35168. </method>
  35169. <method name="isManaged" return="boolean"
  35170. abstract="false" native="false" synchronized="false"
  35171. static="false" final="false" visibility="public"
  35172. deprecated="not deprecated">
  35173. <exception name="IOException" type="java.io.IOException"/>
  35174. <doc>
  35175. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  35176. @return true, if it can be renewed and cancelled.]]>
  35177. </doc>
  35178. </method>
  35179. <method name="renew" return="long"
  35180. abstract="false" native="false" synchronized="false"
  35181. static="false" final="false" visibility="public"
  35182. deprecated="not deprecated">
  35183. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35184. <exception name="IOException" type="java.io.IOException"/>
  35185. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35186. <doc>
  35187. <![CDATA[Renew this delegation token
  35188. @return the new expiration time
  35189. @throws IOException
  35190. @throws InterruptedException]]>
  35191. </doc>
  35192. </method>
  35193. <method name="cancel"
  35194. abstract="false" native="false" synchronized="false"
  35195. static="false" final="false" visibility="public"
  35196. deprecated="not deprecated">
  35197. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35198. <exception name="IOException" type="java.io.IOException"/>
  35199. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35200. <doc>
  35201. <![CDATA[Cancel this delegation token
  35202. @throws IOException
  35203. @throws InterruptedException]]>
  35204. </doc>
  35205. </method>
  35206. <field name="LOG" type="org.slf4j.Logger"
  35207. transient="false" volatile="false"
  35208. static="true" final="true" visibility="public"
  35209. deprecated="not deprecated">
  35210. </field>
  35211. <doc>
  35212. <![CDATA[The client-side form of the token.]]>
  35213. </doc>
  35214. </class>
  35215. <!-- end class org.apache.hadoop.security.token.Token -->
  35216. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  35217. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  35218. abstract="false"
  35219. static="true" final="false" visibility="public"
  35220. deprecated="not deprecated">
  35221. <constructor name="Token.TrivialRenewer"
  35222. static="false" final="false" visibility="public"
  35223. deprecated="not deprecated">
  35224. </constructor>
  35225. <method name="getKind" return="org.apache.hadoop.io.Text"
  35226. abstract="false" native="false" synchronized="false"
  35227. static="false" final="false" visibility="protected"
  35228. deprecated="not deprecated">
  35229. </method>
  35230. <method name="handleKind" return="boolean"
  35231. abstract="false" native="false" synchronized="false"
  35232. static="false" final="false" visibility="public"
  35233. deprecated="not deprecated">
  35234. <param name="kind" type="org.apache.hadoop.io.Text"/>
  35235. </method>
  35236. <method name="isManaged" return="boolean"
  35237. abstract="false" native="false" synchronized="false"
  35238. static="false" final="false" visibility="public"
  35239. deprecated="not deprecated">
  35240. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35241. </method>
  35242. <method name="renew" return="long"
  35243. abstract="false" native="false" synchronized="false"
  35244. static="false" final="false" visibility="public"
  35245. deprecated="not deprecated">
  35246. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35247. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35248. </method>
  35249. <method name="cancel"
  35250. abstract="false" native="false" synchronized="false"
  35251. static="false" final="false" visibility="public"
  35252. deprecated="not deprecated">
  35253. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35254. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35255. <exception name="IOException" type="java.io.IOException"/>
  35256. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35257. </method>
  35258. <doc>
  35259. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  35260. to implement getKind for their token kind.]]>
  35261. </doc>
  35262. </class>
  35263. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  35264. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  35265. <class name="TokenIdentifier" extends="java.lang.Object"
  35266. abstract="true"
  35267. static="false" final="false" visibility="public"
  35268. deprecated="not deprecated">
  35269. <implements name="org.apache.hadoop.io.Writable"/>
  35270. <constructor name="TokenIdentifier"
  35271. static="false" final="false" visibility="public"
  35272. deprecated="not deprecated">
  35273. </constructor>
  35274. <method name="getKind" return="org.apache.hadoop.io.Text"
  35275. abstract="true" native="false" synchronized="false"
  35276. static="false" final="false" visibility="public"
  35277. deprecated="not deprecated">
  35278. <doc>
  35279. <![CDATA[Get the token kind
  35280. @return the kind of the token]]>
  35281. </doc>
  35282. </method>
  35283. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  35284. abstract="true" native="false" synchronized="false"
  35285. static="false" final="false" visibility="public"
  35286. deprecated="not deprecated">
  35287. <doc>
  35288. <![CDATA[Get the Ugi with the username encoded in the token identifier
  35289. @return the username. null is returned if username in the identifier is
  35290. empty or null.]]>
  35291. </doc>
  35292. </method>
  35293. <method name="getBytes" return="byte[]"
  35294. abstract="false" native="false" synchronized="false"
  35295. static="false" final="false" visibility="public"
  35296. deprecated="not deprecated">
  35297. <doc>
  35298. <![CDATA[Get the bytes for the token identifier
  35299. @return the bytes of the identifier]]>
  35300. </doc>
  35301. </method>
  35302. <method name="getTrackingId" return="java.lang.String"
  35303. abstract="false" native="false" synchronized="false"
  35304. static="false" final="false" visibility="public"
  35305. deprecated="not deprecated">
  35306. <doc>
  35307. <![CDATA[Returns a tracking identifier that can be used to associate usages of a
  35308. token across multiple client sessions.
  35309. Currently, this function just returns an MD5 of {{@link #getBytes()}.
  35310. @return tracking identifier]]>
  35311. </doc>
  35312. </method>
  35313. <doc>
  35314. <![CDATA[An identifier that identifies a token, may contain public information
  35315. about a token, including its kind (or type).]]>
  35316. </doc>
  35317. </class>
  35318. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  35319. <!-- start class org.apache.hadoop.security.token.TokenInfo -->
  35320. <class name="TokenInfo" abstract="true"
  35321. static="false" final="false" visibility="public"
  35322. deprecated="not deprecated">
  35323. <implements name="java.lang.annotation.Annotation"/>
  35324. <doc>
  35325. <![CDATA[Indicates Token related information to be used]]>
  35326. </doc>
  35327. </class>
  35328. <!-- end class org.apache.hadoop.security.token.TokenInfo -->
  35329. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  35330. <class name="TokenRenewer" extends="java.lang.Object"
  35331. abstract="true"
  35332. static="false" final="false" visibility="public"
  35333. deprecated="not deprecated">
  35334. <constructor name="TokenRenewer"
  35335. static="false" final="false" visibility="public"
  35336. deprecated="not deprecated">
  35337. </constructor>
  35338. <method name="handleKind" return="boolean"
  35339. abstract="true" native="false" synchronized="false"
  35340. static="false" final="false" visibility="public"
  35341. deprecated="not deprecated">
  35342. <param name="kind" type="org.apache.hadoop.io.Text"/>
  35343. <doc>
  35344. <![CDATA[Does this renewer handle this kind of token?
  35345. @param kind the kind of the token
  35346. @return true if this renewer can renew it]]>
  35347. </doc>
  35348. </method>
  35349. <method name="isManaged" return="boolean"
  35350. abstract="true" native="false" synchronized="false"
  35351. static="false" final="false" visibility="public"
  35352. deprecated="not deprecated">
  35353. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35354. <exception name="IOException" type="java.io.IOException"/>
  35355. <doc>
  35356. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  35357. cancelled.
  35358. @param token the token being checked
  35359. @return true if the token may be renewed or cancelled
  35360. @throws IOException]]>
  35361. </doc>
  35362. </method>
  35363. <method name="renew" return="long"
  35364. abstract="true" native="false" synchronized="false"
  35365. static="false" final="false" visibility="public"
  35366. deprecated="not deprecated">
  35367. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35369. <exception name="IOException" type="java.io.IOException"/>
  35370. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35371. <doc>
  35372. <![CDATA[Renew the given token.
  35373. @return the new expiration time
  35374. @throws IOException
  35375. @throws InterruptedException]]>
  35376. </doc>
  35377. </method>
  35378. <method name="cancel"
  35379. abstract="true" native="false" synchronized="false"
  35380. static="false" final="false" visibility="public"
  35381. deprecated="not deprecated">
  35382. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35383. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35384. <exception name="IOException" type="java.io.IOException"/>
  35385. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35386. <doc>
  35387. <![CDATA[Cancel the given token
  35388. @throws IOException
  35389. @throws InterruptedException]]>
  35390. </doc>
  35391. </method>
  35392. <doc>
  35393. <![CDATA[This is the interface for plugins that handle tokens.]]>
  35394. </doc>
  35395. </class>
  35396. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  35397. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  35398. <interface name="TokenSelector" abstract="true"
  35399. static="false" final="false" visibility="public"
  35400. deprecated="not deprecated">
  35401. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  35402. abstract="false" native="false" synchronized="false"
  35403. static="false" final="false" visibility="public"
  35404. deprecated="not deprecated">
  35405. <param name="service" type="org.apache.hadoop.io.Text"/>
  35406. <param name="tokens" type="java.util.Collection"/>
  35407. </method>
  35408. <doc>
  35409. <![CDATA[Select token of type T from tokens for use with named service
  35410. @param <T>
  35411. T extends TokenIdentifier]]>
  35412. </doc>
  35413. </interface>
  35414. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  35415. </package>
  35416. <package name="org.apache.hadoop.security.token.delegation.web">
  35417. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  35418. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  35419. abstract="false"
  35420. static="false" final="false" visibility="public"
  35421. deprecated="not deprecated">
  35422. <constructor name="DelegationTokenAuthenticatedURL"
  35423. static="false" final="false" visibility="public"
  35424. deprecated="not deprecated">
  35425. <doc>
  35426. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  35427. <p/>
  35428. An instance of the default {@link DelegationTokenAuthenticator} will be
  35429. used.]]>
  35430. </doc>
  35431. </constructor>
  35432. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  35433. static="false" final="false" visibility="public"
  35434. deprecated="not deprecated">
  35435. <doc>
  35436. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  35437. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  35438. use, if <code>null</code> the default one will be used.]]>
  35439. </doc>
  35440. </constructor>
  35441. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  35442. static="false" final="false" visibility="public"
  35443. deprecated="not deprecated">
  35444. <doc>
  35445. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  35446. {@link DelegationTokenAuthenticator} class.
  35447. @param connConfigurator a connection configurator.]]>
  35448. </doc>
  35449. </constructor>
  35450. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  35451. static="false" final="false" visibility="public"
  35452. deprecated="not deprecated">
  35453. <doc>
  35454. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  35455. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  35456. use, if <code>null</code> the default one will be used.
  35457. @param connConfigurator a connection configurator.]]>
  35458. </doc>
  35459. </constructor>
  35460. <method name="setDefaultDelegationTokenAuthenticator"
  35461. abstract="false" native="false" synchronized="false"
  35462. static="true" final="false" visibility="public"
  35463. deprecated="not deprecated">
  35464. <param name="authenticator" type="java.lang.Class"/>
  35465. <doc>
  35466. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  35467. {@link DelegationTokenAuthenticatedURL} instance is created without
  35468. specifying one.
  35469. The default class is {@link KerberosDelegationTokenAuthenticator}
  35470. @param authenticator the authenticator class to use as default.]]>
  35471. </doc>
  35472. </method>
  35473. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  35474. abstract="false" native="false" synchronized="false"
  35475. static="true" final="false" visibility="public"
  35476. deprecated="not deprecated">
  35477. <doc>
  35478. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  35479. an {@link DelegationTokenAuthenticatedURL} instance is created without
  35480. specifying one.
  35481. <p/>
  35482. The default class is {@link KerberosDelegationTokenAuthenticator}
  35483. @return the delegation token authenticator class to use as default.]]>
  35484. </doc>
  35485. </method>
  35486. <method name="setUseQueryStringForDelegationToken"
  35487. abstract="false" native="false" synchronized="false"
  35488. static="false" final="false" visibility="protected"
  35489. deprecated="not deprecated">
  35490. <param name="useQueryString" type="boolean"/>
  35491. <doc>
  35492. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  35493. By default it is transmitted using the
  35494. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  35495. <p/>
  35496. This method is provided to enable WebHDFS backwards compatibility.
  35497. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  35498. URL query string, <code>FALSE</code> if the delegation token is transmitted
  35499. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  35500. header.]]>
  35501. </doc>
  35502. </method>
  35503. <method name="useQueryStringForDelegationToken" return="boolean"
  35504. abstract="false" native="false" synchronized="false"
  35505. static="false" final="false" visibility="public"
  35506. deprecated="not deprecated">
  35507. <doc>
  35508. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  35509. @return <code>TRUE</code> if the token is transmitted in the URL query
  35510. string, <code>FALSE</code> if the delegation token is transmitted using the
  35511. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  35512. </doc>
  35513. </method>
  35514. <method name="openConnection" return="java.net.HttpURLConnection"
  35515. abstract="false" native="false" synchronized="false"
  35516. static="false" final="false" visibility="public"
  35517. deprecated="not deprecated">
  35518. <param name="url" type="java.net.URL"/>
  35519. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35520. <exception name="IOException" type="java.io.IOException"/>
  35521. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35522. <doc>
  35523. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  35524. Token only if the given auth token is an instance of {@link Token} and
  35525. it contains a Delegation Token, otherwise use the configured
  35526. {@link DelegationTokenAuthenticator} to authenticate the connection.
  35527. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35528. @param token the authentication token being used for the user.
  35529. @return an authenticated {@link HttpURLConnection}.
  35530. @throws IOException if an IO error occurred.
  35531. @throws AuthenticationException if an authentication exception occurred.]]>
  35532. </doc>
  35533. </method>
  35534. <method name="openConnection" return="java.net.HttpURLConnection"
  35535. abstract="false" native="false" synchronized="false"
  35536. static="false" final="false" visibility="public"
  35537. deprecated="not deprecated">
  35538. <param name="url" type="java.net.URL"/>
  35539. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35540. <exception name="IOException" type="java.io.IOException"/>
  35541. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35542. <doc>
  35543. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  35544. Token is present, it will be used taking precedence over the configured
  35545. <code>Authenticator</code>.
  35546. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35547. @param token the authentication token being used for the user.
  35548. @return an authenticated {@link HttpURLConnection}.
  35549. @throws IOException if an IO error occurred.
  35550. @throws AuthenticationException if an authentication exception occurred.]]>
  35551. </doc>
  35552. </method>
  35553. <method name="openConnection" return="java.net.HttpURLConnection"
  35554. abstract="false" native="false" synchronized="false"
  35555. static="false" final="false" visibility="public"
  35556. deprecated="not deprecated">
  35557. <param name="url" type="java.net.URL"/>
  35558. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35559. <param name="doAs" type="java.lang.String"/>
  35560. <exception name="IOException" type="java.io.IOException"/>
  35561. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35562. <doc>
  35563. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  35564. Token is present, it will be used taking precedence over the configured
  35565. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  35566. the request will be done on behalf of the specified <code>doAs</code> user.
  35567. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35568. @param token the authentication token being used for the user.
  35569. @param doAs user to do the the request on behalf of, if NULL the request is
  35570. as self.
  35571. @return an authenticated {@link HttpURLConnection}.
  35572. @throws IOException if an IO error occurred.
  35573. @throws AuthenticationException if an authentication exception occurred.]]>
  35574. </doc>
  35575. </method>
  35576. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35577. abstract="false" native="false" synchronized="false"
  35578. static="false" final="false" visibility="public"
  35579. deprecated="not deprecated">
  35580. <param name="url" type="java.net.URL"/>
  35581. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35582. <param name="renewer" type="java.lang.String"/>
  35583. <exception name="IOException" type="java.io.IOException"/>
  35584. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35585. <doc>
  35586. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35587. for authentication.
  35588. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35589. supported.
  35590. @param token the authentication token being used for the user where the
  35591. Delegation token will be stored.
  35592. @param renewer the renewer user.
  35593. @return a delegation token.
  35594. @throws IOException if an IO error occurred.
  35595. @throws AuthenticationException if an authentication exception occurred.]]>
  35596. </doc>
  35597. </method>
  35598. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35599. abstract="false" native="false" synchronized="false"
  35600. static="false" final="false" visibility="public"
  35601. deprecated="not deprecated">
  35602. <param name="url" type="java.net.URL"/>
  35603. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35604. <param name="renewer" type="java.lang.String"/>
  35605. <param name="doAsUser" type="java.lang.String"/>
  35606. <exception name="IOException" type="java.io.IOException"/>
  35607. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35608. <doc>
  35609. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35610. for authentication.
  35611. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35612. supported.
  35613. @param token the authentication token being used for the user where the
  35614. Delegation token will be stored.
  35615. @param renewer the renewer user.
  35616. @param doAsUser the user to do as, which will be the token owner.
  35617. @return a delegation token.
  35618. @throws IOException if an IO error occurred.
  35619. @throws AuthenticationException if an authentication exception occurred.]]>
  35620. </doc>
  35621. </method>
  35622. <method name="renewDelegationToken" return="long"
  35623. abstract="false" native="false" synchronized="false"
  35624. static="false" final="false" visibility="public"
  35625. deprecated="not deprecated">
  35626. <param name="url" type="java.net.URL"/>
  35627. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35628. <exception name="IOException" type="java.io.IOException"/>
  35629. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35630. <doc>
  35631. <![CDATA[Renews a delegation token from the server end-point using the
  35632. configured <code>Authenticator</code> for authentication.
  35633. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35634. supported.
  35635. @param token the authentication token with the Delegation Token to renew.
  35636. @throws IOException if an IO error occurred.
  35637. @throws AuthenticationException if an authentication exception occurred.]]>
  35638. </doc>
  35639. </method>
  35640. <method name="renewDelegationToken" return="long"
  35641. abstract="false" native="false" synchronized="false"
  35642. static="false" final="false" visibility="public"
  35643. deprecated="not deprecated">
  35644. <param name="url" type="java.net.URL"/>
  35645. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35646. <param name="doAsUser" type="java.lang.String"/>
  35647. <exception name="IOException" type="java.io.IOException"/>
  35648. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35649. <doc>
  35650. <![CDATA[Renews a delegation token from the server end-point using the
  35651. configured <code>Authenticator</code> for authentication.
  35652. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35653. supported.
  35654. @param token the authentication token with the Delegation Token to renew.
  35655. @param doAsUser the user to do as, which will be the token owner.
  35656. @throws IOException if an IO error occurred.
  35657. @throws AuthenticationException if an authentication exception occurred.]]>
  35658. </doc>
  35659. </method>
  35660. <method name="cancelDelegationToken"
  35661. abstract="false" native="false" synchronized="false"
  35662. static="false" final="false" visibility="public"
  35663. deprecated="not deprecated">
  35664. <param name="url" type="java.net.URL"/>
  35665. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35666. <exception name="IOException" type="java.io.IOException"/>
  35667. <doc>
  35668. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35669. being authenticated by the configured <code>Authenticator</code>.
  35670. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35671. are supported.
  35672. @param token the authentication token with the Delegation Token to cancel.
  35673. @throws IOException if an IO error occurred.]]>
  35674. </doc>
  35675. </method>
  35676. <method name="cancelDelegationToken"
  35677. abstract="false" native="false" synchronized="false"
  35678. static="false" final="false" visibility="public"
  35679. deprecated="not deprecated">
  35680. <param name="url" type="java.net.URL"/>
  35681. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35682. <param name="doAsUser" type="java.lang.String"/>
  35683. <exception name="IOException" type="java.io.IOException"/>
  35684. <doc>
  35685. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35686. being authenticated by the configured <code>Authenticator</code>.
  35687. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35688. are supported.
  35689. @param token the authentication token with the Delegation Token to cancel.
  35690. @param doAsUser the user to do as, which will be the token owner.
  35691. @throws IOException if an IO error occurred.]]>
  35692. </doc>
  35693. </method>
  35694. <doc>
  35695. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  35696. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  35697. functionality.
  35698. <p/>
  35699. The authentication mechanisms supported by default are Hadoop Simple
  35700. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  35701. authentication.
  35702. <p/>
  35703. Additional authentication mechanisms can be supported via {@link
  35704. DelegationTokenAuthenticator} implementations.
  35705. <p/>
  35706. The default {@link DelegationTokenAuthenticator} is the {@link
  35707. KerberosDelegationTokenAuthenticator} class which supports
  35708. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  35709. the {@link PseudoDelegationTokenAuthenticator} class.
  35710. <p/>
  35711. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  35712. </doc>
  35713. </class>
  35714. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  35715. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  35716. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  35717. abstract="false"
  35718. static="true" final="false" visibility="public"
  35719. deprecated="not deprecated">
  35720. <constructor name="DelegationTokenAuthenticatedURL.Token"
  35721. static="false" final="false" visibility="public"
  35722. deprecated="not deprecated">
  35723. </constructor>
  35724. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35725. abstract="false" native="false" synchronized="false"
  35726. static="false" final="false" visibility="public"
  35727. deprecated="not deprecated">
  35728. </method>
  35729. <method name="setDelegationToken"
  35730. abstract="false" native="false" synchronized="false"
  35731. static="false" final="false" visibility="public"
  35732. deprecated="not deprecated">
  35733. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  35734. </method>
  35735. <doc>
  35736. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  35737. </doc>
  35738. </class>
  35739. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  35740. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  35741. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  35742. abstract="true"
  35743. static="false" final="false" visibility="public"
  35744. deprecated="not deprecated">
  35745. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  35746. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  35747. static="false" final="false" visibility="public"
  35748. deprecated="not deprecated">
  35749. </constructor>
  35750. <method name="setConnectionConfigurator"
  35751. abstract="false" native="false" synchronized="false"
  35752. static="false" final="false" visibility="public"
  35753. deprecated="not deprecated">
  35754. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  35755. </method>
  35756. <method name="authenticate"
  35757. abstract="false" native="false" synchronized="false"
  35758. static="false" final="false" visibility="public"
  35759. deprecated="not deprecated">
  35760. <param name="url" type="java.net.URL"/>
  35761. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35762. <exception name="IOException" type="java.io.IOException"/>
  35763. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35764. </method>
  35765. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35766. abstract="false" native="false" synchronized="false"
  35767. static="false" final="false" visibility="public"
  35768. deprecated="not deprecated">
  35769. <param name="url" type="java.net.URL"/>
  35770. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35771. <param name="renewer" type="java.lang.String"/>
  35772. <exception name="IOException" type="java.io.IOException"/>
  35773. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35774. <doc>
  35775. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35776. for authentication.
  35777. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35778. supported.
  35779. @param token the authentication token being used for the user where the
  35780. Delegation token will be stored.
  35781. @param renewer the renewer user.
  35782. @throws IOException if an IO error occurred.
  35783. @throws AuthenticationException if an authentication exception occurred.]]>
  35784. </doc>
  35785. </method>
  35786. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35787. abstract="false" native="false" synchronized="false"
  35788. static="false" final="false" visibility="public"
  35789. deprecated="not deprecated">
  35790. <param name="url" type="java.net.URL"/>
  35791. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35792. <param name="renewer" type="java.lang.String"/>
  35793. <param name="doAsUser" type="java.lang.String"/>
  35794. <exception name="IOException" type="java.io.IOException"/>
  35795. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35796. <doc>
  35797. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35798. for authentication.
  35799. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35800. supported.
  35801. @param token the authentication token being used for the user where the
  35802. Delegation token will be stored.
  35803. @param renewer the renewer user.
  35804. @param doAsUser the user to do as, which will be the token owner.
  35805. @throws IOException if an IO error occurred.
  35806. @throws AuthenticationException if an authentication exception occurred.]]>
  35807. </doc>
  35808. </method>
  35809. <method name="renewDelegationToken" return="long"
  35810. abstract="false" native="false" synchronized="false"
  35811. static="false" final="false" visibility="public"
  35812. deprecated="not deprecated">
  35813. <param name="url" type="java.net.URL"/>
  35814. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35815. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35816. <exception name="IOException" type="java.io.IOException"/>
  35817. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35818. <doc>
  35819. <![CDATA[Renews a delegation token from the server end-point using the
  35820. configured <code>Authenticator</code> for authentication.
  35821. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35822. supported.
  35823. @param token the authentication token with the Delegation Token to renew.
  35824. @throws IOException if an IO error occurred.
  35825. @throws AuthenticationException if an authentication exception occurred.]]>
  35826. </doc>
  35827. </method>
  35828. <method name="renewDelegationToken" return="long"
  35829. abstract="false" native="false" synchronized="false"
  35830. static="false" final="false" visibility="public"
  35831. deprecated="not deprecated">
  35832. <param name="url" type="java.net.URL"/>
  35833. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35834. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35835. <param name="doAsUser" type="java.lang.String"/>
  35836. <exception name="IOException" type="java.io.IOException"/>
  35837. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35838. <doc>
  35839. <![CDATA[Renews a delegation token from the server end-point using the
  35840. configured <code>Authenticator</code> for authentication.
  35841. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35842. supported.
  35843. @param token the authentication token with the Delegation Token to renew.
  35844. @param doAsUser the user to do as, which will be the token owner.
  35845. @throws IOException if an IO error occurred.
  35846. @throws AuthenticationException if an authentication exception occurred.]]>
  35847. </doc>
  35848. </method>
  35849. <method name="cancelDelegationToken"
  35850. abstract="false" native="false" synchronized="false"
  35851. static="false" final="false" visibility="public"
  35852. deprecated="not deprecated">
  35853. <param name="url" type="java.net.URL"/>
  35854. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35855. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35856. <exception name="IOException" type="java.io.IOException"/>
  35857. <doc>
  35858. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35859. being authenticated by the configured <code>Authenticator</code>.
  35860. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35861. are supported.
  35862. @param token the authentication token with the Delegation Token to cancel.
  35863. @throws IOException if an IO error occurred.]]>
  35864. </doc>
  35865. </method>
  35866. <method name="cancelDelegationToken"
  35867. abstract="false" native="false" synchronized="false"
  35868. static="false" final="false" visibility="public"
  35869. deprecated="not deprecated">
  35870. <param name="url" type="java.net.URL"/>
  35871. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35872. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  35873. <param name="doAsUser" type="java.lang.String"/>
  35874. <exception name="IOException" type="java.io.IOException"/>
  35875. <doc>
  35876. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35877. being authenticated by the configured <code>Authenticator</code>.
  35878. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35879. are supported.
  35880. @param token the authentication token with the Delegation Token to cancel.
  35881. @param doAsUser the user to do as, which will be the token owner.
  35882. @throws IOException if an IO error occurred.]]>
  35883. </doc>
  35884. </method>
  35885. <field name="OP_PARAM" type="java.lang.String"
  35886. transient="false" volatile="false"
  35887. static="true" final="true" visibility="public"
  35888. deprecated="not deprecated">
  35889. </field>
  35890. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  35891. transient="false" volatile="false"
  35892. static="true" final="true" visibility="public"
  35893. deprecated="not deprecated">
  35894. </field>
  35895. <field name="DELEGATION_PARAM" type="java.lang.String"
  35896. transient="false" volatile="false"
  35897. static="true" final="true" visibility="public"
  35898. deprecated="not deprecated">
  35899. </field>
  35900. <field name="TOKEN_PARAM" type="java.lang.String"
  35901. transient="false" volatile="false"
  35902. static="true" final="true" visibility="public"
  35903. deprecated="not deprecated">
  35904. </field>
  35905. <field name="RENEWER_PARAM" type="java.lang.String"
  35906. transient="false" volatile="false"
  35907. static="true" final="true" visibility="public"
  35908. deprecated="not deprecated">
  35909. </field>
  35910. <field name="SERVICE_PARAM" type="java.lang.String"
  35911. transient="false" volatile="false"
  35912. static="true" final="true" visibility="public"
  35913. deprecated="not deprecated">
  35914. </field>
  35915. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  35916. transient="false" volatile="false"
  35917. static="true" final="true" visibility="public"
  35918. deprecated="not deprecated">
  35919. </field>
  35920. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  35921. transient="false" volatile="false"
  35922. static="true" final="true" visibility="public"
  35923. deprecated="not deprecated">
  35924. </field>
  35925. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  35926. transient="false" volatile="false"
  35927. static="true" final="true" visibility="public"
  35928. deprecated="not deprecated">
  35929. </field>
  35930. <doc>
  35931. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  35932. Delegation Token support.]]>
  35933. </doc>
  35934. </class>
  35935. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  35936. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  35937. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  35938. abstract="false"
  35939. static="false" final="false" visibility="public"
  35940. deprecated="not deprecated">
  35941. <constructor name="KerberosDelegationTokenAuthenticator"
  35942. static="false" final="false" visibility="public"
  35943. deprecated="not deprecated">
  35944. </constructor>
  35945. <doc>
  35946. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  35947. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  35948. Token operations.
  35949. <p/>
  35950. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  35951. endpoint does not trigger a SPNEGO authentication]]>
  35952. </doc>
  35953. </class>
  35954. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  35955. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  35956. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  35957. abstract="false"
  35958. static="false" final="false" visibility="public"
  35959. deprecated="not deprecated">
  35960. <constructor name="PseudoDelegationTokenAuthenticator"
  35961. static="false" final="false" visibility="public"
  35962. deprecated="not deprecated">
  35963. </constructor>
  35964. <doc>
  35965. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  35966. Hadoop's pseudo authentication mechanism that accepts
  35967. the user name specified as a query string parameter and support for Hadoop
  35968. Delegation Token operations.
  35969. <p/>
  35970. This mimics the model of Hadoop Simple authentication trusting the
  35971. {@link UserGroupInformation#getCurrentUser()} value.]]>
  35972. </doc>
  35973. </class>
  35974. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  35975. </package>
  35976. <package name="org.apache.hadoop.service">
  35977. <!-- start class org.apache.hadoop.service.AbstractService -->
  35978. <class name="AbstractService" extends="java.lang.Object"
  35979. abstract="true"
  35980. static="false" final="false" visibility="public"
  35981. deprecated="not deprecated">
  35982. <implements name="org.apache.hadoop.service.Service"/>
  35983. <constructor name="AbstractService" type="java.lang.String"
  35984. static="false" final="false" visibility="public"
  35985. deprecated="not deprecated">
  35986. <doc>
  35987. <![CDATA[Construct the service.
  35988. @param name service name]]>
  35989. </doc>
  35990. </constructor>
  35991. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  35992. abstract="false" native="false" synchronized="false"
  35993. static="false" final="true" visibility="public"
  35994. deprecated="not deprecated">
  35995. </method>
  35996. <method name="getFailureCause" return="java.lang.Throwable"
  35997. abstract="false" native="false" synchronized="true"
  35998. static="false" final="true" visibility="public"
  35999. deprecated="not deprecated">
  36000. </method>
  36001. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  36002. abstract="false" native="false" synchronized="true"
  36003. static="false" final="false" visibility="public"
  36004. deprecated="not deprecated">
  36005. </method>
  36006. <method name="setConfig"
  36007. abstract="false" native="false" synchronized="false"
  36008. static="false" final="false" visibility="protected"
  36009. deprecated="not deprecated">
  36010. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36011. <doc>
  36012. <![CDATA[Set the configuration for this service.
  36013. This method is called during {@link #init(Configuration)}
  36014. and should only be needed if for some reason a service implementation
  36015. needs to override that initial setting -for example replacing
  36016. it with a new subclass of {@link Configuration}
  36017. @param conf new configuration.]]>
  36018. </doc>
  36019. </method>
  36020. <method name="init"
  36021. abstract="false" native="false" synchronized="false"
  36022. static="false" final="false" visibility="public"
  36023. deprecated="not deprecated">
  36024. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36025. <doc>
  36026. <![CDATA[{@inheritDoc}
  36027. This invokes {@link #serviceInit}
  36028. @param conf the configuration of the service. This must not be null
  36029. @throws ServiceStateException if the configuration was null,
  36030. the state change not permitted, or something else went wrong]]>
  36031. </doc>
  36032. </method>
  36033. <method name="start"
  36034. abstract="false" native="false" synchronized="false"
  36035. static="false" final="false" visibility="public"
  36036. deprecated="not deprecated">
  36037. <doc>
  36038. <![CDATA[{@inheritDoc}
  36039. @throws ServiceStateException if the current service state does not permit
  36040. this action]]>
  36041. </doc>
  36042. </method>
  36043. <method name="stop"
  36044. abstract="false" native="false" synchronized="false"
  36045. static="false" final="false" visibility="public"
  36046. deprecated="not deprecated">
  36047. <doc>
  36048. <![CDATA[{@inheritDoc}]]>
  36049. </doc>
  36050. </method>
  36051. <method name="close"
  36052. abstract="false" native="false" synchronized="false"
  36053. static="false" final="true" visibility="public"
  36054. deprecated="not deprecated">
  36055. <exception name="IOException" type="java.io.IOException"/>
  36056. <doc>
  36057. <![CDATA[Relay to {@link #stop()}
  36058. @throws IOException]]>
  36059. </doc>
  36060. </method>
  36061. <method name="noteFailure"
  36062. abstract="false" native="false" synchronized="false"
  36063. static="false" final="true" visibility="protected"
  36064. deprecated="not deprecated">
  36065. <param name="exception" type="java.lang.Exception"/>
  36066. <doc>
  36067. <![CDATA[Failure handling: record the exception
  36068. that triggered it -if there was not one already.
  36069. Services are free to call this themselves.
  36070. @param exception the exception]]>
  36071. </doc>
  36072. </method>
  36073. <method name="waitForServiceToStop" return="boolean"
  36074. abstract="false" native="false" synchronized="false"
  36075. static="false" final="true" visibility="public"
  36076. deprecated="not deprecated">
  36077. <param name="timeout" type="long"/>
  36078. </method>
  36079. <method name="serviceInit"
  36080. abstract="false" native="false" synchronized="false"
  36081. static="false" final="false" visibility="protected"
  36082. deprecated="not deprecated">
  36083. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36084. <exception name="Exception" type="java.lang.Exception"/>
  36085. <doc>
  36086. <![CDATA[All initialization code needed by a service.
  36087. This method will only ever be called once during the lifecycle of
  36088. a specific service instance.
  36089. Implementations do not need to be synchronized as the logic
  36090. in {@link #init(Configuration)} prevents re-entrancy.
  36091. The base implementation checks to see if the subclass has created
  36092. a new configuration instance, and if so, updates the base class value
  36093. @param conf configuration
  36094. @throws Exception on a failure -these will be caught,
  36095. possibly wrapped, and wil; trigger a service stop]]>
  36096. </doc>
  36097. </method>
  36098. <method name="serviceStart"
  36099. abstract="false" native="false" synchronized="false"
  36100. static="false" final="false" visibility="protected"
  36101. deprecated="not deprecated">
  36102. <exception name="Exception" type="java.lang.Exception"/>
  36103. <doc>
  36104. <![CDATA[Actions called during the INITED to STARTED transition.
  36105. This method will only ever be called once during the lifecycle of
  36106. a specific service instance.
  36107. Implementations do not need to be synchronized as the logic
  36108. in {@link #start()} prevents re-entrancy.
  36109. @throws Exception if needed -these will be caught,
  36110. wrapped, and trigger a service stop]]>
  36111. </doc>
  36112. </method>
  36113. <method name="serviceStop"
  36114. abstract="false" native="false" synchronized="false"
  36115. static="false" final="false" visibility="protected"
  36116. deprecated="not deprecated">
  36117. <exception name="Exception" type="java.lang.Exception"/>
  36118. <doc>
  36119. <![CDATA[Actions called during the transition to the STOPPED state.
  36120. This method will only ever be called once during the lifecycle of
  36121. a specific service instance.
  36122. Implementations do not need to be synchronized as the logic
  36123. in {@link #stop()} prevents re-entrancy.
  36124. Implementations MUST write this to be robust against failures, including
  36125. checks for null references -and for the first failure to not stop other
  36126. attempts to shut down parts of the service.
  36127. @throws Exception if needed -these will be caught and logged.]]>
  36128. </doc>
  36129. </method>
  36130. <method name="registerServiceListener"
  36131. abstract="false" native="false" synchronized="false"
  36132. static="false" final="false" visibility="public"
  36133. deprecated="not deprecated">
  36134. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36135. </method>
  36136. <method name="unregisterServiceListener"
  36137. abstract="false" native="false" synchronized="false"
  36138. static="false" final="false" visibility="public"
  36139. deprecated="not deprecated">
  36140. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36141. </method>
  36142. <method name="registerGlobalListener"
  36143. abstract="false" native="false" synchronized="false"
  36144. static="true" final="false" visibility="public"
  36145. deprecated="not deprecated">
  36146. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36147. <doc>
  36148. <![CDATA[Register a global listener, which receives notifications
  36149. from the state change events of all services in the JVM
  36150. @param l listener]]>
  36151. </doc>
  36152. </method>
  36153. <method name="unregisterGlobalListener" return="boolean"
  36154. abstract="false" native="false" synchronized="false"
  36155. static="true" final="false" visibility="public"
  36156. deprecated="not deprecated">
  36157. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36158. <doc>
  36159. <![CDATA[unregister a global listener.
  36160. @param l listener to unregister
  36161. @return true if the listener was found (and then deleted)]]>
  36162. </doc>
  36163. </method>
  36164. <method name="getName" return="java.lang.String"
  36165. abstract="false" native="false" synchronized="false"
  36166. static="false" final="false" visibility="public"
  36167. deprecated="not deprecated">
  36168. </method>
  36169. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  36170. abstract="false" native="false" synchronized="false"
  36171. static="false" final="false" visibility="public"
  36172. deprecated="not deprecated">
  36173. </method>
  36174. <method name="getStartTime" return="long"
  36175. abstract="false" native="false" synchronized="false"
  36176. static="false" final="false" visibility="public"
  36177. deprecated="not deprecated">
  36178. </method>
  36179. <method name="getLifecycleHistory" return="java.util.List"
  36180. abstract="false" native="false" synchronized="true"
  36181. static="false" final="false" visibility="public"
  36182. deprecated="not deprecated">
  36183. </method>
  36184. <method name="isInState" return="boolean"
  36185. abstract="false" native="false" synchronized="false"
  36186. static="false" final="true" visibility="public"
  36187. deprecated="not deprecated">
  36188. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  36189. </method>
  36190. <method name="toString" return="java.lang.String"
  36191. abstract="false" native="false" synchronized="false"
  36192. static="false" final="false" visibility="public"
  36193. deprecated="not deprecated">
  36194. </method>
  36195. <method name="putBlocker"
  36196. abstract="false" native="false" synchronized="false"
  36197. static="false" final="false" visibility="protected"
  36198. deprecated="not deprecated">
  36199. <param name="name" type="java.lang.String"/>
  36200. <param name="details" type="java.lang.String"/>
  36201. <doc>
  36202. <![CDATA[Put a blocker to the blocker map -replacing any
  36203. with the same name.
  36204. @param name blocker name
  36205. @param details any specifics on the block. This must be non-null.]]>
  36206. </doc>
  36207. </method>
  36208. <method name="removeBlocker"
  36209. abstract="false" native="false" synchronized="false"
  36210. static="false" final="false" visibility="public"
  36211. deprecated="not deprecated">
  36212. <param name="name" type="java.lang.String"/>
  36213. <doc>
  36214. <![CDATA[Remove a blocker from the blocker map -
  36215. this is a no-op if the blocker is not present
  36216. @param name the name of the blocker]]>
  36217. </doc>
  36218. </method>
  36219. <method name="getBlockers" return="java.util.Map"
  36220. abstract="false" native="false" synchronized="false"
  36221. static="false" final="false" visibility="public"
  36222. deprecated="not deprecated">
  36223. </method>
  36224. <doc>
  36225. <![CDATA[This is the base implementation class for services.]]>
  36226. </doc>
  36227. </class>
  36228. <!-- end class org.apache.hadoop.service.AbstractService -->
  36229. <!-- start class org.apache.hadoop.service.CompositeService -->
  36230. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  36231. abstract="false"
  36232. static="false" final="false" visibility="public"
  36233. deprecated="not deprecated">
  36234. <constructor name="CompositeService" type="java.lang.String"
  36235. static="false" final="false" visibility="public"
  36236. deprecated="not deprecated">
  36237. </constructor>
  36238. <method name="getServices" return="java.util.List"
  36239. abstract="false" native="false" synchronized="false"
  36240. static="false" final="false" visibility="public"
  36241. deprecated="not deprecated">
  36242. <doc>
  36243. <![CDATA[Get a cloned list of services
  36244. @return a list of child services at the time of invocation -
  36245. added services will not be picked up.]]>
  36246. </doc>
  36247. </method>
  36248. <method name="addService"
  36249. abstract="false" native="false" synchronized="false"
  36250. static="false" final="false" visibility="protected"
  36251. deprecated="not deprecated">
  36252. <param name="service" type="org.apache.hadoop.service.Service"/>
  36253. <doc>
  36254. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  36255. {@link CompositeService}
  36256. @param service the {@link Service} to be added]]>
  36257. </doc>
  36258. </method>
  36259. <method name="addIfService" return="boolean"
  36260. abstract="false" native="false" synchronized="false"
  36261. static="false" final="false" visibility="protected"
  36262. deprecated="not deprecated">
  36263. <param name="object" type="java.lang.Object"/>
  36264. <doc>
  36265. <![CDATA[If the passed object is an instance of {@link Service},
  36266. add it to the list of services managed by this {@link CompositeService}
  36267. @param object
  36268. @return true if a service is added, false otherwise.]]>
  36269. </doc>
  36270. </method>
  36271. <method name="removeService" return="boolean"
  36272. abstract="false" native="false" synchronized="true"
  36273. static="false" final="false" visibility="protected"
  36274. deprecated="not deprecated">
  36275. <param name="service" type="org.apache.hadoop.service.Service"/>
  36276. </method>
  36277. <method name="serviceInit"
  36278. abstract="false" native="false" synchronized="false"
  36279. static="false" final="false" visibility="protected"
  36280. deprecated="not deprecated">
  36281. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36282. <exception name="Exception" type="java.lang.Exception"/>
  36283. </method>
  36284. <method name="serviceStart"
  36285. abstract="false" native="false" synchronized="false"
  36286. static="false" final="false" visibility="protected"
  36287. deprecated="not deprecated">
  36288. <exception name="Exception" type="java.lang.Exception"/>
  36289. </method>
  36290. <method name="serviceStop"
  36291. abstract="false" native="false" synchronized="false"
  36292. static="false" final="false" visibility="protected"
  36293. deprecated="not deprecated">
  36294. <exception name="Exception" type="java.lang.Exception"/>
  36295. </method>
  36296. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  36297. transient="false" volatile="false"
  36298. static="true" final="true" visibility="protected"
  36299. deprecated="not deprecated">
  36300. <doc>
  36301. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  36302. only try to close started services (which assumes
  36303. that the service implementations may not handle the stop() operation
  36304. except when started.
  36305. Irrespective of this policy, if a child service fails during
  36306. its init() or start() operations, it will have stop() called on it.]]>
  36307. </doc>
  36308. </field>
  36309. <doc>
  36310. <![CDATA[Composition of services.]]>
  36311. </doc>
  36312. </class>
  36313. <!-- end class org.apache.hadoop.service.CompositeService -->
  36314. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  36315. <class name="LifecycleEvent" extends="java.lang.Object"
  36316. abstract="false"
  36317. static="false" final="false" visibility="public"
  36318. deprecated="not deprecated">
  36319. <implements name="java.io.Serializable"/>
  36320. <constructor name="LifecycleEvent"
  36321. static="false" final="false" visibility="public"
  36322. deprecated="not deprecated">
  36323. </constructor>
  36324. <field name="time" type="long"
  36325. transient="false" volatile="false"
  36326. static="false" final="false" visibility="public"
  36327. deprecated="not deprecated">
  36328. <doc>
  36329. <![CDATA[Local time in milliseconds when the event occurred]]>
  36330. </doc>
  36331. </field>
  36332. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  36333. transient="false" volatile="false"
  36334. static="false" final="false" visibility="public"
  36335. deprecated="not deprecated">
  36336. <doc>
  36337. <![CDATA[new state]]>
  36338. </doc>
  36339. </field>
  36340. <doc>
  36341. <![CDATA[A serializable lifecycle event: the time a state
  36342. transition occurred, and what state was entered.]]>
  36343. </doc>
  36344. </class>
  36345. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  36346. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  36347. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  36348. abstract="false"
  36349. static="false" final="false" visibility="public"
  36350. deprecated="not deprecated">
  36351. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36352. <constructor name="LoggingStateChangeListener" type="org.slf4j.Logger"
  36353. static="false" final="false" visibility="public"
  36354. deprecated="not deprecated">
  36355. <doc>
  36356. <![CDATA[Log events to the given log
  36357. @param log destination for events]]>
  36358. </doc>
  36359. </constructor>
  36360. <constructor name="LoggingStateChangeListener"
  36361. static="false" final="false" visibility="public"
  36362. deprecated="not deprecated">
  36363. <doc>
  36364. <![CDATA[Log events to the static log for this class]]>
  36365. </doc>
  36366. </constructor>
  36367. <method name="stateChanged"
  36368. abstract="false" native="false" synchronized="false"
  36369. static="false" final="false" visibility="public"
  36370. deprecated="not deprecated">
  36371. <param name="service" type="org.apache.hadoop.service.Service"/>
  36372. <doc>
  36373. <![CDATA[Callback for a state change event: log it
  36374. @param service the service that has changed.]]>
  36375. </doc>
  36376. </method>
  36377. <doc>
  36378. <![CDATA[This is a state change listener that logs events at INFO level]]>
  36379. </doc>
  36380. </class>
  36381. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  36382. <!-- start interface org.apache.hadoop.service.Service -->
  36383. <interface name="Service" abstract="true"
  36384. static="false" final="false" visibility="public"
  36385. deprecated="not deprecated">
  36386. <implements name="java.io.Closeable"/>
  36387. <method name="init"
  36388. abstract="false" native="false" synchronized="false"
  36389. static="false" final="false" visibility="public"
  36390. deprecated="not deprecated">
  36391. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  36392. <doc>
  36393. <![CDATA[Initialize the service.
  36394. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  36395. unless the operation failed and an exception was raised, in which case
  36396. {@link #stop()} MUST be invoked and the service enter the state
  36397. {@link STATE#STOPPED}.
  36398. @param config the configuration of the service
  36399. @throws RuntimeException on any failure during the operation]]>
  36400. </doc>
  36401. </method>
  36402. <method name="start"
  36403. abstract="false" native="false" synchronized="false"
  36404. static="false" final="false" visibility="public"
  36405. deprecated="not deprecated">
  36406. <doc>
  36407. <![CDATA[Start the service.
  36408. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  36409. unless the operation failed and an exception was raised, in which case
  36410. {@link #stop()} MUST be invoked and the service enter the state
  36411. {@link STATE#STOPPED}.
  36412. @throws RuntimeException on any failure during the operation]]>
  36413. </doc>
  36414. </method>
  36415. <method name="stop"
  36416. abstract="false" native="false" synchronized="false"
  36417. static="false" final="false" visibility="public"
  36418. deprecated="not deprecated">
  36419. <doc>
  36420. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  36421. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  36422. to stop all parts of the service.
  36423. The implementation must be designed to complete regardless of the service
  36424. state, including the initialized/uninitialized state of all its internal
  36425. fields.
  36426. @throws RuntimeException on any failure during the stop operation]]>
  36427. </doc>
  36428. </method>
  36429. <method name="close"
  36430. abstract="false" native="false" synchronized="false"
  36431. static="false" final="false" visibility="public"
  36432. deprecated="not deprecated">
  36433. <exception name="IOException" type="java.io.IOException"/>
  36434. <doc>
  36435. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  36436. clauses.
  36437. Implementation classes MUST relay this directly to {@link #stop()}
  36438. @throws IOException never
  36439. @throws RuntimeException on any failure during the stop operation]]>
  36440. </doc>
  36441. </method>
  36442. <method name="registerServiceListener"
  36443. abstract="false" native="false" synchronized="false"
  36444. static="false" final="false" visibility="public"
  36445. deprecated="not deprecated">
  36446. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36447. <doc>
  36448. <![CDATA[Register a listener to the service state change events.
  36449. If the supplied listener is already listening to this service,
  36450. this method is a no-op.
  36451. @param listener a new listener]]>
  36452. </doc>
  36453. </method>
  36454. <method name="unregisterServiceListener"
  36455. abstract="false" native="false" synchronized="false"
  36456. static="false" final="false" visibility="public"
  36457. deprecated="not deprecated">
  36458. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36459. <doc>
  36460. <![CDATA[Unregister a previously registered listener of the service state
  36461. change events. No-op if the listener is already unregistered.
  36462. @param listener the listener to unregister.]]>
  36463. </doc>
  36464. </method>
  36465. <method name="getName" return="java.lang.String"
  36466. abstract="false" native="false" synchronized="false"
  36467. static="false" final="false" visibility="public"
  36468. deprecated="not deprecated">
  36469. <doc>
  36470. <![CDATA[Get the name of this service.
  36471. @return the service name]]>
  36472. </doc>
  36473. </method>
  36474. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  36475. abstract="false" native="false" synchronized="false"
  36476. static="false" final="false" visibility="public"
  36477. deprecated="not deprecated">
  36478. <doc>
  36479. <![CDATA[Get the configuration of this service.
  36480. This is normally not a clone and may be manipulated, though there are no
  36481. guarantees as to what the consequences of such actions may be
  36482. @return the current configuration, unless a specific implentation chooses
  36483. otherwise.]]>
  36484. </doc>
  36485. </method>
  36486. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  36487. abstract="false" native="false" synchronized="false"
  36488. static="false" final="false" visibility="public"
  36489. deprecated="not deprecated">
  36490. <doc>
  36491. <![CDATA[Get the current service state
  36492. @return the state of the service]]>
  36493. </doc>
  36494. </method>
  36495. <method name="getStartTime" return="long"
  36496. abstract="false" native="false" synchronized="false"
  36497. static="false" final="false" visibility="public"
  36498. deprecated="not deprecated">
  36499. <doc>
  36500. <![CDATA[Get the service start time
  36501. @return the start time of the service. This will be zero if the service
  36502. has not yet been started.]]>
  36503. </doc>
  36504. </method>
  36505. <method name="isInState" return="boolean"
  36506. abstract="false" native="false" synchronized="false"
  36507. static="false" final="false" visibility="public"
  36508. deprecated="not deprecated">
  36509. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  36510. <doc>
  36511. <![CDATA[Query to see if the service is in a specific state.
  36512. In a multi-threaded system, the state may not hold for very long.
  36513. @param state the expected state
  36514. @return true if, at the time of invocation, the service was in that state.]]>
  36515. </doc>
  36516. </method>
  36517. <method name="getFailureCause" return="java.lang.Throwable"
  36518. abstract="false" native="false" synchronized="false"
  36519. static="false" final="false" visibility="public"
  36520. deprecated="not deprecated">
  36521. <doc>
  36522. <![CDATA[Get the first exception raised during the service failure. If null,
  36523. no exception was logged
  36524. @return the failure logged during a transition to the stopped state]]>
  36525. </doc>
  36526. </method>
  36527. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  36528. abstract="false" native="false" synchronized="false"
  36529. static="false" final="false" visibility="public"
  36530. deprecated="not deprecated">
  36531. <doc>
  36532. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  36533. @return the state or null if there was no failure]]>
  36534. </doc>
  36535. </method>
  36536. <method name="waitForServiceToStop" return="boolean"
  36537. abstract="false" native="false" synchronized="false"
  36538. static="false" final="false" visibility="public"
  36539. deprecated="not deprecated">
  36540. <param name="timeout" type="long"/>
  36541. <doc>
  36542. <![CDATA[Block waiting for the service to stop; uses the termination notification
  36543. object to do so.
  36544. This method will only return after all the service stop actions
  36545. have been executed (to success or failure), or the timeout elapsed
  36546. This method can be called before the service is inited or started; this is
  36547. to eliminate any race condition with the service stopping before
  36548. this event occurs.
  36549. @param timeout timeout in milliseconds. A value of zero means "forever"
  36550. @return true iff the service stopped in the time period]]>
  36551. </doc>
  36552. </method>
  36553. <method name="getLifecycleHistory" return="java.util.List"
  36554. abstract="false" native="false" synchronized="false"
  36555. static="false" final="false" visibility="public"
  36556. deprecated="not deprecated">
  36557. <doc>
  36558. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  36559. @return a possibly empty but never null list of lifecycle events.]]>
  36560. </doc>
  36561. </method>
  36562. <method name="getBlockers" return="java.util.Map"
  36563. abstract="false" native="false" synchronized="false"
  36564. static="false" final="false" visibility="public"
  36565. deprecated="not deprecated">
  36566. <doc>
  36567. <![CDATA[Get the blockers on a service -remote dependencies
  36568. that are stopping the service from being <i>live</i>.
  36569. @return a (snapshotted) map of blocker name-&gt;description values]]>
  36570. </doc>
  36571. </method>
  36572. <doc>
  36573. <![CDATA[Service LifeCycle.]]>
  36574. </doc>
  36575. </interface>
  36576. <!-- end interface org.apache.hadoop.service.Service -->
  36577. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  36578. <class name="ServiceOperations" extends="java.lang.Object"
  36579. abstract="false"
  36580. static="false" final="true" visibility="public"
  36581. deprecated="not deprecated">
  36582. <method name="stop"
  36583. abstract="false" native="false" synchronized="false"
  36584. static="true" final="false" visibility="public"
  36585. deprecated="not deprecated">
  36586. <param name="service" type="org.apache.hadoop.service.Service"/>
  36587. <doc>
  36588. <![CDATA[Stop a service.
  36589. <p/>Do nothing if the service is null or not
  36590. in a state in which it can be/needs to be stopped.
  36591. <p/>
  36592. The service state is checked <i>before</i> the operation begins.
  36593. This process is <i>not</i> thread safe.
  36594. @param service a service or null]]>
  36595. </doc>
  36596. </method>
  36597. <method name="stopQuietly" return="java.lang.Exception"
  36598. abstract="false" native="false" synchronized="false"
  36599. static="true" final="false" visibility="public"
  36600. deprecated="not deprecated">
  36601. <param name="service" type="org.apache.hadoop.service.Service"/>
  36602. <doc>
  36603. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  36604. logged at warn level. (but not Throwables). This operation is intended to
  36605. be used in cleanup operations
  36606. @param service a service; may be null
  36607. @return any exception that was caught; null if none was.]]>
  36608. </doc>
  36609. </method>
  36610. <method name="stopQuietly" return="java.lang.Exception"
  36611. abstract="false" native="false" synchronized="false"
  36612. static="true" final="false" visibility="public"
  36613. deprecated="not deprecated">
  36614. <param name="log" type="org.apache.commons.logging.Log"/>
  36615. <param name="service" type="org.apache.hadoop.service.Service"/>
  36616. <doc>
  36617. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  36618. logged at warn level. (but not Throwables). This operation is intended to
  36619. be used in cleanup operations
  36620. @param log the log to warn at
  36621. @param service a service; may be null
  36622. @return any exception that was caught; null if none was.
  36623. @see ServiceOperations#stopQuietly(Service)]]>
  36624. </doc>
  36625. </method>
  36626. <method name="stopQuietly" return="java.lang.Exception"
  36627. abstract="false" native="false" synchronized="false"
  36628. static="true" final="false" visibility="public"
  36629. deprecated="not deprecated">
  36630. <param name="log" type="org.slf4j.Logger"/>
  36631. <param name="service" type="org.apache.hadoop.service.Service"/>
  36632. <doc>
  36633. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  36634. logged at warn level. (but not Throwables). This operation is intended to
  36635. be used in cleanup operations
  36636. @param log the log to warn at
  36637. @param service a service; may be null
  36638. @return any exception that was caught; null if none was.
  36639. @see ServiceOperations#stopQuietly(Service)]]>
  36640. </doc>
  36641. </method>
  36642. <doc>
  36643. <![CDATA[This class contains a set of methods to work with services, especially
  36644. to walk them through their lifecycle.]]>
  36645. </doc>
  36646. </class>
  36647. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  36648. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  36649. <interface name="ServiceStateChangeListener" abstract="true"
  36650. static="false" final="false" visibility="public"
  36651. deprecated="not deprecated">
  36652. <method name="stateChanged"
  36653. abstract="false" native="false" synchronized="false"
  36654. static="false" final="false" visibility="public"
  36655. deprecated="not deprecated">
  36656. <param name="service" type="org.apache.hadoop.service.Service"/>
  36657. <doc>
  36658. <![CDATA[Callback to notify of a state change. The service will already
  36659. have changed state before this callback is invoked.
  36660. This operation is invoked on the thread that initiated the state change,
  36661. while the service itself in in a sychronized section.
  36662. <ol>
  36663. <li>Any long-lived operation here will prevent the service state
  36664. change from completing in a timely manner.</li>
  36665. <li>If another thread is somehow invoked from the listener, and
  36666. that thread invokes the methods of the service (including
  36667. subclass-specific methods), there is a risk of a deadlock.</li>
  36668. </ol>
  36669. @param service the service that has changed.]]>
  36670. </doc>
  36671. </method>
  36672. <doc>
  36673. <![CDATA[Interface to notify state changes of a service.]]>
  36674. </doc>
  36675. </interface>
  36676. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  36677. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  36678. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  36679. abstract="false"
  36680. static="false" final="false" visibility="public"
  36681. deprecated="not deprecated">
  36682. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  36683. <constructor name="ServiceStateException" type="java.lang.String"
  36684. static="false" final="false" visibility="public"
  36685. deprecated="not deprecated">
  36686. <doc>
  36687. <![CDATA[Instantiate
  36688. @param message error message]]>
  36689. </doc>
  36690. </constructor>
  36691. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  36692. static="false" final="false" visibility="public"
  36693. deprecated="not deprecated">
  36694. <doc>
  36695. <![CDATA[Instantiate with a message and cause; if the cause has an exit code
  36696. then it is used, otherwise the generic
  36697. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION} exit code
  36698. is used.
  36699. @param message exception message
  36700. @param cause optional inner cause]]>
  36701. </doc>
  36702. </constructor>
  36703. <constructor name="ServiceStateException" type="int, java.lang.String, java.lang.Throwable"
  36704. static="false" final="false" visibility="public"
  36705. deprecated="not deprecated">
  36706. <doc>
  36707. <![CDATA[Instantiate, using the specified exit code as the exit code
  36708. of the exception, irrespetive of any exit code supplied by any inner
  36709. cause.
  36710. @param exitCode exit code to declare
  36711. @param message exception message
  36712. @param cause inner cause]]>
  36713. </doc>
  36714. </constructor>
  36715. <constructor name="ServiceStateException" type="java.lang.Throwable"
  36716. static="false" final="false" visibility="public"
  36717. deprecated="not deprecated">
  36718. </constructor>
  36719. <method name="getExitCode" return="int"
  36720. abstract="false" native="false" synchronized="false"
  36721. static="false" final="false" visibility="public"
  36722. deprecated="not deprecated">
  36723. </method>
  36724. <method name="convert" return="java.lang.RuntimeException"
  36725. abstract="false" native="false" synchronized="false"
  36726. static="true" final="false" visibility="public"
  36727. deprecated="not deprecated">
  36728. <param name="fault" type="java.lang.Throwable"/>
  36729. <doc>
  36730. <![CDATA[Convert any exception into a {@link RuntimeException}.
  36731. All other exception types are wrapped in a new instance of
  36732. {@code ServiceStateException}.
  36733. @param fault exception or throwable
  36734. @return a {@link RuntimeException} to rethrow]]>
  36735. </doc>
  36736. </method>
  36737. <method name="convert" return="java.lang.RuntimeException"
  36738. abstract="false" native="false" synchronized="false"
  36739. static="true" final="false" visibility="public"
  36740. deprecated="not deprecated">
  36741. <param name="text" type="java.lang.String"/>
  36742. <param name="fault" type="java.lang.Throwable"/>
  36743. <doc>
  36744. <![CDATA[Convert any exception into a {@link RuntimeException}.
  36745. If the caught exception is already of that type, it is typecast to a
  36746. {@link RuntimeException} and returned.
  36747. All other exception types are wrapped in a new instance of
  36748. {@code ServiceStateException}.
  36749. @param text text to use if a new exception is created
  36750. @param fault exception or throwable
  36751. @return a {@link RuntimeException} to rethrow]]>
  36752. </doc>
  36753. </method>
  36754. <doc>
  36755. <![CDATA[Exception that can be raised on state change operations, whose
  36756. exit code can be explicitly set, determined from that of any nested
  36757. cause, or a default value of
  36758. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION}.]]>
  36759. </doc>
  36760. </class>
  36761. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  36762. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  36763. <class name="ServiceStateModel" extends="java.lang.Object"
  36764. abstract="false"
  36765. static="false" final="false" visibility="public"
  36766. deprecated="not deprecated">
  36767. <constructor name="ServiceStateModel" type="java.lang.String"
  36768. static="false" final="false" visibility="public"
  36769. deprecated="not deprecated">
  36770. <doc>
  36771. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  36772. state.]]>
  36773. </doc>
  36774. </constructor>
  36775. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  36776. static="false" final="false" visibility="public"
  36777. deprecated="not deprecated">
  36778. <doc>
  36779. <![CDATA[Create a service state model instance in the chosen state
  36780. @param state the starting state]]>
  36781. </doc>
  36782. </constructor>
  36783. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  36784. abstract="false" native="false" synchronized="false"
  36785. static="false" final="false" visibility="public"
  36786. deprecated="not deprecated">
  36787. <doc>
  36788. <![CDATA[Query the service state. This is a non-blocking operation.
  36789. @return the state]]>
  36790. </doc>
  36791. </method>
  36792. <method name="isInState" return="boolean"
  36793. abstract="false" native="false" synchronized="false"
  36794. static="false" final="false" visibility="public"
  36795. deprecated="not deprecated">
  36796. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36797. <doc>
  36798. <![CDATA[Query that the state is in a specific state
  36799. @param proposed proposed new state
  36800. @return the state]]>
  36801. </doc>
  36802. </method>
  36803. <method name="ensureCurrentState"
  36804. abstract="false" native="false" synchronized="false"
  36805. static="false" final="false" visibility="public"
  36806. deprecated="not deprecated">
  36807. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  36808. <doc>
  36809. <![CDATA[Verify that that a service is in a given state.
  36810. @param expectedState the desired state
  36811. @throws ServiceStateException if the service state is different from
  36812. the desired state]]>
  36813. </doc>
  36814. </method>
  36815. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  36816. abstract="false" native="false" synchronized="true"
  36817. static="false" final="false" visibility="public"
  36818. deprecated="not deprecated">
  36819. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36820. <doc>
  36821. <![CDATA[Enter a state -thread safe.
  36822. @param proposed proposed new state
  36823. @return the original state
  36824. @throws ServiceStateException if the transition is not permitted]]>
  36825. </doc>
  36826. </method>
  36827. <method name="checkStateTransition"
  36828. abstract="false" native="false" synchronized="false"
  36829. static="true" final="false" visibility="public"
  36830. deprecated="not deprecated">
  36831. <param name="name" type="java.lang.String"/>
  36832. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  36833. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36834. <doc>
  36835. <![CDATA[Check that a state tansition is valid and
  36836. throw an exception if not
  36837. @param name name of the service (can be null)
  36838. @param state current state
  36839. @param proposed proposed new state]]>
  36840. </doc>
  36841. </method>
  36842. <method name="isValidStateTransition" return="boolean"
  36843. abstract="false" native="false" synchronized="false"
  36844. static="true" final="false" visibility="public"
  36845. deprecated="not deprecated">
  36846. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  36847. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36848. <doc>
  36849. <![CDATA[Is a state transition valid?
  36850. There are no checks for current==proposed
  36851. as that is considered a non-transition.
  36852. using an array kills off all branch misprediction costs, at the expense
  36853. of cache line misses.
  36854. @param current current state
  36855. @param proposed proposed new state
  36856. @return true if the transition to a new state is valid]]>
  36857. </doc>
  36858. </method>
  36859. <method name="toString" return="java.lang.String"
  36860. abstract="false" native="false" synchronized="false"
  36861. static="false" final="false" visibility="public"
  36862. deprecated="not deprecated">
  36863. <doc>
  36864. <![CDATA[return the state text as the toString() value
  36865. @return the current state's description]]>
  36866. </doc>
  36867. </method>
  36868. <doc>
  36869. <![CDATA[Implements the service state model.]]>
  36870. </doc>
  36871. </class>
  36872. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  36873. </package>
  36874. <package name="org.apache.hadoop.service.launcher">
  36875. <!-- start class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  36876. <class name="AbstractLaunchableService" extends="org.apache.hadoop.service.AbstractService"
  36877. abstract="true"
  36878. static="false" final="false" visibility="public"
  36879. deprecated="not deprecated">
  36880. <implements name="org.apache.hadoop.service.launcher.LaunchableService"/>
  36881. <constructor name="AbstractLaunchableService" type="java.lang.String"
  36882. static="false" final="false" visibility="protected"
  36883. deprecated="not deprecated">
  36884. <doc>
  36885. <![CDATA[Construct an instance with the given name.]]>
  36886. </doc>
  36887. </constructor>
  36888. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  36889. abstract="false" native="false" synchronized="false"
  36890. static="false" final="false" visibility="public"
  36891. deprecated="not deprecated">
  36892. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  36893. <param name="args" type="java.util.List"/>
  36894. <exception name="Exception" type="java.lang.Exception"/>
  36895. <doc>
  36896. <![CDATA[{@inheritDoc}
  36897. <p>
  36898. The base implementation logs all arguments at the debug level,
  36899. then returns the passed in config unchanged.]]>
  36900. </doc>
  36901. </method>
  36902. <method name="execute" return="int"
  36903. abstract="false" native="false" synchronized="false"
  36904. static="false" final="false" visibility="public"
  36905. deprecated="not deprecated">
  36906. <exception name="Exception" type="java.lang.Exception"/>
  36907. <doc>
  36908. <![CDATA[{@inheritDoc}
  36909. <p>
  36910. The action is to signal success by returning the exit code 0.]]>
  36911. </doc>
  36912. </method>
  36913. <doc>
  36914. <![CDATA[Subclass of {@link AbstractService} that provides basic implementations
  36915. of the {@link LaunchableService} methods.]]>
  36916. </doc>
  36917. </class>
  36918. <!-- end class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  36919. <!-- start class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  36920. <class name="HadoopUncaughtExceptionHandler" extends="java.lang.Object"
  36921. abstract="false"
  36922. static="false" final="false" visibility="public"
  36923. deprecated="not deprecated">
  36924. <implements name="java.lang.Thread.UncaughtExceptionHandler"/>
  36925. <constructor name="HadoopUncaughtExceptionHandler" type="java.lang.Thread.UncaughtExceptionHandler"
  36926. static="false" final="false" visibility="public"
  36927. deprecated="not deprecated">
  36928. <doc>
  36929. <![CDATA[Create an instance delegating to the supplied handler if
  36930. the exception is considered "simple".
  36931. @param delegate a delegate exception handler.]]>
  36932. </doc>
  36933. </constructor>
  36934. <constructor name="HadoopUncaughtExceptionHandler"
  36935. static="false" final="false" visibility="public"
  36936. deprecated="not deprecated">
  36937. <doc>
  36938. <![CDATA[Basic exception handler -logs simple exceptions, then continues.]]>
  36939. </doc>
  36940. </constructor>
  36941. <method name="uncaughtException"
  36942. abstract="false" native="false" synchronized="false"
  36943. static="false" final="false" visibility="public"
  36944. deprecated="not deprecated">
  36945. <param name="thread" type="java.lang.Thread"/>
  36946. <param name="exception" type="java.lang.Throwable"/>
  36947. <doc>
  36948. <![CDATA[Uncaught exception handler.
  36949. If an error is raised: shutdown
  36950. The state of the system is unknown at this point -attempting
  36951. a clean shutdown is dangerous. Instead: exit
  36952. @param thread thread that failed
  36953. @param exception the raised exception]]>
  36954. </doc>
  36955. </method>
  36956. <doc>
  36957. <![CDATA[This class is intended to be installed by calling
  36958. {@link Thread#setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler)}
  36959. in the main entry point.
  36960. The base class will always attempt to shut down the process if an Error
  36961. was raised; the behavior on a standard Exception, raised outside
  36962. process shutdown, is simply to log it.
  36963. (Based on the class {@code YarnUncaughtExceptionHandler})]]>
  36964. </doc>
  36965. </class>
  36966. <!-- end class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  36967. <!-- start interface org.apache.hadoop.service.launcher.LaunchableService -->
  36968. <interface name="LaunchableService" abstract="true"
  36969. static="false" final="false" visibility="public"
  36970. deprecated="not deprecated">
  36971. <implements name="org.apache.hadoop.service.Service"/>
  36972. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  36973. abstract="false" native="false" synchronized="false"
  36974. static="false" final="false" visibility="public"
  36975. deprecated="not deprecated">
  36976. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  36977. <param name="args" type="java.util.List"/>
  36978. <exception name="Exception" type="java.lang.Exception"/>
  36979. <doc>
  36980. <![CDATA[Propagate the command line arguments.
  36981. <p>
  36982. This method is called before {@link #init(Configuration)};
  36983. Any non-null configuration that is returned from this operation
  36984. becomes the one that is passed on to that {@link #init(Configuration)}
  36985. operation.
  36986. <p>
  36987. This permits implementations to change the configuration before
  36988. the init operation. As the ServiceLauncher only creates
  36989. an instance of the base {@link Configuration} class, it is
  36990. recommended to instantiate any subclass (such as YarnConfiguration)
  36991. that injects new resources.
  36992. <p>
  36993. @param config the initial configuration build up by the
  36994. service launcher.
  36995. @param args list of arguments passed to the command line
  36996. after any launcher-specific commands have been stripped.
  36997. @return the configuration to init the service with.
  36998. Recommended: pass down the config parameter with any changes
  36999. @throws Exception any problem]]>
  37000. </doc>
  37001. </method>
  37002. <method name="execute" return="int"
  37003. abstract="false" native="false" synchronized="false"
  37004. static="false" final="false" visibility="public"
  37005. deprecated="not deprecated">
  37006. <exception name="Exception" type="java.lang.Exception"/>
  37007. <doc>
  37008. <![CDATA[Run a service. This method is called after {@link Service#start()}.
  37009. <p>
  37010. The return value becomes the exit code of the launched process.
  37011. <p>
  37012. If an exception is raised, the policy is:
  37013. <ol>
  37014. <li>Any subset of {@link org.apache.hadoop.util.ExitUtil.ExitException}:
  37015. the exception is passed up unmodified.
  37016. </li>
  37017. <li>Any exception which implements
  37018. {@link org.apache.hadoop.util.ExitCodeProvider}:
  37019. A new {@link ServiceLaunchException} is created with the exit code
  37020. and message of the thrown exception; the thrown exception becomes the
  37021. cause.</li>
  37022. <li>Any other exception: a new {@link ServiceLaunchException} is created
  37023. with the exit code {@link LauncherExitCodes#EXIT_EXCEPTION_THROWN} and
  37024. the message of the original exception (which becomes the cause).</li>
  37025. </ol>
  37026. @return the exit code
  37027. @throws org.apache.hadoop.util.ExitUtil.ExitException an exception passed
  37028. up as the exit code and error text.
  37029. @throws Exception any exception to report. If it provides an exit code
  37030. this is used in a wrapping exception.]]>
  37031. </doc>
  37032. </method>
  37033. <doc>
  37034. <![CDATA[An interface which services can implement to have their
  37035. execution managed by the ServiceLauncher.
  37036. <p>
  37037. The command line options will be passed down before the
  37038. {@link Service#init(Configuration)} operation is invoked via an
  37039. invocation of {@link LaunchableService#bindArgs(Configuration, List)}
  37040. After the service has been successfully started via {@link Service#start()}
  37041. the {@link LaunchableService#execute()} method is called to execute the
  37042. service. When this method returns, the service launcher will exit, using
  37043. the return code from the method as its exit option.]]>
  37044. </doc>
  37045. </interface>
  37046. <!-- end interface org.apache.hadoop.service.launcher.LaunchableService -->
  37047. <!-- start interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  37048. <interface name="LauncherExitCodes" abstract="true"
  37049. static="false" final="false" visibility="public"
  37050. deprecated="not deprecated">
  37051. <field name="EXIT_SUCCESS" type="int"
  37052. transient="false" volatile="false"
  37053. static="true" final="true" visibility="public"
  37054. deprecated="not deprecated">
  37055. <doc>
  37056. <![CDATA[Success: {@value}.]]>
  37057. </doc>
  37058. </field>
  37059. <field name="EXIT_FAIL" type="int"
  37060. transient="false" volatile="false"
  37061. static="true" final="true" visibility="public"
  37062. deprecated="not deprecated">
  37063. <doc>
  37064. <![CDATA[Generic "false/fail" response: {@value}.
  37065. The operation worked but the result was not "true" from the viewpoint
  37066. of the executed code.]]>
  37067. </doc>
  37068. </field>
  37069. <field name="EXIT_CLIENT_INITIATED_SHUTDOWN" type="int"
  37070. transient="false" volatile="false"
  37071. static="true" final="true" visibility="public"
  37072. deprecated="not deprecated">
  37073. <doc>
  37074. <![CDATA[Exit code when a client requested service termination: {@value}.]]>
  37075. </doc>
  37076. </field>
  37077. <field name="EXIT_TASK_LAUNCH_FAILURE" type="int"
  37078. transient="false" volatile="false"
  37079. static="true" final="true" visibility="public"
  37080. deprecated="not deprecated">
  37081. <doc>
  37082. <![CDATA[Exit code when targets could not be launched: {@value}.]]>
  37083. </doc>
  37084. </field>
  37085. <field name="EXIT_INTERRUPTED" type="int"
  37086. transient="false" volatile="false"
  37087. static="true" final="true" visibility="public"
  37088. deprecated="not deprecated">
  37089. <doc>
  37090. <![CDATA[Exit code when a control-C, kill -3, signal was picked up: {@value}.]]>
  37091. </doc>
  37092. </field>
  37093. <field name="EXIT_OTHER_FAILURE" type="int"
  37094. transient="false" volatile="false"
  37095. static="true" final="true" visibility="public"
  37096. deprecated="not deprecated">
  37097. <doc>
  37098. <![CDATA[Exit code when something happened but we can't be specific: {@value}.]]>
  37099. </doc>
  37100. </field>
  37101. <field name="EXIT_COMMAND_ARGUMENT_ERROR" type="int"
  37102. transient="false" volatile="false"
  37103. static="true" final="true" visibility="public"
  37104. deprecated="not deprecated">
  37105. <doc>
  37106. <![CDATA[Exit code when the command line doesn't parse: {@value}, or
  37107. when it is otherwise invalid.
  37108. <p>
  37109. Approximate HTTP equivalent: {@code 400 Bad Request}]]>
  37110. </doc>
  37111. </field>
  37112. <field name="EXIT_UNAUTHORIZED" type="int"
  37113. transient="false" volatile="false"
  37114. static="true" final="true" visibility="public"
  37115. deprecated="not deprecated">
  37116. <doc>
  37117. <![CDATA[The request requires user authentication: {@value}.
  37118. <p>
  37119. approximate HTTP equivalent: Approximate HTTP equivalent: {@code 401 Unauthorized}]]>
  37120. </doc>
  37121. </field>
  37122. <field name="EXIT_USAGE" type="int"
  37123. transient="false" volatile="false"
  37124. static="true" final="true" visibility="public"
  37125. deprecated="not deprecated">
  37126. <doc>
  37127. <![CDATA[Exit code when a usage message was printed: {@value}.]]>
  37128. </doc>
  37129. </field>
  37130. <field name="EXIT_FORBIDDEN" type="int"
  37131. transient="false" volatile="false"
  37132. static="true" final="true" visibility="public"
  37133. deprecated="not deprecated">
  37134. <doc>
  37135. <![CDATA[Forbidden action: {@value}.
  37136. <p>
  37137. Approximate HTTP equivalent: Approximate HTTP equivalent: {@code 403: Forbidden}]]>
  37138. </doc>
  37139. </field>
  37140. <field name="EXIT_NOT_FOUND" type="int"
  37141. transient="false" volatile="false"
  37142. static="true" final="true" visibility="public"
  37143. deprecated="not deprecated">
  37144. <doc>
  37145. <![CDATA[Something was not found: {@value}.
  37146. <p>
  37147. Approximate HTTP equivalent: {@code 404: Not Found}]]>
  37148. </doc>
  37149. </field>
  37150. <field name="EXIT_OPERATION_NOT_ALLOWED" type="int"
  37151. transient="false" volatile="false"
  37152. static="true" final="true" visibility="public"
  37153. deprecated="not deprecated">
  37154. <doc>
  37155. <![CDATA[The operation is not allowed: {@value}.
  37156. <p>
  37157. Approximate HTTP equivalent: {@code 405: Not allowed}]]>
  37158. </doc>
  37159. </field>
  37160. <field name="EXIT_NOT_ACCEPTABLE" type="int"
  37161. transient="false" volatile="false"
  37162. static="true" final="true" visibility="public"
  37163. deprecated="not deprecated">
  37164. <doc>
  37165. <![CDATA[The command is somehow not acceptable: {@value}.
  37166. <p>
  37167. Approximate HTTP equivalent: {@code 406: Not Acceptable}]]>
  37168. </doc>
  37169. </field>
  37170. <field name="EXIT_CONNECTIVITY_PROBLEM" type="int"
  37171. transient="false" volatile="false"
  37172. static="true" final="true" visibility="public"
  37173. deprecated="not deprecated">
  37174. <doc>
  37175. <![CDATA[Exit code on connectivity problems: {@value}.
  37176. <p>
  37177. Approximate HTTP equivalent: {@code 408: Request Timeout}]]>
  37178. </doc>
  37179. </field>
  37180. <field name="EXIT_BAD_CONFIGURATION" type="int"
  37181. transient="false" volatile="false"
  37182. static="true" final="true" visibility="public"
  37183. deprecated="not deprecated">
  37184. <doc>
  37185. <![CDATA[Exit code when the configurations in valid/incomplete: {@value}.
  37186. <p>
  37187. Approximate HTTP equivalent: {@code 409: Conflict}]]>
  37188. </doc>
  37189. </field>
  37190. <field name="EXIT_EXCEPTION_THROWN" type="int"
  37191. transient="false" volatile="false"
  37192. static="true" final="true" visibility="public"
  37193. deprecated="not deprecated">
  37194. <doc>
  37195. <![CDATA[Exit code when an exception was thrown from the service: {@value}.
  37196. <p>
  37197. Approximate HTTP equivalent: {@code 500 Internal Server Error}]]>
  37198. </doc>
  37199. </field>
  37200. <field name="EXIT_UNIMPLEMENTED" type="int"
  37201. transient="false" volatile="false"
  37202. static="true" final="true" visibility="public"
  37203. deprecated="not deprecated">
  37204. <doc>
  37205. <![CDATA[Unimplemented feature: {@value}.
  37206. <p>
  37207. Approximate HTTP equivalent: {@code 501: Not Implemented}]]>
  37208. </doc>
  37209. </field>
  37210. <field name="EXIT_SERVICE_UNAVAILABLE" type="int"
  37211. transient="false" volatile="false"
  37212. static="true" final="true" visibility="public"
  37213. deprecated="not deprecated">
  37214. <doc>
  37215. <![CDATA[Service Unavailable; it may be available later: {@value}.
  37216. <p>
  37217. Approximate HTTP equivalent: {@code 503 Service Unavailable}]]>
  37218. </doc>
  37219. </field>
  37220. <field name="EXIT_UNSUPPORTED_VERSION" type="int"
  37221. transient="false" volatile="false"
  37222. static="true" final="true" visibility="public"
  37223. deprecated="not deprecated">
  37224. <doc>
  37225. <![CDATA[The application does not support, or refuses to support this
  37226. version: {@value}.
  37227. <p>
  37228. If raised, this is expected to be raised server-side and likely due
  37229. to client/server version incompatibilities.
  37230. <p>
  37231. Approximate HTTP equivalent: {@code 505: Version Not Supported}]]>
  37232. </doc>
  37233. </field>
  37234. <field name="EXIT_SERVICE_CREATION_FAILURE" type="int"
  37235. transient="false" volatile="false"
  37236. static="true" final="true" visibility="public"
  37237. deprecated="not deprecated">
  37238. <doc>
  37239. <![CDATA[The service instance could not be created: {@value}.]]>
  37240. </doc>
  37241. </field>
  37242. <field name="EXIT_SERVICE_LIFECYCLE_EXCEPTION" type="int"
  37243. transient="false" volatile="false"
  37244. static="true" final="true" visibility="public"
  37245. deprecated="not deprecated">
  37246. <doc>
  37247. <![CDATA[The service instance could not be created: {@value}.]]>
  37248. </doc>
  37249. </field>
  37250. <doc>
  37251. <![CDATA[Common Exit codes.
  37252. <p>
  37253. Codes with a YARN prefix are YARN-related.
  37254. <p>
  37255. Many of the exit codes are designed to resemble HTTP error codes,
  37256. squashed into a single byte. e.g 44 , "not found" is the equivalent
  37257. of 404. The various 2XX HTTP error codes aren't followed;
  37258. the Unix standard of "0" for success is used.
  37259. <pre>
  37260. 0-10: general command issues
  37261. 30-39: equivalent to the 3XX responses, where those responses are
  37262. considered errors by the application.
  37263. 40-49: client-side/CLI/config problems
  37264. 50-59: service-side problems.
  37265. 60+ : application specific error codes
  37266. </pre>]]>
  37267. </doc>
  37268. </interface>
  37269. <!-- end interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  37270. <!-- start class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  37271. <class name="ServiceLaunchException" extends="org.apache.hadoop.util.ExitUtil.ExitException"
  37272. abstract="false"
  37273. static="false" final="false" visibility="public"
  37274. deprecated="not deprecated">
  37275. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  37276. <implements name="org.apache.hadoop.service.launcher.LauncherExitCodes"/>
  37277. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable"
  37278. static="false" final="false" visibility="public"
  37279. deprecated="not deprecated">
  37280. <doc>
  37281. <![CDATA[Create an exception with the specific exit code.
  37282. @param exitCode exit code
  37283. @param cause cause of the exception]]>
  37284. </doc>
  37285. </constructor>
  37286. <constructor name="ServiceLaunchException" type="int, java.lang.String"
  37287. static="false" final="false" visibility="public"
  37288. deprecated="not deprecated">
  37289. <doc>
  37290. <![CDATA[Create an exception with the specific exit code and text.
  37291. @param exitCode exit code
  37292. @param message message to use in exception]]>
  37293. </doc>
  37294. </constructor>
  37295. <constructor name="ServiceLaunchException" type="int, java.lang.String, java.lang.Object[]"
  37296. static="false" final="false" visibility="public"
  37297. deprecated="not deprecated">
  37298. <doc>
  37299. <![CDATA[Create a formatted exception.
  37300. <p>
  37301. This uses {@link String#format(String, Object...)}
  37302. to build the formatted exception in the ENGLISH locale.
  37303. <p>
  37304. If the last argument is a throwable, it becomes the cause of the exception.
  37305. It will also be used as a parameter for the format.
  37306. @param exitCode exit code
  37307. @param format format for message to use in exception
  37308. @param args list of arguments]]>
  37309. </doc>
  37310. </constructor>
  37311. <doc>
  37312. <![CDATA[A service launch exception that includes an exit code.
  37313. <p>
  37314. When caught by the ServiceLauncher, it will convert that
  37315. into a process exit code.
  37316. The {@link #ServiceLaunchException(int, String, Object...)} constructor
  37317. generates formatted exceptions.]]>
  37318. </doc>
  37319. </class>
  37320. <!-- end class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  37321. </package>
  37322. <package name="org.apache.hadoop.tools">
  37323. </package>
  37324. <package name="org.apache.hadoop.tools.protocolPB">
  37325. </package>
  37326. <package name="org.apache.hadoop.tracing">
  37327. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfo -->
  37328. <class name="SpanReceiverInfo" extends="java.lang.Object"
  37329. abstract="false"
  37330. static="false" final="false" visibility="public"
  37331. deprecated="not deprecated">
  37332. <method name="getId" return="long"
  37333. abstract="false" native="false" synchronized="false"
  37334. static="false" final="false" visibility="public"
  37335. deprecated="not deprecated">
  37336. </method>
  37337. <method name="getClassName" return="java.lang.String"
  37338. abstract="false" native="false" synchronized="false"
  37339. static="false" final="false" visibility="public"
  37340. deprecated="not deprecated">
  37341. </method>
  37342. </class>
  37343. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfo -->
  37344. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  37345. <class name="SpanReceiverInfoBuilder" extends="java.lang.Object"
  37346. abstract="false"
  37347. static="false" final="false" visibility="public"
  37348. deprecated="not deprecated">
  37349. <constructor name="SpanReceiverInfoBuilder" type="java.lang.String"
  37350. static="false" final="false" visibility="public"
  37351. deprecated="not deprecated">
  37352. </constructor>
  37353. <method name="addConfigurationPair"
  37354. abstract="false" native="false" synchronized="false"
  37355. static="false" final="false" visibility="public"
  37356. deprecated="not deprecated">
  37357. <param name="key" type="java.lang.String"/>
  37358. <param name="value" type="java.lang.String"/>
  37359. </method>
  37360. <method name="build" return="org.apache.hadoop.tracing.SpanReceiverInfo"
  37361. abstract="false" native="false" synchronized="false"
  37362. static="false" final="false" visibility="public"
  37363. deprecated="not deprecated">
  37364. </method>
  37365. </class>
  37366. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  37367. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  37368. <interface name="TraceAdminProtocol" abstract="true"
  37369. static="false" final="false" visibility="public"
  37370. deprecated="not deprecated">
  37371. <method name="listSpanReceivers" return="org.apache.hadoop.tracing.SpanReceiverInfo[]"
  37372. abstract="false" native="false" synchronized="false"
  37373. static="false" final="false" visibility="public"
  37374. deprecated="not deprecated">
  37375. <exception name="IOException" type="java.io.IOException"/>
  37376. <doc>
  37377. <![CDATA[List the currently active trace span receivers.
  37378. @throws IOException On error.]]>
  37379. </doc>
  37380. </method>
  37381. <method name="addSpanReceiver" return="long"
  37382. abstract="false" native="false" synchronized="false"
  37383. static="false" final="false" visibility="public"
  37384. deprecated="not deprecated">
  37385. <param name="desc" type="org.apache.hadoop.tracing.SpanReceiverInfo"/>
  37386. <exception name="IOException" type="java.io.IOException"/>
  37387. <doc>
  37388. <![CDATA[Add a new trace span receiver.
  37389. @param desc The span receiver description.
  37390. @return The ID of the new trace span receiver.
  37391. @throws IOException On error.]]>
  37392. </doc>
  37393. </method>
  37394. <method name="removeSpanReceiver"
  37395. abstract="false" native="false" synchronized="false"
  37396. static="false" final="false" visibility="public"
  37397. deprecated="not deprecated">
  37398. <param name="spanReceiverId" type="long"/>
  37399. <exception name="IOException" type="java.io.IOException"/>
  37400. <doc>
  37401. <![CDATA[Remove a trace span receiver.
  37402. @param spanReceiverId The id of the span receiver to remove.
  37403. @throws IOException On error.]]>
  37404. </doc>
  37405. </method>
  37406. <field name="versionID" type="long"
  37407. transient="false" volatile="false"
  37408. static="true" final="true" visibility="public"
  37409. deprecated="not deprecated">
  37410. </field>
  37411. <doc>
  37412. <![CDATA[Protocol interface that provides tracing.]]>
  37413. </doc>
  37414. </interface>
  37415. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  37416. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  37417. <interface name="TraceAdminProtocolPB" abstract="true"
  37418. static="false" final="false" visibility="public"
  37419. deprecated="not deprecated">
  37420. <implements name="org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService.BlockingInterface"/>
  37421. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  37422. </interface>
  37423. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  37424. </package>
  37425. <package name="org.apache.hadoop.util">
  37426. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  37427. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  37428. abstract="false"
  37429. static="false" final="false" visibility="public"
  37430. deprecated="not deprecated">
  37431. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  37432. static="false" final="false" visibility="public"
  37433. deprecated="not deprecated">
  37434. </constructor>
  37435. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  37436. static="false" final="false" visibility="public"
  37437. deprecated="not deprecated">
  37438. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  37439. </constructor>
  37440. <method name="getResource" return="java.net.URL"
  37441. abstract="false" native="false" synchronized="false"
  37442. static="false" final="false" visibility="public"
  37443. deprecated="not deprecated">
  37444. <param name="name" type="java.lang.String"/>
  37445. </method>
  37446. <method name="loadClass" return="java.lang.Class"
  37447. abstract="false" native="false" synchronized="false"
  37448. static="false" final="false" visibility="public"
  37449. deprecated="not deprecated">
  37450. <param name="name" type="java.lang.String"/>
  37451. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  37452. </method>
  37453. <method name="loadClass" return="java.lang.Class"
  37454. abstract="false" native="false" synchronized="true"
  37455. static="false" final="false" visibility="protected"
  37456. deprecated="not deprecated">
  37457. <param name="name" type="java.lang.String"/>
  37458. <param name="resolve" type="boolean"/>
  37459. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  37460. </method>
  37461. <method name="isSystemClass" return="boolean"
  37462. abstract="false" native="false" synchronized="false"
  37463. static="true" final="false" visibility="public"
  37464. deprecated="not deprecated">
  37465. <param name="name" type="java.lang.String"/>
  37466. <param name="systemClasses" type="java.util.List"/>
  37467. <doc>
  37468. <![CDATA[Checks if a class should be included as a system class.
  37469. A class is a system class if and only if it matches one of the positive
  37470. patterns and none of the negative ones.
  37471. @param name the class name to check
  37472. @param systemClasses a list of system class configurations.
  37473. @return true if the class is a system class]]>
  37474. </doc>
  37475. </method>
  37476. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  37477. transient="false" volatile="false"
  37478. static="true" final="true" visibility="public"
  37479. deprecated="not deprecated">
  37480. <doc>
  37481. <![CDATA[Default value of the system classes if the user did not override them.
  37482. JDK classes, hadoop classes and resources, and some select third-party
  37483. classes are considered system classes, and are not loaded by the
  37484. application classloader.]]>
  37485. </doc>
  37486. </field>
  37487. <doc>
  37488. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  37489. application JARs are loaded in preference to the parent loader.]]>
  37490. </doc>
  37491. </class>
  37492. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  37493. <!-- start interface org.apache.hadoop.util.IPList -->
  37494. <interface name="IPList" abstract="true"
  37495. static="false" final="false" visibility="public"
  37496. deprecated="not deprecated">
  37497. <method name="isIn" return="boolean"
  37498. abstract="false" native="false" synchronized="false"
  37499. static="false" final="false" visibility="public"
  37500. deprecated="not deprecated">
  37501. <param name="ipAddress" type="java.lang.String"/>
  37502. <doc>
  37503. <![CDATA[returns true if the ipAddress is in the IPList.
  37504. @param ipAddress
  37505. @return boolean value indicating whether the ipAddress is in the IPList]]>
  37506. </doc>
  37507. </method>
  37508. </interface>
  37509. <!-- end interface org.apache.hadoop.util.IPList -->
  37510. <!-- start interface org.apache.hadoop.util.Progressable -->
  37511. <interface name="Progressable" abstract="true"
  37512. static="false" final="false" visibility="public"
  37513. deprecated="not deprecated">
  37514. <method name="progress"
  37515. abstract="false" native="false" synchronized="false"
  37516. static="false" final="false" visibility="public"
  37517. deprecated="not deprecated">
  37518. <doc>
  37519. <![CDATA[Report progress to the Hadoop framework.]]>
  37520. </doc>
  37521. </method>
  37522. <doc>
  37523. <![CDATA[A facility for reporting progress.
  37524. <p>Clients and/or applications can use the provided <code>Progressable</code>
  37525. to explicitly report progress to the Hadoop framework. This is especially
  37526. important for operations which take significant amount of time since,
  37527. in-lieu of the reported progress, the framework has to assume that an error
  37528. has occured and time-out the operation.</p>]]>
  37529. </doc>
  37530. </interface>
  37531. <!-- end interface org.apache.hadoop.util.Progressable -->
  37532. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  37533. <class name="PureJavaCrc32" extends="java.lang.Object"
  37534. abstract="false"
  37535. static="false" final="false" visibility="public"
  37536. deprecated="not deprecated">
  37537. <implements name="java.util.zip.Checksum"/>
  37538. <constructor name="PureJavaCrc32"
  37539. static="false" final="false" visibility="public"
  37540. deprecated="not deprecated">
  37541. <doc>
  37542. <![CDATA[Create a new PureJavaCrc32 object.]]>
  37543. </doc>
  37544. </constructor>
  37545. <method name="getValue" return="long"
  37546. abstract="false" native="false" synchronized="false"
  37547. static="false" final="false" visibility="public"
  37548. deprecated="not deprecated">
  37549. </method>
  37550. <method name="reset"
  37551. abstract="false" native="false" synchronized="false"
  37552. static="false" final="false" visibility="public"
  37553. deprecated="not deprecated">
  37554. </method>
  37555. <method name="update"
  37556. abstract="false" native="false" synchronized="false"
  37557. static="false" final="false" visibility="public"
  37558. deprecated="not deprecated">
  37559. <param name="b" type="byte[]"/>
  37560. <param name="offset" type="int"/>
  37561. <param name="len" type="int"/>
  37562. </method>
  37563. <method name="update"
  37564. abstract="false" native="false" synchronized="false"
  37565. static="false" final="true" visibility="public"
  37566. deprecated="not deprecated">
  37567. <param name="b" type="int"/>
  37568. </method>
  37569. <doc>
  37570. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  37571. the same polynomial as the built-in native CRC32.
  37572. This is to avoid the JNI overhead for certain uses of Checksumming
  37573. where many small pieces of data are checksummed in succession.
  37574. The current version is ~10x to 1.8x as fast as Sun's native
  37575. java.util.zip.CRC32 in Java 1.6
  37576. @see java.util.zip.CRC32]]>
  37577. </doc>
  37578. </class>
  37579. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  37580. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  37581. <class name="PureJavaCrc32C" extends="java.lang.Object"
  37582. abstract="false"
  37583. static="false" final="false" visibility="public"
  37584. deprecated="not deprecated">
  37585. <implements name="java.util.zip.Checksum"/>
  37586. <constructor name="PureJavaCrc32C"
  37587. static="false" final="false" visibility="public"
  37588. deprecated="not deprecated">
  37589. <doc>
  37590. <![CDATA[Create a new PureJavaCrc32 object.]]>
  37591. </doc>
  37592. </constructor>
  37593. <method name="getValue" return="long"
  37594. abstract="false" native="false" synchronized="false"
  37595. static="false" final="false" visibility="public"
  37596. deprecated="not deprecated">
  37597. </method>
  37598. <method name="reset"
  37599. abstract="false" native="false" synchronized="false"
  37600. static="false" final="false" visibility="public"
  37601. deprecated="not deprecated">
  37602. </method>
  37603. <method name="update"
  37604. abstract="false" native="false" synchronized="false"
  37605. static="false" final="false" visibility="public"
  37606. deprecated="not deprecated">
  37607. <param name="b" type="byte[]"/>
  37608. <param name="off" type="int"/>
  37609. <param name="len" type="int"/>
  37610. </method>
  37611. <method name="update"
  37612. abstract="false" native="false" synchronized="false"
  37613. static="false" final="true" visibility="public"
  37614. deprecated="not deprecated">
  37615. <param name="b" type="int"/>
  37616. </method>
  37617. <doc>
  37618. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  37619. the CRC32-C polynomial, the same polynomial used by iSCSI
  37620. and implemented on many Intel chipsets supporting SSE4.2.]]>
  37621. </doc>
  37622. </class>
  37623. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  37624. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  37625. <class name="ReflectionUtils" extends="java.lang.Object"
  37626. abstract="false"
  37627. static="false" final="false" visibility="public"
  37628. deprecated="not deprecated">
  37629. <constructor name="ReflectionUtils"
  37630. static="false" final="false" visibility="public"
  37631. deprecated="not deprecated">
  37632. </constructor>
  37633. <method name="setConf"
  37634. abstract="false" native="false" synchronized="false"
  37635. static="true" final="false" visibility="public"
  37636. deprecated="not deprecated">
  37637. <param name="theObject" type="java.lang.Object"/>
  37638. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37639. <doc>
  37640. <![CDATA[Check and set 'configuration' if necessary.
  37641. @param theObject object for which to set configuration
  37642. @param conf Configuration]]>
  37643. </doc>
  37644. </method>
  37645. <method name="newInstance" return="T"
  37646. abstract="false" native="false" synchronized="false"
  37647. static="true" final="false" visibility="public"
  37648. deprecated="not deprecated">
  37649. <param name="theClass" type="java.lang.Class"/>
  37650. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37651. <doc>
  37652. <![CDATA[Create an object for the given class and initialize it from conf
  37653. @param theClass class of which an object is created
  37654. @param conf Configuration
  37655. @return a new object]]>
  37656. </doc>
  37657. </method>
  37658. <method name="setContentionTracing"
  37659. abstract="false" native="false" synchronized="false"
  37660. static="true" final="false" visibility="public"
  37661. deprecated="not deprecated">
  37662. <param name="val" type="boolean"/>
  37663. </method>
  37664. <method name="printThreadInfo"
  37665. abstract="false" native="false" synchronized="true"
  37666. static="true" final="false" visibility="public"
  37667. deprecated="not deprecated">
  37668. <param name="stream" type="java.io.PrintStream"/>
  37669. <param name="title" type="java.lang.String"/>
  37670. <doc>
  37671. <![CDATA[Print all of the thread's information and stack traces.
  37672. @param stream the stream to
  37673. @param title a string title for the stack trace]]>
  37674. </doc>
  37675. </method>
  37676. <method name="logThreadInfo"
  37677. abstract="false" native="false" synchronized="false"
  37678. static="true" final="false" visibility="public"
  37679. deprecated="not deprecated">
  37680. <param name="log" type="org.apache.commons.logging.Log"/>
  37681. <param name="title" type="java.lang.String"/>
  37682. <param name="minInterval" type="long"/>
  37683. <doc>
  37684. <![CDATA[Log the current thread stacks at INFO level.
  37685. @param log the logger that logs the stack trace
  37686. @param title a descriptive title for the call stacks
  37687. @param minInterval the minimum time from the last]]>
  37688. </doc>
  37689. </method>
  37690. <method name="logThreadInfo"
  37691. abstract="false" native="false" synchronized="false"
  37692. static="true" final="false" visibility="public"
  37693. deprecated="not deprecated">
  37694. <param name="log" type="org.slf4j.Logger"/>
  37695. <param name="title" type="java.lang.String"/>
  37696. <param name="minInterval" type="long"/>
  37697. <doc>
  37698. <![CDATA[Log the current thread stacks at INFO level.
  37699. @param log the logger that logs the stack trace
  37700. @param title a descriptive title for the call stacks
  37701. @param minInterval the minimum time from the last]]>
  37702. </doc>
  37703. </method>
  37704. <method name="getClass" return="java.lang.Class"
  37705. abstract="false" native="false" synchronized="false"
  37706. static="true" final="false" visibility="public"
  37707. deprecated="not deprecated">
  37708. <param name="o" type="T"/>
  37709. <doc>
  37710. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  37711. @param o object whose correctly-typed <code>Class</code> is to be obtained
  37712. @return the correctly typed <code>Class</code> of the given object.]]>
  37713. </doc>
  37714. </method>
  37715. <method name="copy" return="T"
  37716. abstract="false" native="false" synchronized="false"
  37717. static="true" final="false" visibility="public"
  37718. deprecated="not deprecated">
  37719. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37720. <param name="src" type="T"/>
  37721. <param name="dst" type="T"/>
  37722. <exception name="IOException" type="java.io.IOException"/>
  37723. <doc>
  37724. <![CDATA[Make a copy of the writable object using serialization to a buffer
  37725. @param src the object to copy from
  37726. @param dst the object to copy into, which is destroyed
  37727. @return dst param (the copy)
  37728. @throws IOException]]>
  37729. </doc>
  37730. </method>
  37731. <method name="cloneWritableInto"
  37732. abstract="false" native="false" synchronized="false"
  37733. static="true" final="false" visibility="public"
  37734. deprecated="not deprecated">
  37735. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  37736. <param name="src" type="org.apache.hadoop.io.Writable"/>
  37737. <exception name="IOException" type="java.io.IOException"/>
  37738. </method>
  37739. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  37740. abstract="false" native="false" synchronized="false"
  37741. static="true" final="false" visibility="public"
  37742. deprecated="not deprecated">
  37743. <param name="clazz" type="java.lang.Class"/>
  37744. <doc>
  37745. <![CDATA[Gets all the declared fields of a class including fields declared in
  37746. superclasses.]]>
  37747. </doc>
  37748. </method>
  37749. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  37750. abstract="false" native="false" synchronized="false"
  37751. static="true" final="false" visibility="public"
  37752. deprecated="not deprecated">
  37753. <param name="clazz" type="java.lang.Class"/>
  37754. <doc>
  37755. <![CDATA[Gets all the declared methods of a class including methods declared in
  37756. superclasses.]]>
  37757. </doc>
  37758. </method>
  37759. <doc>
  37760. <![CDATA[General reflection utils]]>
  37761. </doc>
  37762. </class>
  37763. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  37764. <!-- start class org.apache.hadoop.util.Shell -->
  37765. <class name="Shell" extends="java.lang.Object"
  37766. abstract="true"
  37767. static="false" final="false" visibility="public"
  37768. deprecated="not deprecated">
  37769. <constructor name="Shell"
  37770. static="false" final="false" visibility="protected"
  37771. deprecated="not deprecated">
  37772. <doc>
  37773. <![CDATA[Create an instance with no minimum interval between runs; stderr is
  37774. not merged with stdout.]]>
  37775. </doc>
  37776. </constructor>
  37777. <constructor name="Shell" type="long"
  37778. static="false" final="false" visibility="protected"
  37779. deprecated="not deprecated">
  37780. <doc>
  37781. <![CDATA[Create an instance with a minimum interval between executions; stderr is
  37782. not merged with stdout.
  37783. @param interval interval in milliseconds between command executions.]]>
  37784. </doc>
  37785. </constructor>
  37786. <constructor name="Shell" type="long, boolean"
  37787. static="false" final="false" visibility="protected"
  37788. deprecated="not deprecated">
  37789. <doc>
  37790. <![CDATA[Create a shell instance which can be re-executed when the {@link #run()}
  37791. method is invoked with a given elapsed time between calls.
  37792. @param interval the minimum duration in milliseconds to wait before
  37793. re-executing the command. If set to 0, there is no minimum.
  37794. @param redirectErrorStream should the error stream be merged with
  37795. the normal output stream?]]>
  37796. </doc>
  37797. </constructor>
  37798. <method name="isJava7OrAbove" return="boolean"
  37799. abstract="false" native="false" synchronized="false"
  37800. static="true" final="false" visibility="public"
  37801. deprecated="This call isn't needed any more: please remove uses of it.">
  37802. <doc>
  37803. <![CDATA[query to see if system is Java 7 or later.
  37804. Now that Hadoop requires Java 7 or later, this always returns true.
  37805. @deprecated This call isn't needed any more: please remove uses of it.
  37806. @return true, always.]]>
  37807. </doc>
  37808. </method>
  37809. <method name="checkWindowsCommandLineLength"
  37810. abstract="false" native="false" synchronized="false"
  37811. static="true" final="false" visibility="public"
  37812. deprecated="not deprecated">
  37813. <param name="commands" type="java.lang.String[]"/>
  37814. <exception name="IOException" type="java.io.IOException"/>
  37815. <doc>
  37816. <![CDATA[Checks if a given command (String[]) fits in the Windows maximum command
  37817. line length Note that the input is expected to already include space
  37818. delimiters, no extra count will be added for delimiters.
  37819. @param commands command parts, including any space delimiters]]>
  37820. </doc>
  37821. </method>
  37822. <method name="getGroupsCommand" return="java.lang.String[]"
  37823. abstract="false" native="false" synchronized="false"
  37824. static="true" final="false" visibility="public"
  37825. deprecated="not deprecated">
  37826. <doc>
  37827. <![CDATA[a Unix command to get the current user's groups list.]]>
  37828. </doc>
  37829. </method>
  37830. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  37831. abstract="false" native="false" synchronized="false"
  37832. static="true" final="false" visibility="public"
  37833. deprecated="not deprecated">
  37834. <param name="user" type="java.lang.String"/>
  37835. <doc>
  37836. <![CDATA[A command to get a given user's groups list.
  37837. If the OS is not WINDOWS, the command will get the user's primary group
  37838. first and finally get the groups list which includes the primary group.
  37839. i.e. the user's primary group will be included twice.]]>
  37840. </doc>
  37841. </method>
  37842. <method name="getGroupsIDForUserCommand" return="java.lang.String[]"
  37843. abstract="false" native="false" synchronized="false"
  37844. static="true" final="false" visibility="public"
  37845. deprecated="not deprecated">
  37846. <param name="user" type="java.lang.String"/>
  37847. <doc>
  37848. <![CDATA[A command to get a given user's group id list.
  37849. The command will get the user's primary group
  37850. first and finally get the groups list which includes the primary group.
  37851. i.e. the user's primary group will be included twice.
  37852. This command does not support Windows and will only return group names.]]>
  37853. </doc>
  37854. </method>
  37855. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  37856. abstract="false" native="false" synchronized="false"
  37857. static="true" final="false" visibility="public"
  37858. deprecated="not deprecated">
  37859. <param name="netgroup" type="java.lang.String"/>
  37860. <doc>
  37861. <![CDATA[A command to get a given netgroup's user list.]]>
  37862. </doc>
  37863. </method>
  37864. <method name="getGetPermissionCommand" return="java.lang.String[]"
  37865. abstract="false" native="false" synchronized="false"
  37866. static="true" final="false" visibility="public"
  37867. deprecated="not deprecated">
  37868. <doc>
  37869. <![CDATA[Return a command to get permission information.]]>
  37870. </doc>
  37871. </method>
  37872. <method name="getSetPermissionCommand" return="java.lang.String[]"
  37873. abstract="false" native="false" synchronized="false"
  37874. static="true" final="false" visibility="public"
  37875. deprecated="not deprecated">
  37876. <param name="perm" type="java.lang.String"/>
  37877. <param name="recursive" type="boolean"/>
  37878. <doc>
  37879. <![CDATA[Return a command to set permission.]]>
  37880. </doc>
  37881. </method>
  37882. <method name="getSetPermissionCommand" return="java.lang.String[]"
  37883. abstract="false" native="false" synchronized="false"
  37884. static="true" final="false" visibility="public"
  37885. deprecated="not deprecated">
  37886. <param name="perm" type="java.lang.String"/>
  37887. <param name="recursive" type="boolean"/>
  37888. <param name="file" type="java.lang.String"/>
  37889. <doc>
  37890. <![CDATA[Return a command to set permission for specific file.
  37891. @param perm String permission to set
  37892. @param recursive boolean true to apply to all sub-directories recursively
  37893. @param file String file to set
  37894. @return String[] containing command and arguments]]>
  37895. </doc>
  37896. </method>
  37897. <method name="getSetOwnerCommand" return="java.lang.String[]"
  37898. abstract="false" native="false" synchronized="false"
  37899. static="true" final="false" visibility="public"
  37900. deprecated="not deprecated">
  37901. <param name="owner" type="java.lang.String"/>
  37902. <doc>
  37903. <![CDATA[Return a command to set owner.]]>
  37904. </doc>
  37905. </method>
  37906. <method name="getSymlinkCommand" return="java.lang.String[]"
  37907. abstract="false" native="false" synchronized="false"
  37908. static="true" final="false" visibility="public"
  37909. deprecated="not deprecated">
  37910. <param name="target" type="java.lang.String"/>
  37911. <param name="link" type="java.lang.String"/>
  37912. <doc>
  37913. <![CDATA[Return a command to create symbolic links.]]>
  37914. </doc>
  37915. </method>
  37916. <method name="getReadlinkCommand" return="java.lang.String[]"
  37917. abstract="false" native="false" synchronized="false"
  37918. static="true" final="false" visibility="public"
  37919. deprecated="not deprecated">
  37920. <param name="link" type="java.lang.String"/>
  37921. <doc>
  37922. <![CDATA[Return a command to read the target of the a symbolic link.]]>
  37923. </doc>
  37924. </method>
  37925. <method name="getCheckProcessIsAliveCommand" return="java.lang.String[]"
  37926. abstract="false" native="false" synchronized="false"
  37927. static="true" final="false" visibility="public"
  37928. deprecated="not deprecated">
  37929. <param name="pid" type="java.lang.String"/>
  37930. <doc>
  37931. <![CDATA[Return a command for determining if process with specified pid is alive.
  37932. @param pid process ID
  37933. @return a <code>kill -0</code> command or equivalent]]>
  37934. </doc>
  37935. </method>
  37936. <method name="getSignalKillCommand" return="java.lang.String[]"
  37937. abstract="false" native="false" synchronized="false"
  37938. static="true" final="false" visibility="public"
  37939. deprecated="not deprecated">
  37940. <param name="code" type="int"/>
  37941. <param name="pid" type="java.lang.String"/>
  37942. <doc>
  37943. <![CDATA[Return a command to send a signal to a given pid.]]>
  37944. </doc>
  37945. </method>
  37946. <method name="getEnvironmentVariableRegex" return="java.lang.String"
  37947. abstract="false" native="false" synchronized="false"
  37948. static="true" final="false" visibility="public"
  37949. deprecated="not deprecated">
  37950. <doc>
  37951. <![CDATA[Return a regular expression string that match environment variables.]]>
  37952. </doc>
  37953. </method>
  37954. <method name="appendScriptExtension" return="java.io.File"
  37955. abstract="false" native="false" synchronized="false"
  37956. static="true" final="false" visibility="public"
  37957. deprecated="not deprecated">
  37958. <param name="parent" type="java.io.File"/>
  37959. <param name="basename" type="java.lang.String"/>
  37960. <doc>
  37961. <![CDATA[Returns a File referencing a script with the given basename, inside the
  37962. given parent directory. The file extension is inferred by platform:
  37963. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  37964. @param parent File parent directory
  37965. @param basename String script file basename
  37966. @return File referencing the script in the directory]]>
  37967. </doc>
  37968. </method>
  37969. <method name="appendScriptExtension" return="java.lang.String"
  37970. abstract="false" native="false" synchronized="false"
  37971. static="true" final="false" visibility="public"
  37972. deprecated="not deprecated">
  37973. <param name="basename" type="java.lang.String"/>
  37974. <doc>
  37975. <![CDATA[Returns a script file name with the given basename.
  37976. The file extension is inferred by platform:
  37977. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  37978. @param basename String script file basename
  37979. @return String script file name]]>
  37980. </doc>
  37981. </method>
  37982. <method name="getRunScriptCommand" return="java.lang.String[]"
  37983. abstract="false" native="false" synchronized="false"
  37984. static="true" final="false" visibility="public"
  37985. deprecated="not deprecated">
  37986. <param name="script" type="java.io.File"/>
  37987. <doc>
  37988. <![CDATA[Returns a command to run the given script. The script interpreter is
  37989. inferred by platform: cmd on Windows or bash otherwise.
  37990. @param script File script to run
  37991. @return String[] command to run the script]]>
  37992. </doc>
  37993. </method>
  37994. <method name="getHadoopHome" return="java.lang.String"
  37995. abstract="false" native="false" synchronized="false"
  37996. static="true" final="false" visibility="public"
  37997. deprecated="not deprecated">
  37998. <exception name="IOException" type="java.io.IOException"/>
  37999. <doc>
  38000. <![CDATA[Get the Hadoop home directory. Raises an exception if not found
  38001. @return the home dir
  38002. @throws IOException if the home directory cannot be located.]]>
  38003. </doc>
  38004. </method>
  38005. <method name="getQualifiedBin" return="java.io.File"
  38006. abstract="false" native="false" synchronized="false"
  38007. static="true" final="false" visibility="public"
  38008. deprecated="not deprecated">
  38009. <param name="executable" type="java.lang.String"/>
  38010. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  38011. <doc>
  38012. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  38013. bin location. This is primarily useful for disambiguating call-outs
  38014. to executable sub-components of Hadoop to avoid clashes with other
  38015. executables that may be in the path. Caveat: this call doesn't
  38016. just format the path to the bin directory. It also checks for file
  38017. existence of the composed path. The output of this call should be
  38018. cached by callers.
  38019. @param executable executable
  38020. @return executable file reference
  38021. @throws FileNotFoundException if the path does not exist]]>
  38022. </doc>
  38023. </method>
  38024. <method name="getQualifiedBinPath" return="java.lang.String"
  38025. abstract="false" native="false" synchronized="false"
  38026. static="true" final="false" visibility="public"
  38027. deprecated="not deprecated">
  38028. <param name="executable" type="java.lang.String"/>
  38029. <exception name="IOException" type="java.io.IOException"/>
  38030. <doc>
  38031. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  38032. bin location. This is primarily useful for disambiguating call-outs
  38033. to executable sub-components of Hadoop to avoid clashes with other
  38034. executables that may be in the path. Caveat: this call doesn't
  38035. just format the path to the bin directory. It also checks for file
  38036. existence of the composed path. The output of this call should be
  38037. cached by callers.
  38038. @param executable executable
  38039. @return executable file reference
  38040. @throws FileNotFoundException if the path does not exist
  38041. @throws IOException on path canonicalization failures]]>
  38042. </doc>
  38043. </method>
  38044. <method name="hasWinutilsPath" return="boolean"
  38045. abstract="false" native="false" synchronized="false"
  38046. static="true" final="false" visibility="public"
  38047. deprecated="not deprecated">
  38048. <doc>
  38049. <![CDATA[Predicate to indicate whether or not the path to winutils is known.
  38050. If true, then {@link #WINUTILS} is non-null, and both
  38051. {@link #getWinUtilsPath()} and {@link #getWinUtilsFile()}
  38052. will successfully return this value. Always false on non-windows systems.
  38053. @return true if there is a valid path to the binary]]>
  38054. </doc>
  38055. </method>
  38056. <method name="getWinUtilsPath" return="java.lang.String"
  38057. abstract="false" native="false" synchronized="false"
  38058. static="true" final="false" visibility="public"
  38059. deprecated="not deprecated">
  38060. <doc>
  38061. <![CDATA[Locate the winutils binary, or fail with a meaningful
  38062. exception and stack trace as an RTE.
  38063. This method is for use in methods which don't explicitly throw
  38064. an <code>IOException</code>.
  38065. @return the path to {@link #WINUTILS_EXE}
  38066. @throws RuntimeException if the path is not resolvable]]>
  38067. </doc>
  38068. </method>
  38069. <method name="getWinUtilsFile" return="java.io.File"
  38070. abstract="false" native="false" synchronized="false"
  38071. static="true" final="false" visibility="public"
  38072. deprecated="not deprecated">
  38073. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  38074. <doc>
  38075. <![CDATA[Get a file reference to winutils.
  38076. Always raises an exception if there isn't one
  38077. @return the file instance referring to the winutils bin.
  38078. @throws FileNotFoundException on any failure to locate that file.]]>
  38079. </doc>
  38080. </method>
  38081. <method name="checkIsBashSupported" return="boolean"
  38082. abstract="false" native="false" synchronized="false"
  38083. static="true" final="false" visibility="public"
  38084. deprecated="not deprecated">
  38085. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  38086. </method>
  38087. <method name="setEnvironment"
  38088. abstract="false" native="false" synchronized="false"
  38089. static="false" final="false" visibility="protected"
  38090. deprecated="not deprecated">
  38091. <param name="env" type="java.util.Map"/>
  38092. <doc>
  38093. <![CDATA[Set the environment for the command.
  38094. @param env Mapping of environment variables]]>
  38095. </doc>
  38096. </method>
  38097. <method name="setWorkingDirectory"
  38098. abstract="false" native="false" synchronized="false"
  38099. static="false" final="false" visibility="protected"
  38100. deprecated="not deprecated">
  38101. <param name="dir" type="java.io.File"/>
  38102. <doc>
  38103. <![CDATA[Set the working directory.
  38104. @param dir The directory where the command will be executed]]>
  38105. </doc>
  38106. </method>
  38107. <method name="run"
  38108. abstract="false" native="false" synchronized="false"
  38109. static="false" final="false" visibility="protected"
  38110. deprecated="not deprecated">
  38111. <exception name="IOException" type="java.io.IOException"/>
  38112. <doc>
  38113. <![CDATA[Check to see if a command needs to be executed and execute if needed.]]>
  38114. </doc>
  38115. </method>
  38116. <method name="getExecString" return="java.lang.String[]"
  38117. abstract="true" native="false" synchronized="false"
  38118. static="false" final="false" visibility="protected"
  38119. deprecated="not deprecated">
  38120. <doc>
  38121. <![CDATA[return an array containing the command name and its parameters.]]>
  38122. </doc>
  38123. </method>
  38124. <method name="parseExecResult"
  38125. abstract="true" native="false" synchronized="false"
  38126. static="false" final="false" visibility="protected"
  38127. deprecated="not deprecated">
  38128. <param name="lines" type="java.io.BufferedReader"/>
  38129. <exception name="IOException" type="java.io.IOException"/>
  38130. <doc>
  38131. <![CDATA[Parse the execution result]]>
  38132. </doc>
  38133. </method>
  38134. <method name="getEnvironment" return="java.lang.String"
  38135. abstract="false" native="false" synchronized="false"
  38136. static="false" final="false" visibility="public"
  38137. deprecated="not deprecated">
  38138. <param name="env" type="java.lang.String"/>
  38139. <doc>
  38140. <![CDATA[Get an environment variable.
  38141. @param env the environment var
  38142. @return the value or null if it was unset.]]>
  38143. </doc>
  38144. </method>
  38145. <method name="getProcess" return="java.lang.Process"
  38146. abstract="false" native="false" synchronized="false"
  38147. static="false" final="false" visibility="public"
  38148. deprecated="not deprecated">
  38149. <doc>
  38150. <![CDATA[get the current sub-process executing the given command.
  38151. @return process executing the command]]>
  38152. </doc>
  38153. </method>
  38154. <method name="getExitCode" return="int"
  38155. abstract="false" native="false" synchronized="false"
  38156. static="false" final="false" visibility="public"
  38157. deprecated="not deprecated">
  38158. <doc>
  38159. <![CDATA[get the exit code.
  38160. @return the exit code of the process]]>
  38161. </doc>
  38162. </method>
  38163. <method name="getWaitingThread" return="java.lang.Thread"
  38164. abstract="false" native="false" synchronized="false"
  38165. static="false" final="false" visibility="public"
  38166. deprecated="not deprecated">
  38167. <doc>
  38168. <![CDATA[get the thread that is waiting on this instance of <code>Shell</code>.
  38169. @return the thread that ran runCommand() that spawned this shell
  38170. or null if no thread is waiting for this shell to complete]]>
  38171. </doc>
  38172. </method>
  38173. <method name="isTimedOut" return="boolean"
  38174. abstract="false" native="false" synchronized="false"
  38175. static="false" final="false" visibility="public"
  38176. deprecated="not deprecated">
  38177. <doc>
  38178. <![CDATA[To check if the passed script to shell command executor timed out or
  38179. not.
  38180. @return if the script timed out.]]>
  38181. </doc>
  38182. </method>
  38183. <method name="execCommand" return="java.lang.String"
  38184. abstract="false" native="false" synchronized="false"
  38185. static="true" final="false" visibility="public"
  38186. deprecated="not deprecated">
  38187. <param name="cmd" type="java.lang.String[]"/>
  38188. <exception name="IOException" type="java.io.IOException"/>
  38189. <doc>
  38190. <![CDATA[Static method to execute a shell command.
  38191. Covers most of the simple cases without requiring the user to implement
  38192. the <code>Shell</code> interface.
  38193. @param cmd shell command to execute.
  38194. @return the output of the executed command.]]>
  38195. </doc>
  38196. </method>
  38197. <method name="execCommand" return="java.lang.String"
  38198. abstract="false" native="false" synchronized="false"
  38199. static="true" final="false" visibility="public"
  38200. deprecated="not deprecated">
  38201. <param name="env" type="java.util.Map"/>
  38202. <param name="cmd" type="java.lang.String[]"/>
  38203. <param name="timeout" type="long"/>
  38204. <exception name="IOException" type="java.io.IOException"/>
  38205. <doc>
  38206. <![CDATA[Static method to execute a shell command.
  38207. Covers most of the simple cases without requiring the user to implement
  38208. the <code>Shell</code> interface.
  38209. @param env the map of environment key=value
  38210. @param cmd shell command to execute.
  38211. @param timeout time in milliseconds after which script should be marked timeout
  38212. @return the output of the executed command.
  38213. @throws IOException on any problem.]]>
  38214. </doc>
  38215. </method>
  38216. <method name="execCommand" return="java.lang.String"
  38217. abstract="false" native="false" synchronized="false"
  38218. static="true" final="false" visibility="public"
  38219. deprecated="not deprecated">
  38220. <param name="env" type="java.util.Map"/>
  38221. <param name="cmd" type="java.lang.String[]"/>
  38222. <exception name="IOException" type="java.io.IOException"/>
  38223. <doc>
  38224. <![CDATA[Static method to execute a shell command.
  38225. Covers most of the simple cases without requiring the user to implement
  38226. the <code>Shell</code> interface.
  38227. @param env the map of environment key=value
  38228. @param cmd shell command to execute.
  38229. @return the output of the executed command.
  38230. @throws IOException on any problem.]]>
  38231. </doc>
  38232. </method>
  38233. <method name="destroyAllShellProcesses"
  38234. abstract="false" native="false" synchronized="false"
  38235. static="true" final="false" visibility="public"
  38236. deprecated="not deprecated">
  38237. <doc>
  38238. <![CDATA[Static method to destroy all running <code>Shell</code> processes.
  38239. Iterates through a map of all currently running <code>Shell</code>
  38240. processes and destroys them one by one. This method is thread safe]]>
  38241. </doc>
  38242. </method>
  38243. <method name="getAllShells" return="java.util.Set"
  38244. abstract="false" native="false" synchronized="false"
  38245. static="true" final="false" visibility="public"
  38246. deprecated="not deprecated">
  38247. <doc>
  38248. <![CDATA[Static method to return a Set of all <code>Shell</code> objects.]]>
  38249. </doc>
  38250. </method>
  38251. <method name="getMemlockLimit" return="java.lang.Long"
  38252. abstract="false" native="false" synchronized="false"
  38253. static="true" final="false" visibility="public"
  38254. deprecated="not deprecated">
  38255. <param name="ulimit" type="java.lang.Long"/>
  38256. <doc>
  38257. <![CDATA[Static method to return the memory lock limit for datanode.
  38258. @param ulimit max value at which memory locked should be capped.
  38259. @return long value specifying the memory lock limit.]]>
  38260. </doc>
  38261. </method>
  38262. <field name="LOG" type="org.slf4j.Logger"
  38263. transient="false" volatile="false"
  38264. static="true" final="true" visibility="public"
  38265. deprecated="not deprecated">
  38266. </field>
  38267. <field name="SYSPROP_HADOOP_HOME_DIR" type="java.lang.String"
  38268. transient="false" volatile="false"
  38269. static="true" final="true" visibility="public"
  38270. deprecated="not deprecated">
  38271. <doc>
  38272. <![CDATA[System property for the Hadoop home directory: {@value}.]]>
  38273. </doc>
  38274. </field>
  38275. <field name="ENV_HADOOP_HOME" type="java.lang.String"
  38276. transient="false" volatile="false"
  38277. static="true" final="true" visibility="public"
  38278. deprecated="not deprecated">
  38279. <doc>
  38280. <![CDATA[Environment variable for Hadoop's home dir: {@value}.]]>
  38281. </doc>
  38282. </field>
  38283. <field name="WINDOWS_MAX_SHELL_LENGTH" type="int"
  38284. transient="false" volatile="false"
  38285. static="true" final="true" visibility="public"
  38286. deprecated="not deprecated">
  38287. <doc>
  38288. <![CDATA[Maximum command line length in Windows
  38289. KB830473 documents this as 8191]]>
  38290. </doc>
  38291. </field>
  38292. <field name="WINDOWS_MAX_SHELL_LENGHT" type="int"
  38293. transient="false" volatile="false"
  38294. static="true" final="true" visibility="public"
  38295. deprecated="use the correctly spelled constant.">
  38296. <doc>
  38297. <![CDATA[mis-spelling of {@link #WINDOWS_MAX_SHELL_LENGTH}.
  38298. @deprecated use the correctly spelled constant.]]>
  38299. </doc>
  38300. </field>
  38301. <field name="USER_NAME_COMMAND" type="java.lang.String"
  38302. transient="false" volatile="false"
  38303. static="true" final="true" visibility="public"
  38304. deprecated="not deprecated">
  38305. <doc>
  38306. <![CDATA[a Unix command to get the current user's name: {@value}.]]>
  38307. </doc>
  38308. </field>
  38309. <field name="WindowsProcessLaunchLock" type="java.lang.Object"
  38310. transient="false" volatile="false"
  38311. static="true" final="true" visibility="public"
  38312. deprecated="not deprecated">
  38313. <doc>
  38314. <![CDATA[Windows <code>CreateProcess</code> synchronization object.]]>
  38315. </doc>
  38316. </field>
  38317. <field name="osType" type="org.apache.hadoop.util.Shell.OSType"
  38318. transient="false" volatile="false"
  38319. static="true" final="true" visibility="public"
  38320. deprecated="not deprecated">
  38321. <doc>
  38322. <![CDATA[Get the type of the operating system, as determined from parsing
  38323. the <code>os.name</code> property.]]>
  38324. </doc>
  38325. </field>
  38326. <field name="WINDOWS" type="boolean"
  38327. transient="false" volatile="false"
  38328. static="true" final="true" visibility="public"
  38329. deprecated="not deprecated">
  38330. </field>
  38331. <field name="SOLARIS" type="boolean"
  38332. transient="false" volatile="false"
  38333. static="true" final="true" visibility="public"
  38334. deprecated="not deprecated">
  38335. </field>
  38336. <field name="MAC" type="boolean"
  38337. transient="false" volatile="false"
  38338. static="true" final="true" visibility="public"
  38339. deprecated="not deprecated">
  38340. </field>
  38341. <field name="FREEBSD" type="boolean"
  38342. transient="false" volatile="false"
  38343. static="true" final="true" visibility="public"
  38344. deprecated="not deprecated">
  38345. </field>
  38346. <field name="LINUX" type="boolean"
  38347. transient="false" volatile="false"
  38348. static="true" final="true" visibility="public"
  38349. deprecated="not deprecated">
  38350. </field>
  38351. <field name="OTHER" type="boolean"
  38352. transient="false" volatile="false"
  38353. static="true" final="true" visibility="public"
  38354. deprecated="not deprecated">
  38355. </field>
  38356. <field name="PPC_64" type="boolean"
  38357. transient="false" volatile="false"
  38358. static="true" final="true" visibility="public"
  38359. deprecated="not deprecated">
  38360. </field>
  38361. <field name="ENV_NAME_REGEX" type="java.lang.String"
  38362. transient="false" volatile="false"
  38363. static="true" final="true" visibility="public"
  38364. deprecated="not deprecated">
  38365. <doc>
  38366. <![CDATA[Regular expression for environment variables: {@value}.]]>
  38367. </doc>
  38368. </field>
  38369. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  38370. transient="false" volatile="false"
  38371. static="true" final="true" visibility="public"
  38372. deprecated="not deprecated">
  38373. <doc>
  38374. <![CDATA[a Unix command to set permission: {@value}.]]>
  38375. </doc>
  38376. </field>
  38377. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  38378. transient="false" volatile="false"
  38379. static="true" final="true" visibility="public"
  38380. deprecated="not deprecated">
  38381. <doc>
  38382. <![CDATA[a Unix command to set owner: {@value}.]]>
  38383. </doc>
  38384. </field>
  38385. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  38386. transient="false" volatile="false"
  38387. static="true" final="true" visibility="public"
  38388. deprecated="not deprecated">
  38389. <doc>
  38390. <![CDATA[a Unix command to set the change user's groups list: {@value}.]]>
  38391. </doc>
  38392. </field>
  38393. <field name="LINK_COMMAND" type="java.lang.String"
  38394. transient="false" volatile="false"
  38395. static="true" final="true" visibility="public"
  38396. deprecated="not deprecated">
  38397. <doc>
  38398. <![CDATA[a Unix command to create a link: {@value}.]]>
  38399. </doc>
  38400. </field>
  38401. <field name="READ_LINK_COMMAND" type="java.lang.String"
  38402. transient="false" volatile="false"
  38403. static="true" final="true" visibility="public"
  38404. deprecated="not deprecated">
  38405. <doc>
  38406. <![CDATA[a Unix command to get a link target: {@value}.]]>
  38407. </doc>
  38408. </field>
  38409. <field name="timeOutInterval" type="long"
  38410. transient="false" volatile="false"
  38411. static="false" final="false" visibility="protected"
  38412. deprecated="not deprecated">
  38413. <doc>
  38414. <![CDATA[Time after which the executing script would be timedout.]]>
  38415. </doc>
  38416. </field>
  38417. <field name="inheritParentEnv" type="boolean"
  38418. transient="false" volatile="false"
  38419. static="false" final="false" visibility="protected"
  38420. deprecated="not deprecated">
  38421. <doc>
  38422. <![CDATA[Indicates if the parent env vars should be inherited or not]]>
  38423. </doc>
  38424. </field>
  38425. <field name="WINUTILS" type="java.lang.String"
  38426. transient="false" volatile="false"
  38427. static="true" final="true" visibility="public"
  38428. deprecated="use one of the exception-raising getter methods,
  38429. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}">
  38430. <doc>
  38431. <![CDATA[Location of winutils as a string; null if not found.
  38432. <p>
  38433. <i>Important: caller must check for this value being null</i>.
  38434. The lack of such checks has led to many support issues being raised.
  38435. <p>
  38436. @deprecated use one of the exception-raising getter methods,
  38437. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}]]>
  38438. </doc>
  38439. </field>
  38440. <field name="isSetsidAvailable" type="boolean"
  38441. transient="false" volatile="false"
  38442. static="true" final="true" visibility="public"
  38443. deprecated="not deprecated">
  38444. <doc>
  38445. <![CDATA[Flag which is true if setsid exists.]]>
  38446. </doc>
  38447. </field>
  38448. <field name="TOKEN_SEPARATOR_REGEX" type="java.lang.String"
  38449. transient="false" volatile="false"
  38450. static="true" final="true" visibility="public"
  38451. deprecated="not deprecated">
  38452. <doc>
  38453. <![CDATA[Token separator regex used to parse Shell tool outputs.]]>
  38454. </doc>
  38455. </field>
  38456. <doc>
  38457. <![CDATA[A base class for running a Shell command.
  38458. <code>Shell</code> can be used to run shell commands like <code>du</code> or
  38459. <code>df</code>. It also offers facilities to gate commands by
  38460. time-intervals.]]>
  38461. </doc>
  38462. </class>
  38463. <!-- end class org.apache.hadoop.util.Shell -->
  38464. <!-- start class org.apache.hadoop.util.ShutdownHookManager -->
  38465. <class name="ShutdownHookManager" extends="java.lang.Object"
  38466. abstract="false"
  38467. static="false" final="true" visibility="public"
  38468. deprecated="not deprecated">
  38469. <method name="get" return="org.apache.hadoop.util.ShutdownHookManager"
  38470. abstract="false" native="false" synchronized="false"
  38471. static="true" final="false" visibility="public"
  38472. deprecated="not deprecated">
  38473. <doc>
  38474. <![CDATA[Return <code>ShutdownHookManager</code> singleton.
  38475. @return <code>ShutdownHookManager</code> singleton.]]>
  38476. </doc>
  38477. </method>
  38478. <method name="addShutdownHook"
  38479. abstract="false" native="false" synchronized="false"
  38480. static="false" final="false" visibility="public"
  38481. deprecated="not deprecated">
  38482. <param name="shutdownHook" type="java.lang.Runnable"/>
  38483. <param name="priority" type="int"/>
  38484. <doc>
  38485. <![CDATA[Adds a shutdownHook with a priority, the higher the priority
  38486. the earlier will run. ShutdownHooks with same priority run
  38487. in a non-deterministic order.
  38488. @param shutdownHook shutdownHook <code>Runnable</code>
  38489. @param priority priority of the shutdownHook.]]>
  38490. </doc>
  38491. </method>
  38492. <method name="addShutdownHook"
  38493. abstract="false" native="false" synchronized="false"
  38494. static="false" final="false" visibility="public"
  38495. deprecated="not deprecated">
  38496. <param name="shutdownHook" type="java.lang.Runnable"/>
  38497. <param name="priority" type="int"/>
  38498. <param name="timeout" type="long"/>
  38499. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  38500. <doc>
  38501. <![CDATA[Adds a shutdownHook with a priority and timeout the higher the priority
  38502. the earlier will run. ShutdownHooks with same priority run
  38503. in a non-deterministic order. The shutdown hook will be terminated if it
  38504. has not been finished in the specified period of time.
  38505. @param shutdownHook shutdownHook <code>Runnable</code>
  38506. @param priority priority of the shutdownHook
  38507. @param timeout timeout of the shutdownHook
  38508. @param unit unit of the timeout <code>TimeUnit</code>]]>
  38509. </doc>
  38510. </method>
  38511. <method name="removeShutdownHook" return="boolean"
  38512. abstract="false" native="false" synchronized="false"
  38513. static="false" final="false" visibility="public"
  38514. deprecated="not deprecated">
  38515. <param name="shutdownHook" type="java.lang.Runnable"/>
  38516. <doc>
  38517. <![CDATA[Removes a shutdownHook.
  38518. @param shutdownHook shutdownHook to remove.
  38519. @return TRUE if the shutdownHook was registered and removed,
  38520. FALSE otherwise.]]>
  38521. </doc>
  38522. </method>
  38523. <method name="hasShutdownHook" return="boolean"
  38524. abstract="false" native="false" synchronized="false"
  38525. static="false" final="false" visibility="public"
  38526. deprecated="not deprecated">
  38527. <param name="shutdownHook" type="java.lang.Runnable"/>
  38528. <doc>
  38529. <![CDATA[Indicates if a shutdownHook is registered or not.
  38530. @param shutdownHook shutdownHook to check if registered.
  38531. @return TRUE/FALSE depending if the shutdownHook is is registered.]]>
  38532. </doc>
  38533. </method>
  38534. <method name="isShutdownInProgress" return="boolean"
  38535. abstract="false" native="false" synchronized="false"
  38536. static="false" final="false" visibility="public"
  38537. deprecated="not deprecated">
  38538. <doc>
  38539. <![CDATA[Indicates if shutdown is in progress or not.
  38540. @return TRUE if the shutdown is in progress, otherwise FALSE.]]>
  38541. </doc>
  38542. </method>
  38543. <method name="clearShutdownHooks"
  38544. abstract="false" native="false" synchronized="false"
  38545. static="false" final="false" visibility="public"
  38546. deprecated="not deprecated">
  38547. <doc>
  38548. <![CDATA[clear all registered shutdownHooks.]]>
  38549. </doc>
  38550. </method>
  38551. <field name="TIMEOUT_MINIMUM" type="long"
  38552. transient="false" volatile="false"
  38553. static="true" final="true" visibility="public"
  38554. deprecated="not deprecated">
  38555. <doc>
  38556. <![CDATA[Minimum shutdown timeout: {@value} second(s).]]>
  38557. </doc>
  38558. </field>
  38559. <field name="TIME_UNIT_DEFAULT" type="java.util.concurrent.TimeUnit"
  38560. transient="false" volatile="false"
  38561. static="true" final="true" visibility="public"
  38562. deprecated="not deprecated">
  38563. <doc>
  38564. <![CDATA[The default time unit used: seconds.]]>
  38565. </doc>
  38566. </field>
  38567. <doc>
  38568. <![CDATA[The <code>ShutdownHookManager</code> enables running shutdownHook
  38569. in a deterministic order, higher priority first.
  38570. <p/>
  38571. The JVM runs ShutdownHooks in a non-deterministic order or in parallel.
  38572. This class registers a single JVM shutdownHook and run all the
  38573. shutdownHooks registered to it (to this class) in order based on their
  38574. priority.
  38575. Unless a hook was registered with a shutdown explicitly set through
  38576. {@link #addShutdownHook(Runnable, int, long, TimeUnit)},
  38577. the shutdown time allocated to it is set by the configuration option
  38578. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT} in
  38579. {@code core-site.xml}, with a default value of
  38580. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT_DEFAULT}
  38581. seconds.]]>
  38582. </doc>
  38583. </class>
  38584. <!-- end class org.apache.hadoop.util.ShutdownHookManager -->
  38585. <!-- start class org.apache.hadoop.util.StringInterner -->
  38586. <class name="StringInterner" extends="java.lang.Object"
  38587. abstract="false"
  38588. static="false" final="false" visibility="public"
  38589. deprecated="not deprecated">
  38590. <constructor name="StringInterner"
  38591. static="false" final="false" visibility="public"
  38592. deprecated="not deprecated">
  38593. </constructor>
  38594. <method name="strongIntern" return="java.lang.String"
  38595. abstract="false" native="false" synchronized="false"
  38596. static="true" final="false" visibility="public"
  38597. deprecated="not deprecated">
  38598. <param name="sample" type="java.lang.String"/>
  38599. <doc>
  38600. <![CDATA[Interns and returns a reference to the representative instance
  38601. for any of a collection of string instances that are equal to each other.
  38602. Retains strong reference to the instance,
  38603. thus preventing it from being garbage-collected.
  38604. @param sample string instance to be interned
  38605. @return strong reference to interned string instance]]>
  38606. </doc>
  38607. </method>
  38608. <method name="weakIntern" return="java.lang.String"
  38609. abstract="false" native="false" synchronized="false"
  38610. static="true" final="false" visibility="public"
  38611. deprecated="not deprecated">
  38612. <param name="sample" type="java.lang.String"/>
  38613. <doc>
  38614. <![CDATA[Interns and returns a reference to the representative instance
  38615. for any of a collection of string instances that are equal to each other.
  38616. Retains weak reference to the instance,
  38617. and so does not prevent it from being garbage-collected.
  38618. @param sample string instance to be interned
  38619. @return weak reference to interned string instance]]>
  38620. </doc>
  38621. </method>
  38622. <method name="internStringsInArray" return="java.lang.String[]"
  38623. abstract="false" native="false" synchronized="false"
  38624. static="true" final="false" visibility="public"
  38625. deprecated="not deprecated">
  38626. <param name="strings" type="java.lang.String[]"/>
  38627. <doc>
  38628. <![CDATA[Interns all the strings in the given array in place,
  38629. returning the same array.]]>
  38630. </doc>
  38631. </method>
  38632. <doc>
  38633. <![CDATA[Provides string interning utility methods. For weak interning,
  38634. we use the standard String.intern() call, that performs very well
  38635. (no problems with PermGen overflowing, etc.) starting from JDK 7.]]>
  38636. </doc>
  38637. </class>
  38638. <!-- end class org.apache.hadoop.util.StringInterner -->
  38639. <!-- start class org.apache.hadoop.util.SysInfo -->
  38640. <class name="SysInfo" extends="java.lang.Object"
  38641. abstract="true"
  38642. static="false" final="false" visibility="public"
  38643. deprecated="not deprecated">
  38644. <constructor name="SysInfo"
  38645. static="false" final="false" visibility="public"
  38646. deprecated="not deprecated">
  38647. </constructor>
  38648. <method name="newInstance" return="org.apache.hadoop.util.SysInfo"
  38649. abstract="false" native="false" synchronized="false"
  38650. static="true" final="false" visibility="public"
  38651. deprecated="not deprecated">
  38652. <doc>
  38653. <![CDATA[Return default OS instance.
  38654. @throws UnsupportedOperationException If cannot determine OS.
  38655. @return Default instance for the detected OS.]]>
  38656. </doc>
  38657. </method>
  38658. <method name="getVirtualMemorySize" return="long"
  38659. abstract="true" native="false" synchronized="false"
  38660. static="false" final="false" visibility="public"
  38661. deprecated="not deprecated">
  38662. <doc>
  38663. <![CDATA[Obtain the total size of the virtual memory present in the system.
  38664. @return virtual memory size in bytes.]]>
  38665. </doc>
  38666. </method>
  38667. <method name="getPhysicalMemorySize" return="long"
  38668. abstract="true" native="false" synchronized="false"
  38669. static="false" final="false" visibility="public"
  38670. deprecated="not deprecated">
  38671. <doc>
  38672. <![CDATA[Obtain the total size of the physical memory present in the system.
  38673. @return physical memory size bytes.]]>
  38674. </doc>
  38675. </method>
  38676. <method name="getAvailableVirtualMemorySize" return="long"
  38677. abstract="true" native="false" synchronized="false"
  38678. static="false" final="false" visibility="public"
  38679. deprecated="not deprecated">
  38680. <doc>
  38681. <![CDATA[Obtain the total size of the available virtual memory present
  38682. in the system.
  38683. @return available virtual memory size in bytes.]]>
  38684. </doc>
  38685. </method>
  38686. <method name="getAvailablePhysicalMemorySize" return="long"
  38687. abstract="true" native="false" synchronized="false"
  38688. static="false" final="false" visibility="public"
  38689. deprecated="not deprecated">
  38690. <doc>
  38691. <![CDATA[Obtain the total size of the available physical memory present
  38692. in the system.
  38693. @return available physical memory size bytes.]]>
  38694. </doc>
  38695. </method>
  38696. <method name="getNumProcessors" return="int"
  38697. abstract="true" native="false" synchronized="false"
  38698. static="false" final="false" visibility="public"
  38699. deprecated="not deprecated">
  38700. <doc>
  38701. <![CDATA[Obtain the total number of logical processors present on the system.
  38702. @return number of logical processors]]>
  38703. </doc>
  38704. </method>
  38705. <method name="getNumCores" return="int"
  38706. abstract="true" native="false" synchronized="false"
  38707. static="false" final="false" visibility="public"
  38708. deprecated="not deprecated">
  38709. <doc>
  38710. <![CDATA[Obtain total number of physical cores present on the system.
  38711. @return number of physical cores]]>
  38712. </doc>
  38713. </method>
  38714. <method name="getCpuFrequency" return="long"
  38715. abstract="true" native="false" synchronized="false"
  38716. static="false" final="false" visibility="public"
  38717. deprecated="not deprecated">
  38718. <doc>
  38719. <![CDATA[Obtain the CPU frequency of on the system.
  38720. @return CPU frequency in kHz]]>
  38721. </doc>
  38722. </method>
  38723. <method name="getCumulativeCpuTime" return="long"
  38724. abstract="true" native="false" synchronized="false"
  38725. static="false" final="false" visibility="public"
  38726. deprecated="not deprecated">
  38727. <doc>
  38728. <![CDATA[Obtain the cumulative CPU time since the system is on.
  38729. @return cumulative CPU time in milliseconds]]>
  38730. </doc>
  38731. </method>
  38732. <method name="getCpuUsagePercentage" return="float"
  38733. abstract="true" native="false" synchronized="false"
  38734. static="false" final="false" visibility="public"
  38735. deprecated="not deprecated">
  38736. <doc>
  38737. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  38738. @return CPU usage as a percentage (from 0 to 100) of available cycles.]]>
  38739. </doc>
  38740. </method>
  38741. <method name="getNumVCoresUsed" return="float"
  38742. abstract="true" native="false" synchronized="false"
  38743. static="false" final="false" visibility="public"
  38744. deprecated="not deprecated">
  38745. <doc>
  38746. <![CDATA[Obtain the number of VCores used. Return -1 if it is unavailable
  38747. @return Number of VCores used a percentage (from 0 to #VCores).]]>
  38748. </doc>
  38749. </method>
  38750. <method name="getNetworkBytesRead" return="long"
  38751. abstract="true" native="false" synchronized="false"
  38752. static="false" final="false" visibility="public"
  38753. deprecated="not deprecated">
  38754. <doc>
  38755. <![CDATA[Obtain the aggregated number of bytes read over the network.
  38756. @return total number of bytes read.]]>
  38757. </doc>
  38758. </method>
  38759. <method name="getNetworkBytesWritten" return="long"
  38760. abstract="true" native="false" synchronized="false"
  38761. static="false" final="false" visibility="public"
  38762. deprecated="not deprecated">
  38763. <doc>
  38764. <![CDATA[Obtain the aggregated number of bytes written to the network.
  38765. @return total number of bytes written.]]>
  38766. </doc>
  38767. </method>
  38768. <method name="getStorageBytesRead" return="long"
  38769. abstract="true" native="false" synchronized="false"
  38770. static="false" final="false" visibility="public"
  38771. deprecated="not deprecated">
  38772. <doc>
  38773. <![CDATA[Obtain the aggregated number of bytes read from disks.
  38774. @return total number of bytes read.]]>
  38775. </doc>
  38776. </method>
  38777. <method name="getStorageBytesWritten" return="long"
  38778. abstract="true" native="false" synchronized="false"
  38779. static="false" final="false" visibility="public"
  38780. deprecated="not deprecated">
  38781. <doc>
  38782. <![CDATA[Obtain the aggregated number of bytes written to disks.
  38783. @return total number of bytes written.]]>
  38784. </doc>
  38785. </method>
  38786. <doc>
  38787. <![CDATA[Plugin to calculate resource information on the system.]]>
  38788. </doc>
  38789. </class>
  38790. <!-- end class org.apache.hadoop.util.SysInfo -->
  38791. <!-- start interface org.apache.hadoop.util.Tool -->
  38792. <interface name="Tool" abstract="true"
  38793. static="false" final="false" visibility="public"
  38794. deprecated="not deprecated">
  38795. <implements name="org.apache.hadoop.conf.Configurable"/>
  38796. <method name="run" return="int"
  38797. abstract="false" native="false" synchronized="false"
  38798. static="false" final="false" visibility="public"
  38799. deprecated="not deprecated">
  38800. <param name="args" type="java.lang.String[]"/>
  38801. <exception name="Exception" type="java.lang.Exception"/>
  38802. <doc>
  38803. <![CDATA[Execute the command with the given arguments.
  38804. @param args command specific arguments.
  38805. @return exit code.
  38806. @throws Exception]]>
  38807. </doc>
  38808. </method>
  38809. <doc>
  38810. <![CDATA[A tool interface that supports handling of generic command-line options.
  38811. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  38812. The tool/application should delegate the handling of
  38813. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  38814. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  38815. and only handle its custom arguments.</p>
  38816. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  38817. <p><blockquote><pre>
  38818. public class MyApp extends Configured implements Tool {
  38819. public int run(String[] args) throws Exception {
  38820. // <code>Configuration</code> processed by <code>ToolRunner</code>
  38821. Configuration conf = getConf();
  38822. // Create a JobConf using the processed <code>conf</code>
  38823. JobConf job = new JobConf(conf, MyApp.class);
  38824. // Process custom command-line options
  38825. Path in = new Path(args[1]);
  38826. Path out = new Path(args[2]);
  38827. // Specify various job-specific parameters
  38828. job.setJobName("my-app");
  38829. job.setInputPath(in);
  38830. job.setOutputPath(out);
  38831. job.setMapperClass(MyMapper.class);
  38832. job.setReducerClass(MyReducer.class);
  38833. // Submit the job, then poll for progress until the job is complete
  38834. RunningJob runningJob = JobClient.runJob(job);
  38835. if (runningJob.isSuccessful()) {
  38836. return 0;
  38837. } else {
  38838. return 1;
  38839. }
  38840. }
  38841. public static void main(String[] args) throws Exception {
  38842. // Let <code>ToolRunner</code> handle generic command-line options
  38843. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  38844. System.exit(res);
  38845. }
  38846. }
  38847. </pre></blockquote></p>
  38848. @see GenericOptionsParser
  38849. @see ToolRunner]]>
  38850. </doc>
  38851. </interface>
  38852. <!-- end interface org.apache.hadoop.util.Tool -->
  38853. <!-- start class org.apache.hadoop.util.ToolRunner -->
  38854. <class name="ToolRunner" extends="java.lang.Object"
  38855. abstract="false"
  38856. static="false" final="false" visibility="public"
  38857. deprecated="not deprecated">
  38858. <constructor name="ToolRunner"
  38859. static="false" final="false" visibility="public"
  38860. deprecated="not deprecated">
  38861. </constructor>
  38862. <method name="run" return="int"
  38863. abstract="false" native="false" synchronized="false"
  38864. static="true" final="false" visibility="public"
  38865. deprecated="not deprecated">
  38866. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38867. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  38868. <param name="args" type="java.lang.String[]"/>
  38869. <exception name="Exception" type="java.lang.Exception"/>
  38870. <doc>
  38871. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  38872. parsing with the given generic arguments. Uses the given
  38873. <code>Configuration</code>, or builds one if null.
  38874. Sets the <code>Tool</code>'s configuration with the possibly modified
  38875. version of the <code>conf</code>.
  38876. @param conf <code>Configuration</code> for the <code>Tool</code>.
  38877. @param tool <code>Tool</code> to run.
  38878. @param args command-line arguments to the tool.
  38879. @return exit code of the {@link Tool#run(String[])} method.]]>
  38880. </doc>
  38881. </method>
  38882. <method name="run" return="int"
  38883. abstract="false" native="false" synchronized="false"
  38884. static="true" final="false" visibility="public"
  38885. deprecated="not deprecated">
  38886. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  38887. <param name="args" type="java.lang.String[]"/>
  38888. <exception name="Exception" type="java.lang.Exception"/>
  38889. <doc>
  38890. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  38891. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  38892. @param tool <code>Tool</code> to run.
  38893. @param args command-line arguments to the tool.
  38894. @return exit code of the {@link Tool#run(String[])} method.]]>
  38895. </doc>
  38896. </method>
  38897. <method name="printGenericCommandUsage"
  38898. abstract="false" native="false" synchronized="false"
  38899. static="true" final="false" visibility="public"
  38900. deprecated="not deprecated">
  38901. <param name="out" type="java.io.PrintStream"/>
  38902. <doc>
  38903. <![CDATA[Prints generic command-line argurments and usage information.
  38904. @param out stream to write usage information to.]]>
  38905. </doc>
  38906. </method>
  38907. <method name="confirmPrompt" return="boolean"
  38908. abstract="false" native="false" synchronized="false"
  38909. static="true" final="false" visibility="public"
  38910. deprecated="not deprecated">
  38911. <param name="prompt" type="java.lang.String"/>
  38912. <exception name="IOException" type="java.io.IOException"/>
  38913. <doc>
  38914. <![CDATA[Print out a prompt to the user, and return true if the user
  38915. responds with "y" or "yes". (case insensitive)]]>
  38916. </doc>
  38917. </method>
  38918. <doc>
  38919. <![CDATA[A utility to help run {@link Tool}s.
  38920. <p><code>ToolRunner</code> can be used to run classes implementing
  38921. <code>Tool</code> interface. It works in conjunction with
  38922. {@link GenericOptionsParser} to parse the
  38923. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  38924. generic hadoop command line arguments</a> and modifies the
  38925. <code>Configuration</code> of the <code>Tool</code>. The
  38926. application-specific options are passed along without being modified.
  38927. </p>
  38928. @see Tool
  38929. @see GenericOptionsParser]]>
  38930. </doc>
  38931. </class>
  38932. <!-- end class org.apache.hadoop.util.ToolRunner -->
  38933. <!-- start class org.apache.hadoop.util.VersionInfo -->
  38934. <class name="VersionInfo" extends="java.lang.Object"
  38935. abstract="false"
  38936. static="false" final="false" visibility="public"
  38937. deprecated="not deprecated">
  38938. <constructor name="VersionInfo" type="java.lang.String"
  38939. static="false" final="false" visibility="protected"
  38940. deprecated="not deprecated">
  38941. </constructor>
  38942. <method name="_getVersion" return="java.lang.String"
  38943. abstract="false" native="false" synchronized="false"
  38944. static="false" final="false" visibility="protected"
  38945. deprecated="not deprecated">
  38946. </method>
  38947. <method name="_getRevision" return="java.lang.String"
  38948. abstract="false" native="false" synchronized="false"
  38949. static="false" final="false" visibility="protected"
  38950. deprecated="not deprecated">
  38951. </method>
  38952. <method name="_getBranch" return="java.lang.String"
  38953. abstract="false" native="false" synchronized="false"
  38954. static="false" final="false" visibility="protected"
  38955. deprecated="not deprecated">
  38956. </method>
  38957. <method name="_getDate" return="java.lang.String"
  38958. abstract="false" native="false" synchronized="false"
  38959. static="false" final="false" visibility="protected"
  38960. deprecated="not deprecated">
  38961. </method>
  38962. <method name="_getUser" return="java.lang.String"
  38963. abstract="false" native="false" synchronized="false"
  38964. static="false" final="false" visibility="protected"
  38965. deprecated="not deprecated">
  38966. </method>
  38967. <method name="_getUrl" return="java.lang.String"
  38968. abstract="false" native="false" synchronized="false"
  38969. static="false" final="false" visibility="protected"
  38970. deprecated="not deprecated">
  38971. </method>
  38972. <method name="_getSrcChecksum" return="java.lang.String"
  38973. abstract="false" native="false" synchronized="false"
  38974. static="false" final="false" visibility="protected"
  38975. deprecated="not deprecated">
  38976. </method>
  38977. <method name="_getBuildVersion" return="java.lang.String"
  38978. abstract="false" native="false" synchronized="false"
  38979. static="false" final="false" visibility="protected"
  38980. deprecated="not deprecated">
  38981. </method>
  38982. <method name="_getProtocVersion" return="java.lang.String"
  38983. abstract="false" native="false" synchronized="false"
  38984. static="false" final="false" visibility="protected"
  38985. deprecated="not deprecated">
  38986. </method>
  38987. <method name="getVersion" return="java.lang.String"
  38988. abstract="false" native="false" synchronized="false"
  38989. static="true" final="false" visibility="public"
  38990. deprecated="not deprecated">
  38991. <doc>
  38992. <![CDATA[Get the Hadoop version.
  38993. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  38994. </doc>
  38995. </method>
  38996. <method name="getRevision" return="java.lang.String"
  38997. abstract="false" native="false" synchronized="false"
  38998. static="true" final="false" visibility="public"
  38999. deprecated="not deprecated">
  39000. <doc>
  39001. <![CDATA[Get the Git commit hash of the repository when compiled.
  39002. @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"]]>
  39003. </doc>
  39004. </method>
  39005. <method name="getBranch" return="java.lang.String"
  39006. abstract="false" native="false" synchronized="false"
  39007. static="true" final="false" visibility="public"
  39008. deprecated="not deprecated">
  39009. <doc>
  39010. <![CDATA[Get the branch on which this originated.
  39011. @return The branch name, e.g. "trunk" or "branches/branch-0.20"]]>
  39012. </doc>
  39013. </method>
  39014. <method name="getDate" return="java.lang.String"
  39015. abstract="false" native="false" synchronized="false"
  39016. static="true" final="false" visibility="public"
  39017. deprecated="not deprecated">
  39018. <doc>
  39019. <![CDATA[The date that Hadoop was compiled.
  39020. @return the compilation date in unix date format]]>
  39021. </doc>
  39022. </method>
  39023. <method name="getUser" return="java.lang.String"
  39024. abstract="false" native="false" synchronized="false"
  39025. static="true" final="false" visibility="public"
  39026. deprecated="not deprecated">
  39027. <doc>
  39028. <![CDATA[The user that compiled Hadoop.
  39029. @return the username of the user]]>
  39030. </doc>
  39031. </method>
  39032. <method name="getUrl" return="java.lang.String"
  39033. abstract="false" native="false" synchronized="false"
  39034. static="true" final="false" visibility="public"
  39035. deprecated="not deprecated">
  39036. <doc>
  39037. <![CDATA[Get the URL for the Hadoop repository.
  39038. @return the URL of the Hadoop repository]]>
  39039. </doc>
  39040. </method>
  39041. <method name="getSrcChecksum" return="java.lang.String"
  39042. abstract="false" native="false" synchronized="false"
  39043. static="true" final="false" visibility="public"
  39044. deprecated="not deprecated">
  39045. <doc>
  39046. <![CDATA[Get the checksum of the source files from which Hadoop was built.
  39047. @return the checksum of the source files]]>
  39048. </doc>
  39049. </method>
  39050. <method name="getBuildVersion" return="java.lang.String"
  39051. abstract="false" native="false" synchronized="false"
  39052. static="true" final="false" visibility="public"
  39053. deprecated="not deprecated">
  39054. <doc>
  39055. <![CDATA[Returns the buildVersion which includes version,
  39056. revision, user and date.
  39057. @return the buildVersion]]>
  39058. </doc>
  39059. </method>
  39060. <method name="getProtocVersion" return="java.lang.String"
  39061. abstract="false" native="false" synchronized="false"
  39062. static="true" final="false" visibility="public"
  39063. deprecated="not deprecated">
  39064. <doc>
  39065. <![CDATA[Returns the protoc version used for the build.
  39066. @return the protoc version]]>
  39067. </doc>
  39068. </method>
  39069. <method name="main"
  39070. abstract="false" native="false" synchronized="false"
  39071. static="true" final="false" visibility="public"
  39072. deprecated="not deprecated">
  39073. <param name="args" type="java.lang.String[]"/>
  39074. </method>
  39075. <doc>
  39076. <![CDATA[This class returns build information about Hadoop components.]]>
  39077. </doc>
  39078. </class>
  39079. <!-- end class org.apache.hadoop.util.VersionInfo -->
  39080. <doc>
  39081. <![CDATA[Common utilities.]]>
  39082. </doc>
  39083. </package>
  39084. <package name="org.apache.hadoop.util.bloom">
  39085. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  39086. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  39087. abstract="false"
  39088. static="false" final="false" visibility="public"
  39089. deprecated="not deprecated">
  39090. <constructor name="BloomFilter"
  39091. static="false" final="false" visibility="public"
  39092. deprecated="not deprecated">
  39093. <doc>
  39094. <![CDATA[Default constructor - use with readFields]]>
  39095. </doc>
  39096. </constructor>
  39097. <constructor name="BloomFilter" type="int, int, int"
  39098. static="false" final="false" visibility="public"
  39099. deprecated="not deprecated">
  39100. <doc>
  39101. <![CDATA[Constructor
  39102. @param vectorSize The vector size of <i>this</i> filter.
  39103. @param nbHash The number of hash function to consider.
  39104. @param hashType type of the hashing function (see
  39105. {@link org.apache.hadoop.util.hash.Hash}).]]>
  39106. </doc>
  39107. </constructor>
  39108. <method name="add"
  39109. abstract="false" native="false" synchronized="false"
  39110. static="false" final="false" visibility="public"
  39111. deprecated="not deprecated">
  39112. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39113. </method>
  39114. <method name="and"
  39115. abstract="false" native="false" synchronized="false"
  39116. static="false" final="false" visibility="public"
  39117. deprecated="not deprecated">
  39118. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39119. </method>
  39120. <method name="membershipTest" return="boolean"
  39121. abstract="false" native="false" synchronized="false"
  39122. static="false" final="false" visibility="public"
  39123. deprecated="not deprecated">
  39124. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39125. </method>
  39126. <method name="not"
  39127. abstract="false" native="false" synchronized="false"
  39128. static="false" final="false" visibility="public"
  39129. deprecated="not deprecated">
  39130. </method>
  39131. <method name="or"
  39132. abstract="false" native="false" synchronized="false"
  39133. static="false" final="false" visibility="public"
  39134. deprecated="not deprecated">
  39135. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39136. </method>
  39137. <method name="xor"
  39138. abstract="false" native="false" synchronized="false"
  39139. static="false" final="false" visibility="public"
  39140. deprecated="not deprecated">
  39141. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39142. </method>
  39143. <method name="toString" return="java.lang.String"
  39144. abstract="false" native="false" synchronized="false"
  39145. static="false" final="false" visibility="public"
  39146. deprecated="not deprecated">
  39147. </method>
  39148. <method name="getVectorSize" return="int"
  39149. abstract="false" native="false" synchronized="false"
  39150. static="false" final="false" visibility="public"
  39151. deprecated="not deprecated">
  39152. <doc>
  39153. <![CDATA[@return size of the the bloomfilter]]>
  39154. </doc>
  39155. </method>
  39156. <method name="write"
  39157. abstract="false" native="false" synchronized="false"
  39158. static="false" final="false" visibility="public"
  39159. deprecated="not deprecated">
  39160. <param name="out" type="java.io.DataOutput"/>
  39161. <exception name="IOException" type="java.io.IOException"/>
  39162. </method>
  39163. <method name="readFields"
  39164. abstract="false" native="false" synchronized="false"
  39165. static="false" final="false" visibility="public"
  39166. deprecated="not deprecated">
  39167. <param name="in" type="java.io.DataInput"/>
  39168. <exception name="IOException" type="java.io.IOException"/>
  39169. </method>
  39170. <doc>
  39171. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  39172. <p>
  39173. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  39174. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  39175. offers for the transmission of set membership information between networked hosts. A sender encodes
  39176. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  39177. representation. Computation and space costs for construction are linear in the number of elements.
  39178. The receiver uses the filter to test whether various elements are members of the set. Though the
  39179. filter will occasionally return a false positive, it will never return a false negative. When creating
  39180. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  39181. <p>
  39182. Originally created by
  39183. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  39184. @see Filter The general behavior of a filter
  39185. @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>]]>
  39186. </doc>
  39187. </class>
  39188. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  39189. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  39190. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  39191. abstract="false"
  39192. static="false" final="true" visibility="public"
  39193. deprecated="not deprecated">
  39194. <constructor name="CountingBloomFilter"
  39195. static="false" final="false" visibility="public"
  39196. deprecated="not deprecated">
  39197. <doc>
  39198. <![CDATA[Default constructor - use with readFields]]>
  39199. </doc>
  39200. </constructor>
  39201. <constructor name="CountingBloomFilter" type="int, int, int"
  39202. static="false" final="false" visibility="public"
  39203. deprecated="not deprecated">
  39204. <doc>
  39205. <![CDATA[Constructor
  39206. @param vectorSize The vector size of <i>this</i> filter.
  39207. @param nbHash The number of hash function to consider.
  39208. @param hashType type of the hashing function (see
  39209. {@link org.apache.hadoop.util.hash.Hash}).]]>
  39210. </doc>
  39211. </constructor>
  39212. <method name="add"
  39213. abstract="false" native="false" synchronized="false"
  39214. static="false" final="false" visibility="public"
  39215. deprecated="not deprecated">
  39216. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39217. </method>
  39218. <method name="delete"
  39219. abstract="false" native="false" synchronized="false"
  39220. static="false" final="false" visibility="public"
  39221. deprecated="not deprecated">
  39222. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39223. <doc>
  39224. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  39225. <p>
  39226. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  39227. @param key The key to remove.]]>
  39228. </doc>
  39229. </method>
  39230. <method name="and"
  39231. abstract="false" native="false" synchronized="false"
  39232. static="false" final="false" visibility="public"
  39233. deprecated="not deprecated">
  39234. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39235. </method>
  39236. <method name="membershipTest" return="boolean"
  39237. abstract="false" native="false" synchronized="false"
  39238. static="false" final="false" visibility="public"
  39239. deprecated="not deprecated">
  39240. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39241. </method>
  39242. <method name="approximateCount" return="int"
  39243. abstract="false" native="false" synchronized="false"
  39244. static="false" final="false" visibility="public"
  39245. deprecated="not deprecated">
  39246. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39247. <doc>
  39248. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  39249. times the key was added to the filter. This allows the filter to be
  39250. used as an approximate <code>key -&gt; count</code> map.
  39251. <p>NOTE: due to the bucket size of this filter, inserting the same
  39252. key more than 15 times will cause an overflow at all filter positions
  39253. associated with this key, and it will significantly increase the error
  39254. rate for this and other keys. For this reason the filter can only be
  39255. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  39256. @param key key to be tested
  39257. @return 0 if the key is not present. Otherwise, a positive value v will
  39258. be returned such that <code>v == count</code> with probability equal to the
  39259. error rate of this filter, and <code>v &gt; count</code> otherwise.
  39260. Additionally, if the filter experienced an underflow as a result of
  39261. {@link #delete(Key)} operation, the return value may be lower than the
  39262. <code>count</code> with the probability of the false negative rate of such
  39263. filter.]]>
  39264. </doc>
  39265. </method>
  39266. <method name="not"
  39267. abstract="false" native="false" synchronized="false"
  39268. static="false" final="false" visibility="public"
  39269. deprecated="not deprecated">
  39270. </method>
  39271. <method name="or"
  39272. abstract="false" native="false" synchronized="false"
  39273. static="false" final="false" visibility="public"
  39274. deprecated="not deprecated">
  39275. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39276. </method>
  39277. <method name="xor"
  39278. abstract="false" native="false" synchronized="false"
  39279. static="false" final="false" visibility="public"
  39280. deprecated="not deprecated">
  39281. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39282. </method>
  39283. <method name="toString" return="java.lang.String"
  39284. abstract="false" native="false" synchronized="false"
  39285. static="false" final="false" visibility="public"
  39286. deprecated="not deprecated">
  39287. </method>
  39288. <method name="write"
  39289. abstract="false" native="false" synchronized="false"
  39290. static="false" final="false" visibility="public"
  39291. deprecated="not deprecated">
  39292. <param name="out" type="java.io.DataOutput"/>
  39293. <exception name="IOException" type="java.io.IOException"/>
  39294. </method>
  39295. <method name="readFields"
  39296. abstract="false" native="false" synchronized="false"
  39297. static="false" final="false" visibility="public"
  39298. deprecated="not deprecated">
  39299. <param name="in" type="java.io.DataInput"/>
  39300. <exception name="IOException" type="java.io.IOException"/>
  39301. </method>
  39302. <doc>
  39303. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  39304. 2000 paper.
  39305. <p>
  39306. A counting Bloom filter is an improvement to standard a Bloom filter as it
  39307. allows dynamic additions and deletions of set membership information. This
  39308. is achieved through the use of a counting vector instead of a bit vector.
  39309. <p>
  39310. Originally created by
  39311. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  39312. @see Filter The general behavior of a filter
  39313. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  39314. </doc>
  39315. </class>
  39316. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  39317. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  39318. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  39319. abstract="false"
  39320. static="false" final="false" visibility="public"
  39321. deprecated="not deprecated">
  39322. <constructor name="DynamicBloomFilter"
  39323. static="false" final="false" visibility="public"
  39324. deprecated="not deprecated">
  39325. <doc>
  39326. <![CDATA[Zero-args constructor for the serialization.]]>
  39327. </doc>
  39328. </constructor>
  39329. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  39330. static="false" final="false" visibility="public"
  39331. deprecated="not deprecated">
  39332. <doc>
  39333. <![CDATA[Constructor.
  39334. <p>
  39335. Builds an empty Dynamic Bloom filter.
  39336. @param vectorSize The number of bits in the vector.
  39337. @param nbHash The number of hash function to consider.
  39338. @param hashType type of the hashing function (see
  39339. {@link org.apache.hadoop.util.hash.Hash}).
  39340. @param nr The threshold for the maximum number of keys to record in a
  39341. dynamic Bloom filter row.]]>
  39342. </doc>
  39343. </constructor>
  39344. <method name="add"
  39345. abstract="false" native="false" synchronized="false"
  39346. static="false" final="false" visibility="public"
  39347. deprecated="not deprecated">
  39348. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39349. </method>
  39350. <method name="and"
  39351. abstract="false" native="false" synchronized="false"
  39352. static="false" final="false" visibility="public"
  39353. deprecated="not deprecated">
  39354. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39355. </method>
  39356. <method name="membershipTest" return="boolean"
  39357. abstract="false" native="false" synchronized="false"
  39358. static="false" final="false" visibility="public"
  39359. deprecated="not deprecated">
  39360. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39361. </method>
  39362. <method name="not"
  39363. abstract="false" native="false" synchronized="false"
  39364. static="false" final="false" visibility="public"
  39365. deprecated="not deprecated">
  39366. </method>
  39367. <method name="or"
  39368. abstract="false" native="false" synchronized="false"
  39369. static="false" final="false" visibility="public"
  39370. deprecated="not deprecated">
  39371. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39372. </method>
  39373. <method name="xor"
  39374. abstract="false" native="false" synchronized="false"
  39375. static="false" final="false" visibility="public"
  39376. deprecated="not deprecated">
  39377. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39378. </method>
  39379. <method name="toString" return="java.lang.String"
  39380. abstract="false" native="false" synchronized="false"
  39381. static="false" final="false" visibility="public"
  39382. deprecated="not deprecated">
  39383. </method>
  39384. <method name="write"
  39385. abstract="false" native="false" synchronized="false"
  39386. static="false" final="false" visibility="public"
  39387. deprecated="not deprecated">
  39388. <param name="out" type="java.io.DataOutput"/>
  39389. <exception name="IOException" type="java.io.IOException"/>
  39390. </method>
  39391. <method name="readFields"
  39392. abstract="false" native="false" synchronized="false"
  39393. static="false" final="false" visibility="public"
  39394. deprecated="not deprecated">
  39395. <param name="in" type="java.io.DataInput"/>
  39396. <exception name="IOException" type="java.io.IOException"/>
  39397. </method>
  39398. <doc>
  39399. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  39400. <p>
  39401. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  39402. each of the <code>s</code> rows is a standard Bloom filter. The creation
  39403. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  39404. bit matrix, i.e., it is composed of a single standard Bloom filter.
  39405. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  39406. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  39407. the cardinality of the set <code>A</code> to record in the filter).
  39408. <p>
  39409. As the size of <code>A</code> grows during the execution of the application,
  39410. several keys must be inserted in the DBF. When inserting a key into the DBF,
  39411. one must first get an active Bloom filter in the matrix. A Bloom filter is
  39412. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  39413. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  39414. If an active Bloom filter is found, the key is inserted and
  39415. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  39416. is no active Bloom filter, a new one is created (i.e., a new row is added to
  39417. the matrix) according to the current size of <code>A</code> and the element
  39418. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  39419. this new Bloom filter is set to one. A given key is said to belong to the
  39420. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  39421. <p>
  39422. Originally created by
  39423. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  39424. @see Filter The general behavior of a filter
  39425. @see BloomFilter A Bloom filter
  39426. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  39427. </doc>
  39428. </class>
  39429. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  39430. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  39431. <class name="HashFunction" extends="java.lang.Object"
  39432. abstract="false"
  39433. static="false" final="true" visibility="public"
  39434. deprecated="not deprecated">
  39435. <constructor name="HashFunction" type="int, int, int"
  39436. static="false" final="false" visibility="public"
  39437. deprecated="not deprecated">
  39438. <doc>
  39439. <![CDATA[Constructor.
  39440. <p>
  39441. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  39442. @param maxValue The maximum highest returned value.
  39443. @param nbHash The number of resulting hashed values.
  39444. @param hashType type of the hashing function (see {@link Hash}).]]>
  39445. </doc>
  39446. </constructor>
  39447. <method name="clear"
  39448. abstract="false" native="false" synchronized="false"
  39449. static="false" final="false" visibility="public"
  39450. deprecated="not deprecated">
  39451. <doc>
  39452. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  39453. </doc>
  39454. </method>
  39455. <method name="hash" return="int[]"
  39456. abstract="false" native="false" synchronized="false"
  39457. static="false" final="false" visibility="public"
  39458. deprecated="not deprecated">
  39459. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  39460. <doc>
  39461. <![CDATA[Hashes a specified key into several integers.
  39462. @param k The specified key.
  39463. @return The array of hashed values.]]>
  39464. </doc>
  39465. </method>
  39466. <doc>
  39467. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  39468. @see Key The general behavior of a key being stored in a filter
  39469. @see Filter The general behavior of a filter]]>
  39470. </doc>
  39471. </class>
  39472. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  39473. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  39474. <interface name="RemoveScheme" abstract="true"
  39475. static="false" final="false" visibility="public"
  39476. deprecated="not deprecated">
  39477. <field name="RANDOM" type="short"
  39478. transient="false" volatile="false"
  39479. static="true" final="true" visibility="public"
  39480. deprecated="not deprecated">
  39481. <doc>
  39482. <![CDATA[Random selection.
  39483. <p>
  39484. The idea is to randomly select a bit to reset.]]>
  39485. </doc>
  39486. </field>
  39487. <field name="MINIMUM_FN" type="short"
  39488. transient="false" volatile="false"
  39489. static="true" final="true" visibility="public"
  39490. deprecated="not deprecated">
  39491. <doc>
  39492. <![CDATA[MinimumFN Selection.
  39493. <p>
  39494. The idea is to select the bit to reset that will generate the minimum
  39495. number of false negative.]]>
  39496. </doc>
  39497. </field>
  39498. <field name="MAXIMUM_FP" type="short"
  39499. transient="false" volatile="false"
  39500. static="true" final="true" visibility="public"
  39501. deprecated="not deprecated">
  39502. <doc>
  39503. <![CDATA[MaximumFP Selection.
  39504. <p>
  39505. The idea is to select the bit to reset that will remove the maximum number
  39506. of false positive.]]>
  39507. </doc>
  39508. </field>
  39509. <field name="RATIO" type="short"
  39510. transient="false" volatile="false"
  39511. static="true" final="true" visibility="public"
  39512. deprecated="not deprecated">
  39513. <doc>
  39514. <![CDATA[Ratio Selection.
  39515. <p>
  39516. The idea is to select the bit to reset that will, at the same time, remove
  39517. the maximum number of false positve while minimizing the amount of false
  39518. negative generated.]]>
  39519. </doc>
  39520. </field>
  39521. <doc>
  39522. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  39523. <p>
  39524. Originally created by
  39525. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  39526. </doc>
  39527. </interface>
  39528. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  39529. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  39530. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  39531. abstract="false"
  39532. static="false" final="true" visibility="public"
  39533. deprecated="not deprecated">
  39534. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  39535. <constructor name="RetouchedBloomFilter"
  39536. static="false" final="false" visibility="public"
  39537. deprecated="not deprecated">
  39538. <doc>
  39539. <![CDATA[Default constructor - use with readFields]]>
  39540. </doc>
  39541. </constructor>
  39542. <constructor name="RetouchedBloomFilter" type="int, int, int"
  39543. static="false" final="false" visibility="public"
  39544. deprecated="not deprecated">
  39545. <doc>
  39546. <![CDATA[Constructor
  39547. @param vectorSize The vector size of <i>this</i> filter.
  39548. @param nbHash The number of hash function to consider.
  39549. @param hashType type of the hashing function (see
  39550. {@link org.apache.hadoop.util.hash.Hash}).]]>
  39551. </doc>
  39552. </constructor>
  39553. <method name="add"
  39554. abstract="false" native="false" synchronized="false"
  39555. static="false" final="false" visibility="public"
  39556. deprecated="not deprecated">
  39557. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39558. </method>
  39559. <method name="addFalsePositive"
  39560. abstract="false" native="false" synchronized="false"
  39561. static="false" final="false" visibility="public"
  39562. deprecated="not deprecated">
  39563. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39564. <doc>
  39565. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  39566. <p>
  39567. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  39568. @param key The false positive key to add.]]>
  39569. </doc>
  39570. </method>
  39571. <method name="addFalsePositive"
  39572. abstract="false" native="false" synchronized="false"
  39573. static="false" final="false" visibility="public"
  39574. deprecated="not deprecated">
  39575. <param name="coll" type="java.util.Collection"/>
  39576. <doc>
  39577. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  39578. @param coll The collection of false positive.]]>
  39579. </doc>
  39580. </method>
  39581. <method name="addFalsePositive"
  39582. abstract="false" native="false" synchronized="false"
  39583. static="false" final="false" visibility="public"
  39584. deprecated="not deprecated">
  39585. <param name="keys" type="java.util.List"/>
  39586. <doc>
  39587. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  39588. @param keys The list of false positive.]]>
  39589. </doc>
  39590. </method>
  39591. <method name="addFalsePositive"
  39592. abstract="false" native="false" synchronized="false"
  39593. static="false" final="false" visibility="public"
  39594. deprecated="not deprecated">
  39595. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  39596. <doc>
  39597. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  39598. @param keys The array of false positive.]]>
  39599. </doc>
  39600. </method>
  39601. <method name="selectiveClearing"
  39602. abstract="false" native="false" synchronized="false"
  39603. static="false" final="false" visibility="public"
  39604. deprecated="not deprecated">
  39605. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  39606. <param name="scheme" type="short"/>
  39607. <doc>
  39608. <![CDATA[Performs the selective clearing for a given key.
  39609. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  39610. @param scheme The selective clearing scheme to apply.]]>
  39611. </doc>
  39612. </method>
  39613. <method name="write"
  39614. abstract="false" native="false" synchronized="false"
  39615. static="false" final="false" visibility="public"
  39616. deprecated="not deprecated">
  39617. <param name="out" type="java.io.DataOutput"/>
  39618. <exception name="IOException" type="java.io.IOException"/>
  39619. </method>
  39620. <method name="readFields"
  39621. abstract="false" native="false" synchronized="false"
  39622. static="false" final="false" visibility="public"
  39623. deprecated="not deprecated">
  39624. <param name="in" type="java.io.DataInput"/>
  39625. <exception name="IOException" type="java.io.IOException"/>
  39626. </method>
  39627. <doc>
  39628. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  39629. <p>
  39630. It allows the removal of selected false positives at the cost of introducing
  39631. random false negatives, and with the benefit of eliminating some random false
  39632. positives at the same time.
  39633. <p>
  39634. Originally created by
  39635. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  39636. @see Filter The general behavior of a filter
  39637. @see BloomFilter A Bloom filter
  39638. @see RemoveScheme The different selective clearing algorithms
  39639. @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>]]>
  39640. </doc>
  39641. </class>
  39642. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  39643. </package>
  39644. <package name="org.apache.hadoop.util.curator">
  39645. </package>
  39646. <package name="org.apache.hadoop.util.hash">
  39647. </package>
  39648. </api>